From eec9414e824dbd049e3032b9934f615076feab2a Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Mon, 18 Oct 2010 15:43:11 +0000 Subject: [PATCH] don't smooth in refineMesh, please --- Geo/discreteEdge.cpp | 1 + Mesh/meshRefine.cpp | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Geo/discreteEdge.cpp b/Geo/discreteEdge.cpp index d94a56b264..4e4f57723e 100644 --- a/Geo/discreteEdge.cpp +++ b/Geo/discreteEdge.cpp @@ -394,6 +394,7 @@ void discreteEdge::computeNormals () const bool discreteEdge::getLocalParameter(const double &t, int &iLine, double &tLoc) const { + if(_pars.empty()) return false; for (iLine = 0; iLine < (int)lines.size(); iLine++){ double tmin = _pars[iLine]; double tmax = _pars[iLine+1]; diff --git a/Mesh/meshRefine.cpp b/Mesh/meshRefine.cpp index 021c17ca9a..496834387a 100644 --- a/Mesh/meshRefine.cpp +++ b/Mesh/meshRefine.cpp @@ -377,11 +377,8 @@ void RefineMesh(GModel *m, bool linear, bool splitIntoQuads, bool splitIntoHexas // mesh for(GModel::eiter it = m->firstEdge(); it != m->lastEdge(); ++it) Subdivide(*it); - for(GModel::fiter it = m->firstFace(); it != m->lastFace(); ++it){ + for(GModel::fiter it = m->firstFace(); it != m->lastFace(); ++it) Subdivide(*it, splitIntoQuads, splitIntoHexas, faceVertices); - for(int i = 0; i < CTX::instance()->mesh.nbSmoothing; i++) - laplaceSmoothing(*it); - } for(GModel::riter it = m->firstRegion(); it != m->lastRegion(); ++it) Subdivide(*it, splitIntoHexas, faceVertices); -- GitLab