view2dm

View a SMS .2dm mesh file in MATLAB using 'patch'.

You are now following this Submission

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://au.mathworks.com/matlabcentral/fileexchange/26618-view2dm), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
2.0.0.0

- Added SMS version comment
- Fixed import to include SMS 11.1 mesh files

1.1.0.0

-Cleaned up code

1.0.0.0