pub trait MeshPlaneSection: Backend {
// Required method
fn section(
&self,
mesh: &TriMesh,
frame: Frame3,
limits: SectionLimits,
options: &ExecutionOptions,
) -> Result<SectionOutcome, GeomError>;
// Provided methods
fn scratch_requirement(&self) -> ScratchRequirement { ... }
fn cancellation_granularity(&self) -> CancellationGranularity { ... }
}Expand description
Provider for deterministic sections of closed oriented triangle solids.
Required Methods§
Sourcefn section(
&self,
mesh: &TriMesh,
frame: Frame3,
limits: SectionLimits,
options: &ExecutionOptions,
) -> Result<SectionOutcome, GeomError>
fn section( &self, mesh: &TriMesh, frame: Frame3, limits: SectionLimits, options: &ExecutionOptions, ) -> Result<SectionOutcome, GeomError>
Intersect one validated closed oriented mesh with frame’s local XY
plane. Implementations must enforce limits before growing output.
Provided Methods§
Sourcefn scratch_requirement(&self) -> ScratchRequirement
fn scratch_requirement(&self) -> ScratchRequirement
Scratch needed beyond inputs and result.
Sourcefn cancellation_granularity(&self) -> CancellationGranularity
fn cancellation_granularity(&self) -> CancellationGranularity
How finely the provider polls cancellation.