Package org.jmol.shapesurface
Class IsosurfaceMesh
java.lang.Object
org.jmol.util.MeshSurface
org.jmol.shape.Mesh
org.jmol.shapesurface.IsosurfaceMesh
-
Field Summary
FieldsModifier and TypeFieldDescriptionintintbooleanintFields inherited from class org.jmol.shape.Mesh
atomIndex, bsTemp, cappingObject, checkByteCount, color, colorCommand, colorDensity, colorType, connectedAtoms, diameter, drawTriangles, fillTriangles, frontOnly, hasTranslucentVertices, havePlanarContours, haveXyPoints, hoverLabel, index, insideOut, isModelConnected, isShell, isTwoSided, isValid, lattice, lighting, lineData, linkedMesh, meshColix, modelIndex, normixes, PREVIOUS_MESH_ID, ptCenter, recalcAltVertices, reverseColor, scale3d, scriptCommand, showContourLines, showPoints, showTriangles, slabbingObject, symopColixes, symopNormixes, symops, thisID, title, unitCell, useColix, vAB, visibilityFlags, visible, volumeRenderPointSize, vTemp, widthFields 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 -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddContourPoints(Lst<Object> v, BS bsContour, int i, SB fData, T3[] vertices, float[] vertexValues, int iA, int iB, int iC, float value) P3[]create a set of contour data.getInfo(boolean isAll) protected floatgetPLYData(boolean isBinary) getPmeshData(boolean isBinary) floatfloat[]getValidValues(BS bs) T3[]getValidVertices(BS bs) protected voidvoidvoidsetBoundingBox(P3[] pts) static voidsetContourVector(Lst<Object> v, int nPolygons, BS bsContour, float value, short colix, int color, SB fData) voidsetDiscreteColixes(float[] values, short[] colixes) voidsetMerged(boolean TF) voidsetTranslucent(boolean isTranslucent, float iLevel) protected voidsumVertexNormals(T3[] vertices, V3[] vectorSums) voidupdateCoordinates(M4 m, BS bs) bs will be null if this is a set from the new isosurface MOVE [mat4] commandMethods inherited from class org.jmol.shape.Mesh
checkWithin, clear, clearMesh, getNormals, getNormalsTemp, getOffsetVertices, getRendering, getState, getVertexIndexFromNumber, getVisibleVBS, initialize, mesh1, rotateTranslate, setLighting, setNormixes, setShowWithin, setTokenProperty, setVisibilityFlags, sumVertexNormals2Methods inherited from class org.jmol.util.MeshSurface
addPolygon, addPolygonC, addQuad, addTriangle, addTriangleCheck, addV, addVCVal, getFaces, getMeshSlicer, getSlabColor, getSlabType, getSphereData, getSphericalInterpolationFraction, getVertices, invalidatePolygons, newMesh, resetSlab, setABC, setBox, setColix, setColixBack, setPolygonCount, setTranslucentVertices, slabBrillouin, slabPolygonsList
-
Field Details
-
jvxlData
-
vertexIncrement
public int vertexIncrement -
firstRealVertex
public int firstRealVertex -
dataType
public int dataType -
hasGridPoints
public boolean hasGridPoints -
colorEncoder
-
-
Method Details
-
getResolution
public float getResolution()- Overrides:
getResolutionin classMeshSurface
-
setTranslucent
public void setTranslucent(boolean isTranslucent, float iLevel) - Overrides:
setTranslucentin classMesh
-
setMerged
public void setMerged(boolean TF) -
sumVertexNormals
- Overrides:
sumVertexNormalsin classMesh
-
getContours
create a set of contour data. Each contour is a Vector containing: 0 Integer number of polygons (length of BitSet) 1 BitSet of critical triangles 2 Float value 3 int[] [colorArgb] 4 StringXBuilder containing encoded data for each segment: char type ('3', '6', '5') indicating which two edges of the triangle are connected: '3' 0x011 AB-BC '5' 0x101 AB-CA '6' 0x110 BC-CA char fraction along first edge (jvxlFractionToCharacter) char fraction along second edge (jvxlFractionToCharacter) 5- stream of pairs of points for rendering- Returns:
- contour vector set
-
getPmeshData
-
getPLYData
-
setContourVector
-
addContourPoints
-
setDiscreteColixes
public void setDiscreteColixes(float[] values, short[] colixes) -
reinitializeLightingAndColor
-
getBoundingBox
- Overrides:
getBoundingBoxin classMesh
-
setBoundingBox
- Overrides:
setBoundingBoxin classMeshSurface- Parameters:
pts-
-
merge
-
getUnitCell
- Overrides:
getUnitCellin classMesh- Returns:
- unitcell
-
getMinDistance2ForVertexGrouping
protected float getMinDistance2ForVertexGrouping()- Overrides:
getMinDistance2ForVertexGroupingin classMesh
-
getVisibleVertexBitSet
- Overrides:
getVisibleVertexBitSetin classMesh
-
updateCoordinates
bs will be null if this is a set from the new isosurface MOVE [mat4] command- Parameters:
m-bs-
-
getInfo
-
getValidValues
-
getValidVertices
-
copyVertexColorMap
-