Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
52749e3
)
0020511: EDF 1101 SMESH : Add CGNS to Mesh Format Supported
author
eap
<eap@opencascade.com>
Wed, 10 Aug 2011 12:49:26 +0000
(12:49 +0000)
committer
eap
<eap@opencascade.com>
Wed, 10 Aug 2011 12:49:26 +0000
(12:49 +0000)
src/SMESH_I/SMESH_2smeshpy.cxx
patch
|
blob
|
history
diff --git
a/src/SMESH_I/SMESH_2smeshpy.cxx
b/src/SMESH_I/SMESH_2smeshpy.cxx
index 76fe2a5825739d59834737feaf82da4fe5a3e962..af9123b210aae038ffbd085318238e6bec9941d8 100644
(file)
--- a/
src/SMESH_I/SMESH_2smeshpy.cxx
+++ b/
src/SMESH_I/SMESH_2smeshpy.cxx
@@
-429,7
+429,10
@@
void _pyGen::Process( const Handle(_pyCommand)& theCommand )
myMeshes.insert( make_pair( mesh->GetID(), mesh ));
return;
}
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 ));
{
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" );
}
// ----------------------------------------------------------------------
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)
//
else if ( method.Location( "ExportPartTo", 1, method.Length() ) == 1 )
{ // ExportPartTo*(part, ...) -> Export*(..., part)
//