[Insight-users] [vtkusers] Surface from contours

Karthik Krishnan karthik.krishnan at kitware.com
Wed Aug 12 01:35:09 EDT 2009


Graphics/Testing/Tcl/TestRuledSurface*.tcl

The difference from the tests is that you need to set "ClosedSurfaceOn()".

Also, if the number of points in each of the contours is different or not in
correspondance, you'll want to resample the contours by setting
"SetRuledModeToResample()".

And there are ways to do this without using vtkRuledSurfaceFilter as well...


You could rasterize the contours (vtkPolygon::PointInPolygon), treat the
result as an image, run an AntiAlias filter (ITK) and then triangulate by
generating an isosurface with marching cubes.





On Tue, Aug 11, 2009 at 10:05 PM, Yogish Mallya <mallyayogish at yahoo.co.in>wrote:

>
>
>
>    Hi All,
>
> I have a text file containing a set of points representing three parallel
> contours in Z-direction (text file is attached in the mail).  The point
> set in the file is ordered.  I want to generate a triangular surface mesh
> from these contours. vtkRuledSurfaceFilter seems to be the correct solution.
> It would be great if somebody can share a c++ example or steps on how to use
> this filter ?
>
> Regards,
>
> Yogish
>
>
>
> ------------------------------
> Yahoo! recommends that you upgrade to the new and safer Internet Explorer
> 8<http://in.rd.yahoo.com/tagline_ie8_1/*http://downloads.yahoo.com/in/internetexplorer/>
> .
>
> _______________________________________________
> 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
>
>


-- 
Karthik Krishnan
R&D Engineer,
Kitware Inc.
Ph: 518 881 4919
Fax: 518 371 4573
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090812/f2d0de2a/attachment.htm>


More information about the Insight-users mailing list