Jump to content


sort / connect points to form clean polygons


  • Please log in to reply
7 replies to this topic

#1 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 05 January 2012 - 02:07 AM

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 ?

Attached Thumbnails

  • sort_connect.jpg

Eh *munch munch* what sop, doc?

#2 petz

petz

    Initiate

  • Members
  • PipPip
  • 213 posts
  • Joined: 30-June 07

Posted 05 January 2012 - 04:32 AM

one possible solution is attached!

petz

Attached Files



#3 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 05 January 2012 - 09:20 AM

View Postpetz, on 05 January 2012 - 04:32 AM, said:

one possible solution is attached!

petz

Unbelievable awesomeness !!

Thank you  :)
Eh *munch munch* what sop, doc?

#4 kubabuk

kubabuk

    Illusionist

  • Members
  • PipPipPip
  • 393 posts
  • Joined: 15-February 05
  • Location:Oliwa
  • Name:Kuba Roth

Posted 05 January 2012 - 11:17 AM

Triangulate2d sop is another one, although is limited to convex shapes only.

#5 vectorblur

vectorblur

    Illusionist

  • Members
  • PipPipPip
  • 255 posts
  • Joined: 05-November 10
  • Location:India
  • Name:Gaurav Mathur

Posted 05 January 2012 - 08:38 PM

View Postkubabuk, on 05 January 2012 - 11:17 AM, said:

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,
Eh *munch munch* what sop, doc?

#6 kgoossens

kgoossens

    Initiate

  • Members
  • PipPip
  • 198 posts
  • Joined: 04-May 06
  • Location:Belgium, Antwerp
  • Name:Kim Goossens

Posted 06 January 2012 - 02:19 AM

View Postkubabuk, on 05 January 2012 - 11:17 AM, said:

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, 06 January 2012 - 03:59 PM.

“It is not the strongest of the species that survive, nor the most intelligent, but the one most responsive to change.”

- Charles Darwin

#7 renderfan

renderfan

    Peon

  • Members
  • Pip
  • 40 posts
  • Joined: 01-July 11
  • Location:europe
  • Name:erik ...

Posted 11 January 2012 - 01:39 AM

View Postkgoossens, on 06 January 2012 - 02:19 AM, said:

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!

#8 petz

petz

    Initiate

  • Members
  • PipPip
  • 213 posts
  • Joined: 30-June 07

Posted 13 January 2012 - 06:21 AM

View Postrenderfan, on 11 January 2012 - 01:39 AM, said:

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

Attached Files






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users