mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +05:00
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
This commit is contained in:
parent
52749e3d7f
commit
34bcb9e1fb
@ -429,7 +429,10 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand )
|
||||
myMeshes.insert( make_pair( mesh->GetID(), mesh ));
|
||||
return;
|
||||
}
|
||||
if ( method == "CreateMeshesFromUNV" || method == "CreateMeshesFromSTL" || method == "CopyMesh" )
|
||||
if ( method == "CreateMeshesFromUNV" ||
|
||||
method == "CreateMeshesFromSTL" ||
|
||||
method == "CreateMeshesFromCGNS" ||
|
||||
method == "CopyMesh" )
|
||||
{
|
||||
Handle(_pyMesh) mesh = new _pyMesh( theCommand, theCommand->GetResultValue() );
|
||||
myMeshes.insert( make_pair( mesh->GetID(), mesh ));
|
||||
@ -971,6 +974,15 @@ void _pyMesh::Process( const Handle(_pyCommand)& theCommand )
|
||||
theCommand->SetMethod( "ExportMED" );
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
else if ( method == "ExportCGNS" )
|
||||
{ // ExportCGNS(part, ...) -> ExportCGNS(..., part)
|
||||
_pyID partID = theCommand->GetArg( 1 );
|
||||
int nbArgs = theCommand->GetNbArgs();
|
||||
for ( int i = 2; i <= nbArgs; ++i )
|
||||
theCommand->SetArg( i-1, theCommand->GetArg( i ));
|
||||
theCommand->SetArg( nbArgs, partID );
|
||||
}
|
||||
// ----------------------------------------------------------------------
|
||||
else if ( method.Location( "ExportPartTo", 1, method.Length() ) == 1 )
|
||||
{ // ExportPartTo*(part, ...) -> Export*(..., part)
|
||||
//
|
||||
|
Loading…
Reference in New Issue
Block a user