how to partition a single primitive in to multiple

   6311   6   3
User Avatar
Member
10 posts
Joined: Oct. 2009
Offline
I have a curve(single primitive) with points of different colors( red, green yellow).I want to partition this curve in to multiple primitives.For every color change across the curve,I want a different primitive.Could any please tell me how to go for it.
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
Hi. You want to partition the primitive based on the color. Use partition sop. In the rules select group by color. This way you can partition either points or primitives (Entity)
I hope this is what you are looking for
User Avatar
Member
2199 posts
Joined: July 2005
Online
You could use the add sop, turn on “Delete geometry but keep the Points”, go to the Polygons tab and use “By Group” and Add “By Attribute” Cd

The problem will be that you get gaps between each new polygon, but maybe that is what you expected I don't know.
The trick is finding just the right hammer for every screw
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
Wow! Add sop. That was really very simple. (I was thinking of using foreach sop with delete sop )
How can we get the polygons once we add the ‘add’ sop in the network. As the output of this add sop will be only points.

Attachments:
prim_based_on_col.hipnc (47.7 KB)

User Avatar
Member
2199 posts
Joined: July 2005
Online
no the add sop will output polygons. That's what the “By Group” bit does.
The trick is finding just the right hammer for every screw
User Avatar
Member
112 posts
Joined: Feb. 2010
Offline
I was coloring the points randomly.
Thanks for the reply
User Avatar
Member
10 posts
Joined: Oct. 2009
Offline
thank you very much guys for all the replies….It really helped…
  • Quick Links