mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 04:10:33 +05:00
22787: [CEA 1320] Regression of test $SMESH_ROOT_DIR/bin/salome/SMESH_reg.py
Add namespace StdMeshers to StdMeshers_Distribution.* in order to avoid clashing with FunctionExpr from paraview-4.2/libvtkvisitcommon-pv4.2.so.1
This commit is contained in:
parent
f34d4ca343
commit
54f2672f6a
@ -329,7 +329,7 @@ void StdMeshers_CartesianParameters3D::ComputeCoordinates(const double x0,
|
||||
coords.clear();
|
||||
for ( size_t i = 0; i < spaceFuns.size(); ++i )
|
||||
{
|
||||
FunctionExpr fun( spaceFuns[i].c_str(), /*convMode=*/-1 );
|
||||
StdMeshers::FunctionExpr fun( spaceFuns[i].c_str(), /*convMode=*/-1 );
|
||||
|
||||
const double p0 = x0 * ( 1. - points[i]) + x1 * points[i];
|
||||
const double p1 = x0 * ( 1. - points[i+1]) + x1 * points[i+1];
|
||||
|
@ -43,6 +43,8 @@
|
||||
|
||||
using namespace std;
|
||||
|
||||
namespace StdMeshers {
|
||||
|
||||
Function::Function( const int conv )
|
||||
: myConv( conv )
|
||||
{
|
||||
@ -345,3 +347,4 @@ bool buildDistribution( const Function& func, const double start, const double e
|
||||
data[nbSeg] = end;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -37,7 +37,8 @@
|
||||
#include <Expr_Array1OfNamedUnknown.hxx>
|
||||
#include <TColStd_Array1OfReal.hxx>
|
||||
|
||||
|
||||
namespace StdMeshers
|
||||
{
|
||||
class STDMESHERS_EXPORT Function
|
||||
{
|
||||
public:
|
||||
@ -114,5 +115,5 @@ bool buildDistribution( const TCollection_AsciiString& f, const int conv, const
|
||||
STDMESHERS_EXPORT
|
||||
bool buildDistribution( const std::vector<double>& f, const int conv, const double start, const double end,
|
||||
const int nbSeg, std::vector<double>& data, const double eps );
|
||||
|
||||
}
|
||||
#endif
|
||||
|
@ -53,6 +53,7 @@
|
||||
|
||||
#include <Basics_Utils.hxx>
|
||||
|
||||
using namespace StdMeshers;
|
||||
using namespace std;
|
||||
|
||||
const double PRECISION = 1e-7;
|
||||
|
@ -68,6 +68,7 @@
|
||||
#include <limits>
|
||||
|
||||
using namespace std;
|
||||
using namespace StdMeshers;
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user