Problems with CGAL property maps
Maintainers usually reply within 3 days
@MaelRL is already working on this.
Since Sep 17, 2025.
Assessment
This issue has not been assessed yet.
Description
Issue Details
- The functions
CGAL::get_property_map()andCGAL::get_const_property_map()are used in several examples, but they are not documented. These functions call in turnCGAL::get(). I find the call toget()adequate in most places , and not only in the examples. The difference is that if an internal property map does not exist, the former variants return empty maps. Is it possible at all that an internal vertex->point property map does not exist in an instance of Polyhedron_3 or Surface_mesh?
In other words, these functions should be either documented or not used (at least in examples), and perhaps even removed all together.
-
As mentioned above, the function that should be used instead in most if not all places is
get(). This template function is mentioned in the user manual of the BGL package; see Propery Maps. However, it is not documented in the reference manual. (It should, because it is in namespace CGAL.) -
The
Polyhedron_3is a model of the conceptsFaceListGraphandMutableFaceGraph. One can obtain a vertex->point_3 internal property map using the following sequence:
#include <CGAL/Polyhedron_3.h>
#include <CGAL/Polyhedron_traits_with_normals_3.h>
using Traits = CGAL::Polyhedron_traits_with_normals_3<Kernel>;
using Mesh = CGAL::Polyhedron_3<Traits>;
Traits traits(kernel);
Mesh mesh(traits);
auto pm = CGAL::get(CGAL::vertex_point, mesh);
I would expect to have a similar mechanism that enables the user to obtain either a face->normal_3 or a face->plane_3 property maps depending on the input mesh Polyhedron_3 instance. This brings me back to the first issue above. It seems that in this case the functions CGAL::get_property_map() and CGAL::get_const_property_map() are useful, because only one map of the two (either ->vector_3 or ->plane_3) can exist.
Environment
- Operating system (Windows/Mac/Linux, 32/64 bits):
- Compiler:
- Release or debug mode:
- Specific flags used (if any):
- CGAL version: latest
- Boost version:
- Other libraries versions if used (Eigen, TBB, etc.):
- Dominant language
- C++
- Stars
- 6.1k
- Forks
- 1.6k
- Avg merge
- 3d 19h
- Merged PRs (30d)
- 55
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CGAL/cgal
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 3 days
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
Maintainers usually reply within 3 days
-
Allow cancellable CGAL operationsPossibly taken @AbhaySharma2009 claimed this 9 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
Maintainers usually reply within 3 days
-
Snap_rounding_2: kd-tree query returns mostly false hot-pixel candidates for diagonal segments, and each query is costly with EpeckPossibly taken @LeoValque claimed this 9 days ago. OpenPkg::Snap_rounding_2
Maintainers usually reply within 3 days
-
corefine_and_compute_union() returns true but the output Surface_mesh has a non-manifold vertex (is_valid_polygon_mesh() is false)Possibly taken @sloriot claimed this 5 days ago. OpenDoc Not a bug Pkg::PMP
Difficulty 5/5 Over a week Newbie friendliness 12/100
CGAL/cgal#9892 · 5 comments · 1 assignee ·
Maintainers usually reply within 3 days
Similar issues
-
RTL-SDR: re-enumerating while streaming removes the in-use entry from the device selection dialogPossibly taken @dpc00 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
throneproj/Throne#2227 ·
Maintainers usually reply within 3 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
deepseek-ai/DeepGEMM-Ascend#49 ·
Maintainers usually reply within 1 day
-
bug needs testing platform:windows topic:buildsystem topic:platforms
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
godotengine/godot#126110 · 1 comment ·
Maintainers usually reply within 1 day