SphereGenerator
-
class
cee.utils.
SphereGenerator
() Helper class to tesselate a sphere
Useful when result values need to be mapped onto a set of 3D points defining a sphere. See the method
createCuttingSolid
in the example in Examples/DemoAppUg on how to do that.
Constructors
Properties
Methods
configure
-
SphereGenerator.
configure
(config) Arguments: - config (
SphereGeneratorConfig
) – None
Sets up the sphere parameters.
Return type: void - config (
fillVerticesIndices
-
SphereGenerator.
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_vertices
andm_indices
of this class.Return type: void - vertices (
generate
-
SphereGenerator.
generate
() Generates the sphere, using the previously provided configuration.
Return type: void
getIndices
-
SphereGenerator.
getIndices
() Get the indices of triangles needed to render the solid object
Return type: [number]