From: eap Date: Sat, 6 May 2006 09:12:24 +0000 (+0000) Subject: write Criterion of QuadToTri() in PythonDump X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=483329b4d2fdcebfe261844777720b1d0e8fdceb;p=modules%2Fsmesh.git write Criterion of QuadToTri() in PythonDump --- diff --git a/src/SMESH_I/SMESH_MeshEditor_i.cxx b/src/SMESH_I/SMESH_MeshEditor_i.cxx index 5bc2da5c5..acf9a4030 100644 --- a/src/SMESH_I/SMESH_MeshEditor_i.cxx +++ b/src/SMESH_I/SMESH_MeshEditor_i.cxx @@ -560,7 +560,7 @@ CORBA::Boolean SMESH_MeshEditor_i::TriToQuad (const SMESH::long_array & IDsOfE // Update Python script TPythonDump() << "isDone = " << this << ".TriToQuad( " - << IDsOfElements << ", None, " << MaxAngle << " )"; + << IDsOfElements << ", " << aNumericalFunctor << ", " << MaxAngle << " )"; #ifdef _DEBUG_ TPythonDump() << "print 'TriToQuad: ', isDone"; #endif @@ -597,9 +597,12 @@ CORBA::Boolean SMESH_MeshEditor_i::TriToQuadObject (SMESH::SMESH_IDSource_ptr aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID()); #endif + SMESH::NumericalFunctor_i* aNumericalFunctor = + SMESH::DownCast( Criterion ); + // Update Python script TPythonDump() << "isDone = " << this << ".TriToQuadObject(" - << theObject << ", None, " << MaxAngle << " )"; + << theObject << ", " << aNumericalFunctor << ", " << MaxAngle << " )"; #ifdef _DEBUG_ TPythonDump() << "print 'TriToQuadObject: ', isDone"; #endif @@ -633,7 +636,7 @@ CORBA::Boolean SMESH_MeshEditor_i::QuadToTri (const SMESH::long_array & IDsOfE // Update Python script - TPythonDump() << "isDone = " << this << ".QuadToTri( " << IDsOfElements << ", None )"; + TPythonDump() << "isDone = " << this << ".QuadToTri( " << IDsOfElements << ", " << aNumericalFunctor << " )"; #ifdef _DEBUG_ TPythonDump() << "print 'QuadToTri: ', isDone"; #endif @@ -668,8 +671,11 @@ CORBA::Boolean SMESH_MeshEditor_i::QuadToTriObject (SMESH::SMESH_IDSource_ptr aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID()); #endif + SMESH::NumericalFunctor_i* aNumericalFunctor = + SMESH::DownCast( Criterion ); + // Update Python script - TPythonDump() << "isDone = " << this << ".QuadToTriObject(" << theObject << ", None )"; + TPythonDump() << "isDone = " << this << ".QuadToTriObject( " << theObject << ", " << aNumericalFunctor << " )"; #ifdef _DEBUG_ TPythonDump() << "print 'QuadToTriObject: ', isDone"; #endif