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


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

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

Add a New Comment Rich Markup

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>
Group administrator
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


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


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])



total size of new array must be unchanged

francesco <francio>
Group Member


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

Attach Files:

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)

    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
    2018-04-06 bverheg CategoryNone Core
        Item GroupNone Functionality error
        StatusNone Confirmed
        Assigned toNone bverheg

    Back to the top

    Powered by Savane 3.13-c373.
    Corresponding source code