From 96bb2e332a1afd1d230cf8b8469ea9739d4ec526 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Sun, 14 Apr 2013 18:52:57 +0000 Subject: [PATCH] we should not snap vertices using an absolte tol --- Geo/GModel.cpp | 4 ++-- Geo/GModelIO_OCC.cpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Geo/GModel.cpp b/Geo/GModel.cpp index a32f15eff8..fc52c849b1 100644 --- a/Geo/GModel.cpp +++ b/Geo/GModel.cpp @@ -348,8 +348,8 @@ void GModel::snapVertices() (gp.z() - (*vit)->z()) * (gp.z() - (*vit)->z())); if (d > tol){ (*vit)->setPosition(gp); - Msg::Warning("Geom Vertex %d Corrupted (%12.5E)... Snap performed", - (*vit)->tag(), d); + Msg::Info("Snapping geometry vertex %d to curve control point (dist = %g)", + (*vit)->tag(), d); } } vit++; diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp index 649411929c..0af2bacd8c 100644 --- a/Geo/GModelIO_OCC.cpp +++ b/Geo/GModelIO_OCC.cpp @@ -987,7 +987,7 @@ int GModel::readOCCBREP(const std::string &fn) _occ_internals = new OCC_Internals; _occ_internals->loadBREP(fn.c_str()); _occ_internals->buildGModel(this); - snapVertices(); + //snapVertices(); return 1; } @@ -996,6 +996,7 @@ int GModel::readOCCSTEP(const std::string &fn) _occ_internals = new OCC_Internals; _occ_internals->loadSTEP(fn.c_str()); _occ_internals->buildGModel(this); + //snapVertices(); return 1; } @@ -1034,7 +1035,7 @@ int GModel::importOCCShape(const void *shape) _occ_internals = new OCC_Internals; _occ_internals->loadShape((TopoDS_Shape*)shape); _occ_internals->buildGModel(this); - snapVertices(); + //snapVertices(); SetBoundingBox(); return 1; } -- GitLab