bugpyFormex - Bugs: bug #41189, webGL export fails when writing pgf

 
 

bug #41189: webGL export fails when writing pgf

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Fri 10 Jan 2014 04:29:07 PM UTC  
 
Category: PluginsSeverity: 3 - Normal
Item Group: Functionality errorStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Wed 29 Jan 2014 04:09:10 PM UTC, comment #1:

The problem is gone in d8d5e05, probably fixed way before.

Benedict Verhegghe <bverheg>
Project Administrator
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()

gianluca de santis <gianlucadesi>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -unavailable- added by gianlucadesi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Wed 29 Jan 2014 04:09:10 PM UTCbverhegCategoryNone=>Plugins
      Item GroupNone=>Functionality error
      StatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1