brepjs API Reference
    Preparing search index...

    Function kernelCall

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

      kernel error messages are automatically translated into user-friendly explanations when the error kind is KERNEL_OPERATION.

      Parameters

      • fn: () => any
      • code: string
      • message: string
      • kind: BrepErrorKind = 'KERNEL_OPERATION'

      Returns Result<AnyShape>