gaurav Posted January 5, 2012 Share Posted January 5, 2012 Hello Folks, Given any random point order where points are located at the verts of an ngon in a plane (* attached image ) how to sort / connect points to form a closed clean surface. I need it for a fun little thing "For any given platonic solid make the dual procedurally" Converting Tetrahedron -> Inverted Tetrahedron, Cube -> Octahedron, Dodecahedron-> Icosahedron is real easy but i need to get the above sorting in place before i can make it work conversely. i.e. Inverted tetra -> Tetra , Octa -> Cube , Icosa.->Dodeca. Any Ideas on sort / connect ? Quote Link to comment Share on other sites More sharing options...
petz Posted January 5, 2012 Share Posted January 5, 2012 one possible solution is attached! petz sort_points1.hipnc Quote Link to comment Share on other sites More sharing options...
gaurav Posted January 5, 2012 Author Share Posted January 5, 2012 one possible solution is attached! petz Unbelievable awesomeness !! Thank you Quote Link to comment Share on other sites More sharing options...
kubabuk Posted January 5, 2012 Share Posted January 5, 2012 Triangulate2d sop is another one, although is limited to convex shapes only. Quote Link to comment Share on other sites More sharing options...
gaurav Posted January 6, 2012 Author Share Posted January 6, 2012 Triangulate2d sop is another one, although is limited to convex shapes only. Thanks for the tip kuba. Indeed something useful to keep in mind for future. Cheers, Quote Link to comment Share on other sites More sharing options...
kgoossens Posted January 6, 2012 Share Posted January 6, 2012 (edited) Triangulate2d sop is another one, although is limited to convex shapes only. You can group the polygon(s) and in the triangulate2D add the group to the "Constraint Primitives" and set "No New Points on Constraints" to off. Then you have Concave shapes as well. (no hole's though if you use it to combine multiple polygons) Edited January 6, 2012 by kgoossens Quote Link to comment Share on other sites More sharing options...
renderfan Posted January 11, 2012 Share Posted January 11, 2012 You can group the polygon(s) and in the triangulate2D add the group to the "Constraint Primitives" and set "No New Points on Constraints" to off. Then you have Concave shapes as well. (no hole's though if you use it to combine multiple polygons) Hi! Is there maybe way to combine multiple polygons with holes. Can i use also triangulate2D to do this! Thank You! Quote Link to comment Share on other sites More sharing options...
petz Posted January 13, 2012 Share Posted January 13, 2012 Hi! Is there maybe way to combine multiple polygons with holes. Can i use also triangulate2D to do this! Thank You! file is attached. hth. petz combine1.hipnc Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.