Orient complexe piece along best edge based on guide curves

   2420   1   1
User Avatar
Member
255 posts
Joined: Sept. 2012
Offline
For some of my personal work, i will like to be able to rotate, some piece along their most suitable candidate edge, and for this using some curve generate by shortest path like here or maybe gradient field.

i guess i will have to simplify the edge also off course to get some kind of median axis.
tIm not familiar with eigen, covariant matrice , probably i guess i have to use dot product once i make an approximation of the main edge of every piece and compare the normal or each to the tangent of the closest path or so...

Any TD around which might feel more comfortable here with the maths and don't mind to give a try this puzzle challenge?

Attachments:
question_edgeaxisrotate_guidecurves.mp4 (1.6 MB)

Vincent Thomas   (VFX and Art since 1998)
Senior Env and Lighting  artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
User Avatar
Member
255 posts
Joined: Sept. 2012
Offline


Simple hip attached...
Obviously at the end im in a non flat world, I have to find and compute the rotation in world vector3
Edited by vinyvince - Aug. 16, 2021 13:49:36

Attachments:
piece_to_orient_curveguide.hip (235.3 KB)

Vincent Thomas   (VFX and Art since 1998)
Senior Env and Lighting  artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
  • Quick Links