I am using CGAL in Python and I'd like to be able to add data to the face handle in a triangulation. It seems like Python lets me store this information but it doesn't persist, for example:
from CGAL.CGAL_Kernel import Point_2
from CGAL.CGAL_Triangulation_2 import Delaunay_triangulation_2
#triangulate a square
points = [Point_2(0,0), Point_2(0,1), Point_2(1,0), Point_2(1,1)]
D = Delaunay_triangulation_2()
D.insert(points)
#attempt to store information in face handle
for f in D.finite_faces():
f.data = 'my data'
#this information does not persist
for f in D.finite_faces():
print(f.data)
Running the above results in
AttributeError: 'Delaunay_triangulation_2_Face_handle' object has no attribute 'data'
Is it possible to store information within the triangulation and if yes how?