Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] How to interpret outcome from cout << Nef_polyhedron_2

Subject: CGAL users discussion list

List archive

[cgal-discuss] How to interpret outcome from cout << Nef_polyhedron_2


Chronological Thread 
  • From: Le Liu <>
  • To:
  • Subject: [cgal-discuss] How to interpret outcome from cout << Nef_polyhedron_2
  • Date: Fri, 17 Nov 2017 01:57:51 -0500
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=None ; spf=None
  • Ironport-phdr: 9a23:KHoXuhHvsWkWMm5wm6opoZ1GYnF86YWxBRYc798ds5kLTJ76os2wAkXT6L1XgUPTWs2DsrQf1LqQ7viocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TXhpQIVTx7wPA4wKuXuEZPJlOy20fqz8tvdeVZmnj24NJd/ZDG3sE2FssQSqYQkIaI8zwDOpD1Fd/kAljAgHk6agxupvpT4x5Vk6SkF4/8=

Hello,

I'm pretty new to CGAL.
Here is my test code:
        Nef_polyhedron::Point p0(0, 0, 10);
        Nef_polyhedron::Point p1(0, 10, 10);
        Nef_polyhedron::Point p2(10, 10, 10);
        Nef_polyhedron::Point p3(10, 0, 10);
        Nef_polyhedron::Point rect[5] = {p0, p1, p2, p3};
        Nef_polyhedron N2(rect, rect + 4, Nef_polyhedron::INCLUDED);
        cout << N2 << endl;

The output is 
----------------------------
Nef_polyhedron_2<Filtered_extended_homogeneous>
Plane_map_2
vertices 8
halfedges 16
faces 3
0 { 0 3, 0, -1 0 -1 0 1}
1 { 0 5, 0, -1 0 1 0 1}
2 { 0 9, 1, 0 0 0 0 10}
3 { 0 11, 1, 0 0 0 10 10}
4 { 0 13, 1, 0 10 0 0 10}
5 { 0 10, 1, 0 10 0 10 10}
6 { 0 15, 0, 1 0 -1 0 1}
7 { 0 4, 0, 1 0 1 0 1}
0 { 1, 3, 4, 1, 0, 0 }
1 { 0, 5, 2, 0, 1, 0 }
2 { 3, 1, 14, 6, 1, 0 }
3 { 2, 15, 0, 0, 0, 0 }
4 { 5, 0, 15, 7, 0, 0 }
5 { 4, 14, 1, 1, 1, 0 }
6 { 7, 9, 10, 3, 1, 1 }
7 { 6, 11, 8, 2, 2, 1 }
8 { 9, 7, 12, 4, 2, 1 }
9 { 8, 13, 6, 2, 1, 1 }
10 { 11, 6, 13, 5, 1, 1 }
11 { 10, 12, 7, 3, 2, 1 }
12 { 13, 8, 11, 5, 2, 1 }
13 { 12, 10, 9, 4, 1, 1 }
14 { 15, 2, 5, 7, 1, 0 }
15 { 14, 4, 3, 6, 0, 0 }
0 { -1, 0 , , 0 }
1 { 1, 6 , , 1 }
2 { 7, , , 0 }
----------------------------------------

My question is how to interpret this output.
I read the manual of 2D Boolean Operations on Nef Polygons, but I did not find any explanation about this.

Thank you.

Best,
Le


  • [cgal-discuss] How to interpret outcome from cout << Nef_polyhedron_2, Le Liu, 11/17/2017

Archive powered by MHonArc 2.6.18.

Top of Page