Interface: TubeFromPointsOptions
Defined in: src/mobjects/three-d/TubeFromPoints.ts:9
Options for creating a TubeFromPoints.
Properties
capped?
optionalcapped: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?
optionalclosed:boolean
Defined in: src/mobjects/three-d/TubeFromPoints.ts:19
Close the curve into a loop. Default: false
color?
optionalcolor:string
Defined in: src/mobjects/three-d/TubeFromPoints.ts:15
Color as a CSS color string. Default: '#cccccc'
opacity?
optionalopacity: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?
optionalradialSegments:number
Defined in: src/mobjects/three-d/TubeFromPoints.ts:23
Segments around the cross-section. Default: 12
radius?
optionalradius:number
Defined in: src/mobjects/three-d/TubeFromPoints.ts:13
Tube radius. Default: 0.1
smoothing?
optionalsmoothing:number
Defined in: src/mobjects/three-d/TubeFromPoints.ts:25
Segments per span used when tubularSegments is not given. Default: 6
tubularSegments?
optionaltubularSegments:number
Defined in: src/mobjects/three-d/TubeFromPoints.ts:21
Segments along the curve. Default: smoothing * (points.length - 1)