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_0b1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a85cd3b2d89b8b4e63966def407044ce2dac558d;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 ) {