X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_2smeshpy.cxx;h=c9d70e0bf315b236e860f33e6dd4314d11dc1e28;hp=4d362f69c81147c255b5bf7ed03f8bca1311a40b;hb=07ec002dfd20ec187228e11533e8e2135eca08fd;hpb=e28cd63140ca9482eb73918a1d37aebf2c55996e diff --git a/src/SMESH_I/SMESH_2smeshpy.cxx b/src/SMESH_I/SMESH_2smeshpy.cxx index 4d362f69c..c9d70e0bf 100644 --- a/src/SMESH_I/SMESH_2smeshpy.cxx +++ b/src/SMESH_I/SMESH_2smeshpy.cxx @@ -338,7 +338,8 @@ void _pyGen::Process( const Handle(_pyCommand)& theCommand ) } // Concatenate( [mesh1, ...], ... ) - if ( theCommand->GetMethod() == "Concatenate" ) + if ( theCommand->GetMethod() == "Concatenate" || + theCommand->GetMethod() == "ConcatenateWithGroups") { AddMeshAccessorMethod( theCommand ); } @@ -387,7 +388,7 @@ void _pyGen::Flush() //================================================================================ /*! - * \brief Add access method to mesh that is an object or an argument + * \brief Add access method to mesh that is an argument * \param theCmd - command to add access method * \retval bool - true if added */ @@ -751,7 +752,7 @@ bool _pyMesh::NeedMeshAccess( const Handle(_pyCommand)& theCommand ) "GetSubMeshElementsId","GetSubMeshNodesId","GetSubMeshElementType","Dump","GetNodeXYZ", "GetNodeInverseElements","GetShapeID","GetShapeIDForElem","GetElemNbNodes", "GetElemNode","IsMediumNode","IsMediumNodeOfAnyElem","ElemNbEdges","ElemNbFaces", - "IsPoly","IsQuadratic","BaryCenter","GetHypothesisList", + "IsPoly","IsQuadratic","BaryCenter","GetHypothesisList", "SetAutoColor", "GetAutoColor", "" }; // <- mark of end sameMethods.Insert( names ); } @@ -885,12 +886,20 @@ void _pyMeshEditor::Process( const Handle(_pyCommand)& theCommand) "MergeElements","MergeEqualElements","SewFreeBorders","SewConformFreeBorders", "SewBorderToSide","SewSideElements","ChangeElemNodes","GetLastCreatedNodes", "GetLastCreatedElems", - "" }; // <- mark of end + "MirrorMakeMesh","MirrorObjectMakeMesh","TranslateMakeMesh", + "TranslateObjectMakeMesh","RotateMakeMesh","RotateObjectMakeMesh", + "" }; // <- mark of the end sameMethods.Insert( names ); } + //theGen->AddMeshAccessorMethod( theCommand ); // for *Object() if ( sameMethods.Contains( theCommand->GetMethod() )) { theCommand->SetObject( myMesh ); + + // meshes made by *MakeMesh() methods are not wrapped by _pyMesh, + // so let _pyMesh care of it (TMP?) + if ( theCommand->GetMethod().Search("MakeMesh") != -1 ) + _pyMesh( new _pyCommand( theCommand->GetString(), 0 )); // for theGen->SetAccessorMethod() } else { // editor creation command is needed only if any editor function is called