Class Conrec


  • public class Conrec
    extends Object
    Conrec a straightforward method of contouring some surface represented a regular triangular mesh. Ported from the C++ code by Nicholas Yue (see above copyright notice). {@link http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/} for full description of code and original C++ source.
    Version:
    1.0
    Author:
    Bradley White
    • Constructor Summary

      Constructors 
      Constructor Description
      Conrec​(Render render)
      Creates new Conrec
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void contour​(float[][] d, int ilb, int iub, int jlb, int jub, double[] x, double[] y, int nc, double[] z)
      contour is a contouring subroutine for rectangularly spaced data It emits calls to a line drawing subroutine supplied by the user which draws a contour map corresponding to real*4data on a randomly spaced rectangular grid.
    • Method Detail

      • contour

        public void contour​(float[][] d,
                            int ilb,
                            int iub,
                            int jlb,
                            int jub,
                            double[] x,
                            double[] y,
                            int nc,
                            double[] z)
        contour is a contouring subroutine for rectangularly spaced data It emits calls to a line drawing subroutine supplied by the user which draws a contour map corresponding to real*4data on a randomly spaced rectangular grid. The coordinates emitted are in the same units given in the x() and y() arrays. Any number of contour levels may be specified but they must be in order of increasing value.
        Parameters:
        d - - matrix of data to contour
        ilb - ,iub,jlb,jub - index bounds of data matrix The following two, one dimensional arrays (x and y) contain the horizontal and vertical coordinates of each sample points.
        x - - data matrix column coordinates
        y - - data matrix row coordinates
        nc - - number of contour levels
        z - - contour levels in increasing order.