Skip to main content

add_slice_plane

Function add_slice_plane 

Source
pub fn add_slice_plane(name: impl Into<String>) -> SlicePlaneHandle
Expand description

Adds a new slice plane to cut through geometry.

Slice planes allow visualizing the interior of 3D geometry by discarding fragments on one side of the plane.

The plane is created at the scene center with a size proportional to the scene’s length scale, ensuring it’s visible regardless of the scene scale.