[vtkusers] Display filled contour of a cut sphere

David Gobbi david.gobbi at gmail.com
Mon May 4 11:00:22 EDT 2015


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>
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>
> 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> 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.
>>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150504/951536d9/attachment.html>


More information about the vtkusers mailing list