bugpyFormex - Bugs: bug #41884, Formex/Mesh of point fails to draw

 
 

bug #41884: Formex/Mesh of point fails to draw

Submitter:  francesco <francio>
Submitted:  Mon 17 Mar 2014 10:40:05 AM UTC
   
 
Category:  GUI Severity:  3 - Normal
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 27 Mar 2014 11:35:11 AM UTC, comment #5: 

Drawing a point works perfectly for me.

Your problem could be the result of a mix of legacy and gl2 modules, related to bug https://savannah.nongnu.org/bugs/?41905

Check if the fix for that bug solves your problem, and if so, close this report.

Benedict Verhegghe <bverheg>
Group administrator
Thu 27 Mar 2014 08:56:18 AM UTC, comment #4: 

The problem I cannot check it now because that after 982da9c pyformex did not start anymore after clonning a new version.
i open a bug for it

francesco <francio>
Group Member
Thu 27 Mar 2014 08:51:13 AM UTC, comment #3: 

It was in the gl2, but I dont get how to fix it. what are he separate legacy/... modules?

francesco <francio>
Group Member
Thu 27 Mar 2014 07:43:49 AM UTC, comment #2: 

This is in the old gl1 engine?
These should be fixed in the separate legacy/... modules, not in the main tree. 

In gl2 the example works fine for me.

Benedict Verhegghe <bverheg>
Group administrator
Mon 17 Mar 2014 12:00:44 PM UTC, comment #1: 

I have just figure out that an attribute self.coords  cannot be added in the Coords class. We can manage with




@property
def coords(self):
    return self.points()



francesco <francio>
Group Member
Mon 17 Mar 2014 10:40:05 AM UTC, original submission:  

this will raise error

O=Formex([[[0,0,0]]])
draw(O)

because
gui.drawPoints use this tranformation

x = x.astype(float32).reshape(-1, 3)

which of course fails on Formex and mesh.

we can make a check on the type  but maybe
can we easily add in Coords an attribute

self.coords

which returns itself and can easily help type check
in other situations. so we can just modify

x = x.coords.astype(float32).reshape(-1, 3)



francesco <francio>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

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

    Date Changed by Updated Field Previous Value => Replaced by
    2014-05-13 francio Open/ClosedOpen Closed
    2014-05-13 francio StatusWorks For Me Fixed
    2014-03-27 bverheg StatusNone Works For Me
    2014-03-27 francio Dependencies- Depends on bugs #41905

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code