Bitbybit Docs
    Preparing search index...

    Class OCCTShell

    Shells in OpenCascade: sets of faces joined along their edges. A shell that closes on itself with no gaps bounds a volume and can become a solid with shapes.solid.fromClosedShell; an open shell is a surface with a rim. Build one by sewing faces together, check whether it is closed and measure its area.

    Index

    Constructors

    create

    • Joins faces into a shell by sewing their edges together where they meet within the tolerance.

      Faces whose edges are further apart than the tolerance stay unjoined, so a shell meant to be closed may come out open; a larger tolerance sews more, a smaller one is more precise.

      Parameters

      Returns Promise<TopoDSShellPointer>

      The shell made from the faces

      const shell = await bitbybit.occt.shapes.shell.sewFaces({ shapes: [top, bottom, side], tolerance: 1e-7 });
      

    debug

    • Collects diagnostic facts about a shell: whether it is valid, how many faces and edges it has, its total area and, for every face, the surface type, degrees, control point counts, bounds and area.

      An empty or null shape gives a report marked invalid with zero counts.

      Parameters

      Returns Promise<ShellDebugInfo>

      The report with counts, area and one entry per face

      const info = await bitbybit.occt.shapes.shell.debugInfo({ shape: shell });
      

    get

    • Measures the total area of all the faces of a shell, in square model units.

      Parameters

      Returns Promise<number>

      The surface area

      const area = await bitbybit.occt.shapes.shell.getShellSurfaceArea({ shape: shell });