Add namespace StdMeshers to StdMeshers_Distribution.* in order to avoid
clashing with FunctionExpr from paraview-4.2/libvtkvisitcommon-pv4.2.so.1
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];
using namespace std;
+namespace StdMeshers {
+
Function::Function( const int conv )
: myConv( conv )
{
data[nbSeg] = end;
return true;
}
+}
#include <Expr_Array1OfNamedUnknown.hxx>
#include <TColStd_Array1OfReal.hxx>
-
+namespace StdMeshers
+{
class STDMESHERS_EXPORT Function
{
public:
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
#include <Basics_Utils.hxx>
+using namespace StdMeshers;
using namespace std;
const double PRECISION = 1e-7;
#include <limits>
using namespace std;
+using namespace StdMeshers;
//=============================================================================
/*!