brepjs API Reference
    Preparing search index...

    Function kernelCall

    • Wrap a kernel call that returns an OcShape, automatically casting the result into a branded AnyShape. On exception, returns an Err with the given error code and message.

      OCCT error messages are automatically translated into user-friendly explanations when the error kind is OCCT_OPERATION.

      Parameters

      • fn: () => TopoDS_Shape
      • code: string
      • message: string
      • kind: BrepErrorKind = 'OCCT_OPERATION'

      Returns Result<AnyShape>