Salome HOME
Use the GMF file name with its extension in the argument --in.
authorbourcier <bourcier>
Fri, 18 Oct 2013 14:31:13 +0000 (14:31 +0000)
committerbourcier <bourcier>
Fri, 18 Oct 2013 14:31:13 +0000 (14:31 +0000)
Otherwise MG-Tetra does not find the mesh if only its base name without extension is provided.
It is the case with extra option as text --volume_proximity_layers 2 for instance.

src/GHS3DPlugin/GHS3DPlugin_GHS3D.cxx

index 49249a00c2bea46896d7a4ff7b340f7901be6965..65e2cf9cc980bee682f314c53ea3b2a5efbedcac 100644 (file)
@@ -3709,7 +3709,7 @@ bool GHS3DPlugin_GHS3D::Compute(SMESH_Mesh&         theMesh,
 
   TCollection_AsciiString cmd = TCollection_AsciiString((char*)GHS3DPlugin_Hypothesis::CommandToRun( _hyp, false ).c_str());
 
-  cmd += TCollection_AsciiString(" --in ") + aGenericName;
+  cmd += TCollection_AsciiString(" --in ") + aGMFFileName;
   if ( nbEnforcedVertices + nbEnforcedNodes)
     cmd += TCollection_AsciiString(" --required_vertices ") + aGenericNameRequired;
   cmd += TCollection_AsciiString(" --out ") + aResultFileName;