mirror of https://github.com/vitalif/openscad
Minor fix: If we know that a PolySet is convex, there is no need to perform a computationally expensive test. Should improve #1090
parent
90172fa5c3
commit
5a2b89981c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue