Convert 3D STL file to 2D images

2,339 views
Skip to first unread message

Gunasekaran Velu

unread,
Aug 23, 2015, 12:28:28 AM8/23/15
to itksnap-users

HI

I need to convert 3D STL file to 2D image series?

How can i try that using VTK. ITK won't support STL file.

Kindly do the help.

Does any other open source tool is using for the same conversion?

Looking forward your reply.

Attached sample stl file.


Regards
Guna
batman.stl

Peter Casano

unread,
Sep 22, 2015, 1:48:09 PM9/22/15
to itksnap-users
Not sure I understand, but .stl are 3d mesh files made of triangles. so to get a 2d out of it you would render a view of the mesh in some program.  You can import them into any 3D program that will accept them such as Meshlabs, and then rotate for the view you want and then render.  I cant ever get .stl from ITK to load in programs such as 3DS max, you have to go through Meshlabs, then export as a .dxf for example, then load in 3DS max

Dorian P.

unread,
Sep 22, 2015, 1:51:16 PM9/22/15
to itksna...@googlegroups.com
Peter, thank you for the free info. I always wondered how to possibly get Neuroimaging to 3DS max. I am assuming you don't see much degradation from these exports.

Dorian

--
You received this message because you are subscribed to the Google Groups "itksnap-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to itksnap-user...@googlegroups.com.
To post to this group, send email to itksna...@googlegroups.com.
Visit this group at http://groups.google.com/group/itksnap-users.
For more options, visit https://groups.google.com/d/optout.

Peter Casano

unread,
Sep 22, 2015, 2:08:27 PM9/22/15
to itksnap-users
The .stl files are very detailed, more so than the previews of the segmentation on the screen, in fact for most uses they have to be reduced in complexity, and that is fairly cumbersome. The exported .stl from ITK are too big to easily maneuver in Max even on a robust workstation.  Currently I use Meshlabs to open the exported .stl and then I export that as an .obj file full resolution, often millions of faces.  Then I decimate it in Meshlabs to some palatable size such as 50,000 faces and also export that smaller file as an .obj, then to clean the mesh up.... I use Topogun using the full resolution .obj file as the reference mesh, and load the decimated .obj file as the "scene" mesh, and then you can use all of the Topomax tools, mostly the relax tool, to easily clean up the mesh and fix problematic areas.  Im working to make a detailed head and neck anatomy model that will be compatible with game engines for realtime demonstrations and interactions.  Its a long term project, the first parts of which I did almost 20 years ago and am picking back up.   To just go from various file formats directly to 3DS Max, the most reliable way is open in Meshlabs and export as a .dxf file, which is the closest export to native max in general..      http://www.jacksonsinus.com/docs/nosecardshome.htm

Peter Casano MD 
Reply all
Reply to author
Forward
0 new messages