-// Copyright (C) 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
// Moved here from SMESH_LocalLength_i.cxx
// Author : Paul RASCLE, EDF
// Module : SMESH
-// $Header$
//
#include "StdMeshers_LocalLength_i.hxx"
#include "SMESH_Gen_i.hxx"
}
// Update Python script
- SMESH::TPythonDump() << _this() << ".SetLength( " << theLength << " )";
+ SMESH::TPythonDump() << _this() << ".SetLength( " << SMESH::TVar(theLength) << " )";
}
//=============================================================================
}
// Update Python script
- SMESH::TPythonDump() << _this() << ".SetPrecision( " << thePrecision << " )";
+ SMESH::TPythonDump() << _this() << ".SetPrecision( " << SMESH::TVar(thePrecision) << " )";
}
//=============================================================================
{
return type == SMESH::DIM_1D;
}
+
+std::string StdMeshers_LocalLength_i::getMethodOfParameter(const int paramIndex,
+ int /*nbVars*/) const
+{
+ return paramIndex == 0 ? "SetLength" : "SetPrecision";
+}