Skip to main content

boolean_with_token

Function boolean_with_token 

Source
pub fn boolean_with_token(
    mesh_a: &ManifoldImpl,
    mesh_b: &ManifoldImpl,
    op: OpType,
    token: Option<&CancelToken>,
) -> ManifoldImpl
Expand description

boolean with cooperative cancellation.

A cancelled operation yields an empty mesh whose status is Error::Cancelled, matching what C++ produces via MakeEmpty(Cancelled) at every checkpoint (execution_impl.h:150-160, boolean_result.cpp:758-770).