Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Deleting faces to create a hole in a triangulation

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Deleting faces to create a hole in a triangulation


Chronological Thread 
  • From: Olivier Devillers <>
  • To:
  • Subject: Re: [cgal-discuss] Deleting faces to create a hole in a triangulation
  • Date: Tue, 17 Sep 2019 17:15:43 +0200

The manual says:


Advanced Modifiers

The following modifiers are required for convenience of the advanced user.

They do not guarantee the combinatorial validity of the resulting triangulation data structure. 



Calling the function delete_face, you are cleaning the memory, but neighbouring faces still refer to the face you remove ==> bug

A triangulation cannot contain holes since it is a "data structure to store a two-dimensional triangulation that has the topology of a two-dimensional sphere."
(From the abstract of TDS2 manual)
So what you can do is to add a boolean in your faces to mark the faces as inside or outside.

Olivier




Archive powered by MHonArc 2.6.18.

Top of Page