Bitbybit Docs
    Preparing search index...

    Interface VoronoiPerforatedCell (Models.OCCT)

    One seed's cell in a perforated face, with its hole.

    interface VoronoiPerforatedCell {
        seed: number;
        state: VoronoiCellState;
        mergedInto?: number;
        placement?: VoronoiCellPlacement;
        centroid?: Point3;
        pieces: number[];
        area: number;
        hole: VoronoiHole;
    }

    Hierarchy (View Summary)

    Index

    Properties

    seed: number

    The seed's position in the seed list.

    What became of the seed.

    mergedInto?: number

    For a merged seed, the position of the seed it was merged into; left out otherwise.

    For a built cell, where it lies against the face or solid; left out otherwise.

    centroid?: Point3

    For a built cell, its centroid; left out otherwise.

    pieces: number[]

    The positions in the report's pieces of every piece the seed belongs to.

    area: number

    The cell's area, 0 for a cell not built. patterns.voronoi.cells2d gives it inside the face; the Delaunay and perforation reports give a crossing cell's area before the face cuts it.

    What became of the seed's hole.