From c0b6743ac7d3ffa0311b91e1aeed6669239ae2a5 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@uliege.be> Date: Sun, 29 Mar 2020 16:29:11 +0200 Subject: [PATCH] setPrescribedMeshSizeAtVertex() should only be called if lc != MAX_LC. Workflow: - define occ geom, without meshing constraints - sync - set mesh size (in gmodel) - resync : we would loose the mesh size spec since occ would tell us that lc = MAX_LC --- Geo/GModelIO_OCC.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Geo/GModelIO_OCC.cpp b/Geo/GModelIO_OCC.cpp index 30c77f995e..537d0fe586 100644 --- a/Geo/GModelIO_OCC.cpp +++ b/Geo/GModelIO_OCC.cpp @@ -3774,7 +3774,8 @@ void OCC_Internals::synchronize(GModel *model) model->add(occv); } double lc = _attributes->getMeshSize(0, vertex); - occv->setPrescribedMeshSizeAtVertex(lc); + if(lc != MAX_LC) + occv->setPrescribedMeshSizeAtVertex(lc); std::vector<std::string> labels; _attributes->getLabels(0, vertex, labels); if(labels.size()) model->setElementaryName(0, occv->tag(), labels[0]); -- GitLab