brepjs API Reference
    Preparing search index...

    Function cast

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

      Performs downcast + branded handle creation in one step.

      Parameters

      • shape: TopoDS_Shape

      Returns Result<AnyShape>

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