[vtkusers] Using "Boolean Operations on Surfaces" on arbitrary mesh (stl) files

louis10th doyoungchang at gmail.com
Wed Aug 10 10:51:25 EDT 2011


Thank you everyone.
I have solved the problem with the original stl files.
I have modified the example file provided as.

Thanks again.
Doyoung

--------------
 vtkSTLReader* test1= vtkSTLReader::New();
  test1->SetFileName("test1.stl"); 

  vtkSTLReader* test2= vtkSTLReader::New();
  test2->SetFileName("test2.stl"); 

  vtkSmartPointer<vtkBooleanOperationPolyDataFilter> boolFilter =
    vtkSmartPointer<vtkBooleanOperationPolyDataFilter>::New();
  boolFilter->SetOperation( operation );
  boolFilter->SetInputConnection( 0, test1->GetOutputPort() );
  boolFilter->SetInputConnection( 1, test2->GetOutputPort() );

--
View this message in context: http://vtk.1045678.n5.nabble.com/Using-Boolean-Operations-on-Surfaces-on-arbitrary-mesh-stl-files-tp4680076p4686065.html
Sent from the VTK - Users mailing list archive at Nabble.com.



More information about the vtkusers mailing list