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 Answer 1

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$
2
  • $\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$ Sep 7, 2017 at 13:03
  • $\begingroup$ That should be a separate question, I would say. $\endgroup$ Sep 7, 2017 at 15:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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