[vtkusers] Display filled contour of a cut sphere

Hortense KIRISLI hortense.kirisli at aquilab.com
Mon May 4 11:28:30 EDT 2015


Hi David,

Thanks a lot for indicating me this filter ; it indeed allow me to do exactly what I have been trying to ☺

Hortense


De : vtkusers [mailto:vtkusers-bounces at vtk.org] De la part de Cory Quammen
Envoyé : lundi 4 mai 2015 17:03
À : David Gobbi
Cc : vtkusers at vtk.org
Objet : Re: [vtkusers] Display filled contour of a cut sphere

Yes, I have found problems with vtkDelaunay2D in the boolean operations filter. I might have to try switching to vtkContourTriangulator.

- Cory

On Mon, May 4, 2015 at 11:00 AM, David Gobbi <david.gobbi at gmail.com<mailto:david.gobbi at gmail.com>> wrote:
Ideally, vtkDelaunay2D could be used to fill a contour, but it is numerically unstable and sometimes it segfaults...

 - David

On Mon, May 4, 2015 at 8:45 AM, Cory Quammen <cory.quammen at kitware.com<mailto:cory.quammen at kitware.com>> wrote:
Ah ha! I was just thinking there should be a filter in VTK that does this, having manually triangulated contours in the past by creating a vtkPolyData with a single polygon cell defined by the contour. I'll have to try this out.

Cory

On Mon, May 4, 2015 at 10:41 AM, David Gobbi <david.gobbi at gmail.com<mailto:david.gobbi at gmail.com>> wrote:
Hi Hortense,

The vtkTriangleFilter can only triangulate existing faces, it cannot create new faces from a contour. I think that the filter you need is vtkContourTriangulator.
http://www.vtk.org/doc/nightly/html/classvtkContourTriangulator.html

 - David


On Mon, May 4, 2015 at 8:09 AM, Hortense KIRISLI <hortense.kirisli at aquilab.com<mailto:hortense.kirisli at aquilab.com>> wrote:
Hi all,

Here is what I would like to do:
I have a sphere that I cut with a plane. I succeeded to display the intersection of the sphere with the plane as a contour, but do not succeed to display it filled.




--
Cory Quammen
R&D Engineer
Kitware, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150504/5516698c/attachment.html>


More information about the vtkusers mailing list