Fri 10 Jan 2014 04:29:07 PM UTC, original submission:
Probably after change of writeGeomFile it seems that WebGL
is not able to write the required .pgf.
You can generate a cube from GUI using
Surface/CreateSurface/Cube
File/export_as_webGL
will give this error message:
WebGL scripts: ['http://feops.ugent.be/pub/xtk/xtk.js', 'http://get.goXTK.com/xtk_xdat.gui.js']
Exporting 1 actors from current scene
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/fileMenu.py", line 565, in exportWebGL
fn = draw.exportWebGL(fn)
File "/home/gianluca/pyformex/pyformex/gui/draw.py", line 2043, in exportWebGL
W.addScene(name)
File "/home/gianluca/pyformex/pyformex/plugins/webgl.py", line 233, in addScene
self.addActor(a)
File "/home/gianluca/pyformex/pyformex/plugins/webgl.py", line 273, in addActor
Geometry.write(obj, attrib.file, '')
File "/home/gianluca/pyformex/pyformex/geometry.py", line 612, in write
writeGeomFile(filename, self, sep=sep, mode=mode)
File "/home/gianluca/pyformex/pyformex/script.py", line 890, in writeGeomFile
return len(objects)
TypeError
:
object of type 'Mesh' has no len()
|