[Closed] Volume Selection need some explanation
Hi! I wrote little script to fix intersecting objects. My idea:
- use volume selection to get intersecting faces
- move them along normal
- repeat until face count == 0
clearListener()
incr = 0.033
addmodifier $ (Vol__Select level:2 type:1 autofit: false volume:3 node:$MasterModel)
sel = ($.mesh.selectedFaces as bitarray)
–while (sel.Count != 0) do – not working dunno why yet
–(for i in sel do
(
meshop.bevelFaces $ i incr 0
)
deleteModifier $ $.modifiers[“Vol__Select”]
–addmodifier $ (Vol__Select level:2 type:1 autofit: false volume:3 node:$MasterModel)
–sel = ($.mesh.selectedFaces as bitarray)–print sel.Count
–)
It works fine only for few cycles, like there what Volume Selection gives me right before script starts:
Good intersection, nicely selected faces.
But later:
I can see that I have intersection still at the bottom, but for some reason volume selection selects top-left faces now(?) Why? Probably it operates per-vertex, not per-face? How to workaround it? Or this is a bug? – because I have no idea why top-left faces are being selected all the time, because they are not intersecting anymore. Modifiers stacj is empty, set to editable mesh.