Class MarchingCubes
- java.lang.Object
-
- gov.nih.mipav.view.renderer.WildMagic.Poisson.MarchingCubes.MarchingCubes
-
public class MarchingCubes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static int[]
cornerMap
static int[]
edgeMask
static int
MAX_TRIANGLES
static int[][]
triangles
static double[][]
vertexList
-
Constructor Summary
Constructors Constructor Description MarchingCubes()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
AddTriangleIndices(double[] v, double iso, int[] isoIndices)
static int
AddTriangleIndices(float[] v, float iso, int[] isoIndices)
static int
AddTriangleIndices(int idx, int[] isoIndices)
static int
AddTriangles(double[] v, double iso, Triangle[] isoTriangles)
static int
AddTriangles(float[] v, float iso, Triangle[] isoTriangles)
static int
GetFaceIndex(double[] values, double iso, int faceIndex)
static int
GetFaceIndex(float[] values, float iso, int faceIndex)
static int
GetFaceIndex(int mcIndex, int faceIndex)
static int
GetIndex(double[] v, double iso)
static int
GetIndex(float[] v, float iso)
static int
HasEdgeRoots(int mcIndex, int edgeIndex)
static boolean
HasFaceRoots(int mcIndex, int faceIndex)
static int
HasRoots(double[] v, double isoValue)
static boolean
HasRoots(double[] v, double isoValue, int faceIndex)
static int
HasRoots(float[] v, float isoValue)
static boolean
HasRoots(float[] v, float isoValue, int faceIndex)
static int
HasRoots(int mcIndex)
static double
Interpolate(double v1, double v2)
static float
Interpolate(float v1, float v2)
static boolean
IsAmbiguous(double[] v, double isoValue, int faceIndex)
static boolean
IsAmbiguous(float[] v, float isoValue, int faceIndex)
static boolean
IsAmbiguous(int mcIndex, int faceIndex)
static void
SetVertex(int e, double[] values, double iso)
static void
SetVertex(int e, float[] values, float iso)
-
-
-
Field Detail
-
MAX_TRIANGLES
public static final int MAX_TRIANGLES
- See Also:
- Constant Field Values
-
edgeMask
public static final int[] edgeMask
-
triangles
public static final int[][] triangles
-
cornerMap
public static final int[] cornerMap
-
vertexList
public static double[][] vertexList
-
-
Method Detail
-
GetIndex
public static int GetIndex(double[] v, double iso)
-
GetFaceIndex
public static int GetFaceIndex(double[] values, double iso, int faceIndex)
-
IsAmbiguous
public static boolean IsAmbiguous(double[] v, double isoValue, int faceIndex)
-
HasRoots
public static boolean HasRoots(double[] v, double isoValue, int faceIndex)
-
HasRoots
public static int HasRoots(double[] v, double isoValue)
-
HasRoots
public static int HasRoots(int mcIndex)
-
AddTriangles
public static int AddTriangles(double[] v, double iso, Triangle[] isoTriangles)
-
AddTriangleIndices
public static int AddTriangleIndices(double[] v, double iso, int[] isoIndices)
-
SetVertex
public static void SetVertex(int e, double[] values, double iso)
-
Interpolate
public static double Interpolate(double v1, double v2)
-
GetIndex
public static int GetIndex(float[] v, float iso)
-
GetFaceIndex
public static int GetFaceIndex(float[] values, float iso, int faceIndex)
-
GetFaceIndex
public static int GetFaceIndex(int mcIndex, int faceIndex)
-
IsAmbiguous
public static boolean IsAmbiguous(float[] v, float isoValue, int faceIndex)
-
IsAmbiguous
public static boolean IsAmbiguous(int mcIndex, int faceIndex)
-
HasRoots
public static int HasRoots(float[] v, float isoValue)
-
HasRoots
public static boolean HasRoots(float[] v, float isoValue, int faceIndex)
-
HasFaceRoots
public static boolean HasFaceRoots(int mcIndex, int faceIndex)
-
HasEdgeRoots
public static int HasEdgeRoots(int mcIndex, int edgeIndex)
-
AddTriangles
public static int AddTriangles(float[] v, float iso, Triangle[] isoTriangles)
-
AddTriangleIndices
public static int AddTriangleIndices(float[] v, float iso, int[] isoIndices)
-
AddTriangleIndices
public static int AddTriangleIndices(int idx, int[] isoIndices)
-
SetVertex
public static void SetVertex(int e, float[] values, float iso)
-
Interpolate
public static float Interpolate(float v1, float v2)
-
-