in long_array IDsOfFixedNodes,
in long MaxNbOfIterations,
in double MaxAspectRatio,
- in Smooth_Method Method);
+ in Smooth_Method Method,
+ in boolean IsParametric);
boolean SmoothObject(in SMESH_IDSource theObject,
in long_array IDsOfFixedNodes,
in long MaxNbOfIterations,
in double MaxAspectRatio,
- in Smooth_Method Method);
+ in Smooth_Method Method,
+ in boolean IsParametric);
void RenumberNodes();
const SMESH::long_array & IDsOfFixedNodes,
CORBA::Long MaxNbOfIterations,
CORBA::Double MaxAspectRatio,
- SMESH::SMESH_MeshEditor::Smooth_Method Method)
+ SMESH::SMESH_MeshEditor::Smooth_Method Method,
+ CORBA::Boolean IsParametric)
{
SMESHDS_Mesh* aMesh = GetMeshDS();
method = ::SMESH_MeshEditor::CENTROIDAL;
::SMESH_MeshEditor anEditor( _myMesh );
- anEditor.Smooth( elements, fixedNodes, method, MaxNbOfIterations, MaxAspectRatio );
+ anEditor.Smooth(elements, fixedNodes, method,
+ MaxNbOfIterations, MaxAspectRatio, IsParametric );
// Update Python script
TCollection_AsciiString str ("isDone = mesh_editor.Smooth(");
str += ", ";
str += (Standard_Real) MaxAspectRatio;
if ( method == ::SMESH_MeshEditor::CENTROIDAL )
- str += ", SMESH.SMESH_MeshEditor.CENTROIDAL_SMOOTH )";
+ str += ", SMESH.SMESH_MeshEditor.CENTROIDAL_SMOOTH, ";
else
- str += ", SMESH.SMESH_MeshEditor.LAPLACIAN_SMOOTH )";
+ str += ", SMESH.SMESH_MeshEditor.LAPLACIAN_SMOOTH, ";
+ str += IsParametric;
+ str += " )";
SMESH_Gen_i::AddToCurrentPyScript( str );
#ifdef _DEBUG_
SMESH_Gen_i::AddToCurrentPyScript( "print \"Smooth: \", isDone" );
const SMESH::long_array & IDsOfFixedNodes,
CORBA::Long MaxNbOfIterations,
CORBA::Double MaxAspectRatio,
- SMESH::SMESH_MeshEditor::Smooth_Method Method)
+ SMESH::SMESH_MeshEditor::Smooth_Method Method,
+ CORBA::Boolean IsParametric)
{
SMESH::long_array_var anElementsId = theObject->GetIDs();
- CORBA::Boolean isDone = Smooth
- (anElementsId, IDsOfFixedNodes, MaxNbOfIterations, MaxAspectRatio, Method);
+ CORBA::Boolean isDone = Smooth (anElementsId, IDsOfFixedNodes, MaxNbOfIterations,
+ MaxAspectRatio, Method, IsParametric);
// Clear python line(s), created by Smooth()
SMESH_Gen_i* aSMESHGen = SMESH_Gen_i::GetSMESHGen();
str += (Standard_Integer) MaxNbOfIterations;
str += ", ";
str += (Standard_Real) MaxAspectRatio;
- if ( Method == SMESH::SMESH_MeshEditor::CENTROIDAL_SMOOTH )
- str += ", SMESH.SMESH_MeshEditor.CENTROIDAL_SMOOTH )";
+ if ( Method == ::SMESH_MeshEditor::CENTROIDAL )
+ str += ", SMESH.SMESH_MeshEditor.CENTROIDAL_SMOOTH, ";
else
- str += ", SMESH.SMESH_MeshEditor.LAPLACIAN_SMOOTH )";
+ str += ", SMESH.SMESH_MeshEditor.LAPLACIAN_SMOOTH, ";
+ str += IsParametric;
+ str += " )";
SMESH_Gen_i::AddToCurrentPyScript( str );
#ifdef _DEBUG_
SMESH_Gen_i::AddToCurrentPyScript( "print \"SmoothObject: \", isDone" );
const SMESH::long_array & IDsOfFixedNodes,
CORBA::Long MaxNbOfIterations,
CORBA::Double MaxAspectRatio,
- SMESH::SMESH_MeshEditor::Smooth_Method Method);
+ SMESH::SMESH_MeshEditor::Smooth_Method Method,
+ CORBA::Boolean IsParametric);
CORBA::Boolean SmoothObject(SMESH::SMESH_IDSource_ptr theObject,
const SMESH::long_array & IDsOfFixedNodes,
CORBA::Long MaxNbOfIterations,
CORBA::Double MaxAspectRatio,
- SMESH::SMESH_MeshEditor::Smooth_Method Method);
-
+ SMESH::SMESH_MeshEditor::Smooth_Method Method,
+ CORBA::Boolean IsParametric);
void RenumberNodes();
void RenumberElements();