Message Boards Message Boards


Export a ParametricPlot3D into a STL format file for 3D printing?

Posted 5 months ago
3 Replies
0 Total Likes

I want to export a ParametricPlot3D model into a STL format file for 3Dprinting. I attach the notebook file.

3 Replies
Posted 5 months ago

I think that the problem is that the plot you're producing is only 1-dimensional. STL data represents a set of triangles, and Mathematica doesn't know how to turn that curve into a set of triangles. What I suggest you do is find a way to make your plot 3-dimensional. You could sample the function to create a set of points and generate a tube through those points, like this:

data = Table[{Subscript[F, x][t, 2], Subscript[F, y][t, 1], Subscript[F, z][t]}, {t, 0, 20, .05}];

g = Graphics3D[Tube[data]]

Now try to export g.

Posted 5 months ago

Modify PlotStyle in your code for model:

model = ParametricPlot3D[{Subscript[F, x][t, 2], 
   Subscript[F, y][t, 1], Subscript[F, z][t]}, {t, 0, 20}, 
  PlotStyle -> Tube[.15], Axes -> False, Boxed -> False, 
  PlotRange -> {{-2.2, 2.2}, {-1.2, 1.2}, {0, 5.5}}]

And use Printout3D to put model in STL file: ("model.stl" attached)

Printout3D[model, "model.stl"]

enter image description here


Thank you Erik. I will do it.

Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
or Discard

Group Abstract Group Abstract