remove warning

This commit is contained in:
Guillaume Damiand 2023-12-26 09:51:02 +01:00
parent 0fdd175ef0
commit a31128516b
1 changed files with 10 additions and 11 deletions

View File

@ -16,9 +16,9 @@ struct Colored_faces_given_height:
{
Colored_faces_given_height(const Mesh& sm)
{
if(sm.is_empty()) return;
double m_min_z, m_max_z;
if(!sm.is_empty())
{
bool first=true;
for(typename Mesh::Vertex_index vi: sm.vertices())
{
@ -30,14 +30,13 @@ struct Colored_faces_given_height:
m_max_z=(std::max)(m_max_z, sm.point(vi).z());
}
}
}
this->colored_face=[](const Mesh &, typename Mesh::Face_index)->bool { return true; };
this->face_color=[m_min_z, m_max_z]
(const Mesh& sm, typename Mesh::Face_index fi)->CGAL::IO::Color
{
double res;
double res=0.;
std::size_t n=0;
for(typename Mesh::Vertex_index vi: vertices_around_face(sm.halfedge(fi), sm))
{