Class: AxGeosphereGeometry

AxGeosphereGeometry(result, radius, subDivisions)

new AxGeosphereGeometry(result, radius, subDivisions)

Creates a sphere (geosphere) with the given radius and number of subdivisions, starting from an icosahedron New mesh vertices are created with their position filled New mesh indices are created
Parameters:
Name Type Description
result AxDeviceMesh The mesh in which to create the sphere
radius Number The radius of the sphere
subDivisions Integer The number of subdivisions to apply to the polygons of the sphere
Source:

Methods

GetEdgeSubIndex(edgeIndex1, edgeIndex2) → {Integer}

Gets the third index of a triangle polygon from two given indices of that polygon
Parameters:
Name Type Description
edgeIndex1 Integer The first index of the triangle
edgeIndex2 Integer The second index of the triangle
Source:
Returns:
The third index of the triangle
Type
Integer

SubDivideTriangle(triangleIndex, subLevel)

Subdivides a triangle recursively
Parameters:
Name Type Description
triangleIndex Number The index of the triangle to subdivide
subLevel Number The number of subdivisions
Source:

Documentation generated by JSDoc 3.5.3 on Wed Jan 17 2018 17:06:57 GMT+0200 (FLE Standard Time)