Announcements

AREA content is being relocated to the Autodesk Community M&E Hub and Gallery. Notifications may be intermittently unavailable 10–12 November. Learn more HERE.

Sliced object and selection

Sliced object and selection

elpie89
Advocate Advocate
537 Views
2 Replies
Message 1 of 3

Sliced object and selection

elpie89
Advocate
Advocate

Hi, I'm trying to identify a proper way to detect the resulted part of a slice plane

a GIF is probably more understandable.

How can identify the split parts trough max script?

 

0 Likes
Accepted solutions (1)
538 Views
2 Replies
Replies (2)
Message 2 of 3

denisT.MaxDoctor
Advisor
Advisor

The answer looks obvious - it's the faces above and below the slice plane.

Check all triangle centers in the slice plane coordinate system. If z of the center's position is positive, the face is above; if it is negative, then the face is below.

0 Likes
Message 3 of 3

klvnk
Collaborator
Collaborator
Accepted solution

if using editable poly IIRC polygons below have bit 17 set in face flags 

 

 

polyop.setFaceSelection $ (polyop.getFacesByFlag $ 65536)

 

should select all faces below a slice

0 Likes