Files
cgal/Nef_3/examples/Nef_3/complex_construction.cpp
T
Sylvain Pion 847c23a15e Removing leading and trailing empty lines from all example files.
Using the following Perl script:
-----------------------------------------------------
#!/usr/bin/perl

local($/) = undef;
my $text = <>;

$text =~ s/\A\n+//mg;
$text =~ s/\n+\Z/\n/mg;

print "$text";
-----------------------------------------------------
2007-03-10 16:17:17 +00:00

26 lines
713 B
C++

#include <CGAL/Gmpz.h>
#include <CGAL/Homogeneous.h>
#include <CGAL/OFF_to_nef_3.h>
int main()
{
typedef CGAL::Homogeneous<CGAL::Gmpz> 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;
}