Jump to content

"Make circle" SOP?


konstantin magnus

Recommended Posts

  • 2 months later...
  • 2 years later...

Thank you again @petz for posting a mathematical solution.

I am currently trying to apply it to another mesh (fig. 1). Unfortunately most of the points get collapsed (fig. 2). Is there anything I am missing out?

Meanwhile I was trying to come up with a simple solution on my own (fig. 3), which is not unifying the distances between the points along a circle but is averaging out their distance towards the center. Unfortunately I would not quite know how to flatten my points on an oblique plane based on their average normal (fig. 4).

neck_opening_circle.thumb.png.0e4dfbdfa74d5fadae51a014d808c419.png

human.hiplc

Link to comment
Share on other sites

well, once you have the average position, you can look at all the vectors from the center to the original positions,
adding up the cross products of each set of 2 of those vectors (flipping them if they have a dot products smaller than 0)
if you normalize that resulting vector, that should be the average plane orientation.

afterwards you could use this VEX function to layout all of your points on that plane:
http://www.sidefx.com/docs/houdini/vex/functions/planepointdistance.html

yay maths ^^

Link to comment
Share on other sites

18 hours ago, konstantin magnus said:

Thank you again @petz for posting a mathematical solution.

I am currently trying to apply it to another mesh (fig. 1). Unfortunately most of the points get collapsed (fig. 2). Is there anything I am missing out?

Meanwhile I was trying to come up with a simple solution on my own (fig. 3), which is not unifying the distances between the points along a circle but is averaging out their distance towards the center. Unfortunately I would not quite know how to flatten my points on an oblique plane based on their average normal (fig. 4).

neck_opening_circle.thumb.png.0e4dfbdfa74d5fadae51a014d808c419.png

human.hiplc

 

please take a look at the attached file. i've slightly modified the old example and now it should work without problems.

hth,

petz

human1.hiplc

 

  • Like 3
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...