Is there any way to generate a mesh if I just have vertices but no indices?
If not, how I could get the indexdata when I just have the vertices with no specific logic order?
Thanks
Problem with complex geometriesSoftware: Away3D 4.x |
||
agventu, Newbie
Posted: 07 February 2015 06:38 AM Total Posts: 8 Is there any way to generate a mesh if I just have vertices but no indices? If not, how I could get the indexdata when I just have the vertices with no specific logic order? Thanks |
||
Fabrice Closier, Administrator
Posted: 07 February 2015 12:43 PM Total Posts: 1265 [ # 1 ] yes, you mean something like a point cloud. Away allows you to build any face you want, so technically speaking as long as you declare 3 vertices, 3 indices, 3 uvs. away will render the face(s). a basic way, for instance if your cloud is having a fairly distributed noise and mainly on a single plane. Things gets way more complicated if the point cloud represents the volumetric info of an object or more. Or an object with inner data, then you will have to apply some Delaunay rules, probably have be preprocess data to sort the vertices using convex and convave hulls, isolate groups of points based on distance. Using space partitioning methods such as octrees, AABB tree, BSP’s will probably be part of the game too… if the data comes from a 3d laser scanner/depth cam, the device may export some color or depth info, that will be of a great help too.
|
||
|