Home » Support » 3D Applications » Simple Wavefront obj to STL converter.
Search Search  
Show: Today's Messages    Show Polls    Message Navigator
icon1.gif  Simple Wavefront obj to STL converter. [message #22576] Thu, 13 January 2011 17:52 UTC
avatar cyborg_ar  is currently offline cyborg_ar
Messages: 24
Registered: December 2009
Go to all my models
Junior Member
I have had some bad problems with blender's STL exporter so i wrote my own script. My solution is a bit kludgy, i didn't write a "real" exporter, because i really cant be assed to study the necessary python api in blender yet (besides it's always changing), but i wrote a standalone script that takes a Wavefront .obj file and outputs a binary STL, since the .obj exporter works WONDERFULLY, and both formats are dead simple to read and write the script was fairly short. That also means that it's useful for other software which can export .obj too.

As an extra i added a feature to let you specify the scale in the STL conversion. So for example you can model your stuff in centimeters and put a scaling factor of 10 to output a STL in Milimeters that Shapeways will accept. The script also automatically skips degenerated faces (points and segments) and triangulates the mesh using a pretty naïve triangle-fan triangulation, so don't use it if you have grossly deformed/non-planar quads or n-gons that are not completely convex.

Well enough babbling, here's the code (attached) As the header says, you're free to do whatever you want with it.

  • Attachment: obj2stl.py
    (Size: 2.05KB, Downloaded 196 time(s))

Previous Topic:Hollowing out with zBrush or Wings ??
Next Topic:COLLADA export from Sketchup rendered improperly



We're sorry to inform you that we no longer support this browser and can't confirm that everything will work as expected. For the best Shapeways experience, please use one of the following browsers:

Click anywhere outside this window to continue.