private void addFace(Face face) { boolean removed = _faceSet.remove(face._meshFace) || _faceSet.remove(face._meshFace.mate()); assert removed:"face not already in surface"; Face faceOld = _faceMap.put(face._meshFace,face); assert faceOld==null:"face not already in surface"; }
for (int i=0; i<4; ++i) { TetMesh.Face meshFacei = meshFaces[i]; if (!_faceSet.contains(meshFacei.mate())) { _faceSet.add(meshFacei); trace(" init: added face"+meshFacei);
double vvBest = -1.0; TetMesh.Face mfBest = null; TetMesh.Face mfMate = meshFace.mate();
/** * Returns the mate of this face. * @return the mate of this face. */ public Face mate() { return new Face(_meshFace.mate()); }