Package org.jmol.util
Class Normix
java.lang.Object
org.jmol.util.Normix
Provides quantization of normalized vectors so that shading for
lighting calculations can be handled by a simple index lookup
A 'normix' is a normal index, represented as a short
- Author:
- Miguel, miguel@jmol.org
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static short[]private static short[][]private static final intstatic final shortprivate static shortprivate static javajs.util.V3[] -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic shortget2SidedNormix(javajs.util.V3 v, javajs.util.BS bsTemp) static shortgetInverseNormix(short normix) private static short[][]private static shortgetNormix(double x, double y, double z, int geodesicLevel, javajs.util.BS bsConsidered) static shortstatic shortgetNormixV(javajs.util.V3 v, javajs.util.BS bsTemp) static javajs.util.V3[]static javajs.util.BSstatic void
-
Field Details
-
NORMIX_GEODESIC_LEVEL
private static final int NORMIX_GEODESIC_LEVEL- See Also:
-
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:
-
-
Constructor Details
-
Normix
public Normix()
-
-
Method Details
-
getNormixCount
public static short getNormixCount() -
newVertexBitSet
public static javajs.util.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, javajs.util.BS bsTemp) -
get2SidedNormix
public static short get2SidedNormix(javajs.util.V3 v, javajs.util.BS bsTemp) -
getNormix
private static short getNormix(double x, double y, double z, int geodesicLevel, javajs.util.BS bsConsidered)
-