Bitbybit Docs
    Preparing search index...

    Class VoronoiDelaunay2dDto<F> (Inputs.OCCT)

    A planar face and seeds for patterns.voronoi.delaunay2d and patterns.voronoi.delaunay2dWithReport, which join the seeds whose Voronoi cells meet in the face, by edges or by triangles.

    Type Parameters

    • F
    Index

    Constructors

    Properties

    face: F

    The planar face the seeds' cells are cut to: two seeds are joined only where their cells meet inside it. A face that is not planar is refused.

    undefined
    

    The points to join, one cell a seed. Seeds off the face's plane are projected onto it along its normal, and the edges and triangles join the projections.

    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 an edge between every two seeds whose cells share an edge, or a triangle between every three whose cells meet at a point.

    edges
    

    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 closer than a millionth of the face's diagonal: refuse them, or merge each into the first of them.

    refuse