Jump to content

Recommended Posts

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

Share this post


Link to post
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 ^^

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×