Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Slicing/splitting/cutting polyhedral meshes

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Slicing/splitting/cutting polyhedral meshes


Chronological Thread 
  • From: Vinicius Azevedo <>
  • To: cgal-discuss <>
  • Subject: Re: [cgal-discuss] Slicing/splitting/cutting polyhedral meshes
  • Date: Tue, 28 Apr 2015 08:15:57 -0400

Hi Sebastian,

Thanks for your answer. I didn't expressed myself so well. What I want is to actually cut the mesh into two different independent parts with a given cut plane. In this video https://www.youtube.com/watch?v=IOnk7PBv1AU and paper http://www.math.ucla.edu/~jteran/papers/WJST14.pdf, they present some techniques to do that robustly. I saw the examples that you mentioned, and it seems that they only compute the intersections of planes and Polyhedrons, but don't actually split it into different parts.


Vinicius C. Azevedo.

On Tue, Apr 28, 2015 at 1:48 AM, Sebastien Loriot (GeometryFactory) <> wrote:
On 04/27/2015 04:31 PM, Vinicius Azevedo wrote:
Hi all,

I would like to know if anyone has a code snippet for
slicing/splitting/cutting polyhedral meshes in two different parts with
arbitrary planes. I've seen some old threads about it
(http://cgal-discuss.949826.n4.nabble.com/Slices-in-a-mesh-td951695.html),
but didn't find any code examples so far.

Thanks!
Vinicius C. Azevedo.


The thread you mention is to compute the intersection of a polyhedron
with a plane which is one or several polygons. There is a non documented
functor that is doing this in CGAL/Polyhedron_slicer_3.h
A better and documented version will be included in CGAL 4.8

In your case, it seems you want the intersection of a polyhedron with
a halfspace.
There is another documented function 'CGAL::polyhedron_cut_plane_3'
I never used that is defined in CGAL/polyhedron_cut_plane_3.h
that should be doing what you want.

Sebastien.

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss






Archive powered by MHonArc 2.6.18.

Top of Page