Bitbybit Docs
    Preparing search index...

    Class VoronoiFoamDto<T> (Inputs.OCCT)

    A solid and seeds for patterns.voronoi.foam and patterns.voronoi.foamWithReport, which make the solid into foam: one solid holding a void in each seed's Voronoi cell, sealed or joined through windows.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shape: T

    The one solid the foam fills. In a solid that is not convex of planar faces, only cells wholly inside it get a void.

    undefined
    

    The points the cells grow from, one cell and its void 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 the voids' scale or inset: scales from 0 to 1, solid up to 0.001, or insets of at least the solid's tolerance.

    []
    

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

    scale
    
    scale?: number

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

    0.8
    

    0.001

    0.999

    0.05

    inset?: number

    With shrink inset, how far each face of a cell moves inward for its void, in model units, so two neighbouring voids are their two insets apart.

    0.1
    

    0

    Infinity

    0.1

    skin?: number

    How far every void keeps from the solid's outside, in model units. Left out, 0 for scaled voids and the inset for inset ones.

    undefined
    

    true

    0

    Infinity

    0.1

    Whether the voids stay sealed, or open into each other through a window in each face two voids share, scaled by windowScale or inset by windowInset.

    none
    
    windowScale?: number

    With windows scale, the factor each shared face is scaled by about its centroid for its window.

    0.5
    

    0.001

    0.999

    0.05

    windowInset?: number

    With windows inset, how far each edge of a shared face moves inward for its window, in model units.

    0.1
    

    0

    Infinity

    0.1

    wallWindows?: boolean

    With windows, whether the voids also open through the solid's own faces, in a box or a convex solid of planar faces.

    false
    

    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 that coincide, or with windows seeds closer than a hundred-thousandth of the solid's box diagonal: refuse them, or merge each into the first of them.

    refuse