Package org.jmol.util
Class Geodesic
java.lang.Object
org.jmol.util.Geodesic
J2SRequireImport is needed because we use ArrayUtil in a static method
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static int
private static short[][]
private static final short[]
private static final float
private static final int
private static short[][]
private static final short[]
private static final float
private static final float
static final int
3 levels, 0 through 3private static final boolean
private static short[]
private static short
private static javajs.util.V3[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
addNeighboringVertexes
(short[] neighborVertexes, short v1, short v2) static void
createGeodesic
(int lvl) static short[]
getFaceVertexes
(int level) static short[][]
private static short
getVertex
(short v1, short v2) static short
getVertexCount
(int level) static javajs.util.V3
getVertexVector
(int i) static javajs.util.V3[]
private static void
quadruple
(int level, short[] counts)
-
Field Details
-
halfRoot5
private static final float halfRoot5 -
oneFifth
private static final float oneFifth- See Also:
-
oneTenth
private static final float oneTenth- See Also:
-
faceVertexesIcosahedron
private static final short[] faceVertexesIcosahedron -
neighborVertexesIcosahedron
private static final short[] neighborVertexesIcosahedron -
standardLevel
public static final int standardLevel3 levels, 0 through 3- See Also:
-
maxLevel
private static final int maxLevel- See Also:
-
vertexCounts
private static short[] vertexCounts -
vertexVectors
private static javajs.util.V3[] vertexVectors -
faceVertexesArrays
private static short[][] faceVertexesArrays -
neighborVertexesArrays
private static short[][] neighborVertexesArrays -
currentLevel
private static int currentLevel -
vertexNext
private static short vertexNext -
htVertex
-
VALIDATE
private static final boolean VALIDATE- See Also:
-
-
Constructor Details
-
Geodesic
public Geodesic()
-
-
Method Details
-
getNeighborVertexesArrays
public static short[][] getNeighborVertexesArrays() -
getVertexCount
public static short getVertexCount(int level) -
getVertexVectors
public static javajs.util.V3[] getVertexVectors() -
getVertexVector
public static javajs.util.V3 getVertexVector(int i) -
getFaceVertexes
public static short[] getFaceVertexes(int level) -
createGeodesic
public static void createGeodesic(int lvl) -
quadruple
private static void quadruple(int level, short[] counts) -
addNeighboringVertexes
private static void addNeighboringVertexes(short[] neighborVertexes, short v1, short v2) -
getVertex
private static short getVertex(short v1, short v2)
-