Trig puzzle help

   1829   2   0
User Avatar
Member
52 posts
Joined: Jan. 2009
Offline
Hi Houdini Hive Mind!

Please bear with me - my maths is pretty poor, so apologies if this is embarrassingly easy.

In the attached pic i'm trying to make houdini return the angle marked in red. The closest i've got is to import the next and previous point position into VOPs but i'm not sure of the maths involved to calculate the middle point. I've played around with dot products / cross products but i very quickly become unstuck as my limited knowledge runs out - if you could help and explain what process is required i can take my learning on from there.

My goal is to select points based on an angle change (with a control threshold) in order to manipulate the ‘corner’ sections separately from straight sections.



Many thanks all.

Attachments:
Capture.JPG (140.8 KB)

User Avatar
Member
4533 posts
Joined: Feb. 2012
Offline
You can use the Angle Between VOP:
https://www.orbolt.com/asset/animatrix::angleBetween::1.00 [orbolt.com]

The source is open, so you can inspect it if you want to understand how it works.
Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
User Avatar
Member
52 posts
Joined: Jan. 2009
Offline
You can use the Angle Between VOP:

Worked perfectly - thanks so much!

And as I can see the VEX code I can even attempt a Point Wrangle hack to do the same thing!
  • Quick Links