public class MeshData extends MeshSurface
Modifier and Type | Class and Description |
---|---|
protected class |
MeshData.SortSet |
private class |
MeshData.SSet |
Modifier and Type | Field and Description |
---|---|
static int |
MODE_GET_COLOR_INDEXES |
static int |
MODE_GET_VERTICES |
static int |
MODE_PUT_SETS |
static int |
MODE_PUT_VERTICES |
String |
polygonColorData |
private boolean |
setsSuccessful |
int |
vertexIncrement |
altVertices, bsDisplay, bsPolygons, bsSlabDisplay, bsSlabGhost, bsTransPolygons, colix, colixBack, haveQuads, iA, iB, iC, isColorSolid, isMerged, isTriangleSet, mat4, mergePolygonCount0, mergeVertexCount0, meshType, normalCount, normals, normalsTemp, normixCount, nSets, offset, polygonColixes, polygonCount, polygonCount0, polygonIndexes, polygonTranslucencies, SEED_COUNT, slabColix, slabMeshType, slabOptions, spanningVectors, surfaceSet, vertexColixes, vertexCount, vertexCount0, vertexSets, vertexSource, vertexValues, vertices
Constructor and Description |
---|
MeshData() |
Modifier and Type | Method and Description |
---|---|
int |
addVertexCopy(javajs.util.P3 vertex,
float value,
int assocVertex) |
Object |
calculateVolumeOrArea(int thisSet,
boolean isArea,
boolean getSets) |
static boolean |
checkCutoff(int iA,
int iB,
int iC,
float[] vertexValues) |
private void |
createSet(int v1,
int v2,
int v3) |
private int |
findSet(int vertex) |
BS[] |
getSurfaceSet() |
private BS[] |
getSurfaceSetForLevel(int level) |
void |
invalidateSurfaceSet(int i) |
void |
invalidateVertices(BS bsInvalid) |
private void |
mergeSets(int a,
int b) |
void |
setVertexSets(boolean onlyIfNull) |
private void |
sortSurfaceSets() |
void |
updateInvalidatedVertices(BS bs) |
addIntersectionVertex, addPolygonC, addQuad, addTriangle, addTriangleCheck, addV, addVCVal, getCapSlabObject, getFaces, getIntersection, getSlabColor, getSlabTranslucency, getSlabType, getSphereData, getSphericalInterpolationFraction, getVertices, invalidatePolygons, newMesh, newSlab, resetSlab, resetTransPolygons, setABC, setColix, setColixBack, setPolygonCount, setSlab, setTranslucentVertices, slabBrillouin, slabPolygons, slabPolygonsList
public static final int MODE_GET_VERTICES
public static final int MODE_GET_COLOR_INDEXES
public static final int MODE_PUT_SETS
public static final int MODE_PUT_VERTICES
private boolean setsSuccessful
public int vertexIncrement
public String polygonColorData
public int addVertexCopy(javajs.util.P3 vertex, float value, int assocVertex)
public BS[] getSurfaceSet()
private BS[] getSurfaceSetForLevel(int level)
private void sortSurfaceSets()
public void setVertexSets(boolean onlyIfNull)
private int findSet(int vertex)
private void createSet(int v1, int v2, int v3)
private void mergeSets(int a, int b)
public void invalidateSurfaceSet(int i)
public static boolean checkCutoff(int iA, int iB, int iC, float[] vertexValues)
public Object calculateVolumeOrArea(int thisSet, boolean isArea, boolean getSets)
thisSet
- set to Integer.MIN_VALUE to ensure an array.
If a set has been selected, we return a FloatisArea
- getSets
- public void updateInvalidatedVertices(BS bs)
public void invalidateVertices(BS bsInvalid)