hyperforce Posted April 6, 2012 Share Posted April 6, 2012 (edited) 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 Edited April 7, 2012 by hyperforce Quote Link to comment Share on other sites More sharing options...
zarti Posted April 6, 2012 Share Posted April 6, 2012 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 Quote Link to comment Share on other sites More sharing options...
hyperforce Posted April 7, 2012 Author Share Posted April 7, 2012 (edited) 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. cleanDoublePrimLinesExample.rar Edited April 8, 2012 by hyperforce Quote Link to comment Share on other sites More sharing options...
dennis.albus Posted April 20, 2012 Share Posted April 20, 2012 Nice that you found your own solution. A built in solution would have been the Clean SOP which can do exactly that and is a lot faster. -dennis Quote Link to comment Share on other sites More sharing options...
dennis.albus Posted April 20, 2012 Share Posted April 20, 2012 Forgot the file. cleanDoublePrimLines_cleanSOP.hip Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.