[vtkusers] Problems with vtkClipPolyData

Rasmus Reinhold Paulsen rrp at imm.dtu.dk
Mon Sep 17 09:34:14 EDT 2001


Hi!

I have a problem with vtkClipPolyData. It removes polys that are far away
from the clipping plane and that should not be removed.
My data consists of a mesh generated by Nina Amentas PowerCrust. It is a
watertight boundary. When i try to cut it in half, the remaining half has a
lot af holes. The missing polys are not to be found in the clipped output
either.

The "feature" occur in the following example:

--------- example --------------------------
vtkPolyDataReader inp
  inp SetFileName "inp.vtk"

vtkPlane plane
    plane SetOrigin 0.0 0.0 0.05
    plane SetNormal 0 0 1

vtkClipPolyData clipper
    clipper SetInput [inp GetOutput]
    clipper SetClipFunction plane
--------------------------------------------

I have tried to use vtkExtractPolyDataGeometry instead. With this everything
works, but the boundary is offcourse rugged, since no poly-clipping occurs.

--------- example --------------------------
vtkPolyDataReader inp
 inp SetFileName "inp.vtk"

vtkPlane plane
    plane SetOrigin 0.0 0.0 0.05
    plane SetNormal 0 0 1

vtkExtractPolyDataGeometry clipper
   clipper SetInput [inp GetOutput]
   clipper SetImplicitFunction  plane
--------------------------------------------

Is this a known problem, or am I doing something wrong? Could it be the
nature of my datas that are "sick" in some way?

Best regards
Rasmus

--------------------------------------------------
Rasmus Paulsen, Industrial Ph.D. Student (Oticon)
Image Analysis and Computer Graphics
Informatics and Mathematical Modelling
Technical University of Denmark
Building 321, DK-2800 Lyngby, Denmark
Phone: +45 4525 3351, Direct: +45 4525 3407
Fax: +45 4588 1397
mailto:rrp at imm.dtu.dk, http://www.imm.dtu.dk/~rrp
--------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Rasmus Reinhold Paulsen.vcf
Type: text/x-vcard
Size: 879 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20010917/f5a1f030/attachment.vcf>


More information about the vtkusers mailing list