Skip to main content

Interface: TubeLatticeOptions

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:47

Options for TubeNetwork3D.lattice: a seeded, jittered lattice net.

Properties​

center?​

optional center: Vector3Tuple

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:51

Center of the region. Default: [0, 0, 0]


diagonals?​

optional diagonals: number

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:59

Probability to add a diagonal across each XY cell. Default: 0.3


dropout?​

optional dropout: number

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:57

Probability to drop each lattice edge (opens irregular holes). Default: 0.15


jitter?​

optional jitter: number

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:55

Random node offset as a fraction of the spacing. Default: 0.35


seed?​

optional seed: number

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:63

Seed. Default: 1


shape?​

optional shape: "box" | "ellipsoid"

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:61

Region shape: the box, or the ellipsoid inscribed in it. Default: 'box'


size?​

optional size: Vector3Tuple

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:49

Size of the region [x, y, z]. A small z gives a single sheet. Default: [3, 3, 0.2]


spacing?​

optional spacing: number

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:53

Lattice spacing. Default: 0.4


warp()?​

optional warp: (p) => Vector3Tuple

Defined in: src/mobjects/three-d/TubeNetwork3D.ts:65

Optional map applied to every node position (e.g. wrap the sheet onto a shell).

Parameters​

p​

Vector3Tuple

Returns​

Vector3Tuple