Back to Eqiora docs Skip to main content

CadKernelAdapter

Trait CadKernelAdapter 

pub trait CadKernelAdapter {
    // Required methods
    fn identity(&self) -> CadAdapterIdentityV1;
    fn realize_box_design(
        &self,
        design: &CadBoxDesignV1,
        step_bytes: &[u8],
    ) -> Result<CadBoxRealizationV1, Diagnostic>;
}
Description

Compile-time seam implemented by an isolated CAD-kernel adapter.

The adapter receives complete source bytes and may return only Eqiora-owned observations. Runtime loading, opaque callbacks, kernel objects, and face indices are intentionally absent.

Required Methods§

fn identity(&self) -> CadAdapterIdentityV1

Exact adapter and kernel build identity.

fn realize_box_design( &self, design: &CadBoxDesignV1, step_bytes: &[u8], ) -> Result<CadBoxRealizationV1, Diagnostic>

Replay the closed design against complete STEP bytes.

§Errors

Must fail closed for digest drift, unsupported STEP topology or unit, repair, non-planar/non-axis-aligned output, or boolean failure.

Implementors§