diff --git a/Geo/GModelFactory.cpp b/Geo/GModelFactory.cpp index 61e01a56c5c6945f9e14fe529c8254484704d3ef..19b29e28063707280589e51142c591ed82b5dafb 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)