brepjs API Reference
    Preparing search index...

    Function downcast

    • Downcast a generic TopoDS_Shape to its concrete OCCT type (e.g., TopoDS_Face).

      Parameters

      • shape: TopoDS_Shape

      Returns Result<TopoDS_Shape>

      Ok with the downcasted shape, or Err if the shape type is unknown.

      WASM requires explicit downcasting via oc.TopoDS.Face_1() etc.