crozer Posted November 30, 2015 Share Posted November 30, 2015 hey, i have a geometry that i am fracturing with voronoi. i need to separate these pieces into active and passive pieces. instead of selecting them by name, i would like to select all the pieces within a bounding box/sphere. i thought about using a group sop and selecting by bbox, but this selects points or primitives, and not my piece* groups from voronoi. any ideas? thank you so much! Quote Link to comment Share on other sites More sharing options...
DASD Posted November 30, 2015 Share Posted November 30, 2015 Iterate through each piece and if it has at least one primitive grouped, group the entire piece. Or something like that. Quote Link to comment Share on other sites More sharing options...
Maurits Posted November 30, 2015 Share Posted November 30, 2015 You could assign each a piece number to every point in that piece, then use the bounding box to select points. this results in a point group and each point has the number of it's parent piece, using this you can then select the whole piece. for assigning the piece number to the points you probably can use a attribute promote. For the last step use a for loop to go over every piece and if it has a point in the group add the whole piece just as DASD suggested. 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.