File: complex_construction.cpp

package info (click to toggle)
cgal 4.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 69,700 kB
  • ctags: 118,537
  • sloc: cpp: 571,870; ansic: 110,997; sh: 725; python: 92; makefile: 87
file content (25 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <CGAL/Exact_integer.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/OFF_to_nef_3.h>

int main()
{
   typedef CGAL::Homogeneous<CGAL::Exact_integer>  Kernel;
   typedef CGAL::Nef_polyhedron_3<Kernel> Nef_3;

   Nef_3 N;
   std::size_t discarded = CGAL::OFF_to_nef_3 (std::cin, N, true);

   std::cout << "Nef vertices: "
             << N.number_of_vertices() << std::endl;
   std::cout << "Nef edges: "
             << N.number_of_edges() << std::endl;
   std::cout << "Nef facets: "
             << N.number_of_facets() << std::endl;
   std::cout << "Nef volumes: "
             << N.number_of_volumes() << std::endl;
   std::cout << "number of discarded facets: "
             << discarded << std::endl;

   return 0;
}