[vtkusers] Creating a 3D surface mesh from a stack of contours

Bill Lorensen bill.lorensen at gmail.com
Wed Apr 29 15:58:58 EDT 2009


Have you looked at:

Graphics/vtkVoxelContoursToSurfaceFilter

Bill
On Wed, Apr 29, 2009 at 8:10 AM, Dean Inglis <dean.inglis at sympatico.ca> wrote:
> Hi Joel,
>
>
>
> use vtkLinearExtrusionFilter on your polyline to
>
> make it into a thin ribbon/surface
>
> before passing it on to vtkPolyDataToImageStecil.
>
> See VTK/Examples/GUI/Tcl/ImageTracerWidget.tcl
>
> as an example.  You could also look at ITK’s
>
> itkAntiAliasBinaryImageFilter.  There is
>
> an example of how to use it here:
>
> http://www.itk.org/ITK/applications/AntiAliasBinaryImageFilterExample.html
>
>
>
> Dean
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Dean Inglis, PhD
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> ~~~~ Center for Appendicular ~~~~~
>
> Magnetic Resonance Imaging Studies
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> 610 - 25 Charlton Ave. E.
>
> Hamilton, Ontario, L8N 1Y2
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Assistant Professor (Adjunct)
>
> Department of Civil Engineering
>
> McMaster University
>
> Hamilton, Ontario
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
> Software Demos:
>
> http://www.youtube.com/watch?v=_zYNtHC9-0s
>
>
>
>
>
> Hi all,
>
>
>
> I'm trying to create a 3D surface mesh from a stack of 2D contours created
>
> from a semi-manual contouring platform I have no control on. For now I have
>
> succesfully converted the contours to vtk polylines. My idea is to binarize
>
> the the polylines, and to run a marching cubes on the resulting binary
>
> volume.
>
>
>
> Unfortunately, vtkPolyDataToImageStencil doesn't work for polylines. So
>
> before I start coding a polyline binarizer, would anyone have a better idea,
>
> or such a binarizer in stock? (the code will be integrated into the
>
> open-source 4D viewer vv)
>
>
>
> Thanks,
>
>
>
> joel
>
>
>
>
>
> _______________________________________________
> 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
>
>



More information about the vtkusers mailing list