bugpyFormex - Bugs: bug #39298, draw(..., mode='...') raises error

 
 

bug #39298: draw(..., mode='...') raises error

Submitted by:  gianluca de santis <gianlucadesi>
Submitted on:  Thu 20 Jun 2013 10:00:26 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
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.

 

Sun 23 Jun 2013 09:55:47 AM UTC, comment #1:

fixed in commit 6b76a7a

francesco <francio>
Project Member
Thu 20 Jun 2013 10:00:26 AM UTC, original submission:

The mode option in the draw functino raises an arror:

draw(Formex([[[0., 0., 0.], [1., 0., 0.], [1., 1., 0.]]]) , mode='smooth')

Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 907, in resizeGL

self.setSize(w,h)
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 870, in setSize

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 911, in paintGL

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 907, in resizeGL

self.setSize(w,h)
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 870, in setSize

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 907, in resizeGL

self.setSize(w,h)
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 870, in setSize

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 911, in paintGL

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 907, in resizeGL

self.setSize(w,h)
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 870, in setSize

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment
Traceback (most recent call last):
File "/home/gianluca/pyformex/pyformex/gui/viewport.py", line 911, in paintGL

self.display()
File "/home/gianluca/pyformex/pyformex/gui/canvas.py", line 989, in display

actor.draw(canvas=self)
File "/home/gianluca/pyformex/pyformex/gui/actors.py", line 605, in draw

if canvas.settings.wiremode <= 0:
UnboundLocalError
:
local variable 'canvas' referenced before assignment

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 francio (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):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 23 Jun 2013 09:55:47 AM UTCfrancioOpen/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1