From xfpku at yahoo.com.sg Tue May 1 03:26:40 2001 From: xfpku at yahoo.com.sg (=?iso-8859-1?q?xiong=20fei?=) Date: Tue, 1 May 2001 15:26:40 +0800 (CST) Subject: [vtkusers] Problem with volume rendering Message-ID: <20010501072640.91100.qmail@web13504.mail.yahoo.com> Hi, all I met a problem recently. When I try to execute the sample program volProt.cxx (./graphics/examplesCxx), an error message is given "1165:volProt: rld: Fatal Error: attempted access to unresolvable symbol in /var/tmp/fxiong/vtkprj/lib/libVTKCommon.so: pthread_attr_setscope". And when I use something else such as vtkImageCast, the same thing happen. Can someone tell me how to solve it? Thank you for your kind help and I believe the generosity in this form will benefit all of us ordinary vtkusers. Best Regards Peter __________________________________________________ Do You Yahoo!? Yahoo! Food Guide ? Find the best restaurants and hawker fare around! http://food.yahoo.com.sg/ From djn at elan.mad.adelaide.edu.au Tue May 1 08:19:59 2001 From: djn at elan.mad.adelaide.edu.au (David J. Netherway) Date: Tue, 01 May 2001 21:49:59 +0930 Subject: [vtkusers] iconify-raise-lower Message-ID: <3AEEA9EF.AA1619FF@elan.mad.adelaide.edu.au> How does one iconify, raise and lower vtkRenderWindows ? Thanks, David From vlevy at myrealbox.com Tue May 1 09:21:21 2001 From: vlevy at myrealbox.com (Victor Levy) Date: Tue, 1 May 2001 09:21:21 -0400 Subject: [vtkusers] Getting 3D position of a clicked point References: Message-ID: <007801c0d241$a3631220$0200a8c0@VicDell> Mohammad, this is a sligtly modified version of MFC-based code that works for us, but only when the data being rendered is opaque. m_pVtkRenderer is a pointer to a vtkRenderer object. m_resWindow is a CSize object containing the resolution of the render window. If you're not using MFC you should be able to adapt it without too much trouble. Hope it helps, Vic P.S. Does anyone know how to get this to work when the data in the renderer is translucent, i.e., its opacity is less than 1.0? /* %=======================================================================% % ICmn3DImageRenderer::Convert2Dto3D % % Returns the 3-D point at a specified 2-D point. % */ HRESULT CCmn3DRendererVtk::Convert2Dto3D ( /* Returns */ /* Function result code */ DOUBLE_POINT_3D* a_pPt3) /* Input: */ /* 2-D point (z coordinate ignored) relative to the render */ /* window. The origin is at the top-left. */ /* Output: */ /* 3-D point in global coordinates of the voxel closest to the */ /* viewer at the specified 2-D point. */ /* % Notes: % % Returns S_FALSE if there are no voxels at the specified % % 2-D point. % %=======================================================================% */ { HRESULT result = S_OK; int status; float *arrPickPosition; vtkPropPicker *pVtkPicker = NULL; /* %----------% % Validate % %----------% */ if (m_pVtkRenderer == NULL) { result = RLT_MAKE_FAILURE (ERR_SUP_OBJECT_NOT_INITIALIZED); goto exit; } /* %----------------------------------------% % Pick the object at the specified point % %----------------------------------------% */ a_pPt3 -> y = m_resWindow.cy - 1 - a_pPt3 -> y; // VTK uses bottom-left origin for this function pVtkPicker = pVtkPicker -> New (); status = pVtkPicker -> Pick (a_pPt3 -> x, a_pPt3 -> y, a_pPt3 -> z, m_pVtkRenderer); if (status) { // Data at specified point arrPickPosition = pVtkPicker -> GetPickPosition (); a_pPt3 -> x = arrPickPosition [0]; a_pPt3 -> y = arrPickPosition [1]; a_pPt3 -> z = arrPickPosition [2]; } else { // No data at specified point result = S_FALSE; } exit: if (pVtkPicker != NULL) { pVtkPicker -> Delete (); } return result; } ----- Original Message ----- From: "Mohammad R. Siadat" To: Sent: Monday, April 30, 2001 4:04 PM Subject: [vtkusers] Getting 3D position of a clicked point > Hi, > > I need to get the 3D coordinate of a clicked point in a VTK window (for a > program like samlpe medical2.cxx). The answer would be greatly > appreciated. > > Thanks, > Mohammad Siadat > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From spicer_sean at hotmail.com Tue May 1 16:58:12 2001 From: spicer_sean at hotmail.com (sean spicer) Date: Tue, 01 May 2001 13:58:12 -0700 Subject: [vtkusers] OpenGL Volumizer ? Message-ID: Hi, I just managed to get this email -- lost in the ether for some days I guess...Grin. Brian, if you're still interested I can pass along this code. I am also willing to contribute this to the greater VTK community, however, I need someone to point me in the right direction. What is the current process for doing this? sean >From: Robert Belleman >To: Brian Van Straalen >CC: vtkusers at public.kitware.com >Subject: Re: [vtkusers] OpenGL Volumizer ? >Date: Tue, 17 Apr 2001 11:23:32 +0200 > >Brian, > >Sean Spicer has done this some time ago. Sean gave me a copy of his >classes for me to try and it works quite well. I have no idea what the >state of this is at the moment and if he's willing to contribute this, >but you may want to check out > >http://solveDeath.stanford.edu/~spicer/svr_html/svr.html > >and work your way from there. Don't ask me; I'm not distributing this >without Sean's permission (he's getting a Bcc of this email btw). > >Best, >-- Rob > >[] Robert Belleman X Section Computational Science [] >[] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] >[] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] > >On Fri, Apr 13, 2001 at 03:23:28PM -0700, Brian Van Straalen wrote: > > > > Anyone out there trying/using the OpenGL Volumizer > > package from SGI ? Using it with VTK ? > > > > http://www.sgi.com/software/volumizer/ > > > > > > supposedly it uses the hardware texture mappers to > > get good performance. > > > > Brian > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From julian at essaustin.com Tue May 1 19:26:25 2001 From: julian at essaustin.com (Julian Humphries) Date: Tue, 01 May 2001 18:26:25 -0500 Subject: [vtkusers] vtkLookUpTable, what am I doing wrong? In-Reply-To: <4.3.2.7.2.20010422225403.01ef3ba0@essaustin.com> References: <3ADF427F.C15F527F@lrz.uni-muenchen.de> Message-ID: <4.3.2.7.2.20010501180514.02ab8ee0@essaustin.com> Hi, I am using a recent vtkNightly release on Win2k with python (1.5). The following code doesn't behave as I expect: I thought I was building a LUT with a simple linear grayscale value range of 0 to 1. table = vtkLookupTable() table.SetTableRange(0,255) table.SetValueRange(0.0,1.0) table.SetSaturationRange(0.0,0.0) table.SetHueRange(0.0,0.0) table.SetAlphaRange(0.0,0.0) table.SetNumberOfColors(256) table.Build() However, the resulting table starts off with the first 16 entries listed below This is not what I wanted. When applied to any grayscale image this LUT should change nothing (or at least that is what I want, as in later code I will be changing the min and max table range values to change image leveling). Here is the code that applies the LUT newstack = vtkImageMapToColors() newstack.SetInput(reader.GetOutput() newstack.SetOutputFormatToLuminance() newstack.SetLookupTable(table) ... Do I need to manually insert all the LUT values? or is there another set of values for vtkLookupTable that will produce a linear grayscale LUT? or is there a bug somewhere? Or do I simply not understand what I am doing (always possible). Thanks, Julian Humphries University of Texas First 16 values using "print i, table.GetTableValue(i)" 0 (0.0, 0.0, 0.0, 0.0) 1 (0.0, 0.0, 0.0, 0.0) 2 (0.0, 0.0, 0.0, 0.0) 3 (0.0, 0.0, 0.0, 0.0) 4 (0.0, 0.0, 0.0, 0.0) 5 (0.0, 0.0, 0.0, 0.0) 6 (0.0, 0.0, 0.0, 0.0) 7 (0.0, 0.0, 0.0, 0.0) 8 (0.0, 0.0, 0.0, 0.0) 9 (0.0, 0.0, 0.0, 0.0) 10 (0.0, 0.0, 0.0, 0.0) 11 (0.00392156885937, 0.00392156885937, 0.00392156885937, 0.0) 12 (0.00392156885937, 0.00392156885937, 0.00392156885937, 0.0) 13 (0.00392156885937, 0.00392156885937, 0.00392156885937, 0.0) 14 (0.00392156885937, 0.00392156885937, 0.00392156885937, 0.0) 15 (0.00784313771874, 0.00784313771874, 0.00784313771874, 0.0) From prabhu at aero.iitm.ernet.in Wed May 2 02:40:31 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 2 May 2001 12:10:31 +0530 (IST) Subject: [vtkusers] vtkLookUpTable, what am I doing wrong? In-Reply-To: <4.3.2.7.2.20010501180514.02ab8ee0@essaustin.com> References: <3ADF427F.C15F527F@lrz.uni-muenchen.de> <4.3.2.7.2.20010501180514.02ab8ee0@essaustin.com> Message-ID: <15087.43999.123723.408844@monster.linux.in> hi, >>>>> "JH" == Julian Humphries writes: JH> Hi, I am using a recent vtkNightly release on Win2k with JH> python (1.5). The following code doesn't behave as I expect: JH> I thought I was building a LUT with a simple linear grayscale JH> value range of 0 to 1. JH> table = vtkLookupTable() table.SetTableRange(0,255) JH> table.SetValueRange(0.0,1.0) table.SetSaturationRange(0.0,0.0) JH> table.SetHueRange(0.0,0.0) table.SetAlphaRange(0.0,0.0) JH> table.SetNumberOfColors(256) table.Build() This seems correct, except you should use an alpha range of 1.0, 1.0 (which is the default). JH> However, the resulting table starts off with the first 16 JH> entries listed below This is not what I wanted. When applied JH> to any grayscale image this LUT should change nothing (or at JH> least that is what I want, as in later code I will be changing JH> the min and max table range values to change image leveling). I notice the same problem that you report with both vtk3.2, vtknightly on Linux (i.e. the first 10 or so entries are all zero, also there are lots of repeated values). I am not an expert on this but maybe it is because floats are being used in vtkLookupTable.cxx::Build() ? Should'nt this be a bad bug (after all scalar colouring is so important)? I looked at the code briefly but dont understand much of it. prabhu From prabhu at aero.iitm.ernet.in Wed May 2 02:48:07 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 2 May 2001 12:18:07 +0530 (IST) Subject: [vtkusers] OpenGL Volumizer ? In-Reply-To: References: Message-ID: <15087.44455.9615.298168@monster.linux.in> hi, >>>>> "SS" == sean spicer writes: SS> I am also willing to contribute this to the greater VTK SS> community, however, I need someone to point me in the right SS> direction. What is the current process for doing this? Well, the following URLs should help somewhat: http://www.kitware.com/vtkhtml/vtkdata/ContribCode.html http://www.kitware.com/vtkhtml/vtkdata/CodeStyle.html you can also read the FAQ at http://public.kitware.com/cgi-bin/vtkfaq Please also CC your development related messages to the vtk-developers-admin at public.kitware.com list. prabhu From pratheeka at wiproge.med.ge.com Wed May 2 08:06:26 2001 From: pratheeka at wiproge.med.ge.com (Pratheek Arora) Date: Wed, 2 May 2001 17:36:26 +0530 Subject: [vtkusers] (no subject) Message-ID: <000701c0d300$509a8ae0$55cb4603@dgx30851> Hello friend I am facing one problem. I am trying to open a file in vtkTkRenderWidget but I am unable to open the file. it also not showing amy error, can you tell me why it is so happening I am sending a program thanks prateek **************************************************************************** ***************** ## Create a little app for loading and viewing polygonal files ## catch {load vtktcl} source f:\\istart.bat # Create gui wm title . "Registration" frame .mbar -relief raised -bd 2 pack .mbar -side top -fill x menubutton .mbar.file -text File -menu .mbar.file.menu menubutton .mbar.view -text View -menu .mbar.view.menu menubutton .mbar.help -text Help -menu .mbar.help.menu pack .mbar.file .mbar.view -side left pack .mbar.help -side right menu .mbar.file.menu .mbar.file.menu add command -label Open -command OpenFile .mbar.file.menu add command -label Exit -command exit set view Left menu .mbar.view.menu .mbar.view.menu add radiobutton -label Front -variable view -value Front\ -command {UpdateView 1 0 0 0 1 0} .mbar.view.menu add radiobutton -label Back -variable view -value Back\ -command {UpdateView -1 0 0 0 1 0} .mbar.view.menu add radiobutton -label Left -variable view -value Left\ -command {UpdateView 0 0 1 0 1 0} .mbar.view.menu add radiobutton -label Right -variable view -value Right\ -command {UpdateView 0 0 -1 0 1 0} .mbar.view.menu add radiobutton -label Top -variable view -value Top\ -command {UpdateView 0 1 0 0 0 1} .mbar.view.menu add radiobutton -label Bottom -variable view -value Bottom\ -command {UpdateView 0 -1 0 0 0 1} .mbar.view.menu add radiobutton -label Isometric -variable view \ -value Isometric -command {UpdateView 1 1 1 0 1 0} menu .mbar.help.menu .mbar.help.menu add command -label {Buy a book!} vtkTkRenderWidget .window -width 300 -height 300 BindTkRenderWidget .window pack .window -side top -anchor nw -padx 3 -pady 3 -fill both -expand 1 set ren [vtkRenderer ren] # Procedure to set particular views proc UpdateView {x y z vx vy vz} { global ren renWin set camera [$ren GetActiveCamera] $camera SetViewPlaneNormal $x $y $z $camera SetViewUp $vx $vy $vz $ren ResetCamera Render } # Procedure opens file and resets view proc OpenFile {} { global renWin ren set types { {{PNMREADER} {.pgm} } {{Cyberware (Laser Scanner)} {.ppn} } {{TIFIMAGE READER} {.tif} } {{Visualization Toolkit (polygonal)} {.vtk} } {{All Files } * } } set filename [tk_getOpenFile -filetypes $types] if { $filename != "" } { $ren RemoveActor bannerActor $ren RemoveActor actor if { [info commands reader] != "" } {reader Delete} if { [string match *.pgm $filename] } { vtkPNMReader reader reader SetFileName $filename puts $filename puts "prateek arora " } elseif { [string match *.ppn $filename] } { vtkPNMReader reader reader SetFileName $filename puts $filename } elseif { [string match *.vtk $filename] } { vtkPolyDataReader reader reader SetFileName $filename puts $filename } elseif { [string match *.tif $filename] } { vtkTIFFReader reader reader SetFileName $filename puts $filename } elseif { [string match *.tri $filename] } { vtkMCubesReader reader reader SetFileName $filename } else { puts "Can't read this file" return } mapper SetInput [reader GetOutput] # $reader Update if { [[reader GetOutput] GetNumberOfCells] <= 0 } { $ren AddActor bannerActor } else { $ren AddActor actor } $ren ResetCamera $renWin Render } } # Create pipeline set reader stl vtkSTLReader stl vtkBYUReader byu vtkPolyDataReader vtk vtkImageMapper mapper vtkActor2D actor actor SetMapper mapper vtkVectorText banner banner SetText " vtk\nPolygonal Data\n Viewer" vtkPolyDataMapper bannerMapper bannerMapper SetInput [banner GetOutput] vtkActor bannerActor bannerActor SetMapper bannerMapper set renWin [.window GetRenderWindow] # set ren [$renWin MakeRenderer] $ren AddActor bannerActor [$ren GetActiveCamera] Zoom 1.25 **************************************************************************** *********** From pratheeka at wiproge.med.ge.com Wed May 2 08:07:03 2001 From: pratheeka at wiproge.med.ge.com (Pratheek Arora) Date: Wed, 2 May 2001 17:37:03 +0530 Subject: [vtkusers] vtktkrenderwidget problem Message-ID: <000801c0d300$66be4460$55cb4603@dgx30851> Hello friend I am facing one problem. I am trying to open a file in vtkTkRenderWidget but I am unable to open the file. it also not showing amy error, can you tell me why it is so happening I am sending a program thanks prateek **************************************************************************** ***************** ## Create a little app for loading and viewing polygonal files ## catch {load vtktcl} source f:\\istart.bat # Create gui wm title . "Registration" frame .mbar -relief raised -bd 2 pack .mbar -side top -fill x menubutton .mbar.file -text File -menu .mbar.file.menu menubutton .mbar.view -text View -menu .mbar.view.menu menubutton .mbar.help -text Help -menu .mbar.help.menu pack .mbar.file .mbar.view -side left pack .mbar.help -side right menu .mbar.file.menu .mbar.file.menu add command -label Open -command OpenFile .mbar.file.menu add command -label Exit -command exit set view Left menu .mbar.view.menu .mbar.view.menu add radiobutton -label Front -variable view -value Front\ -command {UpdateView 1 0 0 0 1 0} .mbar.view.menu add radiobutton -label Back -variable view -value Back\ -command {UpdateView -1 0 0 0 1 0} .mbar.view.menu add radiobutton -label Left -variable view -value Left\ -command {UpdateView 0 0 1 0 1 0} .mbar.view.menu add radiobutton -label Right -variable view -value Right\ -command {UpdateView 0 0 -1 0 1 0} .mbar.view.menu add radiobutton -label Top -variable view -value Top\ -command {UpdateView 0 1 0 0 0 1} .mbar.view.menu add radiobutton -label Bottom -variable view -value Bottom\ -command {UpdateView 0 -1 0 0 0 1} .mbar.view.menu add radiobutton -label Isometric -variable view \ -value Isometric -command {UpdateView 1 1 1 0 1 0} menu .mbar.help.menu .mbar.help.menu add command -label {Buy a book!} vtkTkRenderWidget .window -width 300 -height 300 BindTkRenderWidget .window pack .window -side top -anchor nw -padx 3 -pady 3 -fill both -expand 1 set ren [vtkRenderer ren] # Procedure to set particular views proc UpdateView {x y z vx vy vz} { global ren renWin set camera [$ren GetActiveCamera] $camera SetViewPlaneNormal $x $y $z $camera SetViewUp $vx $vy $vz $ren ResetCamera Render } # Procedure opens file and resets view proc OpenFile {} { global renWin ren set types { {{PNMREADER} {.pgm} } {{Cyberware (Laser Scanner)} {.ppn} } {{TIFIMAGE READER} {.tif} } {{Visualization Toolkit (polygonal)} {.vtk} } {{All Files } * } } set filename [tk_getOpenFile -filetypes $types] if { $filename != "" } { $ren RemoveActor bannerActor $ren RemoveActor actor if { [info commands reader] != "" } {reader Delete} if { [string match *.pgm $filename] } { vtkPNMReader reader reader SetFileName $filename puts $filename puts "prateek arora " } elseif { [string match *.ppn $filename] } { vtkPNMReader reader reader SetFileName $filename puts $filename } elseif { [string match *.vtk $filename] } { vtkPolyDataReader reader reader SetFileName $filename puts $filename } elseif { [string match *.tif $filename] } { vtkTIFFReader reader reader SetFileName $filename puts $filename } elseif { [string match *.tri $filename] } { vtkMCubesReader reader reader SetFileName $filename } else { puts "Can't read this file" return } mapper SetInput [reader GetOutput] # $reader Update if { [[reader GetOutput] GetNumberOfCells] <= 0 } { $ren AddActor bannerActor } else { $ren AddActor actor } $ren ResetCamera $renWin Render } } # Create pipeline set reader stl vtkSTLReader stl vtkBYUReader byu vtkPolyDataReader vtk vtkImageMapper mapper vtkActor2D actor actor SetMapper mapper vtkVectorText banner banner SetText " vtk\nPolygonal Data\n Viewer" vtkPolyDataMapper bannerMapper bannerMapper SetInput [banner GetOutput] vtkActor bannerActor bannerActor SetMapper bannerMapper set renWin [.window GetRenderWindow] # set ren [$renWin MakeRenderer] $ren AddActor bannerActor [$ren GetActiveCamera] Zoom 1.25 **************************************************************************** *********** From neumann at medizin.fu-berlin.de Wed May 2 09:52:06 2001 From: neumann at medizin.fu-berlin.de (Patrick Neumann) Date: Wed, 02 May 2001 15:52:06 +0200 Subject: [vtkusers] 2d/3d registration Message-ID: <3AF01106.F919714F@medizin.fu-berlin.de> Hi, are there any vtk classes usable for 2d image-, 3d volume- or 3d surface-registration? Regards -- Patrick Neumann Email: neumann at medizin.fu-berlin.de From ystarrev at uwo.ca Wed May 2 11:27:31 2001 From: ystarrev at uwo.ca (Yves Starreveld) Date: Wed, 2 May 2001 11:27:31 -0400 Subject: [vtkusers] vtk on osx from sources Message-ID: <200105021527.f42FRNr23373@pony.its.uwo.ca> Hi, The last files to let vtk build on osx using the Quartz window server have been committed. If you would like to try it out, you need to update your cvs from outside the vtk directory, since there is a new directory added to the vtk directory. Inside the macintosh directory, there is a readme. Please let me know if there are any issues/suggestions. Also, inside the macintosh directory, there are versions of the Kits.make, system.make.in, configure, configure.in, and Makefile.in for the python, graphics, imaging directories. All these files should work for osx and for *nix/ cygwin windows builds also. Please try them on your non-osx system to make sure they do, and let me know. I have tested them successfully on IRIX64 and Linux systems. Thanks for all the helpful feedback. Yves Starreveld From erik.sobel at alphatech.com Wed May 2 12:28:26 2001 From: erik.sobel at alphatech.com (Erik Sobel) Date: Wed, 02 May 2001 12:28:26 -0400 Subject: [vtkusers] Camera Question Message-ID: <4.3.2.7.2.20010502114804.00b54e80@mail.alphatech.com> How do you extract camera Yaw, Pitch and Tilt from the camera ViewPlaneNormal and ViewUp vectors? Also, why does changing Pitch or Yaw effect the Roll value? I though they were orthogonal? Don't you think the VTK documentation is too comprehensive. Instead of helpful elucidations like... float * vtkCamera::GetOrientationWXYZ () Returns the WXYZ orientation of the camera. Doxygen should be programmed to simply add a "Duh" for each method. Like this, float * vtkCamera::GetOrientationWXYZ () Duh. This would save many bytes of storage without a loss of content in IMHO. -Erik ---------------------------------------------------------------------------------------------------------- Erik Sobel esobel at alphatech.com ---------------------------------------------------------------------------------------------------------- From krs at zappa.uncc.edu Wed May 2 16:56:25 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Wed, 02 May 2001 16:56:25 -0400 Subject: [vtkusers] doxygen without class diagrams? Message-ID: <3AF07478.F27A01C8@mail.cs.uncc.edu> I was wondering if the vtk docs could be displayed without the class diagrams - these take a noticeably long time to render - sometimes gets a bit annoying.. There is no mistake that they are very nice way to navigate the class hierarchy. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From mbell at coventor.com Wed May 2 16:57:46 2001 From: mbell at coventor.com (Michael Bell) Date: Wed, 2 May 2001 16:57:46 -0400 Subject: [vtkusers] Inconsistent behavior when editing polydata In-Reply-To: <001701c0bd18$f6229460$cefefea9@bart> Message-ID: vtkusers, I am using java in windows NT and vtk 3.2 to create an interactive application with one actor made up of polydata (which is created from points). I want to be able to click the mouse to two points on the screen and create a new rectangular cell in the poly data. This works great 90% of the time. 5% of the time, some object is not created correctly, and 5% of the time, I crash with an internal error or lock up. That is, I run the same function 10 times and it works 9 of them (but not the same 9 times) and blows up once (but not at the same place everytime). I will display my code and then be more specific (I have ommitted irrelevent code): //first, initialize some cells. This works without problems. polyActor = new vtkActor(); polyData = new vtkPolyData(); polyMapper = new vtkPolyDataMapper(); points = new vtkPoints(); points.SetNumberOfPoints(numPolys * polysize); polyData.Allocate(1,10); for(yctr=-y;yctr Message-ID: <5.1.0.14.2.20010502231236.0521d848@wheresmymailserver.com> At 02/05/2001 16:56, K.R.Subramanian wrote: >I was wondering if the vtk docs could be displayed without the class >diagrams - >these take a noticeably long time to render - sometimes gets a bit >annoying.. You can generate a doc without class diagrams, but not disable the diagrams once the HTML files have been generated, of course. To generate your own doc, check the vtk-doxygen-doc project page (see link in the index page of your vtk doc). From dr_wat at hotmail.com Thu May 3 03:06:53 2001 From: dr_wat at hotmail.com (Boonyatee Tirawat) Date: Thu, 03 May 2001 07:06:53 -0000 Subject: [vtkusers] my vtk objects lost color when the scence is rotated Message-ID: Hello vtk gurus, I have made a class for vtkRenderWindow to embedded in window made by FOX toolkit. The problem is that when I try to rotate or spin the scence (through vtkCamara), the actors lost their colors and turn to be the gray objects. I have noticed that this change will occur from the second time of Render() call. The first move (or the first Render() ) gives the correct colors but the laters ain't. Do anyone give me some cues? My data is made from two files and used MergeFilter and FieldDataToAttributeDataFilter. Sincerelys, Tirawat Boonyatee _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From kamucha at hfm.e-technik.uni-kassel.de Thu May 3 03:45:51 2001 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Thu, 03 May 2001 09:45:51 +0200 Subject: [vtkusers] Re: 2d/3d registration References: <200105021600.MAA27672@public.kitware.com> Message-ID: <3AF10CAF.47F110B0@hfm.e-technik.uni-kassel.de> There is an ICP class for 3D surface registration that was developed by S. Barre, you can download it from here: ftp://sic.sp2mi.univ-poitiers.fr/pub/barre/vtk/classes/ > Date: Wed, 02 May 2001 15:52:06 +0200 > From: Patrick Neumann > Organization: ukbf > To: "vtkusers at public.kitware.com" > Subject: [vtkusers] 2d/3d registration > > Hi, > > are there any vtk classes usable for 2d image-, 3d volume- or 3d > surface-registration? > > Regards > -- > Patrick Neumann > Email: neumann at medizin.fu-berlin.de > > --__--__-- > > -- ======================================= George Kamucha Fachgebiet Hochfrequenztechnik(FB 16), Universit?t Kassel, Wilhelmsh?her Allee 73, Kassel, Germany. __________________________________________________________________________ Phone : +49 -561-804 6509 (Office); +49 -561-870 5662 (Resi.) Fax : +49 -561-804 6529 (Office) URL : http://www.uni-kassel.de/fb16/hft/mitarbeiter/kamucha/kamucha.html __________________________________________________________________________ From julian at essaustin.com Thu May 3 10:11:34 2001 From: julian at essaustin.com (Julian Humphries) Date: Thu, 03 May 2001 09:11:34 -0500 Subject: [vtkusers] vtkLookUpTable, what am I doing wrong? In-Reply-To: <15087.43999.123723.408844@monster.linux.in> References: <4.3.2.7.2.20010501180514.02ab8ee0@essaustin.com> <3ADF427F.C15F527F@lrz.uni-muenchen.de> <4.3.2.7.2.20010501180514.02ab8ee0@essaustin.com> Message-ID: <4.3.2.7.2.20010503090145.02ae40c8@essaustin.com> At 12:10 PM 5/2/2001 +0530, Prabhu Ramachandran wrote: > JH> However, the resulting table starts off with the first 16 > JH> entries listed below This is not what I wanted. When applied > JH> to any grayscale image this LUT should change nothing (or at > JH> least that is what I want, as in later code I will be changing > JH> the min and max table range values to change image leveling). > >I notice the same problem that you report with both vtk3.2, vtknightly >on Linux (i.e. the first 10 or so entries are all zero, also there are >lots of repeated values). I am not an expert on this but maybe it is >because floats are being used in vtkLookupTable.cxx::Build() ? >Should'nt this be a bad bug (after all scalar colouring is so >important)? I looked at the code briefly but dont understand much of >it. Can anyone confirm whether the resulting step valued LUT is in fact what is expected or not? Julian Humphries University of Texas From kitware-vtk at kulnet.kuleuven.ac.be Thu May 3 14:11:15 2001 From: kitware-vtk at kulnet.kuleuven.ac.be (kitware-vtk at kulnet.kuleuven.ac.be) Date: Thu, 3 May 2001 20:11:15 +0200 Subject: [vtkusers] newbee with imaging Message-ID: <988913487.968552@seven.kulnet.kuleuven.ac.be> --- Forwarded by news2mail for "Joris Vanden Wyngaerd" --- I have been using vtk for a while now, upto now for 3D visualization. I am now trying to display a simple 2D image. I did manage to show the image, but not as nice as I am used to with the 3D stuff. I got this far : vtkImageData *whatInWindow = id; vtkImageViewer * iv = vtkImageViewer::New(); iv->SetColorLevel(128.0F); iv->SetColorWindow(iv->GetColorLevel()*2); iv->SetInput(whatInWindow); while (1) { iv->Render(); } iv->Delete(); I put the while(1) in to be able to look at the image before it dissapears. I know this can't be right and I've been looking for something like vtkRenderWindowInteractor for vtkImageWindow. I did not find anything. Can anybody put me on the right track ? Joris From krs at zappa.uncc.edu Fri May 4 01:22:21 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Fri, 04 May 2001 01:22:21 -0400 Subject: [vtkusers] glyphs.. Message-ID: <3AF23C8D.516E1F37@mail.cs.uncc.edu> >From the docs, I understand glyphs can be scaled based on scalar or vector data. Can the glyph colors also be controlled by the input data at the same time? For instance if I have a cube glyph, I would like it to be scaled based on vector data and its color altered based on scalar value. In fact what I am doing is to scale in Z by the scalar value and also color by a lookup table - though this seems somewhat redundant, it clarifies the visualization.. qn. is, can this be done via glyphs? Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From prabhu at aero.iitm.ernet.in Fri May 4 02:42:18 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 4 May 2001 12:12:18 +0530 (IST) Subject: [vtkusers] glyphs.. In-Reply-To: <3AF23C8D.516E1F37@mail.cs.uncc.edu> References: <3AF23C8D.516E1F37@mail.cs.uncc.edu> Message-ID: <15090.20298.458591.766447@monster.linux.in> hi, >>>>> "KRS" == K R Subramanian writes: >> From the docs, I understand glyphs can be scaled based on >> scalar or KRS> vector data. Can the glyph colors also be controlled by the KRS> input data at the same time? For instance if I have a cube KRS> glyph, I would like it to be scaled based on vector data and KRS> its color altered based on scalar value. In fact what I am KRS> doing is to scale in Z by the scalar value and also color by KRS> a lookup table - though this seems somewhat redundant, it KRS> clarifies the visualization.. qn. is, can this be done via KRS> glyphs? Sure! You can definitely do this. If this is plain vector visualization you first do something like the following: cones = vtkGlyph3D() # Set it to color by vector data cones.SetColorModeToColorByVector() # or color by scalars cones.SetColorModeToColorByScalar() Then you just connect the appropriate Lookup table and set the right scalar range for the mapper and you are done. It doesnt matter as to what glyph you use. For streamlines the approach is similar. Just use SpeedScalarsOn() to color by vectors and do SpeedScalarsOff() to color by scalars. prabhu From S.D.Bulman at swansea.ac.uk Fri May 4 06:33:21 2001 From: S.D.Bulman at swansea.ac.uk (Simon Bulman) Date: Fri, 4 May 2001 11:33:21 +0100 Subject: [vtkusers] Scalars (double vs float). Message-ID: <002601c0d485$a4b09a30$a8032c89@swan.ac.uk> Hi All, >From the documentation I see that vtkScalars etc. allow you to use a certain datatype i.e. float, double. However looking at other classes, (vtkContourFilter for example) the the data type to set ranges etc are always floats. Is it the intention of vtk to eventually enable these to be datatype dependent? Is this already done but not documented.? What do other people do when they have data that need double precision? I ask because I seem to be having problems creating iso surfaces with my data and the only thing that can explain this seems to be data truncation etc Any thoughts?? Simon ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From vlevy at myrealbox.com Fri May 4 08:46:47 2001 From: vlevy at myrealbox.com (Victor Levy) Date: Fri, 4 May 2001 08:46:47 -0400 Subject: [vtkusers] Scalars (double vs float). References: <002601c0d485$a4b09a30$a8032c89@swan.ac.uk> Message-ID: <002b01c0d498$b40be5d0$0200a8c0@VicDell> Simon, > However looking at other classes, (vtkContourFilter for example) > the the data type to set ranges etc are always floats. vtkContourFilter converts its input data to float, no matter what the scalar data type, even if it's a single bit per scalar. The key is to make sure you call your vtkStructuredPoints object's SetScalarType to let it know the correct scalar type of your vtkScalars object. I have not tried using "double" scalars, just 1-bit, 8-bit, and 16-bit integers. In my experience vtkKitwareContourFilter does not seem to handle the single-bit case but vtkContourFilter does. Hope this helps, Vic ----- Original Message ----- From: Simon Bulman To: vtkusers at public.kitware.com Sent: Friday, May 04, 2001 6:33 AM Subject: [vtkusers] Scalars (double vs float). Hi All, >From the documentation I see that vtkScalars etc. allow you to use a certain datatype i.e. float, double. However looking at other classes, (vtkContourFilter for example) the the data type to set ranges etc are always floats. Is it the intention of vtk to eventually enable these to be datatype dependent? Is this already done but not documented.? What do other people do when they have data that need double precision? I ask because I seem to be having problems creating iso surfaces with my data and the only thing that can explain this seems to be data truncation etc Any thoughts?? Simon ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ From marcus_tere at yahoo.com Fri May 4 16:09:25 2001 From: marcus_tere at yahoo.com (Marcus Andrade) Date: Fri, 4 May 2001 13:09:25 -0700 (PDT) Subject: [vtkusers] Links with vtkUnstructuredGrid Message-ID: <20010504200925.57588.qmail@web10507.mail.yahoo.com> Hi everybody! How can I use links with vtkUnstructuredGrid? I'm trying to use it but I got a vtkdll.dll error when I am trying to compile. I'm previously using the BuildLinks() method without success. Is there an example that I can follow that uses buildlinks and insertNextLinkedCell methods? Thanxs in advance Marcus __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From xujianzhong at 126.com Sat May 5 09:51:44 2001 From: xujianzhong at 126.com (xujianzhong) Date: Sat, 5 May 2001 21:51:44 +0800 Subject: [vtkusers] contour fill Message-ID: <008401c0d56a$8598b0c0$290fa8c0@rockp2.iwhr.com> Dear VTK-users, I can get contour lines on a surface useing vtkContourFilter, but I don't know how to draw a contour fill map. If I just draw contour fill useing scalars data map to color through vtkLookupTable, the result is not clear as contour line. There are many software can draw contur fill very well just like contour line. I want know, how to do it? Thanks in advance. sorry for send this again, I haven't got any information since I had some problem on email a few days ago. xu jianzhong -------------- next part -------------- An HTML attachment was scrubbed... URL: From zjzhang at ee.cuhk.edu.hk Sat May 5 10:32:29 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sat, 5 May 2001 22:32:29 +0800 Subject: [vtkusers] Why so slow to read and view a image? Message-ID: <000801c0d570$36bbbaa0$1c23bd89@ee.cuhk.edu.hk> Dear vtkers: I use the following code ot load and view a BMP image. but It's too slow. for a bmp image of 240*320 it takes more than 6 seconds.And the interaction is also slow. what's the reason?it's the same with vtkTIFFReader. The following is the program: BOOL CImaDoc::OnOpenDocument(LPCTSTR lpszPathName) { if (!vtkMFCDocument::OnOpenDocument(lpszPathName)) return FALSE; // TODO: Add your specialized creation code here this->ImageReader = vtkBMPReader::New(); this->Mapper =vtkDataSetMapper::New(); this->Actor =vtkActor::New(); this->Actor->SetMapper(Mapper); this->ImageReader->SetFileName(lpszPathName); this->Mapper->SetInput(this->ImageReader->GetOutput()); this->Props->AddItem(this->Actor); this->Actor->VisibilityOn(); return TRUE; } regards, zj zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From zjzhang at ee.cuhk.edu.hk Sat May 5 23:47:16 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sun, 6 May 2001 11:47:16 +0800 Subject: [vtkusers] Why python can't be built? Message-ID: <000801c0d5df$3e5a4320$1c23bd89@ee.cuhk.edu.hk> Dear vtkers: under windows, I want to build python libraries, I use vtk3.2 and python21 version, but I always got this kind of error message, can anyone tell me how to do it? ....... ....... ....... vtkpythonotherobjs.lib(vtkDividingCubesPython.obj) : error LNK2001: unresolved e xternal symbol "__declspec(dllimport) public: static class vtkDividingCubes * __ cdecl vtkDividingCubes::New(void)" (__imp_?New at vtkDividingCubes@@SAPAV1 at XZ) vtkpythonotherobjs.lib(vtkDecimatePython.obj) : error LNK2001: unresolved extern al symbol "__declspec(dllimport) public: static class vtkDecimate * __cdecl vtkD ecimate::New(void)" (__imp_?New at vtkDecimate@@SAPAV1 at XZ) vtkpython.dll : fatal error LNK1120: 40 unresolved externals NMAKE : fatal error U1077: 'C:\vtkbin\vtkpython\link.exe' : return code '0x460' regards, zj zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From karlson at stu.mech.titech.ac.jp Mon May 7 01:53:56 2001 From: karlson at stu.mech.titech.ac.jp (Nikita Kojekine AKA Kitya Karlson) Date: Mon, 07 May 2001 14:53:56 +0900 Subject: [vtkusers] animation Message-ID: <3AF63874.C68DF55C@stu.mech.titech.ac.jp> Hello! How can I make animations using vtk? In the book i found information about only streamline and so on? Is there any classes available in vtk for making animations? From karlson at stu.mech.titech.ac.jp Mon May 7 06:41:38 2001 From: karlson at stu.mech.titech.ac.jp (Nikita Kojekine AKA Kitya Karlson) Date: Mon, 07 May 2001 19:41:38 +0900 Subject: [vtkusers] normals Message-ID: <3AF67BE2.E3DABC5F@stu.mech.titech.ac.jp> Hello! I have a set of points vtkPoints, which represent the surface. Can I get for each point 2 points instead of it - one on -0.001 on normal from the original and one on +0.001? how can i get normal with vtk? Thank you. From jaume at tele.ucl.ac.be Mon May 7 09:15:14 2001 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Mon, 7 May 2001 15:15:14 +0200 (MEST) Subject: [vtkusers] normals In-Reply-To: <3AF67BE2.E3DABC5F@stu.mech.titech.ac.jp> Message-ID: Hi Nikita, How do you define a normal for a point in a point cloud (vtkpoints)? If you create a surface mesh (polydata) out of your point set, you could use vtkPolyDataNormals and get the normals as pointdata attributes. Hope this helps Sylvain On Mon, 7 May 2001, Nikita Kojekine AKA Kitya Karlson wrote: > Hello! > I have a set of points vtkPoints, which represent the surface. > Can I get for each point 2 points instead of it - one on -0.001 on > normal > from the original and one on +0.001? how can i get normal with vtk? > Thank you. > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From ben_bj_li at yahoo.com Mon May 7 12:45:32 2001 From: ben_bj_li at yahoo.com (Ben Baojun Li) Date: Mon, 7 May 2001 09:45:32 -0700 (PDT) Subject: [vtkusers] How to prevent holes resulted from decimation? In-Reply-To: <200105071600.MAA15116@public.kitware.com> Message-ID: <20010507164532.11245.qmail@web509.mail.yahoo.com> Hello everyone, I have a problem with the decimation. Since I have to use an extensive decimation (.99 reduction ratio) following the marching cubes, there are many holes on final rendered object surfaces. If I set a smaller reduction ratio (e.g. 0.5), holes dissapeared, but the extreme large amount of triangles are also a problem. I learned from one of VTK examples that I should turn the 'PreserveTopology' feature on. So I did it, but results are still not satisfying. I don't know what's wrong with my code, is there any other features I should turn that on, or something else? Thanks a lot! Ben __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From zjzhang at ee.cuhk.edu.hk Mon May 7 12:53:33 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Tue, 8 May 2001 00:53:33 +0800 Subject: [vtkusers] error with the debug version of vtkdll.dll Message-ID: <000801c0d716$40c55360$1c23bd89@ee.cuhk.edu.hk> Dear all: I have built vtkdll.dll and vtkdll.lib in 2 directories, one is in c:\vtkbin\vtkdll and another is in c:\vtkbin\debug\vtkdll If I use the first one, when I debug , I can't trace into the vtk source code and if I use the second one I can trace into the source code of vtk classes, but there will be a fatal error when I teminate the application and then it will induce a blue screen error and I have to reset my pc. so can you give me some idea of what should I do? regards zj zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From schaffer at optonline.net Mon May 7 13:46:19 2001 From: schaffer at optonline.net (Les Schaffer) Date: Mon, 07 May 2001 13:46:19 -0400 Subject: [vtkusers] DLLs for VTK and Python 2.0 In-Reply-To: <15092.8080.407706.207010@monster.linux.in> References: <20010505054451.31653.qmail@web10005.mail.yahoo.com> <15091.44859.224997.241335@monster.linux.in> <15092.6587.531000.734023@gargle.gargle.HOWL> <15092.8080.407706.207010@monster.linux.in> Message-ID: <15094.57195.937000.308928@gargle.gargle.HOWL> Prabhu Ramachandran writes: : >>>>> "LS" == Les Schaffer writes: : : LS> i have DLLs built for Python 2.0 and will shortly be doing : LS> same for Python 2.1. : : LS> if anyone wants them, i will bundle and put up on the web. : : I am pretty sure that folks would like this. If you do put them up on : the web please announce the site on the VTK users list : also. I have put up a package of VTK DLLs at: http://folks.astrian.net/godzilla http://folks.astrian.net/godzilla/vtk-python20-dlls.zip I will replace this with DLLs for Python 2.1 some time by mid-week. let me know if there are problems. les schaffer From bayley at me.queensu.ca Mon May 7 14:11:37 2001 From: bayley at me.queensu.ca (Chris Bayley) Date: Mon, 07 May 2001 14:11:37 -0400 Subject: [vtkusers] Adding a VTK widget to a XMotif Application Message-ID: <3AF6E559.41D574E2@me.queensu.ca> Hello; I am having no end of grief trying to get add a VTK renderer into an Xmotif Application. I have followed the XMace example and later added to it to create two vtkXrenderwindows and all was well. Then I took this working code and embedded it into my application and changing my actors and now my XMotif Widgets won't draw and give me the following error message: Loading required GL library /usr/X11R6/lib/libGL.so.1.2.030400 X Error of failed request: BadWindow (invalid Window parameter) Major opcode of failed request: 19 (X_DeleteProperty) Resource id in failed request: 0x0 Serial number of failed request: 89 Current serial number in output stream: 95 The error is occuring after : // get the display connection and give it to the renderer display = XtDisplay(toplevel); SurfRenderX->SetDisplayId(display); //SurfRenderX is a pointer to vtkXRenderWindow depth = SurfRenderX->GetDesiredDepth(); vis = SurfRenderX->GetDesiredVisual(); col = SurfRenderX->GetDesiredColormap(); sprintf(label,"WeldScan %s",filename); //sprintf(label,"WeldScan"); toplevel2 = XtVaCreateWidget(label,topLevelShellWidgetClass, toplevel, XmNdepth, depth, XmNvisual, vis, XmNcolormap, col, NULL); form = XtVaCreateWidget("form",xmFormWidgetClass, toplevel2, NULL); Crashes at this point with the previous error. Please, can someone point me in right direction, I am really unclear what I'm doing wrong, this exact code worked fine in the XMace example. Any Help would sure be appreciated. Cheers Chris Bayley -------------- next part -------------- A non-text attachment was scrubbed... Name: bayley.vcf Type: text/x-vcard Size: 276 bytes Desc: Card for Chris Bayley URL: From kee at erdc.hpc.mil Mon May 7 15:05:57 2001 From: kee at erdc.hpc.mil (Kent Eschenberg) Date: Mon, 7 May 2001 14:05:57 -0500 Subject: [vtkusers] Adding a VTK widget to a XMotif Application In-Reply-To: <3AF6E559.41D574E2@me.queensu.ca> Message-ID: Hi Chris, Your error may have little to do with VTK. All I've ever been able to determine from that sort of X message is that "something is wrong"! First, make sure you have declared depth, vis and col correctly. If not, C may be converting the values from VTK to something else. Second, since X uses input and output buffers, you might learn a little more by putting in "XSync(display,0)" after every X call to flush the buffers. Third, you might try commenting out the calls to VTK before and after the code that crashes to determine if VTK is even involved with the problem. Before you do this, print the values returned by VTK for depth, vis and col; then, plug these values in yourself to the call to create toplevel2. Good luck! Kent - - - Kent Eschenberg kee at erdc.hpc.mil (601)634-4435 ERDC MSRC (DoD supercomputer center), Vicksburg, MS From karshi.hasanov at utoronto.ca Mon May 7 16:13:17 2001 From: karshi.hasanov at utoronto.ca (Karshi Hasanov) Date: Mon, 07 May 2001 16:13:17 -0400 Subject: [vtkusers] VTK_Python_NumPy Message-ID: <3AF701DD.768C512F@utoronto.ca> Hi, Does anybody knows how to import/export a Numeric Python array to a VTK image? Thanks. From dgobbi at irus.rri.on.ca Mon May 7 16:22:08 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 7 May 2001 16:22:08 -0400 (EDT) Subject: [vtkusers] VTK_Python_NumPy In-Reply-To: <3AF701DD.768C512F@utoronto.ca> Message-ID: On Mon, 7 May 2001, Karshi Hasanov wrote: > Hi, > > Does anybody knows how to import/export a Numeric Python > array to a VTK image? > Thanks. Look in vtk/python/ for the files vtkImageExportToArray.py vtkImageImportFromArray.py, you can either use them as-is or look inside them to see how it's done. - David From karlson at stu.mech.titech.ac.jp Mon May 7 20:25:27 2001 From: karlson at stu.mech.titech.ac.jp (Nikita Kojekine AKA Kitya Karlson) Date: Tue, 08 May 2001 09:25:27 +0900 Subject: [vtkusers] normals References: Message-ID: <3AF73CF7.5AB3DDD9@stu.mech.titech.ac.jp> Thank you for your answer. I would like to define normal to a point from a point cloud as an average normal on triangles, I would get, If I connect by triangles this point and it's nearest neighboors. Is there a Delaunay triangulation for 3D in vtk, how can I use it and than get this normals? > Hi Nikita, > > How do you define a normal for a point in a point cloud (vtkpoints)? > If you create a surface mesh (polydata) out of your point set, you could > use vtkPolyDataNormals and get the normals as pointdata attributes. > > Hope this helps > Sylvain > > On Mon, 7 May 2001, Nikita Kojekine AKA Kitya Karlson wrote: > > > Hello! > > I have a set of points vtkPoints, which represent the surface. > > Can I get for each point 2 points instead of it - one on -0.001 on > > normal > > from the original and one on +0.001? how can i get normal with vtk? > > Thank you. > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > From djn at elan.mad.adelaide.edu.au Mon May 7 22:57:15 2001 From: djn at elan.mad.adelaide.edu.au (David J. Netherway) Date: Tue, 08 May 2001 12:27:15 +0930 Subject: [vtkusers] iconify-raise-lower References: <3AEEA9EF.AA1619FF@elan.mad.adelaide.edu.au> Message-ID: <3AF7608B.E315B7AA@elan.mad.adelaide.edu.au> How do you iconify a vtkWindow from a tcl script? I gather from the lack of response to my previous post that my question was unclear, or it is too simple or too hard. Iconifying a tcl window is easy: wm inconify .windowName But I did not find a similar command for a vtkWindow although there are SetPosition and SetWindowName commands. MakeCurrent does not seem to raise the window. This is on a Windows2000 PC. Thanks, David "David J. Netherway" wrote: > How does one iconify, raise and lower vtkRenderWindows ? > > Thanks, David > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From karlson at stu.mech.titech.ac.jp Tue May 8 04:58:24 2001 From: karlson at stu.mech.titech.ac.jp (Nikita Kojekine AKA Kitya Karlson) Date: Tue, 08 May 2001 17:58:24 +0900 Subject: [vtkusers] How to get triangular mesh from reconstruction Message-ID: <3AF7B530.FBD51F68@stu.mech.titech.ac.jp> Hello! I use vtkSurfaceReconstructionFilter to make surface reconstruction. Afterwards I use vtkContourFilter to get the surface. How can I get afterwards it as a 3D triangular mesh, so that I can get setofdata=(vtkPolyData *)???->GetOutput(); vtkCellArray * cells = vtkCellArray::New(); cells = setofdata->GetPolys(); cells from it and points, and normals for cells? From S.D.Bulman at swansea.ac.uk Tue May 8 05:49:10 2001 From: S.D.Bulman at swansea.ac.uk (Simon Bulman) Date: Tue, 8 May 2001 10:49:10 +0100 Subject: [vtkusers] (no subject) Message-ID: <006a01c0d7a4$22ca8540$a8032c89@swan.ac.uk> Hi All, Could somebody whom has experience with the many contour filters provided with VTK give me an idea which is best to use for unstructured grids, taking into account speed, quality etc. Thanks Simon ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From zfknops at cs.uu.nl Tue May 8 08:46:52 2001 From: zfknops at cs.uu.nl (Zeger Knops) Date: Tue, 8 May 2001 14:46:52 +0200 Subject: [vtkusers] compiling VTK In-Reply-To: <3AF7608B.E315B7AA@elan.mad.adelaide.edu.au> Message-ID: I have dowloaded VTK 3.2 and used it for some time now. But now I've added my own class to apply a kernel on an image, but when I run the program I get the following error : ERROR: In F:\vtk-src-windows\imaging\vtkImageToImageFilter.h, line 116 vtkImageShrink3D (0x08AEAEBE8): LegacyHack was obsoleted for version "3.2" vtkImageShrink3D isn't the only class giving this error. How do I solve this?, or what am I doing wrong?. I use the Java VTK bindings on windows 2k. Even if I only recompile VTK I get the same errors. Greetz drs. Zeger Knops PhD student at Utrecht University From will.schroeder at kitware.com Tue May 8 09:21:39 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 08 May 2001 09:21:39 -0400 Subject: [vtkusers] How to prevent holes resulted from decimation? In-Reply-To: <20010507164532.11245.qmail@web509.mail.yahoo.com> References: <200105071600.MAA15116@public.kitware.com> Message-ID: <5.0.2.1.0.20010508091954.02641130@pop.nycap.rr.com> Hi Ben- Topological constraints limit the amount of decimation you can perform. You can't have it both ways. You might want to try vtkQuadricClustering and vtkQuadricDecimation as well. Will At 09:45 AM 5/7/2001 -0700, Ben Baojun Li wrote: >Hello everyone, > >I have a problem with the decimation. Since I have to use an extensive >decimation (.99 reduction ratio) following the marching cubes, there >are many holes on final rendered object surfaces. If I set a smaller >reduction ratio (e.g. 0.5), holes dissapeared, but the extreme large >amount of triangles are also a problem. I learned from one of VTK >examples that I should turn the 'PreserveTopology' feature on. So I did >it, but results are still not satisfying. > >I don't know what's wrong with my code, is there any other features I >should turn that on, or something else? > >Thanks a lot! > >Ben > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Auctions - buy the things you want at great prices >http://auctions.yahoo.com/ > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From jaume at tele.ucl.ac.be Tue May 8 09:39:12 2001 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Tue, 8 May 2001 15:39:12 +0200 (MEST) Subject: [vtkusers] normals In-Reply-To: <3AF73CF7.5AB3DDD9@stu.mech.titech.ac.jp> Message-ID: There is indeed a vtkDelaunay3D, but you will end up with tetrahedral mesh while you need a surface mesh (made of triangles). I would suggest to extract the triangles of the outer surface. I am not aware of a vtk filter doing that, but I'm sure someone else in the vtk community could help you with that. One you've got your surface mesh, simply use vtkPolyDataNormals in the following way: vtkPolyDataNormals *PDnormals = vtkPolyDataNormals::New(); PDnormals->SetInput(yourMesh); PDnormals->Update(); vtkNormals *normals = PDnormals->GetPointData()->GetNormals(); // then you can play around with the normals calling the method // to get normal for vertex with index i float *n = normals->GetNormal(i); That's as simple as that! ;-) Sylvain On Tue, 8 May 2001, Nikita Kojekine AKA Kitya Karlson wrote: > Thank you for your answer. I would like to define normal to a point from > a point cloud as an average normal on triangles, I would get, If I connect by triangles this > point and it's nearest neighboors. Is there a Delaunay triangulation for 3D in vtk, how can I use > it and than get this normals? > > > Hi Nikita, > > > > How do you define a normal for a point in a point cloud (vtkpoints)? > > If you create a surface mesh (polydata) out of your point set, you could > > use vtkPolyDataNormals and get the normals as pointdata attributes. > > > > Hope this helps > > Sylvain > > > > On Mon, 7 May 2001, Nikita Kojekine AKA Kitya Karlson wrote: > > > > > Hello! > > > I have a set of points vtkPoints, which represent the surface. > > > Can I get for each point 2 points instead of it - one on -0.001 on > > > normal > > > from the original and one on +0.001? how can i get normal with vtk? > > > Thank you. > > > > > > > > > > > > _______________________________________________ > > > This is the private VTK discussion list. > > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > From seb-ml-vtk at barre.nom.fr Tue May 8 16:09:41 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Tue, 08 May 2001 22:09:41 +0200 Subject: [vtkusers] Python 2.1 + VTK (CVS) + Windows... Anyone ? In-Reply-To: References: <3AF73CF7.5AB3DDD9@stu.mech.titech.ac.jp> Message-ID: <5.1.0.14.2.20010508220428.02428998@wheresmymailserver.com> Hi In order to match the (incoming) new VTK tree, I'm upgrading from Python 2.0 to Python 2.1. I had no pb until now with Python 2.0, but the CVS failed to build with 2.1, with the following errors : Creating library ..\lib/vtkpython.lib and object ..\lib/vtkpython.exp LINK : warning LNK4049: locally defined symbol "_PyVTKClass_Check" imported LINK : warning LNK4049: locally defined symbol "_PyArg_VTKParseTuple" imported [...] vtkpythonotherobjs.lib(vtkPythonUtil.obj) : error LNK2001: unresolved external s ymbol "__declspec(dllimport) const vtkPythonCommand::`vftable'" (__imp_??_7vtkP ythonCommand@@6B@) ..\lib/vtkpython.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'link.exe' : return code '0x460' Looks strange (once again, a dll export/import problem ?). I've checked the "What's new in Python 2.1", but I do not see any backward incompatibility at the moment :( http://www.amk.ca/python/2.1/ http://sourceforge.net/project/shownotes.php?release_id=31464 Thanks My conf : Windows 2000 SP1, Python 2.1 (binary install), latest VTK CVS From dgobbi at irus.rri.on.ca Tue May 8 16:24:57 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Tue, 8 May 2001 16:24:57 -0400 (EDT) Subject: [vtkusers] Python 2.1 + VTK (CVS) + Windows... Anyone ? In-Reply-To: <5.1.0.14.2.20010508220428.02428998@wheresmymailserver.com> Message-ID: Hi Sebastien, This is definitely a dll import/export problem. The issue is the VTK_EXPORT preprocessor symbol not being set correctly, or not being used to declare a class. Try editing vtkPythonUtil.h and changing class vtkPythonCommand : public vtkCommand to class VTK_EXPORT vtkPythonCommand : public vtkCommand I don't know why this error would have just appeared now. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Tue, 8 May 2001, Sebastien BARRE wrote: > Hi > > In order to match the (incoming) new VTK tree, I'm upgrading from Python > 2.0 to Python 2.1. > > I had no pb until now with Python 2.0, but the CVS failed to build with > 2.1, with the following errors : > > Creating library ..\lib/vtkpython.lib and object ..\lib/vtkpython.exp > LINK: warning LNK4049: locally defined symbol "_PyVTKClass_Check" imported > LINK: warning LNK4049: locally defined symbol "_PyArg_VTKParseTuple" imported > [...] > > vtkpythonotherobjs.lib(vtkPythonUtil.obj): error LNK2001: unresolved > external s > ymbol "__declspec(dllimport) const vtkPythonCommand::`vftable'" > (__imp_??_7vtkP > ythonCommand@@6B@) > ..\lib/vtkpython.dll: fatal error LNK1120: 1 unresolved externals > NMAKE: fatal error U1077: 'link.exe' : return code '0x460' > > > Looks strange (once again, a dll export/import problem ?). I've checked the > "What's new in Python 2.1", but I do not see any backward incompatibility > at the moment :( > http://www.amk.ca/python/2.1/ > http://sourceforge.net/project/shownotes.php?release_id=31464 > > Thanks > My conf : Windows 2000 SP1, Python 2.1 (binary install), latest VTK CVS > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From seb-ml-vtk at barre.nom.fr Tue May 8 16:32:56 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Tue, 08 May 2001 22:32:56 +0200 Subject: [vtkusers] Python 2.1 + VTK (CVS) + Windows... Anyone ? In-Reply-To: References: <5.1.0.14.2.20010508220428.02428998@wheresmymailserver.com> Message-ID: <5.1.0.14.2.20010508223218.0336c7f0@wheresmymailserver.com> Hi David, At 08/05/2001 16:24, David Gobbi wrote: >This is definitely a dll import/export problem. The issue is the >VTK_EXPORT preprocessor symbol not being set correctly, or not >being used to declare a class. > >Try editing vtkPythonUtil.h and changing > >class vtkPythonCommand : public vtkCommand > >to > >class VTK_EXPORT vtkPythonCommand : public vtkCommand Thanks, but this is already the case : // To allow Python to use the vtkCommand features class VTK_EXPORT vtkPythonCommand : public vtkCommand So I guess it's something else. From dgobbi at irus.rri.on.ca Tue May 8 16:47:29 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Tue, 8 May 2001 16:47:29 -0400 (EDT) Subject: [vtkusers] Python 2.1 + VTK (CVS) + Windows... Anyone ? In-Reply-To: <5.1.0.14.2.20010508223218.0336c7f0@wheresmymailserver.com> Message-ID: On Tue, 8 May 2001, Sebastien BARRE wrote: > At 08/05/2001 16:24, David Gobbi wrote: > > >class VTK_EXPORT vtkPythonCommand : public vtkCommand > > Thanks, but this is already the case : > > So I guess it's something else. You're right -- I just checked CVS and Ken Martin made this change last Thursday. Check to see which .dll the vtkPythonUtil.o file is linked into and figure out which of dllexport or dllimport is the appropriate declspec. If it is linked into vtkpython.dll (rather than vtkdll.dll) then perhaps the VTK_EXPORT shouldn't be there. - David From hsalasr at prodigy.net.mx Wed May 9 02:05:21 2001 From: hsalasr at prodigy.net.mx (Hector Salas Rodriguez) Date: Wed, 09 May 2001 01:05:21 -0500 Subject: [vtkusers] vtk build Message-ID: <000e01c0d84e$092bfba0$deb8e994@prodigy.net.mx> Hi... I did a succeful building of vtkdll with Borland C++ Builder 5.5 Free Commnad-Line Tools, but i can't link any example or test program with this tools. The Borland Linker tools always return this error: "Unresolved external reference xxxx from module yyyy.obj" where xxxx is a vtk class method and yyyy.obj is the object module of the test program. Can some body help me? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From yidingr at cim.mcgill.ca Wed May 9 11:13:19 2001 From: yidingr at cim.mcgill.ca (Dingrong Yi) Date: Wed, 9 May 2001 11:13:19 -0400 (EDT) Subject: [vtkusers] (no subject) Message-ID: Dear vtk users: I want to move a small object, say a 3D cone, within a complex but static 3D image. As it takes much long time to re-render the whole image and it is not necessary to do so. So my question is : Is it possible that to keep the static image on the screen, while only render the parts that is changed? More specific, here only the cone is moving with the cursor, only re-render the cone but not the whole window->Render()? I heard something of modifying part of the frame buffer, but not details on this. Any suggestion are highly appreciated. With regards Dingrong Yi From mbell at coventor.com Wed May 9 13:15:37 2001 From: mbell at coventor.com (Michael Bell) Date: Wed, 9 May 2001 13:15:37 -0400 Subject: [vtkusers] Java / VTK problems Message-ID: vtkgurus, I, and others have posted a few messages about problems that occur when using java under vtk. An example of the issue is: 1. Set up a scene 2. On every mouse click, change the color of an actor with actor.GetProperty().SetColor(...) 3. Intermittently, actor.GetProperty() returns null (not limited to GetProperty(). In general, members of a class become null randomly). With the help of others, I can say that 1. This problem does not occur in unix 2. This problem does not occur in C++ with nearly identical code Does anyone, especially a vtk developer, have any information about solutions or workarounds? Have you even run into this problem before? It sounds like a garbage collection issue to me. Could it be a JNI issue unrelated to VTK? Please help; this is a showstopping problem. Thanks, michael From jeff at cdnorthamerica.com Wed May 9 13:40:14 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 09 May 2001 13:40:14 -0400 Subject: [vtkusers] Java / VTK problems References: Message-ID: <3AF980FE.ED2F5F1A@cdnorthamerica.com> Perhaps some code would be in order? I can say from experience that if you are manually deleting vtk objects in java, bad things will happen because of the recent implementation of weak-references in the vtk JNI. I have not had any experiences like yours, however, but I could look at your code. What version of vtk? Michael Bell wrote: > vtkgurus, > > I, and others have posted a few messages about problems that occur when > using java under vtk. An example of the issue is: > > 1. Set up a scene > 2. On every mouse click, change the color of an actor with > actor.GetProperty().SetColor(...) > 3. Intermittently, actor.GetProperty() returns null (not limited to > GetProperty(). In general, members of a class become null randomly). > > With the help of others, I can say that > 1. This problem does not occur in unix > 2. This problem does not occur in C++ with nearly identical code > > Does anyone, especially a vtk developer, have any information about > solutions or workarounds? Have you even run into this problem before? It > sounds like a garbage collection issue to me. Could it be a JNI issue > unrelated to VTK? Please help; this is a showstopping problem. > > Thanks, > michael > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.on.ca Wed May 9 16:37:25 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 9 May 2001 16:37:25 -0400 (EDT) Subject: [vtkusers] vtkImageReslice changes Message-ID: Hi Everyone, I've made most of the changes I've planned for vtkImageReslice and hope to be able to commit the changes soon. I'm providing a preview here so that people can give feedback. 1) First, the OutputAlwaysCenteredOnInput option is gone. Where people used to use it, they should instead use the new (not yet committed) vtkImageChangeInformation class to modify the data Origin in order to center their image: vtkImageChangeInformation centerImage centerImage SetInput [whatever GetOutput] centerImage CenterImageOn vtkTransform transform transform RotateZ 45 vtkImageReslice reslice reslice SetTransform transform reslice SetInput [centerImage GetOutput] I think that this should satisfy any people who are currently using OutputCenteredOnInput, particularly because not only will rotation and scale occur as most people will expect (i.e. about the center of the image) but translation will as well. 2) Next, the whole system by which the default Extent, Origin and Spacing of the output were chosen has been overhauled. Previously the defaults were generally not useful to people, and I was continuously telling everyone to explicitly set the OutputSpacing, OutputExtent and OutputOrigin. Hopefully this will no longer be necessary (and everyone who listened to me will have 100% backwards compatibility). 3) I've done some tweaking to the interface to make the interface as task-centric as possible. Previously my goal was to have the interface as abstract and general as possible, but .. um .. most VTK users are not as abstract as I am. The tasks that I've identified are: a) standard photoshop-style rotation, scale and translation (i.e. where people don't give a darn about voxel spacings or origins or weird stuff like that -- a voxel is a voxel dammit!) b) resampling of data sets for e.g. image registration or overlay, where voxel spacing & origin are all-important -- this includes the application of warp transformations to the image c) extraction of arbitrary slices from a volume, which can be easily used in conjunction with a) or b) above or simply by iself To facilitate b) above, there is a new method called SetInformationInput(anotherImage) that allows you to resample one image so that it has the same origin, extent and spacing as another image. To facilitate c) above, I've added convenient methods for specifying the orientation of the slice that you want to extract via a set of direction cosines, and for specifying the position of the slice via a translation vector. This was already possible via the ResliceAxes, but it was a little hard for people to figure out the best way to do it. ________ That covers most of the changes. Any comments are welcome. I hope to have it ready to commit soon. I can send the .h file to anyone who wants more detailed info. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario From jnorris at csar.uiuc.edu Wed May 9 17:22:11 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Wed, 9 May 2001 16:22:11 -0500 Subject: [vtkusers] Suggested compile-time option Message-ID: <20010509162211.A20468@gagarin.csar.uiuc.edu> Hi all, When I'm compiling my app for release, I always call wxObject::GlobalWarningDisplayOff(). Since this makes all the strings passed to vtkWarningMacro and vtkErrorMacro so much wasted space, I've taken to adding VTK_WARNING_ALWAYS_OFF, and using it to define vtkWarningMacro and vtkErrorMacro (a la VTK_LEAN_AND_MEAN and vtkDebugMacro). Under Solaris 2.7 using CC 5.0, this reduces the size of libVTKCommon.a, libVTKGraphics.a, and libVTKImaging.a by over 1.7 MB total (from a total of 11,919 KB to 10,111 KB). This represents a reduction in size of just over 15%. I don't know how many other programmers routinely call wxObject::GlobalWarningDisplayOff() in their release builds, but if there are enough of us, it might be worthwhile to make VTK_WARNING_ALWAYS_OFF a part of VTK. Just a suggestion, John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From schaffer at optonline.net Wed May 9 18:34:51 2001 From: schaffer at optonline.net (Les Schaffer) Date: Wed, 09 May 2001 18:34:51 -0400 Subject: [vtkusers] DLLs for VTK and Python 2.1 Message-ID: <15097.50699.328000.48304@gargle.gargle.HOWL> I have put up a package of VTK DLLs for Python 2.1 at: http://folks.astrian.net/godzilla http://folks.astrian.net/godzilla/vtk-python21-dlls.zip the tcl dll is linked with tcl/tk 8.3.2. included in the python dlls are the vtkTkRenderWidget.dll and kin. i'd like to get the wxPython vtk widget working and packaged at some point too. let me know if there are problems and if there is a need for a self-installer or whatever its called. thanks to sebastien and prabhu and david gobbi for advice in compiling/packaging. les schaffer From strelitz at lanl.gov Wed May 9 19:30:20 2001 From: strelitz at lanl.gov (Richard Strelitz) Date: Wed, 9 May 2001 17:30:20 -0600 Subject: [vtkusers] vtkFeatureEdges Message-ID: Has anyone modified or extended vtkFeatureEdges such that [for 2D] the points and lines returned as output can be traversed as a (series of) closed loop(s). In effect, I wish to convert a disjoint series of line segments into a smaller series of polylines. It would be useful, and soon will be essential, that I be able to extend this to 3 dimensions, a visit-once traversal of a closed polyhedra. I would appreciate any suggestions, code, or pointers. I am in the throes of testing a version, but I am more than open to alternatives. Richard Strelitz Vis Team, LANL work 505 665 7746 From prabhu at aero.iitm.ernet.in Thu May 10 04:10:05 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 10 May 2001 13:40:05 +0530 (IST) Subject: [vtkusers] DLLs for VTK and Python 2.1 In-Reply-To: <15097.50699.328000.48304@gargle.gargle.HOWL> References: <15097.50699.328000.48304@gargle.gargle.HOWL> Message-ID: <15098.19677.601897.762390@monster.linux.in> hi, >>>>> "LS" == Les Schaffer writes: LS> i'd like to get the wxPython vtk widget working and packaged LS> at some point too. You dont need to do much to get wxPython and vtk working together. There is already a vtk widget (wxPython/lib/vtk.py) that works (but it has lots of bugs) and a new and improved version is being worked on currently. As soon as I know that the new version works okay on Windows I will submit it to Robin for inclusion with wxPython. Thanks a lot for your efforts! regards, prabhu From j.stifter at medres.ch Thu May 10 05:27:17 2001 From: j.stifter at medres.ch (Jan Stifter) Date: Thu, 10 May 2001 11:27:17 +0200 Subject: [vtkusers] ApplyProperties in vtkAssembly Message-ID: dear vtkusers, In http://www.kitware.com/vtkhtml/vtkdata/html/class_vtkactor.html is described: void vtkActor::ApplyProperties () [inline, virtual] Apply the current properties to all parts that compose this actor. This method is overloaded in vtkAssembly to apply the assemblies' ... ^^^^^^^^^^^ Where is ApplyProperties in vtkAssembly? I can not find it. It is not in the documentation nor in the .cpp/.h file. thanks jan From salgado at lncc.br Thu May 10 11:02:36 2001 From: salgado at lncc.br (Salgado) Date: Thu, 10 May 2001 12:02:36 -0300 Subject: [vtkusers] mfc problem Message-ID: <3.0.1.32.20010510120236.00f43d08@pop.lncc.br> Hi All, I'm testing VTK with MFC (Visual C++ 6.0) running with Windows 2000. Every time I tested the sample program I got an error. I tested with the official version (3.2) and with the nightly version with the same results. This is the problem: When I open some files, I can see the results. But when I close some of the files, I get the following message: Sample - DEC.vtk: Sample.exe - Application Error The instruction at "0x104c17fc" referenced at "0x000000d0". The memory could not be "read". Can someone help me? Many thanks, Salgado. From laurent.cornabe at laseyne.principia.fr Thu May 10 12:05:42 2001 From: laurent.cornabe at laseyne.principia.fr (CORNABE Laurent) Date: Thu, 10 May 2001 16:05:42 +0000 Subject: [vtkusers] Generate vtk files with BYU files Message-ID: <3AFABC56.58024A89@laseyne.principia.fr> Hi, Like AllWriters.tcl example, I want to generate vtk files with BYU files data. (*.g, *.s, *.d) How I can do it in C++ (methods, include). Maybe with vtkWriter, but I don't find good methods. Thank you for your help. Laurent CORNABE ------------- PRINCIPIA RD France From tjligocki at lbl.gov Thu May 10 10:38:52 2001 From: tjligocki at lbl.gov (Terry J. Ligocki) Date: Thu, 10 May 2001 07:38:52 -0700 Subject: [vtkusers] 3D axes... Message-ID: <3AFAA7FC.39123FA8@lbl.gov> I would like to display 3D axes in a given rendering window which do not translate or scale but do rotate as the scene is interacted with (via one of the provided C++ or Tcl interactor codes provided with the VTK distribution). I would be happy to modify the interactor I'm using to facilitate this but I was hoping someone else might have tackled this problem already and might have some suggestions (or code, :-). Basically, I want a representation of the orientation which always stays visible and a constant (small) size in one corner of the rendering window to orient the user. I have found similar questions asked in the VTK e-mail archive but I haven't found any posted solutions which answer this question. One answer indicates how to add 3D axes (via vtkAxes) but they will translate and scale with the scene/camera movement and this isn't what I need. Thank-you for any suggestions or information. I will post a summary to the group of any helpful responses and/or any success with this... Terry J. (Ligocki, tjligocki at lbl.gov) From daeuber at ira.uka.de Thu May 10 11:04:43 2001 From: daeuber at ira.uka.de (=?iso-8859-1?Q?Sascha_D=E4uber?=) Date: Thu, 10 May 2001 17:04:43 +0200 Subject: AW: [vtkusers] Hystogram In-Reply-To: <002201c02976$ddcf3d40$84031c97@kfvtiuml> Message-ID: <003501c0d962$8b875b20$40070d81@ira.uka.de> vtkImageAccumulate regards Sascha -------------- next part -------------- An HTML attachment was scrubbed... URL: From graphix at iastate.edu Thu May 10 12:02:22 2001 From: graphix at iastate.edu (Kent Vander Velden) Date: Thu, 10 May 2001 11:02:22 CDT Subject: [vtkusers] Windows, latest VTK Snapshot, and Unresolved Symbols Message-ID: <200105101602.LAA26707@isua5.iastate.edu> Using the latest VTK (as of a couple of days ago) snapshot under Windows I get messages such as the following at link time in Visual C++: pdb_viewer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkViewport::RemovePropW(class vtkProp *)" (__imp_?RemovePropW at vtkViewport@@QAEXPAVvtkProp@@@Z) This message is directly connected to this line in the software: renderer_->RemoveActor(actor_); where renderer_ is a vtkRenderer* and actor_ is a vtkActor*. I do not see this link problem under Linux. Also, when I remove this line the program links without errors. Any ideas why I might be getting this error? Thanks. --- Kent Vander Velden kent at iastate.edu From graphix at iastate.edu Thu May 10 12:06:56 2001 From: graphix at iastate.edu (Kent Vander Velden) Date: Thu, 10 May 2001 11:06:56 CDT Subject: [vtkusers] Re: mfc problem Message-ID: <200105101606.LAA27403@isua5.iastate.edu> >Sample - DEC.vtk: Sample.exe - Application Error >The instruction at "0x104c17fc" referenced at "0x000000d0". The memory >could not be "read". I get a similar message with just about any vtk app. In my situation the problem seems to be connected to the Voodoo3500 drivers that I am using. If I turn off some of the acceleration then I do not see the failure message. Hope this helps. --- Kent Vander Velden kent at iastate.edu From guimond at bwh.harvard.edu Thu May 10 13:59:21 2001 From: guimond at bwh.harvard.edu (Alexandre Guimond) Date: 10 May 2001 13:59:21 -0400 Subject: [vtkusers] vtkLandmarkTransform & affine transformation (patch file) Message-ID: Hi there. I was suprised to see that vtkLandmarkTransform didn't compute affine transforms. Maybe that's part of another class? Whatever the reason is, I though it might be nice to include it in there, and here is a patch file that does so, if anyone is interested. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: diff URL: -------------- next part -------------- -- Alexandre Guimond, Ph.D. guimond at bwh.harvard.edu Phone:(617) 278-0800 http://spl.bwh.harvard.edu:8000/~guimond/ Fax:(617) 264-5154 Brigham and Women's Hospital, Harvard Medical School CNI, RF396, 221 Longwood Av, Boston, MA 02115 From dgobbi at irus.rri.on.ca Thu May 10 14:31:23 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Thu, 10 May 2001 14:31:23 -0400 (EDT) Subject: [vtkusers] vtkLandmarkTransform & affine transformation (patch file) In-Reply-To: Message-ID: I can add this patch. The reason it wasn't added before was just basic human laziness, I suppose (or another way of looking at it is, why not wait until someone asks for it?) But since you're using it... in it goes. Building a regression test for it should be straightforward. BTW I haven't done any work on the 'transform source' problem we discussed before. I still think it is a very good idea, but I'm not sure what the best way to implement it is. I've almost convinced myself that transform objects themselves should be sources, and the matrix, grid, or whatever actually stores the information should be data. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On 10 May 2001, Alexandre Guimond wrote: > Hi there. I was suprised to see that vtkLandmarkTransform didn't > compute affine transforms. Maybe that's part of another class? > Whatever the reason is, I though it might be nice to include it in > there, and here is a patch file that does so, if anyone is interested. > > From prabhu at aero.iitm.ernet.in Thu May 10 14:50:11 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 11 May 2001 00:20:11 +0530 (IST) Subject: [vtkusers] 3D axes... In-Reply-To: <3AFAA7FC.39123FA8@lbl.gov> References: <3AFAA7FC.39123FA8@lbl.gov> Message-ID: <15098.58083.738599.891579@monster.linux.in> hi, >>>>> "TJL" == Terry J Ligocki writes: TJL> I would like to display 3D axes in a given rendering window TJL> which do not translate or scale but do rotate as the scene is TJL> interacted with (via one of the provided C++ or Tcl TJL> I have found similar questions asked in the VTK e-mail TJL> archive but I haven't found any posted solutions which answer TJL> this question. One answer indicates how to add 3D axes (via TJL> vtkAxes) but they will translate and scale with the TJL> scene/camera movement and this isn't what I need. This reply also isnt an answer your question but maybe you should take a look at the vtkCubeAxesActor2D.h in the contrib directory. It may just be useful. prabhu From aburry at igotechnologies.com Thu May 10 18:09:06 2001 From: aburry at igotechnologies.com (Adam D. Burry) Date: Thu, 10 May 2001 15:09:06 -0700 Subject: [vtkusers] convert vtkRectilinearGrid to vtkStructuredGrid Message-ID: <3AFB1182.152FCE82@igotechnologies.com> Hi: I've got an easy question for all the experts here. What is the best (simple/efficient) way to convert a vtkRectilinearGrid to a vtkStructuredGrid? Is there a simple way to sample, for example? For example, if I had 1) a bunch of pixmap/bitmap/image/tiff (pick your favourite format) files 2) pixel (0,0) in image 1 is directly over pixel (0,0) in image 2, etc. 3) and the images are separated by some spacing, say 5 - 10 mm (sound like CT data?) I could read that into a vtkRectilinearGrid (somehow?), but then how do I convert that to a vtkStructuredGrid so that I can see arbitrary slices? If possible, could you include pseudo code in your answer? Or point to an example that does exactly what I'm asking? Thank you very much. Adam -- Adam Burry aburry at igotechnologies.com From heiland at ncsa.uiuc.edu Thu May 10 15:58:36 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Thu, 10 May 2001 14:58:36 -0500 Subject: [vtkusers] office data fields Message-ID: <1010510145836.ZM11893@sangamon.ncsa.uiuc.edu> Anyone happen to know what all those scalar fields in the office dataset are? I tried to find Ludwig Besse's email via VTK search and web search, but came up empty. --Randy From d_sedat at hotmail.com Thu May 10 17:39:53 2001 From: d_sedat at hotmail.com (Sedat DOGAN2) Date: Fri, 11 May 2001 00:39:53 +0300 Subject: [vtkusers] (no subject) Message-ID: Dear friends, I know that VTK writes TIFF files. But I want to be aure that if VTK reads TIFF files. If the answer ii yes for my question, could anyone explain me how to read TIFF files? Thanks for all of you. Best Regards Sedat DOGAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From quoc-cuong.pham at creatis.insa-lyon.fr Fri May 11 04:45:20 2001 From: quoc-cuong.pham at creatis.insa-lyon.fr (Quoc-Cuong PHAM) Date: Fri, 11 May 2001 09:45:20 +0100 Subject: [vtkusers] help !! trying to remove cells from unstructured grid Message-ID: <3AFBA6A0.45A5846A@creatis.insa-lyon.fr> Dear Vtk-users, I would like to remove cells from unstructured grid (tetrahedral mesh). I know how to pick one cell and get the Id of the cell; is there any procedure to delete this cell and update the display? Could anyone help me with this? Quoc Cuong Pham -- Quoc Cuong PHAM CREATIS, UMR CNRS 5515, INSA de Lyon - Bat Blaise Pascal 69621 Villeurbanne Cedex, France Phone : +33 (0)4 72 43 88 63 +33 (0)4 72 43 62 06 Fax : +33 (0)4 72 43 85 26 email : qcpham at creatis.insa-lyon.fr URL : http://www.creatis.insa-lyon.fr From vtk at helios.tel.uva.es Fri May 11 06:34:42 2001 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Fri, 11 May 2001 12:34:42 +0200 (CEST) Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 Message-ID: Hello dear users, we're buying some workstations to perform mainly computer graphics (VTK) and image analysis. We are doubting between two SUN workstations: * Sun Blade 100 with 3*256 MB RAM and Expert 3D Lite graphics card. * Sun Ultra 10 with 2*256 MB RAM and Elite 3D m6 graphics card. If anybody has any experience with any of these workstations, or anybody knows which one is better for our purposes it would help us to make a decission. Thank you very much in advance. -- ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ From c.p.botha at its.tudelft.nl Fri May 11 06:48:49 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Fri, 11 May 2001 12:48:49 +0200 Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 In-Reply-To: ; from vtk@helios.tel.uva.es on Fri, May 11, 2001 at 12:34:42PM +0200 References: Message-ID: <20010511124849.B2690@dutidad.twi.tudelft.nl> For interest's sake, why aren't you buying cheap PCs with NVidia graphics cards? They seem to be VERY cost-effective workstations... On Fri, May 11, 2001 at 12:34:42PM +0200, Miguel Angel Martin Fernandez wrote: > we're buying some workstations to perform mainly computer graphics > (VTK) and image analysis. We are doubting between two SUN workstations: > > * Sun Blade 100 with 3*256 MB RAM and Expert 3D Lite graphics > card. > * Sun Ultra 10 with 2*256 MB RAM and Elite 3D m6 graphics card. -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From vtk at helios.tel.uva.es Fri May 11 07:23:37 2001 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Fri, 11 May 2001 13:23:37 +0200 (CEST) Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 In-Reply-To: <20010511124849.B2690@dutidad.twi.tudelft.nl> Message-ID: We have PC's but now we'd like to have also some SUN boxes with Unix. Miguel. On Fri, 11 May 2001, Charl P. Botha wrote: > For interest's sake, why aren't you buying cheap PCs with NVidia graphics > cards? They seem to be VERY cost-effective workstations... > > On Fri, May 11, 2001 at 12:34:42PM +0200, Miguel Angel Martin Fernandez wrote: > > we're buying some workstations to perform mainly computer graphics > > (VTK) and image analysis. We are doubting between two SUN workstations: > > > > * Sun Blade 100 with 3*256 MB RAM and Expert 3D Lite graphics > > card. > > * Sun Ultra 10 with 2*256 MB RAM and Elite 3D m6 graphics card. > > -- ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ From c.p.botha at its.tudelft.nl Fri May 11 07:27:51 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Fri, 11 May 2001 13:27:51 +0200 Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 In-Reply-To: ; from vtk@helios.tel.uva.es on Fri, May 11, 2001 at 01:23:37PM +0200 References: <20010511124849.B2690@dutidad.twi.tudelft.nl> Message-ID: <20010511132751.G2690@dutidad.twi.tudelft.nl> On Fri, May 11, 2001 at 01:23:37PM +0200, Miguel Angel Martin Fernandez wrote: > We have PC's but now we'd like to have also some SUN boxes with Unix. With what motivation? That's quite a huge price difference to be justified by "would like to have" only... :) -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From vtk at helios.tel.uva.es Fri May 11 07:33:45 2001 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Fri, 11 May 2001 13:33:45 +0200 (CEST) Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 In-Reply-To: <20010511132751.G2690@dutidad.twi.tudelft.nl> Message-ID: The new Sun Blade is not very expensive. It's under 1K$ (without screen), and it's a 64 bits system. On Fri, 11 May 2001, Charl P. Botha wrote: > On Fri, May 11, 2001 at 01:23:37PM +0200, Miguel Angel Martin Fernandez wrote: > > We have PC's but now we'd like to have also some SUN boxes with Unix. > > With what motivation? That's quite a huge price difference to be justified > by "would like to have" only... :) > > -- ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ From dgobbi at irus.rri.on.ca Fri May 11 09:07:03 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 11 May 2001 09:07:03 -0400 (EDT) Subject: [vtkusers] Sun Blade 100 vs. Ultra 10 In-Reply-To: <20010511124849.B2690@dutidad.twi.tudelft.nl> Message-ID: On Fri, 11 May 2001, Charl P. Botha wrote: > For interest's sake, why aren't you buying cheap PCs with NVidia graphics > cards? They seem to be VERY cost-effective workstations... The nVidia graphics cards are not very good for rendering detailed geometry, which is what most people use VTK for. From what I've seen, the SGI Cobalt & the Sun Elite graphics beat nVidia hands down when hundreds of thousands of polygons are involved. And, as Miguel pointed out, just because it is a Sun doesn't mean it's overly expensive - nVidia Quadro II card's aren't cheap, either. We use nVidia cards almost exclusively, because 90% of our rendering is done via textures. I don't think that this is typical of most VTK users. - David > On Fri, May 11, 2001 at 12:34:42PM +0200, Miguel Angel Martin Fernandez wrote: > > we're buying some workstations to perform mainly computer graphics > > (VTK) and image analysis. We are doubting between two SUN workstations: > > > > * Sun Blade 100 with 3*256 MB RAM and Expert 3D Lite graphics > > card. > > * Sun Ultra 10 with 2*256 MB RAM and Elite 3D m6 graphics card. > > From aburry at igotechnologies.com Fri May 11 14:56:28 2001 From: aburry at igotechnologies.com (Adam D. Burry) Date: Fri, 11 May 2001 11:56:28 -0700 Subject: [vtkusers] RE: convert vtkRectilinearGrid to vtkStructuredGrid Message-ID: <3AFC35DC.64696FA0@igotechnologies.com> Hi: Answering my own question. In fact, the answer came by way of e-mail from another VTK user. The problem is that vtkRectilinearGrid naturally describes my data. However, it appears that vtkRectilinearGrid has been misplaced in the VTK class hierarchy and there is not much support for doing stuff with it. Therefore, I need to use another data structure. The key fact that I was missing is that vtkRectilinearGrid is conceptually a sub-class of vtkStructuredGrid. It is just not implemented that way (why???). The conversion from the specialized type (vtkRectilinearGrid) to the more general type (vtkStructuredGrid) is straight forward (although not as straight forward as it would be if the hierarchy was done right). The trick is to somehow get the data out of the vtkRectilinearGrid in the form of vtkPoints so that you can call vtkStructuredGrid::SetPoints(). I'm still looking for pseudo-code for that process. Adam -- Adam Burry aburry at igotechnologies.com From pushkare at students.uiuc.edu Fri May 11 12:54:26 2001 From: pushkare at students.uiuc.edu (Gala'Vi and Liss @ Mainframe Country) Date: Fri, 11 May 2001 11:54:26 -0500 (CDT) Subject: [vtkusers] DarwinOS and VTK Message-ID: Hello VTK users, I'm trying to compile VTK 3.1.2 for Darwin operating system, which is MacOS 10 and basically has a BSD core with a GNU environment. Don't ask me why I'm doing this. I know it's more than somewhat retarded. The compiler barfs because Darwin is missing a dynamic loader library. Does anyone know where I could possibly get that library? TIA -- Wind NCSA, UIUC //*********************************************** -- There is always a way, you just have to find it. (B.Hambly "Children Of The Jedi") //*********************************************** From berk.geveci at kitware.com Fri May 11 13:27:11 2001 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 11 May 2001 13:27:11 -0400 Subject: [vtkusers] RE: convert vtkRectilinearGrid to vtkStructuredGrid References: <3AFC35DC.64696FA0@igotechnologies.com> Message-ID: <3AFC20EF.A9835423@kitware.com> > The key fact that I was missing is that vtkRectilinearGrid is > conceptually a sub-class of vtkStructuredGrid. It is just not > implemented that way (why???). Efficiency. Space. vtkRectilinearGrid uses less memory and is faster. Otherwise there would be no reason why a separate class for rectilinear grid should exist. If you don't care about these, you can use vtkStructuredGrid instead. > The conversion from the specialized type (vtkRectilinearGrid) to the > more general type (vtkStructuredGrid) is straight forward (although not > as straight forward as it would be if the hierarchy was done right). The > trick is to somehow get the data out of the vtkRectilinearGrid in the > form of vtkPoints so that you can call vtkStructuredGrid::SetPoints(). > You will have to compute all the points yourself. You can get the points along each axis of the rectilinear grid with GetXCoordinates(), GetYCoordinates() ... Afterwards, you need to generate the points using these. As an alternative, you can use vtkRectilinearGridGeometryFilter to do this. Here is an example: vtkFloatArray co co SetNumberOfTuples 3 co SetValue 0 0.5 co SetValue 1 2.0 co SetValue 2 5.0 vtkRectilinearGrid rg rg SetDimensions 3 3 3 rg SetXCoordinates co rg SetYCoordinates co rg SetZCoordinates co vtkRectilinearGridGeometryFilter rggf rggf SetInput rg rggf Update puts stdout [[rggf GetOutput] GetNumberOfPoints] puts stdout [[rggf GetOutput] GetPoint 5] However note that this filter generates polydata. You will have to get the points from this and put them into a vtkStructuredGrid. A filter to convert rectilinear grid to structured grid would be somewhat useful. Maybe someone will add it in the future. Berk From ystarrev at uwo.ca Fri May 11 13:26:29 2001 From: ystarrev at uwo.ca (Yves Starreveld) Date: Fri, 11 May 2001 13:26:29 -0400 Subject: [vtkusers] DarwinOS and VTK In-Reply-To: Message-ID: <200105111726.f4BHQGZ17680@pony.its.uwo.ca> Hi, I recently committed all the files necessary to build vtk on osx using the quartz windowing system. You will need to use cvs to get the latest vtk source distribution. In the macintosh directory, there is a readme and a set of makefiles & configure script which you need to copy to their correct places. Then its just ./configure --with-quartz and make Others have had success, so it appears to work. Yves On Friday, May 11, 2001, at 12:54 PM, Gala'Vi and Liss @ Mainframe Country wrote: > > Hello VTK users, > > I'm trying to compile VTK 3.1.2 for Darwin operating system, which is > MacOS 10 and basically has a BSD core with a GNU environment. Don't ask > me > why I'm doing this. I know it's more than somewhat retarded. > > The compiler barfs because Darwin is missing a dynamic loader library. > Does anyone know where I could possibly get that library? > > TIA > > -- Wind > NCSA, UIUC > > //*********************************************** > -- There is always a way, > you just have to find it. > (B.Hambly "Children Of The Jedi") > //*********************************************** > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From will.schroeder at kitware.com Fri May 11 14:09:44 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 11 May 2001 14:09:44 -0400 Subject: [vtkusers] How to prevent holes resulted from decimation? In-Reply-To: <20010510210601.21600.qmail@web512.mail.yahoo.com> References: <5.0.2.1.0.20010508091954.02641130@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20010511140413.021d0350@pop.nycap.rr.com> Hi Ben- There is a big difference in the data. A face is relatively smooth and flat compared to your lung which seems to be heavily aliased with many sharp edges. The sharp edges are limiting what can be decimated, Try either 1) pre-smooth the data (vtkSmoothPolyDataFilter or vtkWindowedSincPolyDataFilter) 2) set the feature angle in the decimator to a high value (>90 degrees) You can also post-smooth the data with good results. Will From yexiangmo at yahoo.com Sat May 12 12:54:43 2001 From: yexiangmo at yahoo.com (yexiang Mo) Date: Sat, 12 May 2001 09:54:43 -0700 (PDT) Subject: [vtkusers] (no subject) Message-ID: <20010512165443.16217.qmail@web10005.mail.yahoo.com> I am new to VTK and need some helps on 2D view. I need to show a stack of image on 2D view window. A regular window can not show all the image on screen. So I try to make the view window scrollable. However, I find the VTK always shift the image position back whenever I try to scroll the window. In other word,in some place of VTK, they overwrite the "OnScrolling" message sent by MFC right after swapping iamge buffer. Anyone had this experience? How do I modify the code to handle this? Thanks. Y.Mo __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From maurey at ctcinternet.cl Sat May 12 17:46:01 2001 From: maurey at ctcinternet.cl (Mauricio Reyes) Date: Sat, 12 May 2001 15:46:01 -0600 Subject: [vtkusers] vtkScalars doubt from C++ to Tcl Message-ID: <3AFDAF19.5B26855B@ctcinternet.cl> Hi vtkUsers!! First of all I want to thank to all the people who help me when I ask some questions (in the beginning some very stupids questions :) ). Because of your help I could finish my thesis to get the title of engineer...so, thanks a lot. Now I am trying to help a friend who is working with Caos. I remembered that there is an example of lorenz attractor...it is in C++ so, I started with the "translation" to Tcl. At this line I have a problem with the "translation".. vtkScalars *scalars = vtkScalars::New(VTK_SHORT); s = ((vtkShortArray *)scalars->GetData())->WritePointer(0,numPts); I have: vtkScalars scalars set s [scalars SetNumberOfScalars $numPts] Is that equivalent??? (when I run the script I just receive a blank window) also I have a little doubt about this: is s[i] = 0 is equivalent to set [lindex $s $i] 0 ?? Expecting someone could help me, Regards, Mauricio Reyes From krs at zappa.uncc.edu Sun May 13 01:11:05 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Sun, 13 May 2001 01:11:05 -0400 Subject: [vtkusers] vtkPicker.. Message-ID: <3AFE1769.9338E507@mail.cs.uncc.edu> The documentation for vtkPicker says that the the actor or prop closest to the camera that was intersected is returned. But I only see methods that return the list of Actors (and another method to return the list of Prop3Ds - what is the difference?), which are not in sorted order. I am implementing picking and need to get the closest object hit. I also agree with an earlier post on picking actors; it would be very convenient to have a way of attaching user data with an actor. For instance, in my application, only some of the actors are pickable and I would like to attach some user data that would be useful in identifying the actor that was picked. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From lorensen at crd.ge.com Sun May 13 09:27:31 2001 From: lorensen at crd.ge.com (Lorensen, William E (CRD)) Date: Sun, 13 May 2001 09:27:31 -0400 Subject: [vtkusers] office data fields Message-ID: I'm sure Ludwig is enjoying his retiremnet in the Alps... If I recall, the data came from a package called Phoenix. Will Schroeder may know more about it. Bill -----Original Message----- From: Randy Heiland [mailto:heiland at ncsa.uiuc.edu] Sent: Thursday, May 10, 2001 3:59 PM To: vtkusers at public.kitware.com Subject: [vtkusers] office data fields Anyone happen to know what all those scalar fields in the office dataset are? I tried to find Ludwig Besse's email via VTK search and web search, but came up empty. --Randy _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From pcesarferreira at mail.telepac.pt Sun May 13 10:32:51 2001 From: pcesarferreira at mail.telepac.pt (Paulo Dias) Date: Sun, 13 May 2001 15:32:51 +0100 Subject: [vtkusers] win2000 Message-ID: <000f01c0dbb9$f6cf7e40$6f73fea9@pc> Hello, I would like to know if the VTK software works on win2000 professional. I have already tried, but an error always come up when try to run a .tcl file. Is it normal? Please, reply me as soon as possible due to the fact that I need this to do an important project. Thank you for the attention given, Paulo Dias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elsn at loqnl.ufal.br Sun May 13 11:40:49 2001 From: elsn at loqnl.ufal.br (Elizeu L. dos Santos Neto) Date: Sun, 13 May 2001 12:40:49 -0300 Subject: [vtkusers] win2000 References: <000f01c0dbb9$f6cf7e40$6f73fea9@pc> Message-ID: <000b01c0dbc3$15de9bf0$8795f1c8@loqnl.ufal.br> Hello Paulo, I've worked with VTK (C++) over the Win2k and I did not have problems. Everything works fine! []s Elizeu Neto ----- Original Message ----- From: Paulo Dias To: vtkusers at public.kitware.com Sent: Sunday, May 13, 2001 11:32 AM Subject: [vtkusers] win2000 Hello, I would like to know if the VTK software works on win2000 professional. I have already tried, but an error always come up when try to run a .tcl file. Is it normal? Please, reply me as soon as possible due to the fact that I need this to do an important project. Thank you for the attention given, Paulo Dias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at cdnorthamerica.com Sun May 13 14:05:12 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Sun, 13 May 2001 14:05:12 -0400 Subject: [vtkusers] vtkPicker.. References: <3AFE1769.9338E507@mail.cs.uncc.edu> Message-ID: <3AFECCD8.68D4E1BD@cdnorthamerica.com> K.R., I have had success sublcassing vtkActor, letting it hold user data, and attaching a pickMethod to the actor. In the pickMethod, you can do pretty much anything you want. Alternatively you could write your own interactor that knows how to deal with the subclassed vtkActor when picked. I use both approaches. On the picker side of things, if you look up the inheritance tree for vtkPicker you will see the methods GetProp(), GetActor(), etc.. which return the picked object. I know that vtkPropPicker uses hardware picking instead of the ray-casting method of vtkPicker. I use the vtkPropPicker because it seems more reliable (plus I don't care to know the list of objects intersected by the ray). Hope this helps, -Jeff "K.R.Subramanian" wrote: > The documentation for vtkPicker says that the the actor or prop closest > to the camera that was intersected is returned. But I only see methods > that return the list of Actors (and another method to return the list of > Prop3Ds - what is > the difference?), which are not in sorted order. > > I am implementing picking and need to get the closest object hit. > > I also agree with an earlier post on picking actors; it would be very > convenient > to have a way of attaching user data with an actor. For instance, in > my > application, only some of the actors are pickable and I would like to > attach > some user data that would be useful in identifying the actor that was > picked. > > -- krs > > -- > K.R.Subramanian Phone: (704) 687-4872 > Department of Computer Science FAX: (704) 687-4893 > UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu > Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From d_sedat at hotmail.com Sun May 13 14:48:19 2001 From: d_sedat at hotmail.com (Sedat DOGAN2) Date: Sun, 13 May 2001 21:48:19 +0300 Subject: [vtkusers] (no subject) Message-ID: Hi Paulo, I am working with windows 2000 platform and also I use Borlandc C++ Builder, and now I don't have problems for this time. But I haven't use tcl. But vtk is ok. Sedat DOGAN -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Sun May 13 17:36:35 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 14 May 2001 03:06:35 +0530 (IST) Subject: [vtkusers] Announce: MayaVi-1.0 released. Message-ID: <15102.65123.308724.135300@monster.linux.in> Hi, This is to announce the availability of the MayaVi Data Visualizer version 1.0. MayaVi is a free, easy to use scientific data visualizer. It is written in Python and uses the Visualization Toolkit (VTK) for the graphics. It provides a GUI written using Tkinter. MayaVi is free and distributed under the GNU GPL. It is also cross platform and should run on any platform where both Python and VTK are available. MayaVi is based on ideas from an earlier Computational Fluid Dynamics (CFD) data visualizer called VTK-CFD. The original VTK-CFD code base has been completely rewritten and redesigned. The resulting project has been renamed MayaVi and has been SourceForged. For more information, downloadable sources, screenshots, installation instructions, documentation etc. visit the MayaVi home page at: http://mayavi.sourceforge.net Also bundled with MayaVi is a VTK pipeline browser written in Python. This pipeline browser enables one to view and configure the objects in the VTK pipeline. Also included with this is a simple VTK object "pickler". Using this one can save the state of a VTK object to a file and reload it later. The latest version of the pipeline browser is 1.1 and is available at: http://mayavi.sourceforge.net/vtkPipeline/ Have fun! prabhu From clyne at cyclone.scd.ucar.edu Sun May 13 22:05:34 2001 From: clyne at cyclone.scd.ucar.edu (John Clyne) Date: Sun, 13 May 2001 20:05:34 -0600 (MDT) Subject: [vtkusers] volume render floats, quantizing to ints Message-ID: <200105140205.UAA30392@cyclone.scd.ucar.edu> I'm trying to ray cast some irregular floating point data that i've re-gridded using the "shepard" filter. Problem is is that the ray casting mapper chokes on floats (wants 8 or 16 bit ints). Can't seem to find a filter for narrowing floating point data to unsigned ints. Does one exist in vtk? Alternatively, is they any way to ray cast irregular data in vtk? Thanks for any pointers! cheers - jc John Clyne (clyne at ncar.ucar.edu) National Center for Atmospheric Research P.O. Box 3000, Boulder, Colorado 80307 (303) 497-1236 FAX (303) 497-1298 From P.Kiran at geind.ge.com Mon May 14 07:39:38 2001 From: P.Kiran at geind.ge.com (Kiran, P (CORP, GEITC)) Date: Mon, 14 May 2001 17:09:38 +0530 Subject: [vtkusers] sampling of 3D Data Message-ID: Hello VTK gurus, I have a set 90,000 of 3-D points, they unstructured (They are not sampled uniformly). I want to generate a 30, 000 points by uniform sampling. How can I do this in VTK? Are there any classes in VTK support this kind of stuff? Also, can I generate a 3D mesh using the algorithms in VTK connecting 90,000 points and sample it to get 30,000 points? Thanks in advance for help. -Kiran From esok at cosimo.gsfc.nasa.gov Mon May 14 09:40:57 2001 From: esok at cosimo.gsfc.nasa.gov (Eric Sokolowsky) Date: Mon, 14 May 2001 09:40:57 -0400 Subject: [vtkusers] Postscript rendering In-Reply-To: <15102.65123.308724.135300@monster.linux.in> Message-ID: Does anyone know of a good way to render a scene in postscript format? I have some OpenGL code that renders a scene in feedback mode, and then the scene is parsed and postscript triangles are produced. I was thinking about subclassing the vtkOpenGLRenderer class and adding the postscript capability but I was wondering if there was a better way. I need to be able to preserve tcl and possibly python wrappers also. As a new user of vtk, I would appreciate any helpful pointers. -- ____ __ Eric Sokolowsky NASA Goddard Space Flight Center / __/__/_/__ Visualization Programmer Scientific Visualization Studio / __/ _/ / _/ esok at cosimo.gsfc.nasa.gov Code 935.0 Bldg 28 Rm S121 /___/_//_/__/ 301.286.3751 Greenbelt, MD 20771 From prabhu at aero.iitm.ernet.in Mon May 14 10:37:28 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 14 May 2001 20:07:28 +0530 (IST) Subject: [vtkusers] Postscript rendering In-Reply-To: References: <15102.65123.308724.135300@monster.linux.in> Message-ID: <15103.60840.990638.470713@monster.linux.in> hi, >>>>> "ES" == Eric Sokolowsky writes: ES> Does anyone know of a good way to render a scene in postscript ES> format? I have some OpenGL code that renders a scene in ES> feedback mode, and then the scene is parsed and postscript ES> triangles are produced. I was thinking about subclassing the ES> vtkOpenGLRenderer class and adding the postscript capability ES> but I was wondering if there was a better way. I need to be ES> able to preserve tcl and possibly python wrappers also. As a ES> new user of vtk, I would appreciate any helpful pointers. Will Schroeder posted the following long back, it may be useful: From: Will Schroeder To: vtkusers at public.kitware.com Subject: [vtkusers] vtk vector Postscript output Date: Wed, 29 Nov 2000 11:36:21 -0500 Hi Folks- FYI: For those of you interested in saving 3D geometry in (vector) postscript form, Jean-Francois Remacle at RPI has pointed me to the following web site: http://www.geuz.org/gl2ps/ Will It would be wonderful if this were used for VTK. :) Hope this helps. prabhu From jaroma at gemtel.com.mx Mon May 14 10:51:25 2001 From: jaroma at gemtel.com.mx (=?iso-8859-1?Q?Jos=E9_A._Romero_M.?=) Date: Mon, 14 May 2001 09:51:25 -0500 Subject: [vtkusers] win2000 In-Reply-To: <01A5F3A3CF0DD511BFF600105A9E5B6E02D9D2@SWINNT05> Message-ID: <01A5F3A3CF0DD511BFF600105A9E5B6E0101E5@SWINNT05> Hello... ? When I try to use ?VTK and Windows 2k Server, all appear to function well, but when I run the sample program and I chose preview image, a blue screen appeared. ? -- Jos? A. Romero M. Depto. Sistemas Grupo Qu?mico Industrial BC, S.A. de C.V. Cuautlancingo, Pue. M?xico (01 2) 285-00-06 ? http://jaroma.freeshell.org/ -- ? -----Mensaje original----- De: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]En nombre de Elizeu L. dos Santos Neto Enviado el: Domingo, 13 de Mayo de 2001 10:41 a.m. Para: vtkusers at public.kitware.com Asunto: Re: [vtkusers] win2000 ? ??? Hello Paulo, ? ??? I've worked with VTK (C++) over the Win2k and I did not have problems. ??? Everything works fine! ? []s Elizeu Neto ----- Original Message ----- From: Paulo Dias To: vtkusers at public.kitware.com Sent: Sunday, May 13, 2001 11:32 AM Subject: [vtkusers] win2000 ? Hello, ? ??? I would like to know if the VTK software works on win2000 professional. I have already tried, but an error always come up when try to run a .tcl file. Is it normal? ? ? Please, reply me as soon as possible due to the fact that I need this to do an important project. ? Thank you for the attention given, ? ? Paulo Dias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From volpecr at crd.ge.com Mon May 14 11:10:43 2001 From: volpecr at crd.ge.com (Volpe, Christopher R (CRD)) Date: Mon, 14 May 2001 11:10:43 -0400 Subject: [vtkusers] win2000 Message-ID: I use vtk on Windows 2000 Pro with TCL 8.2.3. No problems. -----Original Message----- From: Elizeu L. dos Santos Neto [mailto:elsn at loqnl.ufal.br] Sent: Sunday, May 13, 2001 11:41 AM To: vtkusers at public.kitware.com Subject: Re: [vtkusers] win2000 Hello Paulo, I've worked with VTK (C++) over the Win2k and I did not have problems. Everything works fine! []s Elizeu Neto ----- Original Message ----- From: Paulo Dias To: vtkusers at public.kitware.com Sent: Sunday, May 13, 2001 11:32 AM Subject: [vtkusers] win2000 Hello, I would like to know if the VTK software works on win2000 professional. I have already tried, but an error always come up when try to run a .tcl file. Is it normal? Please, reply me as soon as possible due to the fact that I need this to do an important project. Thank you for the attention given, Paulo Dias. From nilsb at cns.mpg.de Mon May 14 12:41:44 2001 From: nilsb at cns.mpg.de (Nils H. Busch) Date: Mon, 14 May 2001 18:41:44 +0200 Subject: [vtkusers] Intersecting triangle mesh with plane Message-ID: <3B000AC7.84EDB1CA@cns.mpg.de> Hi, is there way in vtk to intersect polydata aka a triangle mesh with a given plane and show the resulting closed polyline ? -- Best regards, Nils H. Busch ______________________________________________________ Max-Planck-Institute of Cognitive Neuroscience Phone: ++49 (341) 9940-234 Fax: ++49 (341) 9940-204 E-Mail: nilsb at cns.mpg.de ______________________________________________________ From David.Geldreich at sophia.inria.fr Mon May 14 13:16:44 2001 From: David.Geldreich at sophia.inria.fr (David Geldreich) Date: Mon, 14 May 2001 19:16:44 +0200 Subject: [vtkusers] Above-Below stereo in VTK Message-ID: <3B0012FC.5AE83904@sophia.inria.fr> Hello, does anyone have already tried to implement above-below stereo in VTK ? Best regards. From jaume at tele.ucl.ac.be Mon May 14 13:51:50 2001 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Mon, 14 May 2001 19:51:50 +0200 (MEST) Subject: [vtkusers] Intersecting triangle mesh with plane In-Reply-To: <3B000AC7.84EDB1CA@cns.mpg.de> Message-ID: vtkCutter On Mon, 14 May 2001, Nils H. Busch wrote: > Hi, > > is there way in vtk to intersect polydata aka a triangle mesh with a > given plane and show the resulting closed polyline ? > > -- > Best regards, > Nils H. Busch > ______________________________________________________ > > Max-Planck-Institute of Cognitive Neuroscience > Phone: ++49 (341) 9940-234 > Fax: ++49 (341) 9940-204 > E-Mail: nilsb at cns.mpg.de > ______________________________________________________ > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From jnorris at csar.uiuc.edu Mon May 14 16:23:15 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Mon, 14 May 2001 15:23:15 -0500 Subject: [vtkusers] vtkSocketController and dataset updates Message-ID: <20010514152315.A4216@gagarin.csar.uiuc.edu> Hello all, I'm working on a client-server application where the server produces polydata and ships it to the client for rendering. I'm using vtkInputPort and vtkOutputPort with the contrib class vtkSocketController. I've written a little example to familiarize myself with their use, and it's working well. The only hitch is that while rotating, the client is constantly querying the server to see if the polydata needs updating. This causes a very noticable lag and makes interaction very jerky. Is there an easy way to skip the checks while interacting? I haven't noticed any convenient methods in vtkInputPort, but maybe I've missed something. The only thing I can think of, short of rewriting vtkInputPort, is a small filter that simply passes polydata from the input to the output, and passes update queries and requests from the output to the input. This would give me control over whether or not the update queries ever make it to the vtkInputPort. Any other suggestions? Thanks, John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris -------------- next part -------------- #include #include #include #include int main() { vtkSocketController *pController = vtkSocketController::New(); pController->WaitForConnection(10101, -1); vtkConeSource *pSource = vtkConeSource::New(); vtkOutputPort *pPort = vtkOutputPort::New(); pPort->SetController(pController); pPort->SetTag(2); pPort->SetInput(pSource->GetOutput()); pSource->Delete(); pController->ProcessRMIs(); cout << "Done!" << endl; return 0; } -------------- next part -------------- #include #include #include #include #include #include #include int main(int argc, char *argv[]) { vtkSocketController *pController = vtkSocketController::New(); pController->Initialize(&argc, &argv); pController->ConnectTo("soot.mcs.anl.gov", 10101); vtkInputPort *pPort = vtkInputPort::New(); pPort->SetController(pController); pPort->SetRemoteProcessId(1); pPort->SetTag(2); vtkPolyDataMapper *pMapper = vtkPolyDataMapper::New(); pMapper->SetInput(pPort->GetPolyDataOutput()); pPort->Delete(); vtkActor *pActor = vtkActor::New(); pActor->SetMapper(pMapper); pMapper->Delete(); vtkRenderer *pRenderer = vtkRenderer::New(); pRenderer->AddActor(pActor); pActor->Delete(); vtkRenderWindow *pWindow = vtkRenderWindow::New(); pWindow->AddRenderer(pRenderer); pRenderer->Delete(); vtkRenderWindowInteractor *pInteractor = vtkRenderWindowInteractor::New(); pInteractor->SetRenderWindow(pWindow); pWindow->Render(); pInteractor->Start(); pInteractor->Delete(); pWindow->Delete(); pController->CloseConnection(); pController->Delete(); return 0; } From berk.geveci at kitware.com Mon May 14 17:20:25 2001 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 14 May 2001 17:20:25 -0400 Subject: [vtkusers] vtkSocketController and dataset updates In-Reply-To: <20010514152315.A4216@gagarin.csar.uiuc.edu> Message-ID: I know what you mean, it can be quite annoying. After the first update (which you can force with Update() on the port), you can set the output of vtkInputPort to NULL (make sure that you do this after doing a ob->SetInput(inputPort->GetOutput()) or the data will be deleted -or register the output-). This way, the filters after the port will be separated and will not send any updates through the socket. However, when something changes and polydata is updated, you will have to re-connect the output. The solutions that you are suggestion might be tricky since they deal with pipeline update mechanism. Without knowing the internals of vtk very well, I would not play with the update mechanism. Berk -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of johnny carroll norris Sent: Monday, May 14, 2001 4:23 PM To: Vtk Mailing List Subject: [vtkusers] vtkSocketController and dataset updates Hello all, I'm working on a client-server application where the server produces polydata and ships it to the client for rendering. I'm using vtkInputPort and vtkOutputPort with the contrib class vtkSocketController. I've written a little example to familiarize myself with their use, and it's working well. The only hitch is that while rotating, the client is constantly querying the server to see if the polydata needs updating. This causes a very noticable lag and makes interaction very jerky. Is there an easy way to skip the checks while interacting? I haven't noticed any convenient methods in vtkInputPort, but maybe I've missed something. The only thing I can think of, short of rewriting vtkInputPort, is a small filter that simply passes polydata from the input to the output, and passes update queries and requests from the output to the input. This would give me control over whether or not the update queries ever make it to the vtkInputPort. Any other suggestions? Thanks, John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From citrit at rpi.edu Mon May 14 19:53:04 2001 From: citrit at rpi.edu (Thomas D. Citriniti) Date: Mon, 14 May 2001 19:53:04 -0400 Subject: [vtkusers] win2000 References: <01A5F3A3CF0DD511BFF600105A9E5B6E0101E5@SWINNT05> Message-ID: <008601c0dcd1$08038d60$64921918@mapinfo.com> One thing we have found in using Vtk in our main application is that ATI cards are unstable with some operations that use many features of OpenGL. The suggestion we use for support staff is to make sure the display driver you are using is the one supplied by the manufacturer of your hardware. Upgrading to a "generic" accelerated driver can and will cause problems for OpenGL applications. If yours is not an ATI then simply ignore me 8-) Tom C. ----- Original Message ----- From: Jos? A. Romero M. To: vtkusers at public.kitware.com Sent: Monday, May 14, 2001 10:51 AM Subject: RE: [vtkusers] win2000 Hello... When I try to use VTK and Windows 2k Server, all appear to function well, but when I run the sample program and I chose preview image, a blue screen appeared. -- Jos? A. Romero M. Depto. Sistemas Grupo Qu?mico Industrial BC, S.A. de C.V. Cuautlancingo, Pue. M?xico (01 2) 285-00-06 http://jaroma.freeshell.org/ -- -----Mensaje original----- De: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]En nombre de Elizeu L. dos Santos Neto Enviado el: Domingo, 13 de Mayo de 2001 10:41 a.m. Para: vtkusers at public.kitware.com Asunto: Re: [vtkusers] win2000 Hello Paulo, I've worked with VTK (C++) over the Win2k and I did not have problems. Everything works fine! []s Elizeu Neto ----- Original Message ----- From: Paulo Dias To: vtkusers at public.kitware.com Sent: Sunday, May 13, 2001 11:32 AM Subject: [vtkusers] win2000 Hello, I would like to know if the VTK software works on win2000 professional. I have already tried, but an error always come up when try to run a .tcl file. Is it normal? Please, reply me as soon as possible due to the fact that I need this to do an important project. Thank you for the attention given, Paulo Dias. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lorensen at crd.ge.com Mon May 14 23:31:39 2001 From: lorensen at crd.ge.com (Lorensen, William E (CRD)) Date: Mon, 14 May 2001 23:31:39 -0400 Subject: [vtkusers] volume render floats, quantizing to ints Message-ID: vtkImageCast -----Original Message----- From: John Clyne [mailto:clyne at cyclone.scd.ucar.edu] Sent: Sunday, May 13, 2001 10:06 PM To: vtkusers at public.kitware.com Subject: [vtkusers] volume render floats, quantizing to ints I'm trying to ray cast some irregular floating point data that i've re-gridded using the "shepard" filter. Problem is is that the ray casting mapper chokes on floats (wants 8 or 16 bit ints). Can't seem to find a filter for narrowing floating point data to unsigned ints. Does one exist in vtk? Alternatively, is they any way to ray cast irregular data in vtk? Thanks for any pointers! cheers - jc John Clyne (clyne at ncar.ucar.edu) National Center for Atmospheric Research P.O. Box 3000, Boulder, Colorado 80307 (303) 497-1236 FAX (303) 497-1298 _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From jjkozi at kimo.com.tw Mon May 14 23:34:35 2001 From: jjkozi at kimo.com.tw (jjkozi) Date: Tue, 15 May 2001 11:34:35 +0800 Subject: [vtkusers] vtk samplev31 is no response for mouseclicking !! Message-ID: <003c01c0dcf0$46f188f0$c88f608c@kozi> I am writing a windows application using VC++6 and MFC also vtk3.1.2. I wrote the program base on the vtk window sample program "sample31", and when I need to catch the mouse click event using classwizard like WM_LBUTTONDOWN, WM_RBUTTONDOWN or WM_MOUSEMOVE. But It does not work, I use debug mode and check to see if message go throuth the OnLButtonDown Event when I click the mouse , the result is no! And I check the WM_KEYDOWN and WM_MOUSEWHEEL etc. event, it works fine, could there be some suggestion to solve this problem?? I really need to work this program! Thanks for your help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From nNunn at ausport.gov.au Tue May 15 00:30:39 2001 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Tue, 15 May 2001 14:30:39 +1000 Subject: [vtkusers] RE: no response for mouseclicking in samplev31 Message-ID: <24962C31F35BD311A1450000F81F32BD051281D6@elmo.ausport.gov.au> Assuming no recent bugs have appeared, a possible cause is that event messages are being handled by the overridden virtual method, "WindowProc" in file vtkMFCRenderView.cpp. LRESULT vtkMFCRenderView::WindowProc ( UINT message, WPARAM wParam, LPARAM lParam ) { switch (message) { //case WM_PAINT: case WM_LBUTTONDOWN: case WM_LBUTTONUP: case WM_MBUTTONDOWN: case WM_MBUTTONUP: case WM_RBUTTONDOWN: case WM_RBUTTONUP: case WM_MOUSEMOVE: case WM_CHAR: case WM_TIMER: if (this->Interactor->GetInitialized()) { return vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, this->Interactor); } break; } return vtkMFCView::WindowProc(message, wParam, lParam); } To use the class wizard, you need to remove this user-defined WindowProc and add event-handlers in the usual way. Note that you will still need to pass the messages on to vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, this->Interactor); Here is a wrapper for that call: -------------------------------------- LRESULT vtkMFCRenderView::CallInteractor (UINT uMsg, WPARAM wParam, LPARAM lParam) { if (m_IRen->GetInitialized()) { return vtkHandleMessage2(m_hWnd,uMsg,wParam,lParam,m_IRen); } return 0; } A base-class version: ------------------------------- // Be sure to pass timer messages to Vtk! void vtkMFCRenderView::OnTimer(UINT nIDEvent) { this->CallInteractor(WM_TIMER, (WPARAM)(UINT)(nIDEvent), 0L); } void vtkMFCRenderView::OnLButtonDown(UINT nFlags, CPoint point) { this->CallInteractor(WM_LBUTTONDOWN, (WPARAM)(UINT)(nFlags), MAKELPARAM((point.x), (point.y))); } etc... A version for your derived class: -------------------------------------- void CMyView::OnLButtonDown(UINT nFlags, CPoint point) { m_nUserMode = g_Info.GetUserMode(); //--------------------------------------------- // Handle Camera adjustment //--------------------------------------------- else if (GetUserMode() == USER_MODE_ZOOM) { DoZoom(); } //--------------------------------------------- // Pass interaction to Vtk //--------------------------------------------- else { vtkMFCRenderView::OnLButtonDown(nFlags, point); } } From shade_cn at yahoo.com Tue May 15 01:48:15 2001 From: shade_cn at yahoo.com (Shade) Date: Tue, 15 May 2001 13:48:15 +0800 Subject: [vtkusers] vtk samplev31 is no response for mouseclicking !! In-Reply-To: <003c01c0dcf0$46f188f0$c88f608c@kozi> Message-ID: In vtkMFCRenderView::indowProc() there is return vtkHandleMessage(this->m_hWnd, message, wParam, lParam); Change to return vtkHandleMessage2( this->m_hWnd, message, wParam, lParam, this->m_pInteractor ); Then your problem will be resolved. Best Regards, *********************************************************** Liu Jiquan College of Biomedical Engineering & Instrument Science Zhejiang University Hangzhou, Zhejiang, 310027 P.R.China Tel: +86-571-7951792Ext.13 Fax: +86-571-7951792Ext.18 EMail:shade_cn at yahoo.com *********************************************************** -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of jjkozi Sent: Tuesday, May 15, 2001 11:35 AM To: vtkusers at public.kitware.com Subject: [vtkusers] vtk samplev31 is no response for mouseclicking !! I am writing a windows application using VC++6 and MFC also vtk3.1.2. I wrote the program base on the vtk window sample program "sample31", and when I need to catch the mouse click event using classwizard like WM_LBUTTONDOWN, WM_RBUTTONDOWN or WM_MOUSEMOVE. But It does not work, I use debug mode and check to see if message go throuth the OnLButtonDown Event when I click the mouse , the result is no! And I check the WM_KEYDOWN and WM_MOUSEWHEEL etc. event, it works fine, could there be some suggestion to solve this problem?? I really need to work this program! Thanks for your help. ???????????????????????????????????????????:??????g????~???&?????f?v????a???????_?j(??& From mbell at coventor.com Tue May 15 09:33:22 2001 From: mbell at coventor.com (Michael Bell) Date: Tue, 15 May 2001 09:33:22 -0400 Subject: [vtkusers] 3D axes... In-Reply-To: <3AFAA7FC.39123FA8@lbl.gov> Message-ID: Terry, I have implemented this in java in the following manner: 1. Create a renderer for the axes only 2. Set the number of layers for the renderwindow to 2 3. Put the axes renderer in layer 0, and the other renderer on layer 1 4. reimplement the interactor so that the axes renderer camera does not respond to zoom and translate The result is 3d axes set on top of the window with your data in it. I can send you code if you want a more detailed explaination. Michael > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Terry J. Ligocki > Sent: Thursday, May 10, 2001 10:39 AM > To: VTK > Subject: [vtkusers] 3D axes... > > > I would like to display 3D axes in a given rendering window which do not > translate or scale but do rotate as the scene is interacted with (via > one of the provided C++ or Tcl interactor codes provided with the VTK > distribution). I would be happy to modify the interactor I'm using to > facilitate this but I was hoping someone else might have tackled this > problem already and might have some suggestions (or code, :-). > Basically, I want a representation of the orientation which always stays > visible and a constant (small) size in one corner of the rendering > window to orient the user. > > I have found similar questions asked in the VTK e-mail archive but > I haven't found any posted solutions which answer this question. One > answer indicates how to add 3D axes (via vtkAxes) but they will > translate and scale with the scene/camera movement and this isn't what > I need. > > Thank-you for any suggestions or information. I will post a summary to > the group of any helpful responses and/or any success with this... > > Terry J. (Ligocki, tjligocki at lbl.gov) > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From prabhu at aero.iitm.ernet.in Tue May 15 12:15:39 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 15 May 2001 21:45:39 +0530 (IST) Subject: [vtkusers] wxWindows + VTK flickering issue - some clarifications. Message-ID: <15105.22059.194850.262975@monster.linux.in> hi, I am sending this mail to all of you because my archive of messages tells me that at some point of time or the other you folks had some problem or the other with flickering when using wxWindows/wxPython and VTK. Some of you may receive two copies of this (one from the VTK list and one directly), my apologies. Basically, about a month or two back I tracked (hacked?) this flicker problem down and added a method to vtkWindow.h called SetParentInfo. Once I used SetParentInfo instead of SetWindowInfo, the flicker problem disappeared. I also rewrote the wxVTKRenderWidget and fixed all the problems with it (I still havent submitted it to Robin Dunn). At the time I had the flickering problem I was using Xfree86 4.0 and the nVidia drivers for my TNT2 card. A week back I upgraded to Xfree86 4.0.2. Recently while talking to Les Schaffer he told me that there was no flicker on his linux box. This surprised me quite a bit because he was using the stock wxPython wxVTKRenderWindow widget. I then tried the original demo again and it worked fine. This leads me to suspect that the original flicker problem happened due to some wierd bug in X that was resolved in between X 4.0 and 4.0.2. It could also be an nVidia card driver problem. I need clarification from you folks as to what version of Xfree86 you were using when you had the flicker problem, and also to let me know if upgrading X solved the problem. I need to know this in order to finish a rewrite of the wxVTKRenderWindow code and send it to Robin Dunn. Thanks. regards, prabhu From maurey at ctcinternet.cl Wed May 16 00:45:40 2001 From: maurey at ctcinternet.cl (Mauricio Reyes) Date: Tue, 15 May 2001 22:45:40 -0600 Subject: [vtkusers] vtkScalars doubt from C++ to Tcl References: <3AFDAF19.5B26855B@ctcinternet.cl> Message-ID: <3B0205F3.5CE2FA9F@ctcinternet.cl> > Hi vtkUsers!! > > First of all I want to thank to all the people who help me when I > asked some questions (in the beginning some very stupids questions :) ). > > Because of your help I could finish my thesis to get the title of > engineer...so, thanks a lot. > > Now I am trying to help a friend who is working with Caos. I > remembered that there is an example of lorenz attractor...it is in C++ > so, I started with the "translation" to Tcl. At this line I have a > problem with the "translation".. > > vtkScalars *scalars = vtkScalars::New(VTK_SHORT); > s = ((vtkShortArray *)scalars->GetData())->WritePointer(0,numPts); > > I have: > vtkScalars scalars > set s [scalars SetNumberOfScalars $numPts] > Is that equivalent??? (when I run the script I just receive a blank > window) > > also I have a little doubt about this: > > is s[i] = 0 equivalent to: set [lindex $s $i] 0 ?? > > Expecting someone could help me, > Regards, > Mauricio Reyes From yexiangmo at yahoo.com Wed May 16 00:05:44 2001 From: yexiangmo at yahoo.com (yexiang Mo) Date: Tue, 15 May 2001 21:05:44 -0700 (PDT) Subject: [vtkusers] CScrollview for vtkwin32imagewindow.cpp Message-ID: <20010516040544.28258.qmail@web10006.mail.yahoo.com> I am new to VTK and need some helps on 2D view. I need to show a stack of image on 2D view window. A regular window can not show all the image on screen. So I try to make the view window scrollable. However, I find the VTK always shift the image position back whenever I try to scroll the window. In other word,in some place of VTK, they overwrite the "OnScrolling" message sent by MFC right after swapping iamge buffer. Anyone had this experience? How do I modify the code to handle this? I searched the email list and found that Roland Schwarz already have some experience for this problem. However, I am not able to reach him by his email address. Thanks.Y.Mo __________________________________________________ Do You Yahoo!? Yahoo! Auctions - buy the things you want at great prices http://auctions.yahoo.com/ From xujianzhong at 126.com Wed May 16 02:24:02 2001 From: xujianzhong at 126.com (xujianzhong) Date: Wed, 16 May 2001 14:24:02 +0800 Subject: [vtkusers] vtkScalarBarActor Message-ID: <000f01c0ddd0$ccf4b860$290fa8c0@rockp2.iwhr.com> Hi, vtk users I am new to vtk and need some help, but I should say sorry about my poor english at first. I use vtk3.1.2 (c++) to develop a FEM post process program. But when I move into vtk3.2, I found my program get a much slower performance while drawing a scalar bar using vtkScalarBarActor than that in vtk3.1 with same code. Are there any one else has the same experience? Any possible reason to explain it will be very appreciated. I also want to know wether vtkTextMapper support fareast double byte language or not, and if it's posible, how to make it support? Thanks for any help! xu jianzhong -------------- next part -------------- An HTML attachment was scrubbed... URL: From nekocat at mxtpa.biglobe.net.tw Wed May 16 03:48:55 2001 From: nekocat at mxtpa.biglobe.net.tw (=?big5?B?2HDYcA==?=) Date: Wed, 16 May 2001 15:48:55 +0800 Subject: [vtkusers] How to begin VTK by using Java 1.3 Message-ID: <002301c0dddc$a8dd6880$6300a8c0@me.ncu.edu.tw> Hi! I am new to VTK. How should I do to use VTK and Java 1.3? Many samples use vtkPanel to show object. But vtkPanel is a heavyweight component and contains Java 1.1 class and function. And lastest vtk.jar doesn't contain vtkPanel. Is there any class instead of vtkPanel in VTK and Java 1.3? How do I begin my "HelloVTK" by Java 1.3 and swing component? Please help me to learn VTK and Java. Thank you for your help..... From francis.bouchet at areall.com Wed May 16 10:40:29 2001 From: francis.bouchet at areall.com (Francis Bouchet) Date: Wed, 16 May 2001 16:40:29 +0200 Subject: [vtkusers] Rendering of PolyData having normals since release 3.1 Message-ID: <001f01c0de16$27473a00$05c8c8c0@sfournier> ----- Original Message ----- From: Francis Bouchet To: Sent: Wednesday, May 16, 2001 3:45 PM Subject: [vtkusers] Rendering of PolyData having normals since release 3.1 > Hi all, > > I have a very simple portion of tcl script which worked fine with vtk2.4 and > which has trouble since I changed to vtk3.1 : > I try to visualize a PolyData and when the Rendering window appears I don't > see anything. After actionning the interactor, the volume is displayed; but > in some case it is so dark that I can't see it : it is as if it was not > lightened. I tried to change it's colour, but it always appears completely > dark. > Sometimes it is as if the inner surface was couloured and the outer surface > not, but I did not succeed in finding whet is going wrong : > I tried to set BacfaceCulling on and Frontface Culling on, but it does not > solve the problem. > All what I noticed is that this problem is linked to the normals of my > PolyData : if I clear the normals section in the input data file, the > surface is then correctly displayed. In my C++ application I wrote a routine > inverting normals, but it does not work for all situations : > sometimes, I need to invert normals of a PolyData in order to be able to see > it in a Rendering window (whem I try to visualize it at the same time as an > other Actor) and when I try to visualize it alone in its Rendering window I > don't need to invert the normals, and sometimes it's the opposite. > In some cases, I can't see two actors at the same time (even by inverting > normals of one or both Actors). > > As you can notice, I did not succeed in localizing the problem and it's very > disturbing. > > Could somebody help me please ? The corresponding tcl script is attached to > this mail and it is very simple and short. I guess the problem comes from > the data but ... > > > Thank you in advance, > > Francis. > > ____________________________________________________________________________ > _____________ > > Francis BOUCHET > AREALL > 24, rue Bailey > 14000 CAEN > FRANCE > tel 33 (0)2 31 46 36 00 > fax 33 (0)2 31 46 36 09 > > -------------- next part -------------- A non-text attachment was scrubbed... Name: ReadTeeth.tcl Type: application/octet-stream Size: 884 bytes Desc: not available URL: From faulhabe at ipf.uni-karlsruhe.de Wed May 16 10:33:03 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Wed, 16 May 2001 16:33:03 +0200 Subject: [vtkusers] How to store time-varying positions? Message-ID: <3B028F9F.548D0C36@ipf.uni-karlsruhe.de> Hi, my dataset consists of points with time-varying positions: ID time x y z 1 0 x0 y0 z0 1 x1 y1 z1 2 x2 y2 z2 ... 2 0 x0 y0 z0 1 x1 y1 z1 2 x2 y2 z2 ... ... and so on. I also have some attributes attached to the points themselves, independent of the current position. And I have attributes attached to every time step of every point. I thought of creating a vtkPoints with all the positions, and associating vtkScalars for ID, time step and attributes, creating from them polyVertex cells according to the point ID, and have some more vtkScalars attached to the cells. The problem is: I have to be able to visualize different combinations of the points and the time steps, say: show all points from ID = 3 to ID = 100 at every time step between 0 and 15, except for the ID = 5 and the time steps 7 and 9. This will depend on user interaction. Apparently I can't make some of the cells of a vtkPolyData invisible, only Actors can be made invisible. Of course I could create a vtkPolyData with a vtkVertex for each of the pointIDs and each of the time steps, so I'll have lots of Actors in the end, but as far as I could see from the archive this isn't recommendable. How can I store this dataset? I've been thinking about that for DAYS now without success; any idea is really appreciated! Regards Karin -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 E-Mail: faulhaber at ipf.uni-karlsruhe.de From jpw at creare.com Wed May 16 17:23:57 2001 From: jpw at creare.com (John Wilson) Date: Wed, 16 May 2001 17:23:57 -0400 Subject: [vtkusers] Histogram question Message-ID: <000301c0de4e$841296c0$945b50c0@jpw.creare.com> I am trying to display an orthogonal image plane (0 255 0 255 Z Z) from a 3D data set in Histogram format using imaging/examplesTcl/vtkHistogramWidget.tcl. The problem I am having is that the first bin has a **huge** count value which throws an error when I try to display the value using the widget's picker. Here is the stack trace: expected integer but got "8.64978e+006" while executing "format "Count: %d" $y" (procedure "HistogramWidgetUpdateInteraction" line 20) invoked from within "HistogramWidgetUpdateInteraction .top.f1.r2 1 79" (command bound to event) In running through HistogramWidgetRender with the TclPro debugger I see that "histRange" is getting set to the range 0 to 8.64978e+006 and scale is set to 2.08097778209e-005. Is there something I must do to prepare my data to avoid this, or is this a known problem with this sample widget? Thanks - John From Dieter.Nuetzel at t-online.de Thu May 17 11:37:00 2001 From: Dieter.Nuetzel at t-online.de (Dieter =?iso-8859-1?q?N=FCtzel?=) Date: Thu, 17 May 2001 17:37:00 +0200 Subject: [vtkusers] CVS 17.05.2001: common/oder.cxx build error Message-ID: <150Pnd-2FCJxQC@fwd07.sul.t-online.com> SunWave1>make order c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. -I../../common -I./../../common -I./.. -c order.cxx -o order.o In file included from order.cxx:1: ../../graphics/examplesCxx/SaveImage.h:8: vtkTIFFWriter.h: Datei oder Verzeichnis nicht gefunden order.cxx:3: vtkRenderer.h: Datei oder Verzeichnis nicht gefunden order.cxx:4: vtkRenderWindow.h: Datei oder Verzeichnis nicht gefunden order.cxx:5: vtkRenderWindowInteractor.h: Datei oder Verzeichnis nicht gefunden order.cxx:7: vtkDataSetMapper.h: Datei oder Verzeichnis nicht gefunden order.cxx:8: vtkActor.h: Datei oder Verzeichnis nicht gefunden order.cxx:10: vtkShrinkFilter.h: Datei oder Verzeichnis nicht gefunden make: *** [order.o] Error 1 vtkTIFFWriter.h lives now in: $HOME_OF_VTK/imaging/vtkTIFFWriter.h ??? Thanks, Dieter -- Dieter N?tzel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-K?lln-Stra?e 30 D-22527 Hamburg, Germany email: nuetzel at kogs.informatik.uni-hamburg.de @home: Dieter.Nuetzel at hamburg.de From walter at lncc.br Thu May 17 12:26:04 2001 From: walter at lncc.br (Walter Herrera) Date: Thu, 17 May 2001 13:26:04 -0300 Subject: [vtkusers] vtkMergeFilter error Message-ID: <5.0.2.1.0.20010517131203.00a18220@pop.lncc.br> Hello.. I?ve found an error in vtkMergeFilter.cxx. The source code is the following: 1. void vtkMergeFilter::SetVectors(vtkDataSet *input) 2. { 3. this->vtkProcessObject::SetNthInput(2, input); 4. } 5. vtkDataSet *vtkMergeFilter::GetVectors() 6. { 7. if (this->NumberOfInputs < 3) 8. { 9. return NULL; 10. } 11. return (vtkDataSet *)(this->Inputs[3]); 12. } in the line 11. there is an error. It must be: 11. return (vtkDataSet *)(this->Inputs[2]); I am using this filter in TclTk, so I have to recompile all the vtk source code to be able to use the filter. Do you know if there is some vtktcl.dll file with this bug corrected? Thank you... Walter From sarika21 at hotmail.com Thu May 17 12:30:09 2001 From: sarika21 at hotmail.com (Sarika Paranjape) Date: Thu, 17 May 2001 11:30:09 -0500 Subject: [vtkusers] Track the position of the mouse Message-ID: An HTML attachment was scrubbed... URL: From heiland at ncsa.uiuc.edu Thu May 17 13:48:02 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Thu, 17 May 2001 12:48:02 -0500 Subject: [vtkusers] Java rpm: libvtkJava.so missing libXt Message-ID: <1010517124802.ZM10922@sangamon.ncsa.uiuc.edu> It seems the libvtkJava.so from the nightly Java rpm is still (or again) missing libXt, rf. this earlier thread: http://public.kitware.com/pipermail/vtkusers/2001-January/005343.html This results in the following run-time error: java.lang.UnsatisfiedLinkError: /usr/lib/libvtkJava.so: /usr/lib/libVTKGraphics.so: undefined symbol: XtStrings --Randy From bayley at me.queensu.ca Thu May 17 16:13:56 2001 From: bayley at me.queensu.ca (Chris Bayley) Date: Thu, 17 May 2001 16:13:56 -0400 Subject: [vtkusers] vtkactor2D with vtkXWindowInteractor Message-ID: <3B043104.FFC6F8B6@me.queensu.ca> Hello fellow vtk users! I am having difficulty using vtkactor2D in conjunction with vtkXWindowInteractor. Is this a known problem? and if so whats the best work around solution. Thanks in advance Chris From demmi at surfree.com Thu May 17 23:57:15 2001 From: demmi at surfree.com (demmi) Date: Thu, 17 May 2001 21:57:15 -0600 Subject: [vtkusers] MFC Sample (What does VTKMFC objects mean?) Message-ID: Hello vtkmfc users, I'm new to both MFC and VTK. I'm just learning how to use vtk with MFC using the sample.dsw file. I read the ReadMe.txt file come with the sample. Below are some instruction from ReadMe.txt file: Basic instructions (see the Sample for more informaiton) 1) create an empty MFC app with standard options 2) add in the VTKMFC objects using the gallery option (project -- add to project -- components) 3) edit the view and doc class generated by MFC so that they are subclasses of vtkMFCDocument and vtkMFVRenderView edit sampleview.h to change the supoerclass to vtkMFCRenderView and add ...... Could someone explain what the instruction # (2) means? Thanks you! Gundulp From krs at zappa.uncc.edu Fri May 18 00:07:45 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Fri, 18 May 2001 00:07:45 -0400 Subject: [vtkusers] vtkParallelCoordinatesActor.. Message-ID: <3B04A011.1664936E@mail.cs.uncc.edu> Has anyone developed and extended this class to include things like picking, brushing, etc.? By picking, I mean pick on individual components of the plot, not just the prop itself - for instance, to eliminate certain data values. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From Jan.Vittrup at Person.dk Fri May 18 06:03:58 2001 From: Jan.Vittrup at Person.dk (Jan Vittrup Hansen) Date: Fri, 18 May 2001 12:03:58 +0200 Subject: [vtkusers] python + vtkTkRenderWidget + threading == X restart Message-ID: <01051812035800.03399@pascal> Hi All, I seem to be unable to do threaded interaction in python. Therefor a small test example has been deviced, which on my machine (redhat71 + matrox g400 + rh7 vtk rpms) crashes X. Are you daring enough to try it ;o) Seriously, I would be greatfull if anyone can test this using other graphics drivers, or tell me what I'm doing wrong :o) Regards, Jan... -------------- next part -------------- A non-text attachment was scrubbed... Name: thread_test.py Type: text/x-java Size: 653 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkRenderWidget.py Type: text/x-c++ Size: 14378 bytes Desc: not available URL: From P.Kiran at geind.ge.com Fri May 18 06:41:13 2001 From: P.Kiran at geind.ge.com (Kiran, P (CORP, GEITC)) Date: Fri, 18 May 2001 16:11:13 +0530 Subject: [vtkusers] REG: best method for closest point search Message-ID: <2025E70FDF44D511918D00508B650D942FB458@ban03xbindge.geind.ge.com> Hi VTK gurus, I am doing 3-D image registration work. Right now, I am using the some built-in locators to find the closest point of one surface to the other. Has anyone implemented a FindClosestPoint method that uses kd trees in VTK? Are there any best methods techniques for finding the closest point? Thanks in advance for help. Kiran From prabhu at aero.iitm.ernet.in Fri May 18 07:27:51 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 18 May 2001 16:57:51 +0530 (IST) Subject: [vtkusers] python + vtkTkRenderWidget + threading == X restart In-Reply-To: <01051812035800.03399@pascal> References: <01051812035800.03399@pascal> Message-ID: <15109.1847.394884.797486@monster.linux.in> hi, >>>>> "JVH" == Jan Vittrup Hansen writes: JVH> Hi All, I seem to be unable to do threaded interaction in JVH> python. Therefor a small test example has been deviced, which JVH> on my machine (redhat71 + matrox g400 + rh7 vtk rpms) crashes JVH> X. Are you daring enough to try it ;o) Seriously, I would be JVH> greatfull if anyone can test this using other graphics JVH> drivers, or tell me what I'm doing wrong :o) Well I tried this on the interpreter >>> from vtkpython import * >>> from Tkinter import * >>> from vtkRenderWidget import * >>> import time, thread >>> source = vtkSphereSource() >>> mapper = vtkPolyDataMapper() >>> mapper.SetInput(source.GetOutput()) >>> actor = vtkActor() >>> actor.SetMapper(mapper) >>> root = Tk() >>> pane = vtkTkRenderWidget(root,width=300,height=300) >>> ren = vtkRenderer() >>> renWin = pane.GetRenderWindow() >>> renWin.AddRenderer(ren) >>> ren.AddActor(actor) >>> # pack the pane into the tk root ... pane.pack (fill="both", expand=1) >>> print "test" and everything works fine upto this point (I can even interact with the spehere etc.). However, the instant I add the following it behaves strangely. >>> thread.start_new_thread(root.mainloop, ()) It works for a while and then hangs. I have to ^C at the interpreter to do anything. I also checked to see if Tkinter was the problem, it isnt. >>> def f (event=None): ... print "Inside f()" ... >>> from Tkinter import * >>> root = Tk () >>> b = Button (root, text="Test", command=f) >>> import thread >>> thread.start_new_thread (root.mainloop, ()) >>> And everything runs fine. BTW, I am using Debian GNU/Linux 2.2 with the VTK nightlies + Python 1.5.2 + Tcl/Tk 8.0. Xfree86 4.0.2 with an nVidia TNT2 card and the nVidia drivers. prabhu From Jan.Vittrup at Person.dk Fri May 18 11:14:43 2001 From: Jan.Vittrup at Person.dk (Jan Vittrup Hansen) Date: Fri, 18 May 2001 17:14:43 +0200 Subject: [vtkusers] python + vtkTkRenderWidget + threading == X restart References: <01051812035800.03399@pascal> <15109.1847.394884.797486@monster.linux.in> Message-ID: <3B053C63.D6731CA1@Person.dk> Thank you for your detailed responce :o) I just tested on a SGI Onyx and it actually crashes with an error message: > python examples/water_test.py X Error of failed request: BadAccess (attempt to access private resource denied) Major opcode of failed request: 146 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 0 Current serial number in output stream: 159 This X_GLXMakeCurrent actually coincides with another problem when having more than one window. In that case vtk often crashes X during RenderWindow.MakeCurrent(). Still, I can't figure out whether this is intrinsic to opengl, or a vtk problem :o( Regards, Jan... Prabhu Ramachandran wrote: > > hi, > > >>>>> "JVH" == Jan Vittrup Hansen writes: > > JVH> Hi All, I seem to be unable to do threaded interaction in > JVH> python. Therefor a small test example has been deviced, which > JVH> on my machine (redhat71 + matrox g400 + rh7 vtk rpms) crashes > JVH> X. Are you daring enough to try it ;o) Seriously, I would be > JVH> greatfull if anyone can test this using other graphics > JVH> drivers, or tell me what I'm doing wrong :o) > > Well I tried this on the interpreter > > >>> from vtkpython import * > >>> from Tkinter import * > >>> from vtkRenderWidget import * > >>> import time, thread > >>> source = vtkSphereSource() > >>> mapper = vtkPolyDataMapper() > >>> mapper.SetInput(source.GetOutput()) > >>> actor = vtkActor() > >>> actor.SetMapper(mapper) > >>> root = Tk() > >>> pane = vtkTkRenderWidget(root,width=300,height=300) > >>> ren = vtkRenderer() > >>> renWin = pane.GetRenderWindow() > >>> renWin.AddRenderer(ren) > >>> ren.AddActor(actor) > >>> # pack the pane into the tk root > ... pane.pack (fill="both", expand=1) > >>> print "test" > > and everything works fine upto this point (I can even interact with > the spehere etc.). However, the instant I add the following it > behaves strangely. > > >>> thread.start_new_thread(root.mainloop, ()) > > It works for a while and then hangs. I have to ^C at the interpreter > to do anything. > > I also checked to see if Tkinter was the problem, it isnt. > > >>> def f (event=None): > ... print "Inside f()" > ... > >>> from Tkinter import * > >>> root = Tk () > >>> b = Button (root, text="Test", command=f) > >>> import thread > >>> thread.start_new_thread (root.mainloop, ()) > >>> > > And everything runs fine. > > BTW, I am using Debian GNU/Linux 2.2 with the VTK nightlies + Python > 1.5.2 + Tcl/Tk 8.0. Xfree86 4.0.2 with an nVidia TNT2 card and the > nVidia drivers. > > prabhu > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From redoine.tahiri at accsell.com Fri May 18 09:14:39 2001 From: redoine.tahiri at accsell.com (Redoine Tahiri) Date: Fri, 18 May 2001 15:14:39 +0200 Subject: [vtkusers] python + vtkTkRenderWidget + threading == X restart In-Reply-To: <3B053C63.D6731CA1@Person.dk> Message-ID: Hello every one, I m new user and develloper of VTK. I would like to know if we can use the VTK in order to visualize data mining and statistical results. If yes, there is any examples around??? thanx in advance R.T From will.schroeder at kitware.com Fri May 18 09:11:19 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 18 May 2001 09:11:19 -0400 Subject: [vtkusers] REG: best method for closest point search In-Reply-To: <2025E70FDF44D511918D00508B650D942FB458@ban03xbindge.geind. ge.com> Message-ID: <5.0.2.1.0.20010518090614.027405f8@pop.nycap.rr.com> Hi Kiran- There is no k-d tree implementation that I know of. This would be a very nice addition to vtk. An adaptive spatial structure would be very helpful in situations where there is large variation in point density, e.g., an unstructured grid that is refined in a boundary layer. Operations like contouring would be sped up considerably (it uses vtkMergePoints). In the past I've had to resort to creating point locators with large dimensions (500^3) and this takes way too much memory. Will At 04:11 PM 5/18/2001 +0530, Kiran, P (CORP, GEITC) wrote: >Hi VTK gurus, > >I am doing 3-D image registration work. Right now, I am using the some >built-in locators to find the closest point of one surface to the other. >Has anyone implemented a FindClosestPoint method that uses kd trees in VTK? >Are there any best methods techniques for finding the closest point? >Thanks in advance for help. >Kiran William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From dalleyg at dma.org Fri May 18 09:45:10 2001 From: dalleyg at dma.org (Gerald Dalley) Date: Fri, 18 May 2001 09:45:10 -0400 Subject: [vtkusers] REG: best method for closest point search In-Reply-To: <5.0.2.1.0.20010518090614.027405f8@pop.nycap.rr.com> Message-ID: I have been doing some work with 3d registration and created a partial implementation of a kD tree locator. I've implemented BuildLocator and FindClosestPoint. FYI, if you modify the source a little for the existing locator classes, you can actually get them to work for these purposes. The key it to allow detection of closest points when the search point is outside the bounding box of the data points. It's not as fast as a kD tree in general, but it works. I'm including the locator files as an attachment. --Gerald Dalley dalleyg at dma.org -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Will Schroeder Sent: Friday, 18 May 2001 9:11 AM To: Kiran, P (CORP, GEITC); vtkusers at public.kitware.com Cc: Sebastien BARRE; dalleyg at dma.org Subject: Re: [vtkusers] REG: best method for closest point search Hi Kiran- There is no k-d tree implementation that I know of. This would be a very nice addition to vtk. An adaptive spatial structure would be very helpful in situations where there is large variation in point density, e.g., an unstructured grid that is refined in a boundary layer. Operations like contouring would be sped up considerably (it uses vtkMergePoints). In the past I've had to resort to creating point locators with large dimensions (500^3) and this takes way too much memory. Will At 04:11 PM 5/18/2001 +0530, Kiran, P (CORP, GEITC) wrote: >Hi VTK gurus, > >I am doing 3-D image registration work. Right now, I am using the some >built-in locators to find the closest point of one surface to the other. >Has anyone implemented a FindClosestPoint method that uses kd trees in VTK? >Are there any best methods techniques for finding the closest point? >Thanks in advance for help. >Kiran William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkKDTreePointLocator.cxx Type: application/octet-stream Size: 15348 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkKDTreePointLocator.h Type: application/octet-stream Size: 6467 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkKDTreePointLocator.cxx Type: application/octet-stream Size: 14510 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkKDTreePointLocator.h Type: application/octet-stream Size: 5635 bytes Desc: not available URL: From jbiddiscombe at skippingmouse.co.uk Fri May 18 10:13:23 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 18 May 2001 15:13:23 +0100 Subject: [vtkusers] REG: best method for closest point search In-Reply-To: <5.0.2.1.0.20010518090614.027405f8@pop.nycap.rr.com> References: <2025E70FDF44D511918D00508B650D942FB458@ban03xbindge.geind. ge.com> Message-ID: <5.0.0.25.0.20010518150630.0330c280@mail.btinternet.com> I'm hoping to check in my BSP tree code soon. I plan on changing vtkCellLocator to inherit from a new vtkAbstractCellLocator (empty placeholder) vtkAbstractCellLocator ->vtkCellLocator ->vtkModifiedBSPTree ->vtkOBBTree (might need a lot of work here). vtkAbstractCellLocator will have basic line intersection stuff which I've implemented in BSP tree for my raytracing work and already exists in celllocator. Users will be able to switch easily between BSPtree and Celllocator, but not yet OBBtree. In the pipeline are more sophisticated searches for nearest points, implicit function tests and BBox tests etc etc but these will take dedicated work which I may not have time for. vtkPointlocator doesn't fit into this plan, but suggestions are welcome. JB >Hi Kiran- > >There is no k-d tree implementation that I know of. This would be a very >nice addition to vtk. An adaptive spatial structure would be very helpful >in situations where there is large variation in point density, e.g., an >unstructured grid that is refined in a boundary layer. Operations like >contouring would be sped up considerably (it uses vtkMergePoints). In the >past I've had to resort to creating point locators with large dimensions >(500^3) and this takes way too much memory. > >Will > > >At 04:11 PM 5/18/2001 +0530, Kiran, P (CORP, GEITC) wrote: > >Hi VTK gurus, > > > >I am doing 3-D image registration work. Right now, I am using the some > >built-in locators to find the closest point of one surface to the other. > >Has anyone implemented a FindClosestPoint method that uses kd trees in VTK? > >Are there any best methods techniques for finding the closest point? > >Thanks in advance for help. > >Kiran > > >William J. Schroeder, Ph.D. >Kitware, Inc. >469 Clifton Corporate Parkway >Clifton Park, NY 12065 >will.schroeder at kitware.com >1-518-371-3971 x102 (phone) >1-518-371-3971 (fax) > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From zjzhang at ee.cuhk.edu.hk Fri May 18 12:54:55 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sat, 19 May 2001 00:54:55 +0800 Subject: [vtkusers] errors in build vtkWin32VideoSource Message-ID: <000e01c0dfbb$44292740$1c23bd89@ee.cuhk.edu.hk> Dear all: I want to add the vtkWin32Videosource class, and I first add it in the makefile.in and run pcmaker, and then run nmake in windows to build it. but it failed and I got the following information. can anyone tell me how to do it? cl.exe /nologo /D "STRICT" /MD /W3 /Ob1 /Oi /Ot /Oy /Gs /I "C:\Program F iles\Microsoft Visual Studio\VC98\include" /I "C:\vtkbin" /I "C:\Program Files\v tk32\vtksrc\common" /I "C:\Program Files\vtk32\vtksrc\graphics" /I "C:\Program F iles\vtk32\vtksrc\imaging" /D "NDEBUG" /D "WIN32" /I "C:\Program Files\vtk32\vt ksrc\patented" /I "C:\Program Files\vtk32\vtksrc\contrib" /D "_WINDOWS" /D "_W INDLL" /D "_MBCS" /D "VTKDLL" /Foobj\ /c "C:\Program Files\vtk32\vtksrc\graphics \vtkGraphicsFactory.cxx" vtkGraphicsFactory.cxx link.exe @C:\WINDOWS\TEMP\nma36843. Creating library vtkdll.lib and object vtkdll.exp vtkWin32VideoSource.obj : error LNK2001: unresolved external symbol _capCreateCa ptureWindowA at 32 vtkdll.dll : fatal error LNK1120: 1 unresolved externals NMAKE : fatal error U1077: 'C:\vtkbin\vtkdll\link.exe' : return code '0x460' Stop. regards, zj zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.on.ca Fri May 18 13:08:48 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 18 May 2001 13:08:48 -0400 (EDT) Subject: [vtkusers] errors in build vtkWin32VideoSource In-Reply-To: <000e01c0dfbb$44292740$1c23bd89@ee.cuhk.edu.hk> Message-ID: Hi Zhang, To use vtkWin32VideoSource, you must go into the 'Advanced' options in pcmaker and add VFW32.LIB to the 'Extra Linker Flags'. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Sat, 19 May 2001, zhangzhijun wrote: > Dear all: > I want to add the vtkWin32Videosource class, and I first add it in the makefile.in > and run pcmaker, and then run nmake in windows to build it. but it failed and I got > the following information. can anyone tell me how to do it? > > cl.exe /nologo /D "STRICT" /MD /W3 /Ob1 /Oi /Ot /Oy /Gs /I "C:\Program F > iles\Microsoft Visual Studio\VC98\include" /I "C:\vtkbin" /I "C:\Program Files\v > tk32\vtksrc\common" /I "C:\Program Files\vtk32\vtksrc\graphics" /I "C:\Program F > iles\vtk32\vtksrc\imaging" /D "NDEBUG" /D "WIN32" /I "C:\Program Files\vtk32\vt > ksrc\patented" /I "C:\Program Files\vtk32\vtksrc\contrib" /D "_WINDOWS" /D "_W > INDLL" /D "_MBCS" /D "VTKDLL" /Foobj\ /c "C:\Program Files\vtk32\vtksrc\graphics > \vtkGraphicsFactory.cxx" > vtkGraphicsFactory.cxx > link.exe @C:\WINDOWS\TEMP\nma36843. > Creating library vtkdll.lib and object vtkdll.exp > vtkWin32VideoSource.obj: error LNK2001: unresolved external symbol _capCreateCa > ptureWindowA at 32 > vtkdll.dll: fatal error LNK1120: 1 unresolved externals > NMAKE: fatal error U1077: 'C:\vtkbin\vtkdll\link.exe' : return code '0x460' > Stop. > > regards, > zj zhang > From zjzhang at ee.cuhk.edu.hk Fri May 18 13:43:39 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sat, 19 May 2001 01:43:39 +0800 Subject: [vtkusers] Re: errors in build vtkWin32VideoSource Message-ID: <001001c0dfc2$12d0d7e0$1c23bd89@ee.cuhk.edu.hk> now I have got the lib and dll. but when I want to use the functions, I got messagebox pop out saying that "The calib.exe(my program) file is linked to missing export VTKDLL.DLL:?VideoFormatDialog at vtkWin32VideoSource@@QAEXXZ" and also a second message box saying "could not execute: A device attached to the system is not functioning", why this? regards zj zhang -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.on.ca Fri May 18 14:06:45 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 18 May 2001 14:06:45 -0400 (EDT) Subject: [vtkusers] Re: errors in build vtkWin32VideoSource In-Reply-To: <001001c0dfc2$12d0d7e0$1c23bd89@ee.cuhk.edu.hk> Message-ID: On Sat, 19 May 2001, zhangzhijun wrote: > now I have got the lib and dll. but when I want to use the functions, I got > messagebox pop out saying that "The calib.exe(my program) file is linked > to missing export VTKDLL.DLL:?VideoFormatDialog at vtkWin32VideoSource@@QAEXXZ" > and also a second message box saying "could not execute: A device attached to the system > is not functioning", why this? This error means that the vtkWin32VideoSource cannot find the driver for your video digitizer. Are you sure that the driver is installed properly? - David From zjzhang at ee.cuhk.edu.hk Fri May 18 14:25:39 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sat, 19 May 2001 02:25:39 +0800 Subject: [vtkusers] Re: errors in build vtkWin32VideoSource References: Message-ID: <000801c0dfc7$f0e80f80$1c23bd89@ee.cuhk.edu.hk> I don't know whether the video digitizer means my video card for the PC monitor or other special video capture card? because I haven't had the image capture card installed in my pc yet. regards, zj zhang ----- Original Message ----- From: David Gobbi To: zhangzhijun Cc: Sent: Saturday, May 19, 2001 2:06 AM Subject: Re: [vtkusers] Re: errors in build vtkWin32VideoSource > On Sat, 19 May 2001, zhangzhijun wrote: > > > now I have got the lib and dll. but when I want to use the functions, I got > > messagebox pop out saying that "The calib.exe(my program) file is linked > > to missing export VTKDLL.DLL:?VideoFormatDialog at vtkWin32VideoSource@@QAEXXZ" > > and also a second message box saying "could not execute: A device attached to the system > > is not functioning", why this? > > This error means that the vtkWin32VideoSource cannot find the driver > for your video digitizer. Are you sure that the driver is installed > properly? > > - David > > From krs at zappa.uncc.edu Fri May 18 15:14:05 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Fri, 18 May 2001 15:14:05 -0400 Subject: [vtkusers] vtkActor2D Message-ID: <3B05747D.C3258E8@mail.cs.uncc.edu> I am trying to control the colors of the line segments in vtkParallelCoordinatesActor in accordance with the data values provided by vtkFieldData, which supplies the input data. The mapper used by Actor2d is vtkMapper2D, which doesnt have a lookup table, however vtkPolyDataMapper2D does (which is a subclass or Mapper2D). Anyway, I can do this? Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From jbiddiscombe at skippingmouse.co.uk Sat May 19 00:43:31 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sat, 19 May 2001 05:43:31 +0100 Subject: [vtkusers] howto Prevent a dataobject from updating? Message-ID: <5.0.0.25.0.20010519053938.00ae9260@mail.btinternet.com> I'm using a vtkImageData with no scalars or other data as an input to a probefilter. This is nice because it's fast to set up and the "Points" are defined for me by setting origin/spacing and extents. Problem is that after I setup the spacing/origin etc, the probefilter wants to call Update on the "input" even though its a fake input. Update does all sorts of ScalarAllocation and other guff which is wasted (it also dies when it tries to access the old scalar array to get the name) How can I spoof the vtkImageData into thinking it doesn't need updating. (like setting modified time to before the last execute time of the probefilter... thanks JB From zjzhang at ee.cuhk.edu.hk Sat May 19 07:48:42 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Sat, 19 May 2001 19:48:42 +0800 Subject: [vtkusers] Re: errors in build vtkWin32VideoSource Message-ID: <000601c0e059$a9b9a140$1c23bd89@ee.cuhk.edu.hk> The question still exist after I have installed the capture card and it works well. what kind of method can I use to check this? ----- Original Message ----- From: zhangzhijun To: Cc: David Gobbi Sent: Saturday, May 19, 2001 2:25 AM Subject: Re: errors in build vtkWin32VideoSource > I don't know whether the video digitizer means my video card for the PC > monitor > or other special video capture card? because I haven't had the image capture > card > installed in my pc yet. > > regards, > zj zhang > > > ----- Original Message ----- > From: David Gobbi > To: zhangzhijun > Cc: > Sent: Saturday, May 19, 2001 2:06 AM > Subject: Re: [vtkusers] Re: errors in build vtkWin32VideoSource > > > > On Sat, 19 May 2001, zhangzhijun wrote: > > > > > now I have got the lib and dll. but when I want to use the functions, I > got > > > messagebox pop out saying that "The calib.exe(my program) file is > linked > > > to missing export > VTKDLL.DLL:?VideoFormatDialog at vtkWin32VideoSource@@QAEXXZ" > > > and also a second message box saying "could not execute: A device > attached to the system > > > is not functioning", why this? > > > > This error means that the vtkWin32VideoSource cannot find the driver > > for your video digitizer. Are you sure that the driver is installed > > properly? > > > > - David > > > > > From s_s_raman45 at altavista.com Sun May 20 21:08:44 2001 From: s_s_raman45 at altavista.com (Sivashanmugaraman Sugavanam) Date: 20 May 2001 18:08:44 -0700 Subject: [vtkusers] Need Help Message-ID: <20010521010844.1680.cpmta@c012.sfo.cp.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From xujianzhong at 126.com Sun May 20 21:38:47 2001 From: xujianzhong at 126.com (xujianzhong) Date: Mon, 21 May 2001 09:38:47 +0800 Subject: [vtkusers] =?gb2312?B?u9i4tDogW3Z0a3VzZXJzXSBNRkMgU2FtcGxlIChXaGF0IGRvZXMgVg==?= =?gb2312?B?VEtNRkMgb2JqZWN0cyBtZWFuPyk=?= Message-ID: <003801c0e196$cb389180$290fa8c0@rockp2.iwhr.com> Hi, demmi If you had downloaded vtkcpp.exe and run it to intall c++ develope tool kit of vtk, when you chose menu: project -- add to project -- components, you will see a folder named vtkMFCObjects, open it and add all the *.ogx to your project, three vtk mfc class will be added to your project. now you can use it to derive your own class. You can also copy the file of vtkMfcDocument, vtkMfcRender, vtkMfcView class to your project folder and add them to the project to do the same thing. But maybe you should modify some include file name in code. I'm sorry for my poor english, hope you can understand my reply. xu jianzhong. -----Original Message----- ???: demmi ???: vtkusers at public.kitware.c ??: 2001?5?18? 12:42 ??: [vtkusers] MFC Sample (What does VTKMFC objects mean?) >Hello vtkmfc users, > >I'm new to both MFC and VTK. >I'm just learning how to use vtk with MFC using the sample.dsw file. >I read the ReadMe.txt file come with the sample. >Below are some instruction from ReadMe.txt file: > > > Basic instructions (see the Sample for more informaiton) > > 1) create an empty MFC app with standard options > 2) add in the VTKMFC objects using the gallery option > (project -- add to project -- components) > 3) edit the view and doc class generated by MFC so that they > are subclasses of vtkMFCDocument and vtkMFVRenderView > edit sampleview.h to change the supoerclass to vtkMFCRenderView and >add > ...... >Could someone explain what the instruction # (2) means? > >Thanks you! >Gundulp > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From xujianzhong at 126.com Sun May 20 21:51:34 2001 From: xujianzhong at 126.com (xujianzhong) Date: Mon, 21 May 2001 09:51:34 +0800 Subject: [vtkusers] =?gb2312?B?u9i4tDogW3Z0a3VzZXJzXSBUcmFjayB0aGUgcG9zaXRpb24gb2YgdA==?= =?gb2312?B?aGUgbW91c2U=?= Message-ID: <004401c0e198$944803c0$290fa8c0@rockp2.iwhr.com> Hi, sarika Maybe you should response to mouse message, get the display point of mouse and convert it to world point(VtkRender.DisplayToWorld), but it is not so simple as I said, there are lots of thing to do. xu jianzhong -----Original Message----- ???: Sarika Paranjape ???: vtkusers at public.kitware.com ??: 2001?5?18? 16:14 ??: [vtkusers] Track the position of the mouse Is there any way to track the position of the mouse? I am using C++. I want to move a small sphere tracking the mouse position. Are there any examples? regards sarika ---------------------------------------------------------------------------- Get your FREE download of MSN Explorer at http://explorer.msn.com _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From pratheeka at wiproge.gsoi.med.ge.com Mon May 21 00:16:56 2001 From: pratheeka at wiproge.gsoi.med.ge.com (Pratheek Arora) Date: Mon, 21 May 2001 09:46:56 +0530 Subject: [vtkusers] vtk -tcl interface Message-ID: <000101c0e1ac$df7d9df0$55cb4603@dgx30851> Hi friend I have one problem. I had make one simple program in c++ which I am calling tk file with the help of tcl_EvalFile and all then with the tk screen I am taking the file name and width, height and some other paramter and this parameter will pass to the vtk program, for this I have create a one tcl command, but the problem is that rather than invoking the vtk window(open window32) it should open a tk window can you what is the problem thanks prateek From David.Geldreich at sophia.inria.fr Mon May 21 02:50:33 2001 From: David.Geldreich at sophia.inria.fr (David Geldreich) Date: Mon, 21 May 2001 08:50:33 +0200 Subject: [vtkusers] Re: errors in build vtkWin32VideoSource References: <000601c0e059$a9b9a140$1c23bd89@ee.cuhk.edu.hk> Message-ID: <3B08BAB9.AE915100@sophia.inria.fr> Hello, the VTKDLL.dll must be in your PATH and if it is, it means that your VTKDLL.DLL does not contain vtkWin32VideoSource. Try a "dumpbin /exports VTKDLL.DLL" to see if vtkWin32VideoSource is in it. Hope this help. zhangzhijun wrote: > > > On Sat, 19 May 2001, zhangzhijun wrote: > > > > > > > now I have got the lib and dll. but when I want to use the functions, > I > > got > > > > messagebox pop out saying that "The calib.exe(my program) file is > > linked > > > > to missing export > > VTKDLL.DLL:?VideoFormatDialog at vtkWin32VideoSource@@QAEXXZ" > > > > and also a second message box saying "could not execute: A device > > attached to the system > > > > is not functioning", why this? > > > > > > This error means that the vtkWin32VideoSource cannot find the driver > > > for your video digitizer. Are you sure that the driver is installed > > > properly? > > > From pearu at cens.ioc.ee Mon May 21 03:17:21 2001 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Mon, 21 May 2001 09:17:21 +0200 (EET) Subject: [vtkusers] ANN: PyVTK Message-ID: I am pleased to announce the first release of PyVTK-0.3: http://cens.ioc.ee/projects/pyvtk/ PyVTK provides tools for manipulating VTK files in Python: VtkData - Create VTK file from Python objects. It fully supports VTK File Formats Standard 2.0. The features includes: *** ascii and binary output *** DataSet formats: StructuredPoints, StructuredGrid, RectilinearGrid, PolyData, UnstructuredGrid *** Data formats: PointData, CellData *** DataSetAttr formats: Scalars, ColorScalars, LookupTable, Vectors, Normals, TextureCoordinates, Tensors, Field PyVTK is tested to work with Python versions 2.1, 2.0, and 1.5.2. Thanks, Pearu Peterson

pyvtk 0.3 - Manipulate VTK files in Python (21-May-01) From j.stifter at medres.ch Mon May 21 05:58:13 2001 From: j.stifter at medres.ch (Jan Stifter) Date: Mon, 21 May 2001 11:58:13 +0200 Subject: [vtkusers] How to render realistic Message-ID: dear users, in the book "Scientific Visualization", there are so nice pictures of renderered medical bones with vtk. Can anyone suggest me some values for a) diffuse/specular surface color b) ambient/diffuse/specular light c) opacitiy (probably 1.0) so that bone looks like bone? also, I would like to share values for metal and for plastic. any hints are greatly appreciated jan From will.schroeder at kitware.com Mon May 21 08:52:19 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 21 May 2001 08:52:19 -0400 Subject: [vtkusers] How to render realistic In-Reply-To: Message-ID: <5.0.2.1.0.20010521084909.0277b8f0@pop.nycap.rr.com> One of the best ways to get high-quality rendering is to export a vtk scene to RenderMan. Then use RenderMan (or compatible, free for personal use, BMRT) with various shaders to get the best results. There is some information on the vtk web pages. Will At 11:58 AM 5/21/2001 +0200, Jan Stifter wrote: >dear users, >in the book "Scientific Visualization", there are so nice pictures of >renderered medical bones with vtk. Can anyone suggest me some values >for >a) diffuse/specular surface color >b) ambient/diffuse/specular light >c) opacitiy (probably 1.0) > >so that bone looks like bone? > >also, I would like to share values for metal and for plastic. > >any hints are greatly appreciated >jan William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From zjzhang at ee.cuhk.edu.hk Mon May 21 11:37:34 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Mon, 21 May 2001 23:37:34 +0800 Subject: [vtkusers] Some question of the using of vtkWin32VideoSource Message-ID: <000e01c0e20b$f57cfa60$1c23bd89@ee.cuhk.edu.hk> Dear all: When using the vtkWin32VideoSource, I find some question, I want to know whether you can help me to overcome them: I use this code to display a video from the camera, this is the code: I think every time when a vtkWin32VideoSource object is created , it must be deleted in the program otherwise the hardware will not be accessed next time when the application is executed. I encounter this kind of question, in which every time there will be a message box saying"can't find video hardware". because I use a for loop in the program and it seems it's a infinite loop because when I close the window, and I open the window again, I will be give this "can't find video hardware" information . but How to solve it? void main( int argc, char *argv[] ) { vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWindow = vtkRenderWindow::New(); renWindow->AddRenderer(ren); renWindow->SetSize( 320, 240 ); vtkRenderWindowInteractor *Interactor=vtkRenderWindowInteractor::New(); Interactor->SetRenderWindow(renWindow); vtkWin32VideoSource *videoSource=vtkWin32VideoSource::New(); videoSource->SetFrameBufferSize(50); videoSource->SetNumberOfOutputFrames(50); videoSource->Grab(); vtkImageViewer *imageViewer=vtkImageViewer::New(); imageViewer->SetInput(videoSource->GetOutput()); imageViewer->GetImageWindow()->DoubleBufferOn(); imageViewer->SetColorWindow(255); imageViewer->SetColorLevel(127.5); imageViewer->SetZSlice(0); vtkImageData* imageData=vtkImageData::New(); imageData=imageViewer->GetInput(); vtkImageMapper* imageMapper=vtkImageMapper::New(); imageMapper->SetInput(imageData); imageMapper->SetColorWindow(100); imageMapper->SetColorLevel(100); vtkActor2D *actor=vtkActor2D::New(); actor->SetMapper(imageMapper); ren->AddActor(actor); for (int i=0;i=1;i++) { videoSource->Grab(); renWindow->Render(); } videoSource->Stop(); if (videoSource) videoSource->Delete(); if (imageViewer) imageViewer->Delete(); } regards, zj zhang From heiland at ncsa.uiuc.edu Mon May 21 12:40:45 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Mon, 21 May 2001 11:40:45 -0500 Subject: [vtkusers] (renamed->) data mining, statistics In-Reply-To: "Redoine Tahiri" "RE: [vtkusers] python + vtkTkRenderWidget + threading == X restart" (May 18, 3:14pm) References: Message-ID: <1010521114045.ZM18323@sangamon.ncsa.uiuc.edu> On May 18, 3:14pm, Redoine Tahiri wrote: > Subject: RE: [vtkusers] python + vtkTkRenderWidget + threading == X restar > > Hello every one, > > I m new user and develloper of VTK. > I would like to know if we can use the VTK in order > to visualize data mining and statistical results. > If yes, there is any examples around??? VTK is a general-purpose vis package. So, yes, it can be used to vis *results* of data mining and statistics. Now, if you're asking if VTK *performs* data mining and stats, the answer is mostly no (though you could do something with vtkMath, I guess). Regarding examples, well, I can say that I've used MATLAB for a data-mining-like algorithm and then vis'd results using VTK: http://visbench.ncsa.uiuc.edu/Analysis/ But again, VTK could have cared less how the data was generated. I'm interested in the topic of (scientific) data mining/stats, so if others find novel ways of incorporating VTK, pls let me know. --Randy From dgobbi at irus.rri.on.ca Mon May 21 13:14:33 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 21 May 2001 13:14:33 -0400 (EDT) Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource In-Reply-To: <000e01c0e20b$f57cfa60$1c23bd89@ee.cuhk.edu.hk> Message-ID: Hi Zhang, The problem is that while the 'for' loop is running, Windows is unable to process events. This is not a problem with e.g. the vtkMILVideoSource because the MIL interface is multi-threaded, but unfortunately Video for Windows relies on Windows event handling to process the callbacks. The only solution is for you write a program that does proper event handling. If you call Grab from somewhere within your main WNDPROC message handler, then Video for Windows won't be blocked. Does anyone out there who has used vtkWin32VideoSource have a simple example of this? I don't do much applications-level programming in C++ myself. Another solution is to write your program in tcl or python/Tkinter and to only do the grabs after you have started the 'mainloop'. See 'video.tcl' for an example. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 21 May 2001, zhangzhijun wrote: > Dear all: > When using the vtkWin32VideoSource, I find some question, I want to > know > whether you can help me to overcome them: > I use this code to display a video from the camera, this is the > code: > I think every time when a vtkWin32VideoSource object is created , it must be > deleted > in the program otherwise the hardware will not be accessed next time when > the application > is executed. I encounter this kind of question, in which every time there > will be a > message box saying"can't find video hardware". because I use a for loop in > the > program and it seems it's a infinite loop because when I close the window, > and I open > the window again, I will be give this "can't find video hardware" > information . but How > to solve it? > void main( int argc, char *argv[] ) > { > vtkRenderer *ren = vtkRenderer::New(); > vtkRenderWindow *renWindow = vtkRenderWindow::New(); > renWindow->AddRenderer(ren); > renWindow->SetSize( 320, 240 ); > vtkRenderWindowInteractor *Interactor=vtkRenderWindowInteractor::New(); > Interactor->SetRenderWindow(renWindow); > vtkWin32VideoSource *videoSource=vtkWin32VideoSource::New(); > videoSource->SetFrameBufferSize(50); > videoSource->SetNumberOfOutputFrames(50); > videoSource->Grab(); > vtkImageViewer *imageViewer=vtkImageViewer::New(); > imageViewer->SetInput(videoSource->GetOutput()); > imageViewer->GetImageWindow()->DoubleBufferOn(); > imageViewer->SetColorWindow(255); > imageViewer->SetColorLevel(127.5); > imageViewer->SetZSlice(0); > vtkImageData* imageData=vtkImageData::New(); > imageData=imageViewer->GetInput(); > vtkImageMapper* imageMapper=vtkImageMapper::New(); > imageMapper->SetInput(imageData); > imageMapper->SetColorWindow(100); > imageMapper->SetColorLevel(100); > vtkActor2D *actor=vtkActor2D::New(); > actor->SetMapper(imageMapper); > ren->AddActor(actor); > for (int i=0;i=1;i++) > { > videoSource->Grab(); > renWindow->Render(); > } > videoSource->Stop(); > if (videoSource) > videoSource->Delete(); > if (imageViewer) > imageViewer->Delete(); > } > > > regards, > zj zhang > From zjzhang at ee.cuhk.edu.hk Mon May 21 13:58:03 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Tue, 22 May 2001 01:58:03 +0800 Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource References: Message-ID: <000801c0e21f$950e9bc0$1c23bd89@ee.cuhk.edu.hk> Dear david: But actually when I run the video.tcl the second time after I reset my computer , there will be the "can't find video card" . also I have use the multi-thread in a MFC based application and every time in the work thread it will gives a update message to call update redraw the video window, and in the update function for the video window function these code is written: but I can only get a static image in the video window, and it doesn't change with the frames of image changes. and the program also turns to be very slow. void CVideoView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) { // TODO: Add your specialized code here and/or call the base class this->GetDocument()->pView3=this; vtkPropCollection *propc; vtkProp *prop; // first remove any old actors this->Renderer->GetProps()->RemoveAllItems(); this->GetDocument()->videoSource->Grab(); propc = this->GetDocument()->GetProps1(); propc->InitTraversal(); while (prop = propc->GetNextProp()) { this->Renderer->AddProp(prop); this->Renderer->ResetCamera(); this->Renderer->SetBackground(0.2,0.3,0.4); } this->vtkMFCRenderView::OnUpdate(pSender, lHint, pHint); } Regards, zj zhang ----- Original Message ----- From: David Gobbi To: zhangzhijun Cc: Sent: Tuesday, May 22, 2001 1:14 AM Subject: Re: Some question of the using of vtkWin32VideoSource > Hi Zhang, > > The problem is that while the 'for' loop is running, Windows is unable > to process events. This is not a problem with e.g. the > vtkMILVideoSource because the MIL interface is multi-threaded, but > unfortunately Video for Windows relies on Windows event handling to > process the callbacks. > > The only solution is for you write a program that does proper event > handling. If you call Grab from somewhere within your main WNDPROC > message handler, then Video for Windows won't be blocked. > Does anyone out there who has used vtkWin32VideoSource have a simple > example of this? I don't do much applications-level programming > in C++ myself. > > Another solution is to write your program in tcl or python/Tkinter > and to only do the grabs after you have started the 'mainloop'. > See 'video.tcl' for an example. > > - David > > -- > David Gobbi, MSc dgobbi at irus.rri.on.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > > From dgobbi at irus.rri.on.ca Mon May 21 14:28:57 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 21 May 2001 14:28:57 -0400 (EDT) Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource In-Reply-To: <000801c0e21f$950e9bc0$1c23bd89@ee.cuhk.edu.hk> Message-ID: Tell me which version of vtkWin32VideoSource.cxx you are using. The most recent revision is 1.10 (written at the top of the file). With older version you have to call ReleaseSystemResources() yourself (or explicitly delete the vtkWin32VideoSource) to ensure that VTK releases the driver. With version 1.10, this is automatically done when the application exits. - David On Tue, 22 May 2001, zhangzhijun wrote: > Dear david: > But actually when I run the video.tcl the second time after I reset > my computer , there will be the "can't find video card" . > also I have use the multi-thread in a MFC based application > and every time in the work thread it will gives a update message to call > update redraw the video window, and in the update function for the video > window function these code is written: but I can only get a static image in > the video window, and it doesn't change with the frames of image changes. > and the program also turns to be very slow. From zjzhang at ee.cuhk.edu.hk Mon May 21 14:41:22 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Tue, 22 May 2001 02:41:22 +0800 Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource References: Message-ID: <000801c0e225$a25ac960$1c23bd89@ee.cuhk.edu.hk> Dear david: this is the header information: Program: Visualization Toolkit Module: $RCSfile: vtkWin32VideoSource.h,v $ Language: C++ Date: $Date: 2000/12/10 20:08:28 $ Version: $Revision: 1.7 $ Thanks: Thanks to David G. Gobbi who developed this class. regards, zj zhang ----- Original Message ----- From: David Gobbi To: zhangzhijun Cc: Sent: Tuesday, May 22, 2001 2:28 AM Subject: Re: Some question of the using of vtkWin32VideoSource > Tell me which version of vtkWin32VideoSource.cxx you are using. > The most recent revision is 1.10 (written at the top of the file). > With older version you have to call ReleaseSystemResources() yourself > (or explicitly delete the vtkWin32VideoSource) to ensure that VTK > releases the driver. With version 1.10, this is automatically done > when the application exits. > > - David > > On Tue, 22 May 2001, zhangzhijun wrote: > > > Dear david: > > But actually when I run the video.tcl the second time after I reset > > my computer , there will be the "can't find video card" . > > also I have use the multi-thread in a MFC based application > > and every time in the work thread it will gives a update message to call > > update redraw the video window, and in the update function for the video > > window function these code is written: but I can only get a static image in > > the video window, and it doesn't change with the frames of image changes. > > and the program also turns to be very slow. > > From pearu at cens.ioc.ee Mon May 21 15:07:41 2001 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Mon, 21 May 2001 21:07:41 +0200 (EET) Subject: [vtkusers] How to improve the quality of rendered lines? Message-ID: Hi, I am using Mayavi to visualize VTK files and I have noticed that when saving a scene to a TIFF file, the quality of lines (and text) is too poor for printing on the paper. >From previous messages I see that RenderMan is suggested for getting better quality of exported scenes. Does it apply also for scenes that contain mostly lines, and only few plane slices? I know that vector graphics is better suited for this (but don't know if there is similar software, as VTK, available). But still, is there a way to improve such an output in VTK so that it will look good also on paper, not just on a screen? Thanks, Pearu From dgobbi at irus.rri.on.ca Mon May 21 15:43:29 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 21 May 2001 15:43:29 -0400 (EDT) Subject: [vtkusers] vtkImageReslice changes committed Message-ID: I committed a handful of modifications to vtkImageReslice last week, so if anyone finds code where the new version is not quite backwards compatible with the old version, please contact me. The main changes are 1) the class has moved from 'contrib' to 'imaging', 2) a new set of methods & examples have been provided to make it easier to use vtkImageReslice for operations such as permutation, resampling, slice extraction, and image transformation and 3) the default settings for the output Spacing, Origin, and Extent have changed (the previous defaults weren't very useful) For python users, a fairly sophisticated example is provided: vtk/python/vtkSliceViewerWidget.py. The performance of the example will depend on how well your video card handles glDrawPixels acceleration, professional OpenGL boards and the nVidia GeForce boards do very well but other PC video boards probably will not. Also, a bug was discovered in the oblique slicing code which was hurting the efficiency (sometimes by a large factor) when the output bounds were much larger/smaller than the input bounds. This has been fixed. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario From ej at ee.duke.edu Mon May 21 20:59:30 2001 From: ej at ee.duke.edu (eric jones) Date: Mon, 21 May 2001 17:59:30 -0700 Subject: [vtkusers] ATI mobilty m4 troubles Message-ID: <027001c0e25a$7537d060$a27ba8c0@vagabond> I'm trying to get VTK working on a Dell Inspiron 8000 with Windows 2000 and a 32MB ATI mobility m4 chipset. When rendering closed objects, it seems to have trouble figuring out which surface is on top, so the objects look very strange. If I turn off all hardware acceleration, the rendering is done correctly but, well, slow (imagine that). I'm using the VTK dll's from http://basic.netmeg.net/godzilla/ which are based on the 5/7/01 nightly release. Has anyone else seen this? Is the problem likely to go away if I use a newer CVS snap-shot or older stable release? Any other hints on how I might get this problem worked out? thanks, eric From S.D.Bulman at swansea.ac.uk Tue May 22 07:13:06 2001 From: S.D.Bulman at swansea.ac.uk (Simon Bulman) Date: Tue, 22 May 2001 12:13:06 +0100 Subject: [vtkusers] XY Plotting. Message-ID: <003301c0e2b0$2e1196c0$a8032c89@swan.ac.uk> Hi All, Is it possible to use the vtkXYPlotActor to plot a graph showing values at a certain grid point ?? For example the value A at node 4, plotted against value B at node 4 (temperature vs time for example). If so could somebody explain to me how this can be achieved. Kind regards Simon ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From xsting33 at hotmail.com Tue May 22 10:33:44 2001 From: xsting33 at hotmail.com (Edi Schreibmann) Date: Tue, 22 May 2001 14:33:44 -0000 Subject: [vtkusers] speed of volumetric rendering Message-ID: I am triying to use volumetric rendering in one application, it should look similar to what it isin VolView. The difference is the speed - can not make thevolume interact at the speed that exists in VolView. I'm trying : 1. to use different mappers in a vtkLODProperty 2. to subsample the input data to a size of 64x64x64 3. to specify the DesiredUpdateRate in the interactor 4. to use vtkInteractorStyleTrackballCamera Is there any other trick to speed up the interaction in a volume renderer ? Thank you very much. Edi _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From jeff at cdnorthamerica.com Tue May 22 10:33:59 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 22 May 2001 10:33:59 -0400 Subject: [vtkusers] XY Plotting. References: <003301c0e2b0$2e1196c0$a8032c89@swan.ac.uk> Message-ID: <3B0A78D7.7354A06F@cdnorthamerica.com> Simon, You could build a vtkRectilinearGrid with the x-values being value A and the y-values being value B. There was an example in the mail archives (search for "xy plot" or something like that). You can add the vtkRectilinearGrid directly to the vtkXYPlotActor. -Jeff Simon Bulman wrote: > Hi All, Is it possible to use the vtkXYPlotActor to plot a graph > showing values at a certain grid point ??For example the value A at > node 4, plotted against value B at node 4 (temperature vs time for > example). If so could somebody explain to me how this can be achieved. > Kind regardsSimon ================================ > S.D.Bulman. > Senior Research Officer. > University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 > 513179 > (H) +44 (0)1792 511144 > ================================ -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisa.avila at kitware.com Tue May 22 11:17:53 2001 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Tue, 22 May 2001 11:17:53 -0400 Subject: [vtkusers] speed of volumetric rendering In-Reply-To: Message-ID: <5.0.0.25.0.20010522111524.02925b30@pop.nycap.rr.com> Hello Edi, What mapper are you using? VolView uses up to three vtkVolumeTextureMapper2D mappers and one vtkVolumeRayCastMapper mapper (or just a single vtkVolumeProMapper if happen to have that hardware). The three texture mappers have different resolutions of data - one of which is smaller than 64x64x64 I believe (maybe 32x64x64). What rendering rates are you seeing, and how different are they than what you see in VolView? Lisa At 10:33 AM 5/22/2001, Edi Schreibmann wrote: >I am triying to use volumetric rendering in one application, it should >look similar to what it isin VolView. >The difference is the speed - can not make thevolume interact at the >speed that exists in VolView. >I'm trying : >1. to use different mappers in a vtkLODProperty >2. to subsample the input data to a size of 64x64x64 >3. to specify the DesiredUpdateRate in the interactor >4. to use vtkInteractorStyleTrackballCamera > >Is there any other trick to speed up the interaction in a volume renderer ? >Thank you very much. >Edi >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From lisa.avila at kitware.com Tue May 22 11:21:21 2001 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Tue, 22 May 2001 11:21:21 -0400 Subject: [vtkusers] How to improve the quality of rendered lines? In-Reply-To: Message-ID: <5.0.0.25.0.20010522111838.026b2e50@pop.nycap.rr.com> Hello Pearu, You can try two things - create a larger image (vtkRenderLargeImage), and use antialiasing (SetAAFrames to something like 16 on the vtkRenderWindow). This will improve your image quality. Lisa At 03:07 PM 5/21/2001, Pearu Peterson wrote: >Hi, > >I am using Mayavi to visualize VTK files and I have noticed that when >saving a scene to a TIFF file, the quality of lines (and text) is too poor >for printing on the paper. > > From previous messages I see that RenderMan is suggested for getting >better quality of exported scenes. Does it apply also for scenes that >contain mostly lines, and only few plane slices? > >I know that vector graphics is better suited for this (but don't know if >there is similar software, as VTK, available). >But still, is there a way to improve such an output in VTK so that it will >look good also on paper, not just on a screen? > >Thanks, > Pearu > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From zjzhang at ee.cuhk.edu.hk Tue May 22 11:55:48 2001 From: zjzhang at ee.cuhk.edu.hk (zhangzhijun) Date: Tue, 22 May 2001 23:55:48 +0800 Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource References: Message-ID: <000e01c0e2d7$aba5f500$1c23bd89@ee.cuhk.edu.hk> David: Now my program are working very well when I add ReleaseSystemResources() in the Delete() functions of my class. But I don't know why before I use the ~vtkWin32VideoSource() function to do this, it doesnt' work. Maybe in the ~vtkWin32VideoSource() the ReleaseSystemResource() fuction is not called. Here is my MFC code for the video display: In the Document class I opened a serial port and read the Fastrak 3D sensor data. and when the serial port is opened , a working thread is also created to read data. and every time a serial data is read the update function of the view class will refresh the view window and show the video frame. Also I dont' know whether there will be some space to optimise the display of the windows cos I dont' know very well how the parameters in the functions like SetFrameBufferSize, SerNumberOfOutputFrames ,SetFrameRate ,SetFrameSize will be set. So I want to know how to make best use of these parameters. void CCalibDoc::OnFileOpenport() { ... ... // open the serial port videoSource->SetFrameBufferSize(60); videoSource->SetNumberOfOutputFrames(1); videoSource->SetFrameRate(60); videoSource->SetFrameSize(320,240,1); videoSource->Play(); vtkImageViewer *imageViewer=vtkImageViewer::New(); imageViewer->SetInput(videoSource->GetOutput()); imageViewer->GetImageWindow()->DoubleBufferOn(); imageViewer->SetColorWindow(255); imageViewer->SetColorLevel(127.5); imageViewer->SetZSlice(0); vtkImageData* imageData=vtkImageData::New(); imageData=imageViewer->GetInput(); vtkImageMapper* imageMapper=vtkImageMapper::New(); imageMapper->SetInput(imageData); imageMapper->SetColorWindow(100); imageMapper->SetColorLevel(100); vtkImageActor *actor=vtkImageActor::New(); actor->SetInput(imageData); Props1->AddItem(actor); winthread=AfxBeginThread(MyProc, NULL ,THREAD_PRIORITY_IDLE); } // in the multithread a message for update view window will be sent // when the data is read UINT MyProc(LPVOID pParam) { // every time a serial data is read, this will be called, and the view window will redraw pDoc->pView1->InvalidateRect(NULL,FALSE); return 0; } // and here is the video display window // every time a update message is received, the window will be updated // so a frame will be grabbed void CVideoView::OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint) { // TODO: Add your specialized code here and/or call the base class vtkPropCollection *propc; vtkProp *prop; // first remove any old actors this->Renderer->GetProps()->RemoveAllItems(); this->GetDocument()->videoSource->Grab(); propc = this->GetDocument()->GetProps1(); propc->InitTraversal(); while (prop = propc->GetNextProp()) { this->Renderer->AddProp(prop); this->Renderer->ResetCamera(); this->Renderer->SetBackground(0.2,0.3,0.4); } this->vtkMFCRenderView::OnUpdate(pSender, lHint, pHint); } regards, zj zhang From dgobbi at irus.rri.on.ca Tue May 22 12:02:33 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Tue, 22 May 2001 12:02:33 -0400 (EDT) Subject: [vtkusers] Re: Some question of the using of vtkWin32VideoSource In-Reply-To: <000e01c0e2d7$aba5f500$1c23bd89@ee.cuhk.edu.hk> Message-ID: Hi Zhang, For descriptions of SetFrameRate, SetFrameSize, and the other methods see the documentation or look at vtkWin32VideoSource.h and vtkVideoSource.h. - David On Tue, 22 May 2001, zhangzhijun wrote: > David: > Now my program are working very well when I add > ReleaseSystemResources() > in the Delete() functions of my class. But I don't know why before I use the > ~vtkWin32VideoSource() > function to do this, it doesnt' work. Maybe in the ~vtkWin32VideoSource() > the > ReleaseSystemResource() fuction is not called. Here is my MFC code for the > video display: > In the Document class I opened a serial port and read the Fastrak 3D sensor > data. and > when the serial port is opened , a working thread is also created to read > data. and > every time a serial data is read the update function of the view class will > refresh the view window > and show the video frame. > Also I dont' know whether there will be some space to optimise the > display of the windows > cos I dont' know very well how the parameters in the functions like > SetFrameBufferSize, > SerNumberOfOutputFrames ,SetFrameRate ,SetFrameSize will be set. So I want > to know > how to make best use of these parameters. From prabhu at aero.iitm.ernet.in Tue May 22 13:33:15 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 22 May 2001 23:03:15 +0530 (IST) Subject: [vtkusers] How to improve the quality of rendered lines? In-Reply-To: <5.0.0.25.0.20010522111838.026b2e50@pop.nycap.rr.com> References: <5.0.0.25.0.20010522111838.026b2e50@pop.nycap.rr.com> Message-ID: <15114.41691.79875.684079@monster.linux.in> hi, >>>>> "Lisa" == Lisa S Avila writes: Lisa> Hello Pearu, You can try two things - create a larger image Lisa> (vtkRenderLargeImage), and use antialiasing (SetAAFrames to Lisa> something like 16 on the vtkRenderWindow). This will Lisa> improve your image quality. Setting AA frames works well but there are two problems (1) Text actors with shadow seem to come out badly. (2) It takes a lot of time to render, but the AA lines seem worth it. :) The DPI setting seems to have no effect. Or am I missing something. prabhu From mcameron at bsc.edu Tue May 22 16:55:18 2001 From: mcameron at bsc.edu (Marietta E. Cameron) Date: Tue, 22 May 2001 15:55:18 -0500 Subject: [vtkusers] Solaris Compilation error.... In-Reply-To: <3B0A78D7.7354A06F@cdnorthamerica.com> Message-ID: <000e01c0e301$8256e860$820cdc89@bsc.edu> Hello.... I am trying to compile vtk3.2 on the a sun workstation.... Solaris Os 5.6 I am receiving a compiler error on the include file Xutil.h: /usr/openwin/include/X11/Xutil.h:363 ANSI C++ forbids declaration 'XClipBox' with no type.... This message is repeated for almost each declaration in Xutil.h..... Has anyone else encounter this problem and what was the solution? I am compiling with Sun Workshop Compiler C++ .... but I have also tried g++ with no success. Suggestions anyone? Thank you in advance for any assistance you can offer. --Marietta -------------- next part -------------- An HTML attachment was scrubbed... URL: From adv_biologic at hotmail.com Tue May 22 18:32:58 2001 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Tue, 22 May 2001 18:32:58 -0400 Subject: [vtkusers] Solaris Compilation error.... Message-ID: Hi Marietta, I ran into the same problem on my sun sparcstation running solaris 6. >From what I recall this was a sun specific problem with their X11 libraries not satisfying part of the C++ ansi standard. My quick and dirty solution was to add -fpermissive to the CXX flag in the vtk user.make file. Hope this works for you. Regards, Audrius >From: "Marietta E. Cameron" >To: >Subject: [vtkusers] Solaris Compilation error.... >Date: Tue, 22 May 2001 15:55:18 -0500 > >Hello.... > >I am trying to compile vtk3.2 on the a sun workstation.... >Solaris Os 5.6 > >I am receiving a compiler error on the include file Xutil.h: > >/usr/openwin/include/X11/Xutil.h:363 ANSI C++ forbids declaration >'XClipBox' >with no type.... > >This message is repeated for almost each declaration in Xutil.h..... > >Has anyone else encounter this problem and what was the solution? > >I am compiling with Sun Workshop Compiler C++ .... but I have also tried >g++ >with no success. > >Suggestions anyone? > >Thank you in advance for any assistance you can offer. > >--Marietta _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From S.D.Bulman at swansea.ac.uk Wed May 23 05:40:29 2001 From: S.D.Bulman at swansea.ac.uk (Simon Bulman) Date: Wed, 23 May 2001 10:40:29 +0100 Subject: [vtkusers] XY Plotting (the plot labels) Message-ID: <005a01c0e36c$67900a00$a8032c89@swan.ac.uk> Hi All, Could somebody verify for me that the vtkXYPlotActor->SetPlotLabel(...) function works correctly. This is a snippet of code I am using. myXYActor->AddInput(myDataSet); const char* myLabel = "blah" int myCounter = myXYActor->GetInputList()->GetNumberOfItems() - 1; myXYActor->SetPlotLabel(myCounter,myLabel); When I follow this through with the debugger, the label will not get set because it fails in vtkLegendBoxActor.cxx line 288 i.e. if ( i >= 0 && i < this->NumberOfEntries ) Now this only happens from the second time onwards. Initially the this->NumberOfEntries return 50. This is set from the vtkXYActor constructor. However the second time I follow through the code, the this->NumberOfEntries is 1 (which is of course is correct) but does not allow me to set the label for the next curve i.e.. i == 1 this->NumberOfEntries == 1. I assume that the order of which I am doing this is wrong. Sometime the number of entries must be updated but when ? So when do I add the label for a particular data set ? Regards Simon ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at cdnorthamerica.com Wed May 23 09:22:59 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 23 May 2001 09:22:59 -0400 Subject: [vtkusers] vtk & metrowerks codewarrior Message-ID: <3B0BB9B3.BF8499EA@cdnorthamerica.com> Hi, Has anyone in the vtk community built vtk on windoze with codewarrior? If so, I'd really like to know how it went, what the process was, any caveats, etc... -Jeff -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From B.L.Kaptein at lumc.nl Wed May 23 12:16:46 2001 From: B.L.Kaptein at lumc.nl (Kaptein, B.L. (ORTHO)) Date: Wed, 23 May 2001 18:16:46 +0200 Subject: [vtkusers] RE:How to improve the quality of rendered lines? Message-ID: Hi, To get nice PostScript prints from vtk, I added the GL2PS library of Christophe Geuzaine http://www.geuz.org/gl2ps/ to my vtk programm. This is an OpenGL to Postscript translator written in C. The current 0.31 version has some memory leaks, but they will be solved in the next version. (I found the leaks and contacted Christophe). To use this library in my vtk application (based on the MFC_sample) I added the following code to the SampleView class: FILE *fp; fp = fopen(FileDialog.GetFileName(), "w"); int buffsize = 0; int state; state = GL2PS_OVERFLOW; while( state == GL2PS_OVERFLOW ) { buffsize += 1024*1024; gl2psBeginPage ( "Model Based RSA", "MBRSA", GL2PS_BSP_SORT, GL2PS_SIMPLE_LINE_OFFSET | GL2PS_SILENT, GL_RGBA, 0, NULL, buffsize, fp ); this->RenderWindow->Render(); state = gl2psEndPage(); } fclose(fp); Note that to produce a PostScript dump of your RenderWindow, you only have to place a gl2psBeginPage before and an gl2psEndPage after the RenderWindow->Render() command. The postscript files are good. I hope this helps??? Bart Kaptein (bart at dsdelft.nl) > >>>>> "Lisa" == Lisa S Avila writes: > > Lisa> Hello Pearu, You can try two things - create a larger image > Lisa> (vtkRenderLargeImage), and use antialiasing (SetAAFrames to > Lisa> something like 16 on the vtkRenderWindow). This will > Lisa> improve your image quality. > > Setting AA frames works well but there are two problems > > (1) Text actors with shadow seem to come out badly. > > (2) It takes a lot of time to render, but the AA lines seem > worth it. :) > > The DPI setting seems to have no effect. Or am I missing something. > > prabhu > > From arindamb at caip.rutgers.edu Wed May 23 15:32:21 2001 From: arindamb at caip.rutgers.edu (Arindam Bhattacharya) Date: Wed, 23 May 2001 15:32:21 -0400 (EDT) Subject: [vtkusers] question Message-ID: Hi, I have problem wth 3d interpolation. I have a data set of scattered points. I want to fill in the gaps with some intermediate points . Please let me know what kind of classes I have to use in vtk to acomplish this. I had looked into the implicit function but couldn't figure out how to use it. I was considering fiting the data into an implicit function and then interpolating the points. any kind of help in this track will be highly appreciated. Looking forward to hear from you. regards Arindam From tjligocki at lbl.gov Wed May 23 18:15:01 2001 From: tjligocki at lbl.gov (Terry J. Ligocki) Date: Wed, 23 May 2001 15:15:01 -0700 Subject: [vtkusers] 3D axes - summary and commentary... Message-ID: <3B0C3665.AFB1EE51@lbl.gov> I received four responses to my query about displaying 3D axes along with a VTK visualization to provide a user with orientation information. One response was from Prabhu Ramachandran, "prabhu at cyberwaveindia.com", and he suggested I look at "vtkCubeAxesActor2D.h" in the "contrib" directory. I didn't follow up on this (as other suggestions worked for me) but I thank Prabhu for the pointer! Another response was from Hank Childs, "childs3 at llnl.gov", at LLNL. He has solved this problem (and others) using two additional VTK classes (that he wrote for a visualization effort at LLNL) and 2D actors. I believe this method would have worked fine for my needs but another solution (see below) worked even better in my case. If you are interested in this solution you should contact Hank. The final two responses were from Ben Held, "ben.held at staarinc.com", and Michael Bell, "mbell at coventor.com". Ben sent me (and posted to the group) some C++ code to create a VTK pipeline which generates the axes and then renders the result in a separate rendering window. This "axes" window is then coupled to the main rendering window by applying the camera rotations generated in the main window to the camera in the "axes" window. Thus, the two cameras track each other w.r.t. rotations (just what I needed!). I translated needed parts of Ben's code into Tcl/Tk (which I'm using at the moment) and I now have a main window and an "axes" window which do what I need. Michael suggested a similar approach but also combined the two renders into one window by using the "layers" available in VTK 3.2. I am currently using VTK 3.1.2 which doesn't appear to have this capability but I plan to use it when I start using VTK 3.2. So, thanks to everyone who helped with this. If anyone would like more details please contact me, tjligocki at lbl.gov, and I will be happy to provide them. Also, if there is interest in anything more being posted to the VTK e-mail list let me know and I will post more... Terry J. (Ligocki, tjligocki at lbl.gov) From robmitch at eng.uts.edu.au Wed May 23 21:47:07 2001 From: robmitch at eng.uts.edu.au (Robert Mitchell) Date: Thu, 24 May 2001 11:47:07 +1000 Subject: [vtkusers] MFC Interactor in Sample Message-ID: <3B0C681B.94DC96F1@eng.uts.edu.au> Hi All, I'm new also, and I have built the Sample project with VS6.0, although I cannot work out why interaction in the vtk window does not happen. Is there something I'm forgetting to do? I have tried manually handling Win mouse messages and passing them onto vtkHandleMessage, all to no avail...? Thanks in advance, Rob From nNunn at ausport.gov.au Thu May 24 01:30:58 2001 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Thu, 24 May 2001 15:30:58 +1000 Subject: [vtkusers] Re: MFC Interactor in Sample Message-ID: <24962C31F35BD311A1450000F81F32BD051281F5@elmo.ausport.gov.au> Hi Rob, I built the "Sample" project you sent (the one shipping on the v3.2 CDROM?), and the mouse interaction seems to work fine. However, I linked with a set of "nightly" libraries, not the prebuilt binaries, vtkdll.[lib/dll]. Since your machine runs other Vtk apps, we might assume there is some problem with the binaries on the CDROM. Also, overriding OnEraseBkgnd() stops that horrible flickering on resizing. The Renderer likes to do such things itself! BOOL CSampleView::OnEraseBkgnd(CDC* pDC) { return 1; } NN From S.D.Bulman at swansea.ac.uk Thu May 24 07:30:33 2001 From: S.D.Bulman at swansea.ac.uk (Simon Bulman) Date: Thu, 24 May 2001 12:30:33 +0100 Subject: [vtkusers] vtkXYPlotActor Message-ID: <004701c0e444$f28e1240$a8032c89@swan.ac.uk> Hi all, I am still having problems with the vtkXYPlotActor class. I hope somebody can help me with this. I create the vtkXYPlotActor, then the user has the ability to add data to the actor interactively. This works very well apart from the coloring/labels etc of the lines. Below is a snippet of my code. Now when I create the first line of my graph the color, name etc are all correct. However, when I add a second set, the colour etc of the second line are the defaults. As I pointed out in my previous post this is because the vtkLegendBoxActor->NumberOfEntries does not seem to be updated. This is really important to me now. Does anybody have an idea what is wrong. Is the order of adding + setting data important etc??? Thanks for any help Simon -------------------------------------------------------------------------------------------------------------------- // Add the data set to the graph actor. _pcGraphActor->AddInput(data_set); data_set->Delete(); // Set the label for curve. int icurve = _pcGraphActor->GetInputList()->GetNumberOfItems(); char label[80]; if (node_or_element == 0) sprintf(label,"%s%i","Node ",entity_id); else sprintf(label,"%s%i","Element ",entity_id); _pcGraphActor->SetPlotLabel(icurve-1,label); // Map the curve to a color, for this we use the color table. float* rgb = _pcColorTable->GetColor(static_cast(icurve-1)); _pcGraphActor->SetPlotColor(icurve-1,rgb[0],rgb[1],rgb[2]); // Create the markers for the data points. vtkSphereSource* marker = vtkSphereSource::New(); _pcGraphActor->SetPlotSymbol(icurve-1,marker->GetOutput()); marker->Delete(); // Redraw the graph -------------------------------------------------------------------------------------------------------------------- ================================ S.D.Bulman. Senior Research Officer. University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 513179 (H) +44 (0)1792 511144 ================================ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff at cdnorthamerica.com Thu May 24 07:53:58 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Thu, 24 May 2001 07:53:58 -0400 Subject: [vtkusers] vtkXYPlotActor References: <004701c0e444$f28e1240$a8032c89@swan.ac.uk> Message-ID: <3B0CF656.BD3BCDB1@cdnorthamerica.com> Simon, Have you had a look at common/examplesTCL/xyplot.tcl, xyplot2.tcl? Did you try not deleting the dataset after you add it to the graph? -Jeff Simon Bulman wrote: > Hi all, I am still having problems with the vtkXYPlotActor class. I > hope somebody can helpme with this. I create the vtkXYPlotActor, then > the user has the ability to add data to the actorinteractively. This > works very well apart from the coloring/labels etc of the lines. Below > is a snippet of my code. Now when I create the first line of my graph > the color, name etc are all correct.However, when I add a second set, > the colour etc of the second line are the defaults.As I pointed out in > my previous post this is because the > vtkLegendBoxActor->NumberOfEntriesdoes not seem to be updated. This is > really important to me now. Does anybody have an idea what is wrong.Is > the order of adding + setting data important etc??? Thanks for any > helpSimon > -------------------------------------------------------------------------------------------------------------------- > // Add the data set to the graph actor. > _pcGraphActor->AddInput(data_set); > data_set->Delete(); // Set the label for curve. int icurve > = _pcGraphActor->GetInputList()->GetNumberOfItems(); > char label[80]; if (node_or_element == 0) > sprintf(label,"%s%i","Node ",entity_id); > else > sprintf(label,"%s%i","Element ",entity_id); > _pcGraphActor->SetPlotLabel(icurve-1,label); // Map the curve to a > color, for this we use the color table. float* rgb = > _pcColorTable->GetColor(static_cast(icurve-1)); > _pcGraphActor->SetPlotColor(icurve-1,rgb[0],rgb[1],rgb[2]); // > Create the markers for the data points. vtkSphereSource* marker = > vtkSphereSource::New(); > _pcGraphActor->SetPlotSymbol(icurve-1,marker->GetOutput()); > marker->Delete(); // Redraw the > graph-------------------------------------------------------------------------------------------------------------------- > ================================ > S.D.Bulman. > Senior Research Officer. > University of Wales Swansea. S.D.Bulman at swansea.ac.uk (W) +44 (0)1792 > 513179 > (H) +44 (0)1792 511144 > ================================ -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From barthur at evscorp.com Thu May 24 10:44:13 2001 From: barthur at evscorp.com (Brad Arthur) Date: Thu, 24 May 2001 10:44:13 -0400 Subject: [vtkusers] Extracting volume data from a cylinder Message-ID: <003f01c0e460$017b1210$0900a8c0@VANDELAY> Hello, I would like to be able to process data defined by a cylinder that I position within my volume data. I can display the volume data and cylinder (using vtkCylinderSource) with no problems, but I just can't figure out how to extract the data that is within the cylinder. Does anybody have any ideas? This is what I have so far: http://www.evscorp.com/im/capture.jpg Thanks, Brad Arthur From dgauldie at hotmail.com Thu May 24 15:17:04 2001 From: dgauldie at hotmail.com (David Gauldie) Date: Thu, 24 May 2001 15:17:04 Subject: [vtkusers] VTK and QT Message-ID: Hi everyone, I was wondering if anyone had any sample code on how to use QT and VTK together. I've been trying to integrate them both and I've had no luck. thanks for any help, David Gauldie _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From childs at hyper.llnl.gov Thu May 24 11:28:31 2001 From: childs at hyper.llnl.gov (Hank Childs) Date: Thu, 24 May 2001 08:28:31 -0700 Subject: [vtkusers] VTK and QT In-Reply-To: Message-ID: > > I was wondering if anyone had any sample code on how to use QT and VTK > together. I've been trying to integrate them both and I've had no luck. We have been using some classes from: http://wwwisg.cs.uni-magdeburg.de/~makoenig/vtkqt.html and it seems to work well. good luck, Hank ____________________________________________________________________________ Hank Childs MeshTV Lawrence Livermore National Laboratory From krs at zappa.uncc.edu Thu May 24 11:37:29 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Thu, 24 May 2001 11:37:29 -0400 Subject: [vtkusers] VTK and QT References: Message-ID: <3B0D2AB9.E7F64A3F@mail.cs.uncc.edu> Also check out http://www.medres.ch/~jstifter/ -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From prabhu at aero.iitm.ernet.in Thu May 24 11:44:02 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 24 May 2001 21:14:02 +0530 (IST) Subject: [vtkusers] VTK and QT In-Reply-To: References: Message-ID: <15117.11330.48180.436069@monster.linux.in> hi, >>>>> "DG" == David Gauldie writes: DG> Hi everyone, I was wondering if anyone had any sample code on DG> how to use QT and VTK together. I've been trying to integrate DG> them both and I've had no luck. DG> thanks for any help, Sebastien's links page had a lot of links to Qt+VTK widgets. Look at the classes section. http://vtk.barre.nom.fr/links.html prabhu From anast.jm at pg.com Thu May 24 16:40:19 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 24 May 2001 16:40:19 -0400 Subject: [vtkusers] latest nightly won't build on WinNT Message-ID: I just did a cvs update for the v3.2 nightly and the nmake seems to choke on the path to the Visual Studio compiler...seems to not like the spaces in the path name even though it is surrounded by quotes...anyone else seeing this? The space in "Program Files" seems okay but the ones in "Microsoft Visual" and "Visual Studio" seem to be a problem. Has the build process changed lately? I haven't done a build in a couple of months or so....thanks, john Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd vtkdll nmake OBJS Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl.exe /nologo /D "STRICT" /D "_DEBUG" /MDd /W3 /Od /Zi /D "_WINDOWS" /D "_WINDLL" /D "_MBCS" /D "NDEBUG" /D "WI N32" /Foobj\ /c /D "VTKDLL" -I "C:\Program Files\VolumePro\inc\" -DVTK_USE_VLI /I "C:\Program Files\Microsoft Visual Studio\VC98\include" /I "E:\WinCVS\Anast\vtkbin" /I "E:\WinCVS\Anast\vtk\common" /I "E:\WinCVS\Anast\vtk\graphics" /I "E :\WinCVS\Anast\vtk\imaging" /I "E:\WinCVS\Anast\vtk\patented" /I "E:\WinCVS\Anast\vtk\contrib" /I "E:\WinCVS\Anast\vt k\local" "E:\WinCVS\Anast\vtk\common\vtkLargeInteger.cxx" Command line warning D4024 : unrecognized source file type 'Files\Microsoft', object file assumed Command line warning D4027 : source file 'Files\Microsoft' ignored Command line warning D4024 : unrecognized source file type 'Visual', object file assumed Command line warning D4027 : source file 'Visual' ignored vtkLargeInteger.cxx fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\NMAKE.EXE"' : return code '0x2' Stop. From anast.jm at pg.com Thu May 24 17:02:04 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 24 May 2001 17:02:04 -0400 Subject: [vtkusers] latest nightly won't build on WinNT Message-ID: oops, after rereading the errors I gues all the spaces are causing problems....john Internet Mail Message Received from host: public.kitware.com [208.136.18.25] Envelope Sender: vtkusers-admin at public.kitware.com |------------------------------------------------| |"The following message may be a forgery. It was| |sent from the Public Internet claiming to come| |from a P&G person." | |------------------------------------------------| From: John Anast-JM/PGI at PGI@public.kitware.com on 05/24/2001 04:40 PM AST John To: vtkusers at public.kitware.com Anast-JM/PGI at PGI@public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] latest nightly won't build on WinNT Sent by: vtkusers-admin at public.kitware.com 05/24/2001 04:40 PM I just did a cvs update for the v3.2 nightly and the nmake seems to choke on the path to the Visual Studio compiler...seems to not like the spaces in the path name even though it is surrounded by quotes...anyone else seeing this? The space in "Program Files" seems okay but the ones in "Microsoft Visual" and "Visual Studio" seem to be a problem. Has the build process changed lately? I haven't done a build in a couple of months or so....thanks, john Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cd vtkdll nmake OBJS Microsoft (R) Program Maintenance Utility Version 6.00.8168.0 Copyright (C) Microsoft Corp 1988-1998. All rights reserved. cl.exe /nologo /D "STRICT" /D "_DEBUG" /MDd /W3 /Od /Zi /D "_WINDOWS" /D "_WINDLL" /D "_MBCS" /D "NDEBUG" /D "WI N32" /Foobj\ /c /D "VTKDLL" -I "C:\Program Files\VolumePro\inc\" -DVTK_USE_VLI /I "C:\Program Files\Microsoft Visual Studio\VC98\include" /I "E:\WinCVS\Anast\vtkbin" /I "E:\WinCVS\Anast\vtk\common" /I "E:\WinCVS\Anast\vtk\graphics" /I "E :\WinCVS\Anast\vtk\imaging" /I "E:\WinCVS\Anast\vtk\patented" /I "E: \WinCVS\Anast\vtk\contrib" /I "E:\WinCVS\Anast\vt k\local" "E:\WinCVS\Anast\vtk\common\vtkLargeInteger.cxx" Command line warning D4024 : unrecognized source file type 'Files\Microsoft', object file assumed Command line warning D4027 : source file 'Files\Microsoft' ignored Command line warning D4024 : unrecognized source file type 'Visual', object file assumed Command line warning D4027 : source file 'Visual' ignored vtkLargeInteger.cxx fatal error C1001: INTERNAL COMPILER ERROR (compiler file 'msc1.cpp', line 1786) Please choose the Technical Support command on the Visual C++ Help menu, or open the Technical Support help file for more information NMAKE : fatal error U1077: 'cl.exe' : return code '0x2' Stop. NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\VC98\bin\NMAKE.EXE"' : return code '0x2' Stop. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: < http://public.kitware.com/cgi-bin/vtkfaq> Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From anast.jm at pg.com Thu May 24 21:07:50 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Thu, 24 May 2001 21:07:50 -0400 Subject: [vtkusers] vtk32 won't build on WinNT ... oops Message-ID: Folks...sorry I found my error...in PCMaker I had an extra \ on the include library in the advanced section....sad what a stray character can do to your day.... john From tyyu01 at mail.apol.com.tw Thu May 24 21:21:08 2001 From: tyyu01 at mail.apol.com.tw (TzuYi Yu) Date: Fri, 25 May 2001 09:21:08 +0800 Subject: [vtkusers] A bug??? References: <200105241600.MAA27017@public.kitware.com> Message-ID: <001601c0e4b9$0c9b7050$641416a3@ncnuimcadcam> Dear Vtker: I currently download the vtk 3.2 (the provious one I have is 3.12) and install it on my pc (with OS: Window2000, VC++6.0). I use to have several VTK applications developed by Visual C++ 6.0, they run ok under vtk 3.1. When I install the vtk 3.2, and recompile those applications, they compile ok, but when I run the codes, they DON'T have any reactions to the mouse -- ie, NO rotation nor zoom in/out! I though it must be my fault, and try to see what I did in my applications. After spending a lot of time, I give up. But I try to see the VC code (located in the Sample directory) come with vtk 32. After I compile the Sample code, I run it (it work fine), and open the file (the weldedSpheres.vtk), then press the mouse trying to rotate / zoom the object -- guess what? IT DOES NOT WORK either! But it works fine with vtk3.1 before! So, the vtk 3.2 does not support MFC mouse interaction or is it just a bug? Or do I make anything wrong? Please help me to solve this problem. Thanks for all helps. Robert From tornow at techinfo.rwth-aachen.de Fri May 25 06:01:22 2001 From: tornow at techinfo.rwth-aachen.de (Ruediger Tornow (Diplomarbeit)) Date: Fri, 25 May 2001 12:01:22 +0200 Subject: [vtkusers] Bug in Java wrapping? Message-ID: <3B0E2D72.6BF767A7@techinfo.rwth-aachen.de> Hi everybody, I am using the vtk to Import and manipulate VRML files. Right now I am encountering some strange behaviour. I wrote some lines under Windows/VSC++ and it worked just fine. After porting the code to Java/Linux, most of the VRML files were not displayed at all. I checked the imported data with vtkPolyData.GetPoint(); and found out that all Points are rounded to integer-like values (e.g. 5.375 to 5.000). Since most of my data is using coordinates smaller than 0.01 all numbers degenerate to 0.0 and are not displayed at all. I guess there is some problem with type conversion within the Java wrapping, or did I miss some resolution setup for the vtkMapper? Anyone else encountered the problem? For your information: I am using vtk3.2 and jdk1.3. Thanx for your attention, Ruediger Tornow From esok at cosimo.gsfc.nasa.gov Fri May 25 12:13:54 2001 From: esok at cosimo.gsfc.nasa.gov (Eric Sokolowsky) Date: Fri, 25 May 2001 12:13:54 -0400 Subject: [vtkusers] How to improve the quality of rendered lines? In-Reply-To: Message-ID: On Mon, 21 May 2001, Pearu Peterson wrote: > > Hi, > > I am using Mayavi to visualize VTK files and I have noticed that when > saving a scene to a TIFF file, the quality of lines (and text) is too poor > for printing on the paper. > > >From previous messages I see that RenderMan is suggested for getting > better quality of exported scenes. Does it apply also for scenes that > contain mostly lines, and only few plane slices? > > I know that vector graphics is better suited for this (but don't know if > there is similar software, as VTK, available). > But still, is there a way to improve such an output in VTK so that it will > look good also on paper, not just on a screen? I am working on a postscript renderer class, derived from the OpenGL Renderer class. As soon as I have done more work on it I will post to this mailing list. (I was unable to find such a class on the internet, so if someone knows of something please let me know.) It is based on some code (I think was written by Mark Kilgard) that uses OpenGL Feedback mode to render the geometry and then produces an Encapsulated Postscript (EPS) file. This preserves the high-resolution rendering. -- ____ __ Eric Sokolowsky NASA Goddard Space Flight Center / __/__/_/__ Visualization Programmer Scientific Visualization Studio / __/ _/ / _/ esok at cosimo.gsfc.nasa.gov Code 935.0 Bldg 28 Rm S121 /___/_//_/__/ 301.286.3751 Greenbelt, MD 20771 From prabhu at aero.iitm.ernet.in Fri May 25 12:54:03 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 25 May 2001 22:24:03 +0530 (IST) Subject: [vtkusers] How to improve the quality of rendered lines? In-Reply-To: References: Message-ID: <15118.36395.229564.14089@monster.linux.in> hi, >>>>> "ES" == Eric Sokolowsky writes: ES> I am working on a postscript renderer class, derived from the ES> OpenGL Renderer class. As soon as I have done more work on it ES> I will post to this mailing list. (I was unable to find such ES> a class on the internet, so if someone knows of something ES> please let me know.) It is based on some code (I think was ES> written by Mark Kilgard) that uses OpenGL Feedback mode to ES> render the geometry and then produces an Encapsulated ES> Postscript (EPS) file. This preserves the high-resolution ES> rendering. Actually something almost exactly similar has already been done. It is not in the VTK source tree but is based on the GL2PS library of Christophe Geuzaine http://www.geuz.org/gl2ps/ A recent message on the vtkusers list also showed how to integrate VTK and GL2PS: http://public.kitware.com/pipermail/vtkusers/2001-May/006367.html I believe the approach is similar (using feedback mode - whatever that means). The only problem with this stuff is that it isnt part of VTK itself. It would be wonderful if a PostScript export class based on GL2PS could eventually become part of VTK. :) Hope this helps, prabhu From dgobbi at irus.rri.on.ca Fri May 25 13:13:32 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 25 May 2001 13:13:32 -0400 (EDT) Subject: [vtkusers] vtkLookUpTable, what am I doing wrong? Message-ID: Hi Julian, Sorry about the late reply on this, but at the present time there is only one way to create a linear greyscale ramp LUT in VTK: set all the table values yourself. In the CVS version of VTK, I've patched the vtkWindowLevelLookupTable to build a proper ramp. In Python, you can build the ramp as follows: table = vtkLookupTable() table.SetTableRange(0,1) table.Build() for i in range(256): table.SetTableValue(i,i/255.0,i/255.0,i/255.0,1.0) The problem with the basic vtkLookupTable class in VTK is that it builds an S-curve ramp instead of a linear ramp (why, I have no idea -- the VTK oldtimers haven't offered an explanation). - David From clarke at ARL.ARMY.MIL Fri May 25 14:27:39 2001 From: clarke at ARL.ARMY.MIL (Jerry Clarke ) Date: Fri, 25 May 2001 14:27:39 -0400 Subject: [vtkusers] Python2.1 dies in vtkRenderWidget.py on IRIX Message-ID: <3B0EA41B.345C839F@arl.army.mil> I'm using Python2.1, Tcl/Tk8.3.3, and vtk3.2 on IRIX6.5 When trying the example vtkRenderWidget.py, vtk brings up the window with the cone. But as soon as the pointer moves into the window, python gives : Bus error (core dump ) I understand that this combination works on Linux. Has anyone seen this ? Is there a work around ? -------------------------------------------------------------- Jerry A. Clarke clarke at arl.army.mil (410)278-9279 Fax (410)278-9199 US Army Research Laboratory Blg. 394 Room 220 -------------------------------------------------------------- From sywan at mail.cgu.edu.tw Fri May 25 14:48:49 2001 From: sywan at mail.cgu.edu.tw (Shu-Yen Wan) Date: Sat, 26 May 2001 02:48:49 +0800 Subject: [vtkusers] A bug??? References: <200105241600.MAA27017@public.kitware.com> <001601c0e4b9$0c9b7050$641416a3@ncnuimcadcam> Message-ID: <003501c0e54b$992d13b0$c97219a3@TRAVELMATE> Hi, I haven't got on the vtk messages for quite a while and may have missed something critical. I have the same problem as described in the below message -- after installing vtk3.2 and rebuilding my VC++6.0 applications, there shows a message window, warning for some obsolet functions and all of mouse interactions, e.g., rotating, scaling, picking, do not work! Moreover, the performance of generating 3D surfaces are significantly degraded. Is it normal? Or is there a way to get around. Any insights or recommendations is appreciated. Thanks, Shu-Yen ----- Original Message ----- From: "TzuYi Yu" To: Sent: Friday, May 25, 2001 9:21 AM Subject: [vtkusers] A bug??? > Dear Vtker: > > I currently download the vtk 3.2 (the provious one I have is 3.12) > and install it on my pc (with OS: Window2000, VC++6.0). I use to > have several VTK applications developed by Visual C++ 6.0, they > run ok under vtk 3.1. When I install the vtk 3.2, and recompile > those applications, they compile ok, but when I run the codes, > they DON'T have any reactions to the mouse -- ie, NO rotation > nor zoom in/out! I though it must be my fault, and try to see > what I did in my applications. After spending a lot of time, I > give up. But I try to see the VC code (located in the Sample > directory) come with vtk 32. After I compile the Sample code, > I run it (it work fine), and open the file (the weldedSpheres.vtk), > then press the mouse trying to rotate / zoom the object -- guess what? > IT DOES NOT WORK either! But it works fine with vtk3.1 before! > So, the vtk 3.2 does not support MFC mouse interaction or is it just > a bug? Or do I make anything wrong? Please help me to solve > this problem. > > Thanks for all helps. > > Robert > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From anast.jm at pg.com Fri May 25 16:03:44 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Fri, 25 May 2001 16:03:44 -0400 Subject: [vtkusers] cvs module for docs?? Message-ID: Hi, is there a module to get the latest doxygen pages from the cvs?? Thanks, john From sebastien at barre.nom.fr Fri May 25 16:38:06 2001 From: sebastien at barre.nom.fr (Sebastien BARRE) Date: Fri, 25 May 2001 22:38:06 +0200 Subject: [vtkusers] cvs module for docs?? In-Reply-To: Message-ID: <5.1.0.14.2.20010525223627.02e39068@pop.fr.clara.net> At 25/05/2001 16:03, anast.jm at pg.com wrote: >Hi, is there a module to get the latest doxygen pages from the cvs?? Thanks, >john I don't think so, but there is a compressed archive generated every night : http://www.barre.nom.fr/vtk/links-doc.html#man-pages From sebastien at barre.nom.fr Fri May 25 17:01:28 2001 From: sebastien at barre.nom.fr (Sebastien BARRE) Date: Fri, 25 May 2001 23:01:28 +0200 Subject: [vtkusers] cvs module for docs?? In-Reply-To: Message-ID: <5.1.0.14.2.20010525225921.02efbd00@pop.fr.clara.net> At 25/05/2001 16:03, anast.jm at pg.com wrote: >Hi, is there a module to get the latest doxygen pages from the cvs?? Thanks, >john hum maybe I did not understand your question correctly : since the doxygen doc is huge, you are probably thinking that you can use CVS to download only a small part of it, i.e. only these parts/files that have changed. No, it's not possible, because doxygen does not support incremental update or such things, it will regenerate all files every time it is invoked (i.e. with new times stamps and so on). From jnorris at csar.uiuc.edu Fri May 25 18:12:33 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Fri, 25 May 2001 17:12:33 -0500 Subject: [vtkusers] Contours and vtkFeatureEdges Message-ID: <20010525171233.A12108@gagarin.csar.uiuc.edu> Hi, One of the functions of my vis package is to generate isosurfaces with "highlights," which are basically just the isosurfaces plus tubes wrapped around the isosurface edges. My problem is that for cell types other than vtkHexahedron, the Contour() method generates extraneous edges. This creates a "shattered glass" effect when generating isosurfaces with highlights. The first attached image illustrates this problem. The vtkPyramid and vtkWedge cells have the same problem, but I don't have an example for these. Since the problem doesn't exist for vtkHexahedron, I patched vtkTetra::Contour() to use the same technique at vtkHexahedron::Contour(). This fixes the problem with the extra edges, but there's now a coloring problem. The second attached image illustrates. I'm also attaching the diff of the original vtkTetra.cxx and my patched version, as well as the example program I used to generate these images. I'm using nightly release of VTK3.2 from May 9th, Solaris 7, and CC from SC 5.0. Any suggestions would be greatly appreciated. Thanks, John P.S. My patch also fixes a problem I reported months ago, where the triangles generated by vtkTetra::Contour() face the opposite way of triangles generated by the other cells' Contour() methods. This was a problem when using vtkCutter on a vtkUnstructuredGrid with a mixture of cell types, and setting BackfaceCullingOn() in the actor's properties. -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris -------------- next part -------------- A non-text attachment was scrubbed... Name: bad.gif Type: image/gif Size: 11951 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: better.gif Type: image/gif Size: 15640 bytes Desc: not available URL: -------------- next part -------------- *** vtkTetra.cxx.orig Fri May 25 16:38:55 2001 --- vtkTetra.cxx Fri May 25 16:43:22 2001 *************** *** 297,305 **** static int CASE_MASK[4] = {1,2,4,8}; TRIANGLE_CASES *triCase; EDGE_LIST *edge; ! int i, j, index, *vert, newCellId; int pts[3]; ! float t, *x1, *x2, x[3]; // Build the case table for ( i=0, index = 0; i < 4; i++) --- 297,305 ---- static int CASE_MASK[4] = {1,2,4,8}; TRIANGLE_CASES *triCase; EDGE_LIST *edge; ! int i, j, k, index, *vert, e1, e2, newCellId; int pts[3]; ! float t, x1[3], x2[3], x[3], deltaScalar; // Build the case table for ( i=0, index = 0; i < 4; i++) *************** *** 315,338 **** for ( ; edge[0] > -1; edge += 3 ) { ! for (i=0; i<3; i++) // insert triangle { vert = edges[edge[i]]; ! t = (value - cellScalars->GetScalar(vert[0])) / ! (cellScalars->GetScalar(vert[1]) - cellScalars->GetScalar(vert[0])); ! x1 = this->Points->GetPoint(vert[0]); ! x2 = this->Points->GetPoint(vert[1]); for (j=0; j<3; j++) { x[j] = x1[j] + t * (x2[j] - x1[j]); } ! if ( locator->InsertUniquePoint(x, pts[i]) ) { if ( outPd ) { ! int p1 = this->PointIds->GetId(vert[0]); ! int p2 = this->PointIds->GetId(vert[1]); ! outPd->InterpolateEdge(inPd,pts[i],p1,p2,t); } } } --- 315,359 ---- for ( ; edge[0] > -1; edge += 3 ) { ! for (i=0,k=2; i<3; i++,k--) // insert triangle { vert = edges[edge[i]]; ! // calculate a preferred interpolation direction ! deltaScalar = cellScalars->GetScalar(vert[1]) - cellScalars->GetScalar(vert[0]); ! if (deltaScalar > 0) ! { ! e1 = vert[0]; e2 = vert[1]; ! } ! else ! { ! e1 = vert[1]; e2 = vert[0]; ! deltaScalar = -deltaScalar; ! } ! ! // linear interpolation ! if (deltaScalar == 0.0) ! { ! t = 0.0; ! } ! else ! { ! t = (value - cellScalars->GetScalar(e1)) / deltaScalar; ! } ! ! this->Points->GetPoint(e1, x1); ! this->Points->GetPoint(e2, x2); ! for (j=0; j<3; j++) { x[j] = x1[j] + t * (x2[j] - x1[j]); } ! if ( locator->InsertUniquePoint(x, pts[k]) ) { if ( outPd ) { ! int p1 = this->PointIds->GetId(vert[e1]); ! int p2 = this->PointIds->GetId(vert[e2]); ! outPd->InterpolateEdge(inPd,pts[k],p1,p2,t); } } } -------------- next part -------------- #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main() { vtkSphereSource *pSphere = vtkSphereSource::New(); pSphere->SetRadius(50); vtkPolyData *pData = pSphere->GetOutput(); pData->Update(); vtkPoints *pPoints = vtkPoints::New(); pPoints->DeepCopy(pData->GetPoints()); pPoints->InsertNextPoint(0.0, 0.0, 0.0); vtkUnstructuredGrid *pGrid = vtkUnstructuredGrid::New(); pGrid->Allocate(pData->GetNumberOfCells()); pGrid->SetPoints(pPoints); pPoints->Delete(); int i; vtkIdList *pIds = vtkIdList::New(); for (i=0; iGetNumberOfCells(); ++i) { if (pData->GetCellType(i) != VTK_TRIANGLE) { vtkGenericWarningMacro(<< "Cell type is " << pData->GetCellType(i)); pIds->Delete(); pGrid->Delete(); pSphere->Delete(); return 1; } pData->GetCellPoints(i, pIds); pIds->InsertNextId(0); pGrid->InsertNextCell(VTK_TETRA, pIds); } pIds->Delete(); vtkSubdivideTetra *pDiv1 = vtkSubdivideTetra::New(); pDiv1->SetInput(pGrid); pGrid->Delete(); vtkSubdivideTetra *pDiv2 = vtkSubdivideTetra::New(); pDiv2->SetInput(pDiv1->GetOutput()); pDiv1->Delete(); pGrid = pDiv2->GetOutput(); pGrid->Update(); pPoints = pGrid->GetPoints(); vtkScalars *pScalars = vtkScalars::New(); pScalars->SetNumberOfScalars(pPoints->GetNumberOfPoints()); for (i=0; iGetNumberOfPoints(); ++i) pScalars->SetScalar(i, pPoints->GetPoint(i)[0]); pGrid->GetPointData()->SetScalars(pScalars); vtkContourGrid *pContour = vtkContourGrid::New(); pContour->GenerateValues(6, pScalars->GetRange()); pContour->SetInput(pGrid); pDiv2->Delete(); vtkFeatureEdges *pEdges = vtkFeatureEdges::New(); pEdges->BoundaryEdgesOn(); pEdges->FeatureEdgesOff(); pEdges->NonManifoldEdgesOff(); pEdges->ManifoldEdgesOff(); pEdges->SetInput(pContour->GetOutput()); vtkTubeFilter *pTube = vtkTubeFilter::New(); pTube->SetNumberOfSides(8); pTube->SetRadius(1.f); pTube->SetVaryRadiusToVaryRadiusOff(); pTube->SetInput(pEdges->GetOutput()); pEdges->Delete(); vtkAppendPolyData *pAppend = vtkAppendPolyData::New(); pAppend->AddInput(pContour->GetOutput()); pAppend->AddInput(pTube->GetOutput()); pContour->Delete(); pTube->Delete(); vtkPolyDataMapper *pMapper = vtkPolyDataMapper::New(); pMapper->SetScalarRange(pScalars->GetRange()); pMapper->SetInput(pAppend->GetOutput()); pScalars->Delete(); pAppend->Delete(); vtkActor *pActor = vtkActor::New(); pActor->SetMapper(pMapper); pMapper->Delete(); vtkRenderer *pRenderer = vtkRenderer::New(); pRenderer->AddActor(pActor); pActor->Delete(); vtkRenderWindow *pWindow = vtkRenderWindow::New(); pWindow->AddRenderer(pRenderer); pRenderer->Delete(); vtkRenderWindowInteractor *pIRen = vtkRenderWindowInteractor::New(); pIRen->SetRenderWindow(pWindow); pWindow->Render(); pWindow->Delete(); pIRen->Start(); pIRen->Delete(); pSphere->Delete(); return 0; } From sebastien at barre.nom.fr Fri May 25 18:37:55 2001 From: sebastien at barre.nom.fr (Sebastien BARRE) Date: Sat, 26 May 2001 00:37:55 +0200 Subject: [vtkusers] cvs module for docs ? (pb with public.kitware.com) Message-ID: <5.1.0.14.2.20010526003404.02ea49f8@pop.fr.clara.net> At 25/05/2001 16:03, anast.jm at pg.com wrote: >Hi, is there a module to get the latest doxygen pages from the cvs?? Thanks, >john I don't think so, but there is a compressed archive generated every night : http://www.barre.nom.fr/vtk/links-doc.html#man-pages (i.e. vtkMan.tar.gz in the nightly FTP) ftp://public.kitware.com/pub/vtk/nightly/vtkMan.tar.gz ftp://public.kitware.com/pub/vtk/nightly At 25/05/2001 17:00, anast.jm at pg.com wrote: >Sebastien...thanks for the link. However when I try to download the >archive...it >starts, places the icon on my desktop and quits..is there a problems with the >archive or should I just try another time?? I guess there is a problem on the server, it was not generated correctly, vtkMan.tar.gz is 1ko. The RPM build is down too. Both might be related to the fact that I moved my doxygen scripts and the related RPM files in the new tree, and there has been some back-sync pb with the old tree. I'll fix that first. Forwarded to the vtk developpers list. From pearu at cens.ioc.ee Sat May 26 17:01:18 2001 From: pearu at cens.ioc.ee (Pearu Peterson) Date: Sat, 26 May 2001 23:01:18 +0200 (EET) Subject: [vtkusers] The order of indexes in tetrahedrons defined in VTK files Message-ID: Hi, I have noticed that the order of indices matters when defining tetrahedrons in a *.vtk file. For example, the two files given below produce differently looking scenes in mayavi (when using SurfaceMap module with opacity set to 0.65). The only difference in these files is the ordering of indices in the CELLS section. In both cases there appear artificial planes (in different places for different ordering cases) that are supported by the sides of the cells. When the grid is more dense, these artificial planes will disturb the scene considerably. My question is: is there any rule about the ordering of the indices such that there will be no artificial planes? Any hints about how to improve the quality of the case is appreciated. Thanks, Pearu File: cells1.vtk # vtk DataFile Version 2.0 A12 ASCII DATASET UNSTRUCTURED_GRID POINTS 7 float 0.0 0.765894022913 1.39781344961 0.497944830482 0.765894022913 1.39781344961 0.0 0.267949192431 1.39781344961 0.0 1.26383885339 1.89575828009 0.995889660964 1.26383885339 1.89575828009 0.0 0.267949192431 1.89575828009 0.0 0.267949192431 0.899868619128 CELLS 4 20 4 0 1 2 6 4 2 3 4 5 4 1 2 3 4 4 0 1 2 3 CELL_TYPES 4 10 10 10 10 POINT_DATA 7 SCALARS Scalars0 float 1 LOOKUP_TABLE default 1.0 3.63890178935e-17 1.0 1.0 1.10259829524e-17 1.0 1.0 File: cells2.vtk # vtk DataFile Version 2.0 A12 ASCII DATASET UNSTRUCTURED_GRID POINTS 7 float 0.0 0.765894022913 1.39781344961 0.497944830482 0.765894022913 1.39781344961 0.0 0.267949192431 1.39781344961 0.0 1.26383885339 1.89575828009 0.995889660964 1.26383885339 1.89575828009 0.0 0.267949192431 1.89575828009 0.0 0.267949192431 0.899868619128 CELLS 4 20 4 6 2 1 0 4 5 4 3 2 4 4 3 2 1 4 3 2 1 0 CELL_TYPES 4 10 10 10 10 POINT_DATA 7 SCALARS Scalars0 float 1 LOOKUP_TABLE default 1.0 3.63890178935e-17 1.0 1.0 1.10259829524e-17 1.0 1.0 From e.leunissen at hccnet.nl Sat May 26 18:41:48 2001 From: e.leunissen at hccnet.nl (Erik Leunissen) Date: Sun, 27 May 2001 00:41:48 +0200 Subject: [vtkusers] rotating 3D plots with VTK Message-ID: <3B10312C.C00DB47F@hccnet.nl> L.S. I'm looking for software which can interactively rotate a 3D plot. The plot data are in a format that is called 'PLOT3D data structure', which is output from MAPLE (a symbolic math engine). - Does this sound familiar? - Is it possible to do this with VTK? Please send a copy of your answer to my e-mail, since I'm not yet using vtk and not yet subscribed to the mailing list. Thanks in advance, Erik Leunissen. From nNunn at ausport.gov.au Sun May 27 02:45:19 2001 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Sun, 27 May 2001 16:45:19 +1000 Subject: [vtkusers] Re: MFC "Sample" and mouse interaction Message-ID: <24962C31F35BD311A1450000F81F32BD051281FA@elmo.ausport.gov.au> Recent reports tell about mouse-interaction problems with the MFC "Sample" when using the precompiled binary on the CD-ROM. However, it seems that console applications work fine. This may indicate the precompiled binary was built for the single-threaded runtime library, and probably also without the flag "VTK_USE_ANSI_STDLIB". MFC applications default to the multi-threaded runtime library. See file "vtkSystemIncludes.h" for further details. Nigel. From prabhu at aero.iitm.ernet.in Sun May 27 04:11:56 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 27 May 2001 13:41:56 +0530 (IST) Subject: [vtkusers] The order of indexes in tetrahedrons defined in VTK files In-Reply-To: References: Message-ID: <15120.46796.438796.363021@monster.linux.in> hi, >>>>> "PP" == Pearu Peterson writes: PP> My question is: is there any rule about the ordering of the PP> indices such that there will be no artificial planes? I am not sure but I guess the normal of a graphics primitive will require some ordering (how else would you define the inside and outside of a surface?). A quick search through the book didnt reveal anything on this but my hunch is that you need to choose a rule consistent with the geometry you are trying to represent. Of course, this is my guess so I could be completely wrong. prabhu From will.schroeder at kitware.com Mon May 28 01:32:34 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 28 May 2001 01:32:34 -0400 Subject: [vtkusers] The order of indexes in tetrahedrons defined in VTK files In-Reply-To: <15120.46796.438796.363021@monster.linux.in> References: Message-ID: <5.0.2.1.0.20010528012322.02700cb0@pop.nycap.rr.com> > > PP> My question is: is there any rule about the ordering of the > PP> indices such that there will be no artificial planes? and >with opacity set to 0.65). The artifacts that you are seeing are due to the fact that you are rendering translucent primitives. In OpenGL (and most hardware-assisted rendering engines), you typically render from back to front. VTK is not ordering the faces of the tetrahedron when you render, so you get the blending artifacts. Changing the indices around just changes the order in which the faces are rendered, but not necessarily to the right order. The filter vtkDepthSortPolyData helps in some cases, but it's a dirty implementations that works best when you have lots of primitives, it won't work very well with such a few tetrahedron. To do it right: create a BSP tree, or order the facets yourself. You can also use a RenderMan compatible renderer to sort the polygons for you during rendering. Will William J. Schroeder, Ph.D. Kitware, Inc. VTK-Based Visualization Solutions 469 Clifton Corporate Parkway Clifton Park, NY 12065 USA will.schroeder at kitware.com http://www.kitware.com 1-518-371-3971 x102 From xujianzhong at 126.com Mon May 28 02:50:36 2001 From: xujianzhong at 126.com (xujianzhong) Date: Mon, 28 May 2001 14:50:36 +0800 Subject: [vtkusers] A bug??? Message-ID: <001e01c0e742$803ccd20$290fa8c0@rockp2.iwhr.com> Hi, For mouse interactions, if you use vtk3.2, you should modify function WindowProc in vtkMFCRenderView.cpp, change the line: return vtkHandleMessage(this->m_hWnd, message, wParam, lParam); into: return vtkHandleMessage2(this->m_hWnd, message, wParam, lParam, this->Interactor); it will be ok, but I also have the problem of perormance when using vtk 3.2. xu jianzhong -----Original Message----- ??????: Shu-Yen Wan ??????: vtkusers at public.kitware.com ????: 2001??5??26?? 2:56 ????: Re: [vtkusers] A bug??? >Hi, > > I haven't got on the vtk messages for quite a while and may have >missed something critical. > > I have the same problem as described in the below message -- >after installing vtk3.2 and rebuilding my VC++6.0 applications, >there shows a message window, warning for some obsolet functions >and all of mouse interactions, e.g., rotating, scaling, picking, do not >work! Moreover, the performance of generating 3D surfaces are >significantly degraded. Is it normal? Or is there a way to get around. > > Any insights or recommendations is appreciated. > >Thanks, > >Shu-Yen >----- Original Message ----- >From: "TzuYi Yu" >To: >Sent: Friday, May 25, 2001 9:21 AM >Subject: [vtkusers] A bug??? > > >> Dear Vtker: >> >> I currently download the vtk 3.2 (the provious one I have is 3.12) >> and install it on my pc (with OS: Window2000, VC++6.0). I use to >> have several VTK applications developed by Visual C++ 6.0, they >> run ok under vtk 3.1. When I install the vtk 3.2, and recompile >> those applications, they compile ok, but when I run the codes, >> they DON'T have any reactions to the mouse -- ie, NO rotation >> nor zoom in/out! I though it must be my fault, and try to see >> what I did in my applications. After spending a lot of time, I >> give up. But I try to see the VC code (located in the Sample >> directory) come with vtk 32. After I compile the Sample code, >> I run it (it work fine), and open the file (the weldedSpheres.vtk), >> then press the mouse trying to rotate / zoom the object -- guess what? >> IT DOES NOT WORK either! But it works fine with vtk3.1 before! >> So, the vtk 3.2 does not support MFC mouse interaction or is it just >> a bug? Or do I make anything wrong? Please help me to solve >> this problem. >> >> Thanks for all helps. >> >> Robert >> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: > >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > From jerome.seneschal at ifrance.com Mon May 28 04:18:06 2001 From: jerome.seneschal at ifrance.com (Jerome Seneschal) Date: Mon, 28 May 2001 10:18:06 +0200 Subject: [vtkusers] delaunay3D References: <001e01c0e742$803ccd20$290fa8c0@rockp2.iwhr.com> Message-ID: <003101c0e74e$b8ff7a70$7f47d686@lisa.cpe.fr> Hi Is there a way to smooth out the mesh generated by Delaunay3D? It generates an Unstructured Grid instead of a PolyData. Thanks Jerome ************************************************* Jerome Seneschal work : seneschal at ieee.org home : seneschal at ifrance.com web : http://seneschal.free.fr ************************************************* ______________________________________________________________________________ ifrance.com, l'email gratuit le plus complet de l'Internet ! vos emails depuis un navigateur, en POP3, sur Minitel, sur le WAP... http://www.ifrance.com/_reloc/email.emailif From will.schroeder at kitware.com Mon May 28 10:35:11 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 28 May 2001 10:35:11 -0400 Subject: [vtkusers] delaunay3D In-Reply-To: <003101c0e74e$b8ff7a70$7f47d686@lisa.cpe.fr> References: <001e01c0e742$803ccd20$290fa8c0@rockp2.iwhr.com> Message-ID: <5.0.2.1.0.20010528103342.0271ba58@pop.nycap.rr.com> Hi Jerome- At 10:18 AM 5/28/2001 +0200, Jerome Seneschal wrote: >Is there a way to smooth out the mesh generated by Delaunay3D? It generates >an >Unstructured Grid instead of a PolyData. There is no vtkSmoothUnstructuredGridFilter (although it would be nice to have one). You can use vtkGeometryFilter to extract the surface (and produce a vtkPolyData) and then smooth that. Will William J. Schroeder, Ph.D. Kitware, Inc. VTK-Based Visualization Solutions 469 Clifton Corporate Parkway Clifton Park, NY 12065 USA will.schroeder at kitware.com http://www.kitware.com 1-518-371-3971 x102 From Oliver.Fleig at univ-rennes1.fr Mon May 28 10:31:38 2001 From: Oliver.Fleig at univ-rennes1.fr (Oliver Fleig) Date: Mon, 28 May 2001 16:31:38 +0200 Subject: [vtkusers] Exporting and importing VTK scenes Message-ID: <01052816313802.17730@pcvideo> Hello! Maybe I missed something, but I don't find straight forward way to save whole vtk scenes on a "per vtkRenderer" or "per vtkRenderWindow" bases and load them back again from one single file. Any help?? Cheers Oliver -- Oliver Fleig Laboratoire IDM (fka SIM) +33 2 99 33 68 63 mailto:Oliver.Fleig at univ-rennes1.fr PGP fingerprint = 9E 33 AC 7D 82 1A AE CC 9C 2B 71 BB CA B7 23 06 http://sim3.univ-rennes1.fr/users/fleig From zangl at ism-austria.at Mon May 28 11:11:31 2001 From: zangl at ism-austria.at (Matthias Zangl) Date: Mon, 28 May 2001 17:11:31 +0200 Subject: [vtkusers] building vtk on pc - link-error: vtklocal.lib is missing Message-ID: <004501c0e788$7b0186c0$7dfea8c0@NOANGELS> Hi! I am trying to build the vtk on my pc so I started with setting up the makefiles with pcmaker. After that I went to the bin-directory and opened the makefiles in my visual-studio and did a build. After about 45 minutes the build stopped with saying "..\lib\vtkLocal.lib couldn't be opened!". Well, its interesting that there is a vtkLocal.dll in the directory but really NO vtklocal.lib... Its strange because I always thought there had to be a lib before there is a dll... But no. The dll is here and the lib isn't... What could be the reason for this? Did I forget anything? It would be great if anyone has an idea for me... Thanx a lot! Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From dverdugo at geocom.cl Mon May 28 12:59:52 2001 From: dverdugo at geocom.cl (Danilo Verdugo) Date: Mon, 28 May 2001 12:59:52 -0400 Subject: [vtkusers] vrml to vtk Message-ID: <01C0E776.18ECC060@DANILO> Hi! I read a file with vtkVRMLImporter, then save with vtkPolyDataWriter (I need the data into vtk format), but this not work.... why? thanks for you help! Danilo Verdugo Ch From fifojuying at 263.net Mon May 28 22:56:42 2001 From: fifojuying at 263.net (=?ISO-8859-1?Q?=BE=CF=D3=B1?=) Date: Tue, 29 May 2001 10:56:42 +0800 Subject: [vtkusers] a error appear in volume rendering using vtkVolumnRayCastMapper Message-ID: <20010529025938.A3930205C7@smtp.263.net> Hi! I am a fresh man for vtk. I write a .vtk by myself, and I want to view it. It is a 3D structured_points data # vtk DataFile Version 2.0 ?????? ASCII DATASET STRUCTURED_POINTS DIMENSIONS 256 256 19 ASPECT_RATIO 1 1 1 ORIGIN 0 0 0 POINT_DATA 1245184 SCALARS volume_scalars unsigned_char 1 LOOKUP_TABLE mytable ........ ........ ........ LOOKUP_TABLE mytable 4 1.0 1.0 1.0 0.0 1.0 0.0 0.0 0.5 0.0 1.0 0.0 0.5 0.0 0.0 1.0 0.5 there are only 0,1,2,3 in the point datas my render program is very simple vtkStructuredPointsReader *reader; reader = vtkStructuredPointsReader::New(); reader->SetFileName("test.vtk"); reader->Update(); vtkPiecewiseFunction *opacityTransferFunction; opacityTransferFunction = vtkPiecewiseFunction::New(); opacityTransferFunction->AddPoint(0 , 0.0); opacityTransferFunction->AddPoint(3 , 0.8); vtkColorTransferFunction *colorTransferFunction; colorTransferFunction = vtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0 , 0.0 , 0.0 , 0.0); colorTransferFunction->AddRGBPoint(1 , 1.0 , 0.0 , 0.0); colorTransferFunction->AddRGBPoint(2 , 0.0 , 1.0 , 0.0); colorTransferFunction->AddRGBPoint(3 , 0.0 , 0.0 , 1.0); vtkVolumeProperty *volumeProperty; volumeProperty = vtkVolumeProperty::New(); volumeProperty->SetColor(colorTransferFunction); volumeProperty->SetScalarOpacity(opacityTransferFunction); //ray cast function vtkVolumeRayCastCompositeFunction *compositeFunction; compositeFunction = vtkVolumeRayCastCompositeFunction::New(); //mappers vtkVolumeRayCastMapper *volumeMapper; volumeMapper = vtkVolumeRayCastMapper::New(); volumeMapper->SetInput(reader->GetOutput()); volumeMapper->SetVolumeRayCastFunction(compositeFunction); //prop (volume actors) vtkVolume *volume; volume = vtkVolume::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); //renderer vtkRenderer *ren1; ren1 = vtkRenderer::New(); //ren1->AddActor(outlineActor); ren1->AddVolume(volume); ren1->SetBackground(0.2 ,0.2 , 0.2); //renderwindow vtkRenderWindow *renWin; renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); renWin->SetSize(256 , 256); //renderwindowinteractor vtkRenderWindowInteractor *iren; iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->Initialize(); renWin->Render(); but when I run the program, I got the error ERROR: In F:\KitwareShared\vtk3.2\vtk-src-windows\graphics\vtkVolumeRayCastMapper.cxx, line 921 vtkVolumeRayCastMapper (0x00832010): The scalar data type: 2 is not supported when volume rendering. Please convert the data to unsigned char or unsigned short. I don't know where is the error from, can you help me? Thank a lot! ju ying fifojuying at 263.net fifojuying at sina.com.cn fifojuying at soim.com fifojuying at hotmail.com From bowang at iastate.edu Mon May 28 23:14:17 2001 From: bowang at iastate.edu (bo wang) Date: Mon, 28 May 2001 22:14:17 -0500 Subject: [vtkusers] a error appear in volume rendering using vtkVolumnRayCastMapper Message-ID: <004801c0e7ed$7543b1d0$4dcfba81@ndelab1.cnde.iastate.edu> Use vtkImageCast to cast your data type in *.vtk to unsigned short. -----Original Message----- From: ?? To: vtk Date: Monday, May 28, 2001 9:58 PM Subject: [vtkusers] a error appear in volume rendering using vtkVolumnRayCastMapper >Hi! > I am a fresh man for vtk. I write a .vtk by myself, and I want to view it. It is a 3D structured_points data > ># vtk DataFile Version 2.0 >???a??2??y?Y >ASCII >DATASET STRUCTURED_POINTS >DIMENSIONS 256 256 19 >ASPECT_RATIO 1 1 1 >ORIGIN 0 0 0 >POINT_DATA 1245184 >SCALARS volume_scalars unsigned_char 1 >LOOKUP_TABLE mytable >........ >........ >........ >LOOKUP_TABLE mytable 4 >1.0 1.0 1.0 0.0 >1.0 0.0 0.0 0.5 >0.0 1.0 0.0 0.5 >0.0 0.0 1.0 0.5 > >there are only 0,1,2,3 in the point datas >my render program is very simple > > vtkStructuredPointsReader *reader; > reader = vtkStructuredPointsReader::New(); > reader->SetFileName("test.vtk"); > reader->Update(); > > vtkPiecewiseFunction *opacityTransferFunction; > opacityTransferFunction = vtkPiecewiseFunction::New(); > opacityTransferFunction->AddPoint(0 , 0.0); > opacityTransferFunction->AddPoint(3 , 0.8); > > vtkColorTransferFunction *colorTransferFunction; > colorTransferFunction = vtkColorTransferFunction::New(); > colorTransferFunction->AddRGBPoint(0 , 0.0 , 0.0 , 0.0); > colorTransferFunction->AddRGBPoint(1 , 1.0 , 0.0 , 0.0); > colorTransferFunction->AddRGBPoint(2 , 0.0 , 1.0 , 0.0); > colorTransferFunction->AddRGBPoint(3 , 0.0 , 0.0 , 1.0); > > vtkVolumeProperty *volumeProperty; > volumeProperty = vtkVolumeProperty::New(); > volumeProperty->SetColor(colorTransferFunction); > volumeProperty->SetScalarOpacity(opacityTransferFunction); > > file://ray cast function > vtkVolumeRayCastCompositeFunction *compositeFunction; > compositeFunction = vtkVolumeRayCastCompositeFunction::New(); > > file://mappers > vtkVolumeRayCastMapper *volumeMapper; > volumeMapper = vtkVolumeRayCastMapper::New(); > volumeMapper->SetInput(reader->GetOutput()); > volumeMapper->SetVolumeRayCastFunction(compositeFunction); > > file://prop (volume actors) > vtkVolume *volume; > volume = vtkVolume::New(); > volume->SetMapper(volumeMapper); > volume->SetProperty(volumeProperty); > > file://renderer > vtkRenderer *ren1; > ren1 = vtkRenderer::New(); > file://ren1->AddActor(outlineActor); > ren1->AddVolume(volume); > ren1->SetBackground(0.2 ,0.2 , 0.2); > > file://renderwindow > vtkRenderWindow *renWin; > renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > renWin->SetSize(256 , 256); > > file://renderwindowinteractor > vtkRenderWindowInteractor *iren; > iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->Initialize(); > > renWin->Render(); > >but when I run the program, I got the error > >ERROR: In F:\KitwareShared\vtk3.2\vtk-src-windows\graphics\vtkVolumeRayCastMapper.cxx, line 921 >vtkVolumeRayCastMapper (0x00832010): The scalar data type: 2 is not supported when volume rendering. Please convert the data to unsigned char or unsigned short. > >I don't know where is the error from, can you help me? Thank a lot! > ju ying > fifojuying at 263.net > fifojuying at sina.com.cn > fifojuying at soim.com > fifojuying at hotmail.com > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > From P.Kiran at geind.ge.com Tue May 29 01:01:10 2001 From: P.Kiran at geind.ge.com (Kiran, P (CORP, GEITC)) Date: Tue, 29 May 2001 10:31:10 +0530 Subject: [vtkusers] Connected Component labelling for 3D points Message-ID: <2025E70FDF44D511918D00508B650D944CA4EA@ban03xbindge.geind.ge.com> Hi VTK gurus, I have a following question on how to do connected component labelling for 3D points (in PolyData). Let, 3D points as shown below: ( In this figure 'X' denotes (x,y,z) point in space) X X X X X X X X X X X X X X X X X X X X X X X X X X Now, I want to label above data points into different sets based on neighbourhood connectivity. Is there any existing algorithms in vtk to do this kind of stuff. Pl. send me some suggestions. Thanks in advance for help. -Kiran From Yogish.Mallya at geind.ge.com Tue May 29 09:21:32 2001 From: Yogish.Mallya at geind.ge.com (Mallya, Yogish (CORP, GEITC)) Date: Tue, 29 May 2001 18:51:32 +0530 Subject: [vtkusers] stacking of 2d slices Message-ID: <2025E70FDF44D511918D00508B650D944F7EC1@ban03xbindge.geind.ge.com> hi folks, I am writing an application that has the following block structure Image Stack-->| 2-D Processing |------>| 3-D Processing |-->output Here I want to process the image stack sequentially (i.e. take single image from the image stack and process it) and stack this processed image so as to form a volume. Then pass this volume to 3-D Processing. Currently I am using vtkImageviewer for sequential processing of image stack. The code somewhat look like this vtkImageViewer viewer viewer SetInput [TwoDProcess GetOutput] set x 0 while { $x < 10 } { viewer SetZSlice $x viewer Render } I would like to know if there is 1. Any class that has will replace the above code, since I don't want vtkImageViewer to perform sequential processing. 2. Any class to stack the output of 2D process . I used vtkImageAppend for stacking, but when I tried to write the output of vtkImageAppend to a file using the vtkImageWriter, the writer seems to re-execute the 2D pipeline by loading the whole image stack in to memory. How can I avoid this execution ? Thanks in advance, Yogish From anast.jm at pg.com Tue May 29 09:48:31 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Tue, 29 May 2001 09:48:31 -0400 Subject: [vtkusers] building vtk on pc - link-error: vtklocal.lib is missing Message-ID: I have seen this error too....most likely because there is nothing to build in the local directory...in PCMaker simply unselect the radio button for Local and that seems to get around the problem. I'm not usre where the vtkLocal.dll came from....john Internet Mail Message Received from host: public.kitware.com [208.136.18.25] From: "Matthias Zangl" @public.kitware.com on 05/28/2001 05:11 PM ZE2 "Matthias Zangl" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] building vtk on pc - link-error: vtklocal.lib is missing Sent by: vtkusers-admin at public.kitware.com 05/28/2001 11:11 AM Hi! I am trying to build the vtk on my pc so I started with setting up the makefiles with pcmaker. After that I went to the bin-directory and opened the makefiles in my visual-studio and did a build. After about 45 minutes the build stopped with saying "..\lib\vtkLocal.lib couldn't be opened!". Well, its interesting that there is a vtkLocal.dll in the directory but really NO vtklocal.lib... Its strange because I always thought there had to be a lib before there is a dll... But no. The dll is here and the lib isn't... What could be the reason for this? Did I forget anything? It would be great if anyone has an idea for me... Thanx a lot! Matthias From Matthieu.Chabanas at imag.fr Tue May 29 10:53:09 2001 From: Matthieu.Chabanas at imag.fr (Matthieu Chabanas) Date: Tue, 29 May 2001 16:53:09 +0200 Subject: [vtkusers] Extracting subset of unstructured grid given cell Ids Message-ID: <3B13B7D5.3C03EF00@imag.fr> Is there any way to extract geometry (cells + points used to define these cells) and associated data given a vtkIdList of cell Ids? I guess it should work like vtkExtractUnstructuredGrid, but with cell Ids instead of Bounding box or clipping plane. Moreover, I would need just shallow copy, so that different vtkUnstructuredGrid use the same vtkPoints. I need this to define several components within a single dataset. One mapper+actor can therefore be defined for each component, then displayed with different properties. Thanks for any help, Matt From ferrant at tele.ucl.ac.be Tue May 29 11:35:20 2001 From: ferrant at tele.ucl.ac.be (Matthieu Ferrant) Date: Tue, 29 May 2001 17:35:20 +0200 Subject: [vtkusers] Scalar bar Message-ID: <3B13C1B8.C8930549@tele.ucl.ac.be> Hi, I am using a scalar bar with values ranging between a negative number and a positive number. In order to be able to easily discriminate between negative and positive values, I would like the 0 scalar to appear next to its corresponding color in the bar. Is it possible to enforce this ? Otherwise, if I use two separate color bars, how do I define the two color look-up tables so they have separate colors joining for a given scalar value ? Also, when shifting from vtk2.4 to vtk3.2 the scalar bar completely messed up the colors, while the actors did not. How do I prevent this from happening ? Any help will be greatly appreciated ! thanks, matt -- M.Ferrant, Ph.D. UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium Tel. +32-10-478073 Fax. : +32-10-472089 http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html From jbiddiscombe at skippingmouse.co.uk Tue May 29 12:12:38 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 29 May 2001 17:12:38 +0100 Subject: [vtkusers] Scalar bar In-Reply-To: <3B13C1B8.C8930549@tele.ucl.ac.be> Message-ID: <5.0.0.25.0.20010529170909.03317af8@mail.btinternet.com> >between negative and positive values, I would like the 0 scalar to >appear next to its corresponding color in the bar. Is it possible to >enforce this ? Otherwise, if I use two separate color bars, how do I Only (AFAIK) by carefully choosing how many labels to display and the range (ie 0->100 with 11 labels, or -50 to +50 with same or whatever), it's a bit hit and miss and could do with some improvement. >Also, when shifting from vtk2.4 to vtk3.2 the scalar bar completely >messed up the colors, while the actors did not. How do I prevent this >from happening ? I might have fixed this recently. Actors (sharing a lookuptable) with different scalarranges were each setting the lookuptable range which in turn made the scalarbar confused and wrong. I didn't touch the scalarbar, but added a flag to the mappers to make them only use the existing lookuptable range. If you are willing to try a nightly release, give it a whirl... ttfn JB From ahmedmm at gega.net Tue May 29 12:40:36 2001 From: ahmedmm at gega.net (Ahmed Mahmoud) Date: Tue, 29 May 2001 19:40:36 +0300 Subject: [vtkusers] vtkPolyData Message-ID: <006501c0e85e$25d41600$5fa367d4@default> Hello All, I have a 3D file I want to access the data attributes. I used this code(vtk 2.3 ) vtkPolyDataReader *reader=vtkPolyDataReader::New(); reader->SetFileName (STUDY); reader->Update (); reader->GetOutput()->ReleaseDataFlagOn(); vtkPolyData *poly =vtkPolyData ::New(); poly = reader ->GetOutput (); vtkScalars * scalar=vtkScalars :: New(); scalar = poly->GetPointData()->GetScalars(); but I found that scalar is NULL . What is the reason? Thank you. Ahmed From jcollins at medipattern.com Tue May 29 16:50:08 2001 From: jcollins at medipattern.com (Jeff Collins) Date: Tue, 29 May 2001 16:50:08 -0400 Subject: [vtkusers] Searching for a full time VTK specialist Message-ID: Hello VTK users; We are searching for a full time Senior VTK specialist. Java and TCL experience an asset. Stock options, benefits etc. Please respond by e-mail to jcollins at medipattern.com . Medipattern is located in Toronto, Ontario, Canada. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 862 bytes Desc: not available URL: From grf at ma.adfa.edu.au Wed May 30 01:50:11 2001 From: grf at ma.adfa.edu.au (Dr Glenn Fulford) Date: Wed, 30 May 2001 15:50:11 +1000 Subject: [vtkusers] (no subject) Message-ID: <01053015532302.00453@rita> Hi, I've been trying to compile vtk version 3.1 without any success: I get an error about a missing library file libXext (see below) however, this file exists: in /usr/X11R6/lib/libXext.so I tried configure --with-tcl --with-mesa --with-shared Can anyone please help? Thanks, Glenn. Entering directory `/home/grf/vtk31/tcl' c++ -o vtk tkAppInit.o \ -L. -g -O2 -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common -I/usr/include -I/usr/include -DVTK_USE_OGLR -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -rdynamic -L/home/grf/vtk31/imaging -lVTKImagingTcl -lVTKImaging -L/home/grf/vtk31/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon -lGL /usr/lib/libtcl8.0.so /usr/lib/libtcl8.0.so -ldl -lpthread \ -lXext -lXt -lX11 -lm /usr/i486-suse-linux/bin/ld: cannot find -lXext collect2: ld returned 1 exit status gmake[1]: *** [vtk] Error 1 gmake[1]: Leaving directory `/home/grf/vtk31/tcl' gmake: *** [build_tcl] Error 2 -- Glenn Fulford +61 2 6268 8897 grf at ma.adfa.edu.au glennfulford at hotmail.com From ferrant at tele.ucl.ac.be Wed May 30 04:11:44 2001 From: ferrant at tele.ucl.ac.be (Matthieu Ferrant) Date: Wed, 30 May 2001 10:11:44 +0200 Subject: [vtkusers] Scalar bar References: <5.0.0.25.0.20010529170909.03317af8@mail.btinternet.com> Message-ID: <3B14AB40.335F8BFC@tele.ucl.ac.be> hi, thanks for your response, John. Something else has been puzzling me for a while with the scalar bar : the first value is always displayed below the scalar bar, it's almost as if the font was subscript. So if you display the scalar bar vertically at position 0 0, you don't see the first label, it lives outside the viewing window. Only thing that seems to do is to display the scalar bar around 0 20, but then it looks pretty odd. Attached is an illustration of this problem. Does anyone know how to lift the labels that are next to the scalar bar ? If someone knows where to modify that in the source code, that's fine too. thanks, matt > >between negative and positive values, I would like the 0 scalar to > >appear next to its corresponding color in the bar. Is it possible to > >enforce this ? Otherwise, if I use two separate color bars, how do I > > Only (AFAIK) by carefully choosing how many labels to display and the range > (ie 0->100 with 11 labels, or -50 to +50 with same or whatever), it's a bit > hit and miss and could do with some improvement. > > >Also, when shifting from vtk2.4 to vtk3.2 the scalar bar completely > >messed up the colors, while the actors did not. How do I prevent this > >from happening ? > > I might have fixed this recently. Actors (sharing a lookuptable) with > different scalarranges were each setting the lookuptable range which in > turn made the scalarbar confused and wrong. I didn't touch the scalarbar, > but added a flag to the mappers to make them only use the existing > lookuptable range. If you are willing to try a nightly release, give it a > whirl... > > ttfn > > JB -- M.Ferrant, Ph.D. UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium Tel. +32-10-478073 Fax. : +32-10-472089 http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html -------------- next part -------------- A non-text attachment was scrubbed... Name: scalbar.gif Type: image/gif Size: 9761 bytes Desc: not available URL: From jbiddiscombe at skippingmouse.co.uk Wed May 30 05:48:07 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 30 May 2001 10:48:07 +0100 Subject: [vtkusers] Scalar bar In-Reply-To: <3B14AB40.335F8BFC@tele.ucl.ac.be> References: <5.0.0.25.0.20010529170909.03317af8@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010530104406.00aee3b8@mail.btinternet.com> >the first value is always displayed below the scalar bar, it's almost as Probably the text is being displayed with vertical alignment on the top left. Inside the scalar bar code, there are text mappers, one for each label, created inside a loop. Probably if you examine the code (I don't know it well enough to advise any better), you can find something that looks suspicious. Unfortunately, unless you are willing to dig deep into the code and do some reworking, there isn't much chance it'll get improved in the short term! (A bit of work might be enough to tidy up the labels and add some "clever" choice over the label formatting etc...) ttfn JB From prabhu at aero.iitm.ernet.in Wed May 30 06:29:42 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 30 May 2001 15:59:42 +0530 (IST) Subject: [vtkusers] (no subject) In-Reply-To: <01053015532302.00453@rita> References: <01053015532302.00453@rita> Message-ID: <15124.52118.534934.694896@monster.linux.in> hi, >>>>> "GF" == Glenn Fulford writes: GF> Hi, I've been trying to compile vtk version 3.1 without any GF> success: I get an error about a missing library file libXext GF> (see below) however, this file exists: in GF> /usr/X11R6/lib/libXext.so GF> I tried configure --with-tcl --with-mesa --with-shared I'd recommend --with-opengl instead of --with-mesa, with accelerated video cards it keeps you from getting into trouble. But if this works for you let it be. GF> Entering directory `/home/grf/vtk31/tcl' c++ -o vtk GF> tkAppInit.o \ -L. -g -O2 -DVTK_USE_PTHREADS GF> -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. GF> -I./../common -I/usr/include -I/usr/include -DVTK_USE_OGLR GF> -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging Strange, there isnt a -L/usr/X11R6/lib anywhere there. Take a look at the file system.make. Does it have a line like so: XLIBS = -L/usr/X11R6/lib ? I guess not. If this line isnt there then you can add this line in your user.make and recompile. prabhu From ferrant at tele.ucl.ac.be Wed May 30 08:25:58 2001 From: ferrant at tele.ucl.ac.be (Matthieu Ferrant) Date: Wed, 30 May 2001 14:25:58 +0200 Subject: [vtkusers] Scalar bar References: <5.0.0.25.0.20010529170909.03317af8@mail.btinternet.com> <5.0.0.25.0.20010530104406.00aee3b8@mail.btinternet.com> Message-ID: <3B14E6D6.C69A530E@tele.ucl.ac.be> hi, I found the line where the textactors are placed along hte scalar bar. It is in vtkScalarBarActor.cxx, line 371 (in my version of VTK) : this->TextActors[i]->SetPosition(barWidth+3, val - sizeTextData[1]/2); val is the corresponding value on the scalar bar. this means the text is shifted down half of its height, but it doesn't look like that. If you change the offset to sizeTextData[1]/4 it looks better for a vertical scalar bar. I determined this quite heuristically, I can't say why /2 is wrong. May be there's a problem with the computation of sizeTextData. Attached is the same bar as before but with the /4 shift. matt John Biddiscombe wrote: > > >the first value is always displayed below the scalar bar, it's almost as > > Probably the text is being displayed with vertical alignment on the top > left. Inside the scalar bar code, there are text mappers, one for each > label, created inside a loop. Probably if you examine the code (I don't > know it well enough to advise any better), you can find something that > looks suspicious. Unfortunately, unless you are willing to dig deep into > the code and do some reworking, there isn't much chance it'll get improved > in the short term! (A bit of work might be enough to tidy up the labels and > add some "clever" choice over the label formatting etc...) > > ttfn > > JB -- M.Ferrant, Ph.D. UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium Tel. +32-10-478073 Fax. : +32-10-472089 http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html -------------- next part -------------- A non-text attachment was scrubbed... Name: scalbar.gif Type: image/gif Size: 4009 bytes Desc: not available URL: From jbiddiscombe at skippingmouse.co.uk Wed May 30 08:52:42 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 30 May 2001 13:52:42 +0100 Subject: [vtkusers] Scalar bar In-Reply-To: <3B14E6D6.C69A530E@tele.ucl.ac.be> References: <5.0.0.25.0.20010529170909.03317af8@mail.btinternet.com> <5.0.0.25.0.20010530104406.00aee3b8@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010530134513.03301b18@mail.btinternet.com> Matthieu, >look like that. If you change the offset to sizeTextData[1]/4 it looks >better for a vertical scalar bar. I determined this quite heuristically, I wonder if its the same for all platforms? Anyone know? My advice would be to tweak as many bits as you think appropriate so that the scalar bar looks better, if nobody objects, we can check in the changes to the main vtk distribution. If you can make the labels come out in the correct place and at 10,20,30,40 instead of 10.56, 20.89, 31.04 by adding a suitable flag (or flags), then I'll vote for it. The secret is to make changes, but ensure that the default action makes it look pretty much as it does now, users can set a flag to make it better. That way it only impacts people if they want it. If it looks a bit different, I will sort out the regression test images etc etc (assuming there are no objections to changes). Anyone else want to chip in with suggestions ... JB At 13:25 30/05/2001, Matthieu Ferrant wrote: >hi, > >I found the line where the textactors are placed along hte scalar bar. >It is in vtkScalarBarActor.cxx, line 371 (in my version of VTK) : > >this->TextActors[i]->SetPosition(barWidth+3, > >val - sizeTextData[1]/2); > >val is the corresponding value on the scalar bar. >this means the text is shifted down half of its height, but it doesn't >look like that. If you change the offset to sizeTextData[1]/4 it looks >better for a vertical scalar bar. I determined this quite heuristically, >I can't say why /2 is wrong. May be there's a problem with the >computation of sizeTextData. Attached is the same bar as before but with >the /4 shift. > >matt > >John Biddiscombe wrote: > > > > >the first value is always displayed below the scalar bar, it's almost as > > > > Probably the text is being displayed with vertical alignment on the top > > left. Inside the scalar bar code, there are text mappers, one for each > > label, created inside a loop. Probably if you examine the code (I don't > > know it well enough to advise any better), you can find something that > > looks suspicious. Unfortunately, unless you are willing to dig deep into > > the code and do some reworking, there isn't much chance it'll get improved > > in the short term! (A bit of work might be enough to tidy up the labels and > > add some "clever" choice over the label formatting etc...) > > > > ttfn > > > > JB > >-- >M.Ferrant, Ph.D. >UCL/TELE Room A-157 Place du Levant, 2 B-1348LLN - Belgium >Tel. +32-10-478073 Fax. : +32-10-472089 >http://www.tele.ucl.ac.be/MEMBERS/Ferrant_Matthieu_e.html From jordi.inglada at cnes.fr Wed May 30 08:49:00 2001 From: jordi.inglada at cnes.fr (Jordi Inglada) Date: Wed, 30 May 2001 14:49:00 +0200 Subject: [vtkusers] ERROR: In vtkMultiThreader.cxx Message-ID: <200105301255.OAA12702@cnes.fr> Hi all, I have compiled vtk3.2 on a sparc SUNW,Ultra-4 with SunOS 5.7, using g++ version 2.95.2 and Mesa 3.4.2. I set the -DVTK_USE_PTHREADS flag. The compilation goes without problem. Now I am trying to port an application that I have developped in Linux with the same versions of vtk and Mesa. All seems to work fine, but at execution time, I get the following message: ERROR: In vtkMultiThreader.cxx, line 368 vtkMultiThreader (0x1d29a8): Unable to create a thread. pthread_create() returned -1 I have searched the mailing-list archive and I found a message saying that if mesa uses pthreads there can be problems. I have checked my mesa library with "nm libGL.so |grep pthread" and I got no hits; I have also tried to compile using the -DVTK_USES_SPROC flag and without pthreads, but compilation fails. Has anybody an idea of how I could deal with this problem (without using OpenGL instead of Mesa)? Thankyou. -- Jordi Inglada - Post Doc CNES - Centre Spatial de Toulouse DSO/OT/QTIS/SR - Bpi 811 18 Av. Edouard Belin 31401 Toulouse Cedex 4 - France Tel: +33 (0)5 61 27 33 97 - Fax: +33 (0)5 61 28 31 09 GSM: +33 (0)6 89 32 92 94 From berk.geveci at kitware.com Wed May 30 09:14:56 2001 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 30 May 2001 09:14:56 -0400 Subject: [vtkusers] ERROR: In vtkMultiThreader.cxx References: <200105301255.OAA12702@cnes.fr> Message-ID: <3B14F250.BB20E85@kitware.com> > Now I am trying to port an application that I have developped in Linux > with the same versions of vtk and Mesa. All seems to work fine, but at > execution time, I get the following message: > > ERROR: In vtkMultiThreader.cxx, line 368 > vtkMultiThreader (0x1d29a8): Unable to create a thread. > pthread_create() returned -1 I don't think this has anything to do with Mesa. The first thing I would try is to write a small program which creates threads without creating a renderer or render window. Preferably one that links only against vtkCommon. If you get the same error, try to create threads using raw pthreads. Let me know the results if you perform these tests. We can have a better idea of what the problem is then. > I have searched the mailing-list archive and I found a message saying > that if mesa uses pthreads there can be problems. I have checked my mesa > library with "nm libGL.so |grep pthread" and I got no hits; I have also > tried to compile using the -DVTK_USES_SPROC flag and without pthreads, > but compilation fails. I doubt Sun would support sproc. It's part of Irix. From warfield at bwh.harvard.edu Wed May 30 09:22:10 2001 From: warfield at bwh.harvard.edu (Simon Warfield) Date: Wed, 30 May 2001 09:22:10 -0400 Subject: [vtkusers] ERROR: In vtkMultiThreader.cxx In-Reply-To: <200105301255.OAA12702@cnes.fr>; from jordi.inglada@cnes.fr on Wed, May 30, 2001 at 02:49:00PM +0200 References: <200105301255.OAA12702@cnes.fr> Message-ID: <20010530092210.B23401@kramnik.bwh.harvard.edu> You are compiling and linking on solaris but not linking with the POSIX threads library. Instead you are getting stubs in libc which is providing a POSIX compliant threads interface which happens to fail on all thread creation attempts. I suggest you link with -lpthread -lthread Sun used to have a bug that simply linking with -lpthread was not sufficient and it isn't clear to me that they have fixed it yet. And while I am making suggestions, I think you will find performance is improved under SunOS 5.7 if you also do a platform specific call to set the number of Light Weight Processes the Sun runtime provides - by default it has really poor behavior. The call you want is something like: thr_setconcurrency(sysconf(_SC_NPROCESSORS_ONLN)) This is assuming you want at least as many threads as CPUs and you want as many LWPs as CPUs and you want the threads to run on different CPUs when that is possible. On Wed, May 30, 2001 at 02:49:00PM +0200, Jordi Inglada wrote: > > Hi all, > > I have compiled vtk3.2 on a sparc SUNW,Ultra-4 with SunOS 5.7, using g++ > version 2.95.2 and Mesa 3.4.2. I set the -DVTK_USE_PTHREADS flag. The > compilation goes without problem. > > Now I am trying to port an application that I have developped in Linux > with the same versions of vtk and Mesa. All seems to work fine, but at > execution time, I get the following message: > > ERROR: In vtkMultiThreader.cxx, line 368 > vtkMultiThreader (0x1d29a8): Unable to create a thread. > pthread_create() returned -1 > > I have searched the mailing-list archive and I found a message saying > that if mesa uses pthreads there can be problems. I have checked my mesa > library with "nm libGL.so |grep pthread" and I got no hits; I have also > tried to compile using the -DVTK_USES_SPROC flag and without pthreads, > but compilation fails. > > Has anybody an idea of how I could deal with this problem (without using > OpenGL instead of Mesa)? > > Thankyou. > > > -- > Jordi Inglada - Post Doc > CNES - Centre Spatial de Toulouse > DSO/OT/QTIS/SR - Bpi 811 > 18 Av. Edouard Belin > 31401 Toulouse Cedex 4 - France > Tel: +33 (0)5 61 27 33 97 - Fax: +33 (0)5 61 28 31 09 > GSM: +33 (0)6 89 32 92 94 > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Simon Warfield, Ph.D. warfield at bwh.harvard.edu Phone:617-732-7090 http://www.spl.harvard.edu/~warfield FAX: 617-582-6033 Thorn 329, Brigham and Women's Hospital, Harvard Medical School Department of Radiology, 75 Francis St, Boston, MA, 02115 From adv_biologic at hotmail.com Wed May 30 09:27:20 2001 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Wed, 30 May 2001 09:27:20 -0400 Subject: [vtkusers] (no subject) Message-ID: G'Day Glenn, You probably want to include the following options ./configure --with-x --with-opengl --with-shared --with-patented --with-contrib --with-local Haven't list the tck options as I don't use tcl. The --with-x options tells ./configure to use the X Windows library. Regards, Audrius >From: Dr Glenn Fulford >Reply-To: grf at ma.adfa.edu.au >To: vtkusers at public.kitware.com >Subject: [vtkusers] (no subject) >Date: Wed, 30 May 2001 15:50:11 +1000 > >Hi, > >I've been trying to compile vtk version 3.1 without any success: I get an >error >about a missing library file libXext (see below) however, this file >exists: > in /usr/X11R6/lib/libXext.so > >I tried configure --with-tcl --with-mesa --with-shared > >Can anyone please help? >Thanks, Glenn. > > > Entering directory `/home/grf/vtk31/tcl' >c++ -o vtk tkAppInit.o \ >-L. -g -O2 -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H >-DHAVE_UNISTD_H -I. >-I./../common -I/usr/include -I/usr/include -DVTK_USE_OGLR > -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING >-rdynamic -L/home/grf/vtk31/imaging -lVTKImagingTcl -lVTKImaging >-L/home/grf/vtk31/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common >-lVTKCommonTcl -lVTKCommon -lGL /usr/lib/libtcl8.0.so >/usr/lib/libtcl8.0.so >-ldl -lpthread \ -lXext -lXt -lX11 -lm /usr/i486-suse-linux/bin/ld: >cannot >find -lXext collect2: ld returned 1 exit status gmake[1]: *** [vtk] Error 1 >gmake[1]: Leaving directory `/home/grf/vtk31/tcl' gmake: *** [build_tcl] >Error >2 > >-- >Glenn Fulford +61 2 6268 8897 >grf at ma.adfa.edu.au glennfulford at hotmail.com > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From zangl at ism-austria.at Wed May 30 09:53:22 2001 From: zangl at ism-austria.at (Matthias Zangl) Date: Wed, 30 May 2001 15:53:22 +0200 Subject: [vtkusers] compiling vtk - out of heap Message-ID: <009301c0e90f$e4ecf690$7dfea8c0@NOANGELS> Hello! I locally compiled the nightly build which I checked out from kitware. The built completed successfully and now I am trying to integrate it in my project. But when trying to start it, I'll get the following message: Kompilierung l?uft... test2.cpp c:\programme\microsoft visual studio\vc98\include\ostream(350) : fatal error C1076: Compiler-Beschraenkung: Interne Heap-Grenze erreicht; Verwenden Sie /Zm, um eine hoehere Grenze anzugeben Fehler beim Ausf?hren von cl.exe. test2.exe - 1 Fehler, 0 Warnung(en) I tried to set the /Zm to the max but it didn't help although I've 512 RAM and up to 1500 MB reserved for the SWAP-File. The test-program works well when I use the header-files from the binary-installation... Hopefully one of you could point me to the right direction... Kindly regards, Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From wmausz at yahoo.com Wed May 30 10:23:38 2001 From: wmausz at yahoo.com (Wilfried Mausz) Date: Wed, 30 May 2001 07:23:38 -0700 (PDT) Subject: [vtkusers] error compiling VTK (vtklocal.lib) Message-ID: <20010530142338.72601.qmail@web11508.mail.yahoo.com> Hello *! I am working with VTK since some days. I have used the Binary distribution for Windows and everything was fine. But we need to compile VTK on our own and so I checked out the whole VTK source from the CVS and build everything using Microsoft Visual C++ 6.0. I got one problem with VtkLocal.lib. VtkLocal.Dll was created successfully, but the .lib was missing. I suppose the reason for it is, that the only .cpp file for the VtkLocal.lib is empty. So I did not use the makefile in the vtk\bin directory which just includes all the other makefiles. I build it using the makefiles from the vtkdll, vtktcl etc. - directories. This seemed to work. But why? What is diffenent when creating everything via the makefiles of the subprojects? Does anybody have an other workaround for that problem? Bye, Wilfried __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From zangl at ism-austria.at Wed May 30 10:45:44 2001 From: zangl at ism-austria.at (Matthias Zangl) Date: Wed, 30 May 2001 16:45:44 +0200 Subject: [vtkusers] collission-detection for vtk Message-ID: <00a201c0e917$35d3da90$7dfea8c0@NOANGELS> Hi! I am looking for a collission-detection library for the vtk. I had a look on some 3rd-party-libs (like solid, swift, vclip). It seems that I've to mirror the data-structure from the vtk to the used collission-detection-lib (similiar to vtkActorToPF). As you can imagine this wouldn't improve the performance. Does anyone of you know if there is a special collission-detection based on the data-types/data-structure of the vtk. Any hints are greatly appreciated! Thanks! Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From wmausz at yahoo.com Wed May 30 10:45:00 2001 From: wmausz at yahoo.com (Wilfried Mausz) Date: Wed, 30 May 2001 07:45:00 -0700 (PDT) Subject: [vtkusers] error compiling vtk c++ examples (heap space) Message-ID: <20010530144500.20995.qmail@web11502.mail.yahoo.com> Hello *! I wanted to compile the VTK C++ examples. It was no problem to create them when I was using the binary distribution of VTK. But now I habe downloaded the source from the VTK CVS and build it on my own. The TCL and Python examples work well. But when I compile the C++ examples (with MS Visual C++ 6.0) I get a compiler error: fatal error C1076: internal heap limit reached; use /Zm to specify a higher limit When I use /Zm700 it compiles. But this can't be a serious solution. All the include directories are correctly set. Does anybody know this problem? What could i try to do? Bye, Wilfried __________________________________________________ Do You Yahoo!? Get personalized email addresses from Yahoo! Mail - only $35 a year! http://personal.mail.yahoo.com/ From zangl at ism-austria.at Wed May 30 10:49:03 2001 From: zangl at ism-austria.at (Matthias Zangl) Date: Wed, 30 May 2001 16:49:03 +0200 Subject: [vtkusers] deformable objects with vtk Message-ID: <00ad01c0e917$ac74cfb0$7dfea8c0@NOANGELS> Hello everybody, furthermore I am wondering if there already exists a library for deformable objects (mass-spring, finite elements, linked elements) for use with the vtk. Or what could be a good point for starting doing this myself??? Maybe someone has a good idea or already solved this problem... Thanks, Matthias -------------- next part -------------- An HTML attachment was scrubbed... URL: From heiland at ncsa.uiuc.edu Wed May 30 11:19:35 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Wed, 30 May 2001 10:19:35 -0500 Subject: [vtkusers] vtkPanel.java for Windows Message-ID: <1010530101935.ZM10127@sangamon.ncsa.uiuc.edu> I was wondering if there is a vtkPanel.java that doesn't rely on X? To date, I've only used this class on Unix/Linux, and it had an X11 dependency. Could someone send me or point me to one that works on Windows (pls do not send as an attachment). thanks, Randy From zangl at ism-austria.at Wed May 30 11:22:47 2001 From: zangl at ism-austria.at (Matthias Zangl) Date: Wed, 30 May 2001 17:22:47 +0200 Subject: [vtkusers] missing defines in headers Message-ID: <00ba01c0e91c$6311c940$7dfea8c0@NOANGELS> Hi , Well, I just searching for the problem of exceeding the heap size and I am wondering now, why some header-files doesn't have a define to prevent to be included twice. Does anyone have an idea about this? .05.2001 17:16 2.293 vtk.h 30.05.2001 17:16 5.460 vtk3DS.h 30.05.2001 17:16 6.238 vtkCommon.h 30.05.2001 17:16 148 vtkConfigure.h 30.05.2001 17:16 3.265 vtkContrib.h 30.05.2001 10:44 3.071 vtkgluPickMatrix.h 30.05.2001 17:16 11.514 vtkGraphics.h 30.05.2001 17:16 5.918 vtkImaging.h 30.05.2001 10:35 4.796 vtkJavaAwt.h 30.05.2001 17:16 2.513 vtkPatented.h 30.05.2001 17:16 5.820 vtkPythonUtil.h 30.05.2001 17:16 1.135 vtkQuartzBridge.h 30.05.2001 17:16 491 vtkQuartzGLView.h 30.05.2001 17:16 658 vtkQuartzWindow.h 30.05.2001 17:16 754 vtkQuartzWindowController.h 30.05.2001 17:16 236 vtkToolkits.h Thanks! Matt -------------- next part -------------- An HTML attachment was scrubbed... URL: From laurent.cornabe at laseyne.principia.fr Wed May 30 14:05:23 2001 From: laurent.cornabe at laseyne.principia.fr (CORNABE Laurent) Date: Wed, 30 May 2001 18:05:23 +0000 Subject: [vtkusers] VTK and IGES format Message-ID: <3B153663.7DE541A@laseyne.principia.fr> Hi, I want to visualize an IGES image with VTK. Can I do it and how ? Thank you for your response. Laurent CORNABE ------------- PRINCIPIA RD France From weiguang at schrodinger.com Wed May 30 12:51:09 2001 From: weiguang at schrodinger.com (Weiguang Guan) Date: Wed, 30 May 2001 09:51:09 -0700 (PDT) Subject: [vtkusers] Building vtk with only python binding Message-ID: Hi, When I was trying to build vtk on Tru64 with only python binding. After configuring it in this way, I started build with just "make" command. It ended up with error, saying "Don't know how to make libCommonTcl.a". But I didn't choose --with-tcl option in configure. Does python binding need tcl things? Weiguang -- Weiguang Guan, Schrodinger Inc | Email: weiguang at schrodinger.com Tel: 503-299-1150 ext. 128 (O) From bayley at me.queensu.ca Wed May 30 15:51:00 2001 From: bayley at me.queensu.ca (Chris Bayley) Date: Wed, 30 May 2001 15:51:00 -0400 Subject: [vtkusers] vtkXYPlotActor and Linux Message-ID: <01053015583700.01545@tremblant> Hello fellow vtkers I am having problems running the examples files which use vtkXYplotactors in both /imaginig/examplesTcl/xyplot.tcl and plot.tcl in the same directory. The examples work fine under Windows, but under Linux I am getting the following X_window errors: vtk xyPlot.tcl Loading required GL library /usr/X11R6/lib/libGL.so.1.2.030400 X Error of failed request: BadGC (invalid GC parameter) Major opcode of failed request: 56 (X_ChangeGC) Resource id in failed request: 0x80ed8a8 Serial number of failed request: 1251 Current serial number in output stream: 1253 When I comment out the call to the vtkRenderWindow into which the vtkXYplotactors are drawing into, then everything works fine. Are there known problems with vtkXYplotActors? if so how do I fix them? Thanks Chris From joey at phobos.space.swri.edu Wed May 30 17:41:43 2001 From: joey at phobos.space.swri.edu (Joey Mukherjee) Date: Wed, 30 May 2001 16:41:43 -0500 (CDT) Subject: [vtkusers] Cygwin and VTK and X Message-ID: <200105302145.f4ULjBH11860@phobos.space.swri.edu> I am trying to build VTK using Cygwin; however, I want it to use the X interface and not the native Windows interface. The reason for this is that I am porting a X/Motif application and I would like to keep the interface the same. Is this possible? Has anyone done it? Basically all the X OpenGL calls will be mapped to the Native Windows ones by Cygwin so all I need is for configure to think its on a unix workstation instead of a windows one. Thanks, Joey +--------------------------------------------------------------------------+ + Joey Mukherjee + + joey at swri.org "The price of freedom is eternal + + vigilance, or $12.50 as seen on + + http://www.space.swri.edu/~joey EBay... + + + +--------------------------------------------------------------------------+ From jonesde at rainbow.es.dupont.com Wed May 30 17:47:03 2001 From: jonesde at rainbow.es.dupont.com (David E. Jones) Date: Wed, 30 May 2001 17:47:03 -0400 Subject: [vtkusers] Multiple Viewports Bug Message-ID: <3B156A56.D0D3C061@rainbow.es.dupont.com> We use an application with muliple viewports that I wrote. This program won't work on an HP Windows 2000 system but it has run on every other system. In addition, the splines.tcl example which is in graphics/examplesTcl doesn't work. The only curve that is drawn when we run splines.tcl is the one in the lower right viewport. Also, I've included a very simple program which I wrote which doesn't work. It's called rects.tcl and it's supposed to draw a red viewport on the left and a blue viewport on the right. Instead it draws nothing on the left (i.e. a black background) and a red viewport on the right. We are using vtk 3.2: vtk version 3.2.0, vtk source $Revision: 1.717 $, $Date: 2000/12/13 16:56:19 $ (GMT)3.2: The computer is an HP PC (Vectra) Intel Pentium 4 CPU 130,544 KB RAM with Microsoft Windows 2000 5.00.2195 Service Pack 1. The graphics on PCI bus 1 is by Matrox Millennium G450 Dual Head - English with the driver g400m.sys. Have anyone else had a similar problem ? Is there someone with a computer like the one described above who could try running splines.tcl and/or rects.tcl Thanks in advance, Dave David Jones DuPont Central Research Wilmington, DE -------------- rects.tcl ---------------------------- catch {load vtktcl} vtkRenderer ren3 vtkRenderer ren4 vtkRenderWindow renWin renWin AddRenderer ren3 renWin AddRenderer ren4 vtkRenderWindowInteractor iren iren SetRenderWindow renWin renWin SetSize 700 700 ren3 SetBackground 1 0 0 ren4 SetBackground 0 0 1 ren3 SetViewport 0 0 .5 1 ren4 SetViewport .5 0 1 1 iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize wm withdraw . ----------------------------------------- From jonesde at rainbow.es.dupont.com Wed May 30 17:52:49 2001 From: jonesde at rainbow.es.dupont.com (David E. Jones) Date: Wed, 30 May 2001 17:52:49 -0400 Subject: [vtkusers] Multiple Viewports Bug Message-ID: <3B156BB1.A370845@rainbow.es.dupont.com> We use an application with muliple viewports that I wrote. This program won't work on an HP Windows 2000 system but it has run on every other system. In addition, the splines.tcl example which is in graphics/examplesTcl doesn't work. The only curve that is drawn when we run splines.tcl is the one in the lower right viewport. Also, I've included a very simple program which I wrote which doesn't work. It's called rects.tcl and it's supposed to draw a red viewport on the left and a blue viewport on the right. Instead it draws nothing on the left (i.e. a black background) and a red viewport on the right. We are using vtk 3.2: vtk version 3.2.0, vtk source $Revision: 1.717 $, $Date: 2000/12/13 16:56:19 $ (GMT)3.2: The computer is an HP PC (Vectra) Intel Pentium 4 CPU 130,544 KB RAM with Microsoft Windows 2000 5.00.2195 Service Pack 1. The graphics on PCI bus 1 is by Matrox Millennium G450 Dual Head - English with the driver g400m.sys. Have anyone else had a similar problem ? Is there someone with a computer like the one described above who could try running splines.tcl and/or rects.tcl Thanks in advance, Dave David Jones DuPont Central Research Wilmington, DE -------------- rects.tcl ---------------------------- catch {load vtktcl} vtkRenderer ren3 vtkRenderer ren4 vtkRenderWindow renWin renWin AddRenderer ren3 renWin AddRenderer ren4 vtkRenderWindowInteractor iren iren SetRenderWindow renWin renWin SetSize 700 700 ren3 SetBackground 1 0 0 ren4 SetBackground 0 0 1 ren3 SetViewport 0 0 .5 1 ren4 SetViewport .5 0 1 1 iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize wm withdraw . ----------------------------------------- -- David E Jones Du Pont Central Research Experimental Station, Bldg 320 Wilmington, DE 19880-0320 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Wed May 30 19:43:58 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 31 May 2001 00:43:58 +0100 Subject: [vtkusers] Memory usage and ReleaseDataFlag Message-ID: <5.0.0.25.0.20010531004121.00afcb58@mail.btinternet.com> Part1) If a filter outputs a dataset and filter->SetReleaseDataFlag is true and the output is used as an input to multiple filters. Should the data only be released when all filters consuming the output have updated. I seem to be getting multiple updates and trouble. part 2) An image filter outputting an image which is passed into vtkTexture can't have ReleaseDataFlag(1) can it? Otherwise the texture reexecutes on every render. True or false (true from where I'm sitting, but I don't really believe it). Have I done something wrong. Thanks JB From prabhu at aero.iitm.ernet.in Thu May 31 02:48:30 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 31 May 2001 12:18:30 +0530 (IST) Subject: [vtkusers] vtkXYPlotActor and Linux In-Reply-To: <01053015583700.01545@tremblant> References: <01053015583700.01545@tremblant> Message-ID: <15125.59710.729437.683743@monster.linux.in> hi, >>>>> "CB" == Chris Bayley writes: CB> Hello fellow vtkers I am having problems running the examples CB> files which use vtkXYplotactors in both CB> /imaginig/examplesTcl/xyplot.tcl and plot.tcl in the same CB> directory. The examples work fine under Windows, but under CB> Linux I am getting the following X_window errors: Well, it works for me under linux $ ../../tcl/vtk xyPlot.tcl no problems at all. I am using the following: >>> from vtkpython import * >>> a = vtkVersion() >>> a.GetVTKSourceVersion () 'vtk version 3.2.0, vtk source $Revision: 1.870 $, $Date: 2001/05/25 00:04:26 $ (GMT)' prabhu From will.schroeder at kitware.com Thu May 31 07:18:55 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 31 May 2001 07:18:55 -0400 Subject: [vtkusers] Memory usage and ReleaseDataFlag In-Reply-To: <5.0.0.25.0.20010531004121.00afcb58@mail.btinternet.com> Message-ID: <5.0.2.1.0.20010531071211.01ce0258@pop.nycap.rr.com> Hi John- Interesting questions. At 12:43 AM 5/31/2001 +0100, you wrote: >Part1) >If a filter outputs a dataset and >filter->SetReleaseDataFlag is true >and the output is used as an input to multiple filters. Should the data >only be released when all filters consuming the output have updated. I >seem to be getting multiple updates and trouble. In the old days, the number of consumers using the output of a filter was unknown. Therefore, the data was always released once any filter using the data object was done with it. It was up to the user to manually set the release data flag to cache branching situations and prevent reexecution. Ken recently added a list of consumers to the output data objects. Now It might be possible to set up some machinery to keep track of when all consumers finish with the data and then release at that point. >part 2) >An image filter outputting an image which is passed into vtkTexture can't >have ReleaseDataFlag(1) can it? Otherwise the texture reexecutes on every >render. True or false (true from where I'm sitting, but I don't really >believe it). Have I done something wrong. I'm not sure about this. Will William J. Schroeder, Ph.D Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 1-518-371-3971 (fax) From volpecr at crd.ge.com Thu May 31 10:24:35 2001 From: volpecr at crd.ge.com (Volpe, Christopher R (CRD)) Date: Thu, 31 May 2001 10:24:35 -0400 Subject: [vtkusers] Cygwin and VTK and X Message-ID: Cygwin emulates an X server now? I would have figured you'd need Hummingbird Exceed, or something similar, for that part of the job. |> -----Original Message----- |> From: Joey Mukherjee [mailto:joey at phobos.space.swri.edu] |> Sent: Wednesday, May 30, 2001 5:42 PM |> To: vtkusers at public.kitware.com |> Subject: [vtkusers] Cygwin and VTK and X |> |> |> I am trying to build VTK using Cygwin; however, I want it to |> use the X interface |> and not the native Windows interface. |> |> The reason for this is that I am porting a X/Motif |> application and I would like |> to keep the interface the same. |> |> Is this possible? Has anyone done it? Basically all the X |> OpenGL calls will be |> mapped to the Native Windows ones by Cygwin so all I need is |> for configure to |> think its on a unix workstation instead of a windows one. |> |> Thanks, |> Joey |> |> +------------------------------------------------------------ |> --------------+ |> + Joey Mukherjee |> + |> + joey at swri.org "The price of freedom |> is eternal + |> + vigilance, or $12.50 |> as seen on + |> + http://www.space.swri.edu/~joey EBay... |> + |> + |> + |> +------------------------------------------------------------ |> --------------+ |> |> |> |> _______________________________________________ |> This is the private VTK discussion list. |> Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From lisa.avila at kitware.com Thu May 31 11:03:52 2001 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Thu, 31 May 2001 11:03:52 -0400 Subject: [vtkusers] Memory usage and ReleaseDataFlag In-Reply-To: <5.0.0.25.0.20010531004121.00afcb58@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010531110010.01cb41e0@pop.nycap.rr.com> Hello John, The ReleaseDataFlag is for the input, not the output of a filter. If you have a filter A that provides output that is connected to multiple filters B, C, and D, then you can have the ReleaseDataFlag on for filter A, but you have to be careful with B, C, and D. The ReleaseDataFlag is most useful when you know your pipeline will execute once (or quite infrequently at least). In that case, you can manually call update on B and C, then have the ReleaseDataFlag on for D and call update on that one last. You should have no problem having the ReleaseDataFlag on for a filter supplying data to a vtkTexture. Of course, the above is "how it should work" and it is possible that you have encountered a bug. Lisa At 07:43 PM 5/30/2001, John Biddiscombe wrote: >Part1) >If a filter outputs a dataset and >filter->SetReleaseDataFlag is true >and the output is used as an input to multiple filters. Should the data >only be released when all filters consuming the output have updated. I >seem to be getting multiple updates and trouble. > >part 2) >An image filter outputting an image which is passed into vtkTexture can't >have ReleaseDataFlag(1) can it? Otherwise the texture reexecutes on every >render. True or false (true from where I'm sitting, but I don't really >believe it). Have I done something wrong. > >Thanks > >JB > > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From volpecr at crd.ge.com Thu May 31 23:18:11 2001 From: volpecr at crd.ge.com (Volpe, Christopher R (CRD)) Date: Thu, 31 May 2001 23:18:11 -0400 Subject: [vtkusers] Why all this data releasing every Update? Message-ID: I notice that every time an Update() is done, a source calls PrepareForNewData() on its output, which in turn is mapped to an Initialize() call (except for image data, which decides it doesn't want to free and re-allocate a huge chunk of data, so it overrides this). I'm wondering why this is done at all. What is the rationale behind deallocating everything by default at each Update(), and what is the justification for why this rationale doesn't apply to vtkImageData? I ask now because I just came across an apparent bug in my own subclass of vtkDataObject, in which my own Allocate() routine keeps track of the number of data arrays allocated in the vtkFieldData component, and adds new data arrays as necessary each time Allocate() is called. Apparently, the fact that my internal count of the number of existing data arrays differed from when the FieldData actually had (zero, after PrepareForNewData()), didn't manifest itself until Berk's recent improvements to the FieldData API. I just discovered all this data freeing in the process of tracking down my bug. I'm thinking of doing something along the lines of what vtkImageData does (i.e. subvert the data freeing process). But rather than going through and Register()ing all the data arrays, calling Initialize, and then adding them back into the field data, I'm thinking of just using an alternate implementation of vtkDataObject's Initialize method, one which simply refrains from passing Initialize() along to the FieldData. Would taking this approach cause pipeline problems anywhere? (If not, then why release all the field data arrays in the first place?) thanks, Chris > GE Corporate Research & Development > ___________________________________________________________________________________________________ > _______________________________________________ > Christopher R. Volpe Computer Scientist Visual Information Program Bldg KW, Room C215 P.O. Box 8, Schenectady, NY 12301 (518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981 e-mail: volpecr at crd.ge.com web: http://www.crd.ge.com/~volpecr From jbiddiscombe at skippingmouse.co.uk Thu May 31 07:38:31 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 31 May 2001 12:38:31 +0100 Subject: [vtkusers] Memory usage and ReleaseDataFlag In-Reply-To: <5.0.2.1.0.20010531071211.01ce0258@pop.nycap.rr.com> References: <5.0.0.25.0.20010531004121.00afcb58@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010531123454.032fd658@mail.btinternet.com> >Ken recently added a list of consumers to the output data objects. Now It >might be possible to set up some machinery to keep track of when all >consumers finish with the data and then release at that point. I noticed this and wondered the same. Shouldn't be all that difficult to do. simply set a flag to 1 for each consumer that has "collected" the data and when all are 1 release. Flags get reset to 0 when execution happens. (Modify ShouldIReleaseData() to check flags in consumer array) >>An image filter outputting an image which is passed into vtkTexture can't >>have ReleaseDataFlag(1) >I'm not sure about this. I'll double check I didn't make a mistake. I was experimenting with lots of stuff... JB From jbiddiscombe at skippingmouse.co.uk Thu May 31 14:03:22 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 31 May 2001 19:03:22 +0100 Subject: [vtkusers] Memory usage and ReleaseDataFlag In-Reply-To: <5.0.0.25.0.20010531110010.01cb41e0@pop.nycap.rr.com> References: <5.0.0.25.0.20010531004121.00afcb58@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010531185713.00af5840@mail.btinternet.com> >The ReleaseDataFlag is for the input, not the output of a filter. If you >have a filter A that Quite right. But when you call Filter->SetReleaseData(1), it loops over its outputs and sets the flag to 1. When it finishes updating, it loops over its inputs and calls ReleaseData Its easy to get confused when firing off an email :) >You should have no problem having the ReleaseDataFlag on for a filter >supplying data to a vtkTexture. I have checked my stuff and the image was being used by a texture as expected, but I forgot that I was inputting the image to my texture coordinate generator and it was releasing the image. Apologies for false alarm. Thanks JB