Package org.jmol.util
Class Normix
- java.lang.Object
-
- org.jmol.util.Normix
-
public class Normix extends java.lang.Object
Provides quantization of normalized vectors so that shading for lighting calculations can be handled by a simple index lookupA 'normix' is a normal index, represented as a short
- Author:
- Miguel, miguel@jmol.org
-
-
Field Summary
Fields Modifier and Type Field Description private static short[]
inverseNormixes
private static short[][]
neighborVertexesArrays
private static int
NORMIX_GEODESIC_LEVEL
static short
NORMIX_NULL
private static short
normixCount
private static javajs.util.V3[]
vertexVectors
-
Constructor Summary
Constructors Constructor Description Normix()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static short
get2SidedNormix(javajs.util.V3 v, BS bsTemp)
static short
getInverseNormix(short normix)
private static short[][]
getNeighborVertexArrays()
private static short
getNormix(double x, double y, double z, int geodesicLevel, BS bsConsidered)
static short
getNormixCount()
static short
getNormixV(javajs.util.V3 v, BS bsTemp)
static javajs.util.V3[]
getVertexVectors()
static BS
newVertexBitSet()
static void
setInverseNormixes()
-
-
-
Field Detail
-
NORMIX_GEODESIC_LEVEL
private static final int NORMIX_GEODESIC_LEVEL
- See Also:
- Constant Field Values
-
normixCount
private static short normixCount
-
vertexVectors
private static javajs.util.V3[] vertexVectors
-
inverseNormixes
private static short[] inverseNormixes
-
neighborVertexesArrays
private static short[][] neighborVertexesArrays
-
NORMIX_NULL
public static final short NORMIX_NULL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getNormixCount
public static short getNormixCount()
-
newVertexBitSet
public static BS newVertexBitSet()
-
getVertexVectors
public static javajs.util.V3[] getVertexVectors()
-
setInverseNormixes
public static void setInverseNormixes()
-
getInverseNormix
public static short getInverseNormix(short normix)
-
getNeighborVertexArrays
private static short[][] getNeighborVertexArrays()
-
getNormixV
public static short getNormixV(javajs.util.V3 v, BS bsTemp)
-
get2SidedNormix
public static short get2SidedNormix(javajs.util.V3 v, BS bsTemp)
-
getNormix
private static short getNormix(double x, double y, double z, int geodesicLevel, BS bsConsidered)
-
-