[vtkusers] the four points the vtkCutter intersected with the bounding box

zj19872008 at sina.com zj19872008 at sina.com
Sun Sep 27 00:23:57 EDT 2015


Hello everyone,
    I'm wondring if I can get the four points the vtkCutter intersected with the bounding box in vtkImplicitPlaneWidget.cxx.
   Here is the source codes:
  this->Plane = vtkPlane::New();  this->Plane->SetNormal(0,0,1);  this->Plane->SetOrigin(0,0,0);
  this->Box = vtkImageData::New();  this->Box->SetDimensions(2,2,2);  this->Outline = vtkOutlineFilter::New();  this->Outline->SetInputData(this->Box);  this->OutlineMapper = vtkPolyDataMapper::New();  this->OutlineMapper->SetInputConnection(    this->Outline->GetOutputPort());  this->OutlineActor = vtkActor::New();  this->OutlineActor->SetMapper(this->OutlineMapper);  this->OutlineTranslation = 1;  this->ScaleEnabled = 1;  this->OutsideBounds = 1;
  this->Cutter = vtkCutter::New();  this->Cutter->SetInputData(this->Box);  this->Cutter->SetCutFunction(this->Plane);  this->CutMapper = vtkPolyDataMapper::New();  this->CutMapper->SetInputConnection(    this->Cutter->GetOutputPort());  this->CutActor = vtkActor::New();  this->CutActor->SetMapper(this->CutMapper);  this->DrawPlane = 1;
  this->Edges = vtkFeatureEdges::New();  this->Edges->SetInputConnection(    this->Cutter->GetOutputPort());  this->EdgesTuber = vtkTubeFilter::New();  this->EdgesTuber->SetInputConnection(    this->Edges->GetOutputPort());  this->EdgesTuber->SetNumberOfSides(12);  this->EdgesMapper = vtkPolyDataMapper::New();  this->EdgesMapper->SetInputConnection(    this->EdgesTuber->GetOutputPort());  this->EdgesActor = vtkActor::New();  this->EdgesActor->SetMapper(this->EdgesMapper);
Thanks alot.  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtkusers/attachments/20150927/34648a5b/attachment.html>


More information about the vtkusers mailing list