Bitbybit Docs
    Preparing search index...

    Class VoronoiBeams2dDto<F> (Inputs.OCCT)

    A planar face and seeds for patterns.voronoi.beams2d and patterns.voronoi.beams2dWithReport, which put a beam on every edge of the seeds' Voronoi cells, with a sphere at each node.

    Type Parameters

    • F
    Index

    Constructors

    Properties

    face: F

    The planar face the cells fill. Its edges may be curved and it may have holes; curved pieces of its boundary get no beam.

    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.

    []
    
    sizes?: number[]

    One radius a seed for radius, at least a ten-millionth; a beam takes the mean of the cells it lies between, so a field can grade the beams.

    []
    
    radius?: number

    The radius of every beam, in model units, at least a ten-millionth.

    0.05
    

    0.0000001

    Infinity

    0.01

    sides?: number

    0 for round beams, or from 3 to 12 for beams with that many flat sides.

    0
    

    0

    12

    1

    nodeRadius?: number

    The radius of the sphere at each node, in model units, 0 for none. Left out, each node takes the radius of its widest beam.

    undefined
    

    true

    0

    Infinity

    0.01

    Whether to build the beams and spheres as solids, or only the edges the beams follow.

    solids
    
    walls?: boolean

    Whether to also put beams on the cells' edges that lie on the face's boundary.

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

    refuse