Can I get an .stl from a spreadsheet?

12 次查看(过去 30 天)
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.

回答(1 个)

Darshan Ramakant Bhat
I hope below File Exchange Submission will help you:
  2 个评论
Kate Hruby
Kate Hruby 2018-1-18
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
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.

请先登录,再进行评论。

Community Treasure Hunt

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

Start Hunting!

Translated by