Commit Graph

953 Commits

Author SHA1 Message Date
Sébastien Loriot f98d968ed0 Merge remote-tracking branch 'cgal/6.1.x-branch' into 'cgal/main' 2025-11-19 14:46:33 +01:00
Sébastien Loriot 9bd1705bf8 Merge remote-tracking branch 'cgal/6.0.x-branch' into 'cgal/6.1.x-branch' 2025-11-19 14:45:21 +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é 333a15584f Handle (invalid) zero vertex index in face 2025-11-07 22:02:20 +01:00
Mael Rouxel-Labbé 3ef43324bb Fix bad 'if' condition & warning 2025-11-07 17:05:21 +01:00
Andreas Fabri 35613b984f Deal with generic version 2025-10-30 11:45:28 +01:00
Andreas Fabri 00f5ae061d Use Simple_cartesian<Exact_rational> 2025-10-30 09:36:53 +01:00
Andreas Fabri 0217e30573 Stream_Support: typos 2025-10-22 09:31:56 +01:00
Andreas Fabri 3706528a0c
Update Stream_support/include/CGAL/IO/PLY/PLY_writer.h
Co-authored-by: Mael <mael.rouxel.labbe@geometryfactory.com>
2025-10-17 11:20:06 +02:00
Andreas Fabri 865c1d2ed7 Fix error in test case 2025-10-06 13:05:32 +01:00
Andreas Fabri e652a7976a fix doxygen warning 2025-09-29 16:21:33 +01:00
Andreas Fabri 5103fb4eb7 merge 2025-09-26 17:18:25 +01:00
Andreas Fabri a95bfa77c8 The example can also read in a polygon with 3D points 2025-09-17 15:27:23 +01:00
Andreas Fabri 4510260e36 Use found 2025-09-11 08:05:24 +01:00
Andreas Fabri ef834cc6c1 Test that 2D wkt data can be read into 3D points/polygons 2025-08-20 16:30:49 +01:00
Andreas Fabri b23eb7e7b4 Deal with read_WKT() 2025-08-20 15:32:33 +01:00
Andreas Fabri 8cedde9036 Stream_support: Return false if nothing read 2025-08-20 15:10:31 +01:00
Jane Tournois 0ab9d3eebf Merge remote-tracking branch 'cgal/master' into Triangulation_3-CDT_3-lrineau
# Conflicts:
#	Installation/CHANGES.md
2025-06-10 11:18:38 +02:00
Sébastien Loriot 99c70b1ef2 fix doc errors 2025-06-02 19:03:19 +02:00
Sebastien Loriot 97bd1cf428
Rename home page of reference manuals to "Reference Manual" (#8904)
Before: "Pkg Reference"
After: "Reference Manual"

No need to repeat the package name as it is on the line above.

Example output
![Screenshot from 2025-05-22
16-18-54](https://github.com/user-attachments/assets/ed285e12-d95c-4ec2-934d-12f4c7aa014c)
2025-05-26 11:47:37 +02:00
Sébastien Loriot 13609a6966 no need to repeat the package name as it is on the line above 2025-05-22 17:53:41 +02:00
Laurent Rineau 34cdf58eea fix doc in Stream_support
and refactor the CSS files
2025-05-21 16:56:10 +02:00
Laurent Rineau 182b706633 GAL/CGAL 2025-05-21 15:39:38 +02:00
Laurent Rineau 171703ad35 fix the formatting in that page 2025-05-21 15:35:11 +02:00
Laurent Rineau 2359de500e fix doc in PkgPolyhedronIOFunc 2025-05-21 14:47:18 +02:00
Laurent Rineau b74ab80a85 fix the doc of the Medit format 2025-05-19 19:02:31 +02:00
Laurent Rineau cb33e4fc7e fix iwyu warnings 2025-05-16 11:50:38 +02:00
Andreas Fabri 2bdeff8687 counter-clockwise -> counterclockwise 2025-05-15 07:41:00 +01:00
Mael Rouxel-Labbé e38e29f279 dont > don't 2025-03-28 20:52:22 +01:00
Andreas Fabri 1cecefe1c8 Mesh_2: Fixes of write_VTU 2025-03-07 07:37:28 +00:00
Laurent Rineau 8eefb7f173 Merge branch 'master' into pr/lrineau/8273 2025-02-07 16:10:52 +01:00
Laurent Rineau 765744e8b2 fix WKT I/O error handling 2025-02-06 01:22:02 +01:00
Laurent Rineau e5001d1a50 update our CMake version 3.18...3.31
That will suppress the warnings about `CMP0167` (from CMake 3.30):

```
CMake Warning (dev) at cmake/modules/display-third-party-libs-versions.cmake:37 (find_package):
  Policy CMP0167 is not set: The FindBoost module is removed.  Run "cmake
  --help-policy CMP0167" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.
```
2025-02-04 14:32:37 +01:00
Laurent Rineau 1ce108778f rewrite/refactor a lot of the code 2025-01-22 16:03:26 +01:00
Laurent Rineau 56bb4191ed cleanup existing code 2025-01-13 11:24:30 +01:00
Andreas Fabri ae81703f6c Stream_support: Document that WKT can also handle 3D points 2024-12-20 11:56:46 +00:00
Sebastien Loriot 74ea8b1f6c
Add CGAL::IO::read_OM() (#8427)
## Summary of Changes

Add a function to read an OpenMesh file ( `*.om` ) in CGALlab. This file
format stores also edges and vertices marked as features.
For the moment the function itself is not documented.

## Release Management

* License and copyright ownership: GeometryFactory
2024-11-14 14:12:26 +01:00
Sébastien Loriot c8936698ac apply @MaelRL review 2024-11-08 16:22:47 +01:00
Sébastien Loriot 51b98e9cc2 add doc 2024-10-24 16:54:15 +02:00
Jane Tournois cddb3d5c56 move OM.h IO header to BGL package
adapt demo and examples
BGL example TriMesh.cpp does not compile
2024-10-23 11:58:02 +02:00
albert-github dd02af92a2 issue #8515 Spelling mistakes found checking `en-GB` to `en-US`
Spelling corrections, `en-GB` -> `en-US`
2024-10-05 11:28:29 +02:00
Jane Tournois 5d77b6b19e remove debug code 2024-09-26 12:11:11 +02:00
Jane Tournois 54db08518a
add EOL
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2024-09-26 11:58:52 +02:00
Jane Tournois 5f2afe2e36
fix typedefs (code review)
Co-authored-by: Sebastien Loriot <sloriot.ml@gmail.com>
2024-09-26 11:58:20 +02:00
albert-github 25bd968aa3 Incorrect documentation of color components in Stream_support
The zero-th component is 0, and consequently the first is green,  the second is blue and the alpha component is the 3rd.
2024-09-21 18:52:13 +02:00
Andreas Fabri 7faabe4b62 Add #include of copy_face_graph 2024-09-20 07:54:34 +01:00
Andreas Fabri 206eb3c198 Only compile OM.h when using OpenMesh 2024-09-17 08:52:14 +01:00
Andreas Fabri 7d849ee2d3 Merge remote-tracking branch 'cgal/master' into BGL-Openmesh_selection-GF 2024-09-17 08:48:44 +01:00
Sébastien Loriot 41b096c91a Merge remote-tracking branch 'cgal/5.6.x-branch' 2024-09-11 17:23:50 +02:00