FreeCAD WebGL Exporter. More...
Functions | |
| def | baseEncode (arr) |
| def | export (exportList, filename, colors=None, camera=None) |
| def | getHTMLTemplate () |
| def | translate (ctxt, txt) |
Variables | |
| string | base = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%&()*+-:;/=>?@[]^_,.{|}~`' |
| string | baseFloat = ',.-0123456789' |
| bool | disableCompression = False |
| FreeCADGui = None | |
| pythonopen | |
FreeCAD WebGL Exporter.
This module provides tools to export HTML files containing the exported objects in WebGL format and a simple three.js-based viewer.
| def importWebGL.baseEncode | ( | arr | ) |
Compresses an array of ints into a base90 string
Referenced by export().
| def importWebGL.export | ( | exportList, | |
| filename, | |||
colors = None, |
|||
camera = None |
|||
| ) |
Exports objects to an html file
References baseEncode(), OfflineRenderingUtils.getCamera(), OfflineRenderingUtils.getCoinCamera(), getHTMLTemplate(), and pythonopen.
| def importWebGL.getHTMLTemplate | ( | ) |
References OfflineRenderingUtils.render().
Referenced by export().
| def importWebGL.translate | ( | ctxt, | |
| txt | |||
| ) |
| string importWebGL.base = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%&()*+-:;/=>?@[]^_,.{|}~`' |
| string importWebGL.baseFloat = ',.-0123456789' |
| bool importWebGL.disableCompression = False |
| importWebGL.FreeCADGui = None |
| importWebGL.pythonopen |
Referenced by export().