How do I explode a polyline into individual lines?
Lets say I have a triangle with three points. How do I get three primitives (i.e. lines), each with two points.
exploding a polyline
4736 4 1- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
- midorime
- Member
- 31 posts
- Joined:
- Offline
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
thanks Emanuele - that works to some extent
but I end up with primitives that are a bit odd
I create a triangle using the Curve SOP
I attach an polyExtrude SOP and output only sides
I then get three primitives (i.e closed polygons of zero area), with four vertices each
What I actually want is three primitives, with two vertices each (i.e. lines)
but I end up with primitives that are a bit odd
I create a triangle using the Curve SOP
I attach an polyExtrude SOP and output only sides
I then get three primitives (i.e closed polygons of zero area), with four vertices each
What I actually want is three primitives, with two vertices each (i.e. lines)
Patrick
- probbins
- Member
- 1145 posts
- Joined: July 2005
- Offline
- phtj
- Member
- 224 posts
- Joined: June 2009
- Offline
thanks probbins
I managed to get it to work with the Carve SOP
- I set First U to 0 and Second U to 1
- I choose the Breakpoints tab and select Cut At All Internal Breakpoints
- I choose the Cut tab, and leave just Keep Inside selected
This will break any polygon (open or closed) into a set of line segments
I managed to get it to work with the Carve SOP
- I set First U to 0 and Second U to 1
- I choose the Breakpoints tab and select Cut At All Internal Breakpoints
- I choose the Cut tab, and leave just Keep Inside selected
This will break any polygon (open or closed) into a set of line segments
Patrick
-
- Quick Links