Skip to content
Discussion options

You must be logged in to vote

Hi,

boolean only re-triangulates the triangles crossed by the surface of the other mesh. Every other triangle of mesh A goes into the result unchanged; it only gets a new FaceId. So the red triangles stay exactly as they are as long as the white model does not cross them. To find them in the result, pass a BooleanResultMapper:

BooleanResultMapper mapper;
auto res = boolean( blue, white, BooleanOperation::DifferenceAB, { .mapper = &mapper } );
FaceBitSet redInResult = mapper.map( red, BooleanResultMapper::MapObject::A );

In your picture, though, the cube overlaps the red region. blue - white removes everything inside the cube, so the red triangles under the cube have to be cut. No boolean …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@czc98
Comment options

Answer selected by czc98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants