diff --git a/vcg/complex/algorithms/convex_hull.h b/vcg/complex/algorithms/convex_hull.h index ebe660da..1739ff9b 100644 --- a/vcg/complex/algorithms/convex_hull.h +++ b/vcg/complex/algorithms/convex_hull.h @@ -398,7 +398,7 @@ public: { visible.vert[i].P() = m.vert[ind].P(); m.vert[ind].SetS(); - m.vert[ind].C() = Color4b::LightBlue; + //m.vert[ind].C() = Color4b::LightBlue; selCnt++; } } @@ -416,6 +416,8 @@ public: tri::Allocator::CompactEveryVector(visible); tri::Clean::FlipMesh(visible); + tri::UpdateNormal::PerFaceNormalized(visible); + tri::UpdateNormal::PerVertexNormalized(visible); } };