I cropped the vtkImageData using vtkBoxWidget (inside), but now I want to crop it outside. How can i do?
auto clippingPlanes = vtkSmartPointer::New();
clip_box_widget_->GetPlanes(clippingPlanes);
double *bounds = clippingPlanes->GetPoints()->GetBounds();
//Cropping
auto volumeMapper = vtkVolumeMapper::SafeDownCast(clipVolumeData->GetMapper());
volumeMapper->CroppingOn();//Enable Crobing
volumeMapper->SetCroppingRegionPlanes(bounds[0], bounds[1], bounds[2], bounds[3], bounds[4], bounds[5]);
volumeMapper->SetCroppingRegionFlagsToSubVolume();
But how should i crop that outside.