Away3D中如何从3D点的给定的数组渲染的表面? [英] Away3d how to render a surface from given array of 3d points?

查看:188
本文介绍了Away3D中如何从3D点的给定的数组渲染的表面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我有一些3D点发生器,给点像

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}

我需要生成一个光滑的表面,会去thrue给定点。如何做这样的事?

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

顺便说一句,我知道我们可以用一种方式在这里显示来产生一些表面会被内部选穴的控制研究数组,但我需要生成一个表面传递thrue我的控制研究阵列。

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.

推荐答案

我觉得最好是创建一个网格对象,然后创建一个循环要经过你的三角形创建FaceObjects然后用户Mesh.addFace() A面将包含一个三角形的三个点,如果需要一个UV贴图坐标。

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.

考虑,但 - 你点的名单不得enirely随心所欲。每个面必须使用三个点是最近点到彼此,并且不重叠的其他点的三角形的面积。 (否则会显得怪异/坏)

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.

您也可以发表这一问题向谷歌组Away3D中。 http://groups.google.com/group/away3d-dev?pli=1 该项目领导是活跃在名单上,并张贴频繁。他们爱一个很好的挑战。

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.

这篇关于Away3D中如何从3D点的给定的数组渲染的表面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆