mirror of https://github.com/CGAL/cgal
Deal with CH3
This commit is contained in:
parent
e7635651a0
commit
5564e566e3
|
|
@ -2,6 +2,7 @@
|
|||
#include <CGAL/Polyhedron_3.h>
|
||||
#include <CGAL/convex_hull_3.h>
|
||||
#include <CGAL/Polygon_mesh_processing/orientation.h>
|
||||
#include <cassert>
|
||||
|
||||
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
|
||||
typedef K::Point_3 Point_3;
|
||||
|
|
@ -12,9 +13,9 @@ int main()
|
|||
Point_3 points[] = { Point_3(1.0, 0.0, 0.0), Point_3(0.0, 1.0, 0.0), Point_3(0.0, 0.0, 1.0), Point_3(0.0, 0.0, 0.0) };
|
||||
Gm_polyhedron P1;
|
||||
CGAL::convex_hull_3(points, &points[4], P1);
|
||||
CGAL_assertion( CGAL::Polygon_mesh_processing::is_outward_oriented(P1) );
|
||||
assert( CGAL::Polygon_mesh_processing::is_outward_oriented(P1) );
|
||||
|
||||
Point_3 points_bis[] = { Point_3(0.0, 1.0, 0.0), Point_3(1.0, 0.0, 0.0), Point_3(0.0, 0.0, 1.0), Point_3(0.0, 0.0, 0.0) };
|
||||
CGAL::convex_hull_3(points_bis, &points_bis[4], P1);
|
||||
CGAL_assertion( CGAL::Polygon_mesh_processing::is_outward_oriented(P1) );
|
||||
assert( CGAL::Polygon_mesh_processing::is_outward_oriented(P1) );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue