Jump to content

EDIT: A way to merge coincident line primitives


hyperforce

Recommended Posts

I'm creating a grid of lines that interconnect based on a grid. However, at certain points there are lines that have 2 or more primitives stacked on top of one another. I need to solve this.

Is there a way to merge these primitives, or clean them up somehow?

EDIT:

I found a way, see my second post

post-6166-133372473605_thumb.jpg

Edited by hyperforce
Link to comment
Share on other sites

hi ,

the situation pictured up here looks a bit 'unusual' to me . two points , defining two prims ( !! )

i dont know how the network resulted in that situation , but if you could upload a small part of that geometry .. that could help here into trying to resolve your problem .

.cheers

Link to comment
Share on other sites

With some help from Kim Goossens and some trail and error I found a way.

- I basically separate each segment of the line and store their center location and the segments normal direction as attributes.

- I then run those through a partition sop so it groups together line segments that occupy the same space and have the same normal direction.

- Then use a foreach node per group and remove all but primitive 0 from each group.

- All thats left then is to Fuse and clean up the groups and attributes.

An example and the OTL are included in the attachment.

post-6166-133380676018_thumb.jpg

cleanDoublePrimLinesExample.rar

Edited by hyperforce
Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...