Plot mesh as animated interactive html
Updated 06 Feb 2017
This script allows a deforming mesh to be exported to the web. The code creates html files in a subfolder called htmlfigs that can be opened in a browser.
The mesh can be rotated and zoomed in the browser, and transforms between two sets of input vertices.
Example of the output:
(rotate the mesh to see if from a better angle)
See demo1.m and demo2.m to test it out.
This script creates html files that use the awesome x3dom library and require webgl. This is only supported by recent versions of chrome, firefox, opera and safari. IE does not support webgl.
Let me know if you find any issues or have any ideas...
If you can't view the example then your system/drivers might not support WebGL. Please try this link to check that your system is supported and fix any configuration:
Benjamin I (2021). Plot mesh as animated interactive html (https://github.com/benjaminirving/matlab-to-html-plot-animated), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!