<div dir="ltr">Hi all,<div><br></div><div>My question is probably fairly simple. I'd like to implement something like a reverse clipping box. Instead of rendering everything inside the box and clipping outside the box, I'd like to render what is outside the box and clip what is inside the box.</div>
<div><br></div><div>My code is almost exactly the SmartVolumeMapper example [1]. I've been able to create a regular clipping box with the vtkBoxWidget, and placing within a callback:</div><div><br></div><div><div>vtkPlanes *planes = vtkPlanes::New();</div>
<div> boxWidget->GetPlanes(planes);</div></div><div><div>volumeMapper->SetClippingPlanes(planes);</div><div><br></div><div style>There exists a function called boxWidget->InsideOutOn();, but it appears this was not made with my use case in mind. I've also tried (in the callback function) manually getting each plane from the boxWidget and reversing each normal - but this also does nothing. </div>
<div style><br></div><div style>Does anyone have an idea of where I should look? I've looked into vtkClipVolume, but I'm not sure what the point is of using this, if the volume mapper will accept clipping planes.</div>
<div style><br></div><div style>Thanks for all your help,</div><div style><br></div><div>[1] <a href="http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper">http://www.vtk.org/Wiki/VTK/Examples/Cxx/VolumeRendering/SmartVolumeMapper</a></div>
-- <br>Christopher Mullins<div>R&D Engineer</div><div>Kitware Inc.,</div><div>919.869.8871</div>
</div></div>