[vtkusers] Using "Boolean Operations on Surfaces" on arbitrary mesh (stl) files
cquammen at cs.unc.edu
Wed Aug 10 10:09:40 EDT 2011
On Wed, Aug 10, 2011 at 8:56 AM, Bill Lorensen <bill.lorensen at gmail.com> wrote:
> You probably need to run vtkCleanPolyData on the output of the reader. I
> think the STL reader creates triangles that each have their own sets of
Yes, the triangles in a surface need to be connected so that the
inside/outside tests works. This filter won't work on polygon soup.
> On Tue, Aug 9, 2011 at 12:13 AM, louis10th <doyoungchang at gmail.com> wrote:
>> The program compiles with no error :)
>> But when I execute the exe it crashes.
>> I did try the following and the file looks reasonable.
>> I will also try Paraview.
>> vtkSTLReader *volumeReader = vtkSTLReader::New();
>> vtkPolyDataMapper *stlMapper=vtkPolyDataMapper::New();
>> stlMapper->SetInputConnection (volumeReader->GetOutputPort());
>> vtkLODActor *stlActor=vtkLODActor::New();
>> renderer->AddActor( stlActor );
>> volumeReader-> Delete(); stlMapper->Delete(); stlActor->Delete();
>> View this message in context:
>> Sent from the VTK - Users mailing list archive at Nabble.com.
>> Powered by www.kitware.com
>> Visit other Kitware open-source projects at
>> Please keep messages on-topic and check the VTK FAQ at:
>> Follow this link to subscribe/unsubscribe:
> Powered by www.kitware.com
> Visit other Kitware open-source projects at
> Please keep messages on-topic and check the VTK FAQ at:
> Follow this link to subscribe/unsubscribe:
Department of Computer Science
The University of North Carolina at Chapel Hill
More information about the vtkusers