how to orient normal in a line closed geometr

   571   3   1
User Avatar
Member
4 posts
Joined: 5月 2023
Offline
Hi everyone i tried since a lot of time to orient normal of points perpendicularly to his edge but as you can see on the screens the normals aren't perpendicular

in red you can see what i want to have, it's starting to drive me crazy

Attachments:
image_2024-01-01_220912427.png (451.2 KB)

User Avatar
Member
131 posts
Joined: 8月 2012
Offline
Try this.

Attachments:
get_midpt_N.hiplc (163.4 KB)

User Avatar
Member
4515 posts
Joined: 2月 2012
Offline
Hi,

Here is one way:

Create tangent vectors using PolyFrame SOP (Style = First Edge), then rotate the vectors around an arbitrary up vector:

matrix3 M = ident ( );
rotate ( M, radians ( -90 ), { 0, 1, 0 } );

@N *= M;

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 | animatrix2k7.gumroad.com
User Avatar
Member
4 posts
Joined: 5月 2023
Offline
Jikian
Try this.
animatrix_
Hi,

Here is one way:

Create tangent vectors using PolyFrame SOP (Style = First Edge), then rotate the vectors around an arbitrary up vector:

matrix3 M = ident ( );
rotate ( M, radians ( -90 ), { 0, 1, 0 } );

@N *= M;


Hi thanks you two for your response each way is working good I'm glad !
  • Quick Links