* Workaround orientation bug in output_surface_facets_to_off(): call output_surface_facets_to_polyhedron() then save polyhedron to OFF.

* Also change make_surface_mesh() tag parameter from Manifold_with_boundary_tag to Manifold_tag as implicit functions have no boundaries.
This commit is contained in:
Laurent Saboret 2009-07-29 09:45:42 +00:00
parent f7ca35ad47
commit 47065c2ae1
6 changed files with 9 additions and 9 deletions

View File

@ -12,10 +12,10 @@
#include <CGAL/Surface_mesh_default_triangulation_3.h> #include <CGAL/Surface_mesh_default_triangulation_3.h>
#include <CGAL/make_surface_mesh.h> #include <CGAL/make_surface_mesh.h>
#include <CGAL/Implicit_surface_3.h> #include <CGAL/Implicit_surface_3.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
// This package // This package
#include <CGAL/APSS_reconstruction_function.h> #include <CGAL/APSS_reconstruction_function.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
// APSS implicit function // APSS implicit function
@ -111,7 +111,7 @@ Polyhedron* APSS_reconstruct(const Point_set& points,
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option

View File

@ -12,10 +12,10 @@
#include <CGAL/Surface_mesh_default_triangulation_3.h> #include <CGAL/Surface_mesh_default_triangulation_3.h>
#include <CGAL/make_surface_mesh.h> #include <CGAL/make_surface_mesh.h>
#include <CGAL/Implicit_surface_3.h> #include <CGAL/Implicit_surface_3.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
// This package // This package
#include <CGAL/Poisson_reconstruction_function.h> #include <CGAL/Poisson_reconstruction_function.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
// Poisson implicit function // Poisson implicit function
@ -123,7 +123,7 @@ Polyhedron* poisson_reconstruct(const Point_set& points,
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option

View File

@ -251,7 +251,7 @@ int main(int argc, char * argv[])
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option

View File

@ -258,7 +258,7 @@ int main(int argc, char * argv[])
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option

View File

@ -16,13 +16,13 @@
#include <CGAL/Surface_mesh_default_triangulation_3.h> #include <CGAL/Surface_mesh_default_triangulation_3.h>
#include <CGAL/make_surface_mesh.h> #include <CGAL/make_surface_mesh.h>
#include <CGAL/Implicit_surface_3.h> #include <CGAL/Implicit_surface_3.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
// This package // This package
#include <CGAL/APSS_reconstruction_function.h> #include <CGAL/APSS_reconstruction_function.h>
#include <CGAL/Point_with_normal_3.h> #include <CGAL/Point_with_normal_3.h>
#include <CGAL/property_map.h> #include <CGAL/property_map.h>
#include <CGAL/IO/read_xyz_points.h> #include <CGAL/IO/read_xyz_points.h>
#include <CGAL/IO/output_surface_facets_to_polyhedron.h>
#include "compute_normal.h" #include "compute_normal.h"
@ -252,7 +252,7 @@ int main(int argc, char * argv[])
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option

View File

@ -266,7 +266,7 @@ int main(int argc, char * argv[])
<< " angle="<<sm_angle << " degrees,\n" << " angle="<<sm_angle << " degrees,\n"
<< " triangle size="<<sm_radius<<" * point set radius,\n" << " triangle size="<<sm_radius<<" * point set radius,\n"
<< " distance="<<sm_distance<<" * p.s.r.,\n" << " distance="<<sm_distance<<" * p.s.r.,\n"
<< " Manifold_with_boundary_tag)\n" << " Manifold_tag)\n"
<< " where point set radius="<<radius<<"\n"; << " where point set radius="<<radius<<"\n";
// Generates surface mesh with manifold option // Generates surface mesh with manifold option