how to change a point's normal by its neighbor point

   2662   2   0
User Avatar
Member
160 posts
Joined:
Offline
i build a curve and want to change every point's normals by its two neighbor points.
so the new normal will align the angular bisector of the angle between two edges of the point.

how to do it?
User Avatar
Member
606 posts
Joined: 5月 2007
Offline
With a point() expression in a Point SOP you can query the position of the previous and next points. Create vectors pointing to both, normalize and add together.

(Apologies for the dot() in the .hip - my brain blanked on how to get one component of a vector

eetu.

Attachments:
halfangle.hipnc (50.7 KB)

User Avatar
Member
160 posts
Joined:
Offline
thank you!
  • Quick Links