This function carries out the following tasks:
1) Imports a SMS .2dm mesh file.
2) Creates a 'patch' plot of the mesh, where the user can specify the colormap, shading, lighting conditions, and level of transparency.
3) Exports the mesh nodes and elements to the MATLAB workspace as faces and vertices.
Has been tested for meshes up to SMS version 11.1
NOTE: This function only works with 2dm meshes having triangular and/or quadrilateral elements.
Cite As
Jeff Tuhtan (2026). view2dm (https://uk.mathworks.com/matlabcentral/fileexchange/26618-view2dm), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2009a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Polygons in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
