[vtkusers] Display a plane obtained with vtkCutter

Ellenet Toulgen toulgen at gmail.com
Thu Nov 12 17:13:12 EST 2009


Hi vtkusers,

I use a vtkCutter to extract plane from my polyDataAll (vtkPolyData
*polyDataAll;)

Code :
================================================
    // Setup the cutting plane
    vtkPlane *cuttingPlane = vtkPlane::New();
    cuttingPlane->SetOrigin( 100.0, 100.0, 100.0 );
    cuttingPlane->SetNormal( 0.0, 1.0, 1.0 );

    // Setup the cutter
    vtkCutter *cutter = vtkCutter::New();
    cutter->SetCutFunction( cuttingPlane );
    cutter->SetInput( polyDataAll );
    cutter->Update();

    ?????

    vtkImageData* image = vtkImageData::New();

    ?????.

    // Viewer
    vtkImageViewer *viewer = vtkImageViewer::New();
    viewer->SetInput(image);
    viewer->Render();
================================================

I want to display the cutter plane?
It is possible?
In fact, my problem is how I can convert the vtkPolyData to the
vtkImageData?

Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091112/8f703470/attachment.htm>


More information about the vtkusers mailing list