Class MeshSurface
java.lang.Object
org.jmol.util.MeshSurface
-
Field Summary
FieldsModifier and TypeFieldDescriptionT3[]shortshortbooleanbooleanbooleanprotected intprotected intprotected intbooleanbooleanbooleanintintintT3[]V3[]intintV3[]static final intstatic final intstatic final intintpolygon countshort[]polygon color index "colix" arrayint[][]polygon indexesintprotected static final intshortintBS[]intvertex countshort[]vertex color index "colix" arrayintint[]int[]T3[]verticesfloat[]vertex values -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaddPolygon(int[] polygon, BS bs) protected intaddPolygonC(int[] polygon, int color, BS bs, boolean isExplicit) voidaddQuad(int vertexA, int vertexB, int vertexC, int vertexD) voidaddTriangle(int vertexA, int vertexB, int vertexC) intaddTriangleCheck(int vertexA, int vertexB, int vertexC, int check, int iContour, int color) intintint[][]getFaces()floatstatic MeshSurfacegetSphereData(int lvl) Calculates the data (faces, vertices, normals) for a sphere.static floatgetSphericalInterpolationFraction(double r, double valueA, double valueB, double d) T3[]voidstatic MeshSurfacenewMesh(boolean isAlt, T3[] vertices, int vertexCount, int[][] polygonIndexes, T3[] normals, int nNormals) voidprotected int[]setABC(int i) voidsetBoundingBox(P3[] boundBoxPoints) voidvoidsetColix(short colix) voidsetColixBack(short colix) voidsetPolygonCount(int polygonCount) voidsetTranslucentVertices(BS bsVertices) Must create bsTransPolygons, polygonTranslucencies, and new triangle set for partially translucent polygonsprotected voidslabBrillouin(P3[] unitCellVectors) voidslabPolygonsList(Lst<Object[]> slabInfo, boolean allowCap)
-
Field Details
-
SEED_COUNT
protected static final int SEED_COUNT- See Also:
-
P_CHECK
public static final int P_CHECK- See Also:
-
P_CONTOUR
public static final int P_CONTOUR- See Also:
-
P_EXPLICIT_COLOR
public static final int P_EXPLICIT_COLOR- See Also:
-
vwr
-
oabc
-
meshType
-
vc
public int vcvertex count -
vs
vertices -
vvs
public float[] vvsvertex values -
vertexSource
public int[] vertexSource -
surfaceAtoms
-
pc
public int pcpolygon count -
pis
public int[][] pispolygon indexes -
colorsExplicit
public boolean colorsExplicit -
isDrawPolygon
public boolean isDrawPolygon -
haveQuads
public boolean haveQuads -
colix
public short colix -
colixBack
public short colixBack -
isColorSolid
public boolean isColorSolid -
offset
-
altVertices
-
pcs
public short[] pcspolygon color index "colix" array -
vcs
public short[] vcsvertex color index "colix" array -
normals
-
normalsTemp
-
normalCount
public int normalCount -
normixCount
public int normixCount -
bsPolygons
-
mat4
-
surfaceSet
-
vertexSets
public int[] vertexSets -
nSets
public int nSets -
dataOnly
public boolean dataOnly -
iA
protected int iA -
iB
protected int iB -
iC
protected int iC -
polygonCount0
public int polygonCount0 -
vertexCount0
public int vertexCount0 -
bsSlabDisplay
-
bsSlabGhost
-
slabMeshType
public int slabMeshType -
slabColix
public short slabColix -
bsDisplay
-
slabOptions
-
mergeVertexCount0
public int mergeVertexCount0 -
mergePolygonCount0
public int mergePolygonCount0 -
isMerged
public boolean isMerged
-
-
Constructor Details
-
MeshSurface
public MeshSurface()
-
-
Method Details
-
getMeshSlicer
-
newMesh
public static MeshSurface newMesh(boolean isAlt, T3[] vertices, int vertexCount, int[][] polygonIndexes, T3[] normals, int nNormals) -
getVertices
- Returns:
- The vertices.
-
getFaces
public int[][] getFaces()- Returns:
- faces, if defined (in exporter), otherwise polygonIndexes
-
setColix
public void setColix(short colix) -
setColixBack
public void setColixBack(short colix) -
addV
-
addTriangle
public void addTriangle(int vertexA, int vertexB, int vertexC) -
addQuad
public void addQuad(int vertexA, int vertexB, int vertexC, int vertexD) -
setPolygonCount
public void setPolygonCount(int polygonCount) -
addVCVal
-
addTriangleCheck
public int addTriangleCheck(int vertexA, int vertexB, int vertexC, int check, int iContour, int color) -
addPolygonC
-
addPolygon
-
invalidatePolygons
public void invalidatePolygons() -
setABC
protected int[] setABC(int i) -
setTranslucentVertices
Must create bsTransPolygons, polygonTranslucencies, and new triangle set for partially translucent polygons- Parameters:
bsVertices-
-
getSlabColor
-
getSlabType
-
resetSlab
public void resetSlab() -
slabPolygonsList
-
slabBrillouin
- Parameters:
unitCellVectors-
-
getResolution
public float getResolution() -
getSphereData
Calculates the data (faces, vertices, normals) for a sphere.- Parameters:
lvl-- Returns:
- The data.
-
setBox
-
setBoundingBox
- Parameters:
boundBoxPoints-
-
getSphericalInterpolationFraction
public static float getSphericalInterpolationFraction(double r, double valueA, double valueB, double d)
-