view2dm

View a SMS .2dm mesh file in MATLAB using 'patch'.
827 Downloads
Updated 26 Apr 2017

View License

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 (2024). view2dm (https://www.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 Linux

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
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