mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
fix PythonDump: write Criterion arg of QuadToTri() in PythonDump
This commit is contained in:
parent
e559b8fc3d
commit
850cf38bd9
@ -560,7 +560,7 @@ CORBA::Boolean SMESH_MeshEditor_i::TriToQuad (const SMESH::long_array & IDsOfE
|
|||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << "isDone = " << this << ".TriToQuad( "
|
TPythonDump() << "isDone = " << this << ".TriToQuad( "
|
||||||
<< IDsOfElements << ", None, " << MaxAngle << " )";
|
<< IDsOfElements << ", " << aNumericalFunctor << ", " << MaxAngle << " )";
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
TPythonDump() << "print 'TriToQuad: ', isDone";
|
TPythonDump() << "print 'TriToQuad: ', isDone";
|
||||||
#endif
|
#endif
|
||||||
@ -597,9 +597,12 @@ CORBA::Boolean SMESH_MeshEditor_i::TriToQuadObject (SMESH::SMESH_IDSource_ptr
|
|||||||
aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID());
|
aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SMESH::NumericalFunctor_i* aNumericalFunctor =
|
||||||
|
SMESH::DownCast<SMESH::NumericalFunctor_i*>( Criterion );
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << "isDone = " << this << ".TriToQuadObject("
|
TPythonDump() << "isDone = " << this << ".TriToQuadObject("
|
||||||
<< theObject << ", None, " << MaxAngle << " )";
|
<< theObject << ", " << aNumericalFunctor << ", " << MaxAngle << " )";
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
TPythonDump() << "print 'TriToQuadObject: ', isDone";
|
TPythonDump() << "print 'TriToQuadObject: ', isDone";
|
||||||
#endif
|
#endif
|
||||||
@ -633,7 +636,7 @@ CORBA::Boolean SMESH_MeshEditor_i::QuadToTri (const SMESH::long_array & IDsOfE
|
|||||||
|
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << "isDone = " << this << ".QuadToTri( " << IDsOfElements << ", None )";
|
TPythonDump() << "isDone = " << this << ".QuadToTri( " << IDsOfElements << ", " << aNumericalFunctor << " )";
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
TPythonDump() << "print 'QuadToTri: ', isDone";
|
TPythonDump() << "print 'QuadToTri: ', isDone";
|
||||||
#endif
|
#endif
|
||||||
@ -668,8 +671,11 @@ CORBA::Boolean SMESH_MeshEditor_i::QuadToTriObject (SMESH::SMESH_IDSource_ptr
|
|||||||
aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID());
|
aSMESHGen->RemoveLastFromPythonScript(aSMESHGen->GetCurrentStudyID());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
SMESH::NumericalFunctor_i* aNumericalFunctor =
|
||||||
|
SMESH::DownCast<SMESH::NumericalFunctor_i*>( Criterion );
|
||||||
|
|
||||||
// Update Python script
|
// Update Python script
|
||||||
TPythonDump() << "isDone = " << this << ".QuadToTriObject(" << theObject << ", None )";
|
TPythonDump() << "isDone = " << this << ".QuadToTriObject( " << theObject << ", " << aNumericalFunctor << " )";
|
||||||
#ifdef _DEBUG_
|
#ifdef _DEBUG_
|
||||||
TPythonDump() << "print 'QuadToTriObject: ', isDone";
|
TPythonDump() << "print 'QuadToTriObject: ', isDone";
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user