I use a library in my code : mapping2D
All compile and seems to link well.
Trying to call a function from that lib:
#include "Mapper.h"
[...]
PointsData points;
// Filling 3 points with x,y,z
[...]
std::unique_ptr<Surface> surface = Mapper::calculateSurface(&points, m_surfaceSettings, mesh);
The problem is that when I run debugger, with a break point at this called function, the points
seems to be well structured :
but when I’m entering the function (F11) :
the vectors of my objects are not the same at all, very weird behaviour, and random number of elements in y
at each execution :
If I continue I crash with “vector too long” :
PointsData
struct in the library is defined like that
struct PointsData
{
std::vector<double> x;
std::vector<double> y;
std::vector<double> z;
};
I tryed a lot of things, but I don’t really know what’s happening (knowing that the creator of the library made code for an application to use his library, I compiled that and it works well)
Somebody has an idea to get me out of that problem ?