Last post of this series dedicated to Contoured Lines with the whole Javascript implementation of the Marching Squares algorithm described here [Link] and there [Link]...
1. Adding a GUI
Fig.1: Small GUI to set threshold value, square size, and interpolation mode. |
and the filename of the OBJ output file...
Fig.2: Dialog box to set a filename. |
The corresponding lines of code are in the function dialog()
2. The script
Here is the whole script...
+++ Javascript:marchingSquare.js +++
+++ End of Script: marchingSquare.js +++
+++ End of Script: marchingSquare.js +++
<< Previous: the Implementation Next: Improved version >>
No comments:
Post a Comment