org.jmol.jvxl.calc
public class MarchingCubes extends TriangleData
Modifier and Type | Field and Description |
---|---|
private boolean |
allInside |
protected BitSet |
bsExcludedPlanes |
protected BitSet |
bsExcludedTriangles |
protected BitSet |
bsExcludedVertices |
protected BitSet |
bsValues |
protected BitSet |
bsVoxels |
protected boolean |
colorDensity |
protected int |
contourType |
protected int |
cubeCountX |
protected int |
cubeCountY |
protected int |
cubeCountZ |
protected static Vector3f[] |
cubeVertexVectors |
protected float |
cutoff |
protected int |
edgeCount |
protected StringBuffer |
edgeData |
protected int[] |
edgePointIndexes |
protected static int[] |
edgeTypeTable |
protected Vector3f[] |
edgeVectors |
protected int[] |
edgeVertexPlanes |
protected static int[] |
edgeVertexPlanesHighToLow |
protected static int[] |
edgeVertexPlanesLowToHigh |
protected int[] |
edgeVertexPointers |
protected static int[] |
edgeVertexPointersHighToLow |
protected static int[] |
edgeVertexPointersLowToHigh |
private boolean |
excludePartialCubes |
protected float[] |
fReturn |
protected static short[] |
insideMaskTable |
protected boolean |
integrateSquared |
protected boolean |
isContoured |
protected boolean |
isCutoffAbsolute |
private boolean |
isInside |
protected int[][][] |
isoPointIndexPlanes |
protected boolean |
isSquared |
protected boolean |
isXLowToHigh |
protected int[] |
linearOffsets |
private Point4f |
mappingPlane |
protected int |
mode |
protected static int |
MODE_CUBE |
protected static int |
MODE_JVXL |
protected static int |
MODE_PLANES |
protected int |
nTriangles |
protected int |
nY |
protected int |
nZ |
private Point3i |
offset |
protected Point3f |
pointA |
protected Point3f |
pt0 |
protected VertexDataServer |
surfaceReader |
protected float[] |
vertexValues |
protected VolumeData |
volumeData |
private float[][][] |
voxelData |
protected Vector3f[] |
voxelVertexVectors |
protected int |
yzCount |
protected static int[] |
yzPlanePts |
protected float[][] |
yzPlanes |
cubeVertexOffsets, edgeVertexes, Pwr2, triangleTable2
Constructor and Description |
---|
MarchingCubes() |
MarchingCubes(VertexDataServer surfaceReader,
VolumeData volumeData,
Parameters params,
BitSet bsVoxels) |
Modifier and Type | Method and Description |
---|---|
protected void |
addEdgeData(float f) |
protected void |
addTriangle(int ia,
int ib,
int ic,
int edgeType) |
protected void |
addVertex(int x,
int y,
int z,
int pti,
float value) |
void |
calcVertexPoint(int x,
int y,
int z,
int vertex,
Point3f pt) |
protected void |
calcVoxelVertexVectors() |
BitSet |
getBsVoxels() |
String |
getEdgeData() |
int |
getLinearOffset(int x,
int y,
int z,
int offset) |
private void |
getPlane(int i,
boolean andSwap) |
protected float |
getValue(int x,
int y,
int z,
int pt,
float[] tempValues) |
private float |
getValue(int x,
int y,
int z,
int pt,
int i) |
static boolean |
isInside(float voxelValue,
float max,
boolean isAbsolute) |
protected boolean |
processOneCubical(int insideMask,
int x,
int y,
int z,
int pt) |
protected void |
processTriangles(int insideMask) |
protected int[][] |
resetIndexPlane(int[][] plane) |
protected void |
setLinearOffsets() |
protected void |
setParameters(VolumeData volumeData,
Parameters params) |
intersectPlane
protected VertexDataServer surfaceReader
protected VolumeData volumeData
protected int contourType
protected boolean isContoured
protected float cutoff
protected boolean isCutoffAbsolute
protected boolean isSquared
protected boolean isXLowToHigh
protected int cubeCountX
protected int cubeCountY
protected int cubeCountZ
protected int nY
protected int nZ
protected int yzCount
protected boolean colorDensity
protected boolean integrateSquared
protected BitSet bsVoxels
protected BitSet bsExcludedVertices
protected BitSet bsExcludedTriangles
protected BitSet bsExcludedPlanes
protected StringBuffer edgeData
private boolean excludePartialCubes
protected int mode
protected static final int MODE_CUBE
protected static final int MODE_JVXL
protected static final int MODE_PLANES
protected final float[] vertexValues
protected int edgeCount
protected final Vector3f[] voxelVertexVectors
protected final Vector3f[] edgeVectors
protected static int[] yzPlanePts
protected final int[] edgePointIndexes
protected int[][][] isoPointIndexPlanes
protected float[][] yzPlanes
private Point4f mappingPlane
private boolean allInside
private boolean isInside
private Point3i offset
private float[][][] voxelData
protected int nTriangles
protected BitSet bsValues
protected final Point3f pt0
protected final Point3f pointA
protected static final int[] edgeVertexPointersLowToHigh
protected static final int[] edgeVertexPointersHighToLow
protected int[] edgeVertexPointers
protected static final int[] edgeVertexPlanesLowToHigh
protected static final int[] edgeVertexPlanesHighToLow
protected int[] edgeVertexPlanes
protected float[] fReturn
protected static final Vector3f[] cubeVertexVectors
protected static final int[] edgeTypeTable
protected final int[] linearOffsets
protected static final short[] insideMaskTable
public MarchingCubes()
public MarchingCubes(VertexDataServer surfaceReader, VolumeData volumeData, Parameters params, BitSet bsVoxels)
public BitSet getBsVoxels()
protected void setParameters(VolumeData volumeData, Parameters params)
protected void calcVoxelVertexVectors()
protected int[][] resetIndexPlane(int[][] plane)
public String getEdgeData()
private float getValue(int x, int y, int z, int pt, int i)
private void getPlane(int i, boolean andSwap)
protected void processTriangles(int insideMask)
protected void addVertex(int x, int y, int z, int pti, float value)
protected void addTriangle(int ia, int ib, int ic, int edgeType)
protected float getValue(int x, int y, int z, int pt, float[] tempValues)
public static boolean isInside(float voxelValue, float max, boolean isAbsolute)
protected boolean processOneCubical(int insideMask, int x, int y, int z, int pt)
protected void addEdgeData(float f)
public void calcVertexPoint(int x, int y, int z, int vertex, Point3f pt)
protected void setLinearOffsets()
public int getLinearOffset(int x, int y, int z, int offset)