Constructor
new FiberTube(fiber, parametersopt)
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
fiber |
FiberSource | Reference fiber. | |||||||||||||||||||||
parameters |
Object |
<optional> |
Optional parameters
Properties
|
Properties:
Name | Type | Description |
---|---|---|
mesh |
THREE.Mesh | Mesh containing the fiber's tubular shape. Ready for scene .add. |
fiber |
FiberSource | Reference to source fiber object. |
color |
THREE.Color | Color of the tube. |
axialSegments |
Number | Amount of segments to feature in the tube mesh. |
radialSegments |
Number | Amount of radial segments to feature in the tube mesh. |
- Source:
Methods
(static) refresh()
Updates tube shape and position from self properties. Must be fired when those change.
- Source: