Blast selected faces based on measured area sum

   1928   2   1
User Avatar
Member
3 posts
Joined: Nov. 2017
Offline
Hi guys,

I am trying to figure out how to blast or not blast selected faces in a loop based on the measured area.

For example, I am trying to blast a group selection of faces only if the selected faces area sum equals 4.

I could not figure this out so far.

Current process

1, Select faces in a group node
2, measure groups face area
3, promote the area attribute to areaSum to a new detail class, promotion method to Sum
4, blast the selected faces and unselect
5, Merge them back together
6, add a split node and try to split them based on if the attribute areaSum=4 so they can go separate
ways down the network if there is a selection equalling areaSum 4.
I have tried different expressions like “if(`detail(”../blastSelected//“, ”areaSum“,0)`==4)” or
@areaSum==4

Any ideas

Attachments:
houdiniareaSum.jpg (502.8 KB)

User Avatar
Member
555 posts
Joined: Feb. 2017
Offline
here you are…
(note I went by your title…not the EXACT details you've got in your steps. ie, if the selection area is > Threshold, then I delete them…I'm sure you can adapt the logic to your needs)
Edited by vusta - Dec. 2, 2017 02:10:05

Attachments:
vu_DelByArea.hipnc (69.0 KB)

User Avatar
Member
3 posts
Joined: Nov. 2017
Offline
Hi Vusta,

Really appreciate your reply it helped me a lot . I adjusted the logic slightly like you mentioned.
I have uploaded the file with the network . Do you think this it the best approach in the way I have set it up.
I am having a play at reproducing parts of the procedural hallway tool I seen on go procedural vimeo.

Cheers mate

Attachments:
BlastOnlyIf4m2.hipnc (93.6 KB)

  • Quick Links