FreeCAD: master 37e5942c

Author Committer Branch Timestamp Parent
Stephen Early Stephen Early master 2021-04-10 16:39:46 master e01f0d25
Changeset Improve WebGL export javascript template

Several improvements to the javascript in the template:

 * Render on demand rather than continuously
 * Support high-DPI displays
 * Fix the frustum depth for both cameras
 * Deal correctly with the browser window being resized
 * Only show controls for objects with geometry

Also some changes made for code clarity:

 * Use 'const' and 'let' instead of 'var', as appropriate
 * Use for...of and .map() instead of iterating over arrays
   using a loop counter
mod - src/Mod/Arch/importWebGL.py Diff File