Bitbybit Docs
    Preparing search index...

    Class VoronoiBeams3dDto<T> (Inputs.OCCT)

    A convex solid and seeds for patterns.voronoi.beams3d and patterns.voronoi.beams3dWithReport, which put a beam on every edge of the seeds' Voronoi cells, with a sphere at each node.

    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.

    []
    
    sizes?: number[]

    One radius a seed for radius, at least a ten-millionth; a beam takes the mean of the cells around its edge, 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 solid's boundary.

    true
    

    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