[vtkusers] vtkAppendPolydataFilter vs vtkBooleanOperationPolyDataFilter::Union

Cory Quammen cory.quammen at kitware.com
Thu Nov 17 11:42:01 EST 2016

On Thu, Nov 17, 2016 at 11:31 AM, rakesh patil
<prakeshofficial at gmail.com> wrote:
> Hi all,
> I am using vtkBooleanOperationPolyDataFilter to perform union of two 3D
> objects. For 3D objects of same height, I find there exists certain cracks
> and holes. So as a workaround I was thinking to use vtkAppendPolyDataFilter.
> So I just wanted to know whether vtkAppendPolyDataFilter is an alternate
> option for union operation performed by vtkBooleanOperationPolyDataFilter.
> The only difference I can see is that the input and output wont be
> triangulated in case of vtkAppendPolyDataFilter.

The result won't be the same if your two objects overlap in space. The
union for overlapping objects should exclude the portions of one input
geometry that are inside the other. vtkAppendPolyDataFilter just globs
everything together.

> Also will there be any improvements done on
> vtkBooleanOperationPolyDataFilter to solve the holes issue in near future?

It's a tough geometric problem. There is a merge request from Adam
Updegrove that improves the operation of the boolean filter [1], but
as I recall another VTK community member had a test cases on which
even it fails.

Best regards,

[1] https://gitlab.kitware.com/vtk/vtk/merge_requests/1752

> Thanks & Regards
> Rakesh Patil
> _______________________________________________
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
> Search the list archives at: http://markmail.org/search/?q=vtkusers
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/vtkusers

Cory Quammen
Staff R&D Engineer
Kitware, Inc.

More information about the vtkusers mailing list