From 41d925be139a70ca45d56c5cfae25b3c11a49d10 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 14 Nov 2013 21:14:15 +0000 Subject: [PATCH] set lc in OCCFactory::addVertex (patch from Wendy) --- Geo/GModelFactory.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Geo/GModelFactory.cpp b/Geo/GModelFactory.cpp index 61e01a56c5..19b29e2806 100644 --- a/Geo/GModelFactory.cpp +++ b/Geo/GModelFactory.cpp @@ -496,7 +496,13 @@ GVertex *OCCFactory::addVertex(GModel *gm, double x, double y, double z, double BRepBuilderAPI_MakeVertex mkVertex(aPnt); TopoDS_Vertex occv = mkVertex.Vertex(); - return gm->_occ_internals->addVertexToModel(gm, occv); + GVertex *vertex = gm->_occ_internals->addVertexToModel(gm, occv); + + lc *= CTX::instance()->geom.scalingFactor; + if(lc == 0.) lc = MAX_LC; // no mesh size given at the point + vertex->setPrescribedMeshSizeAtVertex(lc); + + return vertex; } GEdge *OCCFactory::addLine(GModel *gm, GVertex *start, GVertex *end) -- GitLab