bugpyFormex - Bugs: bug #40728, drawing issues with opengl 2 with...

 
 

bug #40728: drawing issues with opengl 2 with points

Submitted by:  francesco <francio>
Submitted on:  Thu 28 Nov 2013 01:31:57 AM UTC  
 
Category: CoreSeverity: 4 - Important
Item Group: NoneStatus: 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.

 

Thu 28 Nov 2013 09:20:37 PM UTC, comment #1:

this issue has been solved in commit 0cfb9cd
adding a dimensionalty check in drawable.GeomActor.elems

francesco <francio>
Project Member
Thu 28 Nov 2013 01:31:57 AM UTC, original submission:

commands
draw(Coords([0,0,0]))
draw(Formex([[[0,0,0]]]))

give this error

File "/home/francio/pyformex/pyformex/opengl/__init__.py", line 140, in draw
pf.canvas.addActor(actor)
File "/home/francio/pyformex/pyformex/opengl/canvas.py", line 1124, in addAny
self.scene.addAny(itemlist)
File "/home/francio/pyformex/pyformex/opengl/scene.py", line 219, in addAny
self.addActor(actor)
File "/home/francio/pyformex/pyformex/opengl/scene.py", line 181, in addActor
actor.changeMode(self.canvas)
File "/home/francio/pyformex/pyformex/opengl/drawable.py", line 511, in changeMode
self._prepareNormals(canvas)
File "/home/francio/pyformex/pyformex/opengl/drawable.py", line 543, in _prepareNormals
normals = self.b_avgnormals
File "/home/francio/pyformex/pyformex/opengl/drawable.py", line 482, in b_avgnormals
self._avgnormals = gt.averageNormals(self.coords,self.elems,False,tol).astype(float32)
File "/home/francio/pyformex/pyformex/geomtools.py", line 261, in averageNormals
n = nodalSum(n,elems,return_all=not atNodes,direction_treshold=treshold)
File "/home/francio/pyformex/pyformex/arraytools.py", line 2154, in nodalSum
raise RuntimeError,"shape of val and elems does not match"
RuntimeError: shape of val and elems does not match

francesco <francio>
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 (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 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 28 Nov 2013 09:20:37 PM UTCfrancioStatusNone=>Fixed
      Open/ClosedOpen=>Closed

    Back to the top


    Powered by Savane 3.1-cleanup1