Skip to main content

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

ParamType
radial_segmentsnumber

compute_shape_radius(shape, shape_length, cx, cy) ⇒ number

Kind: global function

ParamTypeDefault
shapeArray.<number>
shape_lengthnumber
cxnumber0
cynumber0

make_cap_round(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)

Kind: global function

ParamType
indexnumber
in_positionsFloat32Array | Array.<number>
in_normalsArray.<Vector3>
in_binormalsArray.<Vector3>
in_tangentsArray.<Vector3>
outStreamGeometryBuilder
shapeArray.<number>
shape_normalArray.<number> | Float32Array
shape_lengthnumber
shape_transformArray.<number>
directionnumber

make_cap_flat(index, in_positions, in_normals, in_binormals, in_tangents, out, shape, shape_normal, shape_length, shape_transform, direction)

Kind: global function

ParamType
indexnumber
in_positionsFloat32Array | Array.<number>
in_normalsArray.<Vector3>
in_binormalsArray.<Vector3>
in_tangentsArray.<Vector3>
outStreamGeometryBuilder
shapeArray.<number>
shape_normalArray.<number> | Float32Array
shape_lengthnumber
shape_transformArray.<number>
directionnumber

make_cap(index, in_positions, in_normals, in_binormals, out, in_tangents, shape, shape_normal, shape_length, shape_transform, direction, type)

Kind: global function

ParamType
indexnumber
in_positionsFloat32Array | Array.<number>
in_normalsArray.<Vector3>
in_binormalsArray.<Vector3>
outStreamGeometryBuilder
in_tangentsArray.<Vector3>
shapeArray.<number>
shape_normalArray.<number> | Float32Array
shape_lengthnumber
shape_transformArray.<number> | Float32Array
directionnumber
typeCapType

append_compute_cap_geometry_size(count, out, radial_segments, type)

Increases target geometry buffers to accommodate a given number of caps

Kind: global function

ParamTypeDescription
countnumberhow many caps
outObjectwhere to increment
radial_segmentsnumbernumber of lines that make up profile of the extruded shape
typeCapType