[vtkusers] Confused about the number of cells after vtkClipPolyData with implicit function

David E DeMarle dave.demarle at kitware.com
Thu Jun 20 15:44:30 EDT 2013


Not me, but if you make a vtkDataSetWriter and dump the output as text, you
can either look at the file and see what is unaccounted for, or open it up
in ParaView and use the spreadsheet view to see it more effectively.


David E DeMarle
Kitware, Inc.
R&D Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Thu, Jun 20, 2013 at 3:37 PM, David Doria <daviddoria at gmail.com> wrote:

> In this example:
>
> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Broken/PolyData/ImplicitDataSetClipping
>
> I create a sphere (vtkPolyData) and clip it with an implicit cube
> (vtkBox). The visual result of the clipping looks correct (the portion
> of the sphere that is inside the box remains), but there are 68 cells
> reported in the resulting clipped data (clipped->GetNumberOfCells()),
> but I only count 20 (2 columns of 10 triangles). Can anyone explain
> this discrepancy?
>
> Thanks,
>
> David
> _______________________________________________
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130620/f8e2fdd3/attachment.htm>


More information about the vtkusers mailing list