Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Failed to load latest commit information.
ChangeLog first commit
GNUmakefile first commit
INSTALL first commit
LICENSE first commit
Makefile first commit
README first commit
depend first commit
license.c first commit
macros.h first commit
parse.c first commit
parse.h substantially improve camera positioning
stl2pov.1 first commit
stl2pov.c substantially improve camera positioning
utils.c first commit
utils.h first commit first commit


This is a terribly hacked version of stl2pov available here:

To use:

stl2pov example.stl > example.pov
povray +Iexample.pov +Oexample.png +D +P +W640 +H480 +A0.5

Original README follows:

This is the readme file for version 2.4.4 of the 'stl2pov' program,
released on 2009-10-29.

The purpose of this program is to convert an STL (Standard Triangulation
Language) file (in ASCII or binary format) to a POV-ray mesh object. It
creates either triangles by default, but can generate smooth_trianges. For
more information, see the manual page stl2pov.1.

2.4.3: Fix reading big binary stl files on windows.
2.4.2: Reduced some errors to warnings. Made the program somewhat more
2.4.1: Add status reporting to monitor progress, especially on big files.
2.4.0: Add option to set allowed distance between vertexes that are assumed
       to be the same.
2.3.0: Follow the new syntax for povray: use 'triangle' instead of 'facet'.
2.2.1: Makefile fixes for better cooperation with FreeBSD ports.
2.2.0: Switch from GPL to 2-clause BSD license. Added FreeBSD port.
2.1.0: Switch to new parser.
2.0.0: Parses binary STL files.

See the LICENSE file.

For building on FreeBSD and other systems with the GNU toolset, see the
instructions in the file INSTALL. After installation, a manual page for
this program can be read with 'man stl2pov'. Additional documentation is
available in the documentation directory. See the Makefile.

I have set up a cross-compiler to produce a win32 binary. You can find it
in the file on my website;

If anyone wants to donate makefiles or project files for other systems and
compilers I will be happy to include them in the distribution.

This program was written by Roland Smith.

If you have caught a bug, or if you have thought of a feature that you
think should be added, by all means report it or (even better :-) send a

Please do not send me mail in HTML only format. These will be marked as
spam and deleted by my mail filter.

You can reach me at the following addresses:

    e-mail:      (preferred)
Something went wrong with that request. Please try again.