From: eap Date: Fri, 25 Feb 2022 09:41:39 +0000 (+0300) Subject: bos #16292 [CEA 6719] MGCADSurf: option SetEnforced1D mesh X-Git-Tag: V9_9_0a2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fb767b22d2cfb789e7e0e2356d61ce9ee3659e55;p=plugins%2Fblsurfplugin.git bos #16292 [CEA 6719] MGCADSurf: option SetEnforced1D mesh Automatically compute the enforced mesh --- diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 3ff30d9..9d0ce4d 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -1001,6 +1001,8 @@ BLSURFPlugin_Hypothesis::GetEnforcedSegments( const EnforcedMesh& enfMesh, if (( mesh = SMESH_Hypothesis::GetMeshByPersistentID( enfMesh._meshID ))) { mesh->Load(); + if ( mesh->NbEdges() == 0 ) + GetGen()->Compute( *mesh, mesh->GetShapeToMesh(), /*flags=*/0 ); switch( enfMesh._type ) {