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

 
 

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

Submitted by:  francesco <francio>
Submitted on:  Mon 17 Mar 2014 10:40:05 AM UTC  
 
Category: GUISeverity: 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.

 

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>
Project 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>
Project 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>
Project 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>
Project 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

francesco <francio>
Project 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>
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

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bverheg (Posted a comment)
  • -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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 13 May 2014 06:42:35 AM UTCfrancioOpen/ClosedOpen=>Closed
    Tue 13 May 2014 06:42:04 AM UTCfrancioStatusWorks For Me=>Fixed
    Thu 27 Mar 2014 11:35:11 AM UTCbverhegStatusNone=>Works For Me
    Thu 27 Mar 2014 08:56:18 AM UTCfrancioDependencies-=>Depends on bugs #41905

    Back to the top


    Powered by Savane 3.1-cleanup1