mirror of https://github.com/CGAL/cgal
## Summary This small feature adds the ability to read and write `.vtk` files (legacy ASCII) for 3D Linear_cell_complex (dimension 3, ambient dimension 3). It supports per-vertex and per-volume scalar fields and handles various VTK cell types. ## Motivation Enable import/export of mesh structures and scalar fields between CGAL and VTK-based visualization tools (ParaView, VisIt, etc.). Simplifies debugging and integration into scientific pipelines. ## API Changes - New functions in `Linear_cell_complex_vtk_io.h`: - `read_lcc_from_vtk()` - `write_lcc_to_vtk()` Header-only implementation, no external dependency. ## Included - Full implementation in `Linear_cell_complex_vtk_io.h` (merged `.impl`) - Minimal example with `.3map` and `.vtk` files - Unit test with scalar field preservation and structure comparison ## Maintainers Feel free to suggest naming adjustments or style corrections. The feature is scoped cleanly and does not affect other packages. * Feature/Small Feature (if any): [Read_write_vtk_for_LCC](https://cgalwiki.geometryfactory.com/CGAL/Members/wiki/Features/Small_Features/Read_write_vtk_for_LCC) |
||
|---|---|---|
| .. | ||
| benchmark/Stream_support | ||
| doc/Stream_support | ||
| examples/Stream_support | ||
| include/CGAL | ||
| package_info/Stream_support | ||
| test/Stream_support | ||