Script To Delete Intersected Faces

Dear Scriptspot masters,

Need some expert advice with my current problem: Let say I have two 4x4 box, which half of them is intersecting with one another.

What I'm trying to do is to be able to select those faces of the intersection and apply different color to it so that i can see clearly which part is overlapping.

I've been searching through google for some info for the last 4 days but didn't have a clear picture yet of where should I start. If there's any professional coder here who have any insights on this, your help is very much appreciated.

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
brttd's picture

Im not a master, but...I

Im not a master, but...
I would recommend using the "vol select" modifier, set the selection to faces, and choose mesh for selection type.
You can also use this in scripts.
If you want to be able to change the positions of the boxes without re-adding edit_poly or edit_mesh modifiers, add a deleteMesh modifier.

barigazy's picture

...

Yup. That's non-destructive way.
And descructive :

$Box001 - $Box002
select $Box001
max modify mode
subobjectLevel = 4
modPanel.addModToSelection (DeleteMesh ()) ui:on

bga

ariff_13's picture

Thank you so much.. it works!!

but can you show me how to adjust your script for 2 intersecting group? Been playing around for a couple of hour but no luck yet.

barigazy's picture

...

post some example or screenshoots

bga

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.