Trait MeshPlaneSection

Source
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§

Source

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§

Source

fn scratch_requirement(&self) -> ScratchRequirement

Scratch needed beyond inputs and result.

Source

fn cancellation_granularity(&self) -> CancellationGranularity

How finely the provider polls cancellation.

Implementations on Foreign Types§

Source§

impl MeshPlaneSection for ScalarSection

Implementors§