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