Bitbybit Docs
    Preparing search index...

    Interface VoronoiFoamCell (Models.OCCT)

    One seed's cell in a foam, with its void.

    interface VoronoiFoamCell {
        void: number;
        voidFate: VoronoiVoidFate;
        scale?: number;
        inset?: number;
        windows: number;
        seed: number;
        state: VoronoiCellState;
        mergedInto?: number;
        placement?: VoronoiCellPlacement;
        centroid?: Point3;
        pieces: number[];
        volume: number;
    }

    Hierarchy (View Summary)

    Index

    Properties

    void: number

    The void's exact volume, or null when the cell has none.

    voidFate: VoronoiVoidFate

    Whether the void was made, and why not.

    scale?: number

    With shrink scale, the scale the void was made with; left out for a cell with no void.

    inset?: number

    With shrink inset, the inset the void was made with; left out for a cell with no void.

    windows: number

    How many windows the cell's void opens; 0 without windows.

    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.

    volume: number

    The cell's volume inside the solid, 0 for a cell not built.