Commit Graph
284 Commits
Author SHA1 Message Date
Sebastien Loriot f6014dcc26 Add functions to compute the kernel of a triangle mesh (#9131)
Add functions to compute the kernel of a mesh

## Release Management

* Affected package(s):  `PMP`, `BGL`
* Issue(s) solved (if any): 
* Feature/Small Feature (if any):
[Mesh_Kernel](https://cgalwiki.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Mesh_Kernel)
* Link to compiled documentation (obligatory for small feature) [*wrong
link name to be changed*]()
* License and copyright ownership: GF
2026-02-13 13:45:32 +01:00
Sebastien Loriot f60daf05e4 Mesh_2: fix degenerate cases (#9290)
## Summary of Changes

This PR fixes the error reported in issue #781. The main two changes
are:

- in `Refine_edges.h`: allow the refinement point of a constrained edge
to be an existing close encroaching vertex,
- in `Refine_faces.h`: skip tiny bad faces when their bbox are smaller
than a few ulp.

## Release Management

* Affected package(s): Triangulation_2, Mesh_2
* Issue(s) solved (if any): fix #781
* Feature/Small Feature (if any):
* Link to compiled documentation (obligatory for small feature) [*wrong
link name to be changed*](httpssss://wrong_URL_to_be_changed/Manual/Pkg)
* License and copyright ownership: maintenance by GeometryFactory, now
copyright change
2026-02-12 15:01:59 +01:00
Laurent Rineau bf02fda158 CGAL Lab, OFF plugin: fix a memory leak
... and factorize the call to `Scene_item::set_name` into a lambda.
2026-02-05 12:16:45 +01:00
lvalque d2c0d5e93f Merge branch 'main' into PMP-kernel 2026-02-05 10:14:12 +01:00
Sebastien Loriot 0f2ef13e0e CGAL: Prefix macros with CGAL_ (#9279)
## Summary of Changes

Prefix macros. Some are include guards, some have relatively generic
names.
Remove several files from CGAL_ImageIO and put the code in the files
kept in `namespace CGAL`

## Release Management

* Affected package(s): several
* License and copyright ownership: unchanged
2026-02-03 14:21:53 +01:00
Mael Rouxel-Labbé 92a58dfe25 Add .obj polyline reading to CGALlab 2026-02-02 14:46:08 +00:00
Mael Rouxel-Labbé 95a4a85aa1 Fix & enhancements for basic generator plugin:
- Fix grid generation for x=constant
- Enable 2D point generation
- Fixes and enhancements for the UI
- General clean-up

Not fixed: the pyramid has a Y axis, that should be at Z for consistency,
or even be a parameter of the BGL function...
2026-01-29 11:33:08 +01:00
Sébastien Loriot d00965e205 interpret commas as spaces 2026-01-28 16:49:38 +01:00
Valque Léo 54b85f6f10 Move Kernel_plugin in PMP 2026-01-27 21:36:26 +01:00
Valque Léo ae28ec5c11 Update Kernel_plugin of Lab 2026-01-22 20:51:22 +01:00
Laurent Rineau 158d5616e4 fix conflicts 2026-01-21 10:16:00 +01:00
Laurent Rineau ca07d1c553 cleaner code: use VTK enumerators instead of integers 2026-01-20 18:05:58 +01:00
Andreas Fabri 64d228acee Fix plugins 2026-01-15 13:27:47 +00:00
albert-github 76b79c3e10 Corrections to CMakeLists
Synchronizing all on "(or greater)" in CMakeLists.txt
2026-01-12 13:35:14 +01:00
Sébastien Loriot b9916cbb58 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2026-01-09 15:53:29 +01:00
Sebastien Loriot 66abfffb2d Improve Polygon Soup Statistics (#9254)
Fix # degenerate face reports + add self-intersect
2026-01-09 15:49:02 +01:00
Sébastien Loriot d293d7c773 degenerate face test is now a predicate and add does self intersect for triangle soup 2026-01-09 14:21:23 +01:00
Sébastien Loriot f495168770 backport warning fixes 2026-01-07 18:16:39 +01:00
Sébastien Loriot 39e7fe5512 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-12-04 18:44:41 +01:00
Sebastien Loriot 163c35c53e Workaround API update of Qt6 (#9165)
Should fix errors
[here](https://cgal.geometryfactory.com/CGAL/testsuite/CGAL-6.2-Ic-53/Lab_Demo/TestReport_gimeno_ArchLinux-clang-Release.gz)
2025-12-04 18:36:26 +01:00
Sébastien Loriot 26a5fc70e4 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-12-03 11:54:47 +01:00
Andreas Fabri f503ce9359 Lab: use results 2025-12-03 11:51:43 +01:00
Sébastien Loriot 65e7050131 workaround API update of Qt6 2025-12-03 11:24:53 +01:00
Sebastien Loriot 1673cd0f9e Fix OBJ loader crashing the demo on reading failure (#9128)
## Release Management

* Affected package(s): `Lab`
* Issue(s) solved (if any): a few entries in #6690 
* Feature/Small Feature (if any): n/a
* License and copyright ownership: no change
2025-11-13 09:40:07 +01:00
Sebastien Loriot dfc5fb5065 IO: write_PLY() for Epeck (#7874)
## Summary of Changes

As reported in #7868 the function `CGAL::IO::write_PLY()` used in binary
mode does not correctly write the coordinates if the points are from a
kernel with exact constructions.
~~This PR applies `to_double()" to the coordinates.~~

~~After a discussion with @MaelRL we decided that the user is in charge
to pass a `vertex_point_map` as named parameter that does the
conversion. This is straightforward as we offer the
[`Cartesian_converter_property_map`](https://doc.cgal.org/latest/Property_map/structCGAL_1_1Cartesian__converter__property__map.html).~~

Moving back to the previous proposal: hardcode some to_double and
to_float casts such that we meet the requirements of the file format,
whatever the input.

As the problem is the same for the vertex normals we add a named
parameter `vertex_normal_map`.

### Todo
- [x] Fix the generic function `write_polygon_mesh()`. Currently it is
fixed for `Surface_mesh`

## Release Management

* Affected package(s): Stream_support
* Issue(s) solved (if any): fix #7868 and fix
https://github.com/CGAL/cgal/issues/7327
* License and copyright ownership:  unchanged
* upcoming integration, update #9072 and test it
2025-11-13 09:38:55 +01:00
Mael Rouxel-Labbé cd787c84d1 Use verbose OBJ reader in Lab 2025-11-07 22:02:08 +01:00
Mael Rouxel-Labbé 0ac856dd41 Fix OBJ loader crahsing the demo on reading failure 2025-11-07 21:00:12 +01:00
Sébastien Loriot 3b0d95e0e5 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-11-06 10:07:15 +01:00
Sven Oesau ffda347171 adding support for Eigen3 5.0.0 (6.1 version)
moving the Eigen3 version check into CGAL_Eigen3_support.cmake
2025-11-06 10:06:29 +01:00
Sébastien Loriot a9b369650a Merge remote-tracking branch 'cgal/6.0.x-branch' into 'cgal/6.1.x-branch' 2025-11-06 10:04:46 +01:00
Sven Oesau 9e36c6744b adding support for Eigen3 5.0.0
moving the Eigen3 version check into CGAL_Eigen3_support.cmake
2025-11-06 10:01:01 +01:00
Sebastien Loriot 2007dd9e9e Fixing conversion warnings (#9095)
## Summary of Changes

Fixing some conversion warnings.

## Release Management

* Affected package(s): Kinetic Surface Reconstruction, Lab, PMP
2025-10-17 10:06:48 +02:00
Sven Oesau 1a07d25cc3 fixing some conversion warnings 2025-10-06 16:06:42 +02:00
Andreas Fabri 3be4ffce37 Fix plugin 2025-09-29 15:42:59 +01:00
Andreas Fabri 3567ba1456 Fix plugin 2025-09-29 15:08:02 +01:00
Laurent Rineau dcb298d265 fix a CMake warning about ITK 2025-09-25 11:41:06 +02:00
Laurent Rineau 318a03d56e CGAL Lab: fix linter warnings in Scene_polygon_soup_item.cpp 2025-09-25 11:05:17 +02:00
Sebastien Loriot 39c7001a25 Stream Support: Return false if nothing was read (#9038)
## Summary of Changes

The `read_..._WKT()` functions have `bool` as return type, but currently
only check if the stream is bad, which is not the case if no input was
read.

This PR was triggered by the fact that CGALlab could not WTK files with
polygons, but only polylines. It now can read polygons, but does only
draw the contours and not the interior.

## Release Management

* Affected package(s): Stream_support
* License and copyright ownership:  unchanged
2025-09-22 12:00:10 +02:00
Sebastien Loriot 521883477d CGAL: Adress Wunused-but-set-variable (#9040)
## Summary of Changes

### Todo

In the issue I had questions to @soesau and @janetournois 

## Release Management

* Affected package(s): 
* Issue(s) solved (if any): fix #9039
* License and copyright ownership: unchanged
2025-09-22 11:58:40 +02:00
Andreas Fabri 6912b8c668 CGALlab can now load wkt polygons and display them as polylines 2025-09-17 16:10:45 +01:00
Sebastien Loriot 106f9659b1 Lab: Plugin to open .spheres.txt files (#9028)
## Summary of Changes

Added a Plugin to import .spheres.txt files with a list of spheres.

## Release Management

* Affected package(s): Lab
2025-09-08 15:30:38 +02:00
Sébastien Loriot 72cfcc4156 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-09-03 16:57:03 +02:00
Andreas Fabri 3108022a21 CGAL: Address Wunused-but-set-variable 2025-08-21 13:13:29 +01:00
Andreas Fabri 74cf183ba2 Adress warning 2025-08-21 06:06:38 +01:00
Sébastien Loriot ae6ffd5e09 use EPICK and Side_of_triangle_mesh 2025-08-20 15:51:33 +02:00
Sébastien Loriot 2ae34a22ba Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-08-13 18:09:36 +02:00
Sven Oesau 90f6b74bf4 revert changes to shader_spheres.vert
removing unused function
2025-08-08 12:01:12 +02:00
Sven Oesau 84ece78f82 Lab plugin to open .spheres.txt files with a list of spheres 2025-08-08 11:41:36 +02:00
Sébastien Loriot 81952a1c18 Merge pull request #8965 from ybellargui/Small_feature/rename_functions_with_deprecated
[Small Feature] Rename import functions with deprecation and add alias tests
2025-08-07 14:42:13 +02:00
Andreas Fabri 465d2046ae cleanup 2025-08-04 16:02:03 +01:00