Bitbybit Docs
    Preparing search index...

    Class VoronoiFrames3dDto<T> (Inputs.OCCT)

    A convex solid and seeds for patterns.voronoi.frames3d and patterns.voronoi.frames3dWithReport, which build every face between the seeds' Voronoi cells once with a window, or with a wall each cell as a hollow solid.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shape: T

    The convex solid the cells fill, such as a box; a solid that is not convex of planar faces is refused.

    undefined
    

    The points the cells grow from, one cell a seed, each inside the solid.

    undefined
    
    weights?: number[]

    One weight a seed, in squared model units, making power cells: a heavier seed's cell grows, and one far outweighed may have none. Left empty, all weigh the same.

    []
    
    sizes?: number[]

    Per-seed values for scale or inset, a face taking its cells' mean: scales from 0 to 1, whole up to 0.001, or insets of at least the solid's tolerance.

    []
    

    Whether each window is its face scaled about the face's centroid, or its face with every edge moved inward by inset.

    scale
    
    scale?: number

    With shrink scale, the factor each face is scaled by for its window, from 0.001 to 0.999.

    0.8
    

    0.001

    0.999

    0.05

    inset?: number

    With shrink inset, how far each edge of a face moves inward for its window, in model units, so each frame's border is that wide.

    0.1
    

    0

    Infinity

    0.1

    radius?: number

    The radius each window's corners are rounded to, in model units; a tight corner takes the largest that fits. 0 leaves corners sharp, as a wall needs.

    0
    

    0

    Infinity

    0.1

    Whether to frame each face flat, or make each cell a hollow wall, its inside scaled by thickness or inset by wallInset and each window a tunnel through it.

    none
    
    thickness?: number

    With wall scale, the wall's share of its cell: the inside is the cell scaled toward its centroid by 1 less the share.

    0.1
    

    0.001

    0.999

    0.05

    wallInset?: number

    With wall inset, how far every face of a cell moves inward for its inside, in model units, so each wall is that thick.

    0.1
    

    0

    Infinity

    0.1

    walls?: boolean

    Whether to also frame the cells' faces on the solid's boundary; with a wall, whether those faces get windows or stay closed.

    true
    

    What to do with a seed outside the solid: refuse it, or drop it and report its cell as dropped.

    refuse
    
    coincidentSeeds?: voronoiCoincidentSeedsEnum

    What to do with seeds closer than a hundred-thousandth of the solid's box diagonal: refuse them, or merge each into the first.

    refuse