AntoineSfx Posted May 22, 2018 Share Posted May 22, 2018 (edited) I'm trying to do: grid -> cluster -> create one primitive per group of points with the same cluster value It must be trivial but I can't find the node / checkbox somewhere that does this thing.. Edited May 22, 2018 by AntoineSfx Quote Link to comment Share on other sites More sharing options...
3dome Posted May 22, 2018 Share Posted May 22, 2018 you could promote the cluster attrib to prims (mode max or min), then use a primwrangle with s@name = sprintf("cluster_%d", i@cluster); and then assemble (tick off create name) 1 Quote Link to comment Share on other sites More sharing options...
Noobini Posted May 22, 2018 Share Posted May 22, 2018 I'm probably misunderstanding the question...but is it this simple ? You can turn divide on/off if you want... ClusterPrims.hipnc Quote Link to comment Share on other sites More sharing options...
acey195 Posted June 4, 2018 Share Posted June 4, 2018 you may also try promoting the attributes to vertex attribs, and then applying a vertexSplit node, if you actually need to split the primiitives (so you could use a connectivity sop later for instance) also continuing from 3Dome, you could also do both in one node: string grp = sprintf("cluster_%d", i@cluster); setprimgroup(0, grp, @primnum, 1); Quote Link to comment Share on other sites More sharing options...
animatrix Posted June 4, 2018 Share Posted June 4, 2018 Primitive Split SOP 1 Quote Link to comment Share on other sites More sharing options...
AntoineSfx Posted June 6, 2018 Author Share Posted June 6, 2018 On 04/06/2018 at 5:10 PM, pusat said: Primitive Split SOP Yes, that solved my problem I did this: cluster -> attribpromote (points primitives) -> primitive Split -> divide (Remove shared edges) Quote Link to comment Share on other sites More sharing options...
Atom Posted June 6, 2018 Share Posted June 6, 2018 (edited) And now there is a MOPs solution as well. Edited June 6, 2018 by Atom 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.