[vtkusers] vtkBoxClipDataSet ClippedOutput

KM karanovicm at gmail.com
Mon Apr 22 23:16:14 EDT 2013


Hi all
I'm having little problem with vtkBoxClipDataSet filter, everything works
fine until I try to visualize data that's been clipped away, grid is
generated but point data are missing so my grid ended up entirely white.
please take a loot at attached images, cut1 is when I set
geom.SetInputConnection(BoxClip.GetOutputPort(0); and works perfectly  and
the Cut2 is when I use geom.SetInputConnection(BoxClip.GetOutputPort(1);

Is there something wrong in my code or that's a bug in vtkBoxClipDataSet?
Thanks a lot
Cheers

Marinko

<http://vtk.1045678.n5.nabble.com/file/n5720293/Cut1.png> 
<http://vtk.1045678.n5.nabble.com/file/n5720293/Cut2.png> 

 BoxClip = new vtkBoxClipDataSet();
  tf = new vtkTransformFilter();
  tf.SetInput(MF.MFSmoothUGrid[k]);
  tf.SetTransform(transform);
  tf.Update();

  if (CutType == _CutType.Box)
     {
        IntPtr[] origin = new IntPtr[6];
        IntPtr[] norm = new IntPtr[6];
        for (int i = 0; i < planes.GetNumberOfPlanes(); i++)
         {

            origin[i] = getPtr(planes.GetPlane(i).GetOrigin());
            norm[i] = getPtr(planes.GetPlane(i).GetNormal());

          }
      
 BoxClip.SetInput(cutclipmax.GetOutput());
 BoxClip.SetBoxClip(norm[0], origin[0], norm[1], origin[1], norm[2],
origin[2], norm[3], origin[3], norm[4], origin[4], norm[5], origin[5]);

 BoxClip.GenerateClippedOutputOn();
 BoxClip.GenerateClipScalarsOn(); 
 BoxClip.Update();

          
 geom.SetInputConnection(BoxClip.GetOutputPort(1);
 geom.SetExtentClipping(1);

etc...




--
View this message in context: http://vtk.1045678.n5.nabble.com/vtkBoxClipDataSet-ClippedOutput-tp5720293.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list