How to group sharp turned points on edges?
332 2 0-
- magicom
- Member
- 3 posts
- Joined: 4月 2021
- Offline
-
- animatrix_
- Member
- 3921 posts
- Joined: 2月 2012
- Offline
Hi,
You can use compare tangent angles like this:
You can use compare tangent angles like this:
int pts [ ] = primpoints ( 0, @primnum ); int index = find ( pts, @ptnum ); int pt = pts [ index + 1 ]; vector tangent = point ( 0, "tangent", pt ); if ( dot ( v@tangent, tangent ) < ch("angle" ) ) i@group_pts = 1;

Senior FX TD @ Industrial Light & Magic
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

patreon.com/animatrix | vimeo.com/animatrix3d
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]

patreon.com/animatrix | vimeo.com/animatrix3d
-
- magicom
- Member
- 3 posts
- Joined: 4月 2021
- Offline
animatrix_
Hi,
You can use compare tangent angles like this:int pts [ ] = primpoints ( 0, @primnum ); int index = find ( pts, @ptnum ); int pt = pts [ index + 1 ]; vector tangent = point ( 0, "tangent", pt ); if ( dot ( v@tangent, tangent ) < ch("angle" ) ) i@group_pts = 1;
Thank you! This is very helpful.
I achieved similar results by using a workaround after posting the question.
-
- Quick Links