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 TypeFieldDescriptionint
protected BS
int
int
boolean
int
int[]
int
boolean
boolean
boolean
boolean
boolean
int
boolean
boolean
boolean
boolean
boolean
int
short
int
short[]
static final String
boolean
boolean
float
boolean
boolean
boolean
short[]
short[][]
M4[]
String[]
boolean
int
boolean
float
float
Fields 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 boolean
checkWithin
(T3 pti, Lst<P3> withinPoints, float withinDistance2, boolean isWithinNot) void
void
P3[]
protected Object
getInfo
(boolean isAll) protected float
V3[]
getNormals
(T3[] vertices, P4 plane) V3[]
P3[]
getOffsetVertices
(P4 thePlane) protected String
int
getVertexIndexFromNumber
(int vertexIndex) protected BS
void
initialize
(int lighting, T3[] vertices, P4 plane) void
rotateTranslate
(Quat q, T3 offset, boolean isAbsolute) void
setLighting
(int lighting) short[]
setNormixes
(V3[] normals) void
setShowWithin
(Lst<P3> showWithinPoints, float showWithinDistance2, boolean isWithinNot) void
setTokenProperty
(int tokProp, boolean bProp) void
setTranslucent
(boolean isTranslucent, float iLevel) void
setVisibilityFlags
(int n) protected void
sumVertexNormals
(T3[] vertices, V3[] normals) protected static void
sumVertexNormals2
(Mesh m, T3[] vertices, 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
-
hoverLabel
-
meshColix
public short meshColix -
normixes
public short[] normixes -
lineData
-
thisID
-
isValid
public boolean isValid -
scriptCommand
-
colorCommand
-
lattice
-
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
-
linkedMesh
-
vertexColorMap
-
vAB
-
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 -
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
-
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
-
setNormixes
-
getNormals
-
setLighting
public void setLighting(int lighting) -
setTranslucent
public void setTranslucent(boolean isTranslucent, float iLevel) -
sumVertexNormals
-
sumVertexNormals2
-
getMinDistance2ForVertexGrouping
protected float getMinDistance2ForVertexGrouping() -
getState
-
getRendering
-
getOffsetVertices
-
setShowWithin
- Parameters:
showWithinPoints
-showWithinDistance2
-isWithinNot
-
-
checkWithin
-
getVertexIndexFromNumber
public int getVertexIndexFromNumber(int vertexIndex) -
getVisibleVertexBitSet
-
getVisibleVBS
-
setTokenProperty
public void setTokenProperty(int tokProp, boolean bProp) -
getInfo
-
getBoundingBox
-
getUnitCell
- Returns:
- unitcell
-
rotateTranslate
-
getNormalsTemp
-