Skip to content

Instantly share code, notes, and snippets.

View lrineau's full-sized avatar

Laurent Rineau lrineau

View GitHub Profile
@lrineau
lrineau / CMakeLists.txt
Created January 15, 2025 17:48
C++/CMake project to reproduce a CMake bug
cmake_minimum_required(VERSION 3.30)
project(repro LANGUAGES CXX)
message(STATUS "
CXXFLAGS: ${CMAKE_CXX_FLAGS}
CMAKE_CXX_STANDARD_COMPUTED_DEFAULT: ${CMAKE_CXX_STANDARD_COMPUTED_DEFAULT}
")
add_executable(main main.cpp)
target_compile_features(main PRIVATE cxx_std_20)
@lrineau
lrineau / Doxyfile
Last active December 5, 2024 08:42
ALIASES = "hello=\note Hello world!"
QUIET = YES
GENERATE_LATEX = NO
GENERATE_XML = YES
@lrineau
lrineau / results.md
Last active November 28, 2024 22:34

Test runner machines

The following machines are used to run the tests:

lrineau@bonnard

using Docker version 24.0.5, build %{shortcommit_cli}

Tested images:

--- Surface_mesher/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h 2024-06-06 16:15:39.923520749 +0200
+++ Poisson_surface_reconstruction_3/include/CGAL/Surface_mesher/Poisson_implicit_surface_oracle_3.h 2024-06-06 16:15:39.919520762 +0200
@@ -1,5 +1,5 @@
// Copyright (c) 2003-2007 INRIA Sophia-Antipolis (France).
-// Copyright (c) 2008 GeometryFactory, Sophia Antipolis (France)
+// Copyright (c) 2008,2011 GeometryFactory Sarl (France)
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org).
@@ -11,20 +11,18 @@
diff --git a/Installation/include/CGAL/license/Heat_method_3.h b/Installation/include/CGAL/license/Heat_method_3.h
index 8e02b59f24a..e47cf0fce2c 100644
--- a/Installation/include/CGAL/license/Heat_method_3.h
+++ b/Installation/include/CGAL/license/Heat_method_3.h
@@ -11,16 +11,12 @@
//
// Warning: this file is generated, see include/CGAL/license/README.md
-
#ifndef CGAL_LICENSE_HEAT_METHOD_3_H
diff --git a/Installation/include/CGAL/license/Heat_method_3.h b/Installation/include/CGAL/license/Heat_method_3.h
index 8e02b59f24a..e47cf0fce2c 100644
--- a/Installation/include/CGAL/license/Heat_method_3.h
+++ b/Installation/include/CGAL/license/Heat_method_3.h
@@ -11,16 +11,12 @@
//
// Warning: this file is generated, see include/CGAL/license/README.md
-
#ifndef CGAL_LICENSE_HEAT_METHOD_3_H
diff --git a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair_manifold_volume.h b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair_manifold_volume.h
index a68edfeba98..43ad15ae4b2 100644
--- a/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair_manifold_volume.h
+++ b/Polygon_mesh_processing/include/CGAL/Polygon_mesh_processing/repair_manifold_volume.h
@@ -819,6 +819,8 @@ std::size_t construct_cdt3(PointRange& points,
CT& cdt,
const NamedParameters& = parameters::default_values())
{
+ cdt.set_segment_vertex_epsilon(0.);
+

CGAL named parameters

What are named parameters in CGAL?

In CGAL, a named parameter pack is:

  • a tuple of values,
  • but those values are not indexed by indices but by names,
  • and there is a special set of functions and member functions to incrementally create a named parameter pack.
NOFF
1946 3888 0
-0.12245531353863498 0.12085082546768333 -0.12419821007273174 -0.56703243805751169 0.55506393726513781 -0.60858708476131596
-0.12200886008863143 -0.12282473857847831 -0.12375175662272822 -0.5443196979533792 -0.59943412760276216 -0.58685159374841733
0 0 -0.44907407407407407 0 0 -1
0.12313572887182571 0.12153124080087409 -0.12220871082757577 0.57882063598095768 0.56150757335946633 -0.59133401426145205
0.12268927542182219 -0.12350515391166904 -0.12176225737757224 0.55078069502590854 -0.61094600423412604 -0.56867003252952619
0.44907407407407407 0 0 1 0 0
0.12244267271076298 -0.12244267271076298 0.12244267271076298 0.57735026918962584 -0.57735026918962584 0.57735026918962573
@lrineau
lrineau / end-of-colmap-install-x64-linux-dbg-out.log
Created March 23, 2023 16:12
./vcpkg install colmap:x64-linux --recurse
FAILED: src/exe/colmap
: && /usr/bin/c++ -fPIC -Wno-maybe-uninitialized -fopenmp -Wall -std=c++14 -g -rdynamic src/exe/CMakeFiles/colmap_exe.dir/colmap.cc.o src/exe/CMakeFiles/colmap_exe.dir/database.cc.o src/exe/CMakeFiles/colmap_exe.dir/feature.cc.o src/exe/CMakeFiles/colmap_exe.dir/gui.cc.o src/exe/CMakeFiles/colmap_exe.dir/image.cc.o src/exe/CMakeFiles/colmap_exe.dir/model.cc.o src/exe/CMakeFiles/colmap_exe.dir/mvs.cc.o src/exe/CMakeFiles/colmap_exe.dir/sfm.cc.o src/exe/CMakeFiles/colmap_exe.dir/vocab_tree.cc.o src/exe/CMakeFiles/colmap_exe.dir/home/lrineau/Git/vcpkg/installed/x64-linux/share/cmake/Qt5Gui/Qt5Gui_QEglFSEmulatorIntegrationPlugin_Import.cpp.o src/exe/CMakeFiles/colmap_exe.dir/home/lrineau/Git/vcpkg/installed/x64-linux/share/cmake/Qt5Gui/Qt5Gui_QEglFSKmsEglDeviceIntegrationPlugin_Import.cpp.o src/exe/CMakeFiles/colmap_exe.dir/home/lrineau/Git/vcpkg/installed/x64-linux/share/cmake/Qt5Gui/Qt5Gui_QEglFSKmsGbmIntegrationPlugin_Import.cpp.o src/exe/CMakeFiles/colmap_exe.dir/home/lrineau/Git/vcpkg