[vtkusers] vtkClipPolyData unexpected behaviour ?
Seven Ph
ph227 at yahoo.fr
Thu Nov 5 08:02:11 EST 2009
Hello all,
I am experimenting with vtkClipPolyData to clip some polydata with a implicit function. For example in this picture :http://img684.imageshack.us/img684/6236/clipping.png , The clip function is two vtkPlanes joined with a vtkImplicitBoolean. Until the two planes are distant enough, everything work as expected (see 1 and 2 on the picture). But when they are too close, i get some artefacts (3 and 4). The same thing happend with intersecting planes, near the intersections ( see http://img689.imageshack.us/img689/5623/boxclipcow.png , obtained with a vtkPlanes, from a vtkBoxWidget ).
Is this the right behaviour ? Is there any way to obtain a clearly clipped polydata ?
The joined python script is derived from the clipcow vtk example and show this problem. To enable vtkImplicitPlaneWidget instead of a vtkBowWidget (like in the first picture) set use_boxWidget to False
--
Nicolas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091105/ba6d686c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: boxclipcow.py
Type: application/octet-stream
Size: 4899 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091105/ba6d686c/attachment.obj>
More information about the vtkusers
mailing list