Package org.jmol.jvxl.calc
Class MarchingCubes
java.lang.Object
org.jmol.util.TriangleData
org.jmol.jvxl.calc.MarchingCubes
- Direct Known Subclasses:
SimpleMarchingCubes
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BSprotected BSprotected BSprotected BSprotected booleanprotected intprotected intprotected intprotected intprotected static final V3[]protected floatprotected intprotected SBprotected final int[]protected static final int[]protected final V3[]protected int[]protected static final int[]protected static final int[]protected int[]protected static final int[]protected static final int[]protected float[]protected static final short[]protected booleanprotected booleanprotected booleanprotected int[][][]protected booleanprotected booleanprotected final int[]protected intprotected static final intprotected static final intprotected static final intprotected intprotected intprotected intprotected final P3protected final P3protected VertexDataServerprotected final float[]protected VolumeDataprotected final V3[]protected intprotected static int[]protected float[][]Fields inherited from class org.jmol.util.TriangleData
cubeVertexOffsets, edgeVertexes, Pwr2, triangleTable2 -
Constructor Summary
ConstructorsConstructorDescriptionMarchingCubes(VertexDataServer surfaceReader, VolumeData volumeData, Parameters params, BS bsVoxels) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddEdgeData(float f) protected voidaddTriangle(int ia, int ib, int ic, int edgeType) protected voidaddVertex(int x, int y, int z, int pti, float value) voidcalcVertexPoint(int x, int y, int z, int vertex, P3 pt) protected voidintgetLinearOffset(int x, int y, int z, int offset) protected floatgetValueArray(int x, int y, int z, int pt, float[] tempValues) static booleanisInside(float voxelValue, float max, boolean isAbsolute) protected booleanprocessOneCubical(int insideMask, int x, int y, int z, int pt) protected voidprocessTriangles(int insideMask) protected int[][]resetIndexPlane(int[][] plane) protected voidprotected voidsetParameters(VolumeData volumeData, Parameters params)
-
Field Details
-
surfaceReader
-
volumeData
-
contourType
protected int contourType -
isContoured
protected boolean isContoured -
cutoff
protected float cutoff -
isCutoffAbsolute
protected boolean isCutoffAbsolute -
isSquared
protected boolean isSquared -
isXLowToHigh
protected boolean isXLowToHigh -
cubeCountX
protected int cubeCountX -
cubeCountY
protected int cubeCountY -
cubeCountZ
protected int cubeCountZ -
nY
protected int nY -
nZ
protected int nZ -
yzCount
protected int yzCount -
colorDensity
protected boolean colorDensity -
integrateSquared
protected boolean integrateSquared -
bsVoxels
-
bsExcludedVertices
-
bsExcludedTriangles
-
bsExcludedPlanes
-
edgeData
-
mode
protected int mode -
MODE_CUBE
protected static final int MODE_CUBE- See Also:
-
MODE_JVXL
protected static final int MODE_JVXL- See Also:
-
MODE_PLANES
protected static final int MODE_PLANES- See Also:
-
vertexValues
protected final float[] vertexValues -
edgeCount
protected int edgeCount -
voxelVertexVectors
-
edgeVectors
-
yzPlanePts
protected static int[] yzPlanePts -
edgePointIndexes
protected final int[] edgePointIndexes -
isoPointIndexPlanes
protected int[][][] isoPointIndexPlanes -
yzPlanes
protected float[][] yzPlanes -
nTriangles
protected int nTriangles -
bsValues
-
pt0
-
pointA
-
edgeVertexPointersLowToHigh
protected static final int[] edgeVertexPointersLowToHigh -
edgeVertexPointersHighToLow
protected static final int[] edgeVertexPointersHighToLow -
edgeVertexPointers
protected int[] edgeVertexPointers -
edgeVertexPlanesLowToHigh
protected static final int[] edgeVertexPlanesLowToHigh -
edgeVertexPlanesHighToLow
protected static final int[] edgeVertexPlanesHighToLow -
edgeVertexPlanes
protected int[] edgeVertexPlanes -
fReturn
protected float[] fReturn -
cubeVertexVectors
-
edgeTypeTable
protected static final int[] edgeTypeTable -
linearOffsets
protected final int[] linearOffsets -
insideMaskTable
protected static final short[] insideMaskTable
-
-
Constructor Details
-
MarchingCubes
public MarchingCubes() -
MarchingCubes
public MarchingCubes(VertexDataServer surfaceReader, VolumeData volumeData, Parameters params, BS bsVoxels)
-
-
Method Details
-
setParameters
-
calcVoxelVertexVectors
protected void calcVoxelVertexVectors() -
resetIndexPlane
protected int[][] resetIndexPlane(int[][] plane) -
getEdgeData
-
processTriangles
protected void processTriangles(int insideMask) -
addVertex
protected void addVertex(int x, int y, int z, int pti, float value) -
addTriangle
protected void addTriangle(int ia, int ib, int ic, int edgeType) -
getValueArray
protected float getValueArray(int x, int y, int z, int pt, float[] tempValues) -
isInside
public static boolean isInside(float voxelValue, float max, boolean isAbsolute) -
processOneCubical
protected boolean processOneCubical(int insideMask, int x, int y, int z, int pt) -
addEdgeData
protected void addEdgeData(float f) -
calcVertexPoint
-
setLinearOffsets
protected void setLinearOffsets() -
getLinearOffset
public int getLinearOffset(int x, int y, int z, int offset)
-