importWebGL Namespace Reference

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
 

Detailed Description

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.

Function Documentation

◆ baseEncode()

def importWebGL.baseEncode (   arr)
Compresses an array of ints into a base90 string

Referenced by export().

◆ export()

def importWebGL.export (   exportList,
  filename,
  colors = None,
  camera = None 
)

◆ getHTMLTemplate()

def importWebGL.getHTMLTemplate ( )

References OfflineRenderingUtils.render().

Referenced by export().

◆ translate()

def importWebGL.translate (   ctxt,
  txt 
)

Variable Documentation

◆ base

string importWebGL.base = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890!#$%&()*+-:;/=>?@[]^_,.{|}~`'

◆ baseFloat

string importWebGL.baseFloat = ',.-0123456789'

◆ disableCompression

bool importWebGL.disableCompression = False

◆ FreeCADGui

importWebGL.FreeCADGui = None

◆ pythonopen

importWebGL.pythonopen

Referenced by export().