mirror of https://github.com/CGAL/cgal
Silence warnings
This commit is contained in:
parent
d5a7e902b4
commit
d72d150f65
|
|
@ -298,9 +298,9 @@ public:
|
||||||
typename Geom_traits::Construct_vertex_3 vertex = m_gt.construct_vertex_3_object();
|
typename Geom_traits::Construct_vertex_3 vertex = m_gt.construct_vertex_3_object();
|
||||||
|
|
||||||
const Point_3& min_p = vertex(m_span, 0);
|
const Point_3& min_p = vertex(m_span, 0);
|
||||||
std::size_t i = (x_coord(p) - x_coord(min_p)) / x_coord(m_spacing);
|
std::size_t i = std::size_t((x_coord(p) - x_coord(min_p)) / x_coord(m_spacing));
|
||||||
std::size_t j = (y_coord(p) - y_coord(min_p)) / y_coord(m_spacing);
|
std::size_t j = std::size_t((y_coord(p) - y_coord(min_p)) / y_coord(m_spacing));
|
||||||
std::size_t k = (z_coord(p) - z_coord(min_p)) / z_coord(m_spacing);
|
std::size_t k = std::size_t((z_coord(p) - z_coord(min_p)) / z_coord(m_spacing));
|
||||||
|
|
||||||
if(i == xdim() - 1)
|
if(i == xdim() - 1)
|
||||||
--i;
|
--i;
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,6 @@ bool read_Image_3(const CGAL::Image_3& image,
|
||||||
{
|
{
|
||||||
using Geom_traits = typename Grid::Geom_traits;
|
using Geom_traits = typename Grid::Geom_traits;
|
||||||
using FT = typename Geom_traits::FT;
|
using FT = typename Geom_traits::FT;
|
||||||
using Point_3 = typename Geom_traits::Point_3;
|
|
||||||
using Iso_cuboid_3 = typename Geom_traits::Iso_cuboid_3;
|
using Iso_cuboid_3 = typename Geom_traits::Iso_cuboid_3;
|
||||||
|
|
||||||
typename Geom_traits::Construct_point_3 point = grid.geom_traits().construct_point_3_object();
|
typename Geom_traits::Construct_point_3 point = grid.geom_traits().construct_point_3_object();
|
||||||
|
|
|
||||||
|
|
@ -464,7 +464,7 @@ public:
|
||||||
const auto& depth = node.depth();
|
const auto& depth = node.depth();
|
||||||
|
|
||||||
std::array<Edge_handle, internal::Cube_table::N_EDGES> edges;
|
std::array<Edge_handle, internal::Cube_table::N_EDGES> edges;
|
||||||
for(int e_id=0; e_id<edges.size(); ++e_id)
|
for(std::size_t e_id=0; e_id<edges.size(); ++e_id)
|
||||||
{
|
{
|
||||||
const std::size_t e_gl = e_glIndex(e_id, coords_global[0], coords_global[1], coords_global[2], depth);
|
const std::size_t e_gl = e_glIndex(e_id, coords_global[0], coords_global[1], coords_global[2], depth);
|
||||||
edges[e_id] = {e_gl, depth};
|
edges[e_id] = {e_gl, depth};
|
||||||
|
|
|
||||||
|
|
@ -66,9 +66,9 @@ public:
|
||||||
|
|
||||||
// calculate min index including border case
|
// calculate min index including border case
|
||||||
const Point_3& min_p = vertex(span, 0);
|
const Point_3& min_p = vertex(span, 0);
|
||||||
std::size_t i = (x_coord(p) - x_coord(min_p)) / x_coord(spacing);
|
std::size_t i = std::size_t((x_coord(p) - x_coord(min_p)) / x_coord(spacing));
|
||||||
std::size_t j = (y_coord(p) - y_coord(min_p)) / y_coord(spacing);
|
std::size_t j = std::size_t((y_coord(p) - y_coord(min_p)) / y_coord(spacing));
|
||||||
std::size_t k = (z_coord(p) - z_coord(min_p)) / z_coord(spacing);
|
std::size_t k = std::size_t((z_coord(p) - z_coord(min_p)) / z_coord(spacing));
|
||||||
|
|
||||||
if(i == g.xdim() - 1)
|
if(i == g.xdim() - 1)
|
||||||
--i;
|
--i;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue