exploding a polyline

   4736   4   1
User Avatar
Member
224 posts
Joined: June 2009
Offline
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.
Patrick
User Avatar
Member
31 posts
Joined:
Offline
Try a polyextrude SOP;

uncheck “Output Front” and use “Consolidate Points” -> “Per-Face”.


Cheers

Emanuele
www.leleberti.com

Lead Crowd TD @ DNeg London
________________
User Avatar
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)
Patrick
User Avatar
Member
1145 posts
Joined: July 2005
Offline
If you have a triangle use a Carve sop.
Use 1st and 2nd U to position your cut points (at two of the corners) and change the U Divisions to 3.
“gravity is not a force, it is a boundary layer”
“everything is coincident”
“Love; the state of suspended anticipation.”
User Avatar
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
Patrick
  • Quick Links