This commit is contained in:
Sven Oesau 2023-12-13 21:30:09 +01:00
parent de388bc596
commit 56dfa3aa4a
5 changed files with 8 additions and 8 deletions

View File

@ -73,7 +73,7 @@ void dump_segmented_edges(const DS& data, const std::string tag = std::string())
}
for (const auto iedge : data.iedges()) {
CGAL_assertion(data.line_idx(iedge) != KSP::no_element());
CGAL_assertion(data.line_idx(iedge) != std::size_t(-1));
*(out[data.line_idx(iedge)]) << "2 " << data.segment_3(iedge) << std::endl;
}
@ -1182,7 +1182,7 @@ void dump_cdt(
const auto face = mesh.add_face(vertices);
CGAL::Random rand(fit->info().index);
if (fit->info().index != KSP::no_element()) {
if (fit->info().index != std::size_t(-1)) {
red[face] = (unsigned char)(rand.get_int(32, 192));
green[face] = (unsigned char)(rand.get_int(32, 192));
blue[face] = (unsigned char)(rand.get_int(32, 192));

View File

@ -40,8 +40,8 @@ public:
using Kernel = GeomTraits;
using Intersection_kernel = IntersectionKernel;
using Support_plane = Support_plane<Kernel, Intersection_kernel>;
using Intersection_graph = Intersection_graph<Kernel, Intersection_kernel>;
using Support_plane = CGAL::KSP_3::internal::Support_plane<Kernel, Intersection_kernel>;
using Intersection_graph = CGAL::KSP_3::internal::Intersection_graph<Kernel, Intersection_kernel>;
using Face_event = typename Support_plane::Face_event;
using FT = typename Kernel::FT;

View File

@ -44,7 +44,7 @@ private:
using Direction_2 = typename Kernel::Direction_2;
using Line_2 = typename Kernel::Line_2;
using Data_structure = Data_structure<Kernel, Intersection_kernel>;
using Data_structure = CGAL::KSP_3::internal::Data_structure<Kernel, Intersection_kernel>;
using IVertex = typename Data_structure::IVertex;
using IEdge = typename Data_structure::IEdge;

View File

@ -51,7 +51,7 @@ private:
using From_exact = CGAL::Cartesian_converter<IntersectionKernel, Kernel>;
using Data_structure = Data_structure<Kernel, IntersectionKernel>;
using Data_structure = CGAL::KSP_3::internal::Data_structure<Kernel, IntersectionKernel>;
using IVertex = typename Data_structure::IVertex;
using IEdge = typename Data_structure::IEdge;

View File

@ -53,7 +53,7 @@ public:
using Triangle_2 = typename Kernel::Triangle_2;
using Mesh = CGAL::Surface_mesh<Point_2>;
using Intersection_graph = Intersection_graph<Kernel, Intersection_kernel>;
using Intersection_graph = CGAL::KSP_3::internal::Intersection_graph<Kernel, Intersection_kernel>;
using Bbox_2 = CGAL::Bbox_2;
using IVertex = typename Intersection_graph::Vertex_descriptor;
@ -218,7 +218,7 @@ public:
CGAL_assertion(n != 0);
m_data->k = 0;
m_data->plane = Plane_3(points[0], KSP::normalize(normal));
m_data->plane = Plane_3(points[0], KSP::internal::normalize(normal));
m_data->exact_plane = to_exact(m_data->plane);
m_data->is_bbox = is_bbox;
m_data->distance_tolerance = 0;