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

Bill Lorensen bill.lorensen at gmail.com
Wed Aug 10 08:56:54 EDT 2011


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
points.

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.
>
> Thanks!
>
> --------------------
>
>        vtkSTLReader *volumeReader = vtkSTLReader::New();
>                volumeReader->SetFileName("test.stl");
>
>         vtkPolyDataMapper *stlMapper=vtkPolyDataMapper::New();
>        stlMapper->SetInputConnection (volumeReader->GetOutputPort());
>
>        vtkLODActor *stlActor=vtkLODActor::New();
>        stlActor->SetMapper(stlMapper);
>
>        renderer->AddActor( stlActor );
>
>        volumeReader-> Delete(); stlMapper->Delete(); stlActor->Delete();
>
>        renWin->Render();
>        renWinInteractor->Start();
>
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/Using-Boolean-Operations-on-Surfaces-on-arbitrary-mesh-stl-files-tp4680076p4680676.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20110810/4a0d469a/attachment.htm>


More information about the vtkusers mailing list