brepjs API Reference
    Preparing search index...

    Function cast

    • Cast a raw kernel shape to its corresponding branded brepjs type (Vertex, Edge, Face, etc.).

      Performs downcast + branded handle creation in one step.

      Parameters

      • shape: any

      Returns Result<AnyShape<Dimension>>

      Ok with a typed AnyShape, or Err if the shape type is unknown.