H
haikoley
Hi there,
I'm trying to convert a three dimensional vector to a list.
I have a three dimenional vector of type float, which looks like this:
std::vector< TPoint3D<float> > points;
points.push_back(TPoint3D<float>(x,y,z);
And I thought about converting the vector to a list like this:
list<TPoint3D<float>> myList(points.begin(), points.end());
But I want to filter the values, so that if the z-values are greater than acertain threshold, they and the corresponding x and y values from the vector are removed. It works for vectors, because I can access the values usingtheir indices, but how do you do something like that with a list?
Cheers,
Haiko
I'm trying to convert a three dimensional vector to a list.
I have a three dimenional vector of type float, which looks like this:
std::vector< TPoint3D<float> > points;
points.push_back(TPoint3D<float>(x,y,z);
And I thought about converting the vector to a list like this:
list<TPoint3D<float>> myList(points.begin(), points.end());
But I want to filter the values, so that if the z-values are greater than acertain threshold, they and the corresponding x and y values from the vector are removed. It works for vectors, because I can access the values usingtheir indices, but how do you do something like that with a list?
Cheers,
Haiko