[vtkusers] Boolean operations with tubeFilters partially hide geometry

Jon Haitz Legarreta jhlegarreta at vicomtech.org
Wed Sep 26 11:48:18 EDT 2012


Hi there,
I am facing some problems with a boolean filter
(vtkBooleanOperationPolyDataFilter) applied to a pair of vtkTubeFilter. The
thing is that for my application the vtkTubeFilterfits better than a
vtkCylinderSource. Besides, I want the capping property of the tubeFilter
to be off.

I use a vtkTriangleFilter in order to transform the tubeFilters into
objects that the boolean filter can deal with.

When performing an intersection boolean operation, it seems like capping is
necessary in order to get acceptable results. However, since I cannot erase
the cap to the actor yielded by the boolean operator, this is not a good
solution.

On the other hand, I can give some "thickness" to the tubeFilter by
creating an "inner" tubeFilter and then applying the difference boolean
operator.

However, then the problem is that the inner wall of the resulting actor
seems not to have a geometry. Or at least it is not shown.

Setting the backfaceculling property on does not change things.

I have attached some images in order to clarify things.

Any guess?

Thank you,
JON HAITZ
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120926/e3c8eb1f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: TubeFilter_capOff.PNG
Type: image/png
Size: 44210 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120926/e3c8eb1f/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HollowTubeFilter_main.PNG
Type: image/png
Size: 34351 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120926/e3c8eb1f/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BooleanIntersection_TubeFilters_generalView.PNG
Type: image/png
Size: 22164 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20120926/e3c8eb1f/attachment-0002.png>


More information about the vtkusers mailing list