logix1390 Posted April 17, 2016 Share Posted April 17, 2016 Hey , I have a tree model and I am trying to separate the leaves from it . Basically I am attempting to group the border edges of the leaves and then convert those edges into faces. However, It only groups the inside faces, not all of them. I also notices their are a few faces selected on the branches as well. Maybe the geo wasn't prepared properly for this ? Their has to be a way. I attached my file and .abc file if anyone wants to take a look. Any help would be very much appreciated. Thank you TREE_ALEMBIC_GEO.abc tree_grouping.hip Quote Link to comment Share on other sites More sharing options...
Richard Posted April 17, 2016 Share Posted April 17, 2016 Hey, try grouping by area using a measure sop, looks like it does the trick. I had to multiply the area here as the numbers were a bit small and then delete by expression. Hope this helps R tree_groupingSize_v02.hipnc Quote Link to comment Share on other sites More sharing options...
anim Posted April 18, 2016 Share Posted April 18, 2016 (edited) since all your leaves have vertexcount either 46 or 47 you can use that to isolate them in groups, similarly you can use that to isolate the fruits or branch tips to avoid slow foeachloop, you can convert them to polysoups and then get vertexcount per polysoup primitive in wrangle and create groups, see the file: tree_grouping_byvertexcount.hip EDIT: actually looks like some fruits have vertex count 47 as well, never mind then if you do it by area then still do it per area of the whole piece and not individual polygons, so still converting to polysoup and getting the area of each piece helps avoiding foreach loop, but the safest is to do it by both as some leaves have the area around the same as some branches here is the revised file: tree_grouping_by_nvtx_and_area.hip Edited April 18, 2016 by anim Quote Link to comment Share on other sites More sharing options...
logix1390 Posted April 18, 2016 Author Share Posted April 18, 2016 Thanks guys, both methods work great, I learned a lot from those files. Appreciate the help. 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.