Bitbybit Docs
    Preparing search index...

    Class VoronoiCompSolidDto<T> (Inputs.OCCT)

    A convex solid and seeds for patterns.voronoi.compSolid, which builds the seeds' Voronoi cells as one compsolid whose cells share every face they meet along.

    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.

    []
    

    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