Fix warnings in polyhedron examples

This commit is contained in:
Maxime Gimeno 2020-04-08 11:30:17 +02:00
parent 7beb631e77
commit 04fc3550d2
1 changed files with 6 additions and 1 deletions

View File

@ -50,7 +50,12 @@ class My_vertex : public CGAL::HalfedgeDS_vertex_base<Refs, T, P> {
Norm norm;
public:
My_vertex() {} // repeat mandatory constructors
My_vertex( const P& pt) : CGAL::HalfedgeDS_vertex_base<Refs, T, P>(pt) {}
My_vertex( const P& pt)
: CGAL::HalfedgeDS_vertex_base<Refs, T, P>(pt)
{
//initialization of the normal
norm= CGAL::NULL_VECTOR;
}
typedef Norm Normal_3;
Normal_3& normal() { return norm; }
const Normal_3& normal() const { return norm; }