Skip to content

Instantly share code, notes, and snippets.

@dwoll
dwoll / cgal_hole_filling_error2.cpp
Created August 29, 2026 12:44
CGAL hole filling: Error 2
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/boost/graph/border.h>
#include <CGAL/Polygon_mesh_processing/triangulate_hole.h>
#include <CGAL/Polygon_mesh_processing/IO/polygon_mesh_io.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Polygon_mesh_processing/polygon_mesh_to_polygon_soup.h>
// ATTN modified next line
#include <CGAL/Polygon_mesh_processing/orientation.h>
@dwoll
dwoll / cgal_hole_filling_error1.cpp
Created August 29, 2026 12:41
CGAL hole filling: Error 1
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/boost/graph/border.h>
#include <CGAL/Polygon_mesh_processing/triangulate_hole.h>
#include <CGAL/Polygon_mesh_processing/IO/polygon_mesh_io.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Polygon_mesh_processing/polygon_mesh_to_polygon_soup.h>
// ATTN modified next line
#include <CGAL/Polygon_mesh_processing/orientation.h>
@dwoll
dwoll / cgal_hole_filling_ok.cpp
Created August 29, 2026 12:39
CGAL hole filling: OK
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/Surface_mesh.h>
#include <CGAL/boost/graph/border.h>
#include <CGAL/Polygon_mesh_processing/triangulate_hole.h>
#include <CGAL/Polygon_mesh_processing/IO/polygon_mesh_io.h>
#include <CGAL/Polygon_mesh_processing/polygon_soup_to_polygon_mesh.h>
#include <CGAL/Polygon_mesh_processing/polygon_mesh_to_polygon_soup.h>
// ATTN modified next line
#include <CGAL/Polygon_mesh_processing/orientation.h>
## DJV 1 target, see http://imgur.com/LHiZFeG
## unit x y -> cm
## points on outer polygon (ring 1)
djv1 <- read.table(file=textConnection("x y
25.4 67.9
21.2 59.3
27.5 49.4
36.7 46.2
50.4 46.2
57.2 47.3