开发者

Away3d how to render a surface from given array of 3d points?

So I have some 3d points generator that gives points like

{1,开发者_运维百科1,1}
{1,2,3}
{1,3,3}
{2,4,5}
{2,5,6}
{4,4,4}

I need to generate a smooth surface that would go thrue given points. How to do such thing?

BTW I know we can use a way shown in here to generate some surface that would be inside selected controll array of points but I need to generate a surface that passes thrue my controll array.


I think the best is to create a Mesh object then create a loop to go through your triangles to create FaceObjects and then user Mesh.addFace() A face will contain a single triangle from three points and a UV map coordinate if desired.

Consider though - your list of points must not be enirely arbitrary. Each face must use three points that are the closest points to each other, and do not overlap the area of the other points triangles. (Otherwise it will look "weird"/"bad")

I am not certain how to smooth your mesh, but it is probably done with a material.

You can also post this question to the google group for away3d. http://groups.google.com/group/away3d-dev?pli=1 The project leads are active on the list and post frequently. They love a good challenge.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜