Skip to main content

Interface: TubeFromPointsOptions

Defined in: src/mobjects/three-d/TubeFromPoints.ts:9

Options for creating a TubeFromPoints.

Properties​

capped?​

optional capped: boolean

Defined in: src/mobjects/three-d/TubeFromPoints.ts:33

Close an open tube with round (hemisphere) ends, so the mesh is watertight (needed by an inverted-hull outline). The capped mesh also carries the reveal attribute (arc-length fraction, 0 at the first point) and its triangles are sorted along the curve, so a draw-range reveal grows the tube from start to end. Ignored when closed. Default: false


closed?​

optional closed: boolean

Defined in: src/mobjects/three-d/TubeFromPoints.ts:19

Close the curve into a loop. Default: false


color?​

optional color: string

Defined in: src/mobjects/three-d/TubeFromPoints.ts:15

Color as a CSS color string. Default: '#cccccc'


opacity?​

optional opacity: number

Defined in: src/mobjects/three-d/TubeFromPoints.ts:17

Opacity from 0 to 1. Default: 1


points​

points: Vector3Tuple[]

Defined in: src/mobjects/three-d/TubeFromPoints.ts:11

Control points [x, y, z] the tube passes through. At least two.


radialSegments?​

optional radialSegments: number

Defined in: src/mobjects/three-d/TubeFromPoints.ts:23

Segments around the cross-section. Default: 12


radius?​

optional radius: number

Defined in: src/mobjects/three-d/TubeFromPoints.ts:13

Tube radius. Default: 0.1


smoothing?​

optional smoothing: number

Defined in: src/mobjects/three-d/TubeFromPoints.ts:25

Segments per span used when tubularSegments is not given. Default: 6


tubularSegments?​

optional tubularSegments: number

Defined in: src/mobjects/three-d/TubeFromPoints.ts:21

Segments along the curve. Default: smoothing * (points.length - 1)