Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
77 commits
Select commit Hold shift + click to select a range
54412d7
Stream_support: Add write_MEDIT() for a tetrahedron soup
afabri Aug 27, 2026
1013a9a
Fix signature in link
afabri Aug 27, 2026
4b16c9c
Fix signature in link
afabri Aug 27, 2026
d1c6d22
rename tparams and params
afabri Aug 28, 2026
07e1a95
Fix links
afabri Aug 28, 2026
69e3cd9
Merge remote-tracking branch 'cgal/main'
sloriot Sep 2, 2026
891527f
compatibility with other PR
sloriot Aug 31, 2026
af8125a
Merge remote-tracking branch 'cgal/main'
sloriot Sep 15, 2026
7075ea5
API proposal for read/write_MEDIT
sloriot Sep 15, 2026
b39e471
make the trivial fixes
afabri Sep 16, 2026
bc0a5bf
make the trivial fixes
afabri Sep 16, 2026
4518ad3
uniformize facets/edges/corners
sloriot Sep 16, 2026
959f858
add facets, edges and corners as np
sloriot Sep 16, 2026
857bd3c
wording
afabri Sep 17, 2026
01f1325
Add Corners to read/write
afabri Sep 17, 2026
f24f1e0
Switch to CornerWithIndexRange instead of std::vector
afabri Sep 17, 2026
426107e
Add Edges
afabri Sep 17, 2026
ed79fa0
Add Edges
afabri Sep 17, 2026
b50903c
Add Facets
afabri Sep 17, 2026
60f666b
Add Facets
afabri Sep 17, 2026
886cc92
Stick to Corner_with_index as there are other formats than MEDIT. Ma…
afabri Sep 17, 2026
02861f4
Document named parameters of the write function
afabri Sep 17, 2026
13eadc9
typo
afabri Sep 17, 2026
dd5d099
typo
afabri Sep 17, 2026
59a5e4a
Link to the section of Medit and move the link to the bibtex entry there
afabri Sep 17, 2026
9bd16f4
whitespace
afabri Sep 17, 2026
3941e7b
Fix wording for parameters
afabri Sep 21, 2026
2d653c4
Deal with default property maps
afabri Sep 22, 2026
552e655
Fix SMDS_3 and with that the CI
afabri Sep 23, 2026
1330190
Add to changelog
afabri Sep 23, 2026
3265c16
Update Stream_support/include/CGAL/IO/MEDIT.h
afabri Sep 23, 2026
17f6b7c
Update Stream_support/include/CGAL/IO/MEDIT.h
afabri Sep 23, 2026
fb5535a
tws
sloriot Sep 23, 2026
d9982d5
Apply batched suggestions from code review
afabri Sep 30, 2026
45a004f
with_indices -> with_index
afabri Sep 30, 2026
bf12c54
Rewrite after Mael's review
afabri Oct 1, 2026
6e54f0e
Merge branch 'main' into Stream_support-write_medit-GF
afabri Oct 1, 2026
bc9be55
WIP writing of vertex corner indices is missing in SMDS_3
afabri Oct 1, 2026
8c8b89a
fix links
afabri Oct 1, 2026
3357d80
perturb and exude are useless here
janetournois Oct 2, 2026
fd64b98
use corner_index for vertices with dimension 0
janetournois Oct 2, 2026
3692ad7
Apply batched indentation suggestions from code review
janetournois Oct 2, 2026
6a91045
indentation fix
janetournois Oct 2, 2026
bc24356
Some changes after Mael's review
afabri Oct 2, 2026
a0523a2
Merge remote-tracking branch 'cgal/main' into pr/afabri/9616
lrineau Oct 2, 2026
519da49
keep vertex index only for corners
janetournois Oct 2, 2026
1dce812
Apply batched suggestions from code review
afabri Oct 6, 2026
d91f5ca
explain correspondence
afabri Oct 6, 2026
26f60cf
Add \medit alias
afabri Oct 6, 2026
1ac4929
Add \medit alias
afabri Oct 6, 2026
837c147
Turn \attention into \note
afabri Oct 6, 2026
b00df66
Apply batched suggestions from code review
afabri Oct 7, 2026
67329bc
Fix vertices_with_corner_index
afabri Oct 7, 2026
c134357
Merge remote-tracking branch 'cgal/main'
sloriot Oct 7, 2026
0bb9923
fix errors
sloriot Oct 7, 2026
c653411
fix another error
sloriot Oct 7, 2026
f3eb5f8
workaround warnings
sloriot Oct 7, 2026
89baa30
typo
afabri Oct 8, 2026
5be0c56
Only what is in Corners is a corner
afabri Oct 8, 2026
4cde781
WIP: Change the low level function. test_MEDIT passes, SMDS will be next
afabri Oct 9, 2026
c923d46
Put IO of ref in its own named parameters
afabri Oct 9, 2026
28ee8ed
Make SMDS and Mesh_smoothing work. WIP as ambiguity for read_MEDIT
afabri Oct 9, 2026
0b1882c
Use internal::is_Range<PointRange> to disambiguate
afabri Oct 9, 2026
78e8d41
Update documentation. For review only document one of the _ref named …
afabri Oct 9, 2026
9ef4111
X
afabri Oct 9, 2026
81d3ae0
Write the default for a ref
afabri Oct 12, 2026
6564c73
simplify code
afabri Oct 12, 2026
011901b
fix error and warning
afabri Oct 12, 2026
82e5dbb
Changes after Mael's review
afabri Oct 12, 2026
45d564e
warnings
afabri Oct 12, 2026
a1c58c0
error
afabri Oct 12, 2026
263a482
warnings
afabri Oct 12, 2026
54aabcc
Fix for LCC example
afabri Oct 13, 2026
7efa907
Apply batched suggestions from code review
afabri Oct 15, 2026
91f19f9
try to better detect curve index type
sloriot Oct 15, 2026
4749c37
static_assert to make sure containers passed are reference wrappers
sloriot Oct 15, 2026
83a26f1
Cleanup from Mael's review
sloriot Oct 16, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions Constrained_triangulation_3/include/CGAL/IO/write_MEDIT.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,9 @@ namespace IO
{
/*!
* @ingroup PkgCDT3IOFunctions
* @brief outputs a conforming constrained Delaunay triangulation to
* the MEDIT (`.mesh`) file format.
* See \cgalCite{frey:inria-00069921} for a comprehensive description of this
* file format.
* @brief outputs a conforming constrained Delaunay triangulation
* using the \ref IOStreamMedit (`.mesh`).
*
* @param os the output stream
* @param ccdt the conforming constrained Delaunay triangulation to be written
* \param np an optional sequence of \ref bgl_namedparameters "Named Parameters" among the ones listed below
Expand Down
1 change: 1 addition & 0 deletions Documentation/doc/resources/1.14.0/BaseDoxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ ALIASES = "cgal=%CGAL" \
"api=API" \
"vtk=VTK" \
"itk=ITK" \
"medit=MEDIT" \
"visualstudio=Visual Studio" \
"taucs=TAUCS" \
"lapack=LAPACK" \
Expand Down
1 change: 1 addition & 0 deletions Documentation/doc/resources/1.9.6/BaseDoxyfile.in
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ ALIASES = "cgal=%CGAL" \
"api=API" \
"vtk=VTK" \
"itk=ITK" \
"medit=MEDIT" \
"visualstudio=Visual Studio" \
"taucs=TAUCS" \
"lapack=LAPACK" \
Expand Down
2 changes: 1 addition & 1 deletion Installation/CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ Release date: December 2026

- **Breaking change** The return type as well as type of the parameter for the file name passed to IO functions is changed from
`std::string` to `std::filesystem::path`, which enables to use non latin languages like Chinese for directory and file names.
- Added overloaded versions of the functions `CGAL::IO::read_MEDIT()` and `CGAL::IO::write_MEDIT()`, for indexed tetrahedron soups.

### [Basic Viewer](https://doc.cgal.org/6.3/Manual/packages.html#PkgBasicViewer)

Expand All @@ -78,7 +79,6 @@ Release date: June 2026

### General Changes


- The new list of supported compilers is:
- Visual C++ 15.9, 16.10, 17.14, 18.0 (from Visual Studio 2017, 2019, 2022, and 2026) or later
- Gnu g++ 13.3.0 or later (on Linux)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
#include <CGAL/Linear_cell_complex_for_combinatorial_map.h>
#include <CGAL/tetrahedron_soup_to_lcc.h>
#include <CGAL/draw_linear_cell_complex.h>
#include <CGAL/IO/MEDIT.h>

#include <array>
#include <filesystem>

#include <CGAL/IO/MEDIT.h>

using LCC = CGAL::Linear_cell_complex_for_combinatorial_map<3, 3>;
using Point_3 = CGAL::Exact_predicates_inexact_constructions_kernel::Point_3;
Expand All @@ -23,17 +24,18 @@ int main(int argc, char** argv)
std::cerr << "Cannot open " << filename << std::endl;
return 1;
}

CGAL::IO::read_MEDIT(in, points, tetras, subdomains);
CGAL::IO::read_MEDIT(in, points, CGAL::parameters::tetrahedra(std::ref(tetras)).tetrahedron_refs(std::ref(subdomains)));

//filter out subdomain 0
std::vector<std::array<std::size_t,4>> filtered_tetras;
for (std::size_t i=0; i<tetras.size(); ++i)
if (subdomains[i]!=0)
filtered_tetras.push_back(tetras[i]);

std::cout << points.size() << " " << filtered_tetras.size() << std::endl;
LCC lcc;
CGAL::tetrahedron_soup_to_lcc(lcc, points, filtered_tetras);

CGAL::draw(lcc);
return 0;
}
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ namespace IO {
* \cgalParamNEnd
*
* \cgalParamNBegin{repair_polygon_soup}
* \cgalParamDescription{a parameter used indicate whether `CGAL::Polygon_mesh_processing::repair_polygon_soup()`
* \cgalParamDescription{a parameter used to indicate whether `CGAL::Polygon_mesh_processing::repair_polygon_soup()`
* should be called on the intermediate polygon soup.}
* \cgalParamType{Boolean}
* \cgalParamDefault{`true`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ void output_to_medit(std::ostream& os,
Cell_pmap cell_pmap(c3t3);
Facet_pmap facet_pmap(c3t3, cell_pmap);
Facet_pmap_twice facet_pmap_twice(c3t3, cell_pmap);
Vertex_pmap vertex_pmap(c3t3, cell_pmap, facet_pmap);
Vertex_pmap vertex_pmap(c3t3);

Periodic_3_mesh_3::output_to_medit(os, c3t3, occurrence_count, distinguish_copies,
vertex_pmap, facet_pmap, cell_pmap, facet_pmap_twice);
Expand Down
Loading
Loading