Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have five generic list.
Which contains object of Point3D.
I want to make TriangleIndices from that generic lists. Triangle indices are not in same list means one point is in first list second point is may be in first or second and so on...
Is there any Simple way?
Posted
Updated 17-Oct-10 19:16pm
v4

1 solution

Your question is not clear...

I assume your collection of Point3D vectors represents 3D geometric data. If the vertices are properly ordered, you don't even need to set the TriangleIndices property, because every set of 3 vertices will form a triangle implicitly (so you will have n/3 triangles where n is the number of vertices).

If these automatically generated triangles do not meet your requirements, there is no easy and general way to transform a set of points into a set of triangles.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900