Bitbybit Docs
    Preparing search index...

    Class OCCTAnalysis

    Questions asked of OpenCascade shapes, answered with points, numbers and index lists rather than new shapes. curves reads edges and wires, surfaces reads faces, measure measures boxes, distances, angles and radii, and clashes finds shapes and faces that overlap or come too close. signatures describes every face and edge of a shape at once. The shapes themselves are left as they are.

    Index

    Constructors

    Properties

    shape

    Constructors

    Properties

    shape

    • Describes every face and edge of a shape in one pass: each face's surface kind, area, centre, outward normal and box, and each edge's curve kind, length, midpoint and direction there.

      The numbering and the measures are the selectors' own, so a kept description finds the same face again after a rebuild.

      Parameters

      Returns Promise<ShapeSignatures>

      The signature of every face and every edge

      const { faces, edges } = await bitbybit.occt.analysis.signatures({ shape: bracket });
      const largest = faces.reduce((a, b) => (b.area > a.area ? b : a));