Bitbybit Docs
    Preparing search index...

    Class VoronoiSeedsSharedDto<T>Abstract (Inputs.OCCT)

    How to place seeds and grade their spacing, shared by patterns.voronoi.seeds2d and patterns.voronoi.seeds3d.

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    How the seeds are placed: uniformly at random, on a jittered grid, or evenly spaced by Poisson sampling.

    random
    
    count?: number

    With random, how many seeds to place.

    100
    

    0

    1000000

    1

    spacing?: number

    With grid, the distance between neighbouring grid points, in model units.

    0.1
    

    0.0000001

    Infinity

    0.1

    jitter?: number

    With grid, how far each seed moves from its grid point at random, as a share of spacing from 0 to 1.

    0
    

    0

    1

    0.05

    maxSpacing?: number

    With poisson, the spacing between seeds where the affectors' field is 0, in model units.

    0.1
    

    0.0000001

    Infinity

    0.1

    minSpacing?: number

    With poisson, the spacing where the field is 1, in model units. Left out, it is maxSpacing, so the spacing is even.

    undefined
    

    true

    0.0000001

    Infinity

    0.1

    relax?: number

    How many rounds of Lloyd relaxation move each seed to its cell's centre, evening the cells out; at most 100.

    0
    

    0

    100

    1

    seed?: number

    The number the random draws start from; the same number gives the same seeds.

    0
    

    0

    9007199254740991

    1

    fieldResolution?: number

    With poisson and affectors, how many points along the longest side the field is sampled at, from 2 to 256; 0 reads it exactly, which is slower.

    32
    

    0

    256

    1

    affectors?: VoronoiAffector<T>[]

    The affectors that grade the poisson spacing, each made by patterns.voronoi.affector.

    []
    

    How the influences of several affectors combine at a point.

    max