Package jme3utilities.debug
Enum Class SphereMeshes
- All Implemented Interfaces:
Serializable,Comparable<SphereMeshes>,Constable
Enumerate mesh options for visualizing spheres.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIcosphere with numRefineSteps=1 (42 vertices)LoopMesh with 32 vertices (wants Y-axis billboarding)Octasphere with numRefineSteps=2 (66 vertices)com.jme3.scene.shape.Sphere with 172 verticescom.jme3.scene.debug.WireSphere (360 vertices) -
Method Summary
Modifier and TypeMethodDescriptionbooleanisInstance(com.jme3.scene.Mesh mesh) Test whether the specified Mesh has the corresponding type.com.jme3.scene.MeshmakeSphere(float radius, boolean wantNormals, boolean wantUVs) Instantiate a new Mesh.static SphereMeshesReturns the enum constant of this class with the specified name.static SphereMeshes[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Icosphere
Icosphere with numRefineSteps=1 (42 vertices) -
LoopMesh
LoopMesh with 32 vertices (wants Y-axis billboarding) -
Octasphere
Octasphere with numRefineSteps=2 (66 vertices) -
PoleSphere
com.jme3.scene.shape.Sphere with 172 vertices -
WireSphere
com.jme3.scene.debug.WireSphere (360 vertices)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isInstance
public boolean isInstance(com.jme3.scene.Mesh mesh) Test whether the specified Mesh has the corresponding type.- Parameters:
mesh- (unaffected)- Returns:
- true if the correct type, otherwise false
-
makeSphere
public com.jme3.scene.Mesh makeSphere(float radius, boolean wantNormals, boolean wantUVs) Instantiate a new Mesh.- Parameters:
radius- the desired radius (in mesh units, >0)wantNormals- true to include normals, false to exclude themwantUVs- true to include texture coordinates, false to exclude them- Returns:
- a new Mesh of the corresponding type
-