ArrowGenerator
-
class
cee.utils.ArrowGenerator() Helper class to tesselate an arrow
Constructors
Properties
Methods
Methods
configure
-
ArrowGenerator.configure(config) Arguments: - config (
ArrowGeneratorConfig) – None
Specify the arrow by providing its relative proportions.
Return type: void - config (
fillVerticesIndices
-
ArrowGenerator.fillVerticesIndices(vertices, indices) Arguments: - vertices (
Float32Array) – The vertices in the format x,y,z,x,y,z,… - indices (
[number]) – The indices for the vertices
Fills the members
m_verticesandm_indicesof this class.Return type: void - vertices (
generateReverse
-
ArrowGenerator.generateReverse() Generate the reverse arrow, with the arrow head pointing into the origin.
Return type: void
getIndices
-
ArrowGenerator.getIndices() Get the indices of triangles needed to render the solid object
Return type: [number]