How to group sharp turned points on edges?
1149 2 0- magicom
- Member
- 3 posts
- Joined: 4月 2021
- Offline
- animatrix_
- Member
- 4731 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]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
Get to the NEXT level in Houdini & VEX with Pragmatic VEX! [www.pragmatic-vfx.com]
youtube.com/@pragmaticvfx | patreon.com/animatrix | pragmaticvfx.gumroad.com
- 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