Bitbybit Docs
    Preparing search index...

    Class VoronoiCells3dDto<T> (Inputs.OCCT)

    A solid and seeds for patterns.voronoi.cells3d and patterns.voronoi.cells3dWithReport, which split the solid into the seeds' Voronoi cells, as solids, faces or edges.

    Type Parameters

    • T
    Index

    Constructors

    Properties

    shape: T

    The solid the cells fill, or a shape holding solids. Solids take any; faces and edges need one convex solid of planar faces, such as a box.

    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.

    []
    

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

    solids
    
    walls?: boolean

    With faces or edges, whether to also build those lying on the solid's boundary. Solids come out the same either way.

    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 that coincide, or for faces and edges lie closer than a hundred-thousandth of the solid's box diagonal: refuse them, or merge each into the first.

    refuse