bugpyFormex - Bugs: bug #42038, drawPoints2D does not work

 
 

bug #42038: drawPoints2D does not work

Submitter:  - <_90458>
Submitted:  Thu 03 Apr 2014 01:04:13 PM UTC
   
 
Category:  Plugins Severity:  3 - Normal
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  bverheg
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 13 Dec 2014 07:14:56 PM UTC, comment #1: 

We believe this has been fixed since quite some time, and certainly as of eb0e885. If not, feel free to reopen.

Benedict Verhegghe <bverheg>
Group administrator
Thu 03 Apr 2014 01:04:13 PM UTC, original submission:  

When trying to use plugins.drawPoints2D with a zvalue different from 0.0 I get the following error:

"""
points = drawPoints2D('curve', zvalue=0.1)
  File "/home/tim/pyformex/pyformex/plugins/draw2d.py", line 155, in drawPoints2D
   
return draw2D(mode, npoints=npoints, zplane=z, coords=coords)
  File "/home/tim/pyformex/pyformex/plugins/draw2d.py", line 84, in draw2D
   
return pf.canvas.idraw(mode, npoints, zplane, func, coords, _preview)
  File "/home/tim/pyformex/pyformex/gui/viewport.py", line 714, in idraw
   
func(self.drawing, self.drawmode)
  File "/home/tim/pyformex/pyformex/plugins/draw2d.py", line 129, in highlightDrawing
   
from pyformex.gui import actors
ImportError
:
cannot import name actors
"""

When trying to use drawPoints2D with a zvalue of 0.0 (this is the case for all the Draw functions in the Draw2d menu plugin) I get the following error:

"""
points = drawPoints2D('curve', zvalue=0.0)
  File "/home/tim/pyformex/pyformex/plugins/draw2d.py", line 154, in drawPoints2D
   
x, y, z = pf.canvas.project(0., 0., zvalue)
  File "/home/tim/pyformex/pyformex/opengl/canvas.py", line 1210, in project
   
winx, winy, winz = GLU.gluProject(x, y, z, model, proj, view)
  File "/usr/lib/python2.7/dist-packages/OpenGL/latebind.py", line 61, in _call_
   
return self.wrapperFunction( self.baseFunction, args, *named )
  File "/usr/lib/python2.7/dist-packages/OpenGL/GLU/projection.py", line 35, in gluProject
   
raise ValueError( """Projection failed!""" )
ValueError
:
Projection failed!
"""

- <_90458>

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-12-13 bverheg StatusNone Fixed
        Assigned toNone bverheg
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code