Class MarchingSquares


  • public class MarchingSquares
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int[] edgeMask  
      static int[][] edges  
      static int MAX_EDGES  
      static double[][] vertexList  
    • Constructor Summary

      Constructors 
      Constructor Description
      MarchingSquares()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int AddEdgeIndices​(double[] v, double iso, int[] isoIndices)  
      static int AddEdges​(double[] v, double iso, Edge[] isoEdges)  
      static int GetIndex​(double[] v, double iso)  
      static double Interpolate​(double v1, double v2)  
      static boolean IsAmbiguous​(double[] v, double isoValue)  
      static void SetVertex​(int e, double[] values, double iso)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • vertexList

        public static double[][] vertexList
      • edgeMask

        public static final int[] edgeMask
      • edges

        public static final int[][] edges
    • Constructor Detail

      • MarchingSquares

        public MarchingSquares()
    • Method Detail

      • GetIndex

        public static int GetIndex​(double[] v,
                                   double iso)
      • IsAmbiguous

        public static boolean IsAmbiguous​(double[] v,
                                          double isoValue)
      • AddEdges

        public static int AddEdges​(double[] v,
                                   double iso,
                                   Edge[] isoEdges)
      • AddEdgeIndices

        public static int AddEdgeIndices​(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)