Package gaiasky.util.gdx
Class OctahedronSphereCreator
- java.lang.Object
-
- gaiasky.util.gdx.ModelCreator
-
- gaiasky.util.gdx.OctahedronSphereCreator
-
public class OctahedronSphereCreator extends ModelCreator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class gaiasky.util.gdx.ModelCreator
ModelCreator.Face, ModelCreator.IFace
-
-
Field Summary
-
Fields inherited from class gaiasky.util.gdx.ModelCreator
faces, flipNormals, hardEdges, index, name, normals, uv, vertices
-
-
Constructor Summary
Constructors Constructor Description OctahedronSphereCreator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addUV(java.util.Set<java.lang.Integer> seam)
Implements the spherical UV mappingprotected int
addVertex(com.badlogic.gdx.math.Vector3 p, float radius)
Adds a vertex and its UV mapping.OctahedronSphereCreator
create(float radius, int divisions, boolean flipNormals, boolean hardEdges)
-
Methods inherited from class gaiasky.util.gdx.ModelCreator
addFace, dumpObj, flip
-
-
-
-
Method Detail
-
addVertex
protected int addVertex(com.badlogic.gdx.math.Vector3 p, float radius)
Adds a vertex and its UV mapping.- Parameters:
p
- The point.radius
- The radius.- Returns:
-
addUV
protected void addUV(java.util.Set<java.lang.Integer> seam)
Implements the spherical UV mapping
-
create
public OctahedronSphereCreator create(float radius, int divisions, boolean flipNormals, boolean hardEdges)
-
-