Package org.jmol.shape
Class Mesh
java.lang.Object
org.jmol.util.MeshSurface
org.jmol.shape.Mesh
- Direct Known Subclasses:
DrawMesh,IsosurfaceMesh
-
Field Summary
FieldsModifier and TypeFieldDescriptionintprotected javajs.util.BSintintbooleanintint[]intbooleanbooleanbooleanbooleanbooleanintbooleanbooleanbooleanbooleanbooleanjavajs.util.P3intjavajs.util.Lst<javajs.util.P3[]>shortintprivate booleanshort[]static final Stringjavajs.util.P3booleanbooleanfloatbooleanbooleanbooleanshort[]short[][]javajs.util.M4[]String[]booleanjavajs.util.V3intbooleanfloatjavajs.util.V3floatFields inherited from class org.jmol.util.MeshSurface
altVertices, bsDisplay, bsPolygons, bsSlabDisplay, bsSlabGhost, colix, colixBack, colorsExplicit, dataOnly, haveQuads, iA, iB, iC, isColorSolid, isDrawPolygon, isMerged, mat4, mergePolygonCount0, mergeVertexCount0, meshType, normalCount, normals, normalsTemp, normixCount, nSets, oabc, offset, P_CHECK, P_CONTOUR, P_EXPLICIT_COLOR, pc, pcs, pis, polygonCount0, SEED_COUNT, slabColix, slabMeshType, slabOptions, surfaceAtoms, surfaceSet, vc, vcs, vertexCount0, vertexSets, vertexSource, vs, vvs, vwr -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckWithin(javajs.util.T3 pti, javajs.util.Lst<javajs.util.P3> withinPoints, float withinDistance2, boolean isWithinNot) voidvoidprivate voidflipLighting(int lighting) javajs.util.P3[]protected ObjectgetInfo(boolean isAll) protected floatjavajs.util.V3[]getNormals(javajs.util.T3[] vertices, javajs.util.P4 plane) javajs.util.V3[]javajs.util.P3[]getOffsetVertices(javajs.util.P4 thePlane) protected StringintgetVertexIndexFromNumber(int vertexIndex) protected javajs.util.BSjavajs.util.BSvoidinitialize(int lighting, javajs.util.T3[] vertices, javajs.util.P4 plane) private voidprivate static int[][]nonNull(int[][] pis, int pc) private static javajs.util.BSnonNullBS(javajs.util.BS bsSlabDisplay, int[][] pis, int pc) voidrotateTranslate(javajs.util.Quat q, javajs.util.T3 offset, boolean isAbsolute) voidsetLighting(int lighting) short[]setNormixes(javajs.util.V3[] normals) voidsetShowWithin(javajs.util.Lst<javajs.util.P3> showWithinPoints, float showWithinDistance2, boolean isWithinNot) voidsetTokenProperty(int tokProp, boolean bProp) voidsetTranslucent(boolean isTranslucent, float iLevel) voidsetVisibilityFlags(int n) protected voidsumVertexNormals(javajs.util.T3[] vertices, javajs.util.V3[] normals) protected static voidsumVertexNormals2(Mesh m, javajs.util.T3[] vertices, javajs.util.V3[] normals) Methods inherited from class org.jmol.util.MeshSurface
addPolygon, addPolygonC, addQuad, addTriangle, addTriangleCheck, addV, addVCVal, getFaces, getMeshSlicer, getResolution, getSlabColor, getSlabType, getSphereData, getSphericalInterpolationFraction, getVertices, invalidatePolygons, newMesh, resetSlab, setABC, setBoundingBox, setBox, setColix, setColixBack, setPolygonCount, setTranslucentVertices, slabBrillouin, slabPolygonsList
-
Field Details
-
PREVIOUS_MESH_ID
- See Also:
-
title
-
meshColix
public short meshColix -
normixes
public short[] normixes -
lineData
public javajs.util.Lst<javajs.util.P3[]> lineData -
thisID
-
isValid
public boolean isValid -
scriptCommand
-
colorCommand
-
lattice
public javajs.util.P3 lattice -
symops
public javajs.util.M4[] symops -
symopNormixes
public short[][] symopNormixes -
visible
public boolean visible -
lighting
public int lighting -
colorType
public int colorType -
reverseColor
public boolean reverseColor -
haveXyPoints
public boolean haveXyPoints -
diameter
public int diameter -
width
public float width -
ptCenter
public javajs.util.P3 ptCenter -
linkedMesh
-
vertexColorMap
-
vAB
public javajs.util.V3 vAB -
vTemp
public javajs.util.V3 vTemp -
color
public int color -
useColix
public boolean useColix -
unitCell
-
scale3d
public float scale3d -
index
public int index -
atomIndex
public int atomIndex -
modelIndex
public int modelIndex -
visibilityFlags
public int visibilityFlags -
insideOut
public boolean insideOut -
checkByteCount
public int checkByteCount -
normalsInverted
private boolean normalsInverted -
showContourLines
public boolean showContourLines -
showPoints
public boolean showPoints -
drawTriangles
public boolean drawTriangles -
fillTriangles
public boolean fillTriangles -
showTriangles
public boolean showTriangles -
frontOnly
public boolean frontOnly -
isShell
public boolean isShell -
isTwoSided
public boolean isTwoSided -
havePlanarContours
public boolean havePlanarContours -
bsTemp
protected javajs.util.BS bsTemp -
colorDensity
public boolean colorDensity -
cappingObject
-
slabbingObject
-
volumeRenderPointSize
public float volumeRenderPointSize -
connectedAtoms
public int[] connectedAtoms -
isModelConnected
public boolean isModelConnected -
recalcAltVertices
public boolean recalcAltVertices -
symopColixes
public short[] symopColixes
-
-
Constructor Details
-
Mesh
public Mesh()always use Mesh().mesh1(thisID, colix, index)
-
-
Method Details
-
setVisibilityFlags
public void setVisibilityFlags(int n) -
mesh1
-
clear
-
clearMesh
-
initialize
public void initialize(int lighting, javajs.util.T3[] vertices, javajs.util.P4 plane) -
setNormixes
public short[] setNormixes(javajs.util.V3[] normals) -
getNormals
public javajs.util.V3[] getNormals(javajs.util.T3[] vertices, javajs.util.P4 plane) -
setLighting
public void setLighting(int lighting) -
flipLighting
private void flipLighting(int lighting) -
invertNormixes
private void invertNormixes() -
setTranslucent
public void setTranslucent(boolean isTranslucent, float iLevel) -
sumVertexNormals
protected void sumVertexNormals(javajs.util.T3[] vertices, javajs.util.V3[] normals) -
sumVertexNormals2
protected static void sumVertexNormals2(Mesh m, javajs.util.T3[] vertices, javajs.util.V3[] normals) -
getMinDistance2ForVertexGrouping
protected float getMinDistance2ForVertexGrouping() -
getState
-
getRendering
-
getOffsetVertices
public javajs.util.P3[] getOffsetVertices(javajs.util.P4 thePlane) -
setShowWithin
public void setShowWithin(javajs.util.Lst<javajs.util.P3> showWithinPoints, float showWithinDistance2, boolean isWithinNot) - Parameters:
showWithinPoints-showWithinDistance2-isWithinNot-
-
checkWithin
public static boolean checkWithin(javajs.util.T3 pti, javajs.util.Lst<javajs.util.P3> withinPoints, float withinDistance2, boolean isWithinNot) -
getVertexIndexFromNumber
public int getVertexIndexFromNumber(int vertexIndex) -
getVisibleVertexBitSet
public javajs.util.BS getVisibleVertexBitSet() -
getVisibleVBS
protected javajs.util.BS getVisibleVBS() -
setTokenProperty
public void setTokenProperty(int tokProp, boolean bProp) -
getInfo
-
nonNullBS
private static javajs.util.BS nonNullBS(javajs.util.BS bsSlabDisplay, int[][] pis, int pc) -
nonNull
private static int[][] nonNull(int[][] pis, int pc) -
getBoundingBox
public javajs.util.P3[] getBoundingBox() -
getUnitCell
- Returns:
- unitcell
-
rotateTranslate
public void rotateTranslate(javajs.util.Quat q, javajs.util.T3 offset, boolean isAbsolute) -
getNormalsTemp
public javajs.util.V3[] getNormalsTemp()
-