bugpyFormex - Bugs: bug #53573, pick elements function in gui...

 
 

bug #53573: pick elements function in gui Tools>Pick>Pick Elements fails on line2 meshes

Submitted by:  francesco <francio>
Submitted on:  Fri 06 Apr 2018 10:42:19 AM UTC  
 
Category:  Core Severity:  3 - Normal
Item Group:  Functionality error Status:  Confirmed
Privacy:  Public Assigned to:  Benedict Verhegghe <bverheg>
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 06 Apr 2018 11:46:35 AM UTC, comment #1:

Indeed the function fails when applied on line elements (nplex==2).

It works well for nplex >= 3. I have not tested yet for nplex==1.

Benedict Verhegghe <bverheg>
Project AdministratorIn charge of this item.
Fri 06 Apr 2018 10:42:19 AM UTC, original submission:

I get this error

Pick: Mode element; Filter None

Traceback (most recent call last):

File "/home/francesco/programs/pyformex/pyformex/plugins/tools_menu.py",
line 189, in pick_elements

set_selection('element')

File "/home/francesco/programs/pyformex/pyformex/plugins/tools_menu.py",
line 177, in set_selection

selection = pick(obj_type, **kargs)

File "/home/francesco/programs/pyformex/pyformex/gui/draw.py", line
1020, in pick

sel = pf.canvas.pick(mode, oneshot, func, filter, pickable)

File "/home/francesco/programs/pyformex/pyformex/gui/viewport.py", line
883, in pick

func(self, self.selection)

File "/home/francesco/programs/pyformex/pyformex/opengl/canvas.py", line
1514, in highlightElements

self.actors[i].addHighlightElements(K[i])

File "/home/francesco/programs/pyformex/pyformex/opengl/drawable.py",
line 976, in addHighlightElements

elems = self.subElems(nsel=self.faces,esel=sel)

File "/home/francesco/programs/pyformex/pyformex/opengl/drawable.py",
line 859, in subElems

elems = elems[:, nsel].reshape(-1, nsel.shape[-1])

ValueError

:

total size of new array must be unchanged

francesco <francio>
Project Member

 

(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 francio (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-04-06 bverheg CategoryNone => Core
        Item GroupNone => Functionality error
        StatusNone => Confirmed
        Assigned toNone => bverheg

    Back to the top


    Powered by Savane 3.4