Converting a 3D object (in spherical coordinates) to an stl.

25 vues (au cours des 30 derniers jours)
Erin Cox
Erin Cox le 3 Juil 2020
Modifié(e) : DGM le 2 Oct 2025 à 8:39
Hello all,
I am currently working on a project in which I will eventually 3D print antenna radiation patterns. As part of the project, I have to use spherical coordinates from a 3D object and convert the file to an stl. I have explored several options for how to do this, but I was wondering if anyone had ever done this before. If so, what was your overall method to converting from the 3D object to the stl?
Thank you in advance!
  1 commentaire
darova
darova le 4 Juil 2020
Convert spherical coordinates to cartesian first. Show the data

Connectez-vous pour commenter.

Réponses (2)

Monisha Nalluru
Monisha Nalluru le 8 Juil 2020
You may use stlwrite to convert a 3D object to STL file from triangulation.
There is also a File exchange available to extend stlwrite to export variety of inputs(path/surface) to STL
  1 commentaire
DGM
DGM le 2 Oct 2025 à 8:36
Modifié(e) : DGM le 2 Oct 2025 à 8:39
Unless you change the name, installing #20922 in any modern version will cause a name conflict, making the built-in stlwrite() inacessible. If you want to use it, rename it.
Alternatively, if the goal is support for inputs not accepted by the built-in tool, then just use FEX #182013 instead. It supports everything that #20922 does, and more. It won't cause conflicts in modern versions, and it's compatible with the last 16 years worth of releases.
For the given case, it's not likely that any third party tools are necessary. At most, surf2patch(...,'triangles') and stlwrite() should be all that's necessary.

Connectez-vous pour commenter.


DGM
DGM le 15 Juil 2025
Modifié(e) : DGM le 2 Oct 2025 à 8:37

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by