makeTubeGeometry
Functions
- makeTubeGeometry(in_positions, in_normals, in_binormals, in_tangents, shape, shape_normal, shape_length, shape_transform, [closed], [cap_type]) ⇒
BufferGeometry
- compute_bend_normal(out, index, index_count, positions)
makeTubeGeometry(in_positions, in_normals, in_binormals, in_tangents, shape, shape_normal, shape_length, shape_transform, [closed], [cap_type]) ⇒ BufferGeometry
Kind: global function
See
- https://github.com/mrdoob/three.js/blob/master/src/geometries/TubeGeometry.js
- https://github.com/hofk/THREEg.js/blob/488f1128a25321a76888aa1fa19db64750318444/THREEg.js#L3483
Param | Type |
---|---|
in_positions | Float32Array | Array.<number> |
in_normals | Array.<Vector3> |
in_binormals | Array.<Vector3> |
in_tangents | Array.<Vector3> |
shape | Array.<number> |
shape_normal | Array.<number> | Float32Array |
shape_length | number |
shape_transform | Array.<number> | Float32Array |
[closed] | boolean |
[cap_type] | CapType |
makeTubeGeometry~generateSegment(i)
Kind: inner method of makeTubeGeometry
Param | Type |
---|---|
i | number |
compute_bend_normal(out, index, index_count, positions)
Kind: global function
Param | Type |
---|---|
out | Array.<number> | Float32Array |
index | number |
index_count | number |
positions | Array.<number> | Float32Array |