fix compiler warning
This commit is contained in:
@@ -202,9 +202,9 @@ private:
|
||||
Py::Float r(t[0]);
|
||||
Py::Float g(t[1]);
|
||||
Py::Float b(t[2]);
|
||||
App::Color c(static_cast<double>(r),
|
||||
static_cast<double>(g),
|
||||
static_cast<double>(b));
|
||||
App::Color c(static_cast<float>(r),
|
||||
static_cast<float>(g),
|
||||
static_cast<float>(b));
|
||||
colors.push_back(c.getPackedValue());
|
||||
}
|
||||
mesher.setColors(colors);
|
||||
|
||||
@@ -119,7 +119,10 @@ std::vector<PointKernel::value_type> PointKernel::getValidPoints() const
|
||||
if (!(boost::math::isnan(it->x) ||
|
||||
boost::math::isnan(it->y) ||
|
||||
boost::math::isnan(it->z)))
|
||||
valid.push_back(value_type(it->x, it->y, it->z));
|
||||
valid.push_back(value_type(
|
||||
static_cast<float_type>(it->x),
|
||||
static_cast<float_type>(it->y),
|
||||
static_cast<float_type>(it->z)));
|
||||
}
|
||||
return valid;
|
||||
}
|
||||
|
||||
@@ -46,7 +46,8 @@ class PointsExport PointKernel : public Data::ComplexGeoData
|
||||
TYPESYSTEM_HEADER();
|
||||
|
||||
public:
|
||||
typedef Base::Vector3f value_type;
|
||||
typedef float float_type;
|
||||
typedef Base::Vector3<float_type> value_type;
|
||||
typedef std::vector<value_type>::difference_type difference_type;
|
||||
typedef std::vector<value_type>::size_type size_type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user