Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you export the result of a RevolutionPlot3D to STL (STereoLithography) file format for printing? I am a tyro when it comes to 3D rendering and printing.

share|improve this question
Welcome to Mathematica.SE! I suggest the following: 1) As you receive help, try to give it too, by answering questions in your area of expertise. 2) Read the FAQs! 3) When you see good Q&A, vote them up by clicking the gray triangles, because the credibility of the system is based on the reputation gained by users sharing their knowledge. ALSO, remember to accept the answer, if any, that solves your problem, by clicking the checkmark sign` – Vitaliy Kaurov Jun 27 '13 at 3:10
Related: Creating a 3D mesh plot and exporting it to an STL file for 3D printing. I mention this MSE post in my reply there too. – Vitaliy Kaurov Oct 16 '13 at 10:29

This is very easy. Design a model, for example:

model = RevolutionPlot3D[{Sin[t] + Sin[5 t]/10, 
   Cos[t] + Cos[5 t]/10}, {t, 0, Pi}, 
  RegionFunction -> (Sin[5 (#4 + #5)] > 0 &), Mesh -> None, 
  BoundaryStyle -> Black, PlotStyle -> Thickness[.1]]

enter image description here

Note a special setting PlotStyle -> Thickness[.1] which gives thickness to the model walls - yo can set your own value of course. Now export to STL and then re-import to verify file was created and see how it looks

Export["model.stl", model];

enter image description here

The STL file can be just sent to 3D printer. The best part? - Wolfram has a whole course on 3D printing - tips how to make it work nicely:

Scan, Convert, and Print: Playing with 3D Objects in Mathematica Q&A

with the notebook. You may also want to take a look at

share|improve this answer
Thanks so much, Vitaliy - Jeff – Jeffrey Thomson Jun 27 '13 at 2:38
Good one, Vitaliy! Notice that STL files don't have dimensions or units, so at one point in the submission process for many 3D printer services you have to specify what that -1.0 to 1.0 size signifies - meters, inches, or millimeters, for example. If you know in advance what you can specify, you can scale the graphic suitably. – cormullion Jun 27 '13 at 7:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.