Jump to content

sort / connect points to form clean polygons


gaurav

Recommended Posts

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 ?

post-6162-132575801808_thumb.jpg

Link to comment
Share on other sites

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 by kgoossens
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...