Bitbybit Docs
    Preparing search index...

    Interface VoronoiFramePiece (Models.OCCT)

    One piece patterns.voronoi.frames3d built: a flat frame, the face between two cells or between a cell and the solid's boundary with its window, or with a wall one cell's hollow solid.

    interface VoronoiFramePiece {
        scale?: number;
        inset?: number;
        window?: boolean;
        hollow?: boolean;
        windows?: number;
        closedWindows?: number;
        seeds: number[];
        walls: number[];
    }

    Hierarchy (View Summary)

    Index

    Properties

    scale?: number

    For a flat frame with shrink scale, the scale its window was made with: the setting, or the mean of its cells' sizes after the rule that keeps a face whole or caps it at 0.999.

    inset?: number

    For a flat frame with shrink inset, the inset its window was made with: the setting, or the mean of its cells' sizes.

    window?: boolean

    For a flat frame, whether it has a window; a face too small for one, or closed by its size, stays whole. Left out with a wall.

    hollow?: boolean

    With a wall, whether the cell is hollow; a cell its wall would leave nothing of stays solid.

    windows?: number

    With a wall, how many windows the cell opens.

    closedWindows?: number

    With a wall, how many of the cell's windows were closed: a face too small for its window at either end, or one whose neighbour stayed solid.

    seeds: number[]

    The seeds whose cells the piece belongs to or lies between, as positions in the seed list: the one cell of a face, solid or hole; the cells either side of an edge or face; every cell round an edge in space; or the seeds a Delaunay edge or triangle joins.

    walls: number[]

    The walls the piece lies on: the face's edges, numbered as shapes.edge.getEdges numbers them, or the solid's faces, numbered as shapes.face.getFaces numbers them. Empty for a piece inside.