Bitbybit Docs
    Preparing search index...

    Class VoronoiPerforateDto<F> (Inputs.OCCT)

    A planar face and seeds for patterns.voronoi.perforate and patterns.voronoi.perforateWithReport, which make a hole of each seed's cell, shrunk by a scale or an inset and rounded at its corners.

    Type Parameters

    • F
    Index

    Constructors

    Properties

    face: F

    The planar face to perforate, holes of its own included. A face that is not planar is refused.

    undefined
    

    The points whose cells become holes, one hole 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.

    []
    
    factors?: number[]

    Per-seed values for scale or inset: scales from 0 to 1, closed up to 0.001 and opened at most to 0.999, or insets of at least the face's tolerance.

    []
    

    Whether each hole is its cell scaled about the cell's centroid, or its cell with every edge moved inward by inset.

    scale
    
    scale?: number

    With shrink scale, the factor each cell is scaled by, from 0.001 to 0.999; a hole's area is its cell's times the factor squared.

    0.8
    

    0.001

    0.999

    0.05

    inset?: number

    With shrink inset, how far each edge of a cell moves inward, in model units, at least the face's tolerance; bars between neighbouring holes are twice as wide.

    0.1
    

    0

    Infinity

    0.1

    radius?: number

    The radius each hole's corners are rounded to, in model units; a corner too tight for it takes the largest radius that fits. 0 leaves corners sharp.

    0
    

    0

    Infinity

    0.1

    margin?: number

    The least distance a hole keeps from the face's outline and its own holes, in model units. A hole that would come closer is left out.

    0
    

    0

    Infinity

    0.1

    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: refuse them, or merge each into the first of them.

    refuse