MATLAB Answers

0

Matlab to CAD Program

Asked by hendra prima on 1 Aug 2012
Latest activity Commented on by Christine Tobler on 13 Dec 2018
Hi all,
What is the best way to import matlab 3D surface to CAD program ?
Thank you

  0 Comments

Sign in to comment.

Tags

1 Answer

Answer by Kevin Moerman on 30 Aug 2012
 Accepted Answer

A simple way of doing it would be to first create a triangulated representation of your surface (e.g. based on Delaunay tessellation or if derived from a quadrilateral mesh see my file submission mesh2tri). If you have a list of faces (triangles) and vertices then you can export this to STL format (which is basically a file containing your triangle list) which can be imported into CAD software. I think there are various files submitted to the file exchange concerning exporting of STL files.
Kevin

  1 Comment

Since R2018b, there are also functions stlread and stlwrite in MATLAB.

Sign in to comment.