brepjs API Reference
    Preparing search index...

    Interface KernelCapabilities

    interface KernelCapabilities {
        brepExport: boolean;
        exact: boolean;
        exactMeasurement: boolean;
        nativeHistory?: boolean;
        placementSharesGeometry?: boolean;
        sewKeepsOrientation?: boolean;
        stlImportReturnsBodies?: boolean;
        tessellationModel: TessellationModel;
    }
    Index
    brepExport: boolean

    Can serialize to B-rep exchange formats (BREP/STEP).

    exact: boolean

    Exact B-rep geometry (vs. a mesh approximation).

    exactMeasurement: boolean

    Volume/area/length match the analytic value (vs. mesh-approximate).

    nativeHistory?: boolean

    *WithHistory maps come from the kernel's own operation history, so a face listed as generated from a source face is that face's offset, sweep, or fillet. Kernels that rebuild the maps by geometric matching leave it unset.

    placementSharesGeometry?: boolean

    A rigid move (locate) gives a shape that shares the geometry of its source and has a new location, and the kernel's operations take such a shape as they take a copy. translate and rotate then move by location: constant time, and one mesh for all moved copies of a shape. Kernels that copy the geometry on each move leave it unset.

    sewKeepsOrientation?: boolean

    sew keeps every face's orientation, so faces wound consistently sew into a consistently oriented shell, and solidFromShell bounds the solid by that shell as it is (after reverseShape, by its inside-out twin). Mesh import relies on it to build solids without an orientation repair pass. Kernels that reorient while sewing leave it unset.

    stlImportReturnsBodies?: boolean

    importSTL returns the bodies of the mesh: a solid per closed body, a shell per open one, and a face per triangle that joins no other. The STL importer uses that result as it is. Kernels that return the facets as a compound of loose faces, for the importer to sew, leave it unset.

    tessellationModel: TessellationModel

    How tessellation resolution is controlled — see module docs.