_nmin = null; _dmin = 0.0; _deadTris = new TriList(); _nnodeListeners = 0; _ntriListeners = 0;
/** * Constructs an interpolator with specified method and samples. * Coordinates for each sample must be unique. * <p> * This constructor is provided primarily for testing. * The default Hale-Liang method is accurate and fast. * @param method the implementation method. * @param f array of sample values f(x1,x2). * @param x1 array of sample x1 coordinates. * @param x2 array of sample x2 coordinates. */ public SibsonInterpolator2( Method method, float[] f, float[] x1, float[] x2) { makeMesh(f,x1,x2); _nodeList = new TriMesh.NodeList(); _triList = new TriMesh.TriList(); if (method==Method.WATSON_SAMBRIDGE) { _va = new WatsonSambridge(); } else if (method==Method.BRAUN_SAMBRIDGE) { _va = new BraunSambridge(); } else if (method==Method.HALE_LIANG) { _va = new HaleLiang(); } }
/** * Gets an array of tri nabors of the specified edge. * @param edge the edge for which to get nabors. * @return the array of nabors. */ public synchronized Tri[] getTriNabors(Edge edge) { TriList nabors = new TriList(); getTriNabors(edge,nabors); return nabors.trim(); }
/** * Gets an array of tri nabors of the specified node. * @param node the node for which to get nabors. * @return the array of nabors. */ public synchronized Tri[] getTriNabors(Node node) { TriList nabors = new TriList(); getTriNabors(node,nabors); return nabors.trim(); }