make_cap
Functions
- compute_cap_round_segment_count(radial_segments) ⇒
number
- compute_shape_radius(shape, shape_length, cx, cy) ⇒
number
- make_cap_round(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)
- make_cap_flat(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)
- make_cap(index, in_positions, in_normals, in_binormals, out, in_tangents, shape, shape_normal, shape_length, shape_transform, direction, type)
- append_compute_cap_geometry_size(count, out, radial_segments, type)
Increases target geometry buffers to accommodate a given number of caps
compute_cap_round_segment_count(radial_segments) ⇒ number
Kind: global function
Param | Type |
---|---|
radial_segments | number |
compute_shape_radius(shape, shape_length, cx, cy) ⇒ number
Kind: global function
Param | Type | Default |
---|---|---|
shape | Array.<number> | |
shape_length | number | |
cx | number | 0 |
cy | number | 0 |
make_cap_round(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)
Kind: global function
Param | Type |
---|---|
index | number |
in_positions | Float32Array | Array.<number> |
in_normals | Array.<Vector3> |
in_binormals | Array.<Vector3> |
in_tangents | Array.<Vector3> |
out | StreamGeometryBuilder |
shape | Array.<number> |
shape_normal | Array.<number> | Float32Array |
shape_length | number |
shape_transform | Array.<number> |
direction | number |
make_cap_flat(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)
Kind: global function
Param | Type |
---|---|
index | number |
in_positions | Float32Array | Array.<number> |
in_normals | Array.<Vector3> |
in_binormals | Array.<Vector3> |
in_tangents | Array.<Vector3> |
out | StreamGeometryBuilder |
shape | Array.<number> |
shape_normal | Array.<number> | Float32Array |
shape_length | number |
shape_transform | Array.<number> |
direction | number |
make_cap(index, in_positions, in_normals, in_binormals, out, in_tangents, shape, shape_normal, shape_length, shape_transform, direction, type)
Kind: global function
Param | Type |
---|---|
index | number |
in_positions | Float32Array | Array.<number> |
in_normals | Array.<Vector3> |
in_binormals | Array.<Vector3> |
out | StreamGeometryBuilder |
in_tangents | Array.<Vector3> |
shape | Array.<number> |
shape_normal | Array.<number> | Float32Array |
shape_length | number |
shape_transform | Array.<number> | Float32Array |
direction | number |
type | CapType |
append_compute_cap_geometry_size(count, out, radial_segments, type)
Increases target geometry buffers to accommodate a given number of caps
Kind: global function
Param | Type | Description |
---|---|---|
count | number | how many caps |
out | Object | where to increment |
radial_segments | number | number of lines that make up profile of the extruded shape |
type | CapType |