Bitbybit Docs
    Preparing search index...

    Class VoronoiCells2dDto<F> (Inputs.OCCT)

    A planar face and seeds for patterns.voronoi.cells2d and patterns.voronoi.cells2dWithReport, which split the face into the seeds' Voronoi cells, as faces or as edges.

    Type Parameters

    • F
    Index

    Constructors

    Properties

    face: F

    The planar face the cells fill. Its edges may be curved and it may have holes; a face that is not planar is refused.

    undefined
    

    The points the cells grow from, one cell a seed. Seeds off the face's plane are projected onto it along its normal.

    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.

    []
    

    Whether to build one face a cell, or the cells' edges with each edge two cells share made once.

    faces
    
    walls?: boolean

    With edges, whether to also build the pieces of the face's boundary that close the cells. Faces come out the same either way.

    true
    

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

    refuse
    
    coincidentSeeds?: voronoiCoincidentSeedsEnum

    What to do with seeds that coincide, or for edges lie closer than a millionth of the face's diagonal: refuse them, or merge each into the first of them.

    refuse