_faceSet = new FaceSet(256,0.25); _edgeSet = new EdgeSet(256,0.25); _nodeList = new NodeList(); _nmin = null; _dmin = 0.0;
/** * Constructs an interpolator with specified method and samples. * 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,x3). * @param x1 array of sample x1 coordinates. * @param x2 array of sample x2 coordinates. * @param x3 array of sample x3 coordinates. */ public SibsonInterpolator3( Method method, float[] f, float[] x1, float[] x2, float[] x3) { makeMesh(f,x1,x2,x3); _nodeList = new TetMesh.NodeList(); _tetList = new TetMesh.TetList(); 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 node nabors of the specified node. * @param node the node for which to get nabors. * @return the array of nabors. */ public synchronized Node[] getNodeNabors(Node node) { NodeList nabors = new NodeList(); getNodeNabors(node,nabors); return nabors.trim(); }