image thumbnail

Plot mesh as interactive html

version 1.6.0.0 (5.22 KB) by Benjamin I
A simple script to convert a mesh consisting of faces and vertices to an interactive html document.

756 Downloads

Updated 23 Aug 2015

From GitHub

View license on GitHub

x3mesh is a small and simple script for converting a Matlab mesh consisting of faces and vertices into an x3dom object in an html file.
This allows 3d objects to be displayed and interacted with on the web (rotate and zoom).

Run demo1.m and demo2.m to try it out. The script produces a .html files which can be opened in a browser.

An example of the output can be found here:
http://www.birving.com/other/Example4.html

The script takes advantage of the x3dom web format. More details can be found here:
http://www.x3dom.org/

Not supported by internet explorer. Use a recent Firefox, Chrome or Safari browser.

Update:
1) Added better optional argument parser
2) Added option to set vertex color
3) Added option so set mesh to auto-rotate

Cite As

Benjamin I (2021). Plot mesh as interactive html (https://github.com/benjaminirving/matlab-to-html-plot), GitHub. Retrieved .

MATLAB Release Compatibility
Created with R2012b
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!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.