From 0a157fc808b6eff142444116c70388bf29b9d9c0 Mon Sep 17 00:00:00 2001 From: eap Date: Fri, 25 Feb 2022 12:41:39 +0300 Subject: [PATCH] bos #16292 [CEA 6719] MGCADSurf: option SetEnforced1D mesh Automatically compute the enforced mesh --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ) { -- 2.39.2