MATLAB Answers

Can I get an .stl from a spreadsheet?

10 views (last 30 days)
Kate Hruby
Kate Hruby on 15 Jan 2018
I have a spreadsheet with coordinate data (lat/long) and height for the surface and the bed of a glacier. I'm looking to take this data and convert it to an .stl geometry file that I can use for modeling in other programs like COMSOL or Elmer/Ice. I have been able to plot the data using boundaryFacets and trisurf to visually get a good geometry, but how do I transfer that to an .stl?
What I've tried:
iso2mesh (surf2stl command) "wrote 0 facets" when I tried surf2stl('GeoSTL',X,Y,Z);
Using delaunayTriangulation and tetramesh gives me a shape that is not similar enough to my glacier to use.
Attached is my code and an arbitrary set of coordinates and depths to represent a glacier.


Sign in to comment.

Answers (1)

Darshan Ramakant Bhat
Darshan Ramakant Bhat on 18 Jan 2018
I hope below File Exchange Submission will help you:


Kate Hruby
Kate Hruby on 18 Jan 2018
Hi Darshan,
When I try surf2stl the program runs, but the output file is nonexistent (it "wrote 0 facets" like I stated above). Am I missing something with that command?
Darshan Ramakant Bhat
Darshan Ramakant Bhat on 19 Jan 2018
Hi Kate,
surf2stl is one of the several submissions in MATLAB File Exchange on MATLAB Central which is a forum for our product users to interact, exchange information and knowledge, without MathWorks' involvement. Feel free to contact the author of this submission directly for specific questions about the implementation.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!