[vtkusers] clipping question

Langer, Stephen A. (Fed) stephen.langer at nist.gov
Fri Feb 2 15:37:55 EST 2018


Hi --

When using vtkTableBasedClipDataSet to apply two more more clipping planes to a grid, I'm seeing incorrect results along the line where the planes meet.  I've attached a simple program that demonstrates the problem and a screenshot of the output.   The program generates a vtkRectilinearGrid and pipes it through vtkTableBasedClipDataSet with its clip function set to two perpendicular planes.  The result should have a concave right angle, but diagonal facets appear instead.
 
I've tried using vtkClipDataSet instead, but it just gives different wrong answers, although it does work correctly when the clipping planes lie exactly along a row of nodes in the grid.  vtkTableBasedClipDataSet draws diagonal facets across cells in that case.

What am I doing wrong?  

Thanks.

  -- Steve 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: clipped.png
Type: image/png
Size: 25687 bytes
Desc: clipped.png
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180202/b90e9b83/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clipImage3.C
Type: application/octet-stream
Size: 6106 bytes
Desc: clipImage3.C
URL: <https://vtk.org/pipermail/vtkusers/attachments/20180202/b90e9b83/attachment.obj>


More information about the vtkusers mailing list