Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Only keep the part of a surface-mesh which is inside a Polyhedron

Subject: CGAL users discussion list

List archive

[cgal-discuss] Only keep the part of a surface-mesh which is inside a Polyhedron


Chronological Thread 
  • From: vertber <>
  • To:
  • Subject: [cgal-discuss] Only keep the part of a surface-mesh which is inside a Polyhedron
  • Date: Tue, 19 Apr 2016 05:26:23 -0700 (PDT)
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=SoftFail ; spf=None
  • Ironport-phdr: 9a23:2n3Mph2sPVwxozmismDT+DRfVm0co7zxezQtwd8ZsegTK/ad9pjvdHbS+e9qxAeQG96Lu7Qa16GL7OjJYi8p39WoiDg6aptCVhsI2409vjcLJ4q7M3D9N+PgdCcgHc5PBxdP9nC/NlVJSo6lPwWB6kO74TNaIBjjLw09fr2zQd6CyZrrnL3ts7ToICx2xxOFKYtoKxu3qQiD/uI3uqBFbpgL9x3Sv3FTcP5Xz247bXianhL7+9vitMU7q3cYjdt6qZ8FCP2yP/9gFf0LRAghZms67cmuuRjYRhaU/VMdVH8Xm1xGGVvr9hb/C4n8qDfwu/A1jCKXMdf3RvUsUhyi6LtuQR7szikdYW1quFrLg9B92fsI6CmqoAZyltWMOIw=


Hi, I'm kinda new with CGAL and i have a question for you ! (And sorry for
my bad english,it's not my native language so i'll try my best. )

I have an .off file (a 3D Indoor Room) which is read and stocked into a
Surface_Mesh Object (couldn't use a Polyhedron cause i've got some error,
probably because it's not a manifold polyhedron).
On the other hand I have a pyramidal Polyhedron (which symbolize a camera's
field of view) and I would like to manage to cut off all the surface mesh
which is not in this pyramidal Polyhedron.
With the help of this code
(https://www.codefull.org/2016/03/cgal-point-in-polyhedron-algorithm/) I
managed to mark each vertices of my surface_mesh which is not inside the
polyhedron as removed, and then called the garbage collection in order to
remove them completely.
But Surface_Mesh provide only Low-Level Removal Functions, so my
Surface_mesh result is not valid anymore and I can't write it into a new off
file.

I can also just keep the Points of my surface mesh which are inside the
pyramidal Polyhedron and stock them other place, but by doing that the
result is a Point cloud whereas I would like to obtain a Mesh.

So my question is: Does it exist a way to keep the part of a surface-mesh
which is inside a Polyhedron ?

Thanks for reading !



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Only-keep-the-part-of-a-surface-mesh-which-is-inside-a-Polyhedron-tp4661848.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page