bugpyFormex - Bugs: bug #43638, Error in vtk_itf for vtk >= 6

 
 

bug #43638: Error in vtk_itf for vtk >= 6

Submitter:  Benedict Verhegghe <bverheg>
Submitted:  Wed 19 Nov 2014 02:42:08 PM UTC
   
 
Category:  Plugins Severity:  4 - Important
Item Group:  Functionality error Status:  Fixed
Privacy:  Public Assigned to:  francio
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 06 Feb 2015 05:44:12 AM UTC, comment #5: 

Fixed in commit 606fb56.

francesco <francio>
Group Member
Mon 12 Jan 2015 08:57:55 AM UTC, comment #4: 

It nows passes 1390, but fails in 1408:


Traceback (most recent call last):
  File "/home/bene/prj/pyformex/pyformex/gui/draw.py", line 556, in replay

play(refresh=utils.is_app(appname))
  File "/home/bene/prj/pyformex/pyformex/gui/draw.py", line 542, in play

runAny(refresh=refresh)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 598, in runAny

return runApp(appname, argv, refresh)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 541, in runApp

res = app.run()
  File "/home/bene/prj/pyformex/pyformex/examples/ContourView.py", line 52, in run

contour = viewContour(S)
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 1408, in viewContour

contour = convertFromVPD(contour)[0]
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 400, in convertFromVPD

if  vpd.GetPoints().GetData().GetNumberOfTuples():
AttributeError
:
'NoneType' object has no attribute 'GetData'


Benedict Verhegghe <bverheg>
Group administrator
Mon 12 Jan 2015 08:25:48 AM UTC, comment #3: 

Hi benedict can you try to change the line 1390 to


windowToImageFilter.SetInput(tmp_rW)



I think the SetInput is still the same for the render related functions also for version 6.

francesco <francio>
Group Member
Mon 12 Jan 2015 08:04:01 AM UTC, comment #2: 

I reopened the bug, as there are still issues with vtk >=6.
For example, the ContourView example fails with the following message:


Reading .OFF /home/bene/prj/pyformex/pyformex/data/horse.off
Read 669 nodes and 1334 elems
Use the Play/Step/Continue button to proceed
STARTING CONVERSION FOR DATA OF TYPE <class 'pyformex.plugins.trisurface.TriSurface'>
setting POLYS for data with 3 maximum number of point for cell
Traceback (most recent call last):
  File "/home/bene/prj/pyformex/pyformex/gui/appMenu.py", line 449, in run

self.runApp(app, play=self.autoplay)
  File "/home/bene/prj/pyformex/pyformex/gui/appMenu.py", line 467, in runApp

script.runAny(appname)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 598, in runAny

return runApp(appname, argv, refresh)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 541, in runApp

res = app.run()
  File "/home/bene/prj/pyformex/pyformex/examples/ContourView.py", line 52, in run

contour = viewContour(S)
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 1390, in viewContour

windowToImageFilter = SetInput(windowToImageFilter,tmp_rW)
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 106, in SetInput

vtkobj.SetInputData(data)
AttributeError
:
SetInputData


And here is the list of detected software


Detected Software
-----------------
Installed System:
  pyFormex_version (1.0.1~a1)
  pyFormex_installtype (G)
  pyFormex_fullversion (pyFormex 1.0.1~a1 (GL2) (release-0.9.1-843-gcf8bbe3))
  pyFormex_libraries (['pyformex.lib.misc_', 'pyformex.lib.nurbs_', 'pyformex.lib.drawgl_'])
  Python_version (2.7.8)
  Python_fullversion (2.7.8 (default, Sep  9 2014, 22:08:43)  [GCC 4.9.1])
  System (Linux)
  Host (bumper)
  Release (3.14-2-amd64)
  Version (#1 SMP Debian 3.14.15-2 (2014-08-09))
  Arch (x86_64)

Detected Python Modules:
  calpy (** Not Found **)
  dicom (0.9.8)
  docutils (0.12)
  gdcm (** Not Found **)
  gl2ps (1.0303)
  gnuplot (** Not Found **)
  ipython (** Not Found **)
  ipython-qt (** Not Found **)
  matplotlib (** Not Found **)
  numpy (1.8.2)
  pyformex (1.0.1~a1)
  pyopengl (3.0.2)
  pyqt4 (4.8.6)
  pyqt4gl (4.8.6)
  pyside (1.2.2)
  python (2.7.8)
  scipy (** Not Found **)
  vtk (6.1.0)

Detected External Programs:
  admesh (0.98.1)
  calculix (** Not Found **)
  calix (1.5-a8)
  calpy (0.4-a10)
  dxfparser (0.2)
  ffmpeg (** Not Found **)
  freetype (2.5.2)
  gts (:)
  gts-bin (:)
  gts-extra (:)
  imagemagick (6.8.9-6)
  postabq (0.1)
  python (2.7.8)
  recordmydesktop (** Not Found **)
  tetgen (1.4.3)
  units (** Not Found **)
  vmtk (** Not Found **)


Benedict Verhegghe <bverheg>
Group administrator
Wed 19 Nov 2014 02:58:34 PM UTC, comment #1: 

should be fixed in commit 0aefe51, i had already committed but forgot to push.

francesco <francio>
Group Member
Wed 19 Nov 2014 02:42:08 PM UTC, original submission:  

With vtk >= 6 the example ClippingBoxVTK stilll produces an error even with the changes from bec3ae2c13. See traceback below.


Traceback (most recent call last):
  File "/home/bene/prj/pyformex/pyformex/gui/appMenu.py", line 449, in run

self.runApp(app, play=self.autoplay)
  File "/home/bene/prj/pyformex/pyformex/gui/appMenu.py", line 467, in runApp

script.runAny(appname)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 598, in runAny

return runApp(appname, argv, refresh)
  File "/home/bene/prj/pyformex/pyformex/script.py", line 541, in runApp

res = app.run()
  File "/home/bene/prj/pyformex/pyformex/examples/ClippingBoxVTK.py", line 54, in run

clippedIn=vtkClip(S,implicitdata=bbs,method='boxplanes',insideout=0)[1]
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 1227, in vtkClip

return _vtkClipper(self,_vtkBoxPlanes(box),insideout)
  File "/home/bene/prj/pyformex/pyformex/plugins/vtk_itf.py", line 946, in _vtkClipper

clipper.SetClipFunction(vtkif)
AttributeError
:
'NoneType' object has no attribute 'SetClipFunction'


Benedict Verhegghe <bverheg>
Group administrator

 

(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 francio (Posted a comment)
  • -email is unavailable- added by bverheg (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2015-02-06 francio StatusIn Progress Fixed
        Open/ClosedOpen Closed
    2015-01-12 bverheg StatusFixed In Progress
        Open/ClosedClosed Open
    2014-11-19 bverheg StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code