brepjs API Reference
    Preparing search index...

    Interface KernelRepairOps

    interface KernelRepairOps {
        fixFaceOrientations(shape: any): number;
        fixSelfIntersection(wire: any): any;
        fixShape(shape: any): any;
        healFace(shape: any): any;
        healSolid(shape: any): any;
        healWire(wire: any, face?: any): any;
        isValid(shape: any): boolean;
        isValidStrict?(shape: any): boolean;
        mergeCoincidentVertices(shape: any, tolerance: number): number;
        removeDegenerateEdges(shape: any, tolerance: number): number;
    }
    Index

    Methods

    • Fix face orientations for consistent normals. Returns fix count.

      Parameters

      • shape: any

      Returns number

    • Check if a shape is topologically and geometrically valid.

      Uses relaxed validation when available — accepts NURBS approximation tolerances that strict mode would flag.

      Cross-kernel note: OCCT uses BRepCheck_Analyzer (no relaxed variant). brepkit uses validateSolidRelaxed().

      Parameters

      • shape: any

      Returns boolean

    • Strict validation — fails on any geometric or topological issue, including NURBS approximation gaps.

      Cross-kernel note: OCCT's BRepCheck_Analyzer is inherently strict, so this is identical to isValid. brepkit uses validateSolid() (strict).

      Parameters

      • shape: any

      Returns boolean

    • Merge coincident vertices within tolerance. Returns merge count.

      Parameters

      • shape: any
      • tolerance: number

      Returns number

    • Remove zero-length (degenerate) edges. Returns removal count.

      Parameters

      • shape: any
      • tolerance: number

      Returns number