Minor fix: If we know that a PolySet is convex, there is no need to perform a computationally expensive test. Should improve #1090

master
Marius Kintel 2015-01-05 17:37:14 -05:00
parent 90172fa5c3
commit 5a2b89981c
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ static CGAL_Nef_polyhedron *createNefPolyhedronFromPolySet(const PolySet &ps)
// we tessellate the polyset before checking.
PolySet psq(ps);
psq.quantizeVertices();
PolySet ps_tri(3);
PolySet ps_tri(3, psq.convexValue());
PolysetUtils::tessellate_faces(psq, ps_tri);
if (ps_tri.is_convex()) {
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;