mirror of https://github.com/CGAL/cgal
fix warnings
This commit is contained in:
parent
c984e0e08a
commit
a6d375c6c5
|
|
@ -88,7 +88,7 @@ read_vtk_image_data(vtkImageData* vtk_image, Image_3::Own owning = Image_3::OWN_
|
||||||
// If there is more than a scalar per point, vtk_image->data is not immediately
|
// If there is more than a scalar per point, vtk_image->data is not immediately
|
||||||
// interpretable in Image_3->data
|
// interpretable in Image_3->data
|
||||||
CGAL_assertion(owning == Image_3::OWN_THE_DATA || cn == 1);
|
CGAL_assertion(owning == Image_3::OWN_THE_DATA || cn == 1);
|
||||||
CGAL_assertion(vtk_image->GetPointData()->GetScalars()->GetNumberOfTuples() == image->xdim*image->ydim*image->zdim);
|
CGAL_assertion(vtk_image->GetPointData()->GetScalars()->GetNumberOfTuples() == static_cast<vtkIdType>(image->xdim*image->ydim*image->zdim));
|
||||||
|
|
||||||
if(owning == Image_3::OWN_THE_DATA) {
|
if(owning == Image_3::OWN_THE_DATA) {
|
||||||
std::size_t dims_n = image->xdim*image->ydim*image->zdim;
|
std::size_t dims_n = image->xdim*image->ydim*image->zdim;
|
||||||
|
|
|
||||||
|
|
@ -188,10 +188,10 @@ struct Linear_interpolation_edge_intersection
|
||||||
struct Ray_marching_edge_intersection
|
struct Ray_marching_edge_intersection
|
||||||
{
|
{
|
||||||
template <typename Domain>
|
template <typename Domain>
|
||||||
bool operator()(const typename Domain::edge_descriptor& e,
|
bool operator()(const typename Domain::edge_descriptor& /* e */,
|
||||||
const Domain& domain,
|
const Domain& /* domain */,
|
||||||
const typename Domain::Geom_traits::FT isovalue,
|
const typename Domain::Geom_traits::FT /* isovalue */,
|
||||||
typename Domain::Geom_traits::Point_3& p) const
|
typename Domain::Geom_traits::Point_3& /* p */) const
|
||||||
{
|
{
|
||||||
// @todo this is for the case where we know domain.value is an SDF
|
// @todo this is for the case where we know domain.value is an SDF
|
||||||
// then we can do better than a dichotomy
|
// then we can do better than a dichotomy
|
||||||
|
|
|
||||||
|
|
@ -161,9 +161,9 @@ struct partition_traits<Cartesian_grid_3<GeomTraits, MemoryPolicy> >
|
||||||
for(std::size_t k=0; k<g.zdim()-1; ++k)
|
for(std::size_t k=0; k<g.zdim()-1; ++k)
|
||||||
{
|
{
|
||||||
// all three edges starting at vertex (i, j, k)
|
// all three edges starting at vertex (i, j, k)
|
||||||
f({i, j, k, 0});
|
f({{i, j, k, 0}});
|
||||||
f({i, j, k, 1});
|
f({{i, j, k, 1}});
|
||||||
f({i, j, k, 2});
|
f({{i, j, k, 2}});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -178,7 +178,7 @@ struct partition_traits<Cartesian_grid_3<GeomTraits, MemoryPolicy> >
|
||||||
for(std::size_t i=0; i<g.xdim()-1; ++i)
|
for(std::size_t i=0; i<g.xdim()-1; ++i)
|
||||||
for(std::size_t j=0; j<g.ydim()-1; ++j)
|
for(std::size_t j=0; j<g.ydim()-1; ++j)
|
||||||
for(std::size_t k=0; k<g.zdim()-1; ++k)
|
for(std::size_t k=0; k<g.zdim()-1; ++k)
|
||||||
f({i, j, k});
|
f({{i, j, k}});
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CGAL_LINKED_WITH_TBB
|
#ifdef CGAL_LINKED_WITH_TBB
|
||||||
|
|
@ -236,11 +236,8 @@ struct partition_traits<Cartesian_grid_3<GeomTraits, MemoryPolicy> >
|
||||||
const Grid& g,
|
const Grid& g,
|
||||||
const CGAL::Parallel_tag)
|
const CGAL::Parallel_tag)
|
||||||
{
|
{
|
||||||
const std::size_t sj = g.ydim();
|
|
||||||
const std::size_t sk = g.zdim();
|
|
||||||
|
|
||||||
// for now only parallelize outer loop
|
// for now only parallelize outer loop
|
||||||
auto iterator = [&f, sj, sk](const tbb::blocked_range3d<std::size_t>& r)
|
auto iterator = [&f](const tbb::blocked_range3d<std::size_t>& r)
|
||||||
{
|
{
|
||||||
const std::size_t i_begin = r.pages().begin();
|
const std::size_t i_begin = r.pages().begin();
|
||||||
const std::size_t i_end = r.pages().end();
|
const std::size_t i_end = r.pages().end();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue