mirror of https://github.com/CGAL/cgal
commit
01017f9deb
|
|
@ -13,7 +13,7 @@
|
|||
#ifndef CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H
|
||||
#define CGAL_POLYGON_MESH_PROCESSING_GET_BORDER_H
|
||||
|
||||
#include <CGAL/license/Polygon_mesh_processing/miscellaneous.h>
|
||||
#include <CGAL/license/Polygon_mesh_processing/core.h>
|
||||
|
||||
#include <CGAL/algorithm.h>
|
||||
#include <CGAL/boost/graph/iterator.h>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
#include <CGAL/Polygon_mesh_processing/compute_normal.h>
|
||||
#include <CGAL/Polygon_mesh_processing/border.h>
|
||||
#include <CGAL/Polygon_mesh_processing/repair.h>
|
||||
#include <CGAL/Polygon_mesh_processing/repair_degeneracies.h>
|
||||
#include <CGAL/Polygon_mesh_processing/measure.h>
|
||||
#include <CGAL/Polygon_mesh_processing/connected_components.h>
|
||||
#include <CGAL/Polygon_mesh_processing/shape_predicates.h>
|
||||
|
|
@ -1492,6 +1492,8 @@ private:
|
|||
|| GeomTraits().collinear_3_object()(t, p, q))
|
||||
continue;
|
||||
|
||||
typename GeomTraits::Construct_cross_product_vector_3 cross_product
|
||||
= GeomTraits().construct_cross_product_vector_3_object();
|
||||
#ifdef CGAL_PMP_REMESHING_DEBUG
|
||||
typename GeomTraits::Construct_normal_3 normal
|
||||
= GeomTraits().construct_normal_3_object();
|
||||
|
|
@ -1499,13 +1501,13 @@ private:
|
|||
Vector_3 normal_after_collapse = normal(t, p, q);
|
||||
|
||||
CGAL::Sign s1 = CGAL::sign(normal_before_collapse * normal_after_collapse);
|
||||
CGAL::Sign s2 = CGAL::sign(CGAL::cross_product(Vector_3(s, p), Vector_3(s, q))
|
||||
* CGAL::cross_product(Vector_3(t, p), Vector_3(t, q)));
|
||||
CGAL::Sign s2 = CGAL::sign(cross_product(Vector_3(s, p), Vector_3(s, q))
|
||||
* cross_product(Vector_3(t, p), Vector_3(t, q)));
|
||||
CGAL_assertion(s1 == s2);
|
||||
#endif
|
||||
|
||||
if(CGAL::sign(CGAL::cross_product(Vector_3(s, p), Vector_3(s, q))
|
||||
* CGAL::cross_product(Vector_3(t, p), Vector_3(t, q)))
|
||||
if(CGAL::sign(cross_product(Vector_3(s, p), Vector_3(s, q))
|
||||
* cross_product(Vector_3(t, p), Vector_3(t, q)))
|
||||
!= CGAL::POSITIVE)
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue