Procedural edge loop ?
8678 6 4-
- SnowballWar
- Member
- 39 posts
- Joined: March 2020
- Offline
It's probably a stupid question but what is the best way to procedurally insert an edge loop in the middle of a simple poly line, like the one in the picture? Also grouping the new line …
I guess one of the ways is to somehow select one of the rings and polysplit it in the middle, but i am still new to the software and i am not sure how to do that procedurally.
My goal is somehow to get a middle curve out of this. Maybe with extracting centroid and then rebuilding the curve from the points. The problem with that approach is - the curve will be shorter than the length of the poly line, because it will end at the center of the end primitives … Or maybe that curve will be somehow useful for the split ..
I guess one of the ways is to somehow select one of the rings and polysplit it in the middle, but i am still new to the software and i am not sure how to do that procedurally.
My goal is somehow to get a middle curve out of this. Maybe with extracting centroid and then rebuilding the curve from the points. The problem with that approach is - the curve will be shorter than the length of the poly line, because it will end at the center of the end primitives … Or maybe that curve will be somehow useful for the split ..
Edited by SnowballWar - July 24, 2020 12:48:59
-
- Aizatulin
- Member
- 504 posts
- Joined: July 2005
- Offline
-
- SnowballWar
- Member
- 39 posts
- Joined: March 2020
- Offline
-
- eikonoklastes
- Member
- 447 posts
- Joined: April 2018
- Offline
Here's another approach that still uses VEX, but far lesser code, and instead simply builds a string that feeds the PolySplit SOP split locations and lets that do all the work.
I did need to rebuild your mesh using a Sweep, because the PolyExtrude creates some messed up point numberings for some reason.
I did need to rebuild your mesh using a Sweep, because the PolyExtrude creates some messed up point numberings for some reason.
-
- Konstantin Magnus
- Member
- 719 posts
- Joined: Sept. 2013
- Offline
The edge divide SOP can do this (if you are able to select all the right edges in advance).
https://procegen.konstantinmagnus.de/ [procegen.konstantinmagnus.de]
-
- SnowballWar
- Member
- 39 posts
- Joined: March 2020
- Offline
-
- vinyvince
- Member
- 281 posts
- Joined: Sept. 2012
- Offline
You could select loop and ring with the group find path.
Now how with 2 point selected for example , would you select the proper half edge before running it?
The point doesn't not have to be connect by an edge, but I guess we could get the direction to identify which half edge to pick?
How would you do that?
Now how with 2 point selected for example , would you select the proper half edge before running it?
The point doesn't not have to be connect by an edge, but I guess we could get the direction to identify which half edge to pick?
How would you do that?
Vincent Thomas (VFX and Art since 1998)
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
Senior Env and Lighting artist & Houdini generalist & Creative Concepts
http://fr.linkedin.com/in/vincentthomas [fr.linkedin.com]
-
- Quick Links



