_nmin = null; _dmin = 0.0; _deadTets = new TetList(); _nnodeListeners = 0; _ntetListeners = 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 tet nabors of the specified edge. * @param edge the edge for which to get nabors. * @return the array of nabors. */ public synchronized Tet[] getTetNabors(Edge edge) { TetList nabors = new TetList(); getTetNabors(edge,nabors); return nabors.trim(); }
/** * Gets an array of tet nabors of the specified node. * @param node the node for which to get nabors. * @return the array of nabors. */ public synchronized Tet[] getTetNabors(Node node) { TetList nabors = new TetList(); getTetNabors(node,nabors); return nabors.trim(); }
/** * Gets an array of tet nabors of the specified face. * @param face the face for which to get nabors. * @return the array of nabors. */ public synchronized Tet[] getTetNabors(Face face) { TetList nabors = new TetList(); getTetNabors(face,nabors); return nabors.trim(); }