Community
3ds Max Programming
Welcome to Autodesk’s 3ds Max Forums. Share your knowledge, ask questions, and explore popular 3ds Max SDK, Maxscript and Python topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Sliced object and selection

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
elpie89
366 Views, 2 Replies

Sliced object and selection

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?

 

Tags (1)
2 REPLIES 2
Message 2 of 3
denisT.MaxDoctor
in reply to: elpie89

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.

Message 3 of 3
klvnk
in reply to: denisT.MaxDoctor

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

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report