Salome HOME
bos #16292 [CEA 6719] MGCADSurf: option SetEnforced1D mesh V9_9_0a1 V9_9_0a2 V9_9_0b1
authoreap <eap@opencascade.com>
Fri, 25 Feb 2022 09:41:39 +0000 (12:41 +0300)
committereap <eap@opencascade.com>
Fri, 25 Feb 2022 09:41:39 +0000 (12:41 +0300)
  Automatically compute the enforced mesh

src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx

index 3ff30d9f0a1a77a86eef67be04a6b5008423a7e9..9d0ce4db69465ff43cd7754127b576648581e4a2 100644 (file)
@@ -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 )
     {