2
$\begingroup$

I am trying to make a sphere for CFD simulation, the sphere looks well in notebook of Mathematica, Like this: enter image description here

but when I export it as stl file and open the file again it looks so rough, like this: enter image description here

so, How can I increase polygon count or improve the quality of stl file in Mathematica? Thanks for your help.

$\endgroup$
1
$\begingroup$

Try this:

s = BoundaryDiscretizeRegion[Ball[], MaxCellMeasure -> {"Length" -> 0.05}]

discretized sphere

MeshCellCount[s, 2] (* count the number of triangles used *)
   20640

Export["sphere.stl", s];
$\endgroup$
  • $\begingroup$ It does work! but when i have a complex 3D object , such as the combination of two cylinders, it is difficult to express the region. $\endgroup$ – Oliver Redman Sep 7 '17 at 13:03
  • $\begingroup$ That should be a separate question, I would say. $\endgroup$ – J. M. is away Sep 7 '17 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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