Class SphereCreator
java.lang.Object
gaiasky.util.gdx.ModelCreator
gaiasky.util.gdx.SphereCreator
-
Nested Class Summary
Nested classes/interfaces inherited from class ModelCreator
ModelCreator.Face, ModelCreator.IFaceModifier and TypeClassDescriptionclassContains the index info for a face.static interface -
Field Summary
Fields inherited from class ModelCreator
binormals, faces, flipNormals, hardEdges, index, name, normals, tangents, uv, vertices -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcreate(IntIntMeshBuilder builder, com.badlogic.gdx.math.Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, boolean flipNormals, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo) Methods inherited from class ModelCreator
addFace, addVertex, dumpObj, flipModifier and TypeMethodDescriptionprotected voidaddFace(List<ModelCreator.IFace> faces, boolean flipNormals, int... v) protected intaddVertex(com.badlogic.gdx.math.Vector3 p) Adds a vertex.voiddumpObj(OutputStream os) Exports the model to the .obj (Wavefront) format in the given output stream.protected int[]flip(int[] v, int startIndex)
-
Constructor Details
-
SphereCreator
public SphereCreator()
-
-
Method Details
-
create
public static void create(IntIntMeshBuilder builder, com.badlogic.gdx.math.Matrix4 transform, float width, float height, float depth, int divisionsU, int divisionsV, boolean flipNormals, float angleUFrom, float angleUTo, float angleVFrom, float angleVTo)
-