From s.maheswaran@eastman.ucl.ac.uk Sun Aug 25 14:31:00 2002 From: s.maheswaran@eastman.ucl.ac.uk (Satheesh Maheswaran) Date: Sun, 25 Aug 2002 14:31:00 +0100 Subject: [vtkusers] vtkPanel Message-ID: <000201c24c3b$a6b22770$77345290@edisatheesh> This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C24C44.08768F70 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi vtkGurus I am using vtk(cvs) with Java on Windows XP platform. I also use vtkPanel, I want to be able to write my scene to a tiff format image using the usual vtkWindowToImageFilter and then vtkTiffWriter So far so good, but with vtkPanel I can not do the following w2if.SetInput(renWin3D); because renWin3D is not actually a vtkRenderWindow, its vtkPanel Is there anyway, I can get around this problem in java Thanks Satheesh ------=_NextPart_000_0003_01C24C44.08768F70 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi vtkGurus

I am using vtk(cvs) with Java on Windows XP platform.  I = also use vtkPanel, I want to be able to write my scene to a tiff format image using the = usual vtkWindowToImageFilter and then vtkTiffWriter

So far so good, but with vtkPanel I can not do the = following

w2if.SetInput(renWin3D);

because renWin3D is not actually a = vtkRenderWindow, its vtkPanel

Is there anyway, I can get around this problem in java

Thanks

Satheesh

------=_NextPart_000_0003_01C24C44.08768F70-- From alear@cns.montana.edu Thu Aug 1 00:20:41 2002 From: alear@cns.montana.edu (Alex Lear) Date: Wed, 31 Jul 2002 17:20:41 -0600 Subject: [vtkusers] Actors disappearing on zoom - Video! Message-ID: <000a01c238e8$e39e84a0$73b25a99@ALEXWORKSTATION> Hello, I have about 1000 actors that make up a branch structure. As I zoom away from them they seem to disappear depending on their size. It doesn't seem to be a clipping issue because they don't seem to disappear depending on placement but by size. If someone knows how to stop this disappearing I would like to know. I have made a movie of this and posted it at http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. Sorry about the size but it needed to be large and good quality to see this problem. Thanks for helping and any help is appreciated. Alex Lear From David.Pont@ForestResearch.co.nz Thu Aug 1 01:04:22 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 1 Aug 2002 12:04:22 +1200 Subject: [vtkusers] Actors disappearing on zoom - Video! Message-ID: Hi Alex, I just can't resist a good movie... Is this a lighting effect? The branches seem to become increasingly shaded until they merge with the black background. Have you set up a positioned light source instead of the default 'headlight'? Would a white background clarify if black shading is making the branches disappear? The branch size effect may be due to resolution in the shading calculations. As you zoom out, a branch surface decreases towards being a just pixel or so wide 'on-screen', and its averaged surface normal may point further and further away from the camera. just guessing, Dave Pont "Alex Lear" To: "vtk users" Sent by: cc: vtkusers-admin@public.k Subject: [vtkusers] Actors disappearing on zoom - Video! itware.com 01/08/2002 11:20 Hello, I have about 1000 actors that make up a branch structure. As I zoom away from them they seem to disappear depending on their size. It doesn't seem to be a clipping issue because they don't seem to disappear depending on placement but by size. If someone knows how to stop this disappearing I would like to know. I have made a movie of this and posted it at http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. Sorry about the size but it needed to be large and good quality to see this problem. Thanks for helping and any help is appreciated. Alex Lear _______________________________________________ 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 helmut.ebner@profactor.at Thu Aug 1 10:08:24 2002 From: helmut.ebner@profactor.at (Ebner Helmut) Date: Thu, 1 Aug 2002 11:08:24 +0200 Subject: [vtkusers] plane approximation Message-ID: <91F8F22D85BFD411B13B000102B35995A1A5E6@mailsrv.int.profactor.at> How can i get the best fitting plane through many 3D points? From L.J.vanRuijven@amc.uva.nl Thu Aug 1 14:08:43 2002 From: L.J.vanRuijven@amc.uva.nl (CPBuid: ljvanruijven) Date: Thu, 1 Aug 2002 15:08:43 +0200 Subject: [vtkusers] RE: plane approximation Message-ID: <200208011307.PAA01950@mekka.amc.uva.nl> Hi Ebner, For every point x,y,z calculate xx, xy, xz, yy, yz and zz. Add all terms, and put the sums in a symmetric 3 by 3 matrix (xx,xy,xz; xy,yy,yz; xz,yz,zz). This matrix represents an ellipsoid whose shape corresponds with the shape of your points. From this matrix you can calculate the eigenvalues and eigenvectors (see vtkMath). These eigenvectors and eigenvalues define the directions and lengths of the main axes of this ellipsoid. The vectors belonging to the largest eigenvalues give you the orientation of the requested plane. The position of the plane is determined by the centriod of your points. Leo van Ruijven From anast.jm@pg.com Thu Aug 1 14:41:01 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 1 Aug 2002 09:41:01 -0400 Subject: [vtkusers] build vtk with ANSI STDLIB collision probs Message-ID: One of the Insight examples requires a vtk build with VTK_USE_ANSI_STDLIB turned on. When I try to build this way (7/30 CVS update, release build WinNT VC 6.0) I get some library collisions that the VC compiler complains about. These are associated with vtkOpenGLVolumeProVG500Mapper.cxx vtkVolumeProMapper.cxx and vtkRenderingInstantiator7.cxx The errors are below (sorry for the length). Does anyone know how to cure this?? The build goes smoothly with no problems running vtk with this option turned off. Thanks, john ======================================= vtkOpenGLVolumeProVG500Mapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' ==================================== vtkVolumeProMapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(35) : error C2511: 'CollectRevisions' : overloaded member function 'void (class ostream &)' not found in 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(198) : error C2511: 'PrintSelf' : overloaded member function 'void (class ostream &,class vtkIndent)' not found in 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' vtkVolumeProVG500Mapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProVG500Mapper.cxx(33) : error C2664: 'CollectRevisions' : cannot convert parameter 1 from 'class ostream' to 'class std::basic_ostream > &' A reference that is not to 'const' cannot be bound to a non-lvalue ========================================== vtkRenderingInstantiator7.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' From billlist@nycap.rr.com Thu Aug 1 14:58:01 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Thu, 01 Aug 2002 09:58:01 -0400 Subject: [vtkusers] build vtk with ANSI STDLIB collision probs In-Reply-To: Message-ID: <5.0.2.1.0.20020801095510.0189d2a8@pop.nycap.rr.com> The problem is in the vli.h header files. They #include the old style stream classes. You can remove the #include from the vli.h file, and remove the friend functions that use ostream, and it should work. So, remove these lines from vli.h: #include VLIEXPORT friend ostream & operator << ( ostream &, const VLIVector2D & ); VLIEXPORT friend ostream & operator << ( ostream &, const VLIVector3D & ); VLIEXPORT friend ostream & operator << ( ostream &, const VLIMatrix & ); -Bill At 09:41 AM 8/1/2002 -0400, anast.jm@pg.com wrote: >One of the Insight examples requires a vtk build with VTK_USE_ANSI_STDLIB >turned on. When I try to build this way (7/30 CVS update, release build WinNT VC >6.0) I get some library collisions that the VC compiler complains about. These >are associated with >vtkOpenGLVolumeProVG500Mapper.cxx >vtkVolumeProMapper.cxx and >vtkRenderingInstantiator7.cxx > >The errors are below (sorry for the length). Does anyone know how to cure this?? The build goes smoothly with no problems running vtk with this option turned >off. >Thanks, john > > >======================================= >vtkOpenGLVolumeProVG500Mapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' > >==================================== >vtkVolumeProMapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(35) : error C2511: 'CollectRevisions' : overloaded member function 'void (class ostream &)' not found in >'vtkVolumeProMapper' > P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(198) : error C2511: 'PrintSelf' : overloaded member function 'void (class ostream &,class vtkIndent)' not >found in 'vtkVolumeProMapper' > P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' >vtkVolumeProVG500Mapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProVG500Mapper.cxx(33) : error C2664: 'CollectRevisions' : cannot convert parameter 1 from 'class ostream' to 'class >std::basic_ostream > &' > A reference that is not to 'const' cannot be bound to a non-lvalue > >========================================== >vtkRenderingInstantiator7.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' > >_______________________________________________ >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@kitware.com Thu Aug 1 16:36:31 2002 From: lisa.avila@kitware.com (Lisa Avila) Date: Thu, 01 Aug 2002 11:36:31 -0400 Subject: [vtkusers] Actors disappearing on zoom - Video! In-Reply-To: <000a01c238e8$e39e84a0$73b25a99@ALEXWORKSTATION> Message-ID: <5.1.0.14.0.20020801113553.032e1dd0@pop.nycap.rr.com> Hello Alex, Try removing the default culler from the renderer - it is perhaps throwing away small actors incorrectly. Lisa At 07:20 PM 7/31/2002, Alex Lear wrote: >Hello, I have about 1000 actors that make up a branch structure. As I zoom >away from them they seem to disappear depending on their size. It doesn't >seem to be a clipping issue because they don't seem to disappear depending >on placement but by size. If someone knows how to stop this disappearing I >would like to know. I have made a movie of this and posted it at >http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. >Sorry about the size but it needed to be large and good quality to see this >problem. > >Thanks for helping and any help is appreciated. > >Alex Lear > >_______________________________________________ >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 krw@viz-solutions.com Thu Aug 1 17:29:10 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 01 Aug 2002 09:29:10 -0700 Subject: [vtkusers] Polydatawriter binaryformat In-Reply-To: <000001c23895$3f006bf0$0b01a8c0@hong> Message-ID: <5.1.0.14.0.20020801091830.00af5c28@mail.viz-solutions.com> >Anyone knows where I can find the binary format of the polydatawriter. The binary format is the same as the ASCII. The file would look something like: # vtk DataFile Version 2.0
BINARY DATASET POLYDATA POINTS 'n' float <'n' floating point numbers written in binary> POLYGONS 'i' 'j' <'j' integers written in binary> ... and so on. Hope that helps. Kevin. From alear@cns.montana.edu Thu Aug 1 18:07:22 2002 From: alear@cns.montana.edu (Alex Lear) Date: Thu, 1 Aug 2002 11:07:22 -0600 Subject: [vtkusers] Actors disappearing on zoom - Update References: <5.1.0.14.0.20020801113553.032e1dd0@pop.nycap.rr.com> Message-ID: <001801c2397d$e6dca3f0$73b25a99@ALEXWORKSTATION> An update: Removing the culler solved the problem. Thanks Lisa and David for your feedback. Alex Lear ----- Original Message ----- From: "Lisa Avila" To: "Alex Lear" ; "vtk users" Sent: Thursday, August 01, 2002 9:36 AM Subject: Re: [vtkusers] Actors disappearing on zoom - Video! > Hello Alex, > > Try removing the default culler from the renderer - it is perhaps throwing > away small actors incorrectly. > > Lisa > > > At 07:20 PM 7/31/2002, Alex Lear wrote: > >Hello, I have about 1000 actors that make up a branch structure. As I zoom > >away from them they seem to disappear depending on their size. It doesn't > >seem to be a clipping issue because they don't seem to disappear depending > >on placement but by size. If someone knows how to stop this disappearing I > >would like to know. I have made a movie of this and posted it at > >http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. > >Sorry about the size but it needed to be large and good quality to see this > >problem. > > > >Thanks for helping and any help is appreciated. > > > >Alex Lear > > > >_______________________________________________ > >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 rrp@imm.dtu.dk Thu Aug 1 18:38:29 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Thu, 1 Aug 2002 19:38:29 +0200 (METDST) Subject: [vtkusers] RE: plane approximation In-Reply-To: <200208011307.PAA01950@mekka.amc.uva.nl> Message-ID: Hi Ebner and Leo On Thu, 1 Aug 2002, CPBuid: ljvanruijven wrote: > For every point x,y,z calculate xx, xy, xz, yy, yz and zz. Add all terms, and > put the sums in a symmetric 3 by 3 matrix (xx,xy,xz; xy,yy,yz; xz,yz,zz). > This matrix represents an ellipsoid whose shape corresponds with the shape of > your points. From this matrix you can calculate the eigenvalues and > eigenvectors (see vtkMath). These eigenvectors and eigenvalues define the > directions and lengths of the main axes of this ellipsoid. The vectors > belonging to the largest eigenvalues give you the orientation of the > requested plane. > > The position of the plane is determined by the centriod of your points. For an example of how to calculate the major axis using the eigenvectors and values take a look at vtkOBBTree. The first level of the OBB tree is similar to what you are looking for. On my homepage www.imm.dtu.dk/~rrp/VTK there is a class (vtkPrincipalAxisTransform) that will transform a given shape to the principal axis of another shape. This class also contains the sought functionallity. Regards, Rasmus From amerdsp@hotmail.com Thu Aug 1 19:27:51 2002 From: amerdsp@hotmail.com (Amer Abufadel) Date: Thu, 1 Aug 2002 14:27:51 -0400 Subject: [vtkusers] Smooth Isosurface? Message-ID: Hello, I was able to create an isosurface using Marching cubes from binary data. The data is a segmentation of medical images (contours in 2D), so the 3D volume turned out to look like cylinders stacked on top of each other. Is there a way to smooth the surface? Thanks, Amer From prabhu@aero.iitm.ernet.in Fri Aug 2 03:59:23 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 2 Aug 2002 08:29:23 +0530 Subject: [vtkusers] problems with python and cvs vtk In-Reply-To: References: <15687.19598.949525.765285@monster.linux.in> Message-ID: <15689.62859.621696.515779@monster.linux.in> >>>>> "MH" == Magnus Hagdorn writes: >> Could you do the make install and then run python setup.py >> from inside Wrapping/Python and tell us how it goes? We can >> try to iron out any bugs in the script. MH> yup, this is what i did:i run setup.py after make install. i MH> had to change permissions vtk.pth. it created the sym links, Ok. Why did you have to change the permissions of vtk.pth? site.py should not be sensitive to permission (except ofcourse everyone has to have read perms). The CVS version has read permissions for everyone. MH> etc. i double checked there is only one set of MH> libvtk*Python.so in my library path. the odd thing is that MH> some of the example programs work, i.e. the ones with the MH> graphic primitives like cone, etc. it also loads the vtk MH> module just fine. i am quite puzzled since it does work when i MH> change the python path. maybe not all required files are MH> copied. i shall investigate that and let you know what's going MH> on. Yes, this is wierd. As I understand, after running make install followed by setup.py, you have the following: libvtk*.so in /usr/local/lib/vtk libvtk*Python.so also in /usr/local/lib/vtk there. all the *.py files in /usr/lib/python2.2/site-packages/vtk_python a correct vtk.pth in /usr/lib/python2.2/site-packages/ correct symlinks in /usr/lib/python2.2/site-packages/vtk_python that point to /usr/local/lib/vtk/lib*Python.so LD_LIBRARY_PATH set to /usr/local/lib/vtk Anything else? If this is the case I thought everything should work? Is /usr/local/VTK/bin also in the linkers path? thanks, prabhu From L.Scheef@uni-bonn.de Fri Aug 2 08:01:44 2002 From: L.Scheef@uni-bonn.de (L.Scheef@uni-bonn.de) Date: Fri, 2 Aug 2002 09:01:44 +0200 Subject: [vtkusers] Question regarding VTK installation on Windows Message-ID: <200208020700.JAA35500@f1node03.rhrz.uni-bonn.de> Dear list members! I would like to install VTK4.0 on a Windows system, but unfortunately I was not quite successful so far. It would be kind, if you could help me regarding the following questions: 1) Do I have to use vtk40Core.exe and vtk40TCL.exe ( for the use together with TCL) 2) Is it ok to install both in the same folder? 3) Could anybody be so kind and tell me how to proceed after running the above mentioned exe files? Or is there any description in the net? The read me files I found in the distribution did not help a lot... When I tried to run a vtk example script, I got the error message tcl833.dll not found. To overcome this problem, I have copied all tcl/tk dlls into the win/syst folder. But after that I had to deal with the error message: tcl.ini not found ...inproper TCL installation. However TCL works fine. I use the Active Tcl 8.34 distribution on a Win98 PC. A couple of years ago, I used vtk 2.2. The installation wasn't a problem at all. I just had to unzip the given executable ... However, I would be happy about any kind of help ... Best wishes, Lukas Lukas Scheef, MD, MSc MR-Tomography Department of Radiology University of Bonn Sigmund-Freud-Stra=DFe 25 D-53105 Bonn Fax: +49-228-287-5598 Phone:+49-228-287-4496 E-mail: L.Scheef@uni-bonn.de From burgert@ira.uka.de Fri Aug 2 07:46:18 2002 From: burgert@ira.uka.de (Oliver Burgert) Date: Fri, 2 Aug 2002 08:46:18 +0200 Subject: AW: [vtkusers] Smooth Isosurface? Message-ID: <01734FCC8274D51199C50050DA20ACBC18A89E@i61p2.ira.uka.de> You should apply marching cubes (or vtkContourFilter) on a 3D-image and = not on the single slices. If this is still too ugly, you can try vtkSmoothPolyDataFilter or vtkDecimate(Pro) with "PreserveTopologyOff". HTH Oliver Oliver Burgert IRF / IAIM=20 Geb. 07.21 (Technologiefabrik Universit=E4t Karlsruhe (TH) Kaiserstr. 12 76128 Karlsruhe burgert@ira.uka.de =20 > -----Urspr=FCngliche Nachricht----- > Von: Amer Abufadel [mailto:amerdsp@hotmail.com]=20 > Gesendet: Donnerstag, 1. August 2002 20:28 > An: vtk > Betreff: [vtkusers] Smooth Isosurface? >=20 >=20 > Hello, > I was able to create an isosurface using Marching cubes=20 > from binary data. The data is a segmentation of medical=20 > images (contours in 2D), so the 3D volume turned out to look=20 > like cylinders stacked on top of each other. Is there a way=20 > to smooth the surface? >=20 > Thanks, >=20 > Amer > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at:=20 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From peppe@mail-arts.sssup.it Fri Aug 2 12:26:36 2002 From: peppe@mail-arts.sssup.it (peppe megali) Date: Fri, 02 Aug 2002 13:26:36 +0200 Subject: [vtkusers] Problems running example code.... Message-ID: <3D4A6C6C.8020308@mail-arts.sssup.it> Hi, I am a very new user. I downloaded VTK 4.0 and installed it. I downloaded also the source code, and unzipped it. When I try to execute the examples TCL code contained in the Testing directory of the Patented source code (e.g. .../VTK/Patented/Testing/Tcl/iceCream.tcl) I get error messages like this: - invalid command name "vtkMarchingContourFilter" while executing "vtkMarchingContourFilter theConeSurface".... the command name differs depending from the specific tcl example. This happen for all the tcl source file in that directory (while no problems I had encountered executing all the tcl example and testing code in the other directories), and the invalid command name is always one of the Patented code. Practically, it seems that the Patented code has not be installed correctly (infact I have not vtkPatentedTcl lib and dll)... What do I have to do to correctly install the Patented code? Thanks peppe -- _________________________________________________________ Giuseppe Megali, PhD Scuola Superiore Sant'Anna - Polo Sant'Anna Valdera CRIM - Computer Assisted Surgery Group Viale Rinaldo Piaggio, 34 57025 Pontedera, Pisa (Italy) Phone: (+39) 050 883 405, Fax: (+39) 050 883 402 email: peppe@mail-arts.sssup.it, web: www-mitech.sssup.it _________________________________________________________ From rrp@imm.dtu.dk Fri Aug 2 12:51:04 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 2 Aug 2002 13:51:04 +0200 (METDST) Subject: [vtkusers] Problems running example code.... In-Reply-To: <3D4A6C6C.8020308@mail-arts.sssup.it> Message-ID: Hi Peppe, On Fri, 2 Aug 2002, peppe megali wrote: > I downloaded VTK 4.0 and installed it. I downloaded also the source > code, and unzipped it. When I try to execute the examples TCL code > contained in the Testing directory of the Patented source code (e.g. > .../VTK/Patented/Testing/Tcl/iceCream.tcl) I get error messages like this: > > - invalid command name "vtkMarchingContourFilter" while executing > "vtkMarchingContourFilter theConeSurface".... > > the command name differs depending from the specific tcl example. > > This happen for all the tcl source file in that directory (while no > problems I had encountered executing all the tcl example and testing > code in the other directories), and the invalid command name is always > one of the Patented code. > Practically, it seems that the Patented code has not be installed > correctly (infact I have not vtkPatentedTcl lib and dll)... > > What do I have to do to correctly install the Patented code? The patented code is not included in the binary distribution. To get that you have to recompile VTK yourself. Instructions for doing that can be found in the VTK books. If you are using windows, I have written a step by step guide, which can be found here (under manuals): www.imm.dtu.dk/~rrp Regards, Rasmus From mybetatest@hotmail.com Fri Aug 2 21:14:47 2002 From: mybetatest@hotmail.com (H A) Date: Fri, 02 Aug 2002 20:14:47 +0000 Subject: [vtkusers] vtkinteractorstyleuser/observer callback Message-ID: Hello everyone, I am using vtk 4.0 and VC++, I am trying to assign functions to different events. For instance, if you left click on your mouse an object gets translated. I have been able to output messages to cerr but everytime I try and do something to the actors I get a sharing violation error. I have subclassed vtkinteractorstyleuser to do this. I have not been able to find an example anywhere of how to do this. Can anyone pls provide me with a C++ example? Either using vtkinteractorstyleuser or the observer callback method. I just want to be able to custom interact with my software :) Thank you, H.A. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From doctorart@hotmail.com Mon Aug 5 00:34:09 2002 From: doctorart@hotmail.com (R T) Date: Sun, 04 Aug 2002 15:34:09 -0800 Subject: [vtkusers] How to link a new class Message-ID: Hello all, I have a class where I extend a VTK class: class vtkMyPolyDataFilter:vtkPolyDataToPolyDataFilter {........ } How do I compile my class and link with my application? Do I have to recompile the Whole VTK source tree and include my class somehow( How ??) or separately, Build a DLL, or link it statically? While it compiles without errors, it doesn't link with VTK libraries, gives " public:static vtkMyPolyDataFilter::New() unresolved" when I define all the required methods like New(), PrintHeader(), etc inline in .h file, it compiles and links, but at runtime it gives "can't find external VTKCOMMON@@vtkObject@@@!##$#@" I use MS Visual Studio 6.0 Thanks, Roma _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From kch90@cs.ccu.edu.tw Mon Aug 5 06:36:50 2002 From: kch90@cs.ccu.edu.tw (Ivan) Date: Mon, 5 Aug 2002 13:36:50 +0800 Subject: [vtkusers] Write Mapper (or Actor) as an intermediate output Message-ID: <000f01c23c42$195c1b50$67657b8c@IVAN> This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C23C85.27701910 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi all: I find i can use PolyDataWriter to export the intermediate output of = StructuredGridGeometryFilter and use PolyDataReader to import the = intermediate output and continue the Mapping and Rendering at an other machine. My main problem is i can't find a way to export the intermediate output = of Mapper (ex. PolyDataMapper) or Actor to finish the pipeline (i.e. = rendering) at an other machine.=20 Any help is appreciated! Thanks a lot, Ivan Kuo ------=_NextPart_000_000C_01C23C85.27701910 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hi all:
 
I find i can use = PolyDataWriter to export the intermediate output of=20 StructuredGridGeometryFilter and use PolyDataReader=20 to import the intermediate output
and continue the Mapping = and Rendering at an other=20 machine.
 
My main problem is i = can't find a way to export=20 the intermediate output of Mapper (ex.=20 PolyDataMapper) or Actor to finish the pipeline (i.e. rendering) at an = other=20 machine.
 
Any help is appreciated!
 
Thanks a lot,
Ivan Kuo
 
------=_NextPart_000_000C_01C23C85.27701910-- From srodrigu@gbt.tfo.upm.es Mon Aug 5 10:17:08 2002 From: srodrigu@gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Mon, 5 Aug 2002 11:17:08 +0200 Subject: [vtkusers] What I need to build VTK in Windows References: Message-ID: <007201c23c60$df9ab420$5f0a048a@sisifo> Hello everybody, I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 version, but I saw other files in the webside, like vtk40Data.zip, vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody tell me if I really need these files and If I need them, In which directory must I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how runs Cmake. Thanks in advance, Samuel From gregory.bleiker@phonak.ch Mon Aug 5 10:33:03 2002 From: gregory.bleiker@phonak.ch (Gregory Bleiker) Date: Mon, 05 Aug 2002 11:33:03 +0200 Subject: [vtkusers] Antw: vtkusers digest, Vol 1 #1174 - 3 msgs Message-ID: Dear all I have a question regarding the nightly sources... are they purely for the = developers, or can "ordinary" users try to compile their code and should = have some success? I've been trying to do so for a few days now and = altough I can always compile the VTK sources with cygwin and W2K, I never = get my program to work with the code I've written (a small stl reader). Is = this the expected outcome? I've tried the unix and the windows sources, = both with equal results. Greetings Gregi PS. An initial dump of my compiler output=20 Building Makefile: "E:\programming\cpp\VTK\Makefile.win" Executing make... make.exe -f "E:\programming\cpp\VTK\Makefile.win" all g++.exe -c qcview2.cpp -o qcview2.o -I"E:\VTK\IO" -I"E:\VTK\Common" = -I"E:\VTK\Filtering" -I"E:\VTK" -I"E:\VTK\Rendering" -I"E:\VTK\Graphics"= -static -s windres.exe -i VTKTRY~1.RC -I rc -o vtktryout.res -O coff=20 g++.exe qcview2.o vtktryout.res -o "vtktryout.exe" -L"E:\Dev-C++\lib" = -L"E:\VTK\bin" -lvtkIO -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkGraph= ics -IvtkImaging -lvtkexpat -lvtkfreetype -lvtkjpeg -lvtkpng -lvtktiff = -lvtkzlib -I"E:\VTK\IO" -I"E:\VTK\Common" -I"E:\VTK\Filtering" = -I"E:\VTK" -I"E:\VTK\Rendering" -I"E:\VTK\Graphics" -static -s E:\VTK\bin/libvtkCommon.a(vtkWin32OutputWindow.o)(.text+0x5a1):vtkWin32Outp= utWindow.cxx: undefined reference to `GetStockObject@4' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x2177):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::CollectRevisions(ostream &)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x21bf):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x23e3):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x24ed):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow(void)' From rrp@imm.dtu.dk Mon Aug 5 10:37:38 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Mon, 5 Aug 2002 11:37:38 +0200 (METDST) Subject: [vtkusers] What I need to build VTK in Windows In-Reply-To: <007201c23c60$df9ab420$5f0a048a@sisifo> Message-ID: Hi Samuel, On Mon, 5 Aug 2002, Samuel Rodr=EDguez Bescos wrote: > I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 > version, but I saw other files in the webside, like vtk40Data.zip, > vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody t= ell > me if I really need these files and If I need them, In which directory mu= st > I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how > runs Cmake. Take a look at the guide (found under manuals) at this page: www.imm.dtu.dk/~rrp Perhaps you can use something from it. Else I recommend buying the books. Regards, Rasmus PS. I will make a minor update of the guide tomorrow, but I think it is still useful. From srodrigu@gbt.tfo.upm.es Mon Aug 5 10:46:26 2002 From: srodrigu@gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Mon, 5 Aug 2002 11:46:26 +0200 Subject: [vtkusers] What I need to build VTK in Windows References: Message-ID: <000a01c23c64$f73e8120$5f0a048a@sisifo> Thanks for your reply, Samuel ----- Original Message ----- From: "Rasmus Reinhold Paulsen" To: "Samuel Rodríguez Bescos" Cc: Sent: Monday, August 05, 2002 11:37 AM Subject: Re: [vtkusers] What I need to build VTK in Windows > Hi Samuel, > > On Mon, 5 Aug 2002, Samuel Rodríguez Bescos wrote: > > > I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 > > version, but I saw other files in the webside, like vtk40Data.zip, > > vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody tell > > me if I really need these files and If I need them, In which directory must > > I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how > > runs Cmake. > > Take a look at the guide (found under manuals) at this page: > > www.imm.dtu.dk/~rrp > > Perhaps you can use something from it. Else I recommend buying the books. > > Regards, > Rasmus > > PS. I will make a minor update of the guide tomorrow, but I think it is > still useful. > From L.Scheef@uni-bonn.de Mon Aug 5 13:33:52 2002 From: L.Scheef@uni-bonn.de (L.Scheef@uni-bonn.de) Date: Mon, 5 Aug 2002 14:33:52 +0200 Subject: [vtkusers] Still help needed!!! Message-ID: <200208051232.OAA42692@f2node23.rhrz.uni-bonn.de> Dear list members! I still would need a little help from the vtk friends... As I mailed a couple of days ago, I try to install the binary version of TCL/TK but I am not able to run even a simple example. Herre is what I have done: I've installed TCL/TK8.2 on win98 system. It works well so far. After that I have installed the vtk40core.exe and vtk40Tcl.exe And added the TCLLIBPATH C:/Programme/VTK40/Wrapping/Tcl to the autoexec.bat Running: % puts $auto_path ob the wish shell gives me: C:/Programme/VTK40/Wrapping/Tcl C:/Programme/vtk40/lib/vtk C:/PROGRAMME/TCL/lib/tcl8.2 C:/PROGRAMME/TCL/lib C:/PROGRAMME/TCL/lib/tk8.2 However, if I try to start any example script (from the win explorer), I get the error message: "can't find package vtkvommon" Does anybody have an idea what might be wrong? I searched the mailing list but was not able to find the answer so far... Do I have to rebuild VTK? I hope that this would be not neccessary... (I neither have the Borland nor the MSV C++ compiIer... I was able to use the old VTK2.2 version without any problems ... What has changed in the meantime? Any help would be appreciated ... Best wishes, Lukas From yuet_kwok@hotmail.com Mon Aug 5 18:37:15 2002 From: yuet_kwok@hotmail.com (Yuet Chung Kwok) Date: Mon, 5 Aug 2002 18:37:15 +0100 Subject: [vtkusers] transformation under interactor Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C23CAF.1F2F6BA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am new to VTK and am using it to rendering some wavefont data(*.obj = file), I am using the interactor to render the data, the problem I have = now is that I need to extract the data after some transformation I have = done in the render window. But since the rotation was done with the = camera and not the data, when I use the vtkOBJWriter object to write the = data back to file, it is the original data set without any = transformation. I want to know if there is any way that I can get the = transformed set of data after the transformation take place using the = interactor? Thanks, Yuet ------=_NextPart_000_0005_01C23CAF.1F2F6BA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I am new to VTK and am using it to = rendering=20 some wavefont data(*.obj file),  I am using the interactor to = render the=20 data, the problem I have now is that I need to extract the data after = some=20 transformation I have done in the render window. But since the rotation = was done=20 with the camera and not the data, when I use the vtkOBJWriter object to = write=20 the data back to file, it is the original data set without any = transformation. I=20 want to know if there is any way that I can get the transformed set of = data=20 after the transformation take place using the interactor?
 
Thanks,
 
Yuet
------=_NextPart_000_0005_01C23CAF.1F2F6BA0-- From Joey Mukherjee Mon Aug 5 18:42:56 2002 From: Joey Mukherjee (Joey Mukherjee) Date: Mon, 5 Aug 2002 12:42:56 -0500 (CDT) Subject: [vtkusers] vtkMaskPoints bug Message-ID: <200208051745.g75HjYJ16893@phobos.space.swri.edu> I noticed that vtkMaskPoints has a bug in that if you SetMaximumNumberOfPoints to 1, nothing will be plotted. Digging in the code, I see: for ( ptId = this->Offset; (ptId < numPts) && (id < (this->MaximumNumberOfPoints-1)) && !abort; ptId += this->OnRatio ) The part that fails is "id < (this->MaximumNumberOfPoints-1)" since id is 0 and this->MaximumNumberOfPoints-1 is zero, it never falls in the loop. Changing it to a <= doesn't work for values > 1. I added a : if (this->MaximumNumberOfPoints == 1) { x = input->GetPoint(this->Offset); id = newPts->InsertNextPoint(x); outputPD->CopyData(pd,this->Offset,id); } else above it, but this may not be the best fix since there may be a way to handle the random case and the non-random case in the same way. If you need a test case, the Examples/VisualizationAlgorithms/Tcl/spikeF.tcl exhibits the problem if you add a ptMask SetMaximumNumberOfPoints 1 in there. Cheers, Joey +--------------------------------------------------------------------------+ + + + Joey Mukherjee "The price of freedom is eternal + + joey@swri.org vigilance, or $12.50 as seen on + + eBay... + + + +--------------------------------------------------------------------------+ From mauricio.inforcati@cenpra.gov.br Mon Aug 5 20:55:00 2002 From: mauricio.inforcati@cenpra.gov.br (Mauricio Caliggiuri Inforcati) Date: Mon, 5 Aug 2002 16:55:00 -0300 Subject: [vtkusers] Clipboard Message-ID: <200208051655.01003.mauricio.inforcati@cenpra.gov.br> How can I copy/paste 2d or 3d Images to/from the clipboard under Linux or= =20 Windows? Mauricio From yjin76@hotmail.com Mon Aug 5 21:37:12 2002 From: yjin76@hotmail.com (Yuan Jin) Date: Mon, 05 Aug 2002 20:37:12 +0000 Subject: [vtkusers] About clipping a polydata Message-ID: Hi, How can I get 'CappingOn' effect after clipping a polydata using vtkPlane? Thanks, _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From marcelomaxaqp@yahoo.es Tue Aug 6 00:20:36 2002 From: marcelomaxaqp@yahoo.es (=?iso-8859-1?q?Marcelo=20Flores?=) Date: Tue, 6 Aug 2002 01:20:36 +0200 (CEST) Subject: [vtkusers] Help with BMP loading and bmp to ppm convertion In-Reply-To: <20020805104405.E2A631AB4A@public.kitware.com> Message-ID: <20020805232036.43809.qmail@web20505.mail.yahoo.com> --0-1703807565-1028589636=:43756 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi i want to load a 2D bmp image and make it look like 3D( like the masonry example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object with a vtkBMPreader object but it doesnt work properly ). I want to transform a bmp to a ppm image too. Could anyone send me a sample code with the object vtkBMPreader and vtkPNMreader. --------------------------------- Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ˇGratis! --0-1703807565-1028589636=:43756 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

Hi

i want to load a 2D bmp image and make it look like 3D( like the masonry example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object with a vtkBMPreader object but it doesnt work properly ). I want to transform a bmp to a ppm image too. Could anyone send me a sample code with the object vtkBMPreader and vtkPNMreader.


Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ˇGratis!
--0-1703807565-1028589636=:43756-- From ficmic01@evergreen.edu Tue Aug 6 02:18:56 2002 From: ficmic01@evergreen.edu (FICKER, MICHAEL) Date: Mon, 5 Aug 2002 18:18:56 -0700 Subject: [vtkusers] Large Volume Data Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C23CE7.3C1423E0 Content-Type: text/plain My data set consists of 1500 jpeg images of 2000x2000 pixels each. I do not intend to visualize such a large volume but I was trying to make VTK extract and resample my Volume of Interest (VOI) and then dump this smaller volume (aprox 150x150x150) out into a new set of jpegs. I have had luck manipulating and visualizing smaller volumes but have been unable to use such a large data set. I have tried various forms of vtkImageDataStreamer and vtkMemoryLimitImageDataStreamer. I have been trying varios forms of the following script. If I only procecss ~350 images it runs fine, but if I try the entire stack VTK crashes. Time is not a concern, the script can run as long as it takes. Any ideas on how to work with datasets this large? # read a stack of images starting at GR0000.JPG vtkJPEGReader reader reader SetFilePrefix "GR" reader SetDataExtent 0 2000 0 2000 0 1500 reader SetFilePattern "%s%04d.JPG" reader SetDataSpacing 2 2 3 reader SetDataScalarTypeToUnsignedShort reader GlobalReleaseDataFlagOn #Stream the data to comsume less memory vtkImageDataStreamer streamer streamer SetInput [reader GetOutput] streamer SetNumberOfStreamDivisions 32 [streamer GetExtentTranslator] SetSplitModeToBlock streamer UpdateWholeExtent # Extract and resample a sub volume from the source vtkExtractVOI voi voi SetInput [streamer GetOutput] voi SetVOI 500 1500 400 1600 100 1400 voi SetSampleRate 10 10 10 [voi GetOutput] SetScalarTypeToUnsignedChar # write out the new smaller volume vtkJPEGWriter writer writer SetInput [voi GetOutput] writer SetFilePrefix "vol" writer SetFilePattern "%s%04d.jpg" writer SetFileDimensionality 3 writer Write ------_=_NextPart_001_01C23CE7.3C1423E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Large Volume Data

My data set consists of 1500 jpeg images of 2000x2000 = pixels each.  I do not intend to visualize such a large volume but = I was trying to make VTK extract and resample my Volume of Interest = (VOI) and then dump this smaller volume (aprox 150x150x150) out into a = new set of jpegs.

I have had luck manipulating and visualizing smaller = volumes but have been unable to use such a large data set.  I have = tried various forms of vtkImageDataStreamer and = vtkMemoryLimitImageDataStreamer.

I have been trying varios forms of the following = script.  If I only procecss ~350 images it runs fine, but if I try = the entire stack VTK crashes.

Time is not a concern, the script can run as long as = it takes.
Any ideas on how to work with datasets this = large?


# read a stack of images starting at = GR0000.JPG
vtkJPEGReader reader
        reader = SetFilePrefix "GR"
        reader = SetDataExtent 0 2000 0 2000 0 1500
        reader = SetFilePattern "%s%04d.JPG"
        reader = SetDataSpacing 2 2 3
        reader = SetDataScalarTypeToUnsignedShort
        reader = GlobalReleaseDataFlagOn

#Stream the data to comsume less memory
vtkImageDataStreamer streamer
        streamer = SetInput [reader GetOutput]
        streamer = SetNumberOfStreamDivisions 32
        [streamer = GetExtentTranslator] SetSplitModeToBlock
        streamer = UpdateWholeExtent

# Extract and resample a sub volume from the = source
vtkExtractVOI voi
        voi = SetInput [streamer GetOutput]
        voi = SetVOI 500 1500 400 1600 100 1400
        voi = SetSampleRate 10 10 10
        [voi = GetOutput] SetScalarTypeToUnsignedChar

# write out the new smaller volume
vtkJPEGWriter writer
        writer = SetInput [voi GetOutput]
        writer = SetFilePrefix "vol"
        writer = SetFilePattern "%s%04d.jpg"
        writer = SetFileDimensionality 3
        writer = Write

------_=_NextPart_001_01C23CE7.3C1423E0-- From helmut.ebner@profactor.at Tue Aug 6 09:49:16 2002 From: helmut.ebner@profactor.at (Ebner Helmut) Date: Tue, 6 Aug 2002 10:49:16 +0200 Subject: [vtkusers] reduce noise! Message-ID: <91F8F22D85BFD411B13B000102B35995A1A5E9@mailsrv.int.profactor.at> Hi, I have a simple 2D Image (only black and white pixel) with a lot of noise. Are there some vtkFilters to reduce noise? How can i do this in C++ Thanks a lot From h.huisman@rad.umcn.nl Tue Aug 6 10:55:15 2002 From: h.huisman@rad.umcn.nl (h.huisman@rad.umcn.nl) Date: Tue, 6 Aug 2002 11:55:15 +0200 (CEST) Subject: [vtkusers] vtkImplicitBoolean bug Message-ID: Hi, Think I noticed a bug in vtkImplicitBoolean (IB). I use IB to combine AND transform several implicitfunctions. However, the transform doesn't seem to be working. Running debugger (ddd) I noticed that the ImplicitBoolean::EvaluateFunction(x) doesn't use the IB transformation. I would expect xt = IB->Transform(x) and then f = IF(xt) whereas it now directly calls f = IF(x) avoiding the transformation. Hope somebody can shine a light on this one. Henkjan --------------------------------------------------------------------- H.J. Huisman, PhD, MSEE E : h.huisman@rad.umcn.nl Biomedical Physicist T : +31 24 3617536/14545 Dept. Radiology F : +31 24 3540866 UMC St. Radboud S : 430 Radiologie/POBox 9101/ 6500HB Nijmegen/Netherlands From John Biddiscombe" Message-ID: <000901c23d40$704d4a70$0100a8c0@tigger> > ImplicitBoolean::EvaluateFunction(x) doesn't use the IB = transformation. I=20 > Hope somebody can shine a light on this one. I doubt it was ever implemented. Implicit boolean is a subclass of the = more general Implicit function which defines the transform and it just = got left out. See if you can add the necessary code to make it work and = then post it here. Probably you can just copy a chunk from one of the = other implicit classes... JB From goettler@dfki.de Tue Aug 6 13:32:12 2002 From: goettler@dfki.de (=?iso-8859-1?Q?Jochen_G=F6ttler?=) Date: Tue, 6 Aug 2002 14:32:12 +0200 Subject: [vtkusers] vtkWin32RenderWindowInteractor In-Reply-To: <20020806085801.7B6F11AB10@public.kitware.com> Message-ID: How are the vtkWin32OpenGLRenderWindow and vtkWin32RenderWindowInteractor used? Does anyone have example code? From c.p.botha@its.tudelft.nl Tue Aug 6 13:52:30 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Tue, 6 Aug 2002 14:52:30 +0200 Subject: [vtkusers] vtkWin32RenderWindowInteractor In-Reply-To: References: <20020806085801.7B6F11AB10@public.kitware.com> Message-ID: <20020806125230.GM7148@dutidad.twi.tudelft.nl> On Tue, Aug 06, 2002 at 02:32:12PM +0200, Jochen Göttler wrote: > How are the vtkWin32OpenGLRenderWindow and vtkWin32RenderWindowInteractor > used? Does anyone have > example code? You shouldn't use these directly, but rather vtkRenderWindow and vtkRenderWindowInteractor. These will automatically use the correct specialised class. There are plenty of examples in the Examples directory, just do a recursive text find for "vtkRenderWindow". -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From YaelFeldman@aol.com Tue Aug 6 14:27:23 2002 From: YaelFeldman@aol.com (YaelFeldman@aol.com) Date: Tue, 06 Aug 2002 09:27:23 -0400 Subject: [vtkusers] colouring a surface according to one's own floatarray Message-ID: <5C6B353D.02F4561A.420A636E@aol.com> I am trying to colour a surface (a triangulated polygonal mesh) according to a floatarray listing numbers (that are calculated by the programme), one number corresponding to each of the polygon vertices. I know I need to use scalars, and vtkGlyph or somethink like it, yet all the examples seem to reiterate the use of Plot3D files, with pre-defined scalars e.g velocity magnitude etc. Does anyone have any advice? From lists@carlh.net Tue Aug 6 14:38:11 2002 From: lists@carlh.net (Carl Hetherington) Date: Tue, 6 Aug 2002 14:38:11 +0100 (GMT Daylight Time) Subject: [vtkusers] VTK for pre-processing of Boundary Element Model meshes Message-ID: Hi, I'm using VTK to help me generate meshes for use with an acoustical BEM package, PAFEC. There are various limits to the geometries that PAFEC can handle. For example, the angle between any two cell edges must lie within the range 15-165 degrees. There are also limitations related to the length of quadrilaterals with respect to their height. Does VTK offer any classes that can help me to process arbitrary meshes to meet these constraints? Is anyone else on this list doing anything similar? Thanks in advance for any suggestions. Carl From anast.jm@pg.com Tue Aug 6 14:59:56 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 6 Aug 2002 09:59:56 -0400 Subject: [vtkusers] Help with BMP loading and bmp to ppm convertion Message-ID: Marcelo, In order to use a bmp image for this purpose you need to extract the lu= minance of the image. Try running the output of the bmp reader through vtkLumin= ance. In tcl this looks like vtkBMPReader reader reader SetFileName myFile.bmp vtkImageLuminance luminance luminance SetInput [reader GetOutput] =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: Marcelo Flores @public.kitware.com on 08/= 06/2002 01:20 AM ZE2 = =20 Marcelo Flores To: vtkusers@p= ublic.kitware.com =20 @public.kitware.com Cc: (bcc: Joh= n Anast-JM/PGI) =20 Subject: [vtkusers]= Help with BMP loading and=20 bmp to ppm converti= on =20 Sent by: vtkusers-admin@public.kitware.com = =20 08/05/2002 07:20 PM = =20 = =20 = =20 Hi i want to load a 2D bmp image and make it look like 3D( like the masonr= y example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object = with a vtkBMPreader object but it doesnt work properly ). I want to transform = a bmp to a ppm image too. Could anyone send me a sample code with the object vtk= BMPreader and vtkPNMreader. Yahoo! Messenger Nueva versi=F3n: Webcam, voz, y mucho m=E1s =A1Gratis! = From prabhu@aero.iitm.ernet.in Tue Aug 6 15:25:46 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 6 Aug 2002 19:55:46 +0530 Subject: [vtkusers] colouring a surface according to one's own floatarray In-Reply-To: <5C6B353D.02F4561A.420A636E@aol.com> References: <5C6B353D.02F4561A.420A636E@aol.com> Message-ID: <15695.56426.510082.936172@monster.linux.in> >>>>> "YF" == YaelFeldman writes: YF> I am trying to colour a surface (a triangulated polygonal YF> mesh) according to a floatarray listing numbers (that are YF> calculated by the programme), one number corresponding to each YF> of the polygon vertices. I know I need to use scalars, and YF> vtkGlyph or somethink like it, yet all the examples seem to YF> reiterate the use of Plot3D files, with pre-defined scalars YF> e.g velocity magnitude etc. Does anyone have any advice? Once you create your PolyData you can associate point scalars with the points of the data. Create a vtkFloatArray and then stick the scalars in it and then associate this array with your point data. Thats about all you need. pd = vtkPolyData() # this is your polydata object. You might generate it some other way. sc = vtkFloatArray() for i in range(pd.GetNumberOfPoints()): sc.InsertNextValue(_insert_your_scalar_here) pd.GetPointData().SetScalars(sc) cheers, prabhu From nundys@neuro.duke.edu Tue Aug 6 16:43:28 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 06 Aug 2002 11:43:28 -0400 Subject: [vtkusers] Accessing Arrays in Matlab-Java-vtk References: Message-ID: <3D4FEEA0.4050602@neuro.duke.edu> Is it possible to access a vtk array from matlab (such as vtkFloatArray or vtkUnsignedCharArray). I have been trying to do this, vtk allows exports to a C array through vtkImageExport which doesn't seem to fit with matlab. However, matlab cannot work with pointers (java arrays are pointers), so any calls to these functions fail. I'd appreciate any help Surajit Nundy From bthomas@engineering.uiowa.edu Wed Aug 7 02:52:00 2002 From: bthomas@engineering.uiowa.edu (bthomas) Date: Tue, 6 Aug 2002 20:52:00 -0500 Subject: [vtkusers] vtkImageImportFromArray.py Message-ID: <3D4F39B9@webmail.engineering.uiowa.edu> Does anyone know of an updated vtkImageImportFromArray for vtk4.0? I have tried to update it myself but I'm having some trouble getting MarchingCubes to generate anything from my output. I'm unsure of what exactly needs to be updated besides the SetDataExtent/SetWholeExtent which I have set equal. Any help would be much appreciated. Benjamin Thomas From wb@huahai.com.cn Wed Aug 7 03:20:57 2002 From: wb@huahai.com.cn (wb) Date: Wed, 7 Aug 2002 10:20:57 +0800 Subject: [vtkusers] Question about Color Scalar Data Message-ID: <004a01c23db9$11a2ef10$c30083c0@wb> This is a multi-part message in MIME format. ------=_NextPart_000_0047_01C23DFC.1E948CE0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 aGVsbG8gdnRrIGZyaWVuZHMNCmkgZG9uJ3Qga25vdyB3aGVyZSBjYW4gaSBmb3VuZCB2dGtDb2xv clNjYWxhcnMgY2xhc3MuIGkgYW0gdmVyeSBnbGFkIHRvIGtub3cgaG93IGNhbiBpIGZvdW5kIGl0 IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50Lg0KdGhhbmtzIGluIGFkdmFuY2UNCg== ------=_NextPart_000_0047_01C23DFC.1E948CE0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5oZWxsbyB2dGsgZnJpZW5kczxC Uj5pIGRvbid0IGtub3cgd2hlcmUgY2FuIGkgZm91bmQgDQp2dGtDb2xvclNjYWxhcnMgY2xhc3Mu IGkgYW0gdmVyeSBnbGFkIHRvIGtub3cgaG93IGNhbiBpIGZvdW5kIGl0IG9yIHdoYXQncyBpdCdz IA0KcmVwbGFjZW1lbnQuPEJSPnRoYW5rcyBpbiBhZHZhbmNlPC9GT05UPjwvRElWPjwvQk9EWT48 L0hUTUw+DQo= ------=_NextPart_000_0047_01C23DFC.1E948CE0-- From wb@huahai.com.cn Wed Aug 7 04:14:30 2002 From: wb@huahai.com.cn (wb) Date: Wed, 7 Aug 2002 11:14:30 +0800 Subject: [vtkusers] Queston about vtkColorScalars class Message-ID: <00a901c23dc0$8b734e00$c30083c0@wb> This is a multi-part message in MIME format. ------=_NextPart_000_00A6_01C23E03.998A5900 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 aGVsbG8gdnRrIGZyaWVuZHMNCmkgaGF2ZSBhIHRyb3VibGUgdGhhdCBpcyB3aGVyZSBpIGNhbiBm aW5kIHRoZSB2dGtDb2xvclNjYWxhcnMgY2xhc3MuSSBjYW4gZm91bmQgdGhlIHZ0a1NjYWxhcnMg Y2xhc3MuaSBhbSBnbGFkIHRoYXQgc29tZW9uZSBjYW4gdGVsbCBtZSB3aGVyZSBpIGNhbiBmaW5k IGl0IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50Lg0KdGhhbmtzIGluIGFkdmFuY2UNCg== ------=_NextPart_000_00A6_01C23E03.998A5900 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXdp bmRvd3MtMTI1MiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hU TUwgNS4wMC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+ DQo8Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIGZhY2U9JiMyMzQzNTsmIzIwMzA3 OyBzaXplPTI+aGVsbG8gdnRrIGZyaWVuZHM8L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIGZhY2U9 JiMyMzQzNTsmIzIwMzA3OyBzaXplPTI+aSBoYXZlIGEgdHJvdWJsZSB0aGF0IGlzIHdoZXJlIGkg Y2FuIGZpbmQgdGhlIA0KdnRrQ29sb3JTY2FsYXJzIGNsYXNzLkkgY2FuIGZvdW5kIHRoZSB2dGtT Y2FsYXJzIGNsYXNzLmkgYW0gZ2xhZCB0aGF0IHNvbWVvbmUgDQpjYW4gdGVsbCBtZSB3aGVyZSBp IGNhbiBmaW5kIGl0IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgZmFjZT0mIzIzNDM1OyYjMjAzMDc7IHNpemU9Mj50aGFua3MgaW4gYWR2YW5jZTwv Rk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_00A6_01C23E03.998A5900-- From dykim@ns.kopec.co.kr Wed Aug 7 09:06:35 2002 From: dykim@ns.kopec.co.kr (=?ks_c_5601-1987?B?sei1tb+s?=) Date: Wed, 7 Aug 2002 17:06:35 +0900 Subject: [vtkusers] Timing gap for Animation Message-ID: <001201c23de9$59fe2f60$6d190dbf@kopec.co.kr> This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C23E34.C9472660 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: base64 IA0KSGVsbG8gIQ0KDQpJIHdvdWxkIGxpa2Uga25vdyBob3cgY2FuIGkgYWRqdXN0IHRoZSByZW5k ZXJpbmcgdGltZSBpbiB0aGUgZXZlbnQgbG9vcCBmb3IgYW5pbWF0aW9uLg0KSW4gb3RoZXIgd29y ZCwgaSB3YW50IHRvIG1ha2UgYSB0aW1pbmcgZ2FwIGJldHdlZW4gZWFjaCBpbWFnZSBzZXF1ZW5j ZXMgZm9yIGFuaW1hdGlvbi4NCkFsc28sIGkgd2FudCB0byBzdG9wIHRoZSByZW5kZXJpbmcgaW1h Z2UgYW5kIGdvIHRvIHRoZSBuZXh0IGltYWdlIHVwb24gdGhlIGtleXByZXNzIG9yIG1vdXNlIGNs aWNrLg0KVGhhbmsgeW91IHZlcnkgbXVjaC4NCg0KQmVzdCBSZWdhcmRzLA0KDQpELiBZLiBLaW0N Cg== ------=_NextPart_000_000F_01C23E34.C9472660 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWtzX2NfNTYwMS0xOTg3Ij4NCjxNRVRBIGNvbnRlbnQ9Ik1T SFRNTCA2LjAwLjI2MDAuMCIgbmFtZT1HRU5FUkFUT1I+DQo8U1RZTEU+PC9TVFlMRT4NCjwvSEVB RD4NCjxCT0RZIGJnQ29sb3I9I2ZmZmZmZj4NCjxESVY+PEZPTlQgc2l6ZT0yPiZuYnNwOw0KPERJ Vj48Rk9OVCBzaXplPTM+SGVsbG8gITwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPjwv Rk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPkkgd291bGQgbGlrZSBrbm93IGhv dyBjYW4gaSBhZGp1c3QgdGhlIHJlbmRlcmluZyB0aW1lIGluIHRoZSANCmV2ZW50IGxvb3AgZm9y IGFuaW1hdGlvbi48L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIHNpemU9Mz5JbiBvdGhlciB3b3Jk LCBpIHdhbnQgdG8gbWFrZSBhIHRpbWluZyBnYXAgYmV0d2VlbiBlYWNoIGltYWdlIA0Kc2VxdWVu Y2VzIGZvciBhbmltYXRpb24uPC9GT05UPjwvRElWPg0KPERJVj48Rk9OVCBzaXplPTM+QWxzbywg aSB3YW50IHRvJm5ic3A7c3RvcCB0aGUgcmVuZGVyaW5nIGltYWdlIGFuZCBnbyB0byB0aGUgDQpu ZXh0IGltYWdlIHVwb24gdGhlIGtleXByZXNzIG9yIG1vdXNlIGNsaWNrLjwvRk9OVD48L0RJVj4N CjxESVY+PEZPTlQgc2l6ZT0zPlRoYW5rIHlvdSB2ZXJ5IG11Y2guPC9GT05UPjwvRElWPg0KPERJ Vj48Rk9OVCBzaXplPTM+PC9GT05UPiZuYnNwOzwvRElWPg0KPERJVj48Rk9OVCBzaXplPTM+QmVz dCBSZWdhcmRzLDwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPjwvRk9OVD4mbmJzcDs8 L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPkQuIFkuIEtpbTwvRk9OVD48L0RJVj48L0ZPTlQ+PC9E SVY+PC9CT0RZPjwvSFRNTD4NCg== ------=_NextPart_000_000F_01C23E34.C9472660-- From hongwan@myrealbox.com Wed Aug 7 15:19:14 2002 From: hongwan@myrealbox.com (Ng Hong Wan) Date: Wed, 7 Aug 2002 22:19:14 +0800 Subject: [vtkusers] Discontinous Line Message-ID: <001601c23e1d$6e977ab0$0b01a8c0@hong> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C23E60.7CBABAB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, After running thr marching cubes to generate iso surfaces, and vtkcutter to generate contours, the model suffers from a lot of discontinous lines even after I apply polydataconnectivity filter, is there anyway around this.. Thanks ------=_NextPart_000_0017_01C23E60.7CBABAB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Discontinous Line

Hi,

After running thr marching cubes = to generate iso surfaces, and vtkcutter to generate contours, the model = suffers from  a lot of discontinous lines even = after = I apply polydataconnectivity = filter, is there anyway around this.. Thanks

------=_NextPart_000_0017_01C23E60.7CBABAB0-- From rgupta@imaging.robarts.ca Wed Aug 7 15:33:35 2002 From: rgupta@imaging.robarts.ca (Ravi Gupta) Date: Wed, 07 Aug 2002 10:33:35 -0400 Subject: [vtkusers] Compiling VTK on W2K without VC++ Message-ID: <3D512FBF.4030309@imaging.robarts.ca> Hi, I want to compile VTK on W2K without having to buy VC++ Pro for CD$140, VC++ Std has been discontinued. Does anyone have any suggestions or experience using other compilers, especially free ones. I would think that any command line compiler under a dos shell should do the job. All I need is the dlls. We do our development using Tkinter. Any help would be appreciated. Thanks Ravi -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta@irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi From andy.cedilnik@kitware.com Wed Aug 7 16:17:24 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 07 Aug 2002 11:17:24 -0400 Subject: [vtkusers] Compiling VTK on W2K without VC++ In-Reply-To: <3D512FBF.4030309@imaging.robarts.ca> References: <3D512FBF.4030309@imaging.robarts.ca> Message-ID: <1028733450.10657.90.camel@xanth.kitwarein.com> Hello, Try Borland C++ compiler. I think there is a free version. Also, you may want to look at cygwin. Andy On Wed, 2002-08-07 at 10:33, Ravi Gupta wrote: > Hi, > > I want to compile VTK on W2K without having to buy VC++ Pro for CD$140, > VC++ Std has been discontinued. > > Does anyone have any suggestions or experience using other compilers, > especially free ones. I would think that any command line compiler under > a dos shell should do the job. > > All I need is the dlls. We do our development using Tkinter. > > Any help would be appreciated. From s011124@student.dtu.dk Wed Aug 7 16:29:09 2002 From: s011124@student.dtu.dk (Javier Maicas Sebastian) Date: Wed, 7 Aug 2002 17:29:09 +0200 (METDST) Subject: [vtkusers] 3D visualization Message-ID: Hi vtkusers I am Javier Maicas. I have installed VTK libraries in the release and in the debug versions by compiling the nightly source code in my computer. What I want to do is: * I have mi program that, in the end, produces a volume that I want to show in 3D. Is it possible to load this volume (it is a 3D matrix) in the VTK libraries directly? How? This is what I really want. What I have been doing so far is writing slice by slice as a set of images in a folder and afterwards I read them using a standard image reader of VTK (TIFFReader, BMPReader). The problem with this method is that I have to write and read images; and I would like to avoid it. When I try with the compiled libraries, that I can download directly from the official page of VTK, the TIFFReader works, but now, with the libraries that I have compiled in my computer in order to have access to the patented libraries, the TIFFReader doesn't work. I cannot compile my program if I want to use the TIFFReader, and I want to use it. The reason is that when I use the BMPReader (that works in the two versions of libraries) instead I cannot perform a clip, using the function ClipVolume, as with the tiff images. The questions are: Can I change a library from the precompiled libraries (that contains the TIFFReader) instead of the "compiled-by-me" libraries to make TIFFReader works? If I can't, could I get the same results by using the BMPReader? I mean, how do I have to use ClipVolume to clip bmp images? (when I use tiff images, I write the images as unsigned short values 0 for the background, 1 for the volume, 2 for the surfaces and if, for example, I use ClipVolume with value 0.1 I get the volume and the surfaces. So it works as it is expected. When I use bmp images I do the same with unsigned shorts, but with a ClipVolume of 0.1 it doesn't show anything. Which values do I have to use for bamp images?) And as a last question, I want to apply marching cubes. Which is the sequence of instructions from the TIFFReader to the iren() to use the marching cubes? Thanks in advance Javier From anast.jm@pg.com Wed Aug 7 17:56:20 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 7 Aug 2002 12:56:20 -0400 Subject: [vtkusers] 3D visualization Message-ID: Javier, you can read your volume directly using vktImageReader...here's a short piece of tcl example code. Perhaps this will get around some of your other problems...john vtkImageReader reader reader DebugOn reader SetFileName "myData.raw" reader SetFileDimensionality 3 reader SetDataExtent 0 100 0 50 1 51 reader SetDataOrigin 0 0 0 reader SetDataScalarTypeToUnsignedChar reader SetDataMask 0x7fff reader SetDataSpacing 0.0301 0.0301 0.0300 reader SetDataByteOrderToLittleEndian reader SetHeaderSize 44 Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Javier Maicas Sebastian" @public.kitware.com on 08/07/2002 05:29 PM ZE2 "Javier Maicas Sebastian" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] 3D visualization Sent by: vtkusers-admin@public.kitware.com 08/07/2002 11:29 AM Hi vtkusers I am Javier Maicas. I have installed VTK libraries in the release and in the debug versions by compiling the nightly source code in my computer. What I want to do is: * I have mi program that, in the end, produces a volume that I want to show in 3D. Is it possible to load this volume (it is a 3D matrix) in the VTK libraries directly? How? This is what I really want. What I have been doing so far is writing slice by slice as a set of images in a folder and afterwards I read them using a standard image reader of VTK (TIFFReader, BMPReader). The problem with this method is that I have to write and read images; and I would like to avoid it. When I try with the compiled libraries, that I can download directly from the official page of VTK, the TIFFReader works, but now, with the libraries that I have compiled in my computer in order to have access to the patented libraries, the TIFFReader doesn't work. I cannot compile my program if I want to use the TIFFReader, and I want to use it. The reason is that when I use the BMPReader (that works in the two versions of libraries) instead I cannot perform a clip, using the function ClipVolume, as with the tiff images. The questions are: Can I change a library from the precompiled libraries (that contains the TIFFReader) instead of the "compiled-by-me" libraries to make TIFFReader works? If I can't, could I get the same results by using the BMPReader? I mean, how do I have to use ClipVolume to clip bmp images? (when I use tiff images, I write the images as unsigned short values 0 for the background, 1 for the volume, 2 for the surfaces and if, for example, I use ClipVolume with value 0.1 I get the volume and the surfaces. So it works as it is expected. When I use bmp images I do the same with unsigned shorts, but with a ClipVolume of 0.1 it doesn't show anything. Which values do I have to use for bamp images?) And as a last question, I want to apply marching cubes. Which is the sequence of instructions from the TIFFReader to the iren() to use the marching cubes? Thanks in advance Javier _______________________________________________ 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 amerdsp@hotmail.com Wed Aug 7 18:24:39 2002 From: amerdsp@hotmail.com (Amer Abufadel) Date: Wed, 7 Aug 2002 13:24:39 -0400 Subject: [vtkusers] Shading/Texture Question Message-ID: Hello, I have two volume datasets, equal dimensions. The first has info to create an iso surface and the second has pixel color/texture. Is there an easy way to texture the isosurface from the first set with the information from the 2nd set? Thank you for your time and help Amer From praveenb@gauri.engr.sgi.com Wed Aug 7 18:53:26 2002 From: praveenb@gauri.engr.sgi.com (Praveen Bhaniramka) Date: Wed, 7 Aug 2002 10:53:26 -0700 Subject: [vtkusers] Shading/Texture Question In-Reply-To: Message-ID: Hi Amer, > Hello, > I have two volume datasets, equal dimensions. The first has info to > create an iso surface and the second has pixel color/texture. Is there an I assume you mean "voxel" color/texture. > easy way to texture the isosurface from the first set with the information > from the 2nd set? You can use 3D texture mapping (depending on the platform you are running this on, it might or might not be available) to create a 3D texture from the second volume and apply it to the isosurface from the first. This will work even if your isosurface (isovalue) from the first volume changes. An alternative would be to extract the texture/color values from the second volume for each vertex of the isosurface and render the triangles using the per-vertex information. If your isosurface changes however, you will need to re-compute the above. Cheers, Praveen -- ----------------------------------------------------------------- Praveen Bhaniramka Member of Technical Staff (MTS) praveenb@sgi.com Advanced Graphics Division (650)933-1785 Silicon Graphics, Inc. ----------------------------------------------------------------- From aselmann@gmx.de Wed Aug 7 18:55:20 2002 From: aselmann@gmx.de (aselmann@gmx.de) Date: Wed, 7 Aug 2002 19:55:20 +0200 (MEST) Subject: [vtkusers] How to move a camera along a polyline Message-ID: <21382.1028742920@www61.gmx.net> What vtk classes do i need to move a camera along a polyline? -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From bwvb@xs4all.nl Wed Aug 7 20:38:09 2002 From: bwvb@xs4all.nl (Bertwim van Beest) Date: Wed, 07 Aug 2002 21:38:09 +0200 Subject: [vtkusers] Visualisation of cell-based data. Message-ID: <3D517721.70A594CC@xs4all.nl> Dear VTK community, I have a problem in understanding how to visualise cell-valued data. That is, I have a grid (either structured of unstructured) consisting of cells defined by their vertices. Per cell I have one data value, which is assumed to be constant over the volume of the cell (finite difference/volume methods). How do I visualise this? VTK seems to be geared to vertex-based data data values, but I can't imagine that VTK has not functionality to tackle this! Thanks in advance? From praveenb@gauri.engr.sgi.com Wed Aug 7 20:45:51 2002 From: praveenb@gauri.engr.sgi.com (Praveen Bhaniramka) Date: Wed, 7 Aug 2002 12:45:51 -0700 Subject: [vtkusers] Visualisation of cell-based data. In-Reply-To: <3D517721.70A594CC@xs4all.nl> Message-ID: Hi Bertwim, > Dear VTK community, > > I have a problem in understanding how to visualise cell-valued data. > That is, I have a grid (either structured of unstructured) consisting of > cells defined by their vertices. Per cell I have one data value, which > is assumed to be constant over the volume of the cell (finite > difference/volume methods). > > How do I visualise this? VTK seems to be geared to vertex-based data > data values, but I can't imagine that VTK has not functionality to > tackle this! Try http://www.llnl.gov/graphics/hiac.html Cheers, Praveen -- ----------------------------------------------------------------- Praveen Bhaniramka Member of Technical Staff (MTS) praveenb@sgi.com Advanced Graphics Division (650)933-1785 Silicon Graphics, Inc. ----------------------------------------------------------------- From will.schroeder@kitware.com Thu Aug 8 01:58:15 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Wed, 07 Aug 2002 20:58:15 -0400 Subject: [vtkusers] Visualisation of cell-based data. In-Reply-To: <3D517721.70A594CC@xs4all.nl> Message-ID: <5.0.2.1.0.20020807205235.0295a4e0@pop.nycap.rr.com> VTK supports cell data; it's just like point data except associated with cells. There are also filters to convert between cell data and point data (vtkCellDataToPointData and vtkPointDataToCellData) based on local averaging schemes. (You may need this: some filters e.g. contouring only work on point data). Some filters may operate on either cell or point data, the user has to specify (e.g., vtkThreshold).The readers and writers all support point and cell data as well. Will At 09:38 PM 8/7/2002 +0200, Bertwim van Beest wrote: >Dear VTK community, > >I have a problem in understanding how to visualise cell-valued data. >That is, I have a grid (either structured of unstructured) consisting of >cells defined by their vertices. Per cell I have one data value, which >is assumed to be constant over the volume of the cell (finite >difference/volume methods). > >How do I visualise this? VTK seems to be geared to vertex-based data >data values, but I can't imagine that VTK has not functionality to >tackle this! > >Thanks in advance? >_______________________________________________ >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 dharmendra@strandgenomics.com Thu Aug 8 05:09:09 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Thu, 08 Aug 2002 09:39:09 +0530 Subject: [vtkusers] How to set the radius of a sphere Message-ID: <5.1.1.6.0.20020808093642.00a70b58@mail.strandgenomics.com> Hello, I am new to vtk.I want to know how to set the radius of a sphere and how to render two spheres on a render window.can some one provide me with code. Its very urgent.please help me. dharmendra From bwvb@xs4all.nl Thu Aug 8 08:11:11 2002 From: bwvb@xs4all.nl (Bertwim van Beest) Date: Thu, 08 Aug 2002 09:11:11 +0200 Subject: [vtkusers] Visualisation of cell-based data. References: <5.0.2.1.0.20020807205235.0295a4e0@pop.nycap.rr.com> Message-ID: <3D52198F.E3213349@xs4all.nl> Thanks! As a VTK-novice,I am reading the VTK-book. From the book I understood that the user himself has to come-up with interpolation schemes between the two sets of data, but apparently this is not true!? Anyway, I am going to try it out. Regards, Bertwim ==== Will Schroeder wrote: > > VTK supports cell data; it's just like point data except associated with > cells. There are also filters to convert between cell data and point data > (vtkCellDataToPointData and vtkPointDataToCellData) based on local > averaging schemes. (You may need this: some filters e.g. contouring only > work on point data). Some filters may operate on either cell or point data, > the user has to specify (e.g., vtkThreshold).The readers and writers all > support point and cell data as well. > Will > > At 09:38 PM 8/7/2002 +0200, Bertwim van Beest wrote: > >Dear VTK community, > > > >I have a problem in understanding how to visualise cell-valued data. > >That is, I have a grid (either structured of unstructured) consisting of > >cells defined by their vertices. Per cell I have one data value, which > >is assumed to be constant over the volume of the cell (finite > >difference/volume methods). > > > >How do I visualise this? VTK seems to be geared to vertex-based data > >data values, but I can't imagine that VTK has not functionality to > >tackle this! > > > >Thanks in advance? > >_______________________________________________ > >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 s011124@student.dtu.dk Thu Aug 8 08:16:24 2002 From: s011124@student.dtu.dk (Javier Maicas Sebastian) Date: Thu, 8 Aug 2002 09:16:24 +0200 (METDST) Subject: [vtkusers] 3D visulaization Message-ID: Dear VTK users, I am working with C++ (visual Studio 6) as programming language and I want to know: I have a 3 dimensional matrix at the end of my program with the segmentation result I want to show. I wish to show the 3D model directly from my program, that is, I want to avoid saving the data slice by slice in my computer and use a reader later. Is it possible? How can I do it? (in C++). Thank you Javier From henrich@ira.uka.de Thu Aug 8 09:52:33 2002 From: henrich@ira.uka.de (Waltraud Henrich) Date: Thu, 8 Aug 2002 10:52:33 +0200 Subject: [vtkusers] How to Read *.pic file into vtk????? Message-ID: <01734FCC8274D51199C50050DA20ACBC19C661@i61p2.ira.uka.de> Hello, I want to load a pic file. I am trying to read using vtkImageReader. It solved but I must enter the value for each file whit reader->SetData Extent(int,int,int,int,int,int). I have different files with different dimensions. The code I used like this: bool ImportImage::DoPICImage() { vtkImageReader *reader = vtkImageReader::New(); if (m_sFileName.right(4) != ".pic") m_sFileName = m_sFileName + ".pic"; reader->SetFileName((char*)m_sFileName.latin1()); reader->SetDataExtent(0, 255, 0, 255, 0, 5); reader->SetFileDimensionality(3); reader->Update(); SetImageData(reader->GetOutput()); GfxPrint(m_sFileName + " loaded"); return GetImageData()!=NULL; } Thanks you in advance. Waltraut From amerdsp@hotmail.com Thu Aug 8 13:19:31 2002 From: amerdsp@hotmail.com (Amer Abufadel) Date: Thu, 8 Aug 2002 08:19:31 -0400 Subject: [vtkusers] Shading/Texture Question References: Message-ID: > Hi Amer, > > > Hello, > > I have two volume datasets, equal dimensions. The first has info to > > create an iso surface and the second has pixel color/texture. Is there an > > I assume you mean "voxel" color/texture. Yes, I meant voxels not pixels, sorry. > > > easy way to texture the isosurface from the first set with the information > > from the 2nd set? > > You can use 3D texture mapping (depending on the platform you are running > this on, it might or might not be available) to create a 3D texture from > the second volume and apply it to the isosurface from the first. This will > work even if your isosurface (isovalue) from the first volume changes. Can you elaborate on this a little more? I am very new to this. If you can give me the names of the functions used to create the texture map, that would be helpful. I will be running this on Redhat Linux. Thank you in advance. Amer From andy.cedilnik@kitware.com Thu Aug 8 13:21:25 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 08 Aug 2002 08:21:25 -0400 Subject: [vtkusers] How to set the radius of a sphere In-Reply-To: <5.1.1.6.0.20020808093642.00a70b58@mail.strandgenomics.com> References: <5.1.1.6.0.20020808093642.00a70b58@mail.strandgenomics.com> Message-ID: <1028809292.938.98.camel@xanth.kitwarein.com> Hello, Check VTK/Examples/Tutorial/Step1/Tcl/Cone.tcl and replace Cone with Sphere and cleanup some other things. If you want two spheres, copy the spheresource, polydatamapper and actor. Andy On Thu, 2002-08-08 at 00:09, Dharmendra wrote: > Hello, > I am new to vtk.I want to know how to set the radius of a sphere and > how to render two spheres > on a render window.can some one provide me with code. > Its very urgent.please help me. > > dharmendra > > _______________________________________________ > 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 n.h.bakker@amc.uva.nl Thu Aug 8 13:27:23 2002 From: n.h.bakker@amc.uva.nl (Niels Bakker) Date: Thu, 8 Aug 2002 14:27:23 +0200 Subject: [vtkusers] reading new volume data with larger size Message-ID: Hi, I have a volume of 128,128,128 read by a vtkImageReader passed onto a vtkVolumeRayCastMapper which is asigned to a volume vtkVolume. Rendering works fine. However, when I try to set the reader to a new data file with 256,256,256 size the renderer shows the new data but only 1/8 part of it: reader->SetDataExtent(0,255,0,255,0,255); reader->SetFileName(filename); reader->UpdateWholeExtent(); volume->Update(); renwin->Render(); Checking the volume with Print(cout) shows that the Bounds are still <0 127> and are not reset to the larger volume data size. reader->getOutput->Print(cout) shows that the dataextend is updated to <0 255>. I use no clipping planes. The only thing that works is deleting the vtkVolumeRayCastMapper, creating a new one and setting all its required parameters. This seems to be a bit rough. Can anyone help? Niels Bakker N.H.Bakker PhD Academic Medical Center Dept. of Medical Physics Meibergdreef 9 1105 AZ Amsterdam Phone: (+31) 20-566 8978 Mail : n.h.bakker@amc.uva.nl From nundys@neuro.duke.edu Thu Aug 8 14:09:04 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Thu, 08 Aug 2002 09:09:04 -0400 Subject: [vtkusers] Retrieving Data from vtkImageData class for matlab/tcl Message-ID: <3D526D70.5000009@neuro.duke.edu> This is probably a naive question, my apologies. I have a vtkImageData object from which I'd like to retrieve the Data in double/float form and operate on it in Matlab (I think my question also applies to tcl). How can I do this? I have tried the GetPoint, GetCell, GetScalarComponentAsFloat methods to no avail. Thanks, Surajit Nundy From Koning, P.J.H. de (LKEB)" Message-ID: 08-08-02 15:09:04, Surajit Nundy wrote: >This is probably a naive question, my apologies. > >I have a vtkImageData object from which I'd like to retrieve the Data in >double/float form and operate on it in Matlab (I think my question also applies >to tcl). How can I do this? I have tried the GetPoint, GetCell, >GetScalarComponentAsFloat methods to no avail. > Try using vtkImageData::GetScalarPointer(x, y, z). This should give you the pointer to the data at point (x,y,z). Just cast to double/float or whatever type your imagedata is. >Thanks, >Surajit Nundy > > >_______________________________________________ >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 amerdsp@hotmail.com Thu Aug 8 14:33:39 2002 From: amerdsp@hotmail.com (Amer Abufadel) Date: Thu, 8 Aug 2002 09:33:39 -0400 Subject: [vtkusers] Retrieving Data from vtkImageData class for matlab/tcl References: <3D526D70.5000009@neuro.duke.edu> Message-ID: Surajit, Use GetScalarPointer of the vtkImage which gives you direct access to the image data. Save the data to a file. Use fread in matlab to load the data. Hope this helps, Amer ----- Original Message ----- From: "Surajit Nundy" To: Sent: Thursday, August 08, 2002 9:09 AM Subject: [vtkusers] Retrieving Data from vtkImageData class for matlab/tcl > This is probably a naive question, my apologies. > > I have a vtkImageData object from which I'd like to retrieve the Data in > double/float form and operate on it in Matlab (I think my question also applies > to tcl). How can I do this? I have tried the GetPoint, GetCell, > GetScalarComponentAsFloat methods to no avail. > > Thanks, > Surajit Nundy > > > _______________________________________________ > 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 =?iso-8859-1?Q?L.O.Q._Hector_Salas_Rodr=EDguez?=" This is a multi-part message in MIME format. ------=_NextPart_000_0009_01C23EB8.77E07AE0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi vtk users. A few months ago I builded the VTK 4.0 library without any = wrapping. Now, I need to use Phyton with the library and my question is: = Can I use the library through Phyton without rebuiliding all the = dll's? Thanks a lot. Hector ------=_NextPart_000_0009_01C23EB8.77E07AE0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi vtk users.
 
 
      A few = months ago I=20 builded the VTK 4.0 library without any wrapping. Now, I need to = use Phyton=20 with the library and my question is:
      Can I = use the=20 library through Phyton without rebuiliding all the dll's?
 
 
Thanks a lot.
 
Hector
------=_NextPart_000_0009_01C23EB8.77E07AE0-- From bryan.cole@teraview.co.uk Thu Aug 8 16:10:50 2002 From: bryan.cole@teraview.co.uk (bryan cole) Date: 08 Aug 2002 16:10:50 +0100 Subject: [vtkusers] Phyton wrapping... In-Reply-To: <000c01c23ee2$60f9a660$1001a8c0@grupomar.com> References: <000c01c23ee2$60f9a660$1001a8c0@grupomar.com> Message-ID: <1028819455.11182.21.camel@bryan.teraviewhq.local> rebuilding vtk should automatically skip any up-to-date object files and just build the python wrappers. However, on linux anyway, you must have build vtk as shared libraries inorder for the python wrappers to work. Bryan On Thu, 2002-08-08 at 14:49, L.O.Q. Hector Salas Rodr=EDguez wrote: > Hi vtk users. >=20 >=20 > A few months ago I builded the VTK 4.0 library without any wrapping= . Now, I need to use Phyton with the library and my question is:=20 > Can I use the library through Phyton without rebuiliding all the dl= l's? >=20 >=20 > Thanks a lot. >=20 > Hector From bhiron@lsuhsc.edu Thu Aug 8 18:41:57 2002 From: bhiron@lsuhsc.edu (Budd Hirons) Date: Thu, 08 Aug 2002 12:41:57 -0500 Subject: [vtkusers] How to Read *.pic file into vtk????? In-Reply-To: <01734FCC8274D51199C50050DA20ACBC19C661@i61p2.ira.uka.de> Message-ID: <5.1.1.6.0.20020808122513.00a77aa0@lsumc-med-exch2.med.lsuhsc.edu> Hello, Extract the dimensions of the data set from the PIC file header into local variables which you can use in the SetDataExtent call. This *may* be the PIC spec you need, there is a struct that shows you the internals of the PIC file: http://mbi.dkfz-heidelberg.de/mbi/TR/TR72/node34.html Budd Hirons. At 10:52 AM 8/8/2002 +0200, you wrote: >Hello, I want to load a pic file. I am trying to read using vtkImageReader. >It solved but I must enter the value for each file whit >reader->SetData Extent(int,int,int,int,int,int). I have different files with >different dimensions. >The code I used like this: > >bool ImportImage::DoPICImage() >{ > vtkImageReader *reader = vtkImageReader::New(); > if (m_sFileName.right(4) != ".pic") > m_sFileName = m_sFileName + ".pic"; > reader->SetFileName((char*)m_sFileName.latin1()); > > reader->SetDataExtent(0, 255, 0, 255, 0, 5); > reader->SetFileDimensionality(3); > reader->Update(); > > SetImageData(reader->GetOutput()); > > GfxPrint(m_sFileName + " loaded"); > > return GetImageData()!=NULL; >} > > > >Thanks you in advance. > >Waltraut >_______________________________________________ >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 praveenb@gauri.engr.sgi.com Thu Aug 8 19:54:08 2002 From: praveenb@gauri.engr.sgi.com (Praveen Bhaniramka) Date: Thu, 8 Aug 2002 11:54:08 -0700 Subject: [vtkusers] Shading/Texture Question In-Reply-To: Message-ID: Hi Amer, > > > easy way to texture the isosurface from the first set with the > information > > > from the 2nd set? > > > > You can use 3D texture mapping (depending on the platform you are running > > this on, it might or might not be available) to create a 3D texture from > > the second volume and apply it to the isosurface from the first. This will > > work even if your isosurface (isovalue) from the first volume changes. > > Can you elaborate on this a little more? I am very new to this. If you can > give me the names of the functions used to create the texture map, that > would be helpful. I will be running this on Redhat Linux. First check if your machine supports 3D texture mapping using the following command - % glxinfo | grep EXT_texture3D If yes, you can do this directly using OpenGL... see man glTexImage3d, glTexParameter, glTexGen. If not, use the other method of computing the per-vertex color values from the second volume and render the isosurface using those values. hth, Praveen -- ----------------------------------------------------------------- Praveen Bhaniramka Member of Technical Staff (MTS) praveenb@sgi.com Advanced Graphics Division (650)933-1785 Silicon Graphics, Inc. ----------------------------------------------------------------- From david.netherway@adelaide.edu.au Fri Aug 9 02:08:37 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Fri, 9 Aug 2002 10:38:37 +0930 Subject: [vtkusers] memory allocation limit in windows 2000 or vtk ? References: Message-ID: <000701c23f41$4a7bb2c0$0d8156c0@acfu.wch.sa.gov.au> Hello All, I attempted to use vtkVolumeRayCastmapper on a volume of size 512x512x1011 on a PC with 1.5Gb of RAM. The program will successfully display raycast images if the shading is turned off. The memory usage is then about 1Gb. The program crashes when I turn on shading at the point where the EncodedGradientEstimator attempts to allocate (using new) another 0.5Gb RAM. It seemed that either the virtual memory was not working or I had reached some allocation size limit. The compiler was visual c++ 7 (.net). I tested the first by running the program twice, simultaneously, on an 800 slice data set. This worked. The peak memory usage hit approximately 2.5Gb indicating that the virtual memory was working. Does anyone have some suggestions as to what the problem might be? Thanks, David From dharmendra@strandgenomics.com Fri Aug 9 05:27:20 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Fri, 09 Aug 2002 09:57:20 +0530 Subject: [vtkusers] How to manage our own event handling Message-ID: <5.1.1.6.0.20020809095603.02af2958@mail.strandgenomics.com> Hello, I dont want to window renderer.How to manage our own event handling. can some body help me in this aspect. dharmendra From S.Subramanian@tue.nl Fri Aug 9 14:35:13 2002 From: S.Subramanian@tue.nl (Subramanian, S.) Date: Fri, 9 Aug 2002 15:35:13 +0200 Subject: [vtkusers] Dynamic updating of Image data Message-ID: <81E5F727841DD211A5FD0008C728DB7B080A5795@campusx1.tue.nl> Hi, I have a (probably silly) question, I want to update an image data which I get from the network in real time. I use the following section of code which doesn't to work, can someone tell me what's wrong? (I'm using vtk3.2 under win2000 with vc++ 6.0) vtkImageData *image = vtkImageData::New(); image->SetDimensions(256,256,1); image->SetScalarType(VTK_UNSIGNED_CHAR); image->AllocateScalars(); while(1) { unsigned char *p_out ; p_out = (unsigned char *)image->GetScalarPointer(); // image->Update(); .. // imageactor->SetInput(image); Renderer.renWin->Render(); delete []p_out; } but if I modify my code to put the imagedata decleration inside the while loop and introduce an image->Delete() the code works. Any insights? thanks in advance, Sriram From isabels@inf.ufrgs.br Fri Aug 9 15:29:09 2002 From: isabels@inf.ufrgs.br (Isabel Siqueira) Date: Fri, 9 Aug 2002 11:29:09 -0300 Subject: [vtkusers] Problems with raw data... Message-ID: Hi VTK community, I have a raw volume dataset and a need to read the file to do volume rendering. I just use the class vtkImageReader for this but a don't achieve the intend image. I have written code as folllows: * Volume 1: 256 x 256 x 256, 8 bits, 1 : 1 :1 vtkImageReader *v16 = vtkImageReader::New(); v16->SetDataExtent(0, 255, 0, 255, 1, 256); //v16->SetFileDimensionality(3); v16->SetDataByteOrderToLittleEndian(); v16->SetFileName(".../aneurism.raw"); //v16->SetDataOrigin(0, 0, 0); v16->SetDataScalarTypeToUnsignedChar(); //v16->SetDataMask(0x7fff); //v16->SetHeaderSize(0); v16->SetDataSpacing(1.0, 1.0, 1.0); Any ideia about this problem? Thanks, Isabel From smondyrev@yahoo.com Fri Aug 9 16:24:45 2002 From: smondyrev@yahoo.com (Alexander Smondyrev) Date: Fri, 9 Aug 2002 08:24:45 -0700 (PDT) Subject: [vtkusers] problem with constrained Delaunay2D triangulation Message-ID: <20020809152445.80388.qmail@web40012.mail.yahoo.com> Hi, I am experiencing some problems triangulating a set of points using Delaunay2D triangulation. The surface is a northern hemisphere cut by an arbitrary plane. The points that are triangulated are the union of points on a sphere (generated using something like Glyph) and a set of boundary points (from the intersection of a sphere and a given plane). I am using Delaunay2D to triangulate this set of points using the following code: // Read points from file vtkPoints *points = vtkPoints::New(); fscanf( inhandle, "%d \n", &max ); xyz = ( double * )malloc( 3*max*sizeof( double ) ); for( i=0; iInsertPoint( i, &xyz[3*i] ); } // Specify constraints npts=5; // Varying this changes the surface appearance vtkCellArray *line = vtkCellArray::New(); for( i=0; iInsertNextCell(2); line->InsertCellPoint( pts[i] ); line->InsertCellPoint( pts[i+1] ); } vtkPolyData *profile = vtkPolyData::New(); profile->SetPoints( points ); profile->SetLines( line ); vtkDelaunay2D *del = vtkDelaunay2D::New(); del->SetInput( profile ); del->SetSource( profile ); del->SetTolerance( 0.0 ); del->SetAlpha( 0.0 ); del->BoundingTriangulationOff(); del->Update(); What I find wierd is that the surface appeareance changes depending on how many edges along the cut I specify as constraints. This problem appeared once for a particular case where the cutting plane slices a small part of hemisphere making a small angle with the equatorial plane. Depending on the number of specified edges I was getting either a correct surface or pieces of surface close to the polar cap.I also tried to change the scheme for generation surface points, but it did not change things. I am in a dire need for some advise. Does my code look Ok for this operation? Is it possible that I am encountering some vtkDelaunay bug? So far, I noticed this kind of problem only once among few dozen cases that I looked at. I would be glad to provide full code and data set which is resulting in this behavior. Any comments/advises would be greately appreciated. - Alex Smondyrev. __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From John Biddiscombe" <000701c23f41$4a7bb2c0$0d8156c0@acfu.wch.sa.gov.au> Message-ID: <004401c24047$feed85b0$0100a8c0@tigger> David, I don't know the real cause or solution, but I've had similar trouble = doing operations on very large meshes. My best bet was that although my = Ram + Virtual mem was large, the largest "continuous block" wasn't big = enough and memory allocations failed. I tried increasing my virtual ram = to 5GB, but it still failed, so I was left confused. I didn't find a = solution and reimplemented one of my key algorithms to run on different = inputs. I'm using win2k, but Borland C++ 6 (so it's an OS issue rather = than compiler methinks) JB ----- Original Message -----=20 From: "David Netherway" To: "vtk" Sent: Friday, August 09, 2002 2:08 AM Subject: [vtkusers] memory allocation limit in windows 2000 or vtk ? > Hello All, >=20 > I attempted to use vtkVolumeRayCastmapper on a volume of size = 512x512x1011 > on a PC with 1.5Gb of RAM. >=20 > The program will successfully display raycast images if the shading is > turned off. The memory usage is then about 1Gb. The program crashes = when I > turn on shading at the point where the EncodedGradientEstimator = attempts to > allocate (using new) another 0.5Gb RAM. >=20 > It seemed that either the virtual memory was not working or I had = reached > some allocation size limit. The compiler was visual c++ 7 (.net). >=20 > I tested the first by running the program twice, simultaneously, on an = 800 > slice data set. This worked. The peak memory usage hit approximately = 2.5Gb > indicating that the virtual memory was working. >=20 > Does anyone have some suggestions as to what the problem might be? >=20 > Thanks, David >=20 >=20 > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at: = > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From david.netherway@adelaide.edu.au Mon Aug 12 01:38:11 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Mon, 12 Aug 2002 10:08:11 +0930 Subject: [vtkusers] Large Volume Data References: Message-ID: <001501c24198$8a3ec880$0d8156c0@acfu.wch.sa.gov.au> This is a multi-part message in MIME format. ------=_NextPart_000_0012_01C241E8.2A3B9080 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Large Volume DataTry using vtkImageClip instead of vtkExtractVOI. There = was an earlier message that suggested that the latter still requires the = whole dataset to be loaded wheras the former does not. ----- Original Message -----=20 From: FICKER, MICHAEL=20 To: 'vtkusers@public.kitware.com'=20 Sent: Tuesday, 06 August, 2002 10:48 AM Subject: [vtkusers] Large Volume Data My data set consists of 1500 jpeg images of 2000x2000 pixels each. I = do not intend to visualize such a large volume but I was trying to make = VTK extract and resample my Volume of Interest (VOI) and then dump this = smaller volume (aprox 150x150x150) out into a new set of jpegs. I have had luck manipulating and visualizing smaller volumes but have = been unable to use such a large data set. I have tried various forms of = vtkImageDataStreamer and vtkMemoryLimitImageDataStreamer. I have been trying varios forms of the following script. If I only = procecss ~350 images it runs fine, but if I try the entire stack VTK = crashes. Time is not a concern, the script can run as long as it takes.=20 Any ideas on how to work with datasets this large?=20 # read a stack of images starting at GR0000.JPG=20 vtkJPEGReader reader=20 reader SetFilePrefix "GR"=20 reader SetDataExtent 0 2000 0 2000 0 1500=20 reader SetFilePattern "%s%04d.JPG"=20 reader SetDataSpacing 2 2 3=20 reader SetDataScalarTypeToUnsignedShort=20 reader GlobalReleaseDataFlagOn=20 #Stream the data to comsume less memory=20 vtkImageDataStreamer streamer=20 streamer SetInput [reader GetOutput]=20 streamer SetNumberOfStreamDivisions 32=20 [streamer GetExtentTranslator] SetSplitModeToBlock=20 streamer UpdateWholeExtent=20 # Extract and resample a sub volume from the source=20 vtkExtractVOI voi=20 voi SetInput [streamer GetOutput]=20 voi SetVOI 500 1500 400 1600 100 1400=20 voi SetSampleRate 10 10 10=20 [voi GetOutput] SetScalarTypeToUnsignedChar=20 # write out the new smaller volume=20 vtkJPEGWriter writer=20 writer SetInput [voi GetOutput]=20 writer SetFilePrefix "vol"=20 writer SetFilePattern "%s%04d.jpg"=20 writer SetFileDimensionality 3=20 writer Write=20 ------=_NextPart_000_0012_01C241E8.2A3B9080 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Large Volume Data
Try using  vtkImageClip instead of = vtkExtractVOI. There was an earlier message that suggested that the = latter still=20 requires the whole dataset to be loaded wheras the former does = not.
 
----- Original Message -----
From:=20 FICKER,=20 MICHAEL
Sent: Tuesday, 06 August, 2002 = 10:48=20 AM
Subject: [vtkusers] Large = Volume=20 Data

My data set consists of 1500 jpeg images of = 2000x2000 pixels=20 each.  I do not intend to visualize such a large volume but I was = trying=20 to make VTK extract and resample my Volume of Interest (VOI) and then = dump=20 this smaller volume (aprox 150x150x150) out into a new set of=20 jpegs.

I have had luck manipulating and visualizing smaller = volumes=20 but have been unable to use such a large data set.  I have tried = various=20 forms of vtkImageDataStreamer and = vtkMemoryLimitImageDataStreamer.

I have been trying varios forms of the following = script. =20 If I only procecss ~350 images it runs fine, but if I try the entire = stack VTK=20 crashes.

Time is not a concern, the script can run as long as = it=20 takes.
Any ideas on how to work with = datasets this=20 large?


# read a stack of images starting at = GR0000.JPG=20
vtkJPEGReader reader
        reader = SetFilePrefix=20 "GR"
        reader=20 SetDataExtent 0 2000 0 2000 0 1500
        reader = SetFilePattern=20 "%s%04d.JPG"
        reader = SetDataSpacing 2 2=20 3
        = reader=20 SetDataScalarTypeToUnsignedShort
        reader=20 GlobalReleaseDataFlagOn

#Stream the data to comsume less memory =
vtkImageDataStreamer streamer
        streamer SetInput = [reader=20 GetOutput]
       =20 streamer SetNumberOfStreamDivisions 32
        [streamer=20 GetExtentTranslator] SetSplitModeToBlock
        streamer=20 UpdateWholeExtent

# Extract and resample a sub volume from the = source=20
vtkExtractVOI voi
        voi SetInput = [streamer=20 GetOutput]
       =20 voi SetVOI 500 1500 400 1600 100 1400
        voi SetSampleRate = 10 10=20 10
        [voi=20 GetOutput] SetScalarTypeToUnsignedChar

# write out the new smaller volume
vtkJPEGWriter writer
        writer SetInput = [voi=20 GetOutput]
       =20 writer SetFilePrefix "vol"
        writer = SetFilePattern=20 "%s%04d.jpg"
        writer = SetFileDimensionality=20 3
        = writer=20 Write

------=_NextPart_000_0012_01C241E8.2A3B9080-- From david.netherway@adelaide.edu.au Mon Aug 12 02:13:08 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Mon, 12 Aug 2002 10:43:08 +0930 Subject: [vtkusers] memory allocation limit in windows 2000 or vtk ? References: <000701c23f41$4a7bb2c0$0d8156c0@acfu.wch.sa.gov.au> <004401c24047$feed85b0$0100a8c0@tigger> Message-ID: <002701c2419d$6b68dae0$0d8156c0@acfu.wch.sa.gov.au> Thanks John. I am considering how to subdivide the task but if I want to use a single renderer at the end of the pipeline the raycaster would still need to allocate 0.5Gb of memory for shading. Perhaps I need to have multiple viewports and renderers. But for now, I may have to simply subsample the input data. Regards, David ----- Original Message ----- From: "John Biddiscombe" To: "David Netherway" ; "vtk" Sent: Saturday, 10 August, 2002 5:59 PM Subject: Re: [vtkusers] memory allocation limit in windows 2000 or vtk ? > David, > > I don't know the real cause or solution, but I've had similar trouble doing operations on very large meshes. My best bet was that although my Ram + Virtual mem was large, the largest "continuous block" wasn't big enough and memory allocations failed. I tried increasing my virtual ram to 5GB, but it still failed, so I was left confused. I didn't find a solution and reimplemented one of my key algorithms to run on different inputs. I'm using win2k, but Borland C++ 6 (so it's an OS issue rather than compiler methinks) > > JB > > ----- Original Message ----- > From: "David Netherway" > To: "vtk" > Sent: Friday, August 09, 2002 2:08 AM > Subject: [vtkusers] memory allocation limit in windows 2000 or vtk ? > > > > Hello All, > > > > I attempted to use vtkVolumeRayCastmapper on a volume of size 512x512x1011 > > on a PC with 1.5Gb of RAM. > > > > The program will successfully display raycast images if the shading is > > turned off. The memory usage is then about 1Gb. The program crashes when I > > turn on shading at the point where the EncodedGradientEstimator attempts to > > allocate (using new) another 0.5Gb RAM. > > > > It seemed that either the virtual memory was not working or I had reached > > some allocation size limit. The compiler was visual c++ 7 (.net). > > > > I tested the first by running the program twice, simultaneously, on an 800 > > slice data set. This worked. The peak memory usage hit approximately 2.5Gb > > indicating that the virtual memory was working. > > > > Does anyone have some suggestions as to what the problem might be? > > > > 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 > > _______________________________________________ > 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 dharmendra@strandgenomics.com Mon Aug 12 12:42:41 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Mon, 12 Aug 2002 17:12:41 +0530 Subject: [vtkusers] Interaction Message-ID: <5.1.1.6.0.20020812171124.00a94b08@mail.strandgenomics.com> Hello, can some one help me on Interactions. I want some action to happen when i scrollover a sphere. please help me thanks, dharmendra From Bernhard.Gschaider@unileoben.ac.at Mon Aug 12 15:05:01 2002 From: Bernhard.Gschaider@unileoben.ac.at (Bernhard Gschaider) Date: 12 Aug 2002 16:05:01 +0200 Subject: [vtkusers] Java wrapping under Linux Message-ID: Hi! I'm trying to compile a project of mine that worked under Win2000/jdk1.4/vtk4 under linux. To do so I compiled vtkNightlySrc. The VTK works with C++ and TCL (Tested with various examples), but when I try to run Examples/Tutorial/Step1/Java/Cone.java (it compiles alright) it fails (error message given below). My configuration: vtkNightlySrc (downloaded on the 12.th of August, earlier Versions didn't work too) Suse Linux 8.0 g++ 2.95.3 JDK: j2sdk-1.4 from Sun Similar questions have been asked before, but I never found a satisfying answer in the archives. The error message when running the example is: gcds07:/opt/src/VTK/Examples/Tutorial/Step1/Java # java -classpath /opt/src/VTK/java/vtk.jar:. Cone An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4C444790 Function=AddHashEntry__12vtkHashTablePvT1+0x60 Library=/usr/local/lib/vtk/libvtkCommonJava.so Current Java thread: at vtk.vtkPolyData.VTKCastInit(Native Method) at vtk.vtkPolyDataSource.GetOutput_2(Native Method) at vtk.vtkPolyDataSource.GetOutput(vtkPolyDataSource.java:20) at Cone.main(Cone.java:42) Dynamic libraries: 08048000-0804d000 r-xp 00000000 03:07 174472 /usr/java/j2sdk1.4.0_01/bin/java 0804d000-0804e000 rw-p 00004000 03:07 174472 /usr/java/j2sdk1.4.0_01/bin/java [lots of similar messages deleted] Local Time = Mon Aug 12 15:59:49 2002 Elapsed Time = 0 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.0_01-b03 mixed mode) # # An error report file has been saved as hs_err_pid20517.log. # Please refer to the file for further information. # From rgupta@imaging.robarts.ca Mon Aug 12 15:40:55 2002 From: rgupta@imaging.robarts.ca (Ravi Gupta) Date: Mon, 12 Aug 2002 10:40:55 -0400 Subject: [vtkusers] Need HELP with Boreland Free C++ 5.5 and VTK4 Message-ID: <3D57C8F7.2070604@imaging.robarts.ca> Does anyone have a help page on building the VTK DLLs using Borland. All I need is the dlls hence my choice of the free compiler. Windows 2000 VTK 4.n (Which compiles fine under VC++) Borland C++ 5.5.1 for Win32, using dos prompt CMake 1.4.3-patch (has the same errors as CMake 1.3 development) MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not exist - don't know how to make it I got past this error by editing the Make files. Not an elegant solution but I could live with it if I have to. Requires 8-10 files to be edited. THE SHOW STOPPER IS AN UNRESOLVED EXTERN SYMBOL IN THE IO DIRECTORY FILES. Sorry lost the error but will re generate it if someone in the borland community can help me. Thanks Ravi -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta@irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi From c0palo01@louisville.edu Mon Aug 12 16:08:44 2002 From: c0palo01@louisville.edu (Csaba Palotai) Date: Mon, 12 Aug 2002 11:08:44 -0400 Subject: [vtkusers] white line Message-ID: <64B4CAD2-AE05-11D6-BEEE-00039375CC6E@louisville.edu> --Apple-Mail-2--681883362 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi all, I'm mapping a sphere (planet) to rectilinear coordinates (so I can take a look at the whole planet from one view) but it's kinda easy to get lost with directions. So I'm planning to add a white line to the northern side of the model which would help out. It's probably so easy to create this line that I couldn't figure out how to. Is it like the strips in the Arrays.cxx example? how can I make it white, by saying actor->SetColor(1,0,0) ? I so aint sure about this thing. Anyone can help out? my coordinates for the two endpoints (1,nj/2,0) and (1,nj,0). Any idea helps, thank you in advance Csaba *************** Csaba Palotai Research Assistant Comparative Planetology Laboratory 104 Sackett Hall, University of Louisville Louisville, KY 40292 phone: (502) 852-3927 email: csaba.palotai@louisville.edu fax: (502) 852-6053 URL:www.louisville.edu/research/cpl --Apple-Mail-2--681883362 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Hi all, I'm mapping a sphere (planet) to rectilinear coordinates (so I can take a look at the whole planet from one view) but it's kinda easy to get lost with directions. So I'm planning to add a white line to the northern side of the model which would help out. It's probably so easy to create this line that I couldn't figure out how to. Is it like the strips in the Arrays.cxx example? how can I make it white, by saying actor->SetColor(1,0,0) ? I so aint sure about this thing. Anyone can help out? my coordinates for the two endpoints (1,nj/2,0) and (1,nj,0). Any idea helps, thank you in advance Csaba Helvetica*************** Csaba Palotai Research Assistant Comparative Planetology Laboratory 104 Sackett Hall, University of Louisville Louisville, KY 40292 phone: (502) 852-3927 email: csaba.palotai@louisville.edu fax: (502) 852-6053 URL:www.louisville.edu/research/cpl --Apple-Mail-2--681883362-- From billlist@nycap.rr.com Mon Aug 12 17:17:10 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Mon, 12 Aug 2002 12:17:10 -0400 Subject: [vtkusers] Need HELP with Boreland Free C++ 5.5 and VTK4 In-Reply-To: <3D57C8F7.2070604@imaging.robarts.ca> Message-ID: <5.0.2.1.0.20020812121312.0463d5d0@pop.nycap.rr.com> --=====================_1044173752==_.ALT Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit I am not sure what is going wrong for you. We are running a dashboard for both shared (dll) and static builds of VTK each night. http://public.kitware.com/dashboard.php?name=vtk See these builds: KALGAN.­KITWARE WinNT-bcc32 KALGAN.­KITWARE WinNTbcc32shared Looks like your source might be incomplete, you should have the file VTK\Utilities\png\.NoDartCoverage. How are you getting the VTK source? -Bill At 10:40 AM 8/12/2002 -0400, Ravi Gupta wrote: >Does anyone have a help page on building the VTK DLLs using Borland. All I need is the dlls hence my choice of the free compiler. > >Windows 2000 >VTK 4.n (Which compiles fine under VC++) >Borland C++ 5.5.1 for Win32, using dos prompt >CMake 1.4.3-patch (has the same errors as CMake 1.3 development) > >MAKE Version 5.2 Copyright (c) 1987, 2000 Borland >Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not exist - don't know how to make it > >I got past this error by editing the Make files. Not an elegant solution but I could live with it if I have to. Requires 8-10 files to be edited. > >THE SHOW STOPPER IS AN UNRESOLVED EXTERN SYMBOL IN THE IO DIRECTORY FILES. Sorry lost the error but will re generate it if someone in the borland community can help me. > >Thanks >Ravi > > > > > >-- >Ravi Gupta > >Programmer > > >################################################# >The John P. | P.O. Box 5015 >Robarts Research Institute | 100 Perth Drive >Imaging Research Laboratories | London >Tel: (519) 663-5777 ext. 1-34077| Ontario >Fax: (519) 663-3403 | Canada >E-Mail: rgupta@irus.rri.ca | N6A 5K8 >################################################# > >################################################# >http://www.irus.rri.ca/igns >http://www.irus.rri.ca/~rgupta >################################################# > >"Be the change you wish to see in the world." >-Mohandas Karamchand Gandhi > >_______________________________________________ >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 --=====================_1044173752==_.ALT Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: 8bit I am not sure what is going wrong for you.   We are running a dashboard for
both shared (dll) and static builds of VTK each night.  
http://public.kitware.com/dashboard.php?name=vtk

See these builds:
KALGAN.­KITWARE WinNT-bcc32
KALGAN.­KITWARE WinNTbcc32shared

Looks like your source might be incomplete, you should have the file VTK\Utilities\png\.NoDartCoverage.  

How are you getting the VTK source?

-Bill

At 10:40 AM 8/12/2002 -0400, Ravi Gupta wrote:
Does anyone have a help page on building the VTK DLLs using Borland. All I need is the dlls hence my choice of the free compiler.

Windows 2000
VTK 4.n (Which compiles fine under VC++)
Borland C++ 5.5.1 for Win32, using dos prompt
CMake 1.4.3-patch (has the same errors as CMake 1.3 development)

MAKE Version 5.2  Copyright (c) 1987, 2000 Borland
Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not exist - don't know how to make it

I got past this error by editing the Make files. Not an elegant solution but I could live with it if I have to. Requires 8-10 files to be edited.

THE SHOW STOPPER IS AN UNRESOLVED EXTERN SYMBOL IN THE IO DIRECTORY FILES. Sorry lost the error but will re generate it if someone in the borland community can help me.

Thanks
Ravi





--
Ravi Gupta

Programmer


#################################################
The John P.                     | P.O. Box 5015
Robarts Research Institute      | 100 Perth Drive
Imaging Research Laboratories   | London
Tel: (519) 663-5777 ext. 1-34077| Ontario
Fax: (519) 663-3403             | Canada
E-Mail: rgupta@irus.rri.ca      | N6A 5K8
#################################################

#################################################
http://www.irus.rri.ca/igns
http://www.irus.rri.ca/~rgupta
#################################################

"Be the change you wish to see in the world."
-Mohandas Karamchand Gandhi

_______________________________________________
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
--=====================_1044173752==_.ALT-- From rgupta@imaging.robarts.ca Mon Aug 12 17:30:23 2002 From: rgupta@imaging.robarts.ca (Ravi Gupta) Date: Mon, 12 Aug 2002 12:30:23 -0400 Subject: [vtkusers] Need HELP with Boreland Free C++ 5.5 and VTK4 References: <5.0.2.1.0.20020812121312.0463d5d0@pop.nycap.rr.com> Message-ID: <3D57E29F.90003@imaging.robarts.ca> > Looks like your source might be incomplete, you should have the file > VTK\Utilities\png\.NoDartCoverage Yes I have the file but its empty except for the line # do not do coverage in this directory This is a VTK source that I have been using with VC++ and RedHat for a long time without any problems... William A. Hoffman wrote: > I am not sure what is going wrong for you. We are running a dashboard for > both shared (dll) and static builds of VTK each night. > http://public.kitware.com/dashboard.php?name=vtk > > See these builds: > KALGAN.­KITWARE WinNT-bcc32 > KALGAN.­KITWARE WinNTbcc32shared > > Looks like your source might be incomplete, you should have the file > VTK\Utilities\png\.NoDartCoverage. > > How are you getting the VTK source? > > -Bill > > At 10:40 AM 8/12/2002 -0400, Ravi Gupta wrote: > >> Does anyone have a help page on building the VTK DLLs using Borland. >> All I need is the dlls hence my choice of the free compiler. >> >> Windows 2000 >> VTK 4.n (Which compiles fine under VC++) >> Borland C++ 5.5.1 for Win32, using dos prompt >> CMake 1.4.3-patch (has the same errors as CMake 1.3 development) >> >> MAKE Version 5.2 Copyright (c) 1987, 2000 Borland >> Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not >> exist - don't know how to make it >> >> I got past this error by editing the Make files. Not an elegant >> solution but I could live with it if I have to. Requires 8-10 files to >> be edited. >> >> THE SHOW STOPPER IS AN UNRESOLVED EXTERN SYMBOL IN THE IO DIRECTORY >> FILES. Sorry lost the error but will re generate it if someone in the >> borland community can help me. >> >> Thanks >> Ravi >> >> >> >> >> >> -- >> Ravi Gupta >> >> Programmer >> >> >> ################################################# >> The John P. | P.O. Box 5015 >> Robarts Research Institute | 100 Perth Drive >> Imaging Research Laboratories | London >> Tel: (519) 663-5777 ext. 1-34077| Ontario >> Fax: (519) 663-3403 | Canada >> E-Mail: rgupta@irus.rri.ca | N6A 5K8 >> ################################################# >> >> ################################################# >> http://www.irus.rri.ca/igns >> http://www.irus.rri.ca/~rgupta >> ################################################# >> >> "Be the change you wish to see in the world." >> -Mohandas Karamchand Gandhi >> >> _______________________________________________ >> 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 > -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fax: (519) 663-3403 | Canada E-Mail: rgupta@irus.rri.ca | N6A 5K8 ################################################# ################################################# http://www.irus.rri.ca/igns http://www.irus.rri.ca/~rgupta ################################################# "Be the change you wish to see in the world." -Mohandas Karamchand Gandhi From billlist@nycap.rr.com Mon Aug 12 17:37:04 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Mon, 12 Aug 2002 12:37:04 -0400 Subject: [vtkusers] Need HELP with Boreland Free C++ 5.5 and VTK4 In-Reply-To: <3D57E29F.90003@imaging.robarts.ca> References: <5.0.2.1.0.20020812121312.0463d5d0@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20020812123540.046ab7b0@pop.nycap.rr.com> The contents of the file is supposed to be empty, but you are getting this error from MAKE: MAKE Version 5.2 Copyright (c) 1987, 2000 Borland Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not exist - don't know how to make it Which made me think you did not have the file. Is the path correct? -Bill At 12:30 PM 8/12/2002 -0400, Ravi Gupta wrote: >> Looks like your source might be incomplete, you should have the file >> VTK\Utilities\png\.NoDartCoverage > > >Yes I have the file but its empty except for the line ># do not do coverage in this directory > >This is a VTK source that I have been using with VC++ and RedHat for a long time without any problems... > > > >William A. Hoffman wrote: > >>I am not sure what is going wrong for you. We are running a dashboard for >>both shared (dll) and static builds of VTK each night. >>http://public.kitware.com/dashboard.php?name=vtk >>See these builds: >>KALGAN.­KITWARE WinNT-bcc32 >>KALGAN.­KITWARE WinNTbcc32shared >>Looks like your source might be incomplete, you should have the file VTK\Utilities\png\.NoDartCoverage. >>How are you getting the VTK source? >>-Bill >>At 10:40 AM 8/12/2002 -0400, Ravi Gupta wrote: >> >>>Does anyone have a help page on building the VTK DLLs using Borland. All I need is the dlls hence my choice of the free compiler. >>> >>>Windows 2000 >>>VTK 4.n (Which compiles fine under VC++) >>>Borland C++ 5.5.1 for Win32, using dos prompt >>>CMake 1.4.3-patch (has the same errors as CMake 1.3 development) >>> >>>MAKE Version 5.2 Copyright (c) 1987, 2000 Borland >>>Fatal: 'D:\rgupta\vtk4\VTK\Utilities\png\.NoDartCoverage' does not exist - don't know how to make it >>> >>>I got past this error by editing the Make files. Not an elegant solution but I could live with it if I have to. Requires 8-10 files to be edited. >>> >>>THE SHOW STOPPER IS AN UNRESOLVED EXTERN SYMBOL IN THE IO DIRECTORY FILES. Sorry lost the error but will re generate it if someone in the borland community can help me. >>> >>>Thanks >>>Ravi >>> >>> >>> >>> >>> >>>-- >>>Ravi Gupta >>> >>>Programmer >>> >>> >>>################################################# >>>The John P. | P.O. Box 5015 >>>Robarts Research Institute | 100 Perth Drive >>>Imaging Research Laboratories | London >>>Tel: (519) 663-5777 ext. 1-34077| Ontario >>>Fax: (519) 663-3403 | Canada >>>E-Mail: rgupta@irus.rri.ca | N6A 5K8 >>>################################################# >>> >>>################################################# >>>http://www.irus.rri.ca/igns >>>http://www.irus.rri.ca/~rgupta >>>################################################# >>> >>>"Be the change you wish to see in the world." >>>-Mohandas Karamchand Gandhi >>> >>>_______________________________________________ >>>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 > > >-- >Ravi Gupta > >Programmer > > >################################################# >The John P. | P.O. Box 5015 >Robarts Research Institute | 100 Perth Drive >Imaging Research Laboratories | London >Tel: (519) 663-5777 ext. 1-34077| Ontario >Fax: (519) 663-3403 | Canada >E-Mail: rgupta@irus.rri.ca | N6A 5K8 >################################################# > >################################################# >http://www.irus.rri.ca/igns >http://www.irus.rri.ca/~rgupta >################################################# > >"Be the change you wish to see in the world." >-Mohandas Karamchand Gandhi > >_______________________________________________ >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 David.Pont@ForestResearch.co.nz Mon Aug 12 22:52:42 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Tue, 13 Aug 2002 09:52:42 +1200 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: Hi all, I have a new Dell Latitude C610 notebook running Win 2000. The Graphics card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an application built with vtk 3.1 which uses the "texture on a plane" method of viewing iamges. Since moving to my new machine the images now just appear as a full white rectangle. Have tried TIFF (with and without alpha) and BMP with the same results. I checked the archives and there seem to be some issues around textures and NVIDIA GeForce cards but no specific information on this problem. Anybody able to shed some light on this?.. I want my pictures back... thanks in advance Dave Pont From doctorart@hotmail.com Mon Aug 12 23:05:35 2002 From: doctorart@hotmail.com (R T) Date: Mon, 12 Aug 2002 14:05:35 -0800 Subject: [vtkusers] Visualisation of cell-based data. Message-ID: From a VTK-novice to a VTK-novice: PolyDataMapper mapper mapper SetInput polyDataObject mapper SetScalarModeToPointData //to visualize PoinT Data or mapper SetScalarModeToCellData //To visualize Cell Data Best, Roma >From: Bertwim van Beest >To: Will Schroeder >CC: "vtkusers@public.kitware.com" >Subject: Re: [vtkusers] Visualisation of cell-based data. >Date: Thu, 08 Aug 2002 09:11:11 +0200 > >Thanks! As a VTK-novice,I am reading the VTK-book. From the book I >understood that the user himself has to come-up with interpolation >schemes between the two sets of data, but apparently this is not true!? > >Anyway, I am going to try it out. > > >Regards, >Bertwim >==== >Will Schroeder wrote: > > > > VTK supports cell data; it's just like point data except associated with > > cells. There are also filters to convert between cell data and point >data > > (vtkCellDataToPointData and vtkPointDataToCellData) based on local > > averaging schemes. (You may need this: some filters e.g. contouring only > > work on point data). Some filters may operate on either cell or point >data, > > the user has to specify (e.g., vtkThreshold).The readers and writers all > > support point and cell data as well. > > Will > > > > At 09:38 PM 8/7/2002 +0200, Bertwim van Beest wrote: > > >Dear VTK community, > > > > > >I have a problem in understanding how to visualise cell-valued data. > > >That is, I have a grid (either structured of unstructured) consisting >of > > >cells defined by their vertices. Per cell I have one data value, which > > >is assumed to be constant over the volume of the cell (finite > > >difference/volume methods). > > > > > >How do I visualise this? VTK seems to be geared to vertex-based data > > >data values, but I can't imagine that VTK has not functionality to > > >tackle this! > > > > > >Thanks in advance? > > >_______________________________________________ > > >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 >_______________________________________________ >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 _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From doctorart@hotmail.com Tue Aug 13 00:51:34 2002 From: doctorart@hotmail.com (R T) Date: Mon, 12 Aug 2002 15:51:34 -0800 Subject: [vtkusers] problem with constrained Delaunay2D triangulation Message-ID: Hi Alexander, I 've been just wondering why are u using Delaunay triangulation? If you use UnstructuredGrid instead of PolyData and vtkDatasetMapper, you could just display your lines and points Have you tried SurfaceReconstructionFilter? (if you need a surface to be reconstructed and you know all of your points belong to the surface you want) Best, Roma > Hi, > >I am experiencing some problems triangulating a set of >points using Delaunay2D triangulation. The surface is >a northern hemisphere cut by an arbitrary plane. The >points that are triangulated are the union of points >on a sphere (generated using something like Glyph) and > a set of boundary points (from the intersection of a >sphere and a given plane). I am using Delaunay2D to >triangulate this set of points using the following >code: > > // Read points from file > vtkPoints *points = vtkPoints::New(); > fscanf( inhandle, "%d \n", &max ); > xyz = ( double * )malloc( 3*max*sizeof( double ) ); > for( i=0; i fscanf( inhandle, "%f %f %f \n", &x,&y,&z ); > xyz[3*i] = x; > xyz[3*i+1] = y; > xyz[3*i+2] = z; > } > for( i=0; i points->InsertPoint( i, &xyz[3*i] ); > } > > // Specify constraints > npts=5; // Varying this changes the surface >appearance > vtkCellArray *line = vtkCellArray::New(); > for( i=0; i line->InsertNextCell(2); > line->InsertCellPoint( pts[i] ); > line->InsertCellPoint( pts[i+1] ); > } > > vtkPolyData *profile = vtkPolyData::New(); > profile->SetPoints( points ); > profile->SetLines( line ); > > vtkDelaunay2D *del = vtkDelaunay2D::New(); > del->SetInput( profile ); > del->SetSource( profile ); > del->SetTolerance( 0.0 ); > del->SetAlpha( 0.0 ); > del->BoundingTriangulationOff(); > del->Update(); > >What I find wierd is that the surface appeareance >changes depending on how many edges along the cut I >specify as constraints. This problem appeared once for >a particular case where the cutting plane slices a >small part of hemisphere making a small angle with the >equatorial plane. Depending on the number of specified >edges I was getting either a correct surface or pieces >of surface close to the polar cap.I also tried to >change the scheme for generation surface points, but >it did not change things. > >I am in a dire need for some advise. Does my code look >Ok for this operation? Is it possible that I am >encountering some vtkDelaunay bug? So far, I noticed >this kind of problem only once among few dozen cases >that I looked at. I would be glad to provide full code >and data set which is resulting in this behavior. > >Any comments/advises would be greately appreciated. > > - Alex Smondyrev. > > >__________________________________________________ >Do You Yahoo!? >HotJobs - Search Thousands of New Jobs >http://www.hotjobs.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 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From doctorart@hotmail.com Tue Aug 13 01:12:32 2002 From: doctorart@hotmail.com (R T) Date: Mon, 12 Aug 2002 16:12:32 -0800 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: David, maybe, you want to upgrade your drivers? If you have a generic driver installed instead of Detonator family, many functions are not supported. http://www.nvidia.com/view.asp?PAGE=drivers http://www.delphi3d.net/hardware/index.php http://www.delphi3d.net/faq.php?question=5 http://www.delphi3d.net/faq.php?question=21 http://guru3d.com/geforcetweakutility/ Best, Roma >From: David.Pont@ForestResearch.co.nz >To: vtkusers@public.kitware.com >Subject: [vtkusers] Texture not displayed (NVIDIA problem?) >Date: Tue, 13 Aug 2002 09:52:42 +1200 > > >Hi all, > I have a new Dell Latitude C610 notebook running Win 2000. The Graphics >card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an >application built with vtk 3.1 which uses the "texture on a plane" method >of viewing iamges. Since moving to my new machine the images now just >appear as a full white rectangle. Have tried TIFF (with and without alpha) >and BMP with the same results. >I checked the archives and there seem to be some issues around textures and >NVIDIA GeForce cards but no specific information on this problem. Anybody >able to shed some light on this?.. I want my pictures back... > thanks in advance > Dave Pont > >_______________________________________________ >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 _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From David.Pont@ForestResearch.co.nz Tue Aug 13 01:20:52 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Tue, 13 Aug 2002 12:20:52 +1200 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: I played around with Windows "Display Properties", under Settings | Advanced | Trobleshooting. I tried all the various positions on the Hardware Acceleration slider, starting on the default maximum and working backwards. Once I reached the second lowest setting ("Disable all but basic accelerations. Use this setting to correct more severe problems.") I got my textured images to display... but now the graphics performance is positively sloth-like... Hmmmm... Anyone have suggestions on how to remedy this? update drivers? magical vtk or OpenGL settings? give up and live with a lobotomised video card for vtk? join the masses and only use my PC for playing games ;-) OK, I'm off to check the Dell / NVidia sites for driver updates or any other info.. Dave David.Pont@forestresear ch.co.nz To: vtkusers@public.kitware.com Sent by: cc: vtkusers-admin@public.k Subject: [vtkusers] Texture not displayed (NVIDIA problem?) itware.com 13/08/2002 09:52 Hi all, I have a new Dell Latitude C610 notebook running Win 2000. The Graphics card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an application built with vtk 3.1 which uses the "texture on a plane" method of viewing iamges. Since moving to my new machine the images now just appear as a full white rectangle. Have tried TIFF (with and without alpha) and BMP with the same results. I checked the archives and there seem to be some issues around textures and NVIDIA GeForce cards but no specific information on this problem. Anybody able to shed some light on this?.. I want my pictures back... thanks in advance Dave Pont _______________________________________________ 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 Koning, P.J.H. de (LKEB)" Message-ID: <7374XXVD9IZW0PKZT651Z98A9B0UQ.3d58b003@MRI-PATRICK> 09-08-02 15:35:13, "Subramanian, S." wrote: >Hi, > I have a (probably silly) question, > I want to update an image data which I get from the network in real time. I >use the following section of code which doesn't to work, can someone tell me >what's wrong? (I'm using vtk3.2 under win2000 with vc++ 6.0) > >vtkImageData *image = vtkImageData::New(); > image->SetDimensions(256,256,1); > image->SetScalarType(VTK_UNSIGNED_CHAR); > image->AllocateScalars(); >while(1) >{ > unsigned char *p_out ; > p_out = (unsigned char *)image->GetScalarPointer(); > // > image->Update(); > .. > // > imageactor->SetInput(image); > Renderer.renWin->Render(); > delete []p_out; >} > Try calling image->Modified() instead of image->Update(); >but if I modify my code to put the imagedata decleration inside the while >loop and introduce an image->Delete() the code works. >Any insights? >thanks in advance, >Sriram > > >_______________________________________________ >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 sebaaihb@linux.zrz.tu-berlin.de Tue Aug 13 00:45:34 2002 From: sebaaihb@linux.zrz.tu-berlin.de (Emil Kasulzke) Date: Tue, 13 Aug 2002 01:45:34 +0200 Subject: [vtkusers] vtk + volume rendering app Message-ID: <3D58489E.6080206@linux.zrz.tu-berlin.de> Hi all, I am currently evaluating VTK for use in a volume rendering app. Can anyone tell me his experiences with vr and vtk? How fast is the vtk volume ray tracer for datasets of about 256^3? Is there an implementation of the shear-warp algorithm for vtk (I didn't find it in the sources)? Does anyone know of a freely available volume rendering program based on vtk (preferably small and with source - just to get an idea of how things are done)? I had a look at the vr examples and was quite amazed by the LOD features, but the examples are just too simple. Thanks in advance, Emil From benjaminking@web.de Fri Aug 9 14:49:13 2002 From: benjaminking@web.de (Benjamin King) Date: Fri, 09 Aug 2002 15:49:13 +0200 Subject: [vtkusers] Please add a warning or something Message-ID: <3D53C859.5010703@web.de> Hi, vtkTransform GetInverse just copies the tranformation matrix if it isn't invertible. Shame on me, but it took me like three days to figure it out. cu, Benni -- There are only 10 types of people in this world: Those who understand binary, and those who don't. From spanish_vtk@hotmail.com Tue Aug 13 12:26:58 2002 From: spanish_vtk@hotmail.com (fernando hierro) Date: Tue, 13 Aug 2002 11:26:58 +0000 Subject: [vtkusers] vtkTkRenderWidget.cxx Message-ID: what can i do??? In /home/VTK/Rendering/vtkTkRenderWidget.cxx, line 311 A TkRenderWidget is being destroyed before it associated vtkRenderWindow is destro yed. This is very bad and usually due to the order in which objects are being dest royed. Always destroy the vtkRenderWindow before destroying the user interface com ponents. i don't know how solver it. _________________________________________________________________ MSN Fotos: la forma más fácil de compartir e imprimir fotos. http://photos.msn.es/support/worldwide.aspx From julia@lrde.epita.fr Tue Aug 13 12:41:52 2002 From: julia@lrde.epita.fr (Julia Faurie) Date: Tue, 13 Aug 2002 13:41:52 +0200 Subject: [vtkusers] please help for rgb colors Message-ID: <3D58F080.F6CECF3@lrde.epita.fr> hi! does anyone know how i can set a rgb colors gradation to my isosurface? i've tried a look up table like that (i associate scalars in the file): vtkLookupTable *clut=vtkLookupTable::New(); clut->SetNumberOfColors(hsize*hsize*hsize); clut->Build(); int numerop=0; for (int r = 0; r < hsize; ++r) for (int g = 0; g < hsize; ++g) { for (int b = 0; b < hsize; ++b) { float re=((float)r*mult)/248; float gr=((float)g*mult)/248; float bl=((float)b*mult)/248; clut->SetTableValue(numerop,re,gr,bl,1.0); numerop++; } } clut->SetTableRange (tab); i can see the colors on the surface are right but there are blobs on the surface! thanks From p.cook@cs.ucl.ac.uk Tue Aug 13 13:08:14 2002 From: p.cook@cs.ucl.ac.uk (Philip Cook) Date: Tue, 13 Aug 2002 13:08:14 +0100 Subject: [vtkusers] white line In-Reply-To: <20020812220702.33E231AB4E@public.kitware.com> References: <20020812220702.33E231AB4E@public.kitware.com> Message-ID: <200208131308.14374.p.cook@cs.ucl.ac.uk> On Monday 12 August 2002 11:06 pm, vtkusers-request@public.kitware.com wrote: > Message: 4 > Date: Mon, 12 Aug 2002 11:08:44 -0400 > From: Csaba Palotai > To: vtkusers@public.kitware.com > Subject: [vtkusers] white line > > > --Apple-Mail-2--681883362 > Content-Transfer-Encoding: 7bit > Content-Type: text/plain; > charset=US-ASCII; > format=flowed > > Hi all, > > I'm mapping a sphere (planet) to rectilinear coordinates (so I can take > a look at the whole planet from one view) but it's kinda easy to get > lost with directions. So I'm planning to add a white line to the > northern side of the model which would help out. It's probably so easy > to create this line that I couldn't figure out how to. Is it like the > strips in the Arrays.cxx example? how can I make it white, by saying > actor->SetColor(1,0,0) ? I so aint sure about this thing. Anyone can > help out? my coordinates for the two endpoints (1,nj/2,0) and (1,nj,0). To make a simple line, see vtkLineSource. Color is RGB, so SetColor(1,0,0) will give you a red line. Use SetColor(1,1,1) for white. From ken.martin@kitware.com Tue Aug 13 13:22:31 2002 From: ken.martin@kitware.com (Ken Martin) Date: Tue, 13 Aug 2002 08:22:31 -0400 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) In-Reply-To: Message-ID: My guess is that this is due to a texture size limitation in your hardware. If VTK tries to draw too large of a texture map some hardware will simply fail to draw the texture map. The result is a white rectangle on the screen. Since 4.0 we have added logic in VTK to handle this an break apart the texture into multiple smaller texture maps that do fit within the graphics hardware's limitations. Ken > -----Original Message----- > From: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of > David.Pont@ForestResearch.co.nz > Sent: Monday, August 12, 2002 8:21 PM > To: vtkusers@public.kitware.com > Subject: Re: [vtkusers] Texture not displayed (NVIDIA problem?) > > > > I played around with Windows "Display Properties", under Settings | > Advanced | Trobleshooting. I tried all the various positions on the > Hardware Acceleration slider, starting on the default > maximum and working > backwards. Once I reached the second lowest setting > ("Disable all but basic > accelerations. Use this setting to correct more severe > problems.") I got my > textured images to display... but now the graphics performance is > positively sloth-like... > Hmmmm... > Anyone have suggestions on how to remedy this? update > drivers? magical vtk > or OpenGL settings? give up and live with a lobotomised > video card for vtk? > join the masses and only use my PC for playing games ;-) > > OK, I'm off to check the Dell / NVidia sites for driver > updates or any > other info.. > Dave > > > > > > David.Pont@forestresear > > ch.co.nz To: > vtkusers@public.kitware.com > Sent by: cc: > > vtkusers-admin@public.k Subject: > [vtkusers] Texture not displayed (NVIDIA problem?) > itware.com > > > > > > 13/08/2002 09:52 > > > > > > > > > > > Hi all, > I have a new Dell Latitude C610 notebook running Win > 2000. The Graphics > card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an > application built with vtk 3.1 which uses the "texture on a > plane" method > of viewing iamges. Since moving to my new machine the > images now just > appear as a full white rectangle. Have tried TIFF (with and > without alpha) > and BMP with the same results. > I checked the archives and there seem to be some issues > around textures and > NVIDIA GeForce cards but no specific information on this > problem. Anybody > able to shed some light on this?.. I want my pictures back... > thanks in advance > Dave Pont > > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 Steffen.Oeltze@Student.Uni-Magdeburg.DE Tue Aug 13 13:41:25 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Tue, 13 Aug 2002 14:41:25 +0200 Subject: [vtkusers] accessing windows by an ID ? Message-ID: <3D58FE75.7040400@student.uni-magdeburg.de> Dear VTK-users, I'd like to write an application that uses multiple render windows. That makes it necessary to be able to make each window the current window at a certain time. Are there window ID's I can use for that ? I'm using VTK4.0 and Windows2000. How would a sample code look like ? Thanks a lot, Steffen Oeltze From Steffen.Oeltze@Student.Uni-Magdeburg.DE Tue Aug 13 14:17:49 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Tue, 13 Aug 2002 15:17:49 +0200 Subject: [vtkusers] drawing a polyline in 3D ? Message-ID: <3D5906FD.6030606@student.uni-magdeburg.de> Der VTK-users, I'm getting confused by the VTK-help. How do I draw a simple line in 3D ? Regards, Steffen From bertvansesamstraat@hotmail.com Tue Aug 13 16:29:19 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Tue, 13 Aug 2002 15:29:19 +0000 Subject: [vtkusers] (no subject) Message-ID: Dear all. I'm very new to Vtk and Tcl/Tk. Now is my question how to read or write the variables that are listed as protected in the class reference of a function. Simply use set val [planeWidgetX OriginalWindow] Doesn't work. Can someone also explain me what the purpose is of a protected variable. Probably all very basic but I really don't know. Thanks Maurice _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From Steffen.Oeltze@Student.Uni-Magdeburg.DE Tue Aug 13 16:31:15 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Tue, 13 Aug 2002 17:31:15 +0200 Subject: [vtkusers] deleting segments of a polyline Message-ID: <3D592643.1080102@student.uni-magdeburg.de> Dear VTK-users, I have drawn a polyline and I want to enable the user to delete n line segments at the end of this line. Do I have to create an actor for each line segment and delete these actors ? How can I access the polyline after having displayed it and the termination of the program ? Regards, Steffen From amy.henderson@kitware.com Tue Aug 13 16:46:04 2002 From: amy.henderson@kitware.com (Amy Henderson) Date: Tue, 13 Aug 2002 11:46:04 -0400 Subject: [vtkusers] (no subject) In-Reply-To: Message-ID: <5.1.0.14.0.20020813113539.00b1d110@pop.nycap.rr.com> At 03:29 PM 8/13/2002 +0000, Bert VanSesamstraat wrote: >Dear all. >I'm very new to Vtk and Tcl/Tk. >Now is my question how to read or write the variables that are listed as >protected in the class >reference of a function. >Simply use > > set val [planeWidgetX OriginalWindow] > >Doesn't work. >Can someone also explain me what the purpose is of a protected variable. >Probably all very basic but I really don't know. In C++, you do not have direct access to protected variables outside of the class they are in. You only have access to them if methods are provided in the public section that allow you to get or set their values. One reason that variables are protected so that there is more control over what their values are set to. - Amy >Thanks >Maurice > > >_________________________________________________________________ >Join the world's largest e-mail service with MSN Hotmail. >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 doctorart@hotmail.com Tue Aug 13 18:44:18 2002 From: doctorart@hotmail.com (R T) Date: Tue, 13 Aug 2002 09:44:18 -0800 Subject: [vtkusers] accessing windows by an ID ? Message-ID: vtkRenderWindow renWin1 vtkRenderWindow renWin2 vtkRenderer ren1 vtkRenderer ren2 renWin1 AddRenderer ren1 renWin2 AddRenderer ren2 Hope this helps. Best, Roma >From: Steffen Oeltze >To: VTK users >Subject: [vtkusers] accessing windows by an ID ? >Date: Tue, 13 Aug 2002 14:41:25 +0200 > >Dear VTK-users, > >I'd like to write an application that uses multiple render windows. >That makes it necessary to be able to make each window the >current window at a certain time. Are there window ID's I can >use for that ? I'm using VTK4.0 and Windows2000. How >would a sample code look like ? > >Thanks a lot, >Steffen Oeltze > >_______________________________________________ >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/vtkuse _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From doctorart@hotmail.com Tue Aug 13 18:55:06 2002 From: doctorart@hotmail.com (R T) Date: Tue, 13 Aug 2002 09:55:06 -0800 Subject: [vtkusers] drawing a polyline in 3D ? Message-ID: You can use vtkLineSource line line SetPoint1 #your xyz.... line SetPoint2 #your xyz1.... vtkPolyDataMapper mapper mapper SetInput [line GetOutput] or vtkPoints pts pts InsertPoint 0 1 1 1 pts InsertPoint 1 2 2 2 vtkLine line [line GetPointIds] SetIds 0 0 [line GetPointIds] SetIds 1 1 vtkUnstructuredGrid myGrid myGrid InsertNextCell line myGrid SetPoints pts vtkDatasetMapper mapper mapper SetInput myGrid Best, Roma >From: Steffen Oeltze >To: VTK users >Subject: [vtkusers] drawing a polyline in 3D ? >Date: Tue, 13 Aug 2002 15:17:49 +0200 > >Der VTK-users, > >I'm getting confused by the VTK-help. How do I draw >a simple line in 3D ? > >Regards, >Steffen > >_______________________________________________ >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 _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From doctorart@hotmail.com Tue Aug 13 19:03:56 2002 From: doctorart@hotmail.com (R T) Date: Tue, 13 Aug 2002 10:03:56 -0800 Subject: [vtkusers] deleting segments of a polyline Message-ID: What class did you use to draw a polyline? You probably can delete cells with RemoveCellReference and set some points to NULL(?) in your vtkPolyData and then call Modified and renWin->Render Please let me know how you resolve that Best, Roma >From: Steffen Oeltze >To: VTK users >Subject: [vtkusers] deleting segments of a polyline >Date: Tue, 13 Aug 2002 17:31:15 +0200 > >Dear VTK-users, > >I have drawn a polyline and I want to enable the user to >delete n line segments at the end of this line. Do I have >to create an actor for each line segment and delete these >actors ? How can I access the polyline after having >displayed it and the termination of the program ? > >Regards, >Steffen > >_______________________________________________ >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 _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From anast.jm@pg.com Tue Aug 13 19:06:08 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 13 Aug 2002 14:06:08 -0400 Subject: [vtkusers] build variables recalled in tcl Message-ID: Is there a way in tcl to access the variables that I'm assuming get defined during the vtk build such as VTK_LARGE_FLOAT. I've also been interested in the variables that define the vtkDataTypes like char=2, uchar=3...double=11. I've been hard codng these in my tcl scripts but this seems silly. Is there a list of all these types of variables and a tcl utility that loads em?? Any tips appreciated....john From cmchilan@yahoo.com Tue Aug 13 20:57:17 2002 From: cmchilan@yahoo.com (Christian Chilan) Date: Tue, 13 Aug 2002 12:57:17 -0700 (PDT) Subject: [vtkusers] Performance and saving images issue Message-ID: <20020813195717.21448.qmail@web20204.mail.yahoo.com> Hi there, I'm creating a viz application using VTK with Tcl/Tk. I've added interactivity such that the user can manipulate the view of the actors in the window. Another feature is saving images into a file (.bmp, .jpg,...). For the saving procedure, I'm using vtkWindowToImageFilter and the standard writers, say vtkBMPWriter. The problem here is that after saving an image, the interactivity performance drops. The view manipulation turns very slow. I made sure of deleting the filter and the writer after the file is saved but it doesn't solve the problem. It is my guess that in the pipeline, the window is still sending data somewhere. I've also noticed that this problem only affects the performance of the saved window. If there are more windows present, the others will behave normally. Hence, a possible workaround would be creating a temporal copy of the window just before saving. DeepCopy() should do but it's not implemented in all classes. Any help would be appreciated. Christian Chilan __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From David.Pont@ForestResearch.co.nz Wed Aug 14 00:08:44 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Wed, 14 Aug 2002 11:08:44 +1200 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: Good tip Ken, but I already encountered that problem way back when I first started on this app, (on my old machine). I just tested this out again with a large image and yes I can get a white rectangle (at any level of graphics acceleration) if the image exceeds my machines maximum texture dimension. This is reported as 1024 using the following: long maxDimGL; glGetIntegerv(GL_MAX_TEXTURE_SIZE,&maxDimGL); So image size is a gotcha, but given I have images below the maximum size, I still get a white rectangle unless I 'dumb down' my graphics acceleration. I even tried a tiny image (19*32) to be sure. Yesterday I got the latest drivers from NVIDIA, but this made no difference. I have a work-around, but I am still baffled that a modern graphics card has to be crippled to support texturing in OpenGL. I kind of feel it should be solvable. Is it because graphics cards are optimised for DirectX, leaving OpenGL out in the cold? is it because there are too many combinations of hardware / software to ensure all work? should I upgrade to vtk 4? can I update my OpenGL? are there some little-known Windows/NVIDIA/OpenGL/vtk settings I can twiddle? is it a hole that is too deep and dark for sane people to go into? Dave 'Decelerator' Pont "Ken Martin" , p.rr.com> cc: Subject: RE: [vtkusers] Texture not displayed (NVIDIA problem?) 14/08/2002 00:22 Please respond to ken.martin My guess is that this is due to a texture size limitation in your hardware. If VTK tries to draw too large of a texture map some hardware will simply fail to draw the texture map. The result is a white rectangle on the screen. Since 4.0 we have added logic in VTK to handle this an break apart the texture into multiple smaller texture maps that do fit within the graphics hardware's limitations. Ken > -----Original Message----- > From: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of > David.Pont@ForestResearch.co.nz > Sent: Monday, August 12, 2002 8:21 PM > To: vtkusers@public.kitware.com > Subject: Re: [vtkusers] Texture not displayed (NVIDIA problem?) > > > > I played around with Windows "Display Properties", under Settings | > Advanced | Trobleshooting. I tried all the various positions on the > Hardware Acceleration slider, starting on the default > maximum and working > backwards. Once I reached the second lowest setting > ("Disable all but basic > accelerations. Use this setting to correct more severe > problems.") I got my > textured images to display... but now the graphics performance is > positively sloth-like... > Hmmmm... > Anyone have suggestions on how to remedy this? update > drivers? magical vtk > or OpenGL settings? give up and live with a lobotomised > video card for vtk? > join the masses and only use my PC for playing games ;-) > > OK, I'm off to check the Dell / NVidia sites for driver > updates or any > other info.. > Dave > > > > > > David.Pont@forestresear > > ch.co.nz To: > vtkusers@public.kitware.com > Sent by: cc: > > vtkusers-admin@public.k Subject: > [vtkusers] Texture not displayed (NVIDIA problem?) > itware.com > > > > > > 13/08/2002 09:52 > > > > > > > > > > > Hi all, > I have a new Dell Latitude C610 notebook running Win > 2000. The Graphics > card is reported as: "NVIDIA GeForce 2 Go (Dell Mobile)". I have an > application built with vtk 3.1 which uses the "texture on a > plane" method > of viewing iamges. Since moving to my new machine the > images now just > appear as a full white rectangle. Have tried TIFF (with and > without alpha) > and BMP with the same results. > I checked the archives and there seem to be some issues > around textures and > NVIDIA GeForce cards but no specific information on this > problem. Anybody > able to shed some light on this?.. I want my pictures back... > thanks in advance > Dave Pont > > _______________________________________________ > 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 > > > > > _______________________________________________ > 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 reichl@ifb.tu-graz.ac.at Wed Aug 14 01:12:59 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Wed, 14 Aug 2002 1:12:59 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1185 - 15 msgs Message-ID: I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From david.netherway@adelaide.edu.au Wed Aug 14 08:26:04 2002 From: david.netherway@adelaide.edu.au (David Netherway) Date: Wed, 14 Aug 2002 16:56:04 +0930 Subject: [vtkusers] testing the normal direction for a PolyData References: Message-ID: <003d01c24363$d99a8140$0d8156c0@acfu.wch.sa.gov.au> Hello, After using vtkPolyDataNormals to ensure that the normals of a polydata are consitent I wish to test whether they are facing inwards or outwards. Toggling FlipNormals, if necessary, will then give me orientation I want. What I need is a method SetNormalsInward or SetNormalsOutward. Please let me know if such methods exist or there is a methodology for doing this. I envisage getting the closest triangle to a particular point that I know is on the surface interior to an unknown triangle, and then checking whether the normal is in the view direction. Comments on a good method would be welcome. Thanks, David From Steffen.Oeltze@Student.Uni-Magdeburg.DE Wed Aug 14 09:05:17 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Wed, 14 Aug 2002 10:05:17 +0200 Subject: [vtkusers] accessing a existing VTK-render-window from another procedure Message-ID: <3D5A0F3D.2060609@student.uni-magdeburg.de> Dear VTK-users, I have written 2 C++ procedures. One that creates 2 VTK-render-windows showing raycasted volumes. This one works fine. The other procedure shall be used to add geometry to each of the existing windows. The problem is that I don't know how to accress the windows. (I'm not using Tcl but only C++.) Do they have an ID or something similar ? Does anybody have a sample of code ? Thanks in advance, Steffen Oeltze From zhou@isg.cs.uni-magdeburg.de Wed Aug 14 12:54:21 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Wed, 14 Aug 2002 13:54:21 +0200 Subject: [vtkusers] render labeled volume Message-ID: <3D5A610E.13492.11961F8@localhost> Hi, all, I have two data sets: one is original volume and the other is a labeled volume. The two volume data sets have same dimensions. Now I want to render part of original volume which is labeled by labeled volume. The labeled volume can be arbitrary shape. I only want to render the volume inside this shape. Does anyone give me any advice how to render this labeled volume using vtk? Thank you very much. Best regards, Jianlong From Koning, P.J.H. de (LKEB)" Message-ID: 14-08-02 13:54:21, "Jianlong Zhou" wrote: Try vtkImageMask > >Hi, all, > >I have two data sets: one is original volume and the other is a labeled volume. The two >volume data sets have same dimensions. Now I want to render part of original volume >which is labeled by labeled volume. The labeled volume can be arbitrary shape. I only >want to render the volume inside this shape. Does anyone give me any advice how to >render this labeled volume using vtk? > >Thank you very much. > >Best regards, > >Jianlong >_______________________________________________ >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 erasmia.stamnas@scai.fhg.de Wed Aug 14 14:09:08 2002 From: erasmia.stamnas@scai.fhg.de (erasmia) Date: Wed, 14 Aug 2002 15:09:08 +0200 Subject: [vtkusers] help with VRMLImporter, Animation Message-ID: <3D5A5674.8070305@scai.fhg.de> Hi everybody, that importer works fine with my vrml2.0-generated image. But i would like to look at a longer sequence of vrml-images, around 100. Trying to do some "animation", but i have no idea how this could work, and i didn't find any examples yet... I'm new to vtk and tcl and c++, so i' m very glad about any examples, advices ... to get a deeper understanding of this stuff :-) Thanks a lot :-) Erasmia From Jason.Ruiter@Altarum.org Wed Aug 14 16:41:58 2002 From: Jason.Ruiter@Altarum.org (Jason Ruiter) Date: 14 Aug 2002 11:41:58 -0400 Subject: [vtkusers] vtk40, w2k, python21, "Import Error: No module named vtkCommonPython" Message-ID: <1029339718.24884.14.camel@etg.altarum.org> Greetings, I've seen this question before, but haven't seen an answer: I've installed the vtk40core, tcl, and python exe's from the kitware site. I've also installed python2.1. I set PYTHONPATH to c:\vtk40\wrapping\python. In python, I: import vtkpython I consistently get this error: Import Error: No module named vtkCommonPython I've putting c:\vtk40\lib\vtk in both PATH and PYTHONPATH. I've tried copying the contents of c:\vtk40\lib\vtk to c:\vtk40\wrapping\python, but nothing seems to work. If anyone have any pointers, I'd appreciate it. Thanks Jason -- Jason Ruiter Research Computer Engineer, Emerging Technologies Group Altarum Institute -- From doctorart@hotmail.com Wed Aug 14 16:56:05 2002 From: doctorart@hotmail.com (R T) Date: Wed, 14 Aug 2002 07:56:05 -0800 Subject: [vtkusers] Better Surface Reconstruction: Ball Pivoting Message-ID: Hello all, has anybody implemented this : The Ball-Pivoting Algorithm for Surface Reconstruction Fausto Bernardini, Joshua Mittleman, Holly Rushmeier, ClaÂudio Silva, It is said to be superior to 3D Delaunay are the source codes available somewhere? Best, R _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From gerlin2@lycos.de Wed Aug 14 17:16:14 2002 From: gerlin2@lycos.de (Gerhard Link) Date: Wed, 14 Aug 2002 12:16:14 -0400 (EDT) Subject: [vtkusers] install Message-ID: <1029341771001086@lycos.de> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. --=_NextPart_Caramail_0010861029341771_ID Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi gurus, i tried to install VTK on my PC (OS: Suse Linux 7.1) without sucess; see attached error messages. can anyone tell me what todo? thanks in advance gerhard ______________________________________________________ Internetzugang zum cleveren Spartarif mit Lycos-Comundo! Highspeed f=FCr nur 0,0143 Euro/Min. http://www.lycos.de/L/M/T/ --=_NextPart_Caramail_0010861029341771_ID Content-Type: application/octet-stream; name="error.txt" Content-Transfer-Encoding: base64 Content-Disposition: inline; filename="error.txt" SW4gZmlsZSBpbmNsdWRlZCBmcm9tIC91c3IvVlRLL1JlbmRlcmluZy92dGtHcmFwaGljc0Zh Y3RvcnkuY3h4OjU2OgovdXNyL1ZUSy9SZW5kZXJpbmcvdnRrT3BlbkdMUG9seURhdGFNYXBw ZXIuaDo1NzogR0wvZ2wuaDogTm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQpJbiBmaWxlIGlu Y2x1ZGVkIGZyb20gL3Vzci9WVEsvUmVuZGVyaW5nL3Z0a0dyYXBoaWNzRmFjdG9yeS5jeHg6 NjA6Ci91c3IvVlRLL1JlbmRlcmluZy92dGtPcGVuR0xWb2x1bWVSYXlDYXN0TWFwcGVyLmg6 NjE6IEdML2dsLmg6IE5vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkKSW4gZmlsZSBpbmNsdWRl ZCBmcm9tIC91c3IvVlRLL1JlbmRlcmluZy92dGtYT3BlbkdMUmVuZGVyV2luZG93Lmg6NTUs CiAgICAgICAgICAgICAgICAgZnJvbSAvdXNyL1ZUSy9SZW5kZXJpbmcvdnRrR3JhcGhpY3NG YWN0b3J5LmN4eDo3ODoKL3Vzci9WVEsvUmVuZGVyaW5nL3Z0a09wZW5HTFJlbmRlcldpbmRv dy5oOjU3OiBHTC9nbC5oOiBObyBzdWNoIGZpbGUgb3IgZGlyZWN0b3J5CkluIGZpbGUgaW5j bHVkZWQgZnJvbSAvdXNyL1ZUSy9SZW5kZXJpbmcvdnRrR3JhcGhpY3NGYWN0b3J5LmN4eDo3 ODoKL3Vzci9WVEsvUmVuZGVyaW5nL3Z0a1hPcGVuR0xSZW5kZXJXaW5kb3cuaDo1NjogR0wv Z2x4Lmg6IE5vIHN1Y2ggZmlsZSBvciBkaXJlY3RvcnkKSW4gZmlsZSBpbmNsdWRlZCBmcm9t IC91c3IvVlRLL1JlbmRlcmluZy92dGtHcmFwaGljc0ZhY3RvcnkuY3h4Ojc4OgovdXNyL1ZU Sy9SZW5kZXJpbmcvdnRrWE9wZW5HTFJlbmRlcldpbmRvdy5oOjYxOiBHTC9vc21lc2EuaDog Tm8gc3VjaCBmaWxlIG9yIGRpcmVjdG9yeQptYWtlWzNdOiAqKiogW3Z0a0dyYXBoaWNzRmFj dG9yeS5vXSBFcnJvciAxCm1ha2VbMl06ICoqKiBbZGVmYXVsdF90YXJnZXRdIEVycm9yIDIK bWFrZVsxXTogKioqIFtkZWZhdWx0X3RhcmdldF9SZW5kZXJpbmddIEVycm9yIDIKbWFrZTog KioqIFtkZWZhdWx0X3RhcmdldF0gRXJyb3IgMgpsaW51eDovdXNyL1ZUSyAj --=_NextPart_Caramail_0010861029341771_ID-- From tapadmin@swbell.net Wed Aug 14 18:07:40 2002 From: tapadmin@swbell.net (Tom Parker) Date: Wed, 14 Aug 2002 12:07:40 -0500 Subject: [vtkusers] vtk40, w2k, python21, "Import Error: No module named vtkCommonPython" In-Reply-To: <1029339718.24884.14.camel@etg.altarum.org> Message-ID: Hello, I've gotten this working on my machine by doing the following. 1. I've installed vtk using this scheme. c:\python21 - python 2.1 c:\vtk40\vtk - source c:\vtk40\lib - cmake generated makefiles with tcl and python wrappers turned on and shared library generation on 2. I set PYTHONPATH = c:\vtk40\vtk\wrapping\python 3. I copied the release version of the vtk*.dll files from c:\vtk40\lib\bin\release to c:\python21\dlls. Just putting c:\vtk40\lib\bin\release in the path wasn't enough for python to find the vtk imports. No luck yet with debug dlls, I'm sure my lack of understanding of python/c++ interaction is the problem there. Regards, Tom The only thing I don't have working yet is > -----Original Message----- > From: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Jason Ruiter > Sent: Wednesday, August 14, 2002 10:42 AM > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtk40, w2k, python21, "Import Error: No module named > vtkCommonPython" > > > Greetings, > > I've seen this question before, but haven't seen an answer: > > I've installed the vtk40core, tcl, and python exe's from the kitware > site. I've also installed python2.1. I set PYTHONPATH to > c:\vtk40\wrapping\python. > > In python, I: > > import vtkpython > > I consistently get this error: > > Import Error: No module named vtkCommonPython > > I've putting c:\vtk40\lib\vtk in both PATH and PYTHONPATH. I've tried > copying the contents of c:\vtk40\lib\vtk to c:\vtk40\wrapping\python, > but nothing seems to work. > > If anyone have any pointers, I'd appreciate it. > > Thanks > Jason > > > -- > Jason Ruiter > Research Computer Engineer, Emerging Technologies Group > Altarum Institute > > -- > > _______________________________________________ > 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 walter@lncc.br Wed Aug 14 19:23:34 2002 From: walter@lncc.br (Walter Herrera) Date: Wed, 14 Aug 2002 15:23:34 -0300 Subject: [vtkusers] Using Crystal Eyes with VTK Message-ID: <5.0.2.1.0.20020814152145.00a542a0@pop.lncc.br> Hi, I am trying to use VTK with my Crystal Eyes Shutter Glasses but I can=B4t=20 find any usefull "working" code. Does anyone have an example? Thanks Walter From prabhu@aero.iitm.ernet.in Wed Aug 14 19:30:01 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 15 Aug 2002 00:00:01 +0530 Subject: [vtkusers] vtk40, w2k, python21, "Import Error: No module named vtkCommonPython" In-Reply-To: <1029339718.24884.14.camel@etg.altarum.org> References: <1029339718.24884.14.camel@etg.altarum.org> Message-ID: <15706.41385.524702.270667@monster.linux.in> >>>>> "JR" == Jason Ruiter writes: JR> I've installed the vtk40core, tcl, and python exe's from the JR> kitware site. I've also installed python2.1. I set JR> PYTHONPATH to c:\vtk40\wrapping\python. You also need to set the PYTHONPATH to the directory that contains the vtk*Python.dll DLLs. You could do something like this: PYTHONPATH=c:\vtk40\wrapping\python:c:\vtk40\lib\vtk Assuming that c:\vtk40\lib\vtk is the place where you have your vtk*Python.dll's. You also need to put the c:\vtk40\lib\vtk directory into your PATH. Alternatively use the setup.py script in the wrapping\python directory to install vtk-python. # python setup.py install Hope this helps. prabhu From anast.jm@pg.com Wed Aug 14 19:35:57 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 14 Aug 2002 14:35:57 -0400 Subject: [vtkusers] Using Crystal Eyes with VTK Message-ID: Walter, this is a real simple cone example. To be sure everything is wo= rking in vtk first you can use the RedBlue stereo to see the stereo effect witho= ut any special hardware, then switch to Crystal Eyes to check that out. I have= not tried SE lately but should work....john package require vtk package require vtkinteraction # create a rendering window and renderer vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 renWin StereoCapableWindowOn #renWin SetStereoTypeToRedBlue renWin SetStereoTypeToCrystalEyes renWin StereoRenderOn vtkRenderWindowInteractor iren iren SetRenderWindow renWin # create an actor and give it cone geometry vtkConeSource cone cone SetResolution 8 vtkPolyDataMapper coneMapper coneMapper SetInput [cone GetOutput] vtkActor coneActor coneActor SetMapper coneMapper # assign our actor to the renderer ren1 AddActor coneActor # enable user interface interactor iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize # prevent the tk window from showing up then start the event loop wm withdraw . =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: Walter Herrera @public.kitware.com on 08/14/2002 = 03:23 PM NST = =20 Walter Herrera To: vtkusers@public.ki= tware.com =20 @public.kitware.com Cc: (bcc: John Anast-= JM/PGI) =20 Subject: [vtkusers] Using C= rystal Eyes with =20 VTK = =20 Sent by: = =20 vtkusers-admin@public.kitware.com = =20 08/14/2002 02:53 PM = =20 = =20 = =20 Hi, I am trying to use VTK with my Crystal Eyes Shutter Glasses but I can=B4= t find any usefull "working" code. Does anyone have an example? Thanks Walter _______________________________________________ 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 szenderb@bu.edu Wed Aug 14 19:41:48 2002 From: szenderb@bu.edu (Brian Szender) Date: Wed, 14 Aug 2002 18:41:48 +0000 Subject: [vtkusers] large actor rendering Message-ID:
I have 33 large actors that I am trying to add to a rendering window.  I
am wondering if there is someway to streamline the process beyond this:
 
vtkPolyDataMapper *airwayTreeMapper8 = vtkPolyDataMapper::New();
 airwayTreeMapper8->SetInput( appendAirwayTree8->GetOutput() );
 appendAirwayTree8->Delete();
 
...
 
vtkActor *airwayTreeActor8 = vtkActor::New();
 airwayTreeActor8->SetMapper( airwayTreeMapper8 );
 airwayTreeActor8->GetProperty()->SetColor( 1, 1, 0 );
 airwayTreeMapper8->Delete();
...
 
actors.push_back( airwayTreeActor8 );
 
...
 
renderer->AddActor( airwayTreeActor8 );
 airwayTreeActor8->Delete();
...
 
vtkwindow->getRenderWindow()->Render();
 
Thanks,
 
Brian


Join the world’s largest e-mail service with MSN Hotmail. Click Here
From FischerT@kpgraphics.com Wed Aug 14 20:30:20 2002 From: FischerT@kpgraphics.com (Fischer, Timothy A.) Date: Wed, 14 Aug 2002 15:30:20 -0400 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: <27A3FCA5E1CFD1119718000629B00EB40BBBF608@sbyexc01.kpgraphics.com> Hi, I've run into a similar problem to this on my IBM T23 laptop, which has an S3 graphics chip. I have checked and do have the latest available driver loaded on my system. In my case, I can render the object to the screen (set up using SetScalarModeToDefault() in the mapper) and it will come up in color, but as soon as I click the mouse in the window to rotate it, it turns white. If I re-call SetScalarModeToDefault(), the object color will be back (until I click in the window again). If I map the color differently (using SetScalarModeToUsePointFieldData() and ColorByArrayComponent() in the mapper), it maintains it's color as I rotate. If I set the Hardware Acceleration for the display down to the next to the bottom setting, this problem goes away -- the object will rotate in color without changing to white. In checking this out further, I've come up with a simple example that exhibits the problem. I built the "SampleMFC" project from Examples\GUI\Win32, and made a sample data file. Opening the data file with the "Win32SampleMFC.exe" that is generated from this project gives the same behavior -- the object (a simple cube in the test file) opens as color, but changes to white as soon as I click to rotate. If I close the window and re-open the file, it again comes up initially in color. This was tried with both the vtk 4.0 Release and vtk 4.x Nightly distributions. The data file is the following: # vtk DataFile Version 2.0 Test Cube ASCII DATASET POLYDATA POINTS 8 float 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 0.0 1.0 1.0 POLYGONS 6 30 4 0 1 2 3 4 4 5 6 7 4 0 1 5 4 4 2 3 7 6 4 0 4 7 3 4 1 2 6 5 POINT_DATA 8 COLOR_SCALARS vertexColors 3 0.0 0.0 0.0 1.0 0.0 0.0 1.0 1.0 0.0 0.0 1.0 0.0 0.0 0.0 1.0 1.0 0.0 1.0 1.0 1.0 1.0 0.0 1.0 1.0 So, it seems that something is being set differently when the window is first rendered than when the window is updated as the object is being rotated. Any ideas or suggestions are welcome. Tim Fischer fischert@kpgraphics.com From nNunn@ausport.gov.au Wed Aug 14 21:15:29 2002 From: nNunn@ausport.gov.au (Nigel Nunn) Date: Thu, 15 Aug 2002 06:15:29 +1000 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: <7AF3524792FFD511A17A0000F81E965E472AEF@elmo.ausport.gov.au> Hi Tim, How much graphics RAM is on the card? If your display is > 1024*768 and the Vtk session is double-buffered, you may need at least 16MB. Nigel --- [FischerT@kpgraphics.com] wrote --- > I've run into a similar problem to this on my IBM T23 > laptop, which has an S3 graphics chip. I have checked > and do have the latest available driver loaded on my > system. > ... ********************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************** From FischerT@kpgraphics.com Wed Aug 14 21:36:32 2002 From: FischerT@kpgraphics.com (Fischer, Timothy A.) Date: Wed, 14 Aug 2002 16:36:32 -0400 Subject: [vtkusers] Texture not displayed (NVIDIA problem?) Message-ID: <27A3FCA5E1CFD1119718000629B00EB40BBBF609@sbyexc01.kpgraphics.com> Nigel, I've been running at 1024x768, and the card has 16MB of video memory. I tried switching the card to 800x600, and still get the same behavior. Tim --- Nigel Nunn [nNunn@ausport.gov.au] wrote -- Hi Tim, How much graphics RAM is on the card? If your display is > 1024*768 and the Vtk session is double-buffered, you may need at least 16MB. Nigel --- [FischerT@kpgraphics.com] wrote --- > I've run into a similar problem to this on my IBM T23 > laptop, which has an S3 graphics chip. I have checked > and do have the latest available driver loaded on my > system. > ... From marcelo@cci.fmrp.usp.br Wed Aug 14 17:38:29 2002 From: marcelo@cci.fmrp.usp.br (Marcelo Costa Oliveira) Date: Wed, 14 Aug 2002 13:38:29 -0300 Subject: [vtkusers] install java and vtk Message-ID: <3D5A8785.1020503@cci.fmrp.usp.br> Hi users !!!!! i'm new in Java and i'm using Linux I followed this step by step post by Phil in our vtkuser list http://public.kitware.com/pipermail/vtkusers/2002-March/010120.html but i have this mistake Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkCommonJava in java.library.path at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344) at java.lang.Runtime.loadLibrary0(Runtime.java:744) at java.lang.System.loadLibrary(System.java:815) at Cone.(Cone.java:17) The VTK 4.0 is working with C++. Tanks for advanced me. Marcelo From ron@mediguide.co.il Thu Aug 15 10:30:38 2002 From: ron@mediguide.co.il (Ron Inbar) Date: Thu, 15 Aug 2002 11:30:38 +0200 Subject: [vtkusers] mipmaps Message-ID: <41D589F200A5D511AA0D000102DEB87948A930@MAIL-S> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C2443E.6A7EC830 Content-Type: text/plain; charset="windows-1255" Hi, Does VTK 4.x support mipmaps? If not, why not? Ron ------_=_NextPart_001_01C2443E.6A7EC830 Content-Type: text/html; charset="windows-1255"
Hi,
 
Does VTK 4.x support mipmaps?  If not, why not?
 
Ron
 
------_=_NextPart_001_01C2443E.6A7EC830-- From s011124@student.dtu.dk Thu Aug 15 10:40:19 2002 From: s011124@student.dtu.dk (Javier Maicas Sebastian) Date: Thu, 15 Aug 2002 11:40:19 +0200 (METDST) Subject: [vtkusers] Colouring Message-ID: Hi all, I am working with the segmentation of the brain and I have extracted the inner and the outer surface. I want to show each surface with a different color. If I introduce the surface in a 3D matrix (a 3D image) and I apply marching cubes to smooth the surface the results are very bad (the surface appears in pieces) because it expects a volume as input. So I build a volume (the cortex) and the marching cubes produces a nice surface, but the two surfaces at the same time and with the same color. How can I do it then? Is there in vtk a function that creates a smooth surface from points (similar to vtkLine for lines)? Regards Javier From judagica@hotmail.com Thu Aug 15 11:53:28 2002 From: judagica@hotmail.com (JULIO DANIEL) Date: Thu, 15 Aug 2002 10:53:28 +0000 Subject: [vtkusers] increasing triangles Message-ID: hi, everybody. my question is... how to increase the number of triangles in a mesh (polydata)? thanks in advance. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From martin_thornalley@hotmail.com Thu Aug 15 12:11:19 2002 From: martin_thornalley@hotmail.com (Martin Thornalley) Date: Thu, 15 Aug 2002 12:11:19 +0100 Subject: [vtkusers] Offscreen rendering pipeline Message-ID: I was wondering if it possible to create a rendering pipeline that is not attached to a renderwindow. I have a series of polydata datasets that I wish to register using the vtkIterativeClosestPointTransform class and following the registration obtain the number of iterations and mean distance. I'd rather not do all this is a renderwindow if I can help it as I don't need to display the data at this stage. I have succeeded in doing this within a vtkRenderWindow and set the opacity of all actors to 0 so that nothing is visible but I'd rather not have to create the vtkRenderWindow at all. Any suggestions? Thanks, Martin Thornalley. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From Koning, P.J.H. de (LKEB)" Message-ID: 15-08-02 12:53:28, "JULIO DANIEL" wrote: >hi, everybody. > >my question is... > >how to increase the number of triangles in a mesh (polydata)? > Try using filters like: vtkLinearSubdivisionFilter , vtkButterflySubdivisionFilter, vtkLoopSubdivisionFilter or other subdivison filters > >thanks in advance. > > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > >_______________________________________________ >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 malcolm@geovision.co.za Thu Aug 15 13:01:27 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Thu, 15 Aug 2002 14:01:27 +0200 Subject: [vtkusers] Offscreen rendering pipeline References: Message-ID: <002201c24453$b23b4bc0$cefefea9@bart> Hi Martin You can use a vtkPolyDataWriter as your sink - the Write command would cause propagation of an update through the pipeline. Otherwise just use an Update command on the last filter. Either way, no rendering required. Malcolm ----- Original Message ----- From: Martin Thornalley To: Sent: Thursday, August 15, 2002 1:11 PM Subject: [vtkusers] Offscreen rendering pipeline > > I was wondering if it possible to create a rendering pipeline that is not > attached to a renderwindow. I have a series of polydata datasets that I > wish to register using the vtkIterativeClosestPointTransform class and > following the registration obtain the number of iterations and mean > distance. I'd rather not do all this is a renderwindow if I can help it as > I don't need to display the data at this stage. I have succeeded in doing > this within a vtkRenderWindow and set the opacity of all actors to 0 so that > nothing is visible but I'd rather not have to create the vtkRenderWindow at > all. > > Any suggestions? > > > Thanks, > Martin Thornalley. > > _________________________________________________________________ > Chat with friends online, try MSN Messenger: http://messenger.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 > > From will.schroeder@kitware.com Thu Aug 15 13:08:38 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Thu, 15 Aug 2002 08:08:38 -0400 Subject: [vtkusers] Offscreen rendering pipeline In-Reply-To: Message-ID: <5.0.2.1.0.20020815080547.029b0138@pop.nycap.rr.com> Hi Martin- >At 12:11 PM 8/15/2002 +0100, Martin Thornalley wrote: > >I was wondering if it possible to create a rendering pipeline that is not >attached to a renderwindow. You do not need the rendering subsystem. Just create the pipeline as usual and leave off the mappers, actors, and other rendering stuff. Manually invoke Update() method on the last filter of each pipeline to cause the pipelines to execute. If the last filter is a Writer, invoke the Write() method. Will From minna6hi@yahoo.co.uk Thu Aug 15 00:07:26 2002 From: minna6hi@yahoo.co.uk (=?iso-8859-1?q?Meenakshi=20Kaul?=) Date: Thu, 15 Aug 2002 00:07:26 +0100 (BST) Subject: [vtkusers] Help Message-ID: <20020814230726.17403.qmail@web20512.mail.yahoo.com> Hi, I have 2 questions about using VTK for my project. I am trying to draw lines on the screen and every time I start it starts from the center of the window (irrespective of the x, y co-ordinates). So if the number of lines increase then I cant see all of them. 1. Can I make the output window bigger? 2. Or is it possible to add a scroll bar on the window? Thanks, Meenakshi. __________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com From P.Cook@cs.ucl.ac.uk Thu Aug 15 13:46:25 2002 From: P.Cook@cs.ucl.ac.uk (Phil Cook) Date: 15 Aug 2002 13:46:25 +0100 Subject: [vtkusers] install java and vtk In-Reply-To: <20020814204003.4C1F41AC0F@public.kitware.com> References: <20020814204003.4C1F41AC0F@public.kitware.com> Message-ID: <1029415587.5510.13.camel@maraca.cs.ucl.ac.uk> > Message: 15 > Date: Wed, 14 Aug 2002 13:38:29 -0300 > From: Marcelo Costa Oliveira > To: vtkusers@public.kitware.com > Subject: [vtkusers] install java and vtk > > Hi users !!!!! > > i'm new in Java and i'm using Linux > > I followed this step by step post by Phil in our vtkuser list > > http://public.kitware.com/pipermail/vtkusers/2002-March/010120.html > > > > but i have this mistake > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no > vtkCommonJava in java.library.path > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1344) > at java.lang.Runtime.loadLibrary0(Runtime.java:744) > at java.lang.System.loadLibrary(System.java:815) > at Cone.(Cone.java:17) > > > The VTK 4.0 is working with C++. > > > Tanks for advanced me. > > Marcelo Try adding the VTK/bin directory to the LD_LIBRARY_PATH environment variable. You can also set the java.library.path at runtime with java -Djava.library.path= Phil From anast.jm@pg.com Thu Aug 15 14:45:45 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 15 Aug 2002 09:45:45 -0400 Subject: [vtkusers] Colouring Message-ID: Javier, vtkSurfaceReconstructionFilter will surface structured points but the surface is only as smooth as your point set. The recently introduced PowerCrust class can also surface points but I'm not sure if its part of vtk yet (search the archives for more info). To smooth further try vtkSmoothPolyDataFilter or vtkWindowSincPolyDataFilter. You might also take a look at vtkPolyDataConnectivityFilter to extract regions of your surfacing if it is disconnected (inner from outer) so that you might color them differently.......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Javier Maicas Sebastian" @public.kitware.com on 08/15/2002 11:40 AM ZE2 "Javier Maicas Sebastian" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Colouring Sent by: vtkusers-admin@public.kitware.com 08/15/2002 05:40 AM Hi all, I am working with the segmentation of the brain and I have extracted the inner and the outer surface. I want to show each surface with a different color. If I introduce the surface in a 3D matrix (a 3D image) and I apply marching cubes to smooth the surface the results are very bad (the surface appears in pieces) because it expects a volume as input. So I build a volume (the cortex) and the marching cubes produces a nice surface, but the two surfaces at the same time and with the same color. How can I do it then? Is there in vtk a function that creates a smooth surface from points (similar to vtkLine for lines)? Regards Javier _______________________________________________ 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 dharmendra@strandgenomics.com Thu Aug 15 16:35:57 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Thu, 15 Aug 2002 21:05:57 +0530 Subject: [vtkusers] urgent Message-ID: <5.1.1.6.0.20020815210212.00a71ef0@mail.strandgenomics.com> Hi, I am new to VTK .I have two spheres and i want to connect them using cylinders. How to do that. ( center(sphere1)+center(sphere2) ) / 2 is the center of my cylinder. But how to transform them so that cylinder touches both spheres. please help me its a urgent requirement. thanks, dharmendra From T.Hutton@eastman.ucl.ac.uk Thu Aug 15 16:59:13 2002 From: T.Hutton@eastman.ucl.ac.uk (Tim Hutton) Date: Thu, 15 Aug 2002 16:59:13 +0100 Subject: [vtkusers] Colouring In-Reply-To: Message-ID: <5.1.0.14.0.20020815165355.03681440@144.82.123.1> Just to clarify, vtkPowerCrustSurfaceReconstruction isn't part of the main VTK distribution but can be downloaded from: http://www.eastman.ucl.ac.uk/~thutton/powercrust/ Please let me know of any problems with it. Tim. At 09:45 15/08/2002 -0400, you wrote: >Javier, > >vtkSurfaceReconstructionFilter will surface structured points but the >surface is >only as smooth as your point set. The recently introduced PowerCrust class can >also surface points but I'm not sure if its part of vtk yet (search the >archives >for more info). To smooth further try vtkSmoothPolyDataFilter or >vtkWindowSincPolyDataFilter. You might also take a look at >vtkPolyDataConnectivityFilter to extract regions of your surfacing if it is >disconnected (inner from outer) so that you might color them >differently.......john > > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > >From: "Javier Maicas Sebastian" @public.kitware.com on >08/15/2002 11:40 AM ZE2 > > > "Javier Maicas > Sebastian" To: vtkusers@public.kitware.com > @public.kitware.com Cc: (bcc: John > Anast-JM/PGI) > Subject: [vtkusers] > Colouring > > > Sent > by: vtkusers-admin@public.kitware.com > > 08/15/2002 05:40 > AM > > > > > > > > >Hi all, > >I am working with the segmentation of the brain and I have extracted the >inner and the outer surface. I want to show each surface with a different >color. If I introduce the surface in a 3D matrix (a 3D image) and I >apply marching cubes to smooth the surface the results are very bad (the >surface appears in pieces) because it expects a volume as input. So I >build a volume (the cortex) and the marching cubes produces a nice >surface, but the two surfaces at the same time and with the same color. > >How can I do it then? Is there in vtk a function that creates a smooth >surface from points (similar to vtkLine for lines)? > >Regards >Javier > >_______________________________________________ >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 > > > >_______________________________________________ >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 marcelo@cci.fmrp.usp.br Thu Aug 15 13:26:49 2002 From: marcelo@cci.fmrp.usp.br (Marcelo Costa Oliveira) Date: Thu, 15 Aug 2002 09:26:49 -0300 Subject: [vtkusers] vtk+java+linux Message-ID: <3D5B9E09.8010102@cci.fmrp.usp.br> Tanks a lot Phil !!!!! : ) Is working now ..... Anybody know if ITK someday will run with Java ?? From apbai@yahoo.com Thu Aug 15 17:33:00 2002 From: apbai@yahoo.com (P Bai) Date: Thu, 15 Aug 2002 09:33:00 -0700 (PDT) Subject: [vtkusers] SetLineSpacing not working? Message-ID: <20020815163300.45295.qmail@web12901.mail.yahoo.com> Hi there, I tried to use vtkTextMapper's SetLineSpacing method but it seems not working. Even if you modify the example code in multiLineText.tcl, nothing's changed in the text display. The line spacing remains the same. Is it a bug or did I use it wrong? Best regards, Ping __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From sebastien.barre@kitware.com Thu Aug 15 17:42:24 2002 From: sebastien.barre@kitware.com (Sebastien BARRE) Date: Thu, 15 Aug 2002 12:42:24 -0400 Subject: [vtkusers] SetLineSpacing not working? In-Reply-To: <20020815163300.45295.qmail@web12901.mail.yahoo.com> Message-ID: <5.1.1.6.0.20020815124054.01c3de80@pop.nycap.rr.com> At 8/15/2002 12:33 PM, P Bai wrote: >Hi there, > >I tried to use vtkTextMapper's SetLineSpacing method >but it seems not working. Even if you modify the >example code in multiLineText.tcl, nothing's changed >in the text display. The line spacing remains the >same. > >Is it a bug or did I use it wrong? No, you are right, until recently LineSpacing (as well as LineOffset actually) were not really supported. This has been fixed recently (some weeks ago) when the new unified text mapper has been setup. You will need to download the development distrib (VTK CVS). Regards -- Sebastien Barre From cmchilan@yahoo.com Thu Aug 15 17:55:52 2002 From: cmchilan@yahoo.com (Christian Chilan) Date: Thu, 15 Aug 2002 09:55:52 -0700 (PDT) Subject: [vtkusers] Performance issue Message-ID: <20020815165552.77739.qmail@web20210.mail.yahoo.com> Hi there, I'm creating a viz application using VTK with Tcl/Tk. I've added interactivity such that the user can manipulate the view of the actors in the window. Another feature is saving images into a file (.bmp, .jpg,...). For the saving procedure, I'm using vtkWindowToImageFilter and the standard writers, say vtkBMPWriter. The problem here is that after saving an image, the interactivity performance drops. The view manipulation turns very slow. If you want to see what I'm talking about, compare the interactivity performance of VisQuad.tcl at /Examples/VisualizationAlgorithms/Tcl/VisQuad.tcl before and after adding the following lines at the end of the program: update vtkWindowToImageFilter w2I w2I SetInput renWin vtkBMPWriter writer writer SetFileName "name for the output file.bmp" writer SetInput [w2I GetOutput] writer Write writer Delete w2I Delete Any help would be appreciated. Christian __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From anast.jm@pg.com Thu Aug 15 18:11:12 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 15 Aug 2002 13:11:12 -0400 Subject: [vtkusers] urgent Message-ID: Dharmendra, Look at the example VTK\Examples\Modelling\tcl\icecream.tcl for some ideas on joining objects....john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: Dharmendra @public.kitware.com on 08/15/2002 09:05 PM ZE5B Dharmendra To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] urgent Sent by: vtkusers-admin@public.kitware.com 08/15/2002 11:35 AM Hi, I am new to VTK .I have two spheres and i want to connect them using cylinders. How to do that. ( center(sphere1)+center(sphere2) ) / 2 is the center of my cylinder. But how to transform them so that cylinder touches both spheres. please help me its a urgent requirement. thanks, dharmendra _______________________________________________ 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 ted@caept.com Thu Aug 15 20:51:03 2002 From: ted@caept.com (Ted Christiansen) Date: Thu, 15 Aug 2002 21:51:03 +0200 Subject: [vtkusers] vtk 3.2 static library in an ActiveX control - Link errors - need help Message-ID: <3D5C0627.3ED38ADA@caept.com> Hello, I am developing an ActiveX control for use in a webpage. I would like to compile it using the static library version of vtk 3.2 as I dont want users to have to download the 8 MB DLL when I am only using a small portion of the functions in the vtklib.dll. Have the Kitware folks done this with their PolyViz ActiveX control? Their help would be appreciated. I am having trouble compiling it whlie linking in a static version of vtk 3.2. The libraries I am linking with: vtkstatic.lib opengl32.lib. With MFC static I get these errors and warnings: --------------------Configuration: fevisocx - Win32 Release-------------------- Linking... LIBC.lib(crt0dat.obj) : error LNK2005: __cinit already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __exit already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __cexit already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __C_Exit_Done already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __C_Termination_Done already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __exitflag already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __wpgmptr already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __pgmptr already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___winitenv already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __wenviron already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___initenv already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __environ already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___wargv already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___argv already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: ___argc already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winminor already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winmajor already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __winver already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __osver already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : error LNK2005: __umaskval already defined in libcmt.lib(crt0dat.obj) LIBC.lib(crt0dat.obj) : warning LNK4006: __cinit already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exit already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __cexit already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __c_exit already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __C_Exit_Done already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __C_Termination_Done already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __exitflag already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __wpgmptr already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __pgmptr already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___winitenv already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __wenviron already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___initenv already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __environ already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___wargv already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___argv already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: ___argc already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winminor already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winmajor already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __winver already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __osver already defined in libcmt.lib(crt0dat.obj); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: __umaskval already defined in libcmt.lib(crt0dat.obj); second definition ignored Creating library Release/fevisocx.lib and object Release/fevisocx.exp LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library Release/fevisocx.ocx : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. fevisocx.ocx - 23 error(s), 23 warning(s) With MFC dynamic (DLL) I get these: --------------------Configuration: fevisocx - Win32 Release-------------------- Compiling resources... Compiling... StdAfx.cpp Compiling... FEvisCtl.cpp fevisocx.cpp FEvisPpg.cpp Generating Code... Linking... libci.lib(ostream.obj) : error LNK2005: "public: class ostream & __thiscall ostream::operator<<(char const *)" (??6ostream@@QAEAAV0@PBD@Z) already defined in msvcirt.lib(MSVCIRT.dll) libci.lib(ostream.obj) : error LNK2005: "public: class ostream & __thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ) already defined in msvcirt.lib(MSVCIRT.dll) libci.lib(_ios.obj) : error LNK2005: "public: virtual __thiscall ios::~ios(void)" (??1ios@@UAE@XZ) already defined in msvcirt.lib(MSVCIRT.dll) LIBC.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCRT.dll) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) LIBC.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) libci.lib(ostream.obj) : warning LNK4006: "public: class ostream & __thiscall ostream::operator<<(char const *)" (??6ostream@@QAEAAV0@PBD@Z) already defined in msvcirt.lib(MSVCIRT.dll); second definition ignored libci.lib(ostream.obj) : warning LNK4006: "public: class ostream & __thiscall ostream::flush(void)" (?flush@ostream@@QAEAAV1@XZ) already defined in msvcirt.lib(MSVCIRT.dll); second definition ignored libci.lib(_ios.obj) : warning LNK4006: "public: virtual __thiscall ios::~ios(void)" (??1ios@@UAE@XZ) already defined in msvcirt.lib(MSVCIRT.dll); second definition ignored LIBC.lib(crt0dat.obj) : warning LNK4006: _exit already defined in msvcrt.lib(MSVCRT.dll); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_z already defined in msvcrt.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xc_a already defined in msvcrt.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_z already defined in msvcrt.lib(cinitexe.obj); second definition ignored LIBC.lib(crt0init.obj) : warning LNK4006: ___xi_a already defined in msvcrt.lib(cinitexe.obj); second definition ignored Creating library Release/fevisocx.lib and object Release/fevisocx.exp LINK : warning LNK4098: defaultlib "msvcrt.lib" conflicts with use of other libs; use /NODEFAULTLIB:library LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other libs; use /NODEFAULTLIB:library LIBC.lib(crt0.obj) : error LNK2001: unresolved external symbol _main Release/fevisocx.ocx : fatal error LNK1120: 1 unresolved externals Error executing link.exe. fevisocx.ocx - 10 error(s), 10 warning(s) I have tried excluding the offending libraries but this leads to missing symbols. Has anyone successfully done this? Any help would be appreciated. Ted From kteich@nmr.mgh.harvard.edu Thu Aug 15 22:39:21 2002 From: kteich@nmr.mgh.harvard.edu (Kevin Teich) Date: Thu, 15 Aug 2002 17:39:21 -0400 (EDT) Subject: [vtkusers] Cutter overlay on image Message-ID: I am getting the cross-section of some poly data with a vtkCutter and would like to overlay this onto the output of a vtkImageReslice in the same window. What is the best way to do this? Thanks. -- Kevin Teich From krw@viz-solutions.com Fri Aug 16 00:24:00 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 15 Aug 2002 16:24:00 -0700 Subject: [vtkusers] Lighting and washed out colors Message-ID: <5.1.0.14.0.20020815162026.02783c88@mail.viz-solutions.com> Can anyone tell me why, if I have diffuse lighting set to something non-zero, and I turn ambient lighting up to a non-zero number that the colors on my scalar-mapped surfaces start washing out? Is this something intrinsic in OpenGL Lighting? Can I work around it? I would like to keep shading, while also having some ambient lighting for better visibility, but I can't afford to wash out the color mapping. Any information would be appreciated. Thanks, Kevin. From lisa.avila@kitware.com Fri Aug 16 05:22:41 2002 From: lisa.avila@kitware.com (Lisa S. Avila) Date: Fri, 16 Aug 2002 00:22:41 -0400 Subject: [vtkusers] Lighting and washed out colors In-Reply-To: <5.1.0.14.0.20020815162026.02783c88@mail.viz-solutions.com> Message-ID: <5.1.1.6.0.20020816001815.025f02e8@pop.nycap.rr.com> Hello Kevin, If you have "too much" light in your scene (either from light sources or caused by your lighting coefficients for a surface adding up to more than 1.0) then the computed color for a pixel may exceed 1 on some component. The color components are independently clamped to 1. Your scalar color may be 1.0, 0.1, 0.1 (mostly red) but due to the lighting parameters the shaded value may be 5.0, 0.5, 0.5 - which will be displayed as 1.0, 0.5, 0.5 (a much more washed out red). Try adjusting your ambient / diffuse / specular coefficients so that they do not add up to much more than 1.0. Lisa At 07:24 PM 8/15/2002, Kevin Wright wrote: >Can anyone tell me why, if I have diffuse lighting set to something >non-zero, and I turn ambient lighting up to a non-zero number that the >colors on my scalar-mapped surfaces start washing out? Is this something >intrinsic in OpenGL Lighting? Can I work around it? > >I would like to keep shading, while also having some ambient lighting for >better visibility, but I can't afford to wash out the color mapping. > >Any information would be appreciated. > >Thanks, >Kevin. > >_______________________________________________ >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 reichl@ifb.tu-graz.ac.at Fri Aug 16 12:41:07 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Fri, 16 Aug 2002 12:41:07 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1190 - 3 msgs Message-ID: I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From dan@chalkie.org.uk Fri Aug 16 11:37:07 2002 From: dan@chalkie.org.uk (Dr. Dan White) Date: Fri, 16 Aug 2002 13:37:07 +0300 Subject: [vtkusers] Hardware stereo 3D viewing of confocal images Message-ID: <1CA34AB4-B104-11D6-AAE0-000393686412@chalkie.org.uk> Hi All, I'm new to this list, so hope I'm directing these questions to the=20 right people. I have a linux workstation primarily set up for viewing 3D models of=20 proteins using Stereographics crystal eyes hardware. We have many people doing confocal microscopy with multiple stains=20 using LSM 510 imaging software. We want a good way to reconstruct 3D images from layers of confocal=20 image "slices", and be able to look at the 3D representations in=20 hardware stereo on this linux workstation. Am I right in thinking VTK has the right tools for this job? If so,=20 can anyone give me any tips on how to get started? I have the current VTK sources and docs and examples. What is the=20 right way to use the cake complier tool to get VTK up and running? I=20 see stuff about Tcl and Tk , and also python wrapping, which I know=20 very little about. Does this give the GUI? Is there a GUI? Or is it a=20 command line interface? Does VTK allow you to spin and zoom a 3D image around on the screen=20 in any direction with the mouse, and use crystal eyes stereo=20 viewing?????? Hope someone can help!!!! Dan White dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) From marcn@ece.gatech.edu Fri Aug 16 14:44:58 2002 From: marcn@ece.gatech.edu (Marc Niethammer) Date: Fri, 16 Aug 2002 09:44:58 -0400 (EDT) Subject: [vtkusers] one actor to display multiple lines with different colors Message-ID: Hi, I would like to display multiple lines (of possibly different color) using just one actor. Furthermore I should be able to add additional lines dynamically. I played around with the vtkUnstructuredGrid data structure, but was never able to get multiple colors to work. Does anyone know how to do this? (does anybody have a source code example?) Thanks for your help. -- Marc From pasacki@sandia.gov Thu Aug 15 16:49:04 2002 From: pasacki@sandia.gov (Phil) Date: Thu, 15 Aug 2002 09:49:04 -0600 Subject: [vtkusers] vtk 4.0, RH 7.2, Python 2.2.1 install problems Message-ID: <200208151549.g7FFn4309375@sahp4671.sandia.gov> Hi, [Please forgive yet another newbie question.] Despite being on a completely different OS (Red Hat 7.2 Linux) I'm having a very similar problem to Jason http://public.kitware.com/pipermail/vtkusers/2002-August/012775.html RH 7.2 comes with Python 1.5, but I've installed Python 2.2.1 in another location, intending to use the new Python with vtk and other packages. I built vtk 4.0 using the new Python distribution for the answers to the 2 questions about where to find Python.h and the library. The build and install seemed to have gone without any errors AFAICT. I also answered affirmatively to the build Hybrid question, as I'd like to try out MayaVi, whose instructions indicate a need for that build option. I was getting some ImportErrors at my first attempt to use vtk through Python and figured the cure was to copy the whole contents of VTK/Wrapping/Python/ into python's area /usr/netpub/python-2.2.1/lib/python2.2/ (although I'm not familiar enough to know how to compile them into the ".pyc" and ".pyo" files that I see from other packages.) Also, I've set my LD_LIBRARY_PATH environment variable to include the directory containing the dynamically loaded libraries for vtk, such as libvtkCommonPython.so Nevertheless, trying to run the sample script in VTK/Examples/Tutorial/Step1/Python/Cone.py I get: $ Cone.py Adding parser accelerators ... Done. Traceback (most recent call last): File "./Cone.py", line 9, in ? from vtkpython import * File "/usr/netpub/python-2.2.1/lib/python2.2/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: No module named libvtkCommonPython [4381 refs] What am I missing? Thanks. -- -Phil Sackinger, Sandia National Laboratories, Albuquerque, NM 87185-0826 USA From dgobbi@imaging.robarts.ca Fri Aug 16 14:52:43 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Fri, 16 Aug 2002 09:52:43 -0400 (EDT) Subject: [vtkusers] vtk 4.0, RH 7.2, Python 2.2.1 install problems In-Reply-To: <200208151549.g7FFn4309375@sahp4671.sandia.gov> Message-ID: Hi Phil, You also need to set the PYTHONPATH to the location of libvtkCommonPython.so et al. The PYTHONPATH should include both this path and VTK/Wrapping/Python. - David -- David Gobbi, MSc dgobbi@imaging.robarts.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 15 Aug 2002, Phil wrote: > Hi, > > [Please forgive yet another newbie question.] > > Despite being on a completely different OS (Red Hat 7.2 Linux) I'm having > a very similar problem to Jason > > http://public.kitware.com/pipermail/vtkusers/2002-August/012775.html > > RH 7.2 comes with Python 1.5, but I've installed Python 2.2.1 in another > location, intending to use the new Python with vtk and other packages. > > I built vtk 4.0 using the new Python distribution for the answers to the > 2 questions about where to find Python.h and the library. The build and install > seemed to have gone without any errors AFAICT. I also answered affirmatively > to the build Hybrid question, as I'd like to try out MayaVi, whose instructions > indicate a need for that build option. > > I was getting some ImportErrors at my first attempt to use vtk through > Python and figured the cure was to copy the whole contents of > > VTK/Wrapping/Python/ > > into python's area > > /usr/netpub/python-2.2.1/lib/python2.2/ > > (although I'm not familiar enough to know how to compile > them into the ".pyc" and ".pyo" files that I see from other > packages.) > > Also, I've set my LD_LIBRARY_PATH environment variable to include > the directory containing the dynamically loaded libraries for vtk, > such as libvtkCommonPython.so > > Nevertheless, trying to run the sample script in > > VTK/Examples/Tutorial/Step1/Python/Cone.py > > I get: > > $ Cone.py > Adding parser accelerators ... > Done. > Traceback (most recent call last): > File "./Cone.py", line 9, in ? > from vtkpython import * > File "/usr/netpub/python-2.2.1/lib/python2.2/vtkpython.py", line 29, in ? > exec "from "+kit_name+" import *" > File "", line 1, in ? > ImportError: No module named libvtkCommonPython > [4381 refs] > > > What am I missing? > > Thanks. > From surreal@bwh.harvard.edu Fri Aug 16 15:14:31 2002 From: surreal@bwh.harvard.edu (Mary Lederer) Date: Fri, 16 Aug 2002 10:14:31 -0400 (EDT) Subject: [vtkusers] blue actors? Message-ID: <200208161414.g7GEEV707853@forest.bwh.harvard.edu> Hi vtkusers, I'm using Tcl/Tk, and I'm trying to read in data from a vtk file and display it: vtkPolyDataReader TempPolyReader TempPolyReader SetFileName $Navigator(FlatSelect) # create a vtkPolyDataMapper to map the data from the vtk file vtkPolyDataMapper TempMapper TempMapper SetInput [TempPolyReader GetOutput] # create a vtkActor for the vtkMapper to map to vtkActor Navigator($name,Actor) Navigator($name,Actor) SetMapper TempMapper # add the vtkActor Navigator($name,Renderer) AddActor Navigator($name,Actor) However, when I load a vtk file and run this, the actor comes out blue. I'm fairly sure that it shouldn't be. I can only guess that this has something to do with vtkPolyDataReader, as when I add another actor to the scene (from a source, rather than a file) it is white (which I assume is the default color). I am clueless. If you have any clues, help is appreciated. Thanks, -Maitland From Koning, P.J.H. de (LKEB)" Message-ID: <434351YUOIGDYW4YHDHDUOKHPHBIHG.3d5d0a04@MRI-PATRICK> 16-08-02 16:14:31, Mary Lederer wrote: The vtkPolyDataReader probaly reads some scalar values stored in the file. try TempMapper->ScalarVisibilityOff(); (At least in C ;-) >Hi vtkusers, > >I'm using Tcl/Tk, and I'm trying to read in data from a vtk file and >display it: > > vtkPolyDataReader TempPolyReader > TempPolyReader SetFileName $Navigator(FlatSelect) > > # create a vtkPolyDataMapper to map the data from the vtk file > vtkPolyDataMapper TempMapper > TempMapper SetInput [TempPolyReader GetOutput] > > # create a vtkActor for the vtkMapper to map to > vtkActor Navigator($name,Actor) > Navigator($name,Actor) SetMapper TempMapper > > # add the vtkActor > Navigator($name,Renderer) AddActor Navigator($name,Actor) > >However, when I load a vtk file and run this, the actor comes out >blue. I'm fairly sure that it shouldn't be. I can only guess that >this has something to do with vtkPolyDataReader, as when I add another >actor to the scene (from a source, rather than a file) it is white >(which I assume is the default color). I am clueless. If you have >any clues, help is appreciated. > >Thanks, >-Maitland >_______________________________________________ >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 bertvansesamstraat@hotmail.com Fri Aug 16 15:22:37 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Fri, 16 Aug 2002 14:22:37 +0000 Subject: [vtkusers] (no subject) Message-ID: Dear all, I want to visualize a tetraeder dataset. For example by generating isosurfaces or by showing some slices. To do this I want to convert the tetraeders to a gridded dataset: vtkDelaunay3D del del SetInput profile del SetTolerance 0.01 del SetAlpha 0.2 del BoundingTriangulationOff vtkStructuredGridSource imp imp SetInput [del GetOutput] When I do this I get an error: Error in startup script: invalid command name "vtkStructuredGridSource" while executing "vtkStructuredGridSource imp" Can some one help me. Thanks Maurice _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From prabhu@aero.iitm.ernet.in Fri Aug 16 15:24:07 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 16 Aug 2002 19:54:07 +0530 Subject: [vtkusers] Hardware stereo 3D viewing of confocal images In-Reply-To: <1CA34AB4-B104-11D6-AAE0-000393686412@chalkie.org.uk> References: <1CA34AB4-B104-11D6-AAE0-000393686412@chalkie.org.uk> Message-ID: <15709.2823.847365.441036@monster.linux.in> >>>>> "DW" == "Dr. Dan White" writes: DW> We have many people doing confocal microscopy with multiple DW> stains using LSM 510 imaging software. We want a good way to DW> reconstruct 3D images from layers of confocal image "slices", DW> and be able to look at the 3D representations in hardware DW> stereo on this linux workstation. DW> Am I right in thinking VTK has the right tools for this job? DW> If so, can anyone give me any tips on how to get started? Yes, I believe VTK has the right infrastructure for this job. If you are serious about using VTK (as opposed to using an application that uses VTK) you should definitely get the VTK book and users guide (links avlbl on the http://www.vtk.org pages). DW> I have the current VTK sources and docs and examples. What is DW> the right way to use the cake complier tool to get VTK up and DW> running? I see stuff about Tcl and Tk , and also python Please read the README.html. I believe it has some instructions on installation/compiling etc. DW> wrapping, which I know very little about. Does this give the DW> GUI? Is there a GUI? Or is it a command line interface? The GUI is up to you. VTK is written in C++ but is wrapped to other languages i.e. you can use VTK from C++, Python, Tcl and Java. Under linux it should be possible to use wxWindows, FLTK, FOX and Qt maybe. I dont know if a GTK+/GTK-- widget for VTK is avlbl. If you use Tcl, you can use Tk for the GUI. With java I believe you can use swing. With Python you can use, pyGTK, wxPython, Tkinter and Qt. Any of these can be used to create a fancy GUI frontend to a VTK application. DW> Does VTK allow you to spin and zoom a 3D image around on the DW> screen in any direction with the mouse, and use crystal eyes DW> stereo viewing?????? Yes and yes. I dont know about the crystal eyes part but have seen many posts about it on this list. cheers, prabhu From ted@caept.com Fri Aug 16 16:11:33 2002 From: ted@caept.com (Ted Christiansen) Date: Fri, 16 Aug 2002 17:11:33 +0200 Subject: [vtkusers] Continuation: vtk 3.2 static library in an ActiveX control - Link errors - need help Message-ID: <3D5D1625.CE8A9000@caept.com> Hello, I solved the link errors but have a new problem. When the ActiveX control is compiled with the static vtk3.2 library then regsvr32 fails when it tries to register the control: Load Library("fevisocx.ocx") failed - Invalid acess to memory location I searched Google for this error message in the context of regsvr32 and found nothing useful. Any ideas? Ted From krw@viz-solutions.com Fri Aug 16 17:09:28 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Fri, 16 Aug 2002 09:09:28 -0700 Subject: [vtkusers] one actor to display multiple lines with different colors In-Reply-To: Message-ID: <5.1.0.14.0.20020816090445.0276f1b8@mail.viz-solutions.com> >Hi, > >I would like to display multiple lines (of possibly different >color) using just one actor. Furthermore I should be able to add >additional lines dynamically. I played around with the vtkUnstructuredGrid >data structure, but was never able to get multiple colors to work. Try using vtkPolyData. You can create any number of seperate lines all feeding into the same actor. If you want to color parts of the same actor differently, you're going to have to use scalar values. You can create a color map with each of the colors that you want to use, then assign appropriate scalar values to each point on the lines to get them colored properly. For example, if you wanted all of your lines to be either red, green or blue. You could create a color map with three entries, configure the mapper to have a min of 1 and a max of 3, then each point on a red line could be given a scalar value of one, green lines 2, and blue 3. That would do it I think. Kevin. From malcolm@geovision.co.za Fri Aug 16 17:29:57 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Fri, 16 Aug 2002 18:29:57 +0200 Subject: [vtkusers] one actor to display multiple lines with different colors References: Message-ID: <002001c24542$6b93c680$cefefea9@bart> This is a multi-part message in MIME format. ------=_NextPart_000_0015_01C24552.EC3AB360 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Hi Marc Here's a script from when I was experimenting with adding wedges dynamically - shouldn't be much trouble converting for lines. Also, you might try using polydata instead of unstructured-grid. Malcolm ----- Original Message ----- From: Marc Niethammer To: Sent: Friday, August 16, 2002 3:44 PM Subject: [vtkusers] one actor to display multiple lines with different colors > Hi, > > I would like to display multiple lines (of possibly different > color) using just one actor. Furthermore I should be able to add > additional lines dynamically. I played around with the vtkUnstructuredGrid > data structure, but was never able to get multiple colors to work. > > Does anyone know how to do this? (does anybody have a source code > example?) > > Thanks for your help. > > -- Marc > > _______________________________________________ > 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 > > ------=_NextPart_000_0015_01C24552.EC3AB360 Content-Type: application/octet-stream; name="addwedges.tcl" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="addwedges.tcl" catch {load vtktcl} set nWedges 10 vtkUnstructuredGrid ug vtkPoints points ug SetPoints points vtkScalars scalars [ug GetCellData] SetScalars scalars vtkWedge wedge vtkDataSetMapper ecoMapper ecoMapper SetInput ug ecoMapper ScalarVisibilityOn ecoMapper SetScalarRange 0 $nWedges ecoMapper SetScalarModeToUseCellData vtkActor ecoActor ecoActor SetMapper ecoMapper [ecoActor GetProperty] SetColor 1 0 0=20 # Create the RenderWindow, Renderer vtkRenderer ren ren SetBackground 1 1 1 ren AddActor ecoActor vtkRenderWindow renWin renWin AddRenderer ren renWin SetPosition 50 50 renWin SetSize 500 500 vtkRenderWindowInteractor iren iren SetRenderWindow renWin set camera [ren GetActiveCamera] $camera Azimuth -45 $camera Elevation -45 =20 proc InsertProc {i} { points InsertNextPoint 0 0 [expr $i*10] points InsertNextPoint 0 20 [expr $i*10] points InsertNextPoint 20 0 [expr $i*10] points InsertNextPoint 0 0 [expr $i*10+5] points InsertNextPoint 0 20 [expr $i*10+5] points InsertNextPoint 20 0 [expr $i*10+5] for {set n 0} {$n < 6} {incr n} { [wedge GetPointIds] SetId $n [expr $i*6+$n]=20 } ug InsertNextCell [wedge GetCellType] [wedge GetPointIds] scalars InsertNextScalar $i points Modified scalars Modified ug BuildLinks } set i 0 button .b -text "Add Wedge" -command {InsertProc $i; incr i; ecoMapper = SetScalarRange 0 $i; ren ResetCamera; renWin Render} pack .b=20 renWin Render=20 ------=_NextPart_000_0015_01C24552.EC3AB360-- From eduardo@cs.uno.edu Fri Aug 16 18:16:03 2002 From: eduardo@cs.uno.edu (Eduardo Kortright) Date: Fri, 16 Aug 2002 12:16:03 -0500 Subject: [vtkusers] User's Guide 4.0 Questions Message-ID: <000e01c24548$9a688c60$54710b44@no.cox.net> This is a multi-part message in MIME format. ------=_NextPart_000_000B_01C2451E.B06D8C60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am going through the 4.0 User's Guide and some of the examples given = there do not seem to work as described (e.g. "Shading a volume" on p. = 146). Is there a list of errata and corrections for the Guide anywhere? Also, the "Applying texture to a volume" example on p. 151 refers to a = data file called "hipipTexture.vtk" which is not included in the VTKData = directory, either in the CD ROM or on the FTP site. Does anyone know = where this file may be obtained? Thanks for any help. -- Eduardo Kortright University of New Orleans Department of Computer Science ------=_NextPart_000_000B_01C2451E.B06D8C60 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I am going through the 4.0 User's Guide = and some of=20 the examples given there do not seem to work as described (e.g. = "Shading a=20 volume" on p. 146).  Is there a list of errata and corrections for = the=20 Guide anywhere?
 
Also, the "Applying texture to a = volume" example on=20 p. 151 refers to a data file called "hipipTexture.vtk" which is not = included in=20 the VTKData directory, either in the CD ROM or on the FTP site.  = Does=20 anyone know where this file may be obtained?
 
Thanks for any help.
 
--
Eduardo Kortright
University of New Orleans
Department of Computer = Science
 
------=_NextPart_000_000B_01C2451E.B06D8C60-- From donna@v1.wustl.edu Fri Aug 16 18:30:42 2002 From: donna@v1.wustl.edu (Donna Hanlon) Date: Fri, 16 Aug 2002 12:30:42 -0500 Subject: [vtkusers] Looking for fast 3d volume handle, object counter Message-ID: <3D5D36C2.20B5D177@v1.wustl.edu> Does anyone know where I can find code that counts the number of topological errors in a binary 3d volume (including reporting the number of objects)? We have some home-grown code that does this, but it's too slow. After hunting around the archives and source tree, I couldn't find anything that checks volume topology, although vtkImageSeedConnectivity.cxx looks like it would do much of the work. From marcio.mathias@edb.ericsson.se Fri Aug 16 19:36:33 2002 From: marcio.mathias@edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Fri, 16 Aug 2002 15:36:33 -0300 Subject: [vtkusers] A method to get limit values Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C24553.D846F048 Content-Type: text/plain; charset="iso-8859-1" Hi, I am using vtkStructuredPointsReader to capture a data point array to be evaluated by its isosurfaces (by using vtkContourFilter).I did not find any method to extract the minimum and maximum values from the data set. Has someone a sugestion how to do it? Regards, Marcio. ------_=_NextPart_001_01C24553.D846F048 Content-Type: text/html; charset="iso-8859-1"
Hi,
 
I am using vtkStructuredPointsReader to capture a data point array to be evaluated by its isosurfaces (by using vtkContourFilter).I did not find any method to extract the minimum and maximum values from the data set.
Has someone a sugestion how to do it?
 
Regards, Marcio.
------_=_NextPart_001_01C24553.D846F048-- From apbai@yahoo.com Fri Aug 16 19:44:09 2002 From: apbai@yahoo.com (P Bai) Date: Fri, 16 Aug 2002 11:44:09 -0700 (PDT) Subject: [vtkusers] Derive your own Actor class from vtkActor? Message-ID: <20020816184409.50746.qmail@web12902.mail.yahoo.com> Hi all, I wonder if anyone has experience deriving your own actor class from vtkActor? Actually I was just trying to store a user-defined pointer in each actor. But vtkActor seems to have no way to store user defined data... so I try to derive a simple actor class from vtkActor but it doesn't work (see the following code). Does anyone know how to do it? A sample code would be highly appreciated. Thanks! My code is like this: #include class CMyActor : public vtkActor { public: vtkTypeMacro(CMyActor, vtkActor); void PrintSelf(ostream& os, vtkIndent indent) { vtkActor::PrintSelf(os, indent); } static CMyActor* New() { /***** got compile warning here *****/ return new CMyActor; } void SetPointer(void* p) { m_Pointer = p; } void* GetPointer() { return m_Pointer; } protected: CMyActor() {} virtual ~CMyActor() {} private: CMyActor(const CMyActor&); // Not implemented. void operator=(const CMyActor&); // Not implemented. protected: void* m_pPointer; }; __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From dean.inglis@on.aibn.com Fri Aug 16 19:50:40 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Fri, 16 Aug 2002 14:50:40 -0400 Subject: [vtkusers] new and improved vtkImagePlaneWidget Message-ID: Hi, for those of you interested in this widget, it now has the ability to do arbitrary oblique slicing of 3D image data. Changes to mouse use are: 1) left button does cross-hair cursoring: the cross-hairs snap to slice plane pixel centres. The code to do this is substantially different from what was there before: it seems to work for most oblique slice orientations I have tried. If anyone can show me a better (more accurate) way to do this I would be grateful. 2) middle mouse button does pushing, spinning and rotating. There are now invisible 'margins' on the slice plane: currently 5% of the in-plane x and y dimensions. Picking on the left or right margin rotates the plane around the local y prime axis. Similarly, picking on the top or bottom margin rotates the plane around the local x prime axis. Picking one of the four corners of the plane spins the plane around it's normal. Picking inside of the margins does a standard push along the current plane normal. 3) right button does window/level. Any thoughts or criticisms are always welcome ... enjoy! Dean ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dean Inglis, Ph.D. Clinical Research Unit 25 Charlton Avenue East, Unit 610 Hamilton, ONT, L8N 1Y2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From jolefou@afrodisiak.net Fri Aug 16 20:23:06 2002 From: jolefou@afrodisiak.net (Joannis DEMAY) Date: Fri, 16 Aug 2002 15:23:06 -0400 Subject: [vtkusers] vtkToolkits.h in vtk 4.0 Message-ID: <3D5D511A.2FA28F82@afrodisiak.net> Hi, i've some warnings i can't understand : In file included from /giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57, from vtkQtRenderWindow.h:44, from MOModuleFenetreVTK_Qt.cc:48: /giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning: `VTK_USE_OGLR' redefined *Initialization*:1: warning: this is the location of the previous definition In file included from /giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57, from vtkQtRenderWindow.h:44, from DiaControlesCamera.cc:44: /giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning: `VTK_USE_OGLR' redefined *Initialization*:1: warning: this is the location of the previous definition In file included from /giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57, from vtkQtRenderWindow.h:44, from vtkQtRenderWindow.cc:27: /giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning: `VTK_USE_OGLR' redefined *Initialization*:1: warning: this is the location of the previous definition In file included from /giref/logiciels/vtk4.0/include/vtkXOpenGLRenderWindow.h:57, from vtkQtRenderWindow.h:44, from mvtkQtRenderWindow.cc:16: /giref/logiciels/vtk4.0/include/vtkToolkits.h:15: warning: `VTK_USE_OGLR' redefined *Initialization*:1: warning: this is the location of the previous definition gmake[1]: Entering directory `/home/cmpgiref/compilation_MEFPP_egcs/COMPILE_AUTO/InterfaceQtVTK/src/interface/VTK' they seem to come from vtkToolkits.h who has no "#ifndef ... #endif" around the "#define VTK_USE_OGLR" so that the macro is redefined frequently whereas there is no "#ifndef ... #endif" around the body of ".h" . I don't understand how to remove these warnings as my boss forbids me to change "vtkToolkits.h". Which compilation flag do i have to set on? thx Joannis DEMAY From clyne@ncar.ucar.edu Fri Aug 16 22:06:33 2002 From: clyne@ncar.ucar.edu (John Clyne) Date: Fri, 16 Aug 2002 15:06:33 -0600 Subject: [vtkusers] non-uniform glyph scaling Message-ID: <000501c24568$cd7753a0$63dc7580@COHO> Hi, How would one go about scaling a glyph non-uniformly? I.e. I'd like to only scale it along the vector that orients it by the magnitude of that vector rather than scaling it uniformly in all three dimensions. Alternatively, is there a way to specify an alternate glyph for vtkHedgeHog (something other than a simple line). thanks! John Clyne (clyne@ncar.ucar.edu) National Center for Atmospheric Research P.O. Box 3000, Boulder, Colorado 80307 (303) 497-1236 FAX (303) 497-1298 From amy.henderson@kitware.com Fri Aug 16 22:15:00 2002 From: amy.henderson@kitware.com (Amy Henderson) Date: Fri, 16 Aug 2002 17:15:00 -0400 Subject: [vtkusers] non-uniform glyph scaling In-Reply-To: <000501c24568$cd7753a0$63dc7580@COHO> Message-ID: <5.1.0.14.0.20020816171328.00b1ebd8@pop.nycap.rr.com> If you want to specify what glyph to use, try using vtkGlyph3D instead of vtkHedgeHog. In the class vtkGlyph3D, you can also specify a scale mode. (In your case, you'd call SetScaleModeToScaleByVector().) - Amy At 03:06 PM 8/16/2002 -0600, John Clyne wrote: >Hi, > >How would one go about scaling a glyph non-uniformly? I.e. I'd like to only >scale it along the vector that orients it by the magnitude of that vector >rather than scaling it uniformly in all three dimensions. Alternatively, is >there a way to specify an alternate glyph for vtkHedgeHog (something other >than a simple line). > >thanks! > > >John Clyne (clyne@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 clyne@ncar.ucar.edu Fri Aug 16 22:23:35 2002 From: clyne@ncar.ucar.edu (clyne@ncar.ucar.edu) Date: Fri, 16 Aug 2002 15:23:35 -0600 (MDT) Subject: [vtkusers] non-uniform glyph scaling In-Reply-To: <5.1.0.14.0.20020816171328.00b1ebd8@pop.nycap.rr.com> from "Amy Henderson" at Aug 16, 2002 05:15:00 PM Message-ID: <200208162123.PAA19245@cyclone.scd.ucar.edu> Well, unless i'm doing something silly (always a possibility) using SetScaleModeToScaleByVector scales the glyph in *all* three dimensions by the magnitude of the vector. I only want to scale along the X axis (assuming the glyph is oriented along the X axis). I.e. I only want to change the length of the glyph in response to the vector magnitude. thanks - jc Amy Henderson writes: > > If you want to specify what glyph to use, try using vtkGlyph3D instead of > vtkHedgeHog. In the class vtkGlyph3D, you can also specify a scale > mode. (In your case, you'd call SetScaleModeToScaleByVector().) > > - Amy > > At 03:06 PM 8/16/2002 -0600, John Clyne wrote: > >Hi, > > > >How would one go about scaling a glyph non-uniformly? I.e. I'd like to only > >scale it along the vector that orients it by the magnitude of that vector > >rather than scaling it uniformly in all three dimensions. Alternatively, is > >there a way to specify an alternate glyph for vtkHedgeHog (something other > >than a simple line). > > > >thanks! > > > > > >John Clyne (clyne@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 galicjan@yahoo.com Sat Aug 17 05:04:35 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Sat, 17 Aug 2002 00:04:35 -0400 Subject: [vtkusers] Java classes missing from vtkNightly Message-ID: <5.1.1.6.2.20020816235442.01ee0008@pop-server.cinci.rr.com> The pre-compiled nightly files seem to miss Java wrapper classes. There are DLLs but no jar or classes. Looks that is no way to even compile SimpleVTK.java. Jarek From John Biddiscombe" Message-ID: <000b01c245c8$26f177d0$0100a8c0@tigger> > Well, unless i'm doing something silly (always a possibility) using > SetScaleModeToScaleByVector scales the glyph in *all* three dimensions = by > the magnitude of the vector. I only want to scale along the X axis = (assuming > the glyph is oriented along the X axis). I.e. I only want to change = the length > of the glyph in response to the vector magnitude. SetScaleModeToScaleByVectorComponents will scale by x,y,z seperately, = use a vector of {1,1,27.6} and you'll get elongation along one axis and no change on the = other 2. JB From malcolm@geovision.co.za Sat Aug 17 09:35:28 2002 From: malcolm@geovision.co.za (Malcolm Drummond) Date: Sat, 17 Aug 2002 10:35:28 +0200 Subject: [vtkusers] non-uniform glyph scaling References: <000501c24568$cd7753a0$63dc7580@COHO> Message-ID: <002801c245c9$454b48e0$cefefea9@bart> Hi John I think you'll have to roll your own! Start with the programmable glyph filter - even if it's ultimately too slow for your purposes, it provides a quick and easy way to prototype before adding a new filter to your build. Malcolm ----- Original Message ----- From: John Clyne To: Sent: Friday, August 16, 2002 11:06 PM Subject: [vtkusers] non-uniform glyph scaling > Hi, > > How would one go about scaling a glyph non-uniformly? I.e. I'd like to only > scale it along the vector that orients it by the magnitude of that vector > rather than scaling it uniformly in all three dimensions. Alternatively, is > there a way to specify an alternate glyph for vtkHedgeHog (something other > than a simple line). > > thanks! > > > John Clyne (clyne@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 jdrexhage@wiwi.uni-bielefeld.de Sat Aug 17 12:51:51 2002 From: jdrexhage@wiwi.uni-bielefeld.de (Jan-Gerrit Drexhage) Date: Sat, 17 Aug 2002 13:51:51 +0200 Subject: [vtkusers] Segmentation Fault Message-ID: <000501c245e4$79e97c00$87544681@wiwipc666> This is a multi-part message in MIME format. --Boundary_(ID_Z8PxghGPb+kxqAAfxO95fA) Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Hi there, as i presented some simple VTK stuff to my collegues in the projectgroup the program crashes with Segmentation Fault when I switch between Track and Joystick - Mode. The VTK Program shows 3 Cylinders, 3 Cones and 4 spheres, so not even complex stuff. Does anyone knows how to work around that issue or is it a known bug? Greetings Jan ******************************************************************* PC/LAN Administration Department of Economics and Business Administration University of Bielefeld Postbox 10 01 31 33501 Bielefeld Germany Tel.: +49-521-106-4888 FAX.: +49-521-106-8004 E-Mail: wiwiadmin@wiwi.Uni-Bielefeld.DE ******************************************************************* --Boundary_(ID_Z8PxghGPb+kxqAAfxO95fA) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT

Hi there,

 

as i presented some simple VTK stuff to my collegues in the projectgroup the program crashes with Segmentation Fault when I switch between Track and Joystick – Mode. The VTK Program shows 3 Cylinders, 3 Cones and 4 spheres, so not even complex stuff. Does anyone knows how to work around that issue or is it a known bug?

 

Greetings

Jan

 

*******************************************************************

PC/LAN Administration

Department of Economics and Business Administration

University of Bielefeld

Postbox 10 01 31

33501 Bielefeld

Germany

 

Tel.: +49-521-106-4888

FAX.: +49-521-106-8004

E-Mail: wiwiadmin@wiwi.Uni-Bielefeld.DE

*******************************************************************

 

--Boundary_(ID_Z8PxghGPb+kxqAAfxO95fA)-- From c.p.botha@its.tudelft.nl Sat Aug 17 12:59:05 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Sat, 17 Aug 2002 13:59:05 +0200 Subject: [vtkusers] Segmentation Fault In-Reply-To: <000501c245e4$79e97c00$87544681@wiwipc666> References: <000501c245e4$79e97c00$87544681@wiwipc666> Message-ID: <20020817115905.GB7678@dutidad.twi.tudelft.nl> On Sat, Aug 17, 2002 at 01:51:51PM +0200, Jan-Gerrit Drexhage wrote: > as i presented some simple VTK stuff to my collegues in the projectgroup > the program crashes with Segmentation Fault when I switch between Track > and Joystick - Mode. The VTK Program shows 3 Cylinders, 3 Cones and 4 > spheres, so not even complex stuff. Does anyone knows how to work around > that issue or is it a known bug? It's not a known bug. You're also going to have to supply more information: version of VTK, C++/Python/Tcl, back-trace after the crash, etc. etc. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From reichl@ifb.tu-graz.ac.at Sun Aug 18 12:38:18 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Sun, 18 Aug 2002 12:38:18 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1193 - 2 msgs Message-ID: <119562E2791@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From David.Pont@ForestResearch.co.nz Sun Aug 18 23:02:28 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Mon, 19 Aug 2002 10:02:28 +1200 Subject: [vtkusers] Cutter overlay on image Message-ID: I am currently working with mixed polydata and images. For the images I have: vtkTIFFReader->vtkTexture vtkPlaneSource( sized with image dimensions ) ->vtkTransformPolyDataFilter->vtkPolyDataMapper->vtkActor( SetTexture with texture created from image ) For the polydaya it is the usual, similar to the latter part above: MyPolyData->vtkTransformPolyDataFilter->vtkPolyDataMapper->vtkActor One, or both transforms may not be required, depending if you inputs (image and polydata) are in the same coordinate system. regards Dave Pont |--------+---------------------------------> | | Kevin Teich | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 16/08/2002 09:39 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers@public.kitware.com | | cc: | | Subject: [vtkusers] Cutter overlay on image | >------------------------------------------------------------------------------------------------------------| I am getting the cross-section of some poly data with a vtkCutter and would like to overlay this onto the output of a vtkImageReslice in the same window. What is the best way to do this? Thanks. -- Kevin Teich _______________________________________________ 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 David.Pont@ForestResearch.co.nz Sun Aug 18 23:11:53 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Mon, 19 Aug 2002 10:11:53 +1200 Subject: [vtkusers] Running out of file handles Message-ID: I am loading about 80 images from TIFF files, one vtkTIFFReader per image, and I get an error after the maximum number of file handles is reached. I am using Borland C++ Builder, which defines FOPEN_MAX 50. The images are of cross sections cut from a tree, so form a kind of volume, with irregular spacing. I am more used to working with polydata, so images and volumes are new to me. Does anyone have any tips on how to circumvent the limit on file handles. I tried vtkTIFFReader->SetReleaseDataFlag( 1 ), Update, with no change. Should I name/number the files to allow the TIFFReader to load them as a sequence, or will the limit still apply? Or can I create a volume out of the images in the first place and load that, although I think the irregular spacing will be a problem with any volume based approach. regards Dave Pont From yjin76@hotmail.com Mon Aug 19 04:53:49 2002 From: yjin76@hotmail.com (Yuan Jin) Date: Mon, 19 Aug 2002 03:53:49 +0000 Subject: [vtkusers] volume rendering ImageData after vtkImageReslice Message-ID: Hi all, I am trying to get more slices from the raw data, ie. interpolate between two adjacent slices to generate more slices. I have 30 slices raw data and want to interpolate addtional 4 slices between each two slices. I use the code below reslice = vtkImageReslice() reslice.SetInput(reader.GetOutput()) reslice.GetOutput().SetExtent(0,511,0,511,1,150) reslice.InterpolateOn() reslice.SetInterpolationModeToCubic() reslice.SetOutputSpacing(1,1,0.2) reslice.SetOutputExtent(0,511,0,511,1,150) reslice.Update() I can see the resulting slices (interpolated ones) using vtkImageViewer, but when I volume render the vtkImageData (reslice.GetOutput()), it doesn't work. anyone has experience? Thanks a lot Yuan _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From burgert@ira.uka.de Mon Aug 19 08:21:09 2002 From: burgert@ira.uka.de (Oliver Burgert) Date: Mon, 19 Aug 2002 09:21:09 +0200 Subject: AW: [vtkusers] volume rendering ImageData after vtkImageReslice Message-ID: <01734FCC8274D51199C50050DA20ACBC18A916@i61p2.ira.uka.de> Hi Yuan, Are you able to volume-render the original data? If not, you might have to resample your volume: //if volume data is not UNSIGNED_CHAR or UNSIGNED_SHORT //volume has to be casted to the desired range if ((vtk_img->GetScalarType() !=3D VTK_UNSIGNED_CHAR ) && (vtk_img->GetScalarType() !=3D VTK_UNSIGNED_SHORT ))=20 { vtkImageCast* pImageCast =3D vtkImageCast::New(); pImageCast->SetOutputScalarTypeToUnsignedShort(); pImageCast->ClampOverflowOn();=20 pImageCast->SetInput(vtk_img); =09 RenderImage=3D(pImageCast->GetOutput()); } //resampling =20 else=20 { RenderImage =3D vtk_img; } HTH=20 Oliver Oliver Burgert IRF / IAIM=20 Geb. 07.21 (Technologiefabrik Universit=E4t Karlsruhe (TH) Kaiserstr. 12 76128 Karlsruhe burgert@ira.uka.de =20 > -----Urspr=FCngliche Nachricht----- > Von: Yuan Jin [mailto:yjin76@hotmail.com]=20 > Gesendet: Montag, 19. August 2002 05:54 > An: vtkusers@public.kitware.com > Betreff: [vtkusers] volume rendering ImageData after vtkImageReslice >=20 >=20 > Hi all, >=20 > I am trying to get more slices from the raw data, ie.=20 > interpolate between=20 > two adjacent slices to generate more slices. I have 30 slices=20 > raw data and=20 > want to interpolate addtional 4 slices between each two=20 > slices. I use the=20 > code below >=20 > reslice =3D vtkImageReslice() > reslice.SetInput(reader.GetOutput()) > reslice.GetOutput().SetExtent(0,511,0,511,1,150) > reslice.InterpolateOn() > reslice.SetInterpolationModeToCubic() > reslice.SetOutputSpacing(1,1,0.2) > reslice.SetOutputExtent(0,511,0,511,1,150) > reslice.Update() >=20 > I can see the resulting slices (interpolated ones) using=20 > vtkImageViewer, but=20 > when I volume render the vtkImageData (reslice.GetOutput()),=20 > it doesn't=20 > work. anyone has experience? >=20 > Thanks a lot >=20 > Yuan >=20 > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos:=20 > http://photos.msn.com/support/worldwide.aspx >=20 > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at:=20 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From John Biddiscombe" Message-ID: <001b01c2475c$6948feb0$0100a8c0@tigger> I noticed the other day that if you use a vtkBMPReader to load a file, = the file is left open for the entire lifetime of the vtkBMPreader. I = don't know if this is deliberate (so that you can tell when a file is = changed and reload) or a bug. But if the same applies to a tiffreader, = then your max files problem will manifest. loop over all 80 If you vtkTiffReader->Update() then=20 mytiff[loop] =3D vtkTiffReader->GetOutput(); mytiff[loop]->Register(NULL); vtkTiffReader->UnregisterAllOutputs() vtkTiffReader->Delete() end loop the files should be closed after each read and you won't get the = trouble. However, TiffReader does descend from ImageReader so why don't you just = load all 80 into a single volume using a single TiffReader... JB =20 ----- Original Message -----=20 From: To: Sent: Sunday, August 18, 2002 11:11 PM Subject: [vtkusers] Running out of file handles >=20 > I am loading about 80 images from TIFF files, one vtkTIFFReader per = image, > and I get an error after the maximum number of file handles is = reached. I > am using Borland C++ Builder, which defines FOPEN_MAX 50. The images = are of > cross sections cut from a tree, so form a kind of volume, with = irregular > spacing. > I am more used to working with polydata, so images and volumes are new = to > me. Does anyone have any tips on how to circumvent the limit on file > handles. I tried vtkTIFFReader->SetReleaseDataFlag( 1 ), Update, with = no > change. Should I name/number the files to allow the TIFFReader to load = them > as a sequence, or will the limit still apply? Or can I create a volume = out > of the images in the first place and load that, although I think the > irregular spacing will be a problem with any volume based approach. >=20 > regards > Dave Pont >=20 > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at: = > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From U.Koehler@gmx.de Mon Aug 19 09:57:17 2002 From: U.Koehler@gmx.de (Uwe =?ISO-8859-1?Q?K=F6hler?=) Date: Mon, 19 Aug 2002 10:57:17 +0200 (MEST) Subject: [vtkusers] Reading Vector data from images Message-ID: <8862.1029747437@www5.gmx.net> Hi folks, I am trying to read velocity data created on an MRI scanner and I am hoping that you can give me some help to do thid efficiently. The data is acquired in a 3D block and is available as a set of individual slices. I do read these with package require vtk set venc 300 set rows 256 set columns 256 set slices 79 set niceslice 25 # Magnitude data (move to top left) vtkImageReader readerMag #readerMag DebugOn [readerMag GetOutput] ReleaseDataFlagOff readerMag SetDataByteOrderToLittleEndian readerMag SetDataScalarTypeToShort readerMag SetDataExtent 0 [expr $columns-1] 0 [expr $rows-1] 0 [expr $slices-1] readerMag SetFilePrefix "D:/***/Slice" readerMag SetFilePattern "%s%03dMag.bin" ... # Velocity x vtkImageReader readerVelX #readerVelX DebugOn [readerVelX GetOutput] ReleaseDataFlagOff readerVelX SetDataByteOrderToLittleEndian readerVelX SetDataScalarTypeToShort readerVelX SetDataExtent 0 [expr $columns-1] 0 [expr $rows-1] 0 [expr $slices-1] readerVelX SetFilePrefix "D:/***/Slice" readerVelX SetFilePattern "%s%03dVel_x.bin" readerVelX Update ... I do need to combine these for sets of magnitude and velocity component images to one set with scalar and vector data. I have not yet come up with an efficient method to achive this. Has anyone any ideas or even done this before? Many thanks in advance Uwe -- | | -+-----------------------------------------------------------------+- | Dr. Uwe Köhler Merellaan 17 | | NL - 5613 AK Eindhoven | | //// The Netherlands | | (@ @) Phone: +31 61 089 2559 | -+-----oOO--(_)--OOo-----------------------------------------------+- | | GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net From dgobbi@imaging.robarts.ca Mon Aug 19 13:32:21 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Mon, 19 Aug 2002 08:32:21 -0400 (EDT) Subject: [vtkusers] volume rendering ImageData after vtkImageReslice In-Reply-To: Message-ID: Hi Yuan, One problem you will have is that the volume will look squashed the way that you have resampled it. The vtkImageViewer always maps one image pixel (voxel) to one screen pixel i.e. it ignores the Spacing of the image data. The vtkVolume does look at the Spacing of the input image data, so it will see that the spacing in Z is on-fifth the spacing in x or y and render accordingly. When you read image data into VTK, you should always make sure that you set the x, y, and z spacing correctly in the Reader. For example to something like (1,1,5) in your case. Then, to you resample the data, you change the spacing to (1,1,1). There are many filters in VTK that cant't work properly unless you correctly set the DataSpacing in the Reader. These include vtkImageReslice, vtkMarchingCubes, vtkContourFilter, vtkProbeFilter, vtkImageActor and several others. - David -- David Gobbi, MSc dgobbi@imaging.robarts.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 19 Aug 2002, Yuan Jin wrote: > Hi all, > > I am trying to get more slices from the raw data, ie. interpolate between > two adjacent slices to generate more slices. I have 30 slices raw data and > want to interpolate addtional 4 slices between each two slices. I use the > code below > > reslice = vtkImageReslice() > reslice.SetInput(reader.GetOutput()) > reslice.GetOutput().SetExtent(0,511,0,511,1,150) > reslice.InterpolateOn() > reslice.SetInterpolationModeToCubic() > reslice.SetOutputSpacing(1,1,0.2) > reslice.SetOutputExtent(0,511,0,511,1,150) > reslice.Update() > > I can see the resulting slices (interpolated ones) using vtkImageViewer, but > when I volume render the vtkImageData (reslice.GetOutput()), it doesn't > work. anyone has experience? > > Thanks a lot > > Yuan > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > 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 gregory.bleiker@phonak.ch Mon Aug 19 13:31:56 2002 From: gregory.bleiker@phonak.ch (Gregory Bleiker) Date: Mon, 19 Aug 2002 14:31:56 +0200 Subject: [vtkusers] Cygwin library link dependencies for nightly build Message-ID: Dear all, I'm trying to run a program with the static libraries I compiled with = cygwin from the nightly sources. The build runs fine, but I can't get my = program (that runs with VTK4.0) to link. The sequence of the "-lvtkxx" = seems to be very important and "-lvktCommon" must be at the end. Is there = a right way to do this? Do I have to run ranlib or ar or something of the = kind to use these libraries? Any tools? Here's what happens when I try to compile: $ make -f Makefile.win g++.exe qcview2.o vtktryout.res -o "vtktryout.exe" -L"E:\Dev-C++\lib" = -L"E:\VTK\bin" -lvtkIO -lvtkFiltering -lvtkGraphics -l vtkImaging -lvtkjpeg -lvtkpng -lvtkzlib -lvtkCommon -lvtkRendering = -lopengl32 -I"E:\VTK\IO" -I"E:\VTK\Common" -I"E:\VTK\Filter ing" -I"E:\VTK" -I"E:\VTK\Rendering" -I"E:\VTK\Graphics" -I"E:\VTK\Imag= ing" -mwindows -static --verbose -s Reading specs from /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/specs gcc version 2.95.3-5 (cygwin special) /usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5/collect2.exe --subsystem windows = -Bstatic --dll-search-prefix=3Dcyg -o vtktryout.exe -s /usr/lib/crt0.o -LE:\Dev-C++\lib -LE:\VTK\bin -L/usr/local/lib -L/usr/lib = -L/usr/lib/w32api -L/usr/lib/gcc-lib/i686-pc-cygwin/2. 95.3-5 qcview2.o vtktryout.res -lvtkIO -lvtkFiltering -lvtkGraphics = -lvtkImaging -lvtkjpeg -lvtkpng -lvtkzlib -lvtkCommon -lvtkR endering -lopengl32 -lstdc++ -lgcc -lcygwin -lgdi32 -lcomdlg32 -luser32 = -lkernel32 -ladvapi32 -lshell32 -lgcc E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x2177):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::CollectRevisions(ostream &)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x21bf):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x23e3):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x24ed):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow... Thanks Gregi From marcio.mathias@edb.ericsson.se Mon Aug 19 14:51:21 2002 From: marcio.mathias@edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Mon, 19 Aug 2002 10:51:21 -0300 Subject: [vtkusers] Vectors by arrows Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C24787.7FD88AD0 Content-Type: text/plain; charset="iso-8859-1" Hi, Is there a kind of a simple "arrow" to represent vectorial field to be used in alternative to the available "glyphs"? /Marcio ------_=_NextPart_001_01C24787.7FD88AD0 Content-Type: text/html; charset="iso-8859-1"
Hi,
Is there a kind of a simple "arrow" to represent vectorial field to be used in alternative to the available "glyphs"?
 
/Marcio
------_=_NextPart_001_01C24787.7FD88AD0-- From amy.henderson@kitware.com Mon Aug 19 14:58:20 2002 From: amy.henderson@kitware.com (Amy Henderson) Date: Mon, 19 Aug 2002 09:58:20 -0400 Subject: [vtkusers] Vectors by arrows In-Reply-To: Message-ID: <5.1.0.14.0.20020819095752.01eceae0@pop.nycap.rr.com> --=====================_1713505093==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed There is a vtkArrowSource whose output can be used as the Source for vtkGlyph3D. - Amy At 10:51 AM 8/19/2002 -0300, Marcio Antonio Mathias (EDB) wrote: >Hi, >Is there a kind of a simple "arrow" to represent vectorial field to be >used in alternative to the available "glyphs"? > >/Marcio --=====================_1713505093==_.ALT Content-Type: text/html; charset="us-ascii" There is a vtkArrowSource whose output can be used as the Source for vtkGlyph3D.

- Amy

At 10:51 AM 8/19/2002 -0300, Marcio Antonio Mathias (EDB) wrote:
Hi,
Is there a kind of a simple "arrow" to represent vectorial field to be used in alternative to the available "glyphs"?
 
/Marcio

--=====================_1713505093==_.ALT-- From bertvansesamstraat@hotmail.com Mon Aug 19 15:10:59 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Mon, 19 Aug 2002 14:10:59 +0000 Subject: [vtkusers] Window-level in vtkImagePlaneWidget? Message-ID: Dear all, I use the example ImagePlaneWidget.tcl th slice through a 3D-dataset. I replaced the dataset in the example with my own dataset. This dataset consists of 2-byte integers with a mean value of +/- 1000 and a range from 500-1500. When I look at the image a see three white planes and no structure at all. When I adjust the window-level with the mouse button it changes to maximally 3 or so. It's no problem of litlle,big endian because when I look at the pixel-value of the crossgair I see it's correct. Now is my question: How can I adjust the window-levelling so I see the correct results. _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From dean.inglis@on.aibn.com Mon Aug 19 17:36:47 2002 From: dean.inglis@on.aibn.com (dean.inglis@on.aibn.com) Date: Mon, 19 Aug 2002 12:36:47 -0400 Subject: [vtkusers] Window-level in vtkImagePlaneWidget? Message-ID: <20020819163618.GELG1418.tomts26-srv.bellnexxia.net@[209.226.175.10]> Hi Bert, right mouse button controls the W/L as follows: - left to right mouse movement will increase the level value and 'darken' the image: low level tends to produce a brighter to completely 'white' image - top to bottom mouse movement will increase the window thereby decreasing the contrast: in other words a very high window value will appear to make a grayed out image. So, try moving the mouse left to right until level is around the center value of your data set, then adjust window to the desired level of contrast. Hope this works for you, Dean >This dataset consists of 2-byte integers with a >mean value of +/- 1000 and a range from 500-1500. >When I look at the image a see three white planes >and no structure at all. When I adjust the window->level with the mouse button it changes to >maximally 3 or so. >How can I adjust the window-levelling so I see the >correct results. From anast.jm@pg.com Mon Aug 19 17:54:22 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 19 Aug 2002 12:54:22 -0400 Subject: [vtkusers] A method to get limit values Message-ID: Marcio, vtkStructuredPointsReader I'm guessing produces a vtkStructuredPoints o= utput datatype. This is a subclass of vtkImageData which is a subclass of vtk= Data. vtkData has a method GetScalarRange which will return two float values = of the min and max......john =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: "Marcio Antonio Mathias (EDB)" @public.kitware.com on 08/16/2002 03:36 PM NST = =20 "Marcio Antonio Mathias (EDB)" To: "'= vtkusers@public.kitware.com'" =20 @public.kitware.com =20 Cc: (= bcc: John Anast-JM/PGI) =20 Subject: [v= tkusers] A method to get limit =20 Sent by: vtkusers-admin@public.kitware.com values = =20 08/16/2002 03:06 PM = =20 = =20 = =20 Hi, I am using vtkStructuredPointsReader to capture a data point array to = be evaluated by its isosurfaces (by using vtkContourFilter).I did not fin= d any method to extract the minimum and maximum values from the data set. Has someone a sugestion how to do it? Regards, Marcio. = From hli62413@hotmail.com Mon Aug 19 20:15:43 2002 From: hli62413@hotmail.com (He Li) Date: Mon, 19 Aug 2002 15:15:43 -0400 Subject: [vtkusers] Extract data from STL file to an user-defined array Message-ID: Hi All, I need to read in a STL file and put the data into an user-defined array of triangles. I had difficuties to find the right method to. Please help me on this. The following is a simple example. Please tell me how to extract the triangles from the STL file and put them into the triList array. Thank you very much! An user-defined array: struct triangle { float a[3]; /* a, b and c are three vertices of a triangle */ float b[3]; float c[3]; } triangle triList[20]; int numberOfTriangles; A STL file represents 12 triangles: --------------------------------------------------------------------- solid ascii facet normal 0.0 -1.0 0.0 outer loop vertex 0.0 0.0 0.0 vertex 3.0 0.0 1.0 vertex 0.0 0.0 1.0 endloop endfacet facet normal 0.0 -1.0 0.0 outer loop vertex 3.0 0.0 1.0 vertex 0.0 0.0 0.0 vertex 3.0 0.0 0.0 endloop endfacet facet normal 0.0 1.0 0.0 outer loop vertex 0.0 2.0 0.0 vertex 0.0 2.0 1.0 vertex 3.0 2.0 1.0 endloop endfacet facet normal 0.0 1.0 0.0 outer loop vertex 3.0 2.0 0.0 vertex 0.0 2.0 0.0 vertex 3.0 2.0 1.0 endloop endfacet facet normal -1.0 0.0 0.0 outer loop vertex 0.0 0.0 0.0 vertex 0.0 2.0 1.0 vertex 0.0 2.0 0.0 endloop endfacet facet normal -1.0 0.0 0.0 outer loop vertex 0.0 0.0 0.0 vertex 0.0 0.0 1.0 vertex 0.0 2.0 1.0 endloop endfacet facet normal 1.0 0.0 0.0 outer loop vertex 3.0 0.0 0.0 vertex 3.0 2.0 0.0 vertex 3.0 2.0 1.0 endloop endfacet facet normal 1.0 0.0 0.0 outer loop vertex 3.0 0.0 0.0 vertex 3.0 2.0 1.0 vertex 3.0 0.0 1.0 endloop endfacet facet normal 0.0 0.0 1.0 outer loop vertex 3.0 0.0 1.0 vertex 3.0 2.0 1.0 vertex 0.0 2.0 1.0 endloop endfacet facet normal 0.0 0.0 1.0 outer loop vertex 3.0 0.0 1.0 vertex 0.0 2.0 1.0 vertex 0.0 0.0 1.0 endloop endfacet facet normal 0.0 0.0 -1.0 outer loop vertex 3.0 0.0 0.0 vertex 0.0 2.0 0.0 vertex 3.0 2.0 0.0 endloop endfacet facet normal 0.0 0.0 -1.0 outer loop vertex 3.0 0.0 0.0 vertex 0.0 0.0 0.0 vertex 0.0 2.0 0.0 endloop endfacet endsolid ------------------------------------------------------------------- Hanna Li _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From doctorart@hotmail.com Tue Aug 20 03:40:35 2002 From: doctorart@hotmail.com (R T) Date: Mon, 19 Aug 2002 18:40:35 -0800 Subject: [vtkusers] problem with constrained Delaunay2D triangulation Message-ID: Hi Alex, How do you feed triangles to OpenGL for rendering? is some example code available for download? I have a lot of problems with VTK Render engine ---- so slooow. if you use vtkSurfaceReconstructionFilter sf sf SetInput myPolyDataObject you have to vtkContourFilter cf cf SetInput [sf GetOutput] of course it's slower than just Delaunay best, Roma >From: "Alexander Smondyrev" >To: "R T" >Subject: Re: [vtkusers] problem with constrained Delaunay2D triangulation >Date: Sat, 17 Aug 2002 14:22:34 -0400 > > Hi, Roma, > >Thank you for your reply. I did find out what was causing my problems. The >main reason is that there was a problem with the data set, mainly due to >the >applied constraints. > > > > > I 've been just wondering why are u using > > Delaunay triangulation? > > > >I am actually trying to find a better way since points that I need to >triangulate are restricted to a surface of a sphere. Not a complete sphere >though, but the one cut by a number of planes. Are you aware of any way to >do this by any chance? > > > If you use UnstructuredGrid instead of PolyData > > and vtkDatasetMapper, you could just display > > your lines and points > > > >I need to get triangles since these are fed into OpenGL and my dataset >contains only points and some lines. That is how the application I am >working on is designed. VTK seemed to be a good tool at the moment to get >it >done without coding own triangulation routines. > > > Have you tried SurfaceReconstructionFilter? > > (if you need a surface to be reconstructed > > and you know all of your points belong > > to the surface you want) > > > >I haven't tried it. I did take a look at the documentation, but it seemed >to >me that it may not work well for my case. I will take another look when I >get a chance. Thanks for your advise. > > With best regards, > > Alex. > _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From hongwan@myrealbox.com Tue Aug 20 07:07:47 2002 From: hongwan@myrealbox.com (Ng Hong Wan) Date: Tue, 20 Aug 2002 14:07:47 +0800 Subject: [vtkusers] CT - VOLUME - CAD Message-ID: <000901c2480f$eb8ab2c0$6401a8c0@hong> This is a multi-part message in MIME format. ------=_NextPart_000_000A_01C24852.F9ADF2C0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi, Is there a known approach to reconstruct a 3D volume model from CT using VTK and import it successfully into well known CAD modelers like Unigraphics, Pro E, AutoCAD If not What abt a known approach to reconstruct a 3D volume model from CT using VTK and import it successfully into well known FEA software like ABAQUS, ANSYS, NASTRAN. ------=_NextPart_000_000A_01C24852.F9ADF2C0 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable CT - VOLUME - CAD

Hi,

Is = there a known approach to reconstruct a 3D volume model from CT using VTK and import it successfully = into well known CAD modelers like Unigraphics, Pro E, = AutoCAD

If not

What abt a known approach to reconstruct a 3D volume model from CT using VTK and import it successfully = into well known FEA software like ABAQUS, ANSYS, NASTRAN.


------=_NextPart_000_000A_01C24852.F9ADF2C0-- From bertvansesamstraat@hotmail.com Tue Aug 20 09:19:53 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Tue, 20 Aug 2002 08:19:53 +0000 Subject: [vtkusers] Window-level in vtkImagePlaneWidget? Message-ID: >Hi Bert, > >right mouse button controls the W/L as follows: > - left to right mouse movement will increase the level value and 'darken' >the image: low level tends to produce a brighter to completely 'white' >image > - top to bottom mouse movement will increase the window thereby >decreasing the contrast: in other words a very high window value will >appear to make a grayed out image. > >So, try moving the mouse left to right until level is around the center >value of your data set, then adjust window to the desired level of >contrast. > >Hope this works for you, >Dean > > >This dataset consists of 2-byte integers with a >mean value of +/- 1000 >and a range from 500-1500. >When I look at the image a see three white >planes >and no structure at all. When I adjust the window->level with the >mouse button it changes to >maximally 3 or so. > > >How can I adjust the window-levelling so I see the >correct results. > Dean, Thank you for your response. I knew already how to do this but there is a slight problem. The level and window values don't have the right values compared to the values in my data. My data ranges from 500-1500 And the maximum window and level values are +/- 3, even when I move the mouse in the direcion of the maximum level and window values. So is there a bug in the widget or am I forgetting something. So my problem is that the window, level values don't scale with my data. Maurice _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From zhou@isg.cs.uni-magdeburg.de Tue Aug 20 09:51:59 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Tue, 20 Aug 2002 10:51:59 +0200 Subject: [vtkusers] Evaluate frame rates and rendering time in a vtk application. Message-ID: <3D621F4D.18095.6482DD@localhost> Hi, vtkusers, How to evaluate and compute frame rates and rendering in a vtk application? Thank you very much. regards, Jianlong From dean.inglis@on.aibn.com Tue Aug 20 12:17:15 2002 From: dean.inglis@on.aibn.com (dean.inglis@on.aibn.com) Date: Tue, 20 Aug 2002 7:17:15 -0400 Subject: [vtkusers] Window-level in vtkImagePlaneWidget? Message-ID: <20020820111707.TQFZ1575.tomts15-srv.bellnexxia.net@[209.226.175.72]> Hi Maurice, I tired to reproduce your problem with my own data scled and shifted via vtkImageShiftScale so that the range was 500 to 1500. The vtkImagePlaneWidget appears with normal default lookig W/L: it calculates initial W/L in ::SetInput(vtkDataSet*) //note that vtkDataSet is downcast to vtkImageData !! float range[2]; this->ImageData->GetScalarRange(range); this->LookupTable->SetTableRange(range[0],range[1]); this->LookupTable->Build(); this->OriginalWindow = range[1] - range[0]; this->OriginalLevel = 0.5*(range[0] + range[1]); Can you provide a simple tcl script, cxx example, or snippet of your pipeline code that illustrates/contains the problem? If you do a GetScalarRange on your image data what values are obtained? Dean From Bernhard.Gschaider@unileoben.ac.at Tue Aug 20 14:06:55 2002 From: Bernhard.Gschaider@unileoben.ac.at (Bernhard Gschaider) Date: 20 Aug 2002 15:06:55 +0200 Subject: [vtkusers] Working CMakeCache.txt for linux+java14 Message-ID: Hi! I've been trying to get vtkNightlySrc to run on different configurations with the JDK 1.4 from Sun. TCL and C++ work fine, but when I want to run file in Examples/Tutorial/Step1/Java (Cone.java) I get the following message: > java Cone An unexpected exception has been detected in native code outside the VM. Unexpected Signal : 11 occurred at PC=0x4C3F9BD0 Function=_ZN12vtkHashTable12AddHashEntryEPvS0_+0x40 Library=/usr/local/lib/vtk/libvtkCommonJava.so Current Java thread: at vtk.vtkPolyData.VTKCastInit(Native Method) at vtk.vtkPolyDataSource.GetOutput_2(Native Method) at vtk.vtkPolyDataSource.GetOutput(vtkPolyDataSource.java:20) at Cone.main(Cone.java:42) [ list of libraries follows ] I've been trying this on - RedHat 7.2 - Suse 8.0 with - gcc 2.95 - gcc 3.0 and the message is always the same. I've checked with the message http://public.kitware.com/pipermail/vtkusers/2002-March/010120.html from the archive. Attached to that message is a CMakeCache.txt. I can't decode this file (tried different utilities and approaches). I'd like to compare that (or another working) CMakeCache.txt with mine, to see if there are options, that I set incorrectely. So my question is: Could someone, who succseeded in compiling vtk+java1.4, send me a copy of his CMakeCache.txt (and tell me which version of vtk he was compiling). Thanks in advance Bernhard PS : I successfully compiled the same vtk-Version on a CompaqAlpha with Tru64-Unix and java1.4, and it works, so I guess it has to be a problem with the options. From Michael-Dresser@mail.omrf.ouhsc.edu Tue Aug 20 14:11:48 2002 From: Michael-Dresser@mail.omrf.ouhsc.edu (Mike Dresser) Date: Tue, 20 Aug 2002 08:11:48 -0500 Subject: [vtkusers] Hardware stereo 3D viewing of confocal images Message-ID: Hello Dan. We've used VTK and related software to visualize LSM510 volumes, though using Windows boxes, for a couple of years with very good results. The = .lsm file format is available from Zeiss, so that if you want to read in the = data directly you can generate a reader. I've written a simple, limited = .lsm file reader for an application that we use in-house - I'm not much of a programmer, but I'll clip out the relevant parts and send them if you promise not to laugh in public. Alternatively, the LSM510 software can export single-channel data to a series of .tifs, and VTK includes a = TIFF file reader that may be able to handle these files relatively easily. You'll have to enter spacing, wavelength, etc., manually if you go the = .tif route. If you're not interested in writing the code, then I highly recommend VolView from Kitware, which does run in Linux, and does handle the LSM510-output .tifs. We've been using VolView for a year or more and = have a number of labs that use it regularly. We have not tried to use stereo-viewing hardware, so I can't address that part of your question. = If you can afford it, I would highly recommend getting a VolumePro board = from TeraRecon (don't know if it works in Linux) which allows very rapid = zooming, rotating, etc. with large datasets. The VolumePro board is supported = by VTK and by VolView. (I don't work for any of the companies involved.) Mike ------------ Michael E. Dresser, MD/PhD Assoc. Member, Molecular and Cell Biology Director, Core Facility for Imaging 405-271-7682 Oklahoma Medical Research Foundation 825 NE 13th St. Oklahoma City, OK 73104 -----Original Message----- From: Dr. Dan White [mailto:dan@chalkie.org.uk] Sent: Friday, August 16, 2002 5:37 AM To: vtkusers@public.kitware.com Cc: ppkank@cc.jyu.fi Subject: [vtkusers] Hardware stereo 3D viewing of confocal images Hi All, I'm new to this list, so hope I'm directing these questions to the=20 right people. I have a linux workstation primarily set up for viewing 3D models of=20 proteins using Stereographics crystal eyes hardware. We have many people doing confocal microscopy with multiple stains=20 using LSM 510 imaging software. We want a good way to reconstruct 3D images from layers of confocal=20 image "slices", and be able to look at the 3D representations in=20 hardware stereo on this linux workstation. Am I right in thinking VTK has the right tools for this job? If so,=20 can anyone give me any tips on how to get started? I have the current VTK sources and docs and examples. What is the=20 right way to use the cake complier tool to get VTK up and running? I=20 see stuff about Tcl and Tk , and also python wrapping, which I know=20 very little about. Does this give the GUI? Is there a GUI? Or is it a=20 command line interface? Does VTK allow you to spin and zoom a 3D image around on the screen=20 in any direction with the mouse, and use crystal eyes stereo=20 viewing?????? Hope someone can help!!!! Dan White dan@chalkie.org.uk http://www.chalkie.org.uk Daniel James White PhD. Cell Biology Department of Biological and Environmental Science University of Jyv=E4skyl=E4 FIN-40351 Jyv=E4skyl=E4 Finland +358 (0)14 260 4183 (office) _______________________________________________ This is the private VTK discussion list.=20 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@pg.com Tue Aug 20 15:10:57 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 20 Aug 2002 10:10:57 -0400 Subject: [vtkusers] CT - VOLUME - CAD Message-ID: Ng, In my limited experience so far, the file output options seem fairly limited to triangle or other types of polygonal surfaces. If your CT data has nice borders in it, then you could use marching cubes to create the surface and then write an STL file (triangles) which most CAD packages can read, however in my experience what the CAD folks are looking for are NURBS type surfaces which I've not seen generated in vtk. Some CAD packages can drape NURBS surfaces on poly meshes but I've not had much luck with that personally. I've not seen any meshing capabilities for FEA but I might be wrong here since I'm not real familiar with FEA. I'm fairly sure you can represent tets and hex volume meshes in vtk but how to do this from the CT data and whether these would be suitable for FEA I'm not sure. My coworkers tell me FEA meshing can be tricky business. It is possible that I've missed some classes or that there are vtk user generated classes out there that can handle these issues. Perhaps a search of the archives might turn something up. I hope folks can prove me wrong on a number of these statements as I'm looking for some of these capabilities myself.......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Ng Hong Wan" @public.kitware.com on 08/20/2002 02:07 PM ZE8 "Ng Hong Wan" To: @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] CT - VOLUME - CAD Sent by: vtkusers-admin@public.kitware.com 08/20/2002 02:07 AM Hi, Is there a known approach to reconstruct a 3D volume model from CT using VTKand import it successfully into well known CAD modelers like Unigraphics, Pro E, AutoCAD If not What abt a known approach toreconstruct a 3D volume model from CTusing VTKand import it successfully into well knownFEA software like ABAQUS, ANSYS, NASTRAN. From apbai@yahoo.com Tue Aug 20 15:30:24 2002 From: apbai@yahoo.com (P Bai) Date: Tue, 20 Aug 2002 07:30:24 -0700 (PDT) Subject: [vtkusers] Multiple scalars working together? Message-ID: <20020820143024.46740.qmail@web12903.mail.yahoo.com> Hi all, I'm currently stuck at this problem: My data has two scalars (there's no way to combine these two to one), say, "direction" and "velocity". In my lookuptable I want "direction" to determine the Hue and "velocity" to determine the Value independently. Is it possibile to do that and how? Or is there any other way to assign color to a point in the polydata other than using scalar and lookuptable? Thank you for your help! P __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From zhou@isg.cs.uni-magdeburg.de Tue Aug 20 15:31:28 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Tue, 20 Aug 2002 16:31:28 +0200 Subject: [vtkusers] How to import Volview transfer functions into vtk applications. Message-ID: <3D626EDD.27711.19B4CA7@localhost> Hi, vtkusers, I tested a volume data set in Volview 1.3 and saved its transfer functions into files in Volview format. Now I want to import these transfer functions into my own vtk applications. The following is one of the Volview formatted transfer function files. vtkKWTransferFunctionDialog { Versions { vtkKWObject 1.9 vtkKWWidget 1.13 vtkKWTransferFunctionDialog 1.21.2.6 } NumberOfSOMarkers 4 SOMarker 0 0 SOMarker 0.2 1124 SOMarker 0.244444 1254 SOMarker 0.2 4095 NumberOfSCMarkers 6 SCMarker 0 0 0 0 SCMarker 0 0 0 4.16296 SCMarker 0.94052 0.94052 0.94052 1119.84 SCMarker 1 1 1 1124 SCMarker 1 1 1 1254 SCMarker 1 1 1 4095 NumberOfGOMarkers 4 GOMarker 1 0 GOMarker 1 204.75 GOMarker 1 409.5 GOMarker 1 4095 ScalarColorAndOpacityLocked 0 ColorSpace RGB WindowLevel 0 AutoApply 0 ScalarDisplayBounds 0 1124 OpacityDisplayBounds 0 1 MagnitudeDisplayBounds 854 934 GradientMagnitudeOn 0 } Is there any convenient way to load this transfer function file into a vtk application using vtk classes or other ways? Thank you very much. regards, Jianlong From anast.jm@pg.com Tue Aug 20 15:48:42 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 20 Aug 2002 10:48:42 -0400 Subject: [vtkusers] Multiple scalars working together? Message-ID: P Have you thought of converting your scalar data into vector data with one component equal to zero and the other two your velocity and direction. Perhaps the vector data can be used more effectively to color or perhaps glyph your data set. I've no experience with vector data so not much help there but there are quite a few vector based examples if I remember right...john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: P Bai @public.kitware.com on 08/20/2002 07:30 AM MST P Bai To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Multiple scalars working together? Sent by: vtkusers-admin@public.kitware.com 08/20/2002 10:30 AM Hi all, I'm currently stuck at this problem: My data has two scalars (there's no way to combine these two to one), say, "direction" and "velocity". In my lookuptable I want "direction" to determine the Hue and "velocity" to determine the Value independently. Is it possibile to do that and how? Or is there any other way to assign color to a point in the polydata other than using scalar and lookuptable? Thank you for your help! P __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com _______________________________________________ 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 bhiron@lsuhsc.edu Tue Aug 20 17:45:41 2002 From: bhiron@lsuhsc.edu (Budd Hirons) Date: Tue, 20 Aug 2002 11:45:41 -0500 Subject: [vtkusers] CT - VOLUME - CAD In-Reply-To: Message-ID: <5.1.1.6.0.20020820112040.00ab3a48@lsumc-med-exch2.med.lsuhsc.edu> Hello, >> ... FEA meshing can be tricky business. and how! vtk does a great job of building polygonal surfaces from volume data and we are trying to leverage that capabilities in our work, a significant part of which is FEM/FEA using ABAQUS. We are working on a method to import these vtk-generated surfaces (connected triangle patches such as BYU output) into PATRAN (a FEM pre-processing software package), which then creates a tetrahedral mesh from the imported surfaces. These meshes are being used as inputs into ABAQUS FEM code. While the method is looking promising, it is pretty involved. You may need to some sort of preprocessor such as PATRAN to do this. Using CAD software as an intermediate step initially appears to be a nice shortcut, but for our FEM/FEA purposes introduces more complexity and licensing than it is worth. Best, Budd Hirons. At 10:10 AM 8/20/2002 -0400, you wrote: >Ng, > >In my limited experience so far, the file output options seem fairly >limited to >triangle or other types of polygonal surfaces. If your CT data has nice >borders >in it, then you could use marching cubes to create the surface and then >write an >STL file (triangles) which most CAD packages can read, however in my >experience >what the CAD folks are looking for are NURBS type surfaces which I've not seen >generated in vtk. Some CAD packages can drape NURBS surfaces on poly >meshes but >I've not had much luck with that personally. I've not seen any meshing >capabilities for FEA but I might be wrong here since I'm not real familiar >with >FEA. I'm fairly sure you can represent tets and hex volume meshes in vtk >but how >to do this from the CT data and whether these would be suitable for FEA >I'm not >sure. My coworkers tell me FEA meshing can be tricky business. It is possible >that I've missed some classes or that there are vtk user generated classes out >there that can handle these issues. Perhaps a search of the archives might >turn >something up. > >I hope folks can prove me wrong on a number of these statements as I'm looking >for some of these capabilities myself.......john > > > >From: "Ng Hong Wan" @public.kitware.com on 08/20/2002 >02:07 PM ZE8 > > > "Ng Hong Wan" > To: > @public.kitware.com Cc: (bcc: John > Anast-JM/PGI) > Subject: [vtkusers] CT - VOLUME - CAD > > > Sent > by: > vtkusers-admin@public.kitware.com > > 08/20/2002 02:07 > AM > >Hi, > >Is there a known approach to reconstruct a 3D volume model from CT using >VTKand >import it successfully into well known CAD modelers like Unigraphics, Pro E, >AutoCAD > >If not > >What abt a known approach toreconstruct a 3D volume model from CTusing VTKand >import it successfully into well knownFEA software like ABAQUS, ANSYS, >NASTRAN. From dean.inglis@on.aibn.com Tue Aug 20 18:16:20 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Tue, 20 Aug 2002 13:16:20 -0400 Subject: [vtkusers] vol rendering binary data Message-ID: Has anyone successfully (in terms of aesthetics) volume rendered binary 3D image data? I am trying to produce a 'pleasing' rendering of trabecular bone structure from resampled and thresholded MRI data. The output of the threshold is set to 1 for bone & 0 for everything else. I am currently using 2D texture mapping but the results have a 'blocky' appearance. Dean From mauricio.inforcati@cenpra.gov.br Tue Aug 20 19:22:20 2002 From: mauricio.inforcati@cenpra.gov.br (Mauricio Caliggiuri Inforcati) Date: Tue, 20 Aug 2002 15:22:20 -0300 Subject: [vtkusers] vtkImageViewerWidget Trouble Message-ID: <200208201522.20961.mauricio.inforcati@cenpra.gov.br> Hi, I am using vtkImageViewerWidget to show some vtk slices images. When trying to execute my PYTHON script, sometimes the image frame is not= =20 showed.. Then, I execute the script again and the viewer is "Rendered"=20 correctly. Whats is wrong with this? -I use a Toplevel and a Frame in it. -Then a read the images with vtkImageReader. -viewer is created as a vtkImageViewer instance > result =3D vtkImageViewerWidget(....) > result.pack(...) thanks for helping, Mauricio From bob@stlcc.org Tue Aug 20 22:14:19 2002 From: bob@stlcc.org (Bob Palank) Date: Tue, 20 Aug 2002 16:14:19 -0500 Subject: [vtkusers] vtk and Java Message-ID: Running in Borland JBuilder 60 - Java under XP Pro 1. I Rebuild the project and the build succeeds. 2. Project runs fine when the lines below are commented out. // vtkConeSource cone = new vtkConeSource(); // cone.SetHeight( 3.0 ); // cone.SetRadius( 1.0 ); // cone.SetResolution( 10 ); 3. when // vtkConeSource cone = new vtkConeSource(); is uncommented, the build fails with the following error. "cone02.java": Error #: 300 : class vtkConeSource not found in class cone02.cone02 at line 27, column 6 4. I thought the import vtk.*; and System.loadLibrary() should get me beyond this point, but I must be missing something! TIA Bob Palank Fortunately, I had this running before I did a system rebuild! The tutorial code follows. ============================================================= Java Code follows: // Source vtk Tutorial Step 1. // // This example creates a polygonal model of a cone, and then rendered it to // the screen. It willrotate the cone 360 degrees and then exit. The basic // setup of source -> mapper -> actor -> renderer -> renderwindow is // typical of most VTK programs. // package cone02; import vtk.*; // be sure to add a Path to d:\windows\system32 for vtk.jar public class cone02 { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); /* ====================================================== ======================================================= */ } public static void main(String[] args) { // vtkConeSource cone = new vtkConeSource(); // cone.SetHeight( 3.0 ); // cone.SetRadius( 1.0 ); // cone.SetResolution( 10 ); System.out.println("20Aug02 Pass 05"); } } From galicjan@yahoo.com Tue Aug 20 23:11:33 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Tue, 20 Aug 2002 18:11:33 -0400 Subject: [vtkusers] vtk and Java In-Reply-To: Message-ID: <5.1.1.6.2.20020820174846.01e4aa28@pop.mail.yahoo.com> At 05:14 PM 8/20/2002, you wrote: >Running in Borland JBuilder 60 - Java under XP Pro > >1. I Rebuild the project and the build succeeds. >2. Project runs fine when the lines below are commented out. > // vtkConeSource cone = new vtkConeSource(); > // cone.SetHeight( 3.0 ); > // cone.SetRadius( 1.0 ); > // cone.SetResolution( 10 ); >3. when // vtkConeSource cone = new vtkConeSource(); is uncommented, the >build fails with the following error. >"cone02.java": Error #: 300 : class vtkConeSource not found in class >cone02.cone02 at line 27, column 6 > >4. I thought the import vtk.*; and System.loadLibrary() should get me beyond >this point, but I must be missing something! Compiler error suggests that you do not have vtkConeSource in your classpath. A strange thing is that must have something in from 'vtk' otherwise you will get compilation error at 'import vtk.*;' Verify the classpath you program is seeing by adding following to your code: System.out.println("classpath="+System.getProperty("java.class.path")); And rerun you code. If you do not see vtk.jar in the classpath. Then that is what you are missing. Add it and ignore rest of this message :) If you see vtk.jar in the classpath then since you did not get compilation error at 'import vtk.*;' chances are that you have an incomplete vtk.jar. Check if you have vtkConeSource in subdirectory vtk in the vtk.jar (You can open a jar file with JBuilder, that is probably the easiest way. You can also with WinZip or using command prompt 'jar -tvf vtk.jar'). Hope this helps to get you on track, Jarek From reichl@ifb.tu-graz.ac.at Wed Aug 21 00:16:48 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Wed, 21 Aug 2002 0:16:48 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1196 - 12 msgs Message-ID: <154FC7E3E12@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From galicjan@yahoo.com Wed Aug 21 03:57:35 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Tue, 20 Aug 2002 22:57:35 -0400 Subject: [vtkusers] vtkNightlyJava broken In-Reply-To: Message-ID: <5.1.1.6.2.20020820225144.01e4aea0@pop.mail.yahoo.com> Nightly Release Maintainers: vtkNightlyJava.exe does not include compiled Java classes, vtk.jar. It is useless without it. Could you make sure that vtk.jar is getting included in nightly releases? TIA, Jarek From galicjan@yahoo.com Wed Aug 21 03:57:35 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Tue, 20 Aug 2002 22:57:35 -0400 Subject: [vtkusers] vtkNightlyJava broken In-Reply-To: Message-ID: <5.1.1.6.2.20020820225144.01e4aea0@pop.mail.yahoo.com> Nightly Release Maintainers: vtkNightlyJava.exe does not include compiled Java classes, vtk.jar. It is useless without it. Could you make sure that vtk.jar is getting included in nightly releases? TIA, Jarek From marcn@ece.gatech.edu Wed Aug 21 04:02:09 2002 From: marcn@ece.gatech.edu (Marc Niethammer) Date: Tue, 20 Aug 2002 23:02:09 -0400 (EDT) Subject: [vtkusers] lookuptable: rgb to 256 colors Message-ID: Hi, I would like to create a vtkLookupTable with 256 colors which maps arbitrary RGB values to a color that is close. I.e. I would need some sort of equation that translates the r,g and b component to an index in the colormap (lookuptable) which should then have an rgb entry that is close to the one used for computing the index. Does anyone know how to do this? Thanks. -- Marc From dgobbi@imaging.robarts.ca Wed Aug 21 04:32:16 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Tue, 20 Aug 2002 23:32:16 -0400 (EDT) Subject: [vtkusers] lookuptable: rgb to 256 colors In-Reply-To: Message-ID: Hi Marc, Look at vtkImageQuantizeRGBToIndex. - David On Tue, 20 Aug 2002, Marc Niethammer wrote: > Hi, > > I would like to create a vtkLookupTable with 256 colors which maps > arbitrary RGB values to a color that is close. I.e. I would need some > sort of equation that translates the r,g and b component to an index > in the colormap (lookuptable) which should then have an rgb entry that is > close to the one used for computing the index. > > Does anyone know how to do this? > > Thanks. > > -- Marc > > > _______________________________________________ > 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 hongwan@myrealbox.com Wed Aug 21 05:47:14 2002 From: hongwan@myrealbox.com (Ng Hong Wan) Date: Wed, 21 Aug 2002 12:47:14 +0800 Subject: [vtkusers] CT - VOLUME - CAD In-Reply-To: <5.1.1.6.0.20020820112040.00ab3a48@lsumc-med-exch2.med.lsuhsc.edu> Message-ID: <000301c248cd$d4efb510$6401a8c0@hong> I have access to FEM s/w Ansys and Abaqus, as well as CAD s/w like ProE and Unigraphics installed in our university server. I have written a parsing code in visual basic that is able to generate outlines from vtkpolydatawriter format into ansys codes. But it is only restricted to polylines, Moreover, I am dealing with volumes instead of surfaces and I am not aware if any of the vtk classes available is able to generate triangular volumes from CT scan, if yes, please advise me of the command. FYI, there is a s/w called materialize mimics that claimed to be able to do it, but I have not try it out. Thanks -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] On Behalf Of Budd Hirons Sent: Wednesday, August 21, 2002 12:46 AM To: vtk-users Subject: Re: [vtkusers] CT - VOLUME - CAD Hello, >> ... FEA meshing can be tricky business. and how! vtk does a great job of building polygonal surfaces from volume data and we are trying to leverage that capabilities in our work, a significant part of which is FEM/FEA using ABAQUS. We are working on a method to import these vtk-generated surfaces (connected triangle patches such as BYU output) into PATRAN (a FEM pre-processing software package), which then creates a tetrahedral mesh from the imported surfaces. These meshes are being used as inputs into ABAQUS FEM code. While the method is looking promising, it is pretty involved. You may need to some sort of preprocessor such as PATRAN to do this. Using CAD software as an intermediate step initially appears to be a nice shortcut, but for our FEM/FEA purposes introduces more complexity and licensing than it is worth. Best, Budd Hirons. At 10:10 AM 8/20/2002 -0400, you wrote: >Ng, > >In my limited experience so far, the file output options seem fairly >limited to >triangle or other types of polygonal surfaces. If your CT data has nice >borders >in it, then you could use marching cubes to create the surface and then >write an >STL file (triangles) which most CAD packages can read, however in my >experience >what the CAD folks are looking for are NURBS type surfaces which I've not seen >generated in vtk. Some CAD packages can drape NURBS surfaces on poly >meshes but >I've not had much luck with that personally. I've not seen any meshing >capabilities for FEA but I might be wrong here since I'm not real familiar >with >FEA. I'm fairly sure you can represent tets and hex volume meshes in vtk >but how >to do this from the CT data and whether these would be suitable for FEA >I'm not >sure. My coworkers tell me FEA meshing can be tricky business. It is possible >that I've missed some classes or that there are vtk user generated classes out >there that can handle these issues. Perhaps a search of the archives might >turn >something up. > >I hope folks can prove me wrong on a number of these statements as I'm looking >for some of these capabilities myself.......john > > > >From: "Ng Hong Wan" @public.kitware.com on 08/20/2002 >02:07 PM ZE8 > > > "Ng Hong Wan" > To: > @public.kitware.com Cc: (bcc: John > Anast-JM/PGI) > Subject: [vtkusers] CT - VOLUME - CAD > > > Sent > by: > vtkusers-admin@public.kitware.com > > 08/20/2002 02:07 > AM > >Hi, > >Is there a known approach to reconstruct a 3D volume model from CT using >VTKand >import it successfully into well known CAD modelers like Unigraphics, Pro E, >AutoCAD > >If not > >What abt a known approach toreconstruct a 3D volume model from CTusing VTKand >import it successfully into well knownFEA software like ABAQUS, ANSYS, >NASTRAN. _______________________________________________ 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 ted@caept.com Wed Aug 21 09:41:34 2002 From: ted@caept.com (Ted Christiansen) Date: Wed, 21 Aug 2002 10:41:34 +0200 Subject: [vtkusers] Need zoom window functionality. Has anyone implemented it? Message-ID: <3D63523E.3A417A57@caept.com> Hello, I need zoom window functionality and have been working on it using the suggestions from: http://public.kitware.com/pipermail/vtkusers/1999-July/001468.html with some success. I am still using vtk3.2. Is this part of vtk4.0 or has someone implemented this already? Ted From bertvansesamstraat@hotmail.com Wed Aug 21 09:50:49 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Wed, 21 Aug 2002 08:50:49 +0000 Subject: [vtkusers] Picking points? Message-ID: Dear all, My question is quite easy, I want to pick some points of an image. I do this using the following script: package require vtk package require vtkinteraction package require vtktesting # Start by loading some data. # vtkImageReader v16 v16 DebugOff v16 SetDataByteOrderToBigEndian v16 SetDataExtent 0 511 0 80 1 81 v16 SetFileName "dataInt81_81.raw" v16 SetDataOrigin 0 0 0 v16 SetFileDimensionality 3 v16 Update vtkImageShiftScale shiftScale shiftScale SetInput [v16 GetOutput] shiftScale SetShift 0 shiftScale SetScale 0.07 shiftScale SetOutputScalarTypeToUnsignedChar vtkImageActor ia ia SetInput [shiftScale GetOutput] ia SetZSlice 14 # Create the RenderWindow, Renderer and both Actors vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkPointPicker LocalPicker LocalPicker SetEndPickMethod HandleLocalPick LocalPicker SetTolerance 0.2 vtkRenderWindowInteractor LocalInteractor LocalInteractor SetRenderWindow renWin LocalInteractor SetLightFollowCamera 1 LocalInteractor SetPicker LocalPicker LocalInteractor Initialize # Add the actors to the renderer, set the background and size ren1 AddActor ia # render the image LocalInteractor AddObserver UserEvent {wm deiconify .vtkInteract} renWin Render set cam1 [ren1 GetActiveCamera] #ren1 ResetCameraClippingRange renWin Render # prevent the tk window from showing up then start the event loop wm withdraw . proc HandleLocalPick {} { set pid [LocalPicker GetPointId] puts "$pid" # Test the actor that was hit: depending on the # actor, select the point data from the part of # the pipeline that was used to produce the # actor. if { $pid >= 0 } { set pickPos [[LocalInteractor GetPicker] GetPickPosition] set xp [lindex $pickPos 0] set yp [lindex $pickPos 1] set zp [lindex $pickPos 2] puts "$xp $yp $zp " puts "picked" } } As fas as I understand the procedure you get the actor by $pid which can be used to get the actual pickpoints. I tried this script with several values of the tolerance but $pid stays -1. Can someone please help me? _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From bertvansesamstraat@hotmail.com Wed Aug 21 10:05:05 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Wed, 21 Aug 2002 09:05:05 +0000 Subject: [vtkusers] Disable mouse interactions in vtkImagePlaneWidget? Message-ID: Dear all, I'm using the ImagePlaneWidget.tcl example. In this example you can zoom in, rotate, translate and pick the planes. How can I disable some of these. I want f.e. to disable the zoom and rotate properties? More in detail: I want to fix the plane actor in space while I still want to be able to pick the different planes. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From dean.inglis@on.aibn.com Wed Aug 21 14:52:36 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Wed, 21 Aug 2002 09:52:36 -0400 Subject: [vtkusers] Disable mouse interactions in vtkImagePlaneWidget? Message-ID: Hi again, the simplest answer is you can't do this. Widgets, in general, maintain one or more actor instances, one or more picker instances, and a reference to a render window's vtkRenderWindowInteractor. The widgets 'listen' to the interactor's events and then respond to some of them (e.g., left mouse click) if the widget's picker determines that one of its internal actors has been picked. In the case of vtkImagePlaneWidget, zooming/rotating/translating is applied to all actors in a render window (not just the widget) via its render window interactor: in fact, zooming and translating are not internal capabilities of the widget. If what you want is to see one slice of a plane of data obtained through the vtkImagePlaneWidget, have a look at the code in /Hybrid/Testing/Cxx/ImagePlaneWidget.cxx: you can turn off the xy-plane widget (planeWidgetZ) and the output form the widget's internal vtkImageReslice remains in the second renderer. Dean From ted@caept.com Wed Aug 21 17:43:18 2002 From: ted@caept.com (Ted Christiansen) Date: Wed, 21 Aug 2002 18:43:18 +0200 Subject: [vtkusers] vtk3.2 statically linked in an ActiveX control - Failure when registering - help please Message-ID: <3D63C326.AC8F43C2@caept.com> Hello, I am developing an ActiveX control for use in a webpage. I would like to compile it using the static library version of vtk 3.2 as I dont want users to have to download the 8 MB DLL when I am only using a small portion of the functions in the vtklib.dll. I have solved the link and multiply defined symbol problems but regsvr32 fails when it tries to register the ActiveX control with this error message: LoadLibrary("fevisocx.ocx") failed - Invalid access to memory location. When I link it with the vtkdll.dll then it registers successfully. Any ideas as to what the cause could be? Ted From jeff@cdnorthamerica.com Wed Aug 21 17:51:54 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Wed, 21 Aug 2002 12:51:54 -0400 Subject: [vtkusers] vtk3.2 statically linked in an ActiveX control - Failure when registering - help please References: <3D63C326.AC8F43C2@caept.com> Message-ID: <3D63C52A.6040206@cdnorthamerica.com> Why not download the source and build the part of vtk that you use and then distribute that to your users? Ted Christiansen wrote: >Hello, > >I am developing an ActiveX control for use in a webpage. I would like >to compile it using the static library version of vtk 3.2 as I dont want >users to have to download the 8 MB DLL when I am only using a small >portion of the functions in the vtklib.dll. > >I have solved the link and multiply defined symbol problems but regsvr32 >fails when it tries to register the ActiveX control with this error >message: > >LoadLibrary("fevisocx.ocx") failed - Invalid access to memory location. > >When I link it with the vtkdll.dll then it registers successfully. > >Any ideas as to what the cause could be? > >Ted > >_______________________________________________ >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 > > > > -- Jeff Lee From bhiron@lsuhsc.edu Wed Aug 21 18:32:34 2002 From: bhiron@lsuhsc.edu (Budd Hirons) Date: Wed, 21 Aug 2002 12:32:34 -0500 Subject: [vtkusers] vtkNightlyJava broken In-Reply-To: <5.1.1.6.2.20020820225144.01e4aea0@pop.mail.yahoo.com> References: Message-ID: <5.1.1.6.0.20020821121103.00aa5890@lsumc-med-exch2.med.lsuhsc.edu> If you build the nightly from source instead of trying the binaries you can just do this, assuming you turn the VTK_WRAP_JAVA flag on in CMake ... and it would be a faster download if you run a local CVS client to keep up with the incremental changes in the source. To build the jar from the command prompt: > cd [CMakeDestination_VTKNightly]\java\vtk > javac *.* > cd .. > jar -cvf vtk.jar .\vtk\*.class Budd. At 10:57 PM 8/20/2002 -0400, you wrote: >Nightly Release Maintainers: > >vtkNightlyJava.exe does not include compiled Java classes, vtk.jar. It is >useless without it. Could you make sure that vtk.jar is getting included >in nightly releases? > >TIA, > >Jarek > > >_______________________________________________ >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 dharmendra@strandgenomics.com Wed Aug 21 18:45:57 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 21 Aug 2002 23:15:57 +0530 Subject: [vtkusers] (no subject) Message-ID: <5.1.1.6.0.20020821231430.00a733e8@mail.strandgenomics.com> I have a sphere and a cylinder . what i want is when i click on either the cylinder or sphere i want another window to open. How to achieve this kind of interaction. please help me thanks in advance. dharmendra From andresba@hotmail.com Wed Aug 21 20:27:26 2002 From: andresba@hotmail.com (Andres Barrera) Date: Wed, 21 Aug 2002 14:27:26 -0500 Subject: [vtkusers] Speed question Message-ID: Hello list, _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From dgobbi@imaging.robarts.ca Wed Aug 21 20:30:22 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Wed, 21 Aug 2002 15:30:22 -0400 (EDT) Subject: [vtkusers] Speed question In-Reply-To: Message-ID: On Wed, 21 Aug 2002, Andres Barrera wrote: > Hello list, Wow. That was one speedy question! (Apologies. My doctor told me to stop trying to be funny but sometimes I can't resist.) From andresba@hotmail.com Wed Aug 21 20:30:36 2002 From: andresba@hotmail.com (Andres Barrera) Date: Wed, 21 Aug 2002 14:30:36 -0500 Subject: [vtkusers] Speed question Message-ID: Hello list, I've done a VTK application where I display dome vtkActor s on my own window. I made my own user interactions functions, by geting mouse positions and everything else. Now: everything goes nice and fast on my computer: _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From andresba@hotmail.com Wed Aug 21 20:35:58 2002 From: andresba@hotmail.com (Andres Barrera) Date: Wed, 21 Aug 2002 14:35:58 -0500 Subject: [vtkusers] Speed question Message-ID: Hello list, I've done a VTK application where I display dome vtkActor s on my own window. I made my own user interactions functions, by geting mouse positions and everything else. Everything goes nice and fast on my computer: - Windows 2000, Pentium IV 2GH, 1Mb Ram, nVidia Quadro2 EX Now, when i run into a different computer - Windows 2000, Pentium IV 2GH, 1Mb Ram, Matrox Milenum 6450 Dual Head it is TOO SLOW. Why can that happen? Thank you in advace. Andres _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From dgobbi@imaging.robarts.ca Wed Aug 21 20:40:53 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Wed, 21 Aug 2002 15:40:53 -0400 (EDT) Subject: [vtkusers] Speed question In-Reply-To: Message-ID: Hi Andres, The speed difference is due almost entirely to the video card. The Matrox G450 and G550 cards are nowhere near as fast as the nVidia cards. The nVidia Quadro2 EX is a professional-level graphics card. There is no way that a consumer-level Matrox card can compete with it. Apologies again for the earlier reply to your incomplete message. - David On Wed, 21 Aug 2002, Andres Barrera wrote: > Hello list, > I've done a VTK application where I display dome vtkActor s on my own > window. I made my own user interactions functions, by geting mouse positions > and everything else. > > Everything goes nice and fast on my computer: > - Windows 2000, Pentium IV 2GH, 1Mb Ram, nVidia Quadro2 EX > Now, when i run into a different computer > - Windows 2000, Pentium IV 2GH, 1Mb Ram, Matrox Milenum 6450 Dual Head > > it is TOO SLOW. Why can that happen? > > Thank you in advace. > > Andres > > > _________________________________________________________________ > MSN Photos is the easiest way to share and print your photos: > http://photos.msn.com/support/worldwide.aspx > > _______________________________________________ > 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 dean.inglis@on.aibn.com Wed Aug 21 20:50:45 2002 From: dean.inglis@on.aibn.com (Dean Inglis) Date: Wed, 21 Aug 2002 15:50:45 -0400 Subject: [vtkusers] more vtkImagePlaneWidget enhancements Message-ID: Hi all, just can't seem to get enough lately... middle mouse button does pushing, spinning and rotating. There are now visible 'margins' on the slice plane: currently 5% of the in-plane x and y dimensions. Picking on the left or right margin rotates the plane around the local y-prime axis at plane centre. Similarly, picking on the top or bottom margin rotates the plane around the local x-prime axis at plane centre. Picking one of the four corners of the plane spins the plane around it's normal. Picking inside of the margins does a standard push along the current plane normal. ... AND NOW ... Holding the shift key and middle mouse picking the plane activates uniform scaling: mouse move up enlarges the plane while downwards shrinks it. Holding the control key and middle mouse picking the plane activates plane edge translation depending on which area of the margins is selected: 1) corners: edges that intersect at a corner are translated 2) edges: edges are translated 3) middle: whole plane is translated 1) and 2) are a really form of constrained 'scaling'. enjoy... Dean ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Dean Inglis, Ph.D. Center for Appendicular Magnetic Resonance Studies 25 Charlton Avenue East, Unit 610 Hamilton, ONT, L8N 1Y2 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ From David.Pont@ForestResearch.co.nz Wed Aug 21 22:12:16 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 22 Aug 2002 09:12:16 +1200 Subject: [vtkusers] Running out of file handles Message-ID: John, Thanks a lot for the info, I finally got past this problem. In fact I am running with vtk 3.1 (legacy app that I dont want to disturb) and UnregisterAllOutputs is not available. Further, after peeking at the latest code from the vtk CVS, I could not figure out how to get the same effect in 3.1 with public methods. So I connected my TIFFReader to a temp instance of vtkImageData, called Update, then copied its contents 'manually' (DeepCopy with some other bits) to a permanent vtkImageData (one per image) which acts as the start of my official pipeline. This effectively disconnected the TIFFReader from the pipeline, allowing me to delete it after input. Maybe there is a smarter way? I still dont fully understand all the workings of reference counting, although I learnt a bit more. I am not sure if using a volume approach would help with the file handle issue? Also, as my slices are not of regular spacing or size, and require individual transformations (rotation, translation) the only benefit of a volume (apart from one-shot input) would be as a handy 'array' for my set of slices. Still it is food for thought, I have never worked with volumes so that limits my ability to see how they could be useful... wheres my vtk book.... Thanks again Dave Pont |--------+----------------------------------> | | "John Biddiscombe" | | | | | | Sent by: | | | vtkusers-admin@public.ki| | | tware.com | | | | | | | | | 19/08/2002 20:42 | | | Please respond to "John | | | Biddiscombe" | | | | |--------+----------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: , | | cc: | | Subject: Re: [vtkusers] Running out of file handles | >------------------------------------------------------------------------------------------------------------| I noticed the other day that if you use a vtkBMPReader to load a file, the file is left open for the entire lifetime of the vtkBMPreader. I don't know if this is deliberate (so that you can tell when a file is changed and reload) or a bug. But if the same applies to a tiffreader, then your max files problem will manifest. loop over all 80 If you vtkTiffReader->Update() then mytiff[loop] = vtkTiffReader->GetOutput(); mytiff[loop]->Register(NULL); vtkTiffReader->UnregisterAllOutputs() vtkTiffReader->Delete() end loop the files should be closed after each read and you won't get the trouble. However, TiffReader does descend from ImageReader so why don't you just load all 80 into a single volume using a single TiffReader... JB ----- Original Message ----- From: To: Sent: Sunday, August 18, 2002 11:11 PM Subject: [vtkusers] Running out of file handles > > I am loading about 80 images from TIFF files, one vtkTIFFReader per image, > and I get an error after the maximum number of file handles is reached. I > am using Borland C++ Builder, which defines FOPEN_MAX 50. The images are of > cross sections cut from a tree, so form a kind of volume, with irregular > spacing. > I am more used to working with polydata, so images and volumes are new to > me. Does anyone have any tips on how to circumvent the limit on file > handles. I tried vtkTIFFReader->SetReleaseDataFlag( 1 ), Update, with no > change. Should I name/number the files to allow the TIFFReader to load them > as a sequence, or will the limit still apply? Or can I create a volume out > of the images in the first place and load that, although I think the > irregular spacing will be a problem with any volume based approach. > > regards > Dave Pont > > _______________________________________________ > 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 _______________________________________________ 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 heiland@ncsa.uiuc.edu Wed Aug 21 22:14:11 2002 From: heiland@ncsa.uiuc.edu (Randy Heiland) Date: Wed, 21 Aug 2002 16:14:11 -0500 Subject: [vtkusers] coloring glyphs Message-ID: <1020821161411.ZM1719@pecos.ncsa.uiuc.edu> I've got a POLYDATA file of N points used as input for a Glyph3D. I'd like to be able to color consecutive chunks of the glyphs (eg, first N/2 red, second N/2 green). Any easy solutions? thanks, Randy From galicjan@yahoo.com Wed Aug 21 23:06:11 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Wed, 21 Aug 2002 15:06:11 -0700 (PDT) Subject: [vtkusers] vtkNightlyJava broken In-Reply-To: <5.1.1.6.0.20020821121103.00aa5890@lsumc-med-exch2.med.lsuhsc.edu> Message-ID: <20020821220611.91771.qmail@web20904.mail.yahoo.com> --- Budd Hirons wrote: > If you build the nightly from source instead of trying the binaries you > can > just do this, assuming you turn the VTK_WRAP_JAVA flag on in CMake ... > and > it would be a faster download if you run a local CVS client to keep up > with > the incremental changes in the source. > > To build the jar from the command prompt: > > > cd [CMakeDestination_VTKNightly]\java\vtk > > javac *.* > > cd .. > > jar -cvf vtk.jar .\vtk\*.class Sorry for not being clear. My poit is that prebuild binaries for Windows are broken. vtkNightlyJava.exe does not include Java class binaries. It is not possible to correctly install VTK Java bindings from current/recent vtkNightlyJava.exe. You are absolutely correct about building Java binding from source. Building from source gives you number of advantages, however, it requires time, specific knowledge of setting up and running build environment, and reasonably fast machine. Building from source is not something a typical end user would be able or willing to do. One of my ideas was to provide a plugins to access some of the VTK functionality from ImageJ (http://sourceforge.net/projects/ij-plugins/). In particular some functionality, like vtkImagePlaneWidget, that is not available in VTK 4.0 release (Java bindings install perfectly fine here for this release). Nighlty binaries provide a convenient way get recent release without a need of going through a trouble of compiling. It is great that VTK folks provide this convenience. I am just trying to point out to Nightly Maintainers that one piece is broken to the point it that is cannot be used at all. Jarek > > > Budd. > > > At 10:57 PM 8/20/2002 -0400, you wrote: > >Nightly Release Maintainers: > > > >vtkNightlyJava.exe does not include compiled Java classes, vtk.jar. It > is > >useless without it. Could you make sure that vtk.jar is getting > included > >in nightly releases? > > > >TIA, > > > >Jarek > > > > > >_______________________________________________ > >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 > __________________________________________________ Do You Yahoo!? HotJobs - Search Thousands of New Jobs http://www.hotjobs.com From forzakim@yahoo.co.jp Thu Aug 22 02:43:16 2002 From: forzakim@yahoo.co.jp (forzakim) Date: Thu, 22 Aug 2002 10:43:16 +0900 (JST) Subject: [vtkusers] (no subject) Message-ID: <20020822014316.55168.qmail@web704.mail.yahoo.co.jp> Hello all, I create a vtkPolyData object by manual operation and am going to create a polyline. I want to add a cell(LINE) periodically. However, nothing is displayed. In initialization vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); vtkPoints *polyPoints = vtkPoints::New(); vtkCellArray *polyCells = vtkCellArray::New(); vtkPolyData *polyline = vtkPolyData::New(); polyline->SetPoints(polyPoints); polyline->SetLines(polyCells); vtkPolyDataMapper *polyMapper = vtkPolyDataMapper::New(); polyMapper->SetInput(polyline); vtkActor *polyActor = vtkActor::New(); polyActor->SetMapper(polyMapper); ren->AddActor(polyActor); In every scan vtkPoints *Points = (vtkPoints*)(polyline->GetPoints()); vtkCellArray *Cells = (vtkCellArray*)(polyline->GetLines()); vtkIdType ptIds[2], cellId; ptIds[0] = Points->InsertNextPoint(&polydata[pt][0]); ptIds[1] = Points->InsertNextPoint(&polydata[pt+1][0]); cellId = Cells->InsertNextCell(2, ptIds); polyline->Update(); pt++; Any help will be appreciated. Regards. forzakim __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ From yjin76@hotmail.com Thu Aug 22 02:47:04 2002 From: yjin76@hotmail.com (Yuan Jin) Date: Thu, 22 Aug 2002 01:47:04 +0000 Subject: [vtkusers] Piecewise Function for Volume Rendering Message-ID: Hi all, Does anyone have experience in setting up the piecewise function for the volume rendering? ie. which points should be added to the piecewise function? Is the histogram for the 3D image helpful? For instance, in the example: VolCutKnee.py white_tfun = vtkPiecewiseFunction() white_tfun.AddPoint(0,1.0) white_tfun.AddPoint(255,1.0) tfun = vtkPiecewiseFunction() tfun.AddPoint(70,0.0) tfun.AddPoint(80,1.0) vol_prop = vtkVolumeProperty() vol_prop.SetColor(white_tfun) vol_prop.SetScalarOpacity(tfun) How to find out tfun.AddPoint(70,0.0) and tfun.AddPoint(80,1.0) ? Thanks a lot, Yuan _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From forzakim@yahoo.co.jp Thu Aug 22 02:49:01 2002 From: forzakim@yahoo.co.jp (forzakim) Date: Thu, 22 Aug 2002 10:49:01 +0900 (JST) Subject: [vtkusers] Addition of polylines Message-ID: <20020822014901.55842.qmail@web704.mail.yahoo.co.jp> Hello all, I create a vtkPolyData object by manual operation and am going to create a polyline. I want to add a cell(LINE) periodically. However, nothing is displayed. In initialization vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); vtkPoints *polyPoints = vtkPoints::New(); vtkCellArray *polyCells = vtkCellArray::New(); vtkPolyData *polyline = vtkPolyData::New(); polyline->SetPoints(polyPoints); polyline->SetLines(polyCells); vtkPolyDataMapper *polyMapper = vtkPolyDataMapper::New(); polyMapper->SetInput(polyline); vtkActor *polyActor = vtkActor::New(); polyActor->SetMapper(polyMapper); ren->AddActor(polyActor); In every scan vtkPoints *Points = (vtkPoints*)(polyline->GetPoints()); vtkCellArray *Cells = (vtkCellArray*)(polyline->GetLines()); vtkIdType ptIds[2], cellId; ptIds[0] = Points->InsertNextPoint(&polydata[pt][0]); ptIds[1] = Points->InsertNextPoint(&polydata[pt+1][0]); cellId = Cells->InsertNextCell(2, ptIds); polyline->Update(); pt++; Any help will be appreciated. Regards. forzakim __________________________________________________ Do You Yahoo!? Yahoo! BB is Broadband by Yahoo! http://bb.yahoo.co.jp/ From poecher@icom-consulting.de Thu Aug 22 09:41:28 2002 From: poecher@icom-consulting.de (Christian Poecher) Date: Thu, 22 Aug 2002 10:41:28 +0200 Subject: [vtkusers] coloring glyphs References: <1020821161411.ZM1719@pecos.ncsa.uiuc.edu> Message-ID: <3D64A3B8.2080201@icom-consulting.de> I would iterate over the points, make a new data object with a scalar and the same topology as your polydata. Then you can use this data as input for vtkGlyph3D and interpret the scalar data with a fitting LookupTable as color. chris Randy Heiland wrote: > I've got a POLYDATA file of N points used as input for a Glyph3D. I'd like to > be able to color consecutive chunks of the glyphs (eg, first N/2 red, second > N/2 green). Any easy solutions? -- ________________________________________________________________________ Christian Poecher mailto:poecher@icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From Sammy" Hi~ Vtk Users~

I'm developing a volume-rendering tool using normal CT images.
In the VTK UserˇŻs Guide, Ray Casting method is described in detail but 2D texture mapping approach is not good.

I use ˇ°vtkVolumeTextureMapper2Dˇ± in Visual C++.
When I got the result, the rendered image is so slow to show in different directions.
If I make it fast, what functions do I use?
I want to add some color displaying 3D images. How can I do?
In addition, IˇŻm just beginner in vtk so any functions will be great for me.

If it is possible, attach sample C++ code.
Hope to your prompt reply :)



"żě¸® ŔÎĹÍłÝ, Daum" http://www.daum.net
şü¸Ł´Ů! ĆíÇĎ´Ů! Daum¸Ţ˝ĹŔú
¸ĹŔϸĹŔĎ ľ˛°í °č˝ĂÁŇ?
DaumżŁĹÍÄ«µĺ
DaumȸżřŔÇ ÇĘĽöǰ! żÂżŔÇÁ ĂÖ°íŔÇ ÇýĹĂŔ» ´©¸®ŔÚ!
From p.cook@cs.ucl.ac.uk Thu Aug 22 10:31:42 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 22 Aug 2002 10:31:42 +0100 Subject: [vtkusers] coloring glyphs In-Reply-To: <20020822014502.C0DB81AB4F@public.kitware.com> References: <20020822014502.C0DB81AB4F@public.kitware.com> Message-ID: <1030008703.20743.4.camel@maraca.cs.ucl.ac.uk> > I've got a POLYDATA file of N points used as input for a Glyph3D. I'd like to > be able to color consecutive chunks of the glyphs (eg, first N/2 red, second > N/2 green). Any easy solutions? > If you associate scalars with the polydata points, these can be used to color the glyphs. Call glyph->SetColorModeToColorByScalar(); To tell the glyph to use scalar data. Then make a vtkLookupTable that will map the scalars to the desired colours. Phil From affable@hd2.dot.net.in Thu Aug 22 11:28:11 2002 From: affable@hd2.dot.net.in (cspl) Date: Thu, 22 Aug 2002 15:58:11 +0530 Subject: [vtkusers] Sobel effect on image in buffer Message-ID: <011301c249c6$b653e960$01000001@macinfo.net> This is a multi-part message in MIME format. ------=_NextPart_000_0110_01C249F4.B72B20A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Dear Friends, I am facing problem with sobelimagefilter while using buffer.I got the = o/p using files.But I am using buffer I got exception. I am not export the buffer.I have written code as follows.Please give me = suggesttion. I got exception at export. Volume* CIPServerDoc::SobelEffect(Volume *vol) { if(vol=3D=3DNULL) { AfxMessageBox("volume is null"); return vol; } unsigned float *temp =3D new unsigned float[vol->width * vol->height * = vol->depth]; temp =3D (unsigned float *) vol->Mem; =20 vtkImageImport *importer =3D vtkImageImport::New(); importer->SetDataExtent(1,vol->width,1,vol->height,1,vol->depth); importer->SetWholeExtent(1,vol->width,1,vol->height,1,vol->depth); importer->SetDataScalarTypeToFloat(); importer->SetImportVoidPointer(temp); =20 AfxMessageBox("after image import"); vtkImageSobel3D *sobel=3DvtkImageSobel3D::New(); sobel->SetInput(importer->GetOutput()); sobel->ReleaseDataFlagOff(); =20 AfxMessageBox("after sobel");=20 vtkImageExport *Exporter =3D vtkImageExport::New(); Exporter->SetInput(sobel->GetOutput()); Exporter->Export(temp); //got exception =20 AfxMessageBox("before assign"); vol->Mem =3Dtemp; return vol; } Regards, Ramakrishna ------=_NextPart_000_0110_01C249F4.B72B20A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Dear Friends,
 
I am facing problem with = sobelimagefilter while=20 using buffer.I got the o/p using files.But I am using buffer I got=20 exception.
I am not export the buffer.I have written code as = follows.Please=20 give me suggesttion.
I got exception at export.
 

Volume* CIPServerDoc::SobelEffect(Volume *vol)
{
 
 if(vol=3D=3DNULL)
 {
  AfxMessageBox("vol= ume is=20 null");
  return vol;
 }
 
 unsigned float *temp =3D new unsigned float[vol->width *=20 vol->height * vol->depth];
 temp =3D (unsigned float *)=20 vol->Mem;
 
 vtkImageImport *importer =3D=20 vtkImageImport::New();
 importer->SetDataExtent(1,vol->widt= h,1,vol->height,1,vol->depth);
 importer->SetWholeExtent= (1,vol->width,1,vol->height,1,vol->depth);
 importer->= ;SetDataScalarTypeToFloat();
 importer->SetImportVoidPointer(t= emp);
 
 AfxMessageBox("after=20 image import");
 vtkImageSobel3D=20 *sobel=3DvtkImageSobel3D::New();
 sobel->SetInput(importer->= ;GetOutput());
 sobel->ReleaseDataFlagOff();
 
&nbs= p;AfxMessageBox("after=20 sobel"); 
 
 vtkImageExport *Exporter =3D=20 vtkImageExport::New();
 Exporter->SetInput(sobel->GetOutput= ());
 Exporter->Export(temp);     &nb= sp;         =20 //got exception
 
 AfxMessageBox("before=20 assign");
 vol->Mem  =3Dtemp;
 return vol;
 
}
Regards,
Ramakrishna
------=_NextPart_000_0110_01C249F4.B72B20A0-- From abert@mauriziano.it Thu Aug 22 12:35:44 2002 From: abert@mauriziano.it (Alberto Bert) Date: Thu, 22 Aug 2002 13:35:44 +0200 Subject: [vtkusers] help filtering using c++ Message-ID: <20020822113544.GD1299@rad7w026.mauriziano.it> Hi all, I'm starting to practice a little with vtk (2 days) and this is the first message to the list. I need to work in c++ and unfortunately most of eaxamples are in tcl or python only, any suggestions? My problem is that I cannot filter a vtkImageData succesfully. Without filtering, I can extract a contour from vol and represent it. The filtering (say vtkImageGaussianSmooth) seems to change the nature of the image. I think I forget something but I cannot find examples in c++ I know that the question probably is stupid, sorry, Alberto Here is the code: //Generation of the 3D vtkImageData vol // Gaussian smoothing vtkImageGaussianSmooth *smooth = vtkImageGaussianSmooth::New(); smooth->SetInput(vol); vtkContourFilter *contour = vtkContourFilter::New(); //contour->SetInput(vol); contour->SetInput(smooth); contour->SetValue(0,0.5); vtkPolyDataMapper *volMapper = vtkPolyDataMapper::New(); volMapper->SetInput(contour->GetOutput()); volMapper->ScalarVisibilityOff(); vtkActor *volActor = vtkActor::New(); volActor->SetMapper(volMapper); renderer->AddActor(volActor); renderer->SetBackground(1,1,1); renWin->SetSize(500,500); //// interact with data renWin->Render(); // iren->Start(); // // Clean up renderer->Delete(); renWin->Delete(); iren->Delete(); vol->Delete(); scalars->Delete(); contour->Delete(); volMapper->Delete(); volActor->Delete(); smooth->Delete(); From nundys@mac.com Wed Aug 21 22:22:58 2002 From: nundys@mac.com (nundys@mac.com) Date: Wed, 21 Aug 2002 17:22:58 -0400 Subject: [vtkusers] vtk on Mac OS X 10.2 and changes posted to CVS? Message-ID: <2A601710-B54C-11D6-B693-000393B290A0@mac.com> Hello, 1) I have successfully used vtk on Mac OS X 10.1 for some time now and am very happy with it. I have tried to compile it on 10.2 (Jaguar) but am having trouble compiling cmake with gcc 3.1. Has anyone else had any success? 2) The changes posted by Raphael Sebbe:- http://public.kitware.com/pipermail/vtkusers/2002-July/012437.html are essential for an OS X/Carbon compile but haven't found their way into the CVS source tree yet. Thanks, Surajit Nundy From zhou@isg.cs.uni-magdeburg.de Thu Aug 22 15:15:48 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Thu, 22 Aug 2002 16:15:48 +0200 Subject: [vtkusers] vtk tcl examples cannot be executed successfully. Message-ID: <3D650E34.13724.189B204@localhost> hi, vtkusers, I compiled the vtk4.0 with the option to tcl successfully. And I can run my own vtk c++ applications. But I can not run tcl examples. When I run tcl examples, the message " can't find package vtk while executing "package require vtk" " always appeared. Does anyone know how to solve this problem? Thank you very much. Best regards, jianlong From anast.jm@pg.com Thu Aug 22 15:18:21 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 22 Aug 2002 10:18:21 -0400 Subject: [vtkusers] Piecewise Function for Volume Rendering Message-ID: Yuan, This is always a tough one. Every volume is different it seems so defining the values can take some work. Most programs use interactive adjustment of the point position and value to get it right, however there is not a standard "interactor" implemented in vtk. I've always wished for a vtkTransferFunctionWidget! In tcl you can hook up some simple sliders to change the values but its a bit of a pain and not as flexible as sliding points and values around on a graph. I've had in the back of my mind to build an interface in tcl by picking/moving points in a 2D render window but haven't got to it yet. To see a nice implementation of interactivity in the setup of the opacity, color and gradient transfer functions download the trial version of VolView from the Kitware web site. Certainly examining the histogram range and shape could lead to to some good estimates of the transfer functions but its typically non-linear and would take some extra work to get it just right. (I think transfer functions are like art, a matter of taste to some)...certainly possible though. It all really depends on what you want to emphasize, which is why this is often done interactively......john Internet Mail Message Received from host: public.kitware.com [24.97.130.19] From: "Yuan Jin" @public.kitware.com on 08/22/2002 01:47 AM GMT "Yuan Jin" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Piecewise Function for Volume Rendering Sent by: vtkusers-admin@public.kitware.com 08/21/2002 09:47 PM Hi all, Does anyone have experience in setting up the piecewise function for the volume rendering? ie. which points should be added to the piecewise function? Is the histogram for the 3D image helpful? For instance, in the example: VolCutKnee.py white_tfun = vtkPiecewiseFunction() white_tfun.AddPoint(0,1.0) white_tfun.AddPoint(255,1.0) tfun = vtkPiecewiseFunction() tfun.AddPoint(70,0.0) tfun.AddPoint(80,1.0) vol_prop = vtkVolumeProperty() vol_prop.SetColor(white_tfun) vol_prop.SetScalarOpacity(tfun) How to find out tfun.AddPoint(70,0.0) and tfun.AddPoint(80,1.0) ? Thanks a lot, Yuan _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx _______________________________________________ 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@pg.com Thu Aug 22 15:32:13 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 22 Aug 2002 10:32:13 -0400 Subject: [vtkusers] CVS Build error with vtkVolumeProVG500Mapper Message-ID: Getting errors with yesterdays and todays CVS build on WinNT - VC++6. The nightly dashboard looked okay for this build ....fyi --------------------Configuration: vtkRendering - Win32 Release-------------------- Compiling... vtkOOGLExporter.cxx vtkOpenGLVolumeProVG500Mapper.cxx vtkVolumeProMapper.cxx vtkVolumeProVG500Mapper.cxx vtkRenderingInstantiator6.cxx vtkRenderingInstantiator7.cxx Generating Code... Linking... vtkVolumeProVG500Mapper.obj : error LNK2005: "class vtkObject * __cdecl vtkInstantiatorvtkVolumeProMapperNew(void)" (?vtkInstantiatorvtkVolumeProMapperNew@@YAPAVvtkObject@@XZ) already defined in vtkVolumeProMapper.obj vtkVolumeProVG500Mapper.obj : warning LNK4006: "class vtkObject * __cdecl vtkInstantiatorvtkVolumeProMapperNew(void)" (?vtkInstantiatorvtkVolumeProMapperNew@@YAPAVvtkObject@@XZ) already defined in vtkVolumeProMapper.obj; second definition ignored Creating library P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.lib and object P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.exp P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. ALL_BUILD - 2 error(s), 1 warning(s) From abert@mauriziano.it Thu Aug 22 16:11:34 2002 From: abert@mauriziano.it (Alberto Bert) Date: Thu, 22 Aug 2002 17:11:34 +0200 Subject: [vtkusers] help filtering using c++ In-Reply-To: <20020822113544.GD1299@rad7w026.mauriziano.it> References: <20020822113544.GD1299@rad7w026.mauriziano.it> Message-ID: <20020822151134.GA1939@rad7w026.mauriziano.it> Ops, solved. The problem was that you have to get the ImageData through GetOutput. Alberto On Thu, Aug 22, 2002 at 01:35:44PM +0200, Alberto Bert wrote: > Hi all, > > I'm starting to practice a little with vtk (2 days) and this is the > first message to the list. > > I need to work in c++ and unfortunately most of eaxamples are in tcl or > python only, any suggestions? > > My problem is that I cannot filter a vtkImageData succesfully. > > Without filtering, I can extract a contour from vol and represent it. The filtering (say vtkImageGaussianSmooth) > seems to change the nature of the image. I think I forget something but I cannot find examples in c++ > > I know that the question probably is stupid, sorry, > Alberto > > Here is the code: > > //Generation of the 3D vtkImageData vol > > // Gaussian smoothing > vtkImageGaussianSmooth *smooth = vtkImageGaussianSmooth::New(); > smooth->SetInput(vol); > > vtkContourFilter *contour = vtkContourFilter::New(); > //contour->SetInput(vol); > contour->SetInput(smooth); > contour->SetValue(0,0.5); > > vtkPolyDataMapper *volMapper = vtkPolyDataMapper::New(); > volMapper->SetInput(contour->GetOutput()); > volMapper->ScalarVisibilityOff(); > vtkActor *volActor = vtkActor::New(); > volActor->SetMapper(volMapper); > > renderer->AddActor(volActor); > renderer->SetBackground(1,1,1); > renWin->SetSize(500,500); > //// interact with data > renWin->Render(); > // > iren->Start(); > // > // Clean up > renderer->Delete(); > renWin->Delete(); > iren->Delete(); > vol->Delete(); > scalars->Delete(); > contour->Delete(); > volMapper->Delete(); > volActor->Delete(); > smooth->Delete(); > _______________________________________________ > 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 marcio.mathias@edb.ericsson.se Thu Aug 22 16:45:53 2002 From: marcio.mathias@edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Thu, 22 Aug 2002 12:45:53 -0300 Subject: [vtkusers] Vector range Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C249F2.E9B64006 Content-Type: text/plain; charset="iso-8859-1" Hi, I need to extract maximum and minimum values from a vector dataset. For scalar data the method GetScalarRange is available but I did not find one suitable for vector data Does someone know how I can get the range of vector data? /Marcio. ------_=_NextPart_001_01C249F2.E9B64006 Content-Type: text/html; charset="iso-8859-1"

Hi,

I need to extract maximum and minimum values from a vector dataset. For scalar data the method GetScalarRange is available but I did not find one suitable for vector data

Does someone know how I can get the range of  vector data?

/Marcio.

------_=_NextPart_001_01C249F2.E9B64006-- From yjin76@hotmail.com Thu Aug 22 17:17:56 2002 From: yjin76@hotmail.com (Yuan Jin) Date: Thu, 22 Aug 2002 16:17:56 +0000 Subject: [vtkusers] Piecewise Function for Volume Rendering Message-ID: Hi John, Actually, I have developed such a vtkTransferFunctionWidget in TkInter, but I still need to know the optimal piecewise function like the one in volcutknee.py to speed up the setup of the function, therefore, I guess there are some ways to do it. Thanks for your help Yuan >From: anast.jm@pg.com >To: vtkusers@public.kitware.com >Subject: Re: [vtkusers] Piecewise Function for Volume Rendering >Date: Thu, 22 Aug 2002 10:18:21 -0400 > > >Yuan, > >This is always a tough one. Every volume is different it seems so defining >the >values can take some work. Most programs use interactive adjustment of the >point >position and value to get it right, however there is not a standard >"interactor" >implemented in vtk. I've always wished for a vtkTransferFunctionWidget! In >tcl >you can hook up some simple sliders to change the values but its a bit of a >pain >and not as flexible as sliding points and values around on a graph. I've >had in >the back of my mind to build an interface in tcl by picking/moving points >in a >2D render window but haven't got to it yet. To see a nice implementation of >interactivity in the setup of the opacity, color and gradient transfer >functions >download the trial version of VolView from the Kitware web site. > >Certainly examining the histogram range and shape could lead to to some >good >estimates of the transfer functions but its typically non-linear and would >take >some extra work to get it just right. (I think transfer functions are like >art, >a matter of taste to some)...certainly possible though. It all really >depends on >what you want to emphasize, which is why this is often done >interactively......john > > > > > > Internet Mail Message > Received from host: public.kitware.com > [24.97.130.19] > > > >From: "Yuan Jin" @public.kitware.com on 08/22/2002 >01:47 AM >GMT > > "Yuan Jin" To: >vtkusers@public.kitware.com > @public.kitware.com Cc: (bcc: John >Anast-JM/PGI) > Subject: [vtkusers] >Piecewise Function for > Volume Rendering > Sent by: > vtkusers-admin@public.kitware.com > 08/21/2002 09:47 PM > > > > > > >Hi all, > >Does anyone have experience in setting up the piecewise function for the >volume rendering? ie. which points should be added to the piecewise >function? Is the histogram for the 3D image helpful? > >For instance, in the example: VolCutKnee.py > >white_tfun = vtkPiecewiseFunction() >white_tfun.AddPoint(0,1.0) >white_tfun.AddPoint(255,1.0) >tfun = vtkPiecewiseFunction() >tfun.AddPoint(70,0.0) >tfun.AddPoint(80,1.0) >vol_prop = vtkVolumeProperty() >vol_prop.SetColor(white_tfun) >vol_prop.SetScalarOpacity(tfun) > >How to find out tfun.AddPoint(70,0.0) and tfun.AddPoint(80,1.0) ? > >Thanks a lot, > >Yuan > > > >_________________________________________________________________ >MSN Photos is the easiest way to share and print your photos: >http://photos.msn.com/support/worldwide.aspx > >_______________________________________________ >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 > > > >_______________________________________________ >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 _________________________________________________________________ Join the world’s largest e-mail service with MSN Hotmail. http://www.hotmail.com From ted@caept.com Thu Aug 22 17:34:35 2002 From: ted@caept.com (Ted Christiansen) Date: Thu, 22 Aug 2002 18:34:35 +0200 Subject: [vtkusers] Problem with zoom window code ported from TCL to C++ (from vtk3.2) Message-ID: <3D65129B.2253B864@caept.com> --------------7D6AF7FE9F17250A27B11470 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hello, I rewrote the code for zoom window from the TKinteractor.tcl (below). It works most of the time but if I try to zoom in to a smaller feature then it doesnt center the model as expected. Has anyone else had this problem, and if so what is the fix? A sample application to test is available at http://www.caept.com/vtk/test.exe Using the zoom window toolbar button, try zooming in on the top left corner of the block. It will zoom in but the model will only show in the top right corner of the view not at all centered as expected. Your help is appreciated. Ted class CFEvisGLView { // zoom window void DoZoomWindow(CPoint point); CPoint m_startdrag; CRect m_previous; CRect m_current; BOOL m_dragging; }; ///////////////////////////////////////////////////////////////////////////// // Zoom window // http://public.kitware.com/pipermail/vtkusers/2000-January/003119.html // From TCL implementation: Tkinteractor.tcl ///////////////////////////////////////////////////////////////////////////// void CFEvisGLView::DoZoomWindow(CPoint point) { CRect viewdims; CPoint zoomboxcenter; vtkCamera *pCam = Renderer->GetActiveCamera(); // get view dimensions GetClientRect(&viewdims); // get box center point in pixels zoomboxcenter = m_current.CenterPoint(); // correct // zoomboxcenter.y = viewdims.CenterPoint().y - zoomboxcenter.y; // Convert the focal point to a display coordinate in order to get the // depth of the focal point in display units double focalpoint[3]; pCam->GetFocalPoint(focalpoint); Renderer->SetWorldPoint(focalpoint[0], focalpoint[1], focalpoint[2], 1.0); Renderer->WorldToDisplay(); double displaypoint[3]; Renderer->GetDisplayPoint(displaypoint); double focaldepth = displaypoint[2]; // Convert the position of the camera to a display coordinate in order // to get the depth of the camera in display coordinates. Note this is // a negative number (behind the near clipping plane of 0) but it works // ok anyway double camposition[3]; pCam->GetPosition(camposition[0], camposition[1], camposition[2]); Renderer->SetWorldPoint(camposition[0], camposition[1], camposition[2], 1.0); Renderer->WorldToDisplay(); Renderer->GetDisplayPoint(displaypoint); double positiondepth = displaypoint[2]; // Find out the world position of where our new focal point should // be - it will be at the center of the box, back at the same focal depth // Don't actually set it now - we need to do all our computations before // we modify the camera Renderer->SetDisplayPoint(zoomboxcenter.x, zoomboxcenter.y, focaldepth); Renderer->DisplayToWorld(); float newfocalpoint[4]; Renderer->GetWorldPoint(newfocalpoint); if (newfocalpoint[3] != 0.0) { newfocalpoint[0] = newfocalpoint[0] / newfocalpoint[3]; newfocalpoint[1] = newfocalpoint[1] / newfocalpoint[3]; newfocalpoint[2] = newfocalpoint[2] / newfocalpoint[3]; } // Find out where the new camera position will be - at the center of // the rubber band box at the position depth. Don't set it yet... Renderer->SetDisplayPoint(zoomboxcenter.x, zoomboxcenter.y, positiondepth); Renderer->DisplayToWorld(); float newposition[4]; Renderer->GetWorldPoint(newposition); if (newposition[3] != 0.0) { newposition[0] = newposition[0] / newposition[3]; newposition[1] = newposition[1] / newposition[3]; newposition[2] = newposition[2] / newposition[3]; } // We figured out how to position the camera to be centered, now we // need to "zoom". In parallel, this is simple since we only need to // change our parallel scale to encompass the entire y range of the // rubber band box. In perspective, we assume the box is drawn on the // near plane - this means that it is not possible that someone can // draw a rubber band box around a nearby object and dolly past it. It // also means that you won't get very close to distance objects - but that // seems better than getting lost. ASSERT(pCam->GetParallelProjection() == TRUE); // the new scale is just based on the y size of the rubber band box // compared to the y size of the window double newscale = pCam->GetParallelScale(); newscale = newscale * m_current.Width() / viewdims.Width(); TRACE("CFEvisGLView::DoZoomWindow, newscale=%f\n", newscale); // now we can actually modify the camera pCam->SetFocalPoint(newfocalpoint[0], newfocalpoint[1], newfocalpoint[2]); pCam->SetPosition(newposition[0], newposition[1], newposition[2]); pCam->SetParallelScale(newscale); // redraw thus erasing rubberbanded box Invalidate(FALSE); } --------------7D6AF7FE9F17250A27B11470 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hello,

I rewrote the code for zoom window from the TKinteractor.tcl (below).  It works most of the time but if I try to zoom in to a smaller feature then it doesnt center the model as expected.  Has anyone else had this problem, and if so what is the fix?

A sample application to test is available at http://www.caept.com/vtk/test.exe

Using the zoom window toolbar button, try zooming in on the top left corner of the block.  It will zoom in but the model will only show in the top right corner of the view not at all centered as expected.

Your help is appreciated.

Ted

class CFEvisGLView
{

<snip>
 // zoom window
 void DoZoomWindow(CPoint point);
 CPoint    m_startdrag;
 CRect    m_previous;
 CRect    m_current;
 BOOL    m_dragging;
</snip>
};
 

/////////////////////////////////////////////////////////////////////////////
// Zoom window
// http://public.kitware.com/pipermail/vtkusers/2000-January/003119.html
// From TCL implementation: Tkinteractor.tcl
/////////////////////////////////////////////////////////////////////////////
void CFEvisGLView::DoZoomWindow(CPoint point)
{
 CRect viewdims;
 CPoint zoomboxcenter;

 vtkCamera *pCam = Renderer->GetActiveCamera();

 // get view dimensions
 GetClientRect(&viewdims);

 // get box center point in pixels
 zoomboxcenter = m_current.CenterPoint();
 // correct
 // zoomboxcenter.y = viewdims.CenterPoint().y - zoomboxcenter.y;
 
    // Convert the focal point to a display coordinate in order to get the
    // depth of the focal point in display units
 double focalpoint[3];
 pCam->GetFocalPoint(focalpoint);
 Renderer->SetWorldPoint(focalpoint[0], focalpoint[1], focalpoint[2], 1.0);
    Renderer->WorldToDisplay();
    double displaypoint[3];
 Renderer->GetDisplayPoint(displaypoint);
 double focaldepth = displaypoint[2];
 
 

    // Convert the position of the camera to a display coordinate in order
    // to get the depth of the camera in display coordinates. Note this is
    // a negative number (behind the near clipping plane of 0) but it works
    // ok anyway
 double camposition[3];
 pCam->GetPosition(camposition[0], camposition[1], camposition[2]);
 Renderer->SetWorldPoint(camposition[0], camposition[1], camposition[2], 1.0);
    Renderer->WorldToDisplay();
 Renderer->GetDisplayPoint(displaypoint);
 double positiondepth = displaypoint[2];
 

    // Find out the world position of where our new focal point should
    // be - it will be at the center of the box, back at the same focal depth
    // Don't actually set it now - we need to do all our computations before
    // we modify the camera
 Renderer->SetDisplayPoint(zoomboxcenter.x, zoomboxcenter.y, focaldepth);
 Renderer->DisplayToWorld();
 float newfocalpoint[4];
 Renderer->GetWorldPoint(newfocalpoint);
 if (newfocalpoint[3] != 0.0) {
  newfocalpoint[0] = newfocalpoint[0] / newfocalpoint[3];
  newfocalpoint[1] = newfocalpoint[1] / newfocalpoint[3];
  newfocalpoint[2] = newfocalpoint[2] / newfocalpoint[3];
 }

    // Find out where the new camera position will be - at the center of
    // the rubber band box at the position depth. Don't set it yet...
    Renderer->SetDisplayPoint(zoomboxcenter.x, zoomboxcenter.y, positiondepth);
 Renderer->DisplayToWorld();
 float newposition[4];
 Renderer->GetWorldPoint(newposition);
 if (newposition[3] != 0.0) {
  newposition[0] = newposition[0] / newposition[3];
  newposition[1] = newposition[1] / newposition[3];
  newposition[2] = newposition[2] / newposition[3];
 }

    // We figured out how to position the camera to be centered, now we
    // need to "zoom". In parallel, this is simple since we only need to
    // change our parallel scale to encompass the entire y range of the
    // rubber band box. In perspective, we assume the box is drawn on the
    // near plane - this means that it is not possible that someone can
    // draw a rubber band box around a nearby object and dolly past it. It
    // also means that you won't get very close to distance objects - but that
    // seems better than getting lost.
 ASSERT(pCam->GetParallelProjection() == TRUE);
 // the new scale is just based on the y size of the rubber band box
 // compared to the y size of the window
 double newscale = pCam->GetParallelScale();
 newscale = newscale * m_current.Width() / viewdims.Width();
 TRACE("CFEvisGLView::DoZoomWindow, newscale=%f\n", newscale);

 // now we can actually modify the camera
 pCam->SetFocalPoint(newfocalpoint[0], newfocalpoint[1], newfocalpoint[2]);
 pCam->SetPosition(newposition[0], newposition[1], newposition[2]);
 pCam->SetParallelScale(newscale);

 // redraw thus erasing rubberbanded box
 Invalidate(FALSE);
}
  --------------7D6AF7FE9F17250A27B11470-- From cnavarro@ncsa.uiuc.edu Thu Aug 22 21:29:30 2002 From: cnavarro@ncsa.uiuc.edu (Christopher Navarro) Date: Thu, 22 Aug 2002 15:29:30 -0500 (CDT) Subject: [vtkusers] vtkIntArray -> GetValue Message-ID: Are there any known problems with the 4.0 build of vtkIntArray and obtaining values by id? I am using java/vtk built on redhat 7.3 and ocassionally my program crashes with the error log stating that an exception occurred at vtk.vtkIntArray.GetValue() Also, the crash normally occurs after a successful run or a few successful runs. It is always the same data which eliminates ambiguities between datasets. Any ideas as to locating the error? Thanks. -chris From ystarrev@uwo.ca Fri Aug 23 02:51:16 2002 From: ystarrev@uwo.ca (Yves Starreveld) Date: Thu, 22 Aug 2002 21:51:16 -0400 Subject: [vtkusers] vtk on Mac OS X 10.2 and changes posted to CVS? In-Reply-To: <2A601710-B54C-11D6-B693-000393B290A0@mac.com> Message-ID: Hi, Surajeet, I have not received 10.2 yet, but reports from our correspondent in Norway indicate successful builds. What problems are you encountering? Yves On Wednesday, August 21, 2002, at 05:22 PM, nundys@mac.com wrote: > Hello, > 1) I have successfully used vtk on Mac OS X 10.1 for some time now > and am very happy with it. I have tried to compile it on 10.2 (Jaguar) > but am having trouble compiling cmake with gcc 3.1. Has anyone else had > any success? > > 2) The changes posted by Raphael Sebbe:- > > http://public.kitware.com/pipermail/vtkusers/2002-July/012437.html > > are essential for an OS X/Carbon compile but haven't found their way > into the CVS source tree yet. > > Thanks, > Surajit Nundy > > _______________________________________________ > 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 bill.hoffman@kitware.com Fri Aug 23 02:56:46 2002 From: bill.hoffman@kitware.com (William A. Hoffman) Date: Thu, 22 Aug 2002 21:56:46 -0400 Subject: [vtkusers] vtk on Mac OS X 10.2 and changes posted to CVS? In-Reply-To: References: <2A601710-B54C-11D6-B693-000393B290A0@mac.com> Message-ID: <5.1.0.14.0.20020822215445.0453d3d0@pop.nycap.rr.com> The problem came from using the current cvs CMake. As a rule for building VTK, folks should not try the cvs release of cmake. The most current stable release should work for VTK. There is no guarantee that the cvs version of cmake will be able to build VTK, or even itself. -Bill At 09:51 PM 8/22/2002 -0400, Yves Starreveld wrote: >Hi, Surajeet, > >I have not received 10.2 yet, but reports from our correspondent in Norway >indicate successful builds. > >What problems are you encountering? > >Yves >On Wednesday, August 21, 2002, at 05:22 PM, nundys@mac.com wrote: > >>Hello, >>1) I have successfully used vtk on Mac OS X 10.1 for some time now >>and am very happy with it. I have tried to compile it on 10.2 (Jaguar) >>but am having trouble compiling cmake with gcc 3.1. Has anyone else had >>any success? >> >>2) The changes posted by Raphael Sebbe:- >> >>http://public.kitware.com/pipermail/vtkusers/2002-July/012437.html >> >>are essential for an OS X/Carbon compile but haven't found their way into >>the CVS source tree yet. >> >>Thanks, >>Surajit Nundy >> >>_______________________________________________ >>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 poecher@icom-consulting.de Fri Aug 23 11:09:59 2002 From: poecher@icom-consulting.de (Christian Poecher) Date: Fri, 23 Aug 2002 12:09:59 +0200 Subject: [vtkusers] recognizing a room Message-ID: <3D6609F7.1030502@icom-consulting.de> Hi, I know that this is not quite the right place to ask the following question, but maybe one of you knows an answer or at least a hint. Or maybe you could point me to a better place to ask. I have a geometry of a building, which is made of polygons with three or four edges. Let's define a room: A room is a volume which is completly surrounded by polygons (no way out) and does not cointain an other room (smallest possible rooms). Do you know an algorithm to find all rooms in my building? Do you have a hint for me how to do it? Or some literature? TIA chris -- ________________________________________________________________________ Christian Poecher mailto:poecher@icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From benjaminking@web.de Fri Aug 23 11:31:57 2002 From: benjaminking@web.de (Benjamin King) Date: Fri, 23 Aug 2002 12:31:57 +0200 Subject: [vtkusers] precision problem with vtkPiecewiseFunction Message-ID: <3D660F1D.1070509@web.de> Hi, I'm using VTK with Tcl and tried to read all points from a user provided vtkPiecewiseFunction. I ran into the following problem: --- vtkPiecewiseFunction f f AddPoint 0 0 f AddPoint 1.00000000000000001 0; # ridiculus, isn't it? f AddPoint 2.000001 0; # This happened in a real case f AddPoint 3.00001 0 f AddPoint 4 0 f GetRange (--> 0 4) f RemovePoint 0 f GetRange (--> 1 4, so 1.000000[...]01 was rounded) f RemovePoint 1 f GetRange (--> 2 4, but 2.000001 wasn't rounded, see below) f RemovePoint 2 f GetRange (--> 2 4, still there) f RemovePoint 2.000001 f GetRange (--> 3.00001 4, no rounding) --- Is there another way to get the defining values from a vtkPiecewiseFunction than that? The GetDataPointer Method isn't wrapped... Thanks, Ben -- There are only 10 types of people in this world: Those who understand binary, and those who don't. From reichl@ifb.tu-graz.ac.at Fri Aug 23 12:40:40 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Fri, 23 Aug 2002 12:40:40 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1201 - 5 msgs Message-ID: <1916455515E@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From simon.faust@post.rwth-aachen.de Fri Aug 23 14:34:58 2002 From: simon.faust@post.rwth-aachen.de (Simon Faust) Date: Fri, 23 Aug 2002 15:34:58 +0200 Subject: [vtkusers] opacity problem / how to ensure btf rendering Message-ID: <3D663A02.1E50B674@post.rwth-aachen.de> Hi, again I want to visualize a building with some furniture using tcl. All objects are cubes, with per-object color and per-object opacity and they are long and thin sometimes. Problem was that when rotating/zooming around/into the data the rendering was no longer correct but objects from behind "jumped" into the foreground. This occured when opacity was set near to 1. Several solutions were proposed: DepthSortPolyData does not work for long thin primitives and just for one transparent object. Sorting the objects backtTofront and rendering in this order did not solve the whole problem, just brought little improvement, cause there is no occlusion detection. Isn't there any (probably easy) way to achieve correct rendering of my scene? Thanks in advance, Regards Simon From dreed@capital.edu Fri Aug 23 15:51:10 2002 From: dreed@capital.edu (Dave Reed) Date: Fri, 23 Aug 2002 10:51:10 -0400 Subject: [vtkusers] compiling vtk nightly or 4.0 with Python on Solaris 2.7 Message-ID: <200208231451.g7NEpA830353@localhost.localdomain> I know there was a thread about Python support on Solaris recently and I've reread it, but I still can't get it to work now. I used to have Python working on Solaris, but we've since installed a newer version of Python and I can't seem to get it to work now. I get lots of errors like this while compiling: PyEval_RestoreThread 0x2530 /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) PyEval_RestoreThread 0x25ac /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) and it finally stops with: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status make[3]: *** [/tmp/VTK/bin/libvtkCommonPython.so] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 I've tried both with shared libraries turned on and off, but it still doesn't work. Can anyone with VTK compiled with Python support on Solaris share their CMakeCache.txt file so I can see what settings I might be missing. This is with gcc 2.95.3 which is what I previously used to compile both Python and VTK. I also updated to cmake 1.4 which appeared to be necessary to use the nightly version. Thanks, Dave From jeff@cdnorthamerica.com Fri Aug 23 15:54:11 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Fri, 23 Aug 2002 10:54:11 -0400 Subject: [vtkusers] vtkIntArray -> GetValue References: Message-ID: <3D664C93.5030403@cdnorthamerica.com> Do you have a code-snippet which causes the problem? -Jeff Christopher Navarro wrote: >Are there any known problems with the 4.0 build of vtkIntArray and >obtaining values by id? I am using java/vtk built on redhat 7.3 and >ocassionally my program crashes with the error log stating that an >exception occurred at vtk.vtkIntArray.GetValue() > >Also, the crash normally occurs after a successful run or a few >successful runs. It is always the same data which eliminates ambiguities >between datasets. Any ideas as to locating the error? Thanks. > >-chris > >_______________________________________________ >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 Valentin.Swegle@brooks.af.mil Fri Aug 23 17:01:30 2002 From: Valentin.Swegle@brooks.af.mil (Swegle Valentin M 2dLt AFRL/HEDB) Date: Fri, 23 Aug 2002 11:01:30 -0500 Subject: [vtkusers] gcc linker errors with vtk 4.0 Message-ID: Hi, All. I've compiled vtk 4.0 and it runs examples correctly in tcl. For the life of me, though, I can't get any c++ program using vtk to compile, including the examples. Does anybody have any insight? Thanks much, Valentin The errors I'm getting: [root@valallah Playtime]# gcc test.cxx -o test /tmp/ccStHUPr.o: In function `main': /tmp/ccStHUPr.o(.text+0x55): undefined reference to `vtkImageReader2::New(void)' /tmp/ccStHUPr.o(.text+0x97): undefined reference to `vtkImageReader2::SetFileName(char const *)' collect2: ld returned 1 exit status The version I'm running: [root@valallah Playtime]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs gcc version 2.96 20000731 (Red Hat Linux 7.1 2.96-98) This is VTK 4.0. The program I'm trying to compile: #include #include #include "vtkImageReader2.h" int main (int argc, char *argv[]) { char titleModelTissue[40]; vtkImageReader2 *reader; strncpy(titleModelTissue, "monkeyhead0112x0113x0126.raw", titleSize - 1); reader = vtkImageReader2::New(); reader->SetDataExtent(0,125,0,112,0,111); reader->SetFileName(titleModelTissue); reader->SetDataSpacing(sx,sy,sz); return(0); } From hqian@imaging.robarts.ca Fri Aug 23 17:15:39 2002 From: hqian@imaging.robarts.ca (Hua Qian) Date: Fri, 23 Aug 2002 12:15:39 -0400 Subject: [vtkusers] compiling vtk nightly or 4.0 with Python on Solaris 2.7 References: <200208231451.g7NEpA830353@localhost.localdomain> Message-ID: <3D665FAB.7080506@imaging.robarts.ca> This is a multi-part message in MIME format. --------------080201010701050108020504 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I compiled vtk nightly (July 15) with Python2.2 successfully on Solaris 2.7, I was using Sun compiler, though. Anyway, I attached my CMakeCache.txt file for your reference. I used cvs CMake (Again, July 15). Hua Dave Reed wrote: >I know there was a thread about Python support on Solaris recently and >I've reread it, but I still can't get it to work now. I used to have >Python working on Solaris, but we've since installed a newer version >of Python and I can't seem to get it to work now. > >I get lots of errors like this while compiling: > >PyEval_RestoreThread 0x2530 /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) >PyEval_RestoreThread 0x25ac /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) > >and it finally stops with: > >ld: fatal: relocations remain against allocatable but non-writable sections >collect2: ld returned 1 exit status >make[3]: *** [/tmp/VTK/bin/libvtkCommonPython.so] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Common] Error 2 >make: *** [default_target] Error 2 > >I've tried both with shared libraries turned on and off, but it still >doesn't work. Can anyone with VTK compiled with Python support on >Solaris share their CMakeCache.txt file so I can see what settings I >might be missing. > >This is with gcc 2.95.3 which is what I previously used to compile >both Python and VTK. I also updated to cmake 1.4 which appeared to be >necessary to use the nightly version. > >Thanks, >Dave >_______________________________________________ >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 > > --------------080201010701050108020504 Content-Type: text/plain; name="CMakeCache.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="CMakeCache.txt" # This is the CMakeCache file. # For build in directory: /net/chaos/chaos/data/hqian/VTK-solaris # You can edit this file to change values found and used by cmake. # If you do not want to change any of the values, simply exit the editor. # If you do want to change a value, simply edit, save, and exit the editor. # The syntax for the file is as follows: # KEY:TYPE=VALUE # KEY is the name of a varible in the cache. # TYPE is a hint to GUI's for the type of VALUE, DO NOT EDIT TYPE!. # VALUE is the current value for the KEY. ######################## # EXTERNAL cache entries ######################## //Build the documentation (Doxygen). BUILD_DOCUMENTATION:BOOL=OFF //Build VTK examples. BUILD_EXAMPLES:BOOL=ON //Build VTK with shared libraries. BUILD_SHARED_LIBS:BOOL=ON //Build the testing tree. BUILD_TESTING:BOOL=ON //Archive program used to make archive libraries. CMAKE_AR:FILEPATH=/usr/ccs/bin/ar //Arguments for CMAKE_AR program to create an archive library. CMAKE_AR_ARGS:STRING=cr //Archive program used to make archive libraries of c++ object // files. CMAKE_CXX_AR:FILEPATH=/opt/SUNWspro/bin/CC //Arguments for CMAKE_CXX_AR program to create an archive library. // CMAKE_CXX_AR_ARGS:STRING=-xar -o //Name of C++ compiler used. CMAKE_CXX_COMPILER:FILEPATH=/opt/SUNWspro/bin/CC //Flags used by CXX compiler. CMAKE_CXX_FLAGS:STRING= //program used to link c++ shared libraries CMAKE_CXX_LINK_SHARED:STRING=/opt/SUNWspro/bin/CC CMAKE_CXX_MODULE_BUILD_FLAGS:STRING=-G CMAKE_CXX_MODULE_LINK_FLAGS:STRING= CMAKE_CXX_SHLIB_BUILD_FLAGS:STRING=-G CMAKE_CXX_SHLIB_CFLAGS:STRING=-KPIC CMAKE_CXX_SHLIB_LINK_FLAGS:STRING= CMAKE_CXX_SHLIB_RUNTIME_FLAG:STRING=-R CMAKE_CXX_SHLIB_RUNTIME_SEP:STRING=: //Name of C compiler used. CMAKE_C_COMPILER:FILEPATH=/opt/SUNWspro/bin/cc //Flags for C compiler. CMAKE_C_FLAGS:STRING= //program used to link c shared libraries CMAKE_C_LINK_SHARED:STRING=/opt/SUNWspro/bin/cc //Dynamic link library to link in. CMAKE_DL_LIBS:STRING=-ldl //Use HP pthreads. CMAKE_HP_PTHREADS:BOOL=OFF //Install path prefix, prepended onto install directories. CMAKE_INSTALL_PREFIX:PATH=/irus //Path to a program. CMAKE_MAKE_PROGRAM:FILEPATH=/irus/bin/gmake //Flag used by CXX to build a shared library. CMAKE_MODULE_BUILD_FLAGS:STRING=-G //Flags used to link a shared library. CMAKE_MODULE_LINK_FLAGS:STRING= //Module library suffix. CMAKE_MODULE_SUFFIX:STRING=.so //Library randomizer program used on archive libraries. CMAKE_RANLIB:FILEPATH=ranlib //Flag used by CXX to build a shared library. CMAKE_SHLIB_BUILD_FLAGS:STRING=-G //Flag used for building shared library objects. CMAKE_SHLIB_CFLAGS:STRING=-KPIC //Libraries used by LD for shared libraries. CMAKE_SHLIB_LD_LIBS:STRING=${LIBS} //Flags used to link a shared library. CMAKE_SHLIB_LINK_FLAGS:STRING= //Flag used to specify run-time search paths. CMAKE_SHLIB_RUNTIME_FLAG:STRING=-R //If null, each runtime path is a separate option. Otherwise, they // are all joined, separated by this. CMAKE_SHLIB_RUNTIME_SEP:STRING=: //Shared library suffix. CMAKE_SHLIB_SUFFIX:STRING=.so //If set, runtime paths are not added when using shared libraries. // CMAKE_SKIP_RPATH:BOOL=OFF //CXX template flags used by compiler. CMAKE_TEMPLATE_FLAGS:STRING= //Thread library used. CMAKE_THREAD_LIBS:STRING=-lpthread -lthread //Use the pthreads library. CMAKE_USE_PTHREADS:BOOL=ON //Use sproc libs. CMAKE_USE_SPROC:BOOL=OFF //The system uses big endian byte ordering. CMAKE_WORDS_BIGENDIAN:BOOL=ON //X11 extra flags. CMAKE_X_CFLAGS:STRING= -I/usr/openwin/include //Libraries and options used in X11 programs. CMAKE_X_LIBS:STRING= -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl //If you have Dart installed, where is it located? DART_ROOT:PATH=NOTFOUND //Single output directory for building all executables. EXECUTABLE_OUTPUT_PATH:PATH=/net/chaos/chaos/data/hqian/VTK-solaris/bin //Single output directory for building all libraries. LIBRARY_OUTPUT_PATH:PATH=/net/chaos/chaos/data/hqian/VTK-solaris/bin //What is the path where the file GL/gl.h can be found OPENGL_INCLUDE_PATH:PATH=/usr/include //Where can the GL library be found OPENGL_LIBRARY:FILEPATH=/usr/lib/libGL.so //What is the path where the file Python.h can be found PYTHON_INCLUDE_PATH:PATH=/irus/include/python2.2 //Where can one of the python, python21, python2.1, python20, python2.0, // python1.5, python15, python22 or python2.2 libraries be found // PYTHON_LIBRARY:FILEPATH=/irus/lib/python2.2/config/libpython2.2.a //What is the path where the file tcl.h can be found TCL_INCLUDE_PATH:PATH=/irus/include //Where can one of the tcl, tcl84, tcl8.4, tcl83, tcl8.3, tcl82, // tcl8.2, tcl80 or tcl8.0 libraries be found TCL_LIBRARY:FILEPATH=/irus/lib/libtcl8.3.so //Path to a program. TCL_TCLSH:FILEPATH=/irus/bin/tclsh //What is the path where the file tk.h can be found TK_INCLUDE_PATH:PATH=/irus/include //Where can one of the tk, tk84, tk8.4, tk83, tk8.3, tk82, tk8.2, // tk80 or tk8.0 libraries be found TK_LIBRARY:FILEPATH=/irus/lib/libtk8.3.so //Path to a program. TK_WISH:FILEPATH=/irus/bin/wish //Value Computed by CMake VTKEXPAT_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/expat //Value Computed by CMake VTKEXPAT_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK/Utilities/expat //Value Computed by CMake VTKJPEG_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/jpeg //Value Computed by CMake VTKJPEG_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK/Utilities/jpeg //Value Computed by CMake VTKPNG_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/png //Value Computed by CMake VTKPNG_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK/Utilities/png //Value Computed by CMake VTKTIFF_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/tiff //Value Computed by CMake VTKTIFF_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK/Utilities/tiff //Value Computed by CMake VTKZLIB_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/zlib //Value Computed by CMake VTKZLIB_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK/Utilities/zlib //Value Computed by CMake VTK_BINARY_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK-solaris //Build vtkpython executable, which will correctly initialize static // constructors. (EXPERIMENTAL) VTK_BUILD_PYTHON_EXECUTABLE:BOOL=ON //What is the path where the file VTKData.readme can be found VTK_DATA_ROOT:PATH=/net/chaos/chaos/data/hqian/VTKData //Build leak checking support into vtk. VTK_DEBUG_LEAKS:BOOL=OFF //Allows the user to disable the automatic initialization of Tk // widgets when loading the rendering library. VTK_DISABLE_TK_INIT:BOOL=OFF //Use mangled Mesa with OpenGL VTK_MANGLE_MESA:BOOL=OFF //The opengl library being used supports off screen Mesa calls. // VTK_OPENGL_HAS_OSMESA:BOOL=OFF //Value Computed by CMake VTK_SOURCE_DIR:STATIC=/net/chaos/chaos/data/hqian/VTK //Build VTK with 64 bit ids VTK_USE_64BIT_IDS:BOOL=OFF //Use the ANSI standard iostream library VTK_USE_ANSI_STDLIB:BOOL=OFF //Build VTK with Freetype support) VTK_USE_FREETYPE:BOOL=OFF //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=ON //use MPI (Message Passing Interface) library for parallel support // VTK_USE_MPI:BOOL=OFF //Build the parallel directory classes VTK_USE_PARALLEL:BOOL=ON //Build the patented directory classes, these classes are patented // and may require a license to use VTK_USE_PATENTED:BOOL=ON //Build the rendering classes used for displaying VTK_USE_RENDERING:BOOL=ON //Build VTK with volume pro support VTK_USE_VOLUMEPRO:BOOL=OFF //Build classes for the X11 window manager VTK_USE_X:BOOL=ON //Where can the hints file be found VTK_WRAP_HINTS:FILEPATH=/net/chaos/chaos/data/hqian/VTK/Wrapping/hints //wrap classes into the Java language VTK_WRAP_JAVA:BOOL=OFF //wrap classes into the Python interpreted language VTK_WRAP_PYTHON:BOOL=ON //Path to an internal program. VTK_WRAP_PYTHON_EXE:FILEPATH=/net/chaos/chaos/data/hqian/VTK-solaris/bin/./vtkWrapPython //wrap classes into the TCL intepreted language VTK_WRAP_TCL:BOOL=ON //Path to an internal program. VTK_WRAP_TCL_EXE:FILEPATH=/net/chaos/chaos/data/hqian/VTK-solaris/bin/./vtkWrapTcl //Dependencies for the target vtkCommonPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/irus/lib/python2.2/config/libpython2.2.a;vtkCommon; //Dependencies for the target vtkCommonTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/irus/lib/libtcl8.3.so;vtkCommon; //Dependencies for the target vtkCommon_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm; //Dependencies for the target vtkFilteringPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkFiltering; //Dependencies for the target vtkFilteringTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkFiltering; //Dependencies for the target vtkFiltering_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommon; //Dependencies for the target vtkGraphicsPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkFilteringPython;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkGraphics; //Dependencies for the target vtkGraphicsTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkGraphics; //Dependencies for the target vtkGraphics_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommon;vtkFiltering; //Dependencies for the target vtkHybridPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkRenderingPython;vtkIOPython;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/usr/lib/libGL.so;/irus/lib/python2.2/config/libpython2.2.a;vtkHybrid; //Dependencies for the target vtkHybridTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkRenderingTCL;vtkIOTCL;vtkGraphicsTCL;vtkImagingTCL;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkHybrid; //Dependencies for the target vtkHybrid_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO;vtkRendering; //Dependencies for the target vtkIOPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat;vtkFilteringPython;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkIO; //Dependencies for the target vtkIOTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkIO; //Dependencies for the target vtkIO_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkpng;vtkzlib;vtkjpeg;vtktiff;vtkexpat;vtkCommon;vtkFiltering; //Dependencies for the target vtkImagingPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkFilteringPython;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkImaging; //Dependencies for the target vtkImagingTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkImaging; //Dependencies for the target vtkImaging_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommon;vtkFiltering; //Dependencies for the target vtkParallelPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkIOPython;vtkRenderingPython;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/usr/lib/libGL.so;/irus/lib/python2.2/config/libpython2.2.a;vtkParallel; //Dependencies for the target vtkParallelTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkIOTCL;vtkRenderingTCL;vtkGraphicsTCL;vtkImagingTCL;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkParallel; //Dependencies for the target vtkParallel_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkRendering;vtkImaging;vtkGraphics;vtkIO;vtkFiltering;vtkCommon; //Dependencies for the target vtkPatentedPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkIO;vtkPatented; //Dependencies for the target vtkPatentedTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkIOTCL;vtkGraphicsTCL;vtkImagingTCL;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;vtkPatented; //Dependencies for the target vtkPatented_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkIO; //Dependencies for the target vtkRenderingPythonTkWidgets_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/usr/lib/libGL.so;/irus/lib/libtcl8.3.so;/irus/lib/libtk8.3.so;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;vtkRendering;-lXt; -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl; //Dependencies for the target vtkRenderingPython_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/usr/lib/libGL.so;vtkGraphicsPython;vtkImagingPython;vtkFilteringPython;vtkCommonPython;/irus/lib/python2.2/config/libpython2.2.a;vtkRendering;-lXt; -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl; //Dependencies for the target vtkRenderingTCL_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/usr/lib/libGL.so;vtkGraphicsTCL;vtkImagingTCL;vtkFilteringTCL;vtkCommonTCL;/irus/lib/libtcl8.3.so;/irus/lib/libtk8.3.so;vtkRendering;-lXt; -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl; //Dependencies for the target vtkRendering_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;/usr/lib/libGL.so;vtkCommon;vtkFiltering;vtkImaging;vtkGraphics;-lXt; -lSM -lICE -L/usr/openwin/lib -R/usr/openwin/lib -lX11 -lXext -lsocket -lnsl; //Dependencies for the target vtkexpat_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm; //Dependencies for the target vtkjpeg_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm; //Dependencies for the target vtkpng_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkzlib; //Dependencies for the target vtktiff_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm;vtkzlib;vtkjpeg; //Dependencies for the target vtkzlib_LIB_DEPENDS:STATIC=-lpthread -lthread;-ldl;-lm; ######################## # INTERNAL cache entries ######################## //Executable to project name. /net/chaos/chaos/data/hqian/VTK-solaris/bin/./vtkWrapPython:INTERNAL=vtkWrapPython //Executable to project name. /net/chaos/chaos/data/hqian/VTK-solaris/bin/./vtkWrapTcl:INTERNAL=vtkWrapTcl //Path to an executable AmoebaMinimizer_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid/Testing/Cxx //Advanced flag for variable: BUILD_DOCUMENTATION BUILD_DOCUMENTATION-ADVANCED:INTERNAL=1 //Path to an executable BoxWidget_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid/Testing/Cxx //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CFLAGS CMAKE_ANSI_CFLAGS-ADVANCED:INTERNAL=1 //What flags are required by the c++ compiler to make it ansi. CMAKE_ANSI_CXXFLAGS:INTERNAL= //Advanced flag for variable: CMAKE_ANSI_CXXFLAGS CMAKE_ANSI_CXXFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR CMAKE_AR-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_AR_ARGS CMAKE_AR_ARGS-ADVANCED:INTERNAL=1 //What is the target build tool cmake is generating for. CMAKE_BUILD_TOOL:INTERNAL=make //This is the directory where this CMakeCahe.txt was created CMAKE_CACHEFILE_DIR:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris //Major version of cmake used to create the current loaded cache // CMAKE_CACHE_MAJOR_VERSION:INTERNAL=1 //Minor version of cmake used to create the current loaded cache // CMAKE_CACHE_MINOR_VERSION:INTERNAL=5 //Path to CMake executable. CMAKE_COMMAND:INTERNAL=/irus/bin/cmake //Is the compile GNU C++. CMAKE_COMPILER_IS_GNUCXX:INTERNAL= //Advanced flag for variable: CMAKE_COMPILER_IS_GNUCXX CMAKE_COMPILER_IS_GNUCXX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_AR CMAKE_CXX_AR-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_AR_ARGS CMAKE_CXX_AR_ARGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_COMPILER CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_LINK_SHARED CMAKE_CXX_LINK_SHARED-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_MODULE_BUILD_FLAGS CMAKE_CXX_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_MODULE_LINK_FLAGS CMAKE_CXX_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_BUILD_FLAGS CMAKE_CXX_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_CFLAGS CMAKE_CXX_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_LINK_FLAGS CMAKE_CXX_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_FLAG CMAKE_CXX_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_CXX_SHLIB_RUNTIME_SEP CMAKE_CXX_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_COMPILER CMAKE_C_COMPILER-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_C_LINK_SHARED CMAKE_C_LINK_SHARED-ADVANCED:INTERNAL=1 //shared link flags for cc CMAKE_C_SHLIB_LINK_FLAGS:INTERNAL= //Advanced flag for variable: CMAKE_C_SHLIB_LINK_FLAGS CMAKE_C_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //runtime directory flag for cc CMAKE_C_SHLIB_RUNTIME_FLAG:INTERNAL=-R //Advanced flag for variable: CMAKE_C_SHLIB_RUNTIME_FLAG CMAKE_C_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_DL_LIBS CMAKE_DL_LIBS-ADVANCED:INTERNAL=1 //Path to cache edit program executable. CMAKE_EDIT_COMMAND:INTERNAL=/irus/bin/ccmake //Advanced flag for variable: CMAKE_EXECUTABLE_SUFFIX CMAKE_EXECUTABLE_SUFFIX-ADVANCED:INTERNAL=1 //Name of generator. CMAKE_GENERATOR:INTERNAL=Unix Makefiles //Is X11 around. CMAKE_HAS_X:INTERNAL=1 //Start directory with the top level CMakeLists.txt file for this // project CMAKE_HOME_DIRECTORY:INTERNAL=/net/chaos/chaos/data/hqian/VTK //Advanced flag for variable: CMAKE_HP_PTHREADS CMAKE_HP_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MAKE_PROGRAM CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_BUILD_FLAGS CMAKE_MODULE_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_LINK_FLAGS CMAKE_MODULE_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_MODULE_SUFFIX CMAKE_MODULE_SUFFIX-ADVANCED:INTERNAL=1 //Does the compiler support ansi for scoping. CMAKE_NO_ANSI_FOR_SCOPE:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_FOR_SCOPE CMAKE_NO_ANSI_FOR_SCOPE-ADVANCED:INTERNAL=1 //Does the compiler support headers like iostream. CMAKE_NO_ANSI_STREAM_HEADERS:INTERNAL= //Advanced flag for variable: CMAKE_NO_ANSI_STREAM_HEADERS CMAKE_NO_ANSI_STREAM_HEADERS-ADVANCED:INTERNAL=1 //Does the compiler support the ansi stringstream class. CMAKE_NO_ANSI_STRING_STREAM:INTERNAL= //Does the compiler not support explicit template instantiation. // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION:INTERNAL= //Advanced flag for variable: CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION // CMAKE_NO_EXPLICIT_TEMPLATE_INSTANTIATION-ADVANCED:INTERNAL=1 //Does the compiler support std::. CMAKE_NO_STD_NAMESPACE:INTERNAL= //Advanced flag for variable: CMAKE_NO_STD_NAMESPACE CMAKE_NO_STD_NAMESPACE-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_OBJECT_FILE_SUFFIX CMAKE_OBJECT_FILE_SUFFIX-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_RANLIB CMAKE_RANLIB-ADVANCED:INTERNAL=1 //Path to CMake installation. CMAKE_ROOT:INTERNAL=/irus/share/CMake //Advanced flag for variable: CMAKE_SHLIB_BUILD_FLAGS CMAKE_SHLIB_BUILD_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_CFLAGS CMAKE_SHLIB_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LD_LIBS CMAKE_SHLIB_LD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_LINK_FLAGS CMAKE_SHLIB_LINK_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_FLAG CMAKE_SHLIB_RUNTIME_FLAG-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_RUNTIME_SEP CMAKE_SHLIB_RUNTIME_SEP-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_SHLIB_SUFFIX CMAKE_SHLIB_SUFFIX-ADVANCED:INTERNAL=1 //Size of char data type CMAKE_SIZEOF_CHAR:INTERNAL=1 //Size of double data type CMAKE_SIZEOF_DOUBLE:INTERNAL=8 //Size of float data type CMAKE_SIZEOF_FLOAT:INTERNAL=4 //Size of int data type CMAKE_SIZEOF_INT:INTERNAL=4 //Size of long data type CMAKE_SIZEOF_LONG:INTERNAL=4 //Size of short data type CMAKE_SIZEOF_SHORT:INTERNAL=2 //Size of void* data type CMAKE_SIZEOF_VOID_P:INTERNAL=4 //Advanced flag for variable: CMAKE_SKIP_RPATH CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_STATICLIB_SUFFIX CMAKE_STATICLIB_SUFFIX-ADVANCED:INTERNAL=1 //What system is this. Result of uname. CMAKE_SYSTEM:INTERNAL=SunOS-5.7 //Advanced flag for variable: CMAKE_TEMPLATE_FLAGS CMAKE_TEMPLATE_FLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_THREAD_LIBS CMAKE_THREAD_LIBS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_PTHREADS CMAKE_USE_PTHREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_SPROC CMAKE_USE_SPROC-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_USE_WIN32_THREADS CMAKE_USE_WIN32_THREADS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_WORDS_BIGENDIAN CMAKE_WORDS_BIGENDIAN-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_CFLAGS CMAKE_X_CFLAGS-ADVANCED:INTERNAL=1 //Advanced flag for variable: CMAKE_X_LIBS CMAKE_X_LIBS-ADVANCED:INTERNAL=1 //Path to an executable CellLocator_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Advanced flag for variable: EXECUTABLE_OUTPUT_PATH EXECUTABLE_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable FrustumClip_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Path to an executable GenericCommunicator_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel/Testing/Cxx //Path to an executable ImagePlaneWidget_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid/Testing/Cxx //Path to an executable ImportExport_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Imaging/Testing/Cxx //Advanced flag for variable: LIBRARY_OUTPUT_PATH LIBRARY_OUTPUT_PATH-ADVANCED:INTERNAL=1 //Path to an executable Mace_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Advanced flag for variable: OPENGL_INCLUDE_PATH OPENGL_INCLUDE_PATH-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_LIBRARY OPENGL_LIBRARY-ADVANCED:INTERNAL=1 //Advanced flag for variable: OPENGL_LIBRARY_PATH OPENGL_LIBRARY_PATH-ADVANCED:INTERNAL=1 //Path to an executable ObjectFactory_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable ParallelIsoTest_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel/Testing/Cxx //Path to an executable ParallelIso_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Examples/ParallelProcessing/Generic/Cxx //Path to an executable PipelineParallelism_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Examples/ParallelProcessing/Generic/Cxx //Path to an executable PointLocator_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Path to an executable RGrid_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Path to an executable SocketClient_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel/Testing/Cxx //Path to an executable SocketServer_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel/Testing/Cxx //Path to an executable TaskParallelismWithPorts_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Examples/ParallelProcessing/Generic/Cxx //Path to an executable TaskParallelism_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Examples/ParallelProcessing/Generic/Cxx //Path to an executable TestContainers_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestCxxFeatures_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestImageIterator_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestList_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestMap_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestReferenceCountedList_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable TestRenderWindow_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering/Testing/Cxx //Path to an executable TestString_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable ThreadedCommunicator_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel/Testing/Cxx //Path to an executable TimeRenderer2_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering/Testing/Cxx //Path to an executable TimeRenderer_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering/Testing/Cxx //Advanced flag for variable: VTK_BUILD_PYTHON_EXECUTABLE VTK_BUILD_PYTHON_EXECUTABLE-ADVANCED:INTERNAL=1 //Is this VTK built with shared libraries. VTK_BUILD_SHARED_LIBS:INTERNAL=ON //Advanced flag for variable: VTK_DEBUG_LEAKS VTK_DEBUG_LEAKS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_DISABLE_TK_INIT VTK_DISABLE_TK_INIT-ADVANCED:INTERNAL=1 //Where VTK executables are. Used by projects which depend on VTK. // Do not remove. VTK_EXECUTABLE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/bin //Where VTK libraries are. Used by projects which depend on VTK. // Do not remove. VTK_LIBRARY_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/bin //Advanced flag for variable: VTK_MANGLE_MESA VTK_MANGLE_MESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_OPENGL_HAS_OSMESA VTK_OPENGL_HAS_OSMESA-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_64BIT_IDS VTK_USE_64BIT_IDS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_FREETYPE VTK_USE_FREETYPE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_USE_MPI VTK_USE_MPI-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_HINTS VTK_WRAP_HINTS-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_PYTHON_EXE VTK_WRAP_PYTHON_EXE-ADVANCED:INTERNAL=1 //Advanced flag for variable: VTK_WRAP_TCL_EXE VTK_WRAP_TCL_EXE-ADVANCED:INTERNAL=1 //Path to an executable expCos_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Path to an executable mkg3states_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/tiff //Path to an executable otherArrays_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherByteSwap_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherCellArray_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherCellBoundaries_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherCellDerivatives_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherCellPosition_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherCellTypes_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherColorTransferFunction_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Filtering/Testing/Cxx //Path to an executable otherCoordinate_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering/Testing/Cxx //Path to an executable otherEmptyCell_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherFieldData_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherLookupTable_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherRectilinearGrid_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherStructuredGrid_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable otherTimerLog_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable quadraticEvaluation_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common/Testing/Cxx //Path to an executable volProt_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics/Testing/Cxx //Path to a library vtkCommonPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common //Whether a library is static, shared or module. vtkCommonPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommonTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common //Whether a library is static, shared or module. vtkCommonTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkCommon_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Common //Whether a library is static, shared or module. vtkCommon_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Filtering //Whether a library is static, shared or module. vtkFilteringPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFilteringTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Filtering //Whether a library is static, shared or module. vtkFilteringTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkFiltering_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Filtering //Whether a library is static, shared or module. vtkFiltering_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics //Whether a library is static, shared or module. vtkGraphicsPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphicsTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics //Whether a library is static, shared or module. vtkGraphicsTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkGraphics_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Graphics //Whether a library is static, shared or module. vtkGraphics_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid //Whether a library is static, shared or module. vtkHybridPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybridTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid //Whether a library is static, shared or module. vtkHybridTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkHybrid_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Hybrid //Whether a library is static, shared or module. vtkHybrid_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/IO //Whether a library is static, shared or module. vtkIOPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIOTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/IO //Whether a library is static, shared or module. vtkIOTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkIO_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/IO //Whether a library is static, shared or module. vtkIO_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Imaging //Whether a library is static, shared or module. vtkImagingPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImagingTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Imaging //Whether a library is static, shared or module. vtkImagingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkImaging_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Imaging //Whether a library is static, shared or module. vtkImaging_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel //Whether a library is static, shared or module. vtkParallelPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallelTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel //Whether a library is static, shared or module. vtkParallelTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkParallel_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Parallel //Whether a library is static, shared or module. vtkParallel_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatentedPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Patented //Whether a library is static, shared or module. vtkPatentedPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatentedTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Patented //Whether a library is static, shared or module. vtkPatentedTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkPatented_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Patented //Whether a library is static, shared or module. vtkPatented_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPythonTkWidgets_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering //Whether a library is static, shared or module. vtkRenderingPythonTkWidgets_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering //Whether a library is static, shared or module. vtkRenderingPython_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRenderingTCL_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering //Whether a library is static, shared or module. vtkRenderingTCL_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkRendering_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Rendering //Whether a library is static, shared or module. vtkRendering_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkWrapPython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Wrapping //Path to an executable vtkWrapTcl_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Wrapping //Path to an executable vtk_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Wrapping/Tcl //Path to a library vtkexpat_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/expat //Whether a library is static, shared or module. vtkexpat_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkjpeg_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/jpeg //Whether a library is static, shared or module. vtkjpeg_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkpng_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/png //Whether a library is static, shared or module. vtkpng_LIBRARY_TYPE:INTERNAL=SHARED //Path to an executable vtkpython_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Wrapping/Python //Path to a library vtktiff_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/tiff //Whether a library is static, shared or module. vtktiff_LIBRARY_TYPE:INTERNAL=SHARED //Path to a library vtkzlib_CMAKE_PATH:INTERNAL=/net/chaos/chaos/data/hqian/VTK-solaris/Utilities/zlib //Whether a library is static, shared or module. vtkzlib_LIBRARY_TYPE:INTERNAL=SHARED --------------080201010701050108020504-- From neri@hobbes.nrl.navy.mil Fri Aug 23 18:07:52 2002 From: neri@hobbes.nrl.navy.mil (Jesse Neri) Date: Fri, 23 Aug 2002 13:07:52 -0400 Subject: [vtkusers] Coloring HedgeHog vectors Message-ID: <000b01c24ac7$9edc24d0$fa9efa84@nrl.navy.mil> I am using vtkHedgehog to visualize vector data from a structured grid data set. I would like the color of the vector line to be scaled to the length of the vector, and not a particular scalar component of the vector. How do I pull this off? Various combinations of inputs to the vtkHedgehog or the polydatamapper have given solid colors, but not a color scale. Jess Neri -- Jess Neri neri@hobbes.nrl.navy.mil (202) 404-4365 Pulsed Power Physics Branch, Plasma Physics Division Naval Research Laboratory, Washington DC 20375 From kteich@nmr.mgh.harvard.edu Fri Aug 23 18:45:48 2002 From: kteich@nmr.mgh.harvard.edu (Kevin Teich) Date: Fri, 23 Aug 2002 13:45:48 -0400 (EDT) Subject: [vtkusers] Problem with vtkPicker Message-ID: I am having difficulty with vtkPicker, particularly vtkPointPicker. I'm working on a basic MRI slice viewer. I have an actor made up of a texture and a plane (256x256 resolution, scaled to 256x256). It's the only actor I have in the space. I want to click on it and get some kind of coordinate or point number that I can transform (if necessary) into an index into the 256x256 space regardless of the orientation of the plane (mainly so I can let the user pan and zoom). When I use vtkPointPicker this seems to work when the camera is at its initial setup but once I start interacting with the scene, it starts giving inconsistent picks. It seems as the picker doesn't know about the camera changes being made to the scene and is picking based on the original actor's location and camera setup. Here is the code I am using to set up the picker: set picker [vtkPointPicker _picker] $picker AddObserver EndPickEvent PickPointCB $picker SetTolerance 0.1 set interactor [vtkRenderWindowInteractor _interactor] $interactor SetRenderWindow $renderWindow $interactor SetPicker $picker bind $rwRender \ "$picker Pick %x %y 0 $renderer;" I can provide mroe code if necessary. I feel like there should be call to 'connect' a picker to the renderer or camera somehow, but none of the picker sample code I've seen seems to do this. Am I missing something? Thanks. -- Kevin Teich From glgraf@asu.edu Fri Aug 23 19:17:39 2002 From: glgraf@asu.edu (Gary L. Graf) Date: Fri, 23 Aug 2002 11:17:39 -0700 Subject: [vtkusers] Scalars for vtkPolyData Message-ID: <3D667C43.9A622879@asu.edu> Hi, The simple cube example provided to illustrate the use of vtkPolyData assigns single valued scalars to the vertices (?) the value of which is the index of the vertex. The result is a nice cube where different colors blend from corner to corner. Another example assigns the scalars using the vtkTuple1 (or 2 3, etc.). When I use this the coloration doesn't make sense. The documentation with regard to what the render does with those scalars is week. How are they interpreted. What does it do differently between single value scalars and multiple value scalars. What is the allowable range and what happens if out of range? These questions of course relate to the default rendering and not to cases where specific direction is applied. Thanks - Gary Graf From krs@cs.uncc.edu Fri Aug 23 21:32:19 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Fri, 23 Aug 2002 16:32:19 -0400 Subject: [vtkusers] vtk book out of print?? Message-ID: <3D669BD3.1D84BADE@cs.uncc.edu> Could perhaps the authors illuminate why the VTK book is out of print? I know the book is a few years old, but still a lot of us are using it and some of us use it in visualization courses and for projects.. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From jholt@fatiguewizard.com Sat Aug 24 06:04:09 2002 From: jholt@fatiguewizard.com (julianholt) Date: Fri, 23 Aug 2002 22:04:09 -0700 Subject: [vtkusers] vtk book out of print?? References: <3D669BD3.1D84BADE@cs.uncc.edu> Message-ID: <091c01c24b2b$af38fe20$539793c3@pc01> Hi krs I bought the Visualization Toolkit 2nd ed + the VTK Users guide a couple of weeks ago from amazon.co.uk with no problems HTH Regards Julian Holt CADFEM - Finite Element Analysis "All we need is a major breakthrough ! " Please visit www.cadfem.com For an instantaneous FE quotation see www.cadfem.com/cadfem2001/quotes/quotation.shtml Tel :- +44(0)1509 843370 Mobile :- +44(0)7960 414521 To join the Algor User Group, send a blank e-mail to algor-users-subscribe@yahoogroups.com ----- Original Message ----- From: "K.R.Subramanian" To: "VTK HELP" Sent: 23 August 2002 13:32 Subject: [vtkusers] vtk book out of print?? > > Could perhaps the authors illuminate why the VTK book is out of print? > I know the book is a few years old, but still a lot of us are using it and some > of us use it in visualization courses and for projects.. > > Thanks. > > -- krs > > -- > K.R.Subramanian Phone: (704) 687-4872 > Department of Computer Science FAX: (704) 687-4893 > UNC Charlotte, CARC 311 Email: krs@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 > From heiland@ncsa.uiuc.edu Fri Aug 23 22:16:46 2002 From: heiland@ncsa.uiuc.edu (Randy Heiland) Date: Fri, 23 Aug 2002 16:16:46 -0500 Subject: [vtkusers] StructGrid -> ImageData? Message-ID: <1020823161647.ZM5490@pecos.ncsa.uiuc.edu> Perhaps someone can answer this quicker than I can find/figure it out... How do I resample a structured grid to an image data so that I can volume render it? thanks, Randy From Gharrison9@aol.com Sat Aug 24 01:21:46 2002 From: Gharrison9@aol.com (Gharrison9@aol.com) Date: Fri, 23 Aug 2002 20:21:46 EDT Subject: [vtkusers] vtk book out of print?? Message-ID: <9c.24ea92e4.2a982b9a@aol.com> --part1_9c.24ea92e4.2a982b9a_boundary Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit In a message dated 8/23/2002 4:33:07 PM Eastern Daylight Time, krs@cs.uncc.edu writes: > Could perhaps the authors illuminate why the VTK book is out of print? > I know the book is a few years old, but still a lot of us are using it and > some > of us use it in visualization courses and for projects.. > > Indeed. The publisher confirms that. There probably is some availability on amazon, but my concern is for a class that I have coming up next year. Last year I assigned the User's Guide, but it can only (I think) be purchased online, which is difficult for students that have student aid vouchers at the book store for text book purchases. Do the authors have an answer? What WOULD be good is to have a new addition but with much of the material from the User's Guide included -- at least on CD. To write a book that would explain the complete functionality of VTK AND give the background that the text does would be a daunting task. As an asside... a student I have who is very VTK proficient asked me, does anyone REALLY know the functionality of the various classes? That's a broad question, but it also shows the potential power of these classes. I have a great deal of respect for the work done on these classes. George George C. Harrison Professor of Computer Science Norfolk State University Telephone: 757-823-8654 Fax: 757-823-9229 email: gharrison9@aol.com or gcharrison@nsu.edu (same difference..) --part1_9c.24ea92e4.2a982b9a_boundary Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: 7bit In a message dated 8/23/2002 4:33:07 PM Eastern Daylight Time, krs@cs.uncc.edu writes:


Could perhaps the authors illuminate why the VTK book is out of print?
I know the book is a few years old, but still a lot of us are using it and some
of us use it in visualization courses and for projects..



Indeed. The publisher confirms that. There probably is some availability on amazon, but my concern is for a class that I have coming up next year. Last year I assigned the User's Guide, but it can only (I think) be purchased online, which is difficult for students that have student aid vouchers at the book store for text book purchases.

Do the authors have an answer?

What WOULD be good is to have a new addition but with much of the material from the User's Guide included -- at least on CD. To write a book that would explain the complete functionality of VTK AND give the background that the text does would be a daunting task.

As an asside... a student I have who is very VTK proficient asked me, does anyone REALLY know the functionality of the various classes? That's a broad question, but it also shows the potential power of these classes. I have a great deal of respect for the work done on these classes.

George

George C. Harrison Professor of Computer Science
Norfolk State University

Telephone: 757-823-8654
Fax: 757-823-9229
email: gharrison9@aol.com
or gcharrison@nsu.edu (same difference..)
--part1_9c.24ea92e4.2a982b9a_boundary-- From p.cook@cs.ucl.ac.uk Sat Aug 24 13:06:02 2002 From: p.cook@cs.ucl.ac.uk (Philip Cook) Date: Sat, 24 Aug 2002 13:06:02 +0100 Subject: [vtkusers] Coloring HedgeHog vectors In-Reply-To: <20020824103803.8838C1AB40@public.kitware.com> References: <20020824103803.8838C1AB40@public.kitware.com> Message-ID: <200208241306.02302.p.cook@cs.ucl.ac.uk> On Saturday 24 August 2002 11:37, vtkusers-request@public.kitware.com wrote: > I am using vtkHedgehog to visualize vector data from a > structured grid data set. I would like the color of the > vector line to be scaled to the length of the vector, and > not a particular scalar component of the vector. How do I pull this > off? Various combinations of inputs to the vtkHedgehog or the > polydatamapper have given solid colors, but not a color > scale. > > Jess Neri I'm not sure if you want each line to have multiple colours (I don't know how to do that). If you want to colour each line with one colour that is determined by its vector magnitude, you can use vtkGlyph3D. This class will place an oriented glyph (in our case a line, but it can be any polygonal shape) at each point in an input dataset. You can scale and colour by vector, normal, or scalar values. // make a line for our glyph vtkLineSource *line = vtkLineSource::New(); line->SetPoint1(0.0f, 0.0f, 0.0f); line->SetPoint2(1.0f, 0.0f, 0.0f); line->Update(); vtkGlyph3D *glyph = vtkGlyph3D::New(); // Set vectors for points in structured points // vectors should be a vtkDataArray containing the vectors for each point spoints->GetPointData()->SetVectors(vectors); // Tell the glyph what we want to use as input glyph->SetInput(spoints); // Tell the glyph what shape we want placed at each point of input glyph->SetSource(line->GetOutput()); // Tell the glyph to orient all source objects glyph->OrientOn(); //Tell the glyph to orient by vector glyph->SetVectorModeToUseVector(); // Tell the glyph to scale by vector // can alternatively call ScalingOff() to make all lines the same length glyph->SetScaleModeToScaleByVector(); // And also to colour by vector glyph->SetColorModeToColorByVector(); // Make sure all those orders took effect glyph->Update(); // Now make an LUT vtkLookupTable *lut = vtkLookupTable::New(); lut->SetHueRange(0.667, 0.0); // map to graphics library vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(glyph->GetOutput()); // minScalar, maxScalar should correspond to min and max vector magnitude in // input vector data map->SetScalarRange(minScalar, maxScalar); lut->SetRange(minScalar, maxScalar); map->SetLookupTable(lut); // actor coordinates geometry, properties, transformation vtkActor *aGlyph = vtkActor::New(); aGlyph->SetMapper(map); And so on. Phil From krs@cs.uncc.edu Sat Aug 24 14:57:07 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Sat, 24 Aug 2002 09:57:07 -0400 Subject: [vtkusers] vtk book out of print?? References: <9c.24ea92e4.2a982b9a@aol.com> Message-ID: <3D6790B3.6828064@cs.uncc.edu> I have a visualization course scheduled next semester, too, and this worries me.. as I usually use VTK for the course projects.. havent researched this recently, is there an alternate text thats at least as comprehensive? -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From krs@cs.uncc.edu Sat Aug 24 15:23:08 2002 From: krs@cs.uncc.edu (K.R.Subramanian) Date: Sat, 24 Aug 2002 10:23:08 -0400 Subject: [vtkusers] Coloring HedgeHog vectors References: <20020824103803.8838C1AB40@public.kitware.com> <200208241306.02302.p.cook@cs.ucl.ac.uk> Message-ID: <3D6796CC.3EC54DE6@cs.uncc.edu> Philip Cook wrote: > On Saturday 24 August 2002 11:37, vtkusers-request@public.kitware.com wrote: > > I am using vtkHedgehog to visualize vector data from a > > structured grid data set. I would like the color of the > > vector line to be scaled to the length of the vector, and > > not a particular scalar component of the vector. How do I pull this > > off? Various combinations of inputs to the vtkHedgehog or the > > polydatamapper have given solid colors, but not a color > > scale. It sounds like he wants the magnitude of the vector to control the color, but this is what vtkHedgehog does by default, from the docs. You have to work harder to get a component of the vector to be the scalars that are used to control the color. -- krs > > > > > Jess Neri > > I'm not sure if you want each line to have multiple colours (I don't know how > to do that). > > If you want to colour each line with one colour that is determined by its > vector magnitude, you can use vtkGlyph3D. This class will place an oriented > glyph (in our case a line, but it can be any polygonal shape) at each point > in an input dataset. You can scale and colour by vector, normal, or scalar > values. > > // make a line for our glyph > vtkLineSource *line = vtkLineSource::New(); > > line->SetPoint1(0.0f, 0.0f, 0.0f); > line->SetPoint2(1.0f, 0.0f, 0.0f); > > line->Update(); > > vtkGlyph3D *glyph = vtkGlyph3D::New(); > > // Set vectors for points in structured points > // vectors should be a vtkDataArray containing the vectors for each point > spoints->GetPointData()->SetVectors(vectors); > > // Tell the glyph what we want to use as input > glyph->SetInput(spoints); > > // Tell the glyph what shape we want placed at each point of input > glyph->SetSource(line->GetOutput()); > > // Tell the glyph to orient all source objects > glyph->OrientOn(); > > //Tell the glyph to orient by vector > glyph->SetVectorModeToUseVector(); > > // Tell the glyph to scale by vector > // can alternatively call ScalingOff() to make all lines the same length > glyph->SetScaleModeToScaleByVector(); > > // And also to colour by vector > glyph->SetColorModeToColorByVector(); > > // Make sure all those orders took effect > glyph->Update(); > > // Now make an LUT > vtkLookupTable *lut = vtkLookupTable::New(); > lut->SetHueRange(0.667, 0.0); > > // map to graphics library > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > map->SetInput(glyph->GetOutput()); > > // minScalar, maxScalar should correspond to min and max vector magnitude in > // input vector data > map->SetScalarRange(minScalar, maxScalar); > lut->SetRange(minScalar, maxScalar); > map->SetLookupTable(lut); > > // actor coordinates geometry, properties, transformation > vtkActor *aGlyph = vtkActor::New(); > aGlyph->SetMapper(map); > > And so on. > > Phil > _______________________________________________ > 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 -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs@cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From Sammy" I practice 3D Medical Imaging in The Visualization Toolkit at 507 page.

The source code is
(Visual C++)
// extract the skin
skinExtractor = vtkMarchingCubes::New();
skinExtractor->SetInput(v16->GetOutput());
skinExtractor->SetValue(0, 500);
skinMapper = vtkPolyDataMapper::New();
skinMapper->SetInput(skinExtractor->GetOutput());
skinMapper->ScalarVisibilityOff();
skin = vtkActor::New();
skin->SetMapper(skinMapper);

But when I compiled it, I failed..

Linking...
Win32Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkMarchingCubes::SetValue(int,float)" (__imp_?SetValue@vtkMarchingCubes@@QAEXHM@Z)
Win32Cone.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkMarchingCubes * __cdecl vtkMarchingCubes::New(void)" (__imp_?New@vtkMarchingCubes@@SAPAV1@XZ)
Debug/vtkwin32.exe : fatal error LNK1120: 2 unresolved externals
Error executing link.exe.

WhatˇŻs the problemˇ¦?
I checked ˇ° skinExtractor->SetValue(0, 500); ˇ±
I think parameters are rightˇ¦
How can I correct the errors?
I donˇŻt understand the errors; unresolved externals.
I need your help~

Sammy


"żě¸® ŔÎĹÍłÝ, Daum" http://www.daum.net
şü¸Ł´Ů! ĆíÇĎ´Ů! Daum¸Ţ˝ĹŔú
¸ĹŔϸĹŔĎ ľ˛°í °č˝ĂÁŇ?
DaumżŁĹÍÄ«µĺ
DaumȸżřŔÇ ÇĘĽöǰ! żÂżŔÇÁ ĂÖ°íŔÇ ÇýĹĂŔ» ´©¸®ŔÚ!
From reichl@ifb.tu-graz.ac.at Sun Aug 25 12:41:33 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Sun, 25 Aug 2002 12:41:33 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1204 - 4 msgs Message-ID: <122A10441A@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From PS7278514B@ntu.edu.sg Sun Aug 25 12:07:54 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sun, 25 Aug 2002 19:07:54 +0800 Subject: [vtkusers] help Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259A9@mail02.student.main.ntu.edu.sg> Hi: I use the window NT based computer & VC6.0 compiler. I meet the problem in Visualizeing Image & Volume Rendering: The source code below: #include "vtkImageReader.h" #include "vtkImageGradient.h" #include "vtkImageViewer.h" int main(int argc, char *argv[]) { vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("c:/Vtkdata/Data/headsq/quarter");//from = manual reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,63,0,63,1,93); reader->SetDataMask(0x7ff); vtkImageGradient *gradient=3DvtkImageGradient::New(); gradient->SetInput(reader->GetOutput()); gradient->SetDimensionality(3); vtkImageViewer *viewer=3DvtkImageViewer::New(); viewer->SetInput(gradient->GetOutput()); viewer->SetZSlice(22); viewer->SetColorWindow(400); viewer->SetColorLevel(0); viewer->Render(); viewer->Delete(); =20 return 0; } could the vtkImageViewer class bind with: vtkRenderer* ren=3DvtkRenderer::New(); ren-> SetBackground (1,1,1); vtkRenderWindow* renWin=3DvtkRenderWindow::New(); renWin-> AddRenderer(ren); renWin-> SetSize(500,500); vtkRenderWindowInteractor* iren=3DvtkRenderWindowInteractor::New(); iren-> SetRenderWindow(renWin); so the renderering can permanently show. thanks very much. my e-mail address is : ps7278514b@ntu.edu.sg ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Sun Aug 25 13:09:52 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sun, 25 Aug 2002 20:09:52 +0800 Subject: [vtkusers] vtkImageReader Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259AA@mail02.student.main.ntu.edu.sg> Dear all: I use the window NT based computer & VC6.0 compiler. I also meet the problem in Visualizeing Image & Volume Rendering: The source code below: #include "vtkImageViewer.h" #include "vtkImageReader.h" #include "vtkImageMagnify.h" #include "vtkImageShrink3D.h" #include "vtkImageGradient.h" #include "vtkImageDataStreamer.h" int main(int argc, char *argv[]) { int i,j; vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("c:/Vtkdata/Data/headsq/quarter");//from manual reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,255, 0,255, 1,93); reader->SetDataMask(0x7ff); vtkImageMagnify *mag=3DvtkImageMagnify::New(); mag->SetInput(reader->GetOutput()); mag->SetMagnificationFactors (3,3,1); vtkImageGradient *grad=3DvtkImageGradient::New(); grad->SetInput(mag->GetOutput()); grad->SetDimensionality(3); vtkImageShrink3D *shrink=3DvtkImageShrink3D::New(); shrink->SetInput(grad->GetOutput()); shrink->SetShrinkFactors(3,3,1); vtkImageDataStreamer *ids=3DvtkImageDataStreamer::New(); ids->SetInput(shrink->GetOutput()); ids->SetNumberOfStreamDivisions(20) ; ids->UpdateWholeExtent(); vtkImageViewer *viewer=3DvtkImageViewer::New(); viewer->SetInput(ids->GetOutput()); viewer->SetColorLevel(0); viewer->SetColorWindow(200); //interact with data for (j=3D0;j<10;j++) { for (i=3D0;i<93;i++) { viewer->SetZSlice(i); viewer->Render(); } } // clean up viewer->Delete(); reader->Delete(); grad->Delete(); shrink->Delete(); mag->Delete(); return 0; } when I execute the program,it happened warnning. I change the reader->SetDataExtent(0,255, 0,255, 1,93); To reader->SetDataExtent(0,63, 0,63, 1,93); the warning solved. Question1: The (Xmin, Xmax,Ymin,Ymax,Zmin,Zmax) means Millimeter? Question2:The Maxmum Value can not extend(the User'sGuide says can)? How the upper program bind with: vtkRenderer* ren=3DvtkRenderer::New(); ren-> SetBackground (1,1,1); vtkRenderWindow* renWin=3DvtkRenderWindow::New(); renWin-> AddRenderer(ren); renWin-> SetSize(500,500); vtkRenderWindowInteractor* iren=3DvtkRenderWindowInteractor::New(); iren-> SetRenderWindow(renWin); so the renderering can permanently show. thanks very much. my e-mail address is : ps7278514b@ntu.edu.sg ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Sun Aug 25 14:25:37 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sun, 25 Aug 2002 21:25:37 +0800 Subject: [vtkusers] (no subject) Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259AD@mail02.student.main.ntu.edu.sg> Dear All: I am the new VTK user. I use the window NT based computer & VC6.0 = compiler. I want to generate the Volume modelling using the source of a stack CT = or only the headsq which Kitware Supplyed. First, I want to read the image data. Second, I will generate the = structure as Volume with the same scalar of the importing data (like = generate the scalar of 255 as the bone structure). Third, the Model will = show in the window. Could anyone share the C++ program source or idea about it? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From Sammy" Hi you guys,

I want to use vtk2.4 to practice examples.
I installed ˇ°vtk24cpp.exeˇ± from ftp://public.kitware.com/pub/vtk/vtk2.4/
In vtk40, CMake supports to make examples and I have experience it.
I think ˇ°pcmaker in vtk24 folderˇ± is the same as CMake, does it?

I want to make examples using pcmaker.
Please let me know the procedure.
I use Visual C++ 6.0.
How can I setup the options: directory, library?

Sammy


"żě¸® ŔÎĹÍłÝ, Daum" http://www.daum.net
şü¸Ł´Ů! ĆíÇĎ´Ů! Daum¸Ţ˝ĹŔú
¸ĹŔϸĹŔĎ ľ˛°í °č˝ĂÁŇ?
DaumżŁĹÍÄ«µĺ
DaumȸżřŔÇ ÇĘĽöǰ! żÂżŔÇÁ ĂÖ°íŔÇ ÇýĹĂŔ» ´©¸®ŔÚ!
From aks01@doc.ic.ac.uk Sun Aug 25 21:27:09 2002 From: aks01@doc.ic.ac.uk (Alia) Date: Sun, 25 Aug 2002 21:27:09 +0100 (BST) Subject: [vtkusers] trouble with thin plate spline transform (please help!!) In-Reply-To: <20020825103804.1C5111AB47@public.kitware.com> Message-ID: Hello, I was hoping someone could help me regarding thin plate spline transforms (code follows the end of this mail) I have two 3d models of a face, and a list of corresponding points on each model. I am trying to find the thin plate spline transform bewtween the two models, then pass it to the first model, to see if it will correctly produce the second model. However when I do this, the effect is as though I had 'steamrollered' the face - it becomes completely flattened, from the side on. Using the source landmarks as both source and target data produces an (unchanged) 3d image, so I dont know if its my dataset or the way I'm applying the warp at fault. Either way I think I've just misunderstood how to use the function. (I'm following the ThinPlateSpline example from the kitware man pages) If anyone has any suggestions as to where this is going wrong, I would be extremely grateful. Thanks! Alia //******************CODE******************* //SOURCE LANDMARK POINTS vtkPoints* Sp1 = vtkPoints::New(); Sp1-> SetNumberOfPoints(25); //Sp1-> SetPoint( 0, 0, 0, 0); Sp1-> SetPoint( 0, 178.552, 505.336, 0.587569); Sp1-> SetPoint( 1, 178.552, 505.336, 0.587569); Sp1-> SetPoint( 2, 219.822, 475.996, 0.346727); Sp1-> SetPoint( 3, 215.346, 503.522, 0.529492); Sp1-> SetPoint( 4, 210.153, 504.513, 0.671797); Sp1-> SetPoint( 5, 222.091, 477.032, 0.856578); Sp1-> SetPoint( 6, 233.848, 484.04, 0.388976); Sp1-> SetPoint( 7, 233.78, 489.953, 0.429802); Sp1-> SetPoint( 8, 229.159, 493.521, 0.449271); Sp1-> SetPoint( 9, 229.134, 496.219, 0.46988); Sp1-> SetPoint( 10, 233.536, 496.394, 0.511361); Sp1-> SetPoint( 11, 228.196, 500.614, 0.693835); Sp1-> SetPoint( 12, 228.065, 499.355, 0.714371); Sp1-> SetPoint( 13, 223.389, 499.312, 0.734568); Sp1-> SetPoint( 14, 227.619, 493.607, 0.775678); Sp1-> SetPoint( 15, 231.807, 484.082, 0.816502); Sp1-> SetPoint( 16, 247.343, 491.885, 0.491815); Sp1-> SetPoint( 17, 246.295, 493.429, 0.715644); Sp1-> SetPoint( 18, 270.413, 476.406, 0.514177); Sp1-> SetPoint( 19, 274.666, 476.693, 0.596224); Sp1-> SetPoint( 20, 274.247, 472.686, 0.697853); Sp1-> SetPoint( 21, 300.117, 430.763, 0.519777); Sp1-> SetPoint( 22, 304.981, 423.321, 0.579194); Sp1-> SetPoint( 23, 304.981, 423.321, 0.579194); Sp1-> SetPoint( 24, 304.828, 415.138, 0.678476); //TEST, SOURCE POINTS AGAIN, USED FOR TARGET POINTS //(GIVES UNWARPED 3D IMAGE) vtkPoints* Tp1 = vtkPoints::New(); Tp1-> SetNumberOfPoints(25); //Tp1-> SetPoint( 0, 0, 0, 0); Tp1-> SetPoint( 0, 178.552, 505.336, 0.587569); Tp1-> SetPoint( 1, 178.552, 505.336, 0.587569); Tp1-> SetPoint( 2, 219.822, 475.996, 0.346727); Tp1-> SetPoint( 3, 215.346, 503.522, 0.529492); Tp1-> SetPoint( 4, 210.153, 504.513, 0.671797); Tp1-> SetPoint( 5, 222.091, 477.032, 0.856578); Tp1-> SetPoint( 6, 233.848, 484.04, 0.388976); Tp1-> SetPoint( 7, 233.78, 489.953, 0.429802); Tp1-> SetPoint( 8, 229.159, 493.521, 0.449271); Tp1-> SetPoint( 9, 229.134, 496.219, 0.46988); Tp1-> SetPoint( 10, 233.536, 496.394, 0.511361); Tp1-> SetPoint( 11, 228.196, 500.614, 0.693835); Tp1-> SetPoint( 12, 228.065, 499.355, 0.714371); Tp1-> SetPoint( 13, 223.389, 499.312, 0.734568); Tp1-> SetPoint( 14, 227.619, 493.607, 0.775678); Tp1-> SetPoint( 15, 231.807, 484.082, 0.816502); Tp1-> SetPoint( 16, 247.343, 491.885, 0.491815); Tp1-> SetPoint( 17, 246.295, 493.429, 0.715644); Tp1-> SetPoint( 18, 270.413, 476.406, 0.514177); Tp1-> SetPoint( 19, 274.666, 476.693, 0.596224); Tp1-> SetPoint( 20, 274.247, 472.686, 0.697853); Tp1-> SetPoint( 21, 300.117, 430.763, 0.519777); Tp1-> SetPoint( 22, 304.981, 423.321, 0.579194); Tp1-> SetPoint( 23, 304.981, 423.321, 0.579194); Tp1-> SetPoint( 24, 304.828, 415.138, 0.678476); //CORRESPONDING TARGET LANDMARK POINTS //(PRODUCE FLATTENED IMAGE) vtkPoints* Tp2 = vtkPoints::New(); Tp2-> SetNumberOfPoints(25); //Tp2-> SetPoint( 0, 0, 0, 0); Tp2-> SetPoint( 0, 178.501, 504.663, 0.587356); Tp2-> SetPoint( 1, 178.501, 504.663, 0.587356); Tp2-> SetPoint( 2, 219.813, 475.771, 0.346861); Tp2-> SetPoint( 3, 215.402, 502.522, 0.509251); Tp2-> SetPoint( 4, 210.17, 504.878, 0.672354); Tp2-> SetPoint( 5, 222.078, 476.633, 0.856691); Tp2-> SetPoint( 6, 238.372, 488.552, 0.430278); Tp2-> SetPoint( 7, 233.85, 484.143, 0.389087); Tp2-> SetPoint( 8, 233.82, 487.281, 0.409283); Tp2-> SetPoint( 9, 238.178, 494.076, 0.491318); Tp2-> SetPoint( 10, 233.535, 496.318, 0.51113); Tp2-> SetPoint( 11, 232.47, 496.046, 0.735303); Tp2-> SetPoint( 12, 228.3, 500.881, 0.673786); Tp2-> SetPoint( 13, 232.315, 493.501, 0.755316); Tp2-> SetPoint( 14, 223.208, 496.647, 0.754803); Tp2-> SetPoint( 15, 231.815, 484.444, 0.816477); Tp2-> SetPoint( 16, 238.252, 492.808, 0.471113); Tp2-> SetPoint( 17, 246.172, 490.505, 0.736029); Tp2-> SetPoint( 18, 270.415, 476.298, 0.514539); Tp2-> SetPoint( 19, 274.676, 476.138, 0.596509); Tp2-> SetPoint( 20, 283.955, 450.626, 0.739343); Tp2-> SetPoint( 21, 300.575, 423.86, 0.484908); Tp2-> SetPoint( 22, 304.743, 426.315, 0.599277); Tp2-> SetPoint( 23, 304.743, 426.315, 0.599277); Tp2-> SetPoint( 24, 294.645, 414.154, 0.759259); //have reader read in source obj file vtkOBJReader *reader1 = vtkOBJReader::New(); reader1->SetFileName("DATA/0001_SURFACE123.OBJ"); string inputTEXnameSOURCE = "DATA/0001_SURFACE123.BMP"; vtkBMPReader *readerBmp1 = vtkBMPReader::New(); readerBmp1->SetFileName(inputTEXnameSOURCE.c_str()); vtkTexture *atext1 = vtkTexture::New(); atext1->SetInput(readerBmp1->GetOutput()); atext1->InterpolateOn(); std::cout <<"Performing Thin Plate Spline Transform" << endl; vtkThinPlateSplineTransform* tpst = vtkThinPlateSplineTransform::New(); //tpst->Modified(); tpst->SetSourceLandmarks(Sp1); // tpst->SetTargetLandmarks(Tp1); TEST uncomment this to test with same source & target points tpst->SetTargetLandmarks(Tp2); tpst->SetBasisToR(); //tpst->Update(); std::cout <<"Warp complete" << endl; //IF YOU WANT TO DO INVERSE!!! vtkGeneralTransform* tpstconcat = vtkGeneralTransform::New(); tpstconcat->SetInput(tpst); tpstconcat->Concatenate(tpst->GetInverse()); tpstconcat->Concatenate(tpst); vtkTransformPolyDataFilter* warp = vtkTransformPolyDataFilter::New(); warp->SetInput(reader1->GetOutput()); warp->SetTransform(tpstconcat); vtkPolyDataMapper* mapper = vtkPolyDataMapper::New(); mapper->SetInput(warp->GetOutput()); vtkActor* actor = vtkActor::New(); // actor->SetUserTransform(A LINER TRANSFORM); actor->SetMapper(mapper); actor->SetTexture(atext1); actor->GetProperty()->SetOpacity(1); actor->GetProperty()->SetInterpolationToGouraud(); actor->GetProperty()->SetColor (215, 215, 237); actor->GetProperty()->SetRepresentationToWireframe(); // create a rendering window and renderer vtkRenderer *ren = vtkRenderer::New(); vtkRenderWindow *renWindow = vtkRenderWindow::New(); renWindow->AddRenderer(ren); vtkRenderWindowInteractor *RWInteractor = vtkRenderWindowInteractor::New(); RWInteractor->SetRenderWindow(renWindow); ren->AddActor(actor); ren->SetBackground(0,0,0); renWindow->SetSize(400, 400); renWindow->Render(); RWInteractor->Start(); std::cout << "You can use the mouse to interact with the surface" << endl; --------------------------------------------------------- To lift an autumn hair is no sign of great strength; To see the sun and moon is no sign of sharp sight; To hear the noise of thunder is no sign of a quick ear. -Sun Tzu on The Art Of War --------------------------------------------------------- From a.maclean@acfr.usyd.edu.au Mon Aug 26 07:45:56 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Mon, 26 Aug 2002 16:45:56 +1000 Subject: [vtkusers] Removing properties from an actor. Message-ID: <013401c24ccc$3ac45560$88d24e81@acfr.usyd.edu.au> Is there a method to reset the property of an actor to its default? =A0 Currently I create a vtkProperty object and do something like this. =A0 =A0 =A0=A0=A0=A0=A0 singleActor->Delete(); =A0=A0=A0=A0=A0 singleActor =3D vtkActor::New(); =85 if ( Property.active ) =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 singleActor->SetProperty(property); =85=A0=A0=A0=A0=20 =A0 If Property.active is false I want it to revert to the default property for the actor. =A0 Is there a better way than this? I am uneasy about continually deleting and recreating the actor. =A0 =A0 Thanks =A0=A0=A0 Andrew =A0 ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney=A0 2006=A0 NSW AUSTRALIA =A0 Room:=A0 106 Phone: +61 2 9351 3283 Fax:=A0=A0 +61 2 9351 7474 =A0=A0=A0=A0=A0=A0 http://www.acfr.usyd.edu.au/ =A0 ___________________________________________ =A0 From baudet@ondim.fr Mon Aug 26 08:01:43 2002 From: baudet@ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Mon, 26 Aug 2002 09:01:43 +0200 Subject: [vtkusers] Plan for a new release? Message-ID: <010e01c24cce$6f6243c0$1c00a8c0@muscles> Hi VTK stuff, Do you plan to release soon a new stable version of VTK, I mean other than the nightly build. Because it seems that between the 4.0 and the nightly one, there is more and more difference now. Thanks a lot. R=E9my Baudet ONDIM - Signal | Image | Multim=E9dia Email : baudet@ondim.fr T=E9l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris From gregory.bleiker@phonak.ch Mon Aug 26 09:16:25 2002 From: gregory.bleiker@phonak.ch (Gregory Bleiker) Date: Mon, 26 Aug 2002 10:16:25 +0200 Subject: Antw: [vtkusers] gcc linker errors with vtk 4.0 Message-ID: Hi Valentin I have noticed that the sequence of the way you include the library is = important. I have posted a mail about this but nobody seemed to be able to = relate to the problem, which makes me think that not that many people are = actually doing this; anyway, here's the library sequence that worked for = me: -lvtkIO -lvtkRendering -lvtkGraphics -IvtkImaging -lvtkjpeg -lvtkpng = -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32 Hope this helps... Greetings Gregi From s011124@student.dtu.dk Mon Aug 26 10:36:53 2002 From: s011124@student.dtu.dk (Javier Maicas Sebastian) Date: Mon, 26 Aug 2002 11:36:53 +0200 (METDST) Subject: [vtkusers] Erase surfaces Message-ID: Hello vtkusers: I am creating surfaces with marching cubes and I want to erase some of the created surfaces. I am trying with drawing again the surface I do not want but with the background color, but it does not work because the color of the surface is not really the color of the background. The code I use is: ... skin->GetProperty()->SetDiffuseColor(1, 1, 1); ... outline->GetProperty()->SetColor(1,1,1); How can I manage it? Thanks Javi From poecher@icom-consulting.de Mon Aug 26 11:10:16 2002 From: poecher@icom-consulting.de (Christian Poecher) Date: Mon, 26 Aug 2002 12:10:16 +0200 Subject: [vtkusers] Erase surfaces References: Message-ID: <3D69FE88.7090307@icom-consulting.de> Javier Maicas Sebastian wrote: > I am creating surfaces with marching cubes and I want to erase some of the > created surfaces. I am trying with drawing again the surface I do not want > but with the background color, but it does not work because the color of > the surface is not really the color of the background. The code I use is: > > ... > skin->GetProperty()->SetDiffuseColor(1, 1, 1); > ... > outline->GetProperty()->SetColor(1,1,1); skin->VisibilityOff(); outline->VisibilityOff(); should work and also save you rendering time. cheers, chris -- ________________________________________________________________________ Christian Poecher mailto:poecher@icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From robbel@science.uva.nl Mon Aug 26 12:19:01 2002 From: robbel@science.uva.nl (Robert Belleman) Date: Mon, 26 Aug 2002 13:19:01 +0200 Subject: [vtkusers] vtk book out of print?? In-Reply-To: <9c.24ea92e4.2a982b9a@aol.com>; from Gharrison9@aol.com on Fri, Aug 23, 2002 at 08:21:46PM -0400 References: <9c.24ea92e4.2a982b9a@aol.com> Message-ID: <20020826131901.A31031@lanier.science.uva.nl> Same here; our publisher-contact confirms the Vtk book is out of print. The bookstores around here (the Netherlands) only have a few copies left and we are starting our "scientific visualization and virtual reality" course this semester for 20 to 25 students. Are there other people out there that lecture scientific visualization and can recommend a good book? Thanks in advance, -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel@science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From s011124@student.dtu.dk Mon Aug 26 12:55:20 2002 From: s011124@student.dtu.dk (Javier Maicas Sebastian) Date: Mon, 26 Aug 2002 13:55:20 +0200 (METDST) Subject: [vtkusers] Drawing smooth surfaces Message-ID: Hello vtkusers: I want to draw smooth surfaces. I have all points that belong to the surface in the discrete domain of a 3D image. How can I load these points in vtk and process them to get a smooth surface? Like the one that I would obtain applying marching cubes to a volume. Thanks Javi _______________________________________________ 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 platonic@mail.hz.zj.cn Mon Aug 26 14:12:22 2002 From: platonic@mail.hz.zj.cn (=?ISO-8859-1?Q?=B7=E2=C4=FE?=) Date: Mon, 26 Aug 2002 21:12:22 +0800 Subject: [vtkusers] a question! Message-ID: <20020826131318.F16C51AA40@public.kitware.com> Dear Vtk Community: I have a question about visualizing a struturedgrid(50*50*50), each voxel in the grid may have a different color and changing from time to time. how can do it? ps. i am programming in VC++; thanks a lot! fengning platonic@mail.hz.zj.cn From bertvansesamstraat@hotmail.com Mon Aug 26 14:44:22 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Mon, 26 Aug 2002 13:44:22 +0000 Subject: [vtkusers] Help! Picking Points Message-ID: Dear all, Can anyone please send me a tcl-example of how I can pick points in a 2D-image when i push a mouse button or a key on the keyboard. I'm interested in (x,y)-positions. I tried it but I did not succeed. _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From daniele.bianchini@menci.com Mon Aug 26 17:34:31 2002 From: daniele.bianchini@menci.com (Daniele Bianchini) Date: Mon, 26 Aug 2002 18:34:31 +0200 Subject: [vtkusers] Level Of Detail Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0013_01C24D2F.37DA99F0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I have to render a vtkDataSet using various LODs. Wich is the best way to do that? Thank you in advance for any help. ------=_NextPart_000_0013_01C24D2F.37DA99F0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I have = to render a=20 vtkDataSet using various LODs.
Wich is the best way to do = that?
 
Thank = you in advance=20 for any help.
------=_NextPart_000_0013_01C24D2F.37DA99F0-- From xtalswing@yahoo.com Mon Aug 26 18:21:19 2002 From: xtalswing@yahoo.com (P K) Date: Mon, 26 Aug 2002 10:21:19 -0700 (PDT) Subject: [vtkusers] vtkImageImport array format Message-ID: <20020826172119.17421.qmail@web12904.mail.yahoo.com> What is the format for data being passed to vtkImageImport? I'm trying to import a set of (x,y,z,i) values using vtkImageImport. I'm currently storing the intensity values in double * indexed as [x*ysize*zsize+y*zsize+z]. vtkImageImport *SourceImport = vtkImageImport::New(); SourceImport->SetDataScalarTypeToDouble(); SourceImport->SetDataExtent(source->origin[0],source->size[0],source->origin[1],source->size[1],source->origin[2],source->size[2]); SourceImport->SetImportVoidPointer(srcptr); This approach seems to result in an exception being thrown down the line. Previous postings on the vtkusers list refer to an example on the use of vtkImageImport, but such doesn't appear to be included in the current release. What would be the correct way to import this data set? Thanks, --Peter __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From nundys@neuro.duke.edu Mon Aug 26 19:43:11 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Mon, 26 Aug 2002 14:43:11 -0400 Subject: [vtkusers] vtk on Mac OS X 10.2 Jaguar Message-ID: Hello, I have been able to build the latest CVS version of VTK successfully using both Carbon and Cocoa APIs on OS X 10.2 ("Jaguar") using gcc 3.1. However, when I try to run TimeRenderer or use my own programs, no new windows appear. Has anyone else had this problem and do they have a solution? Thanks, Surajit Nundy From apbai@yahoo.com Mon Aug 26 19:40:05 2002 From: apbai@yahoo.com (P Bai) Date: Mon, 26 Aug 2002 11:40:05 -0700 (PDT) Subject: [vtkusers] Speed question Message-ID: <20020826184005.67235.qmail@web12904.mail.yahoo.com> I once had the similiar problem with Matrox video card. Two things you might want to try: - Download the newest driver from Matrox website. - Set the display mode from 24bit to 32bit (That may improve a lot) But I still would like to say Matrox 450/550 sux! A cheaper ATI could easily beat it. ---------------------------------------------------- Hello list, I've done a VTK application where I display dome vtkActor s on my own window. I made my own user interactions functions, by geting mouse positions and everything else. Everything goes nice and fast on my computer: - Windows 2000, Pentium IV 2GH, 1Mb Ram, nVidia Quadro2 EX Now, when i run into a different computer - Windows 2000, Pentium IV 2GH, 1Mb Ram, Matrox Milenum 6450 Dual Head it is TOO SLOW. Why can that happen? Thank you in advace. Andres __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From anast.jm@pg.com Mon Aug 26 21:17:50 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 26 Aug 2002 16:17:50 -0400 Subject: [vtkusers] Drawing smooth surfaces Message-ID: Javi, you should be able to read your points in using vtkImageReader and process with vtkMarchingCubes, smooth and decimate if needed, see smoothFran.tcl for ideas on how to do most of this. If I misunderstood your data set and you have a 2D image with height as intensity (height image) then look at ImageWarp.tcl which makes use of vtkWarpScalars to create the surface from the image data.....john Received from host: public.kitware.com [24.97.130.19] From: "Javier Maicas Sebastian" @public.kitware.com on 08/26/2002 01:55 PM ZE2 "Javier Maicas Sebastian" To: vtkusers@public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Drawing smooth surfaces Sent by: vtkusers-admin@public.kitware.com 08/26/2002 07:55 AM Hello vtkusers: I want to draw smooth surfaces. I have all points that belong to the surface in the discrete domain of a 3D image. How can I load these points in vtk and process them to get a smooth surface? Like the one that I would obtain applying marching cubes to a volume. Thanks Javi From patrick.gendron@nrc.ca Mon Aug 26 21:43:52 2002 From: patrick.gendron@nrc.ca (Gendron, Patrick) Date: Mon, 26 Aug 2002 16:43:52 -0400 Subject: [vtkusers] Incomplete shape inside Message-ID: <8F419A9A5A98D611AF8D0004AC4CA41E6A8286@nrcbouex1.imi.nrc.ca> HI everybody, I have drawn a 3D box with a vtkUnstructuredGrid containing 2000 tetrahedrons. All outside surfaces are perfectly displayed, but if I place the camera inside or I add a ClippingPlane to see inside the box, it appears to be empty, all tetrahedrons that are supposed to be inside are invisible. Is there anyone who knows how to tell to VTK that I want them to be displayed? Thanks Patrick Gendron patrick.gendron@nrc.ca From dreed@capital.edu Mon Aug 26 22:23:28 2002 From: dreed@capital.edu (Dave Reed) Date: Mon, 26 Aug 2002 17:23:28 -0400 Subject: [vtkusers] Re: compiling vtk nightly or 4.0 with Python on Solaris 2.7 In-Reply-To: <3D665FAB.7080506@imaging.robarts.ca> (message from Hua Qian on Fri, 23 Aug 2002 12:15:39 -0400) References: <200208231451.g7NEpA830353@localhost.localdomain> <3D665FAB.7080506@imaging.robarts.ca> Message-ID: <200208262123.g7QLNS409243@localhost.localdomain> The problem appears to be that cmak1.4.3 didn't include the -G flag that gcc (at least gcc 2.95.3 on Solaris) requires to link properly. Once I added that, it worked. Thanks, Dave > I compiled vtk nightly (July 15) with Python2.2 successfully on Solaris > 2.7, > I was using Sun compiler, though. Anyway, I attached my CMakeCache.txt > file for your reference. I used cvs CMake (Again, July 15). > > Hua > > Dave Reed wrote: > > >I know there was a thread about Python support on Solaris recently and > >I've reread it, but I still can't get it to work now. I used to have > >Python working on Solaris, but we've since installed a newer version > >of Python and I can't seem to get it to work now. > > > >I get lots of errors like this while compiling: > > > >PyEval_RestoreThread 0x2530 /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) > >PyEval_RestoreThread 0x25ac /usr/local/lib/python2.2/config/libpython2.2.a(fileobject.o) > > > >and it finally stops with: > > > >ld: fatal: relocations remain against allocatable but non-writable sections > >collect2: ld returned 1 exit status > >make[3]: *** [/tmp/VTK/bin/libvtkCommonPython.so] Error 1 > >make[2]: *** [default_target] Error 2 > >make[1]: *** [default_target_Common] Error 2 > >make: *** [default_target] Error 2 > > > >I've tried both with shared libraries turned on and off, but it still > >doesn't work. Can anyone with VTK compiled with Python support on > >Solaris share their CMakeCache.txt file so I can see what settings I > >might be missing. > > > >This is with gcc 2.95.3 which is what I previously used to compile > >both Python and VTK. I also updated to cmake 1.4 which appeared to be > >necessary to use the nightly version. > > > >Thanks, > >Dave Dave From anast.jm@pg.com Mon Aug 26 22:35:58 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Mon, 26 Aug 2002 17:35:58 -0400 Subject: [vtkusers] CVS Build error with vtkVolumeProVG500Mapper - multiply defined symbols Message-ID: I'm still getting these errors for the last weeks worth of CVS update builds on WinNT - VC++6. The nightly dashboard looks okay??? Are any of the dashboards built with VolPro enabled? Any help please (now begging on knees)...john ============== Linking... vtkVolumeProVG500Mapper.obj : error LNK2005: "class vtkObject * __cdecl vtkInstantiatorvtkVolumeProMapperNew(void)" (?vtkInstantiatorvtkVolumeProMapperNew@@YAPAVvtkObject@@XZ) already defined in vtkVolumeProMapper.obj vtkVolumeProVG500Mapper.obj : warning LNK4006: "class vtkObject * __cdecl vtkInstantiatorvtkVolumeProMapperNew(void)" (?vtkInstantiatorvtkVolumeProMapperNew@@YAPAVvtkObject@@XZ) already defined in vtkVolumeProMapper.obj; second definition ignored Creating library P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.lib and object P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.exp P:\WinCVS\vtk40\VTKbin\bin\Release/vtkRendering.dll : fatal error LNK1169: one or more multiply defined symbols found Error executing link.exe. ALL_BUILD - 2 error(s), 1 warning(s) From malat@free.fr Mon Aug 26 23:31:45 2002 From: malat@free.fr (Mathieu Malaterre) Date: Tue, 27 Aug 2002 00:31:45 +0200 Subject: [vtkusers] vtkHedgeHog / vtkGlyph2D Message-ID: <3D6AAC51.3080504@free.fr> Hi everyone, I wanted to generate a 2D vector field. But I couldn' find any help to do this. Could someone help me ? I tried with vtkGlyph2D but I used a vtkStructuredPoints and the vectors are stored in the Scalars part and not the vector part of vtkStrucutredPoints. And if I want to copy one in another there still a problem because a vector is supposed to have 3 dimensions...any one any idea ? thanks a lot mathieu From Jon.H.Kaspersen@unimed.sintef.no Tue Aug 27 07:03:35 2002 From: Jon.H.Kaspersen@unimed.sintef.no (Jon Harald Kaspersen) Date: Tue, 27 Aug 2002 08:03:35 +0200 Subject: [vtkusers] vtk on Mac OS X 10.2 Jaguar In-Reply-To: Message-ID: --Apple-Mail-8-581407744 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed Hi Surajit, Try to add -Xlinker -bind_at_load when linking the tests (TimeRenderer) and your own programs Regards Jon On Monday, August 26, 2002, at 08:43 PM, Surajit Nundy wrote: > Hello, > I have been able to build the latest CVS version of VTK successfully > using both Carbon and Cocoa APIs on OS X 10.2 ("Jaguar") using gcc > 3.1. However, when I try to run TimeRenderer or use my own programs, > no new windows appear. Has anyone else had this problem and do they > have a solution? > > Thanks, > Surajit Nundy > > _______________________________________________ > 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 > > ======================================================== Jon Harald Kaspersen Tel: +47 73 59 75 89 Ph.D. Mechanical Engineering Mob: +47 93 03 65 90 Senior Scientist Pager +47 96 84 29 94 SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73 N-7465 Trondheim NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no WEB: http://www.us.unimed.sintef.no/ ======================================================== --Apple-Mail-8-581407744 Content-Transfer-Encoding: 7bit Content-Type: text/enriched; charset=US-ASCII Hi Surajit, Try to add -Xlinker -bind_at_load when linking the tests (TimeRenderer) and your own programs Regards Jon On Monday, August 26, 2002, at 08:43 PM, Surajit Nundy wrote: Hello, I have been able to build the latest CVS version of VTK successfully using both Carbon and Cocoa APIs on OS X 10.2 ("Jaguar") using gcc 3.1. However, when I try to run TimeRenderer or use my own programs, no new windows appear. Has anyone else had this problem and do they have a solution? Thanks, Surajit Nundy _______________________________________________ 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 Helvetica======================================================== Jon Harald Kaspersen Tel: +47 73 59 75 89 Ph.D. Mechanical Engineering Mob: +47 93 03 65 90 Senior Scientist Pager +47 96 84 29 94 SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73 N-7465 Trondheim NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no WEB: 1A1A,1A1A,FFFFhttp://www.us.unimed.sintef.no/ ======================================================== --Apple-Mail-8-581407744-- From cormack@chem.vu.nl Tue Aug 27 08:52:04 2002 From: cormack@chem.vu.nl (Drew McCormack) Date: Tue, 27 Aug 2002 09:52:04 +0200 Subject: [vtkusers] vtk on Mac OS X 10.2 Jaguar In-Reply-To: Message-ID: Thanks Surajit and Jon! This got me up and running on Jaguar. I have one problem though: I am using Cocoa windows, and whenever I run a test, such as Mace, I get an error like this pure virtual method called Abort trap I had similar problems with 10.1. Is this a known problem, and is there a workaround? Regards, Drew McCormack On Tuesday, August 27, 2002, at 08:03 am, Jon Harald Kaspersen wrote: > Hi Surajit, > > Try to add -Xlinker -bind_at_load when linking the tests > (TimeRenderer) and your own programs > > Regards > Jon > > On Monday, August 26, 2002, at 08:43 PM, Surajit Nundy wrote: > >> Hello, >> I have been able to build the latest CVS version of VTK successfully >> using both Carbon and Cocoa APIs on OS X 10.2 ("Jaguar") using gcc >> 3.1. However, when I try to run TimeRenderer or use my own programs, >> no new windows appear. Has anyone else had this problem and do they >> have a solution? >> >> Thanks, >> Surajit Nundy >> >> _______________________________________________ >> 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 >> >> > ======================================================== > Jon Harald Kaspersen Tel: +47 73 59 75 89 > Ph.D. Mechanical Engineering Mob: +47 93 03 65 90 > Senior Scientist Pager +47 96 84 29 94 > SINTEF Unimed - Ultralyd Fax: +47 73 59 78 73 > N-7465 Trondheim > NORWAY e-mail: Jon.H.Kaspersen@unimed.sintef.no > WEB: http://www.us.unimed.sintef.no/ > ======================================================== > ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack@chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From Koning, P.J.H. de (LKEB)" Message-ID: <65HBHEED31D8C964SN2X2YTS1VKJI5.3d6b30fb@MRI-PATRICK> 26-08-02 19:21:19, P K wrote: Try the following for the data extent SourceImport->SetDataExtent(0, source->size[0] - 1, 0, source->size[1] - 1, 0, source->size[2] - 1); >What is the format for data being passed to >vtkImageImport? > >I'm trying to import a set of (x,y,z,i) values using >vtkImageImport. I'm currently storing the intensity >values in double * indexed as >[x*ysize*zsize+y*zsize+z]. > >vtkImageImport *SourceImport = vtkImageImport::New(); >SourceImport->SetDataScalarTypeToDouble(); >SourceImport->SetDataExtent(source->origin[0],source->size[0],source->origin[1],source->size[1],source->origin [2],source->size[2]); > >SourceImport->SetImportVoidPointer(srcptr); > >This approach seems to result in an exception being >thrown down the line. Previous postings on the >vtkusers list refer to an example on the use of >vtkImageImport, but such doesn't appear to be included >in the current release. What would be the correct way >to import this data set? >Thanks, >--Peter > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Finance - Get real-time stock quotes >http://finance.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 PS7278514B@ntu.edu.sg Tue Aug 27 10:17:57 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 27 Aug 2002 17:17:57 +0800 Subject: [vtkusers] Image process & volome visualization from CT data Problem. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259B3@mail02.student.main.ntu.edu.sg> Dear All: I am the new VTK user. I use the window NT based computer & VC6.0 = compiler. I want to generate the Volume modelling using the source of a stack CT = or only the headsq which Kitware Supplyed. First, I want to read the image data. Second, I will generate the = structure as Volume with the same scalar of the importing data (like = generate the scalar of 255 as the bone structure). Third, the Model will = show in the window. Could anyone share the C++ program source or idea about it? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From T.Hutton@eastman.ucl.ac.uk Tue Aug 27 10:30:23 2002 From: T.Hutton@eastman.ucl.ac.uk (Tim Hutton) Date: Tue, 27 Aug 2002 10:30:23 +0100 Subject: [vtkusers] trouble with thin plate spline transform (please help!!) In-Reply-To: References: <20020825103804.1C5111AB47@public.kitware.com> Message-ID: <5.1.0.14.0.20020827102332.0399e7c0@144.82.123.1> Hi Alia, 25 landmarks is quite a lot for warping a face, since there aren't that many good places to put them. If you use too many then the transform can crumple up. Make sure that the landmarks are placed correctly on the faces, and that their indices correspond. The code looks fine (assuming you actually do warp->SetTransform(tpst); ). Try with fewer landmarks to start with? (Eg. 9) Hope this helps, Tim. At 21:27 25/08/2002 +0100, Alia wrote: >Hello, > >I was hoping someone could help me regarding thin plate spline >transforms (code follows the end of this mail) > >I have two 3d models of a face, and a list of corresponding points on >each model. >I am trying to find the thin plate spline transform bewtween the two >models, then pass it to the first model, >to see if it will correctly produce the second model. > >However when I do this, the effect is as though I had 'steamrollered' >the face - it becomes completely flattened, from the side on. > >Using the source landmarks as both source and target data produces an >(unchanged) 3d image, so I dont know if its >my dataset or the way I'm applying the warp at fault. > >Either way I think I've just misunderstood how to use the function. >(I'm following the ThinPlateSpline example from the kitware man pages) > >If anyone has any suggestions as to where this is going wrong, I would >be extremely grateful. > >Thanks! > >Alia > >//******************CODE******************* > >//SOURCE LANDMARK POINTS >vtkPoints* Sp1 = vtkPoints::New(); >Sp1-> SetNumberOfPoints(25); >//Sp1-> SetPoint( 0, 0, 0, 0); >Sp1-> SetPoint( 0, 178.552, 505.336, 0.587569); >Sp1-> SetPoint( 1, 178.552, 505.336, 0.587569); >Sp1-> SetPoint( 2, 219.822, 475.996, 0.346727); >Sp1-> SetPoint( 3, 215.346, 503.522, 0.529492); >Sp1-> SetPoint( 4, 210.153, 504.513, 0.671797); >Sp1-> SetPoint( 5, 222.091, 477.032, 0.856578); >Sp1-> SetPoint( 6, 233.848, 484.04, 0.388976); >Sp1-> SetPoint( 7, 233.78, 489.953, 0.429802); >Sp1-> SetPoint( 8, 229.159, 493.521, 0.449271); >Sp1-> SetPoint( 9, 229.134, 496.219, 0.46988); >Sp1-> SetPoint( 10, 233.536, 496.394, 0.511361); >Sp1-> SetPoint( 11, 228.196, 500.614, 0.693835); >Sp1-> SetPoint( 12, 228.065, 499.355, 0.714371); >Sp1-> SetPoint( 13, 223.389, 499.312, 0.734568); >Sp1-> SetPoint( 14, 227.619, 493.607, 0.775678); >Sp1-> SetPoint( 15, 231.807, 484.082, 0.816502); >Sp1-> SetPoint( 16, 247.343, 491.885, 0.491815); >Sp1-> SetPoint( 17, 246.295, 493.429, 0.715644); >Sp1-> SetPoint( 18, 270.413, 476.406, 0.514177); >Sp1-> SetPoint( 19, 274.666, 476.693, 0.596224); >Sp1-> SetPoint( 20, 274.247, 472.686, 0.697853); >Sp1-> SetPoint( 21, 300.117, 430.763, 0.519777); >Sp1-> SetPoint( 22, 304.981, 423.321, 0.579194); >Sp1-> SetPoint( 23, 304.981, 423.321, 0.579194); >Sp1-> SetPoint( 24, 304.828, 415.138, 0.678476); > >//TEST, SOURCE POINTS AGAIN, USED FOR TARGET POINTS >//(GIVES UNWARPED 3D IMAGE) >vtkPoints* Tp1 = vtkPoints::New(); >Tp1-> SetNumberOfPoints(25); >//Tp1-> SetPoint( 0, 0, 0, 0); >Tp1-> SetPoint( 0, 178.552, 505.336, 0.587569); >Tp1-> SetPoint( 1, 178.552, 505.336, 0.587569); >Tp1-> SetPoint( 2, 219.822, 475.996, 0.346727); >Tp1-> SetPoint( 3, 215.346, 503.522, 0.529492); >Tp1-> SetPoint( 4, 210.153, 504.513, 0.671797); >Tp1-> SetPoint( 5, 222.091, 477.032, 0.856578); >Tp1-> SetPoint( 6, 233.848, 484.04, 0.388976); >Tp1-> SetPoint( 7, 233.78, 489.953, 0.429802); >Tp1-> SetPoint( 8, 229.159, 493.521, 0.449271); >Tp1-> SetPoint( 9, 229.134, 496.219, 0.46988); >Tp1-> SetPoint( 10, 233.536, 496.394, 0.511361); >Tp1-> SetPoint( 11, 228.196, 500.614, 0.693835); >Tp1-> SetPoint( 12, 228.065, 499.355, 0.714371); >Tp1-> SetPoint( 13, 223.389, 499.312, 0.734568); >Tp1-> SetPoint( 14, 227.619, 493.607, 0.775678); >Tp1-> SetPoint( 15, 231.807, 484.082, 0.816502); >Tp1-> SetPoint( 16, 247.343, 491.885, 0.491815); >Tp1-> SetPoint( 17, 246.295, 493.429, 0.715644); >Tp1-> SetPoint( 18, 270.413, 476.406, 0.514177); >Tp1-> SetPoint( 19, 274.666, 476.693, 0.596224); >Tp1-> SetPoint( 20, 274.247, 472.686, 0.697853); >Tp1-> SetPoint( 21, 300.117, 430.763, 0.519777); >Tp1-> SetPoint( 22, 304.981, 423.321, 0.579194); >Tp1-> SetPoint( 23, 304.981, 423.321, 0.579194); >Tp1-> SetPoint( 24, 304.828, 415.138, 0.678476); > > >//CORRESPONDING TARGET LANDMARK POINTS >//(PRODUCE FLATTENED IMAGE) >vtkPoints* Tp2 = vtkPoints::New(); >Tp2-> SetNumberOfPoints(25); >//Tp2-> SetPoint( 0, 0, 0, 0); >Tp2-> SetPoint( 0, 178.501, 504.663, 0.587356); >Tp2-> SetPoint( 1, 178.501, 504.663, 0.587356); >Tp2-> SetPoint( 2, 219.813, 475.771, 0.346861); >Tp2-> SetPoint( 3, 215.402, 502.522, 0.509251); >Tp2-> SetPoint( 4, 210.17, 504.878, 0.672354); >Tp2-> SetPoint( 5, 222.078, 476.633, 0.856691); >Tp2-> SetPoint( 6, 238.372, 488.552, 0.430278); >Tp2-> SetPoint( 7, 233.85, 484.143, 0.389087); >Tp2-> SetPoint( 8, 233.82, 487.281, 0.409283); >Tp2-> SetPoint( 9, 238.178, 494.076, 0.491318); >Tp2-> SetPoint( 10, 233.535, 496.318, 0.51113); >Tp2-> SetPoint( 11, 232.47, 496.046, 0.735303); >Tp2-> SetPoint( 12, 228.3, 500.881, 0.673786); >Tp2-> SetPoint( 13, 232.315, 493.501, 0.755316); >Tp2-> SetPoint( 14, 223.208, 496.647, 0.754803); >Tp2-> SetPoint( 15, 231.815, 484.444, 0.816477); >Tp2-> SetPoint( 16, 238.252, 492.808, 0.471113); >Tp2-> SetPoint( 17, 246.172, 490.505, 0.736029); >Tp2-> SetPoint( 18, 270.415, 476.298, 0.514539); >Tp2-> SetPoint( 19, 274.676, 476.138, 0.596509); >Tp2-> SetPoint( 20, 283.955, 450.626, 0.739343); >Tp2-> SetPoint( 21, 300.575, 423.86, 0.484908); >Tp2-> SetPoint( 22, 304.743, 426.315, 0.599277); >Tp2-> SetPoint( 23, 304.743, 426.315, 0.599277); >Tp2-> SetPoint( 24, 294.645, 414.154, 0.759259); > > //have reader read in source obj file > vtkOBJReader *reader1 = vtkOBJReader::New(); > reader1->SetFileName("DATA/0001_SURFACE123.OBJ"); > > string inputTEXnameSOURCE = "DATA/0001_SURFACE123.BMP"; > > vtkBMPReader *readerBmp1 = vtkBMPReader::New(); > readerBmp1->SetFileName(inputTEXnameSOURCE.c_str()); > vtkTexture *atext1 = vtkTexture::New(); > atext1->SetInput(readerBmp1->GetOutput()); > atext1->InterpolateOn(); > > std::cout <<"Performing Thin Plate Spline Transform" << endl; > > vtkThinPlateSplineTransform* tpst = >vtkThinPlateSplineTransform::New(); > //tpst->Modified(); > tpst->SetSourceLandmarks(Sp1); >// tpst->SetTargetLandmarks(Tp1); TEST uncomment this to test with >same source & target points > tpst->SetTargetLandmarks(Tp2); > tpst->SetBasisToR(); > //tpst->Update(); > > std::cout <<"Warp complete" << endl; > > //IF YOU WANT TO DO INVERSE!!! > vtkGeneralTransform* tpstconcat = vtkGeneralTransform::New(); > tpstconcat->SetInput(tpst); > tpstconcat->Concatenate(tpst->GetInverse()); > tpstconcat->Concatenate(tpst); > > vtkTransformPolyDataFilter* warp = >vtkTransformPolyDataFilter::New(); > warp->SetInput(reader1->GetOutput()); > warp->SetTransform(tpstconcat); > > > vtkPolyDataMapper* mapper = vtkPolyDataMapper::New(); > mapper->SetInput(warp->GetOutput()); > > > vtkActor* actor = vtkActor::New(); > // actor->SetUserTransform(A LINER TRANSFORM); > actor->SetMapper(mapper); > actor->SetTexture(atext1); > actor->GetProperty()->SetOpacity(1); > actor->GetProperty()->SetInterpolationToGouraud(); > actor->GetProperty()->SetColor (215, 215, 237); > actor->GetProperty()->SetRepresentationToWireframe(); > > > // create a rendering window and renderer > vtkRenderer *ren = vtkRenderer::New(); > vtkRenderWindow *renWindow = vtkRenderWindow::New(); > renWindow->AddRenderer(ren); > vtkRenderWindowInteractor *RWInteractor = >vtkRenderWindowInteractor::New(); > RWInteractor->SetRenderWindow(renWindow); > ren->AddActor(actor); > ren->SetBackground(0,0,0); > renWindow->SetSize(400, 400); > renWindow->Render(); > RWInteractor->Start(); > std::cout << "You can use the mouse to interact with the >surface" << endl; > > > >--------------------------------------------------------- >To lift an autumn hair is no sign of great strength; >To see the sun and moon is no sign of sharp sight; >To hear the noise of thunder is no sign of a quick ear. >-Sun Tzu on The Art Of War >--------------------------------------------------------- > > >_______________________________________________ >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 PS7278514B@ntu.edu.sg Tue Aug 27 11:10:52 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 27 Aug 2002 18:10:52 +0800 Subject: [vtkusers] Image process & volome visualization from CT data Problem. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE33A663@mail02.student.main.ntu.edu.sg> Dear All: I use the window NT based computer & VC6.0 compiler. I meet the problem in Visualizeing Image & Volume Rendering: The source code below: #include "vtkImageReader.h" #include "vtkImageGradient.h" #include "vtkImageViewer.h" int main(int argc, char *argv[]) { vtkImageReader *reader=3DvtkImageReader::New(); reader->SetFilePrefix("c:/Vtkdata/Data/headsq/quarter");//from = manual reader->SetDataByteOrderToLittleEndian(); reader->SetDataExtent(0,63,0,63,1,93); reader->SetDataMask(0x7ff); vtkImageGradient *gradient=3DvtkImageGradient::New(); gradient->SetInput(reader->GetOutput()); gradient->SetDimensionality(3); vtkImageViewer *viewer=3DvtkImageViewer::New(); viewer->SetInput(gradient->GetOutput()); viewer->SetZSlice(22); viewer->SetColorWindow(400); viewer->SetColorLevel(0); viewer->Render(); viewer->Delete(); =20 return 0; } could the vtkImageViewer class bind with: vtkRenderer* ren=3DvtkRenderer::New(); ren-> SetBackground (1,1,1); vtkRenderWindow* renWin=3DvtkRenderWindow::New(); renWin-> AddRenderer(ren); renWin-> SetSize(500,500); vtkRenderWindowInteractor* iren=3DvtkRenderWindowInteractor::New(); iren-> SetRenderWindow(renWin); so the renderering can permanently show. thanks very much. my e-mail address is : ps7278514b@ntu.edu.sg ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From reichl@ifb.tu-graz.ac.at Tue Aug 27 12:42:44 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Tue, 27 Aug 2002 12:42:44 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1207 - 5 msgs Message-ID: <4230B374F1@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From PS7278514B@ntu.edu.sg Tue Aug 27 12:44:09 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 27 Aug 2002 19:44:09 +0800 Subject: [vtkusers] (no subject) Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259B7@mail02.student.main.ntu.edu.sg> Dear All: I am the new VTK user. I use the window NT based computer & VC6.0 = compiler. I want to generate the only Bone Volume modelling using the source of a = stack CT or only the headsq which Kitware Supplyed. First, I want to read the image data. Second, I will generate the Bone = structure as Volume with the same scalar of the importing data (like = generate the scalar of 255 as the bone structure). Third, the Model will = show in the window. Could anyone share the C++ program source using VTK library or idea = about it? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Tue Aug 27 12:47:24 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Tue, 27 Aug 2002 19:47:24 +0800 Subject: [vtkusers] Help For Bone Generating From A Stack of CT Data Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259B8@mail02.student.main.ntu.edu.sg> Dear All: I am the new VTK user. I use the window NT based computer & VC6.0 = compiler. I want to generate the only Bone Volume modelling using the source of a = stack CT or only the headsq which Kitware Supplyed. First, I want to read the image data. Second, I will generate the Bone = structure as Volume with the same scalar of the importing data (like = generate the scalar of 255 as the bone structure). Third, the Model will = show in the window. Could anyone share the C++ program source using VTK library or idea = about it? ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From will.schroeder@kitware.com Tue Aug 27 13:32:04 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Tue, 27 Aug 2002 08:32:04 -0400 Subject: [vtkusers] Re: [vtk-developers] Vtk book out of print; what now? In-Reply-To: <20020827131238.B21728@lanier.science.uva.nl> Message-ID: <5.0.2.1.0.20020827075721.02a6a780@pop.nycap.rr.com> --=====================_405116937==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hello Rob- >As you know, the Vtk book has gone out of print. There are however >a number of universities out there (undersigned included) that teach >a scientific visualization class and use the Vtk book as part of >the material. > >Why has the book gone out of print? Is there a new edition coming? >If so; when? If not; should we bug the publisher until we get them >to print again? Here's the situation regarding the textbook (The Visualization Toolkit An Object-Oriented Approach to 3D Graphics published by Prentice-Hall...these comments do not apply to the VTK User's Guide published by Kitware). Much of this is speculation, so no promises for the future. Prentice-Hall prints many thousand books per run, when they run out, they choose whether to reprint, cut a new edition, etc. This decision is completely out of our hands....we are not privy to their decisions and had no idea that the book was going out of print. (This is why at Kitware we choose to publish the User's Guide ourselves; we are not at the mercy of the big publishers and can revise, reprint, etc. the book as often as we like.) I know there is enormous pressure on the publishers to make money, and they tend do that best when they come out with a new book in a hot field. I suspect this may be why they are currently not pursuing the third edition, or reprinting (at least that we know of)....although we might think visualization is hot, the publishers do not appear to share this view :-( But not all is lost! We have been in contact with PH and are in negotiations to obtain rights to the book. If we can do this, we will have the ability to revise, reprint, and update it as necessary. I believe that this will be a big plus because we can update the book to reflect the many changes to the software, improve the exercises (maybe create an exercise answer book?), and do a lot of things that people like yourself have suggested. If we get the rights, we will likely start with an initial run and make few if any changes to the text (just to get it out there), and then begin a serious overhaul. The price point will be similar (can't say for sure until we talk to the printer) and we are considering working with Amazon to stock the book so they can ship it quickly at a lower cost than we can....at a minimum we will offer it on our estore like we do with the User's Guide, including offering volume discounts. We very much appreciate your support and persistence in this matter, it is motivating us to make this happen as soon as we can. I am very sorry for your inconvenience in this matter, as I said earlier the book going out of print came as a complete surprise to us as well. Once we hear something definite about obtaining rights, etc. we will let you know. I cannot say for sure when this will happen, we are working with corporate lawyers which is almost always a bottleneck. Once we do get the rights, things will move very rapidly on our end. Sincerely, Will William J. Schroeder, Ph.D Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder@kitware.com 1-518-371-3971 x102 1-518-371-3971 (fax) --=====================_405116937==_.ALT Content-Type: text/html; charset="us-ascii" Hello Rob-

As you know, the Vtk book has gone out of print. There are however
a number of universities out there (undersigned included) that teach
a scientific visualization class and use the Vtk book as part of
the material.

Why has the book gone out of print? Is there a new edition coming?
If so; when? If not; should we bug the publisher until we get them
to print again?

Here's the situation regarding the textbook (The Visualization Toolkit An Object-Oriented Approach to 3D Graphics published by Prentice-Hall...these comments do not apply to the VTK User's Guide published by Kitware). Much of this is speculation, so no promises for the future.

Prentice-Hall prints many thousand books per run, when they run out, they choose whether to reprint, cut a new edition, etc. This decision is completely out of our hands....we are not privy to their decisions and had no idea that the book was going out of print. (This is why at Kitware we choose to publish the User's Guide ourselves; we are not at the mercy of the big publishers and can revise, reprint, etc. the book as often as we like.) I know there is enormous pressure on the publishers to make money, and they tend do that best when they come out with a new book in a hot field. I suspect this may be why they are currently not pursuing the third edition, or reprinting (at least that we know of)....although we might think visualization is hot, the publishers do not appear to share this view :-(

But not all is lost! We have been in contact with PH and are in negotiations to obtain rights to the book. If we can do this, we will have the ability to revise, reprint, and update it as necessary. I believe that this will be a big plus because we can update the book to reflect the many changes to the software, improve the exercises (maybe create an exercise answer book?), and do a lot of things that people like yourself have suggested. If we get the rights, we will likely start with an initial run and make few if any changes to the text (just to get it out there), and then begin a serious overhaul. The price point will be similar (can't say for sure until we talk to the printer) and we are considering working with Amazon to stock the book so they can ship it quickly at a lower cost than we can....at a minimum we will offer it on our estore like we do with the User's Guide, including offering volume discounts.

We very much appreciate your support and persistence in this matter, it is motivating us to make this happen as soon as we can. I am very sorry for your inconvenience in this matter, as I said earlier the book going out of print came as a complete surprise to us as well. Once we hear something definite about obtaining rights, etc. we will let you know. I cannot say for sure when this will happen, we are working with corporate lawyers which is almost always a bottleneck. Once we do get the rights, things will move very rapidly on our end.

Sincerely,
Will


William J. Schroeder, Ph.D
Kitware, Inc.
469 Clifton Corporate Parkway
Clifton Park, NY 12065
will.schroeder@kitware.com
1-518-371-3971 x102
1-518-371-3971 (fax)
--=====================_405116937==_.ALT-- From blezek@crd.ge.com Tue Aug 27 13:33:44 2002 From: blezek@crd.ge.com (Blezek, Daniel J (Research)) Date: Tue, 27 Aug 2002 08:33:44 -0400 Subject: [vtkusers] vtk+java+linux Message-ID: Actually, the answer is that ITK will work with Java today. In the Insight/Examples/vtkITK directory is an example of linking in ITK filters wrapped as VTK filters. We've only done a few filters this way, but it illustrates how ITK's pipeline can seamlessly integrate with VTK. But the best part is that ITK can be wrapped just like VTK in Tcl, Python, Java as part of the Insight build process. If you require some more help, just let me know. -dan -- Daniel Blezek, Ph.D. blezek@crd.ge.com Visualization and Computer Vision Lab, Imaging Technologies GE Global Research Center > -----Original Message----- > From: Marcelo Costa Oliveira [mailto:marcelo@cci.fmrp.usp.br] > Sent: Thursday, August 15, 2002 8:27 AM > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtk+java+linux > > > Tanks a lot Phil !!!!! > > : ) > > Is working now ..... > > Anybody know if ITK someday will run with Java ?? > > _______________________________________________ > 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 maurice@akst.tn.tudelft.nl Tue Aug 27 14:20:34 2002 From: maurice@akst.tn.tudelft.nl (Maurice van de Rijzen) Date: Tue, 27 Aug 2002 15:20:34 +0200 Subject: [vtkusers] Pointer to data? Message-ID: <3D6B7CA2.2010100@akst.tn.tudelft.nl> Hello, I want to know how I can retrieve the pointer to the data. For example: vtkImageReader v16 v16 DebugOff v16 SetDataByteOrderToBigEndian v16 SetDataExtent 0 511 0 80 1 81 v16 SetFileName "dataInt81_81.raw" v16 SetDataOrigin 0 0 0 v16 SetDataSpacing 1 5 5 v16 SetFileDimensionality 3 v16 Update vtkImageData data data CopyStructure [v16 GetOutput] set ptr [ data GetScalarPointer] Doesn't work. Can anyone please help me? Maurice vtk From zhou@isg.cs.uni-magdeburg.de Tue Aug 27 14:23:06 2002 From: zhou@isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Tue, 27 Aug 2002 15:23:06 +0200 Subject: [vtkusers] volume rendering with texture mapping is slow. Message-ID: <3D6B995A.13628.1511850@localhost> Hi, vtkusers, I use vtkVolumeTextureMapper2D as the mapper in a volume visualization application. It should be faster than ray casting in principle. But I compared texture mapping and ray casting with the same data set and same transfer function. I found that the frame rate of texture mapping is much slower than ray casting method. Is there anyone know what the problem is? I use vtkVolumeTextureMapper2D like followings, no other setting are made for this mapper. My graphics card is nVidia GeForce DDR. vtkVolumeTextureMapper2D *textureMapper =vtkVolumeTextureMapper2D::New(); textureMapper->SetInput(reader->GetOutput()); Thank you very much. regards, Jianlong From aks01@doc.ic.ac.uk Tue Aug 27 14:39:46 2002 From: aks01@doc.ic.ac.uk (Alia) Date: Tue, 27 Aug 2002 14:39:46 +0100 (BST) Subject: [vtkusers] Re: vtkusers digest, Vol 1 #1207 - 5 msgs In-Reply-To: <20020827104105.40AB31AB5F@public.kitware.com> Message-ID: hello! quick question, its possible to use GetPoints to remove point info from an Obj file, does vtk have a similar function for removing texture data? I'm having trouble with the documentation. Thanks Alia --------------------------------------------------------- To lift an autumn hair is no sign of great strength; To see the sun and moon is no sign of sharp sight; To hear the noise of thunder is no sign of a quick ear. -Sun Tzu on The Art Of War --------------------------------------------------------- From will.schroeder@kitware.com Tue Aug 27 15:34:08 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Tue, 27 Aug 2002 10:34:08 -0400 Subject: [vtkusers] Re: [vtk-developers] Vtk book out of print; what now? In-Reply-To: <20020827131238.B21728@lanier.science.uva.nl> Message-ID: <5.1.0.14.0.20020827102703.02afc688@pop.nycap.rr.com> --=====================_591254348==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi Rob- I have received additional information from Prentice-Hall this morning regarding The Visualization Toolkit textbook. According to the PH lawyer working on this, the rights to the book will be reverted to the authors (one signature is left from someone on vacation). What this means is that we can likely have the book published in 4-6 weeks from now assuming all goes well. As I mentioned earlier, we will likely not change the book much for this printing to expedite the process. I will provide further information as we move along in the process. Will --=====================_591254348==_.ALT Content-Type: text/html; charset="us-ascii" Hi Rob-

I have received additional information from Prentice-Hall this morning regarding The Visualization Toolkit textbook.

According to the PH lawyer working on this, the rights to the book will be reverted to the authors (one signature is left from someone on vacation). What this means is that we can likely have the book published in 4-6 weeks from now assuming all goes well. As I mentioned earlier, we will likely not change the book much for this printing to expedite the process.

I will provide further information as we move along in the process.

Will

--=====================_591254348==_.ALT-- From blezek@crd.ge.com Tue Aug 27 15:39:59 2002 From: blezek@crd.ge.com (Blezek, Daniel J (Research)) Date: Tue, 27 Aug 2002 10:39:59 -0400 Subject: [vtkusers] VTK Java problem Message-ID: Hi all, I've started experimenting with Java and VTK. Unfortunately, I'm getting segfaults when running, and I think they pertain to threads. When I run the attached ImagePlaneWidget code: the window comes up correctly, and I can manipulate the widget to my heart's content. However, when I resize the window and manipulate the widget, I get this output from GDB: # An unexpected exception has been detected in native code outside the VM.# Program counter=0x4a7467f4 # # Problematic Thread: prio=1 tid=0x8143808 nid=0x4490 runnable # Program received signal SIGABRT, Aborted. 0x4049fb75 in sigsuspend () from /lib/libc.so.6 (gdb) bt #0 0x4049fb75 in sigsuspend () from /lib/libc.so.6 #1 0x4003db79 in pthread_setconcurrency () at eval.c:41 #2 0x40039ddc in pthread_cond_wait () at eval.c:41 #3 0x401e8e3e in Monitor::wait () at eval.c:41 #4 0x402214f8 in Threads::destroy_vm () at eval.c:41 #5 0x40198f0d in jni_DestroyJavaVM () at eval.c:41 #6 0x08049385 in main () at eval.c:41 #7 0x4048d5d7 in __libc_start_main () from /lib/libc.so.6 The ImagePlaneWidget.java code is an adaptation of the ImagePlane.tcl example. Things are moving in the right direction, this did not even run a few weeks ago... Open for suggestions, -dan P.S. To compile this code, you'll neeed the latest and greatest Wrapping/Java/vtk/*.java -- Daniel Blezek, Ph.D. blezek@crd.ge.com Visualization and Computer Vision Lab, Imaging Technologies GE Global Research Center <> begin 600 ImagePlaneWidget.java M:6UP;W)T('9T:RXJ.PII;7!OF4@*"!N97<@1&EM96YS:6]N("@@-3$R+"`U,3(@*2`I.PH@("`@9G)A M;64N9V5T0V]N=&5N=%!A;F4H*2YA9&0@*"`B0V5N=&5R(BP@"`H("(O:&]M92]B;&5Z96LO'0N"B`@("!V=&M/=71L:6YE1FEL=&5R(&]U=&QI M;F4@/2!N97<@=G1K3W5T;&EN949I;'1E41A=&%- M87!P97(@;W5T;&EN94UA<'!E5!R97-S06-T:79A=&EO;E9A;'5E("@@)W@G*3L*("`@("!P;&%N M95=I9&=E=%@N1V5T4&QA;F502@I+E-E=$-O;&]R("@@,2P@,"P@ M,"D["B`@("`@<&QA;F57:61G9718+D]N("@I.PH*("`@("!V=&M);6%G95!L M86YE5VED9V5T('!L86YE5VED9V5T62`](&YE=R!V=&M);6%G95!L86YE5VED M9V5T*"D["B`@("`@<&QA;F57:61G9719+D1I5!R97-S06-T:79A=&EO;E9A;'5E("@@)WDG("D["B`@ M("`@<&QA;F57:61G9719+D=E=%!L86YE4')O<&5R='DH*2Y3971#;VQOBUS;&EC92P@='5R;B!O M9F8@=&5X='5R92!I;G1EB<@*3L*("`@("`@<&QA;F57:61G971:+D=E M=%!L86YE4')O<&5R='DH*2Y3971#;VQOF4*("`@("`@FEM=71H("@@-#4I.PH@("`@("!R96XQ+E)E Great news, Will! A textbook on state-of-the-art visualization that uses Vtk 4.x for all its examples, exercises and fancy demos, could impart huge momentum to this important toolkit! thanks, Nigel --- On Tues 27 Aug 2002, [will.schroeder@kitware.com] wrote --- > I have received additional information from Prentice-Hall > this morning regarding The Visualization Toolkit textbook. > > According to the PH lawyer working on this, the rights to > the book will be reverted to the authors (one signature is > left from someone on vacation). What this means is that we > can likely have the book published in 4-6 weeks from now > assuming all goes well. As I mentioned earlier, we will > likely not change the book much for this printing to > expedite the process. > > I will provide further information as we move along in the > process. > > Will ********************************************************************** This message is intended for the addressee named and may contain confidential and privileged information. If you are not the intended recipient please note that any form of distribution, copying or use of this communication or the information in it is strictly prohibited and may be unlawful. If you receive this message in error, please delete it and notify the sender. Keep up to date with what's happening in Australian sport. Visit http://www.ausport.gov.au ********************************************************************** From cormack@chem.vu.nl Tue Aug 27 16:07:24 2002 From: cormack@chem.vu.nl (Drew McCormack) Date: Tue, 27 Aug 2002 17:07:24 +0200 Subject: [vtkusers] Bug in vtkCocoaRenderWindowInteractor? Message-ID: I have been working on setting up VTK to work more seamlessly with Project Builder and Interface Builder, so that Cocoa programmers can easily integrate it into their apps. So far I have been able to compile VTK in Jaguar, run the mace example from PB, and now create a vtkCocoaGLView subclass which can be used in Interface Builder like any other view class (ie. it can be contained inside a standard NSWindow, rather than requiring that the enclosing window be a vtkCocoaWindow.) I should also be able to build a VTK framework. I do have one problem though: when I interact with the Mace example by clicking and dragging, the Mace rotates, but the mouse events seem to be interpreted relative to an origin near the left-bottom corner of the screen, rather than relative to the center of the view. If I click in the view, and then drag the cursor to the bottom-left of the screen, the mace starts to rotate slowly, and even stops. I thought I would try the standard mace example from the command line, to see if this was a problem I introduced, but the same problem exists there. If you setup the Mace example to allow for interaction, run it, and then move the Mace window before click-dragging in the window, you can see that mouse events are interpreted relative to an origin near the left-bottom of the window, not the center of the window as they should. Does anyone know of this problem, or what could be causing it? Drew ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack@chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From bertvansesamstraat@hotmail.com Tue Aug 27 16:21:46 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Tue, 27 Aug 2002 15:21:46 +0000 Subject: [vtkusers] Flashing while using python? Message-ID: Hi, I've some problems when I'm using the python examples. When I use the examples : vtk-examples-4.1.1/Examples/Tutorial/Step1/Python/Cone.py vtk-examples-4.1.1/Examples/Tutorial/Step2/Python/Cone2.py I get twice a rotating cone and after rotating the renderwindow vanishes. Just like it is supposed to do (I think). However when I'm trying some other python examples like: vtk-examples-4.1.1/Testing/Graphics/Python/Cone.py I get for a very short time a renderwindow where I can see a cone but after a fraction of a second it vanishes. This is not like it is supposed to do (I think). Can anybody tekk me what I'm doing wrong? p.s. I run them as follows: python "script-name" _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From jbrunen@datasolid.de Tue Aug 27 16:25:29 2002 From: jbrunen@datasolid.de (Brunen, Johannes) Date: Tue, 27 Aug 2002 17:25:29 +0200 Subject: [vtkusers] Re: Vtk book out of print; what now? Message-ID: <50171567376FD511B9DC00A0C9AF9A4806E451@MAILSERVER> Great news, however, I have the problem ordering the VTK Users's Guide 4.0 book from Germany. Amazon does not offer the book for Germany. Ordering from Kitware is to expensive due to the shipping cost. Does anyone know a German reseller of the guide. With best regards Johannes From andy.cedilnik@kitware.com Tue Aug 27 16:38:03 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 27 Aug 2002 11:38:03 -0400 Subject: [vtkusers] Flashing while using python? In-Reply-To: References: Message-ID: <1030462684.5127.84.camel@xanth.kitwarein.com> Hi Bert, The one from Testing is for testing of VTK features and it only generates an image for the testing purposes. Andy On Tue, 2002-08-27 at 11:21, Bert VanSesamstraat wrote: > Hi, > I've some problems when I'm using the python examples. > When I use the examples : > > > vtk-examples-4.1.1/Examples/Tutorial/Step1/Python/Cone.py > vtk-examples-4.1.1/Examples/Tutorial/Step2/Python/Cone2.py > > > I get twice a rotating cone and after rotating the renderwindow vanishes. > Just like it is supposed to do (I think). > > However when I'm trying some other python examples like: > > vtk-examples-4.1.1/Testing/Graphics/Python/Cone.py > > I get for a very short time a renderwindow where I can see a cone but after > a fraction of a second it vanishes. This is not like it is supposed to do (I > think). > > Can anybody tekk me what I'm doing wrong? > > p.s. > I run them as follows: > > python "script-name" From lisa.avila@kitware.com Tue Aug 27 16:51:17 2002 From: lisa.avila@kitware.com (Lisa Avila) Date: Tue, 27 Aug 2002 11:51:17 -0400 Subject: [vtkusers] Re: Vtk book out of print; what now? In-Reply-To: <50171567376FD511B9DC00A0C9AF9A4806E451@MAILSERVER> Message-ID: <5.1.0.14.0.20020827114612.06227708@pop.nycap.rr.com> Hello Johannes, You can order the User's Guide either from Kitware (www.kitware.com) or from Amazon (www.amazon.com). It does not seem to be available from www.amazon.de. From www.amazon.com you can get the book shipped to Germany, with options ranging from 21 days at about $8 (plus a $2 ordering fee) to 2-4 days for $33 (plus $2). Kitware offers USPS for $25 and Fedex 2-4 day for $35. Lisa At 11:25 AM 8/27/2002, Brunen, Johannes wrote: >Great news, > >however, I have the problem ordering the VTK Users's Guide 4.0 book from >Germany. >Amazon does not offer the book for Germany. Ordering from Kitware is to >expensive >due to the shipping cost. Does anyone know a German reseller of the guide. > >With best regards > >Johannes >_______________________________________________ >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 Gowri.Gopalakrishnan@inteq.com Tue Aug 27 17:15:38 2002 From: Gowri.Gopalakrishnan@inteq.com (Gopalakrishnan, Gowri) Date: Tue, 27 Aug 2002 11:15:38 -0500 Subject: [vtkusers] question on extracting points Message-ID: Hi I have question on the following picking action: If I use vtkPolydata - vtkTubeFilter - vtkPolyDataMapper - vtkActor sequence to generate my pipeline and If I pick this actor and get the points corresponding to the actor what the picker returns is equal to the Vtktubefilter->output (which is the input for the mapper). This is what I do: Actor = Picker -> getactor; Mapper = actor -> getmapper; polydata = mapper -> getinput(); I would like to know if there is anyway I can get my hand of the original vtkpolydata that I put in from the picker? And not the one coming from the tubefilter?. Or is just keeping the original data somewhere in memory the only way?. Regards Gowri From jeff@cdnorthamerica.com Tue Aug 27 20:02:30 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Tue, 27 Aug 2002 15:02:30 -0400 Subject: [vtkusers] VTK Java problem References: Message-ID: <3D6BCCC6.1060500@cdnorthamerica.com> This is a multi-part message in MIME format. --------------010709030707030708090905 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Here's my cut at ImagePlaneWidget, there are definitely some issues in java if the 3dWidget doesn't belong to vtkCanvas. I re-arranged your code and it works for me - don't forget to change the path to VTKData back to your path... Let me know if it works or not. If you need more explanation, let me know. -Jeff Blezek, Daniel J (Research) wrote: >Hi all, > > I've started experimenting with Java and VTK. Unfortunately, I'm getting segfaults when running, >and I think they pertain to threads. When I run the attached ImagePlaneWidget code: the window comes >up correctly, and I can manipulate the widget to my heart's content. However, when I resize the >window and manipulate the widget, I get this output from GDB: > ># An unexpected exception has been detected in native code outside the VM.# Program >counter=0x4a7467f4 ># ># Problematic Thread: prio=1 tid=0x8143808 nid=0x4490 runnable ># > >Program received signal SIGABRT, Aborted. >0x4049fb75 in sigsuspend () from /lib/libc.so.6 >(gdb) bt >#0 0x4049fb75 in sigsuspend () from /lib/libc.so.6 >#1 0x4003db79 in pthread_setconcurrency () at eval.c:41 >#2 0x40039ddc in pthread_cond_wait () at eval.c:41 >#3 0x401e8e3e in Monitor::wait () at eval.c:41 >#4 0x402214f8 in Threads::destroy_vm () at eval.c:41 >#5 0x40198f0d in jni_DestroyJavaVM () at eval.c:41 >#6 0x08049385 in main () at eval.c:41 >#7 0x4048d5d7 in __libc_start_main () from /lib/libc.so.6 > >The ImagePlaneWidget.java code is an adaptation of the ImagePlane.tcl example. Things are moving in >the right direction, this did not even run a few weeks ago... > >Open for suggestions, >-dan > >P.S. To compile this code, you'll neeed the latest and greatest Wrapping/Java/vtk/*.java > >-- >Daniel Blezek, Ph.D. >blezek@crd.ge.com >Visualization and Computer Vision Lab, Imaging Technologies >GE Global Research Center > <> > > > >_______________________________________________ >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 > > > > --------------010709030707030708090905 Content-Type: text/plain; name="ImagePlaneWidget.java" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ImagePlaneWidget.java" import java.awt.*; import java.awt.event.*; import javax.swing.*; import vtk.*; public class ImagePlaneWidget extends JPanel { public ImagePlaneWidget() { setLayout(new BorderLayout()); ImageCanvas renWin = new ImageCanvas(); add(renWin, BorderLayout.CENTER); JFrame frame = new JFrame ( "ImagePlaneWidget" ); frame.setSize ( new Dimension ( 512, 512 ) ); frame.getContentPane().add ( "Center", this ); frame.pack(); frame.setVisible(true); //Start by loading some data. vtkVolume16Reader v16 = new vtkVolume16Reader(); v16.SetDataDimensions ( 64, 64 ); v16.SetDataByteOrderToLittleEndian (); v16.SetFilePrefix ( "/home/dev/vtk/build/VTKData/Data/headsq/quarter" ); v16.SetImageRange ( 1, 93 ); v16.SetDataSpacing ( 3.2, 3.2, 1.5 ); v16.Update(); vtkImageData id = v16.GetOutput(); renWin.setImageData(id); //An outline is shown for context. vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput (id); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput ( outline.GetOutput() ); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper ( outlineMapper ); renWin.GetRenderer().AddActor(outlineActor); //Add the outline actor to the renderer, set the background and size // renWin.GetRenderer().GetCullers().RemoveAllItems(); // renWin.GetRenderer().SetBackground ( 0.1, 0.1, 0.2); // vtkCamera cam1 = renWin.GetRenderer().GetActiveCamera(); // cam1.Elevation ( 110); // cam1.SetViewUp ( 0, 0, -1); // cam1.Azimuth ( 45); // renWin.GetRenderer().ResetCameraClippingRange (); // renWin.Render(); } private class ImageCanvas extends vtkCanvas { protected vtkImagePlaneWidget planeWidgetX = null; protected vtkImagePlaneWidget planeWidgetY = null; protected vtkImagePlaneWidget planeWidgetZ = null; private vtkImageData id = null; private vtkCellPicker picker = null; public ImageCanvas() { super(); //The shared picker enables us to use 3 planes at one time //and gets the picking order right picker = new vtkCellPicker(); picker.SetTolerance ( 0.005 ); } public void setImageData(vtkImageData _id) { this.id = _id; //The 3 image plane widgets are used to probe the dataset. planeWidgetX = new vtkImagePlaneWidget(); planeWidgetX.DisplayTextOn (); planeWidgetX.SetInput (id); planeWidgetX.SetInteractor ( iren ); planeWidgetX.SetPlaneOrientationToXAxes (); planeWidgetX.SetSliceIndex ( 32); planeWidgetX.SetPicker ( picker); planeWidgetX.SetKeyPressActivationValue ( 'x'); planeWidgetX.GetPlaneProperty().SetColor ( 1, 0, 0); planeWidgetX.On (); planeWidgetY = new vtkImagePlaneWidget(); planeWidgetY.DisplayTextOn (); planeWidgetY.SetInput (id); planeWidgetY.SetInteractor ( iren); planeWidgetY.SetPlaneOrientationToYAxes (); planeWidgetY.SetSliceIndex ( 32); planeWidgetY.SetPicker ( picker); planeWidgetY.SetKeyPressActivationValue ( 'y' ); planeWidgetY.GetPlaneProperty().SetColor ( 1, 1, 0); planeWidgetY.SetLookupTable ( planeWidgetX.GetLookupTable() ); planeWidgetY.On (); //for the z-slice, turn off texture interpolation: //interpolation is now nearest neighbour, to demonstrate //cross-hair cursor snapping to pixel centers planeWidgetZ = new vtkImagePlaneWidget(); planeWidgetZ.DisplayTextOn (); planeWidgetZ.SetInput (id); planeWidgetZ.TextureInterpolateOff (); planeWidgetZ.SetInteractor ( iren); planeWidgetZ.SetPlaneOrientationToZAxes (); planeWidgetZ.SetSliceIndex ( 46); planeWidgetZ.SetPicker ( picker); planeWidgetZ.SetKeyPressActivationValue ( 'z' ); planeWidgetZ.GetPlaneProperty().SetColor ( 0, 0, 1 ); planeWidgetZ.SetLookupTable ( planeWidgetX.GetLookupTable() ); planeWidgetZ.On (); } } public static void main ( String[] argv ) { new ImagePlaneWidget(); } } --------------010709030707030708090905-- From stefan.bruckner@chello.at Tue Aug 27 20:40:39 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: Tue, 27 Aug 2002 21:40:39 +0200 Subject: [vtkusers] Building VTK with Kylix bc++ Message-ID: <000101c24e01$9f82d2c0$0100a8c0@SID> This is a multi-part message in MIME format. ------=_NextPart_000_0002_01C24E12.630BA2C0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi! I'm trying to compile VTK with the Kylix 3 bc++ ( http://www.borland.com/kylix) compiler, but I can't get it to work. Has anyone tried this yet and is willing to share his or her experience? (cmake settings would be very much appreciated) Also, cmake does support Borland C++ Builder in its Windows version. But these settings are not displayed unless you have C++ Builder installed (which I have not). Maybe someone can look at these settings and post them here. This might also give me some hints ... Thanks a lot! -- Stefan Bruckner ------=_NextPart_000_0002_01C24E12.630BA2C0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nachricht

Hi!

I'm=20 trying to compile VTK
with the=20 Kylix 3 bc++ (http://www.borland.com/kylix)
compil= er, but I=20 can't get it to work. Has anyone tried this yet and is
willing to = share his=20 or her experience? (cmake settings would be very=20 much
appreciated)

Also, cmake 
does support Borland = C++ Builder=20 in its Windows version. But these settings are
not displayed unless = you have=20 C++ Builder installed (which I have not).
Maybe someone can look at = these=20 settings and post them here. This might also
give me some hints=20 ...

Thanks a lot!

--
Stefan=20 Bruckner


------=_NextPart_000_0002_01C24E12.630BA2C0-- From billlist@nycap.rr.com Tue Aug 27 20:44:30 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Tue, 27 Aug 2002 15:44:30 -0400 Subject: [vtkusers] Building VTK with Kylix bc++ In-Reply-To: <000101c24e01$9f82d2c0$0100a8c0@SID> Message-ID: <5.0.2.1.0.20020827154205.048214a0@pop.nycap.rr.com> --=====================_-1942446410==_.ALT Content-Type: text/plain; charset="us-ascii" I would trying using this compiler like any other unix compiler: setenv CXX bcc setenv CC bcc (I am assuming the klyix compiler is called bcc from the command line, but it might have some other name.) Then run ccmake ../path/to/vtk. -Bill At 09:40 PM 8/27/2002 +0200, Stefan Bruckner wrote: >Hi! > >I'm trying to compile VTK with the Kylix 3 bc++ (http://www.borland.com/kylix) >compiler, but I can't get it to work. Has anyone tried this yet and is >willing to share his or her experience? (cmake settings would be very much >appreciated) > >Also, cmake does support Borland C++ Builder in its Windows version. But these settings are >not displayed unless you have C++ Builder installed (which I have not). >Maybe someone can look at these settings and post them here. This might also >give me some hints ... > >Thanks a lot! > >-- >Stefan Bruckner --=====================_-1942446410==_.ALT Content-Type: text/html; charset="us-ascii" I would trying using this compiler like any other unix compiler:

setenv CXX bcc
setenv CC bcc

(I am assuming the klyix compiler is called bcc from the command line,
but it might have some other name.)

Then run ccmake ../path/to/vtk.

-Bill


At 09:40 PM 8/27/2002 +0200, Stefan Bruckner wrote:
Hi!

I'm trying to compile VTK with the Kylix 3 bc++ (http://www.borland.com/kylix)
compiler, but I can't get it to work. Has anyone tried this yet and is
willing to share his or her experience? (cmake settings would be very much
appreciated)

Also, cmake  does support Borland C++ Builder in its Windows version. But these settings are
not displayed unless you have C++ Builder installed (which I have not).
Maybe someone can look at these settings and post them here. This might also
give me some hints ...

Thanks a lot!

--
Stefan Bruckner

--=====================_-1942446410==_.ALT-- From stefan.bruckner@chello.at Tue Aug 27 21:19:33 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: Tue, 27 Aug 2002 22:19:33 +0200 Subject: [vtkusers] Building VTK with Kylix bc++ In-Reply-To: <000101c24e01$9f82d2c0$0100a8c0@SID> Message-ID: <000b01c24e07$0e58bf70$bc9fbad4@SID> This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C24E17.D1E18F70 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable have tried that, but the issue seems zu be a little more complicated. The Borland compiler doesn't understand many of the gcc options used to build the shared libraries. For some of these I wasn't able to find equivalents for the settings. I have tried some things but it always fails to build correctly ...=20 =20 These are the settings that seem particularly problematic: =20 CMAKE_CXX_MODULE_BUILD_FLAGS -shared CMAKE_CXX_MODULE_LINK_FLAGS -rdynamic CMAKE_CXX_SHLIB_BUILD_FLAGS -shared CMAKE_CXX_SHLIB_CFLAGS -fPIC CMAKE_CXX_SHLIB_LINK_FLAGS -rdynamic CMAKE_CXX_SHLIB_RUNTIME_FLAG -Wl,-rpath, =20 btw. it's called bc++, probably because of a naming conflict with Bruce's C Compiler (bcc) on a lot of Linux distros ... =20 -- Thanks, Stefan =20 -----Urspr=FCngliche Nachricht----- Von: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] Im Auftrag von William A. Hoffman Gesendet: Dienstag, 27. August 2002 21:45 An: Stefan Bruckner; vtkusers@public.kitware.com Betreff: Re: [vtkusers] Building VTK with Kylix bc++ I would trying using this compiler like any other unix compiler: setenv CXX bcc setenv CC bcc (I am assuming the klyix compiler is called bcc from the command line, but it might have some other name.) Then run ccmake ../path/to/vtk. -Bill At 09:40 PM 8/27/2002 +0200, Stefan Bruckner wrote: Hi! I'm trying to compile VTK with the Kylix 3 bc++ (http://www.borland.com/kylix) compiler, but I can't get it to work. Has anyone tried this yet and is willing to share his or her experience? (cmake settings would be very much appreciated) Also, cmake does support Borland C++ Builder in its Windows version. But these settings are not displayed unless you have C++ Builder installed (which I have not). Maybe someone can look at these settings and post them here. This might also give me some hints ... Thanks a lot! -- Stefan Bruckner ------=_NextPart_000_000C_01C24E17.D1E18F70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Nachricht
have tried that, but = the issue seems=20 zu be a little more complicated. The Borland compiler doesn't understand = many of=20 the gcc options used to build the shared libraries. For some of these I = wasn't=20 able to find equivalents for the settings. I have tried some things but = it=20 always fails to build correctly ...
 
These=20 are the settings that seem particularly problematic:
 
CMAKE_CXX_MODULE_BUILD_FLAGS=20 -shared

CMAKE_CXX_MODULE_LINK_FLAGS=20 -rdynamic

CMAKE_CXX_SHLIB_BUILD_FLAGS=20 -shared

CMAKE_CXX_SHLIB_CFLAGS = -fPIC

CMAKE_CXX_SHLIB_LINK_FLAGS=20 -rdynamic

CMAKE_CXX_SHLIB_RUNTIME_FLAG=20 -Wl,-rpath,

 
btw.=20 it's called bc++, probably because of a naming conflict with Bruce's C = Compiler=20 (bcc) on a lot of Linux distros ...
 
--
Thanks,
Stefan
 
-----Urspr=FCngliche Nachricht-----
Von:=20 vtkusers-admin@public.kitware.com = [mailto:vtkusers-admin@public.kitware.com]=20 Im Auftrag von William A. Hoffman
Gesendet: Dienstag, = 27.=20 August 2002 21:45
An: Stefan Bruckner;=20 vtkusers@public.kitware.com
Betreff: Re: [vtkusers] Building = VTK=20 with Kylix bc++

I would trying using this compiler = like=20 any other unix compiler:

setenv CXX bcc
setenv CC = bcc

(I am=20 assuming the klyix compiler is called bcc from the command = line,
but it=20 might have some other name.)

Then run ccmake=20 ../path/to/vtk.

-Bill


At 09:40 PM 8/27/2002 +0200, = Stefan=20 Bruckner wrote:
Hi!

I'm trying to compile VTK = with the=20 Kylix 3 bc++ (http://www.borland.com/kylix)compiler,=20 but I can't get it to work. Has anyone tried this yet and = is
willing to=20 share his or her experience? (cmake settings would be very=20 much
appreciated)

Also, cmake  does support Borland = C++=20 Builder in its Windows version. But these settings are
not = displayed=20 unless you have C++ Builder installed (which I have not).
Maybe = someone=20 can look at these settings and post them here. This might = also
give me=20 some hints ...

Thanks a lot!

--
Stefan = Bruckner
------=_NextPart_000_000C_01C24E17.D1E18F70-- From berk.geveci@kitware.com Tue Aug 27 21:42:23 2002 From: berk.geveci@kitware.com (Berk Geveci) Date: 27 Aug 2002 16:42:23 -0400 Subject: [vtkusers] New plot3D reader Message-ID: <1030480945.13780.18.camel@caemlyn.kitwarein.com> Hi all, I am writing a new Plot3D reader which supports: - multigrid (each block is one output) - ascii - fortran-style byte counts - little/big endian - i-blanking (partial) I would appreciate some information on how people are using the current reader: - The current reader can compute a lot variables including vorticity, temperature etc. Is anybody using this functionality ? - There is an achaic interface which maps function numbers to variables: 100 -> density, 110 -> pressure etc. Anybody attached to those ? Also, I would really appreciate it if someone donated a few (nice looking) example files. -Berk From stefan.bruckner@chello.at Tue Aug 27 22:55:42 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: 27 Aug 2002 23:55:42 +0200 Subject: [vtkusers] Re: Re: Re: Building VTK with Kylix bc++ In-Reply-To: <000401c24e0b$e8b6dc20$bc9fbad4@SID> References: <000401c24e0b$e8b6dc20$bc9fbad4@SID> Message-ID: <1030485342.1390.16.camel@NANCY> --=-qxNHMX2CmIG/FMinDffR Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: quoted-printable I have tried the -tD flag for building shared libraries and the -VC flag for position independent code, but when I build I always get: Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c: Warning W8065 /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c 383: Call to function 'getopt' with no prototype in function main bc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o /usr/src/packages/SOURCES/VTK/bin/mkg3states Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland Error E2194: Could not find file '/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp' make[5]: *** [/usr/src/packages/SOURCES/VTK/bin/mkg3states] Fehler 1 make[4]: *** [default_target] Fehler 2 make[3]: *** [default_target_tiff] Fehler 2 make[2]: *** [default_target] Fehler 2 make[1]: *** [default_target_Utilities] Fehler 2 make: *** [default_target] Fehler 2 I have attached the bc++ command line options from the Kylix help. Thanks for your help, Stefan Bruckner > Von: William A. Hoffman [mailto:billlist@nycap.rr.com]=20 > Gesendet: Dienstag, 27. August 2002 22:15 > An: Stefan Bruckner > Betreff: Re: AW: [vtkusers] Building VTK with Kylix bc++ >=20 >=20 > Well, you could build static and not shared. > If you want shared, you are going to have to figure out how > to create a shared library with bc++. Then change those > flags in your cmakecache. Do you have an example of how > to build a shared library with bc++? >=20 > -Bill >=20 >=20 > At 10:17 PM 8/27/2002 +0200, you wrote: >=20 >=20 > I have tried that, but the issue seems zu be a little more complicated. > The Borland compiler doesn't understand many of the gcc options used to > build the shared libraries. For some of these I wasn't able to find > equivalents for the settings. I have tried some things but it always > fails to build correctly ... > =20 > These are the settings that seem particularly problematic: > =20 > CMAKE_CXX_MODULE_BUILD_FLAGS -shared >=20 > CMAKE_CXX_MODULE_LINK_FLAGS -rdynamic >=20 > CMAKE_CXX_SHLIB_BUILD_FLAGS -shared >=20 > CMAKE_CXX_SHLIB_CFLAGS -fPIC >=20 > CMAKE_CXX_SHLIB_LINK_FLAGS -rdynamic >=20 > CMAKE_CXX_SHLIB_RUNTIME_FLAG -Wl,-rpath, > btw. it's called bc++, probably because of a naming conflict with > Bruce's C Compiler (bcc) on a lot of Linux distros ... > =20 > -- > Thanks, > Stefan > =20 >=20 >=20 > -----Urspr=FCngliche Nachricht-----=20 >=20 > Von: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com] Im Auftrag von William A. > Hoffman=20 >=20 > Gesendet: Dienstag, 27. August 2002 21:45=20 >=20 > An: Stefan Bruckner; vtkusers@public.kitware.com=20 >=20 > Betreff: Re: [vtkusers] Building VTK with Kylix bc++ >=20 >=20 >=20 > I would trying using this compiler like any other unix compiler: >=20 >=20 >=20 > setenv CXX bcc=20 >=20 > setenv CC bcc >=20 >=20 >=20 > (I am assuming the klyix compiler is called bcc from the command line,=20 >=20 > but it might have some other name.) >=20 >=20 >=20 > Then run ccmake ../path/to/vtk. >=20 >=20 >=20 > -Bill >=20 >=20 >=20 >=20 >=20 > At 09:40 PM 8/27/2002 +0200, Stefan Bruckner wrote:=20 >=20 >=20 >=20 > Hi! >=20 >=20 >=20 > I'm trying to compile VTK with the Kylix 3 bc++ > (http://www.borland.com/kylix)=20 >=20 > compiler, but I can't get it to work. Has anyone tried this yet and is=20 >=20 > willing to share his or her experience? (cmake settings would be very > much=20 >=20 > appreciated) >=20 >=20 >=20 > Also, cmake does support Borland C++ Builder in its Windows version. > But these settings are=20 >=20 > not displayed unless you have C++ Builder installed (which I have not).=20 >=20 > Maybe someone can look at these settings and post them here. This might > also=20 >=20 > give me some hints ... >=20 >=20 >=20 > Thanks a lot! >=20 >=20 >=20 > --=20 >=20 > Stefan Bruckner >=20 --=-qxNHMX2CmIG/FMinDffR Content-Disposition: attachment; filename=bc.txt Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-15 =20 The syntax for compiling on the command line is: bc++ [option [option...]] filename [filename...] Where: Items enclosed in brackets are optional. option refers to the compiler options listed below. filename refers to the source-code files you want to compile. Note that using an option followed by a hyphen such as -X- usually undoes w= hatever is set using -X. For example, -X means disable compiler autodepende= ncy output but -X- means the opposite: use compiler autodependency output. = For options that have arguments, you can negate them using a hyphen before = the argument, for example, -w-xxx. To get help on the options, use the -h option. For options having multiple = forms (indicated by xxx), type the option after the -h. For example, to dis= play all of the alignment options: bc++ -h -a Note: If you receive "Message not found" instead of the description, you ne= ed to source kylixpath: source /bin/kylixpath The following table is an alphabetical listing of the C++ compiler options: Option Description @Read compiler options from the response file filename +Use alternate compiler configuration file filename -3 Generate 80386 protected-mode compatible instructions (Defa= ult) -4 Generate 80386/80486 protected-mode compatible instructions -5 Generate Pentium instructions -6 Generate Pentium Pro instructions -A Use ANSI keywords and extensions -AK Use Kernighan and Ritchie keywords and extensions -AT Use Borland C++ keywords and extensions (also -A-) -AU Use UNIX V keywords and extensions -a Default (-a8) data alignment; -a- is byte alignment (-a1) -an Align data on "n" boundaries, where 1=3Dbyte, 2=3Dword (2 by= tes), 4=3Ddouble word (4 bytes), 8=3Dquad word (8 bytes), 16=3Dparagraph (1= 6 bytes) (Default: -a8) -b Make enums always integer-sized (Default: -b makes enums in= teger size) -b- Make enums byte-sized when possible -C Turn nested comments on (Default: -C- turn nested comments = off) -c Compile to object file, do not link -D Define "name" as a null string -D Define "name" as "string" -d Merge duplicate strings -d- Do not merge duplicate strings (Default) -e Specify target executable pathname. Preferred usage: -o, when -c is not used. -ff Fast floating point (Default) -fp Correct Pentium FDIV flaw -gn Warnings: stop after n messages (Default =3D 255) -G, -G- Optimize for size/speed; use -O1 and -O2 instead -H Generate and use precompiled headers -H- Do not generate or use precompiled headers (Default) -h Request Help; -h - shows all help. You can also get specifi= c help on an option:-h -opt -H=3D Set the name of the file for precompiled headers -H"xxx" Stop precompiling after header file xxx -Hc Cache precompiled header (Must be used with -H or -H"xxx") -He Enable precompiled headers with external type files (Default= ) -Hh=3Dxxx Stop precompiling after header file xxx -Hs Enable smart cached precompiled headers (Default) -Hu Use but do not generate precompiled headers -I Set the include file search path -in Set maximum significant identifier length to n (Default =3D = 250) -Ja Expand all template members (including unused members) -Jgd Generate definitions for all template instances and merge du= plicates (Default) -Jgx Generate external references for all template instances -jn Stop batch compilation after n messages (Default =3D None) -K Set default character type to unsigned (Default: -K- defaul= t character type signed) -k Generate standard stack frames (Default) -L Set the library file search path -lx Pass option x to linker -l-x Disables option x for the linker -M Create a linker map file -m Generate makefile dependency information -md Put dependency information in .d files, not in the object fi= le -mm Ignore system header files while generating dependency info -mo Specify the output file for dependency information -n Set output directory for object files to path -O Optimize jumps -O1 Generate smallest possible code -O2 Generate fastest possible code -Ob Dead store elimination -Oc Eliminate duplicate expressions within basic blocks and func= tions -Od Disable all optimizations -Oi Expand common intrinsic functions -OS Pentium instruction scheduling -O-S Disables instruction scheduling -Og Optimize for speed; use -O2 instead -Os Optimize for speed; use -O2 instead -Ot Optimize for size; use -O1 instead -Ov Enable loop induction variable and strength reduction -Ox Optimize for speed; use -O2 instead -o Set output file name to an executable file when -c is not in = use, or to an object file when -c is in use -P Perform C++ compile regardless of source extension -P- Perform C++ compile depending on source file extension -P Perform C++ compile, set default extension to -p Use Pascal calling convention -p- Use C calling convention -pc Use C calling convention (Default: -pc, -p-) -pr Use fastcall calling convention for passing parameters in re= gisters -ps Use stdcall calling convention -Q Extended compiler error information (Default =3D OFF) -q Suppress compiler identification banner (Default =3D OFF) -R Include browser information in generated object files -RT Enable runtime type information (Default) -r Use register variables=20 -r- Disable the use of register variables -rd Use register variables only when register keyword is employe= d Compile to Windows-style assembly language (for informatio= nal purposes only) -T- Remove all assembler options -Tx Specify assembler option x -t Target is a Linux application -tC Target is a console application -tCS Target is statically linked -tD Target is a shared object file -tP Target is a package -U Undefine any previous definitions of name -u Generate underscores on symbol names (Default) -V Use smart C++ virtual tables (Default) -v Turn on source debugging -V0 External C++ virtual tables -V1 Public C++ virtual tables -VA Generate all global functions in their own virtual/weak segm= ent (Default) -Va Support old-style class arguments -Vc Support constructor displacements -Vd Use old C++ for loop variable scoping rules -Ve Zero-length empty base classes -Vg Disable lexical digraph scanner -vi Generate inline functions inline (Default) -vi- Generate inline functions out of line -Vl Use old-style Borland C++ structure layout (for compatibilit= y with older Borland C++ compilers) -Vmd Use the smallest possible representation for member pointers= =20 -Vmm Support multiple inheritance for member pointers -Vmp Honor declared precision of member pointers -Vms Support single inheritance for member pointers -Vmv Place no restrictions on where member pointers can point (De= fault) -Vn Enable new operator names: and, or, and_eq, bitand, and so o= n -Vo Set most compatibility flags; used with old code -VP Generate PIC code (Grayed out for new applications and share= d objects and On for packages) -Vp Push 'this' first (like Pascal) -Vr Reverse order for multi-character -Vs Use old-style virdef generation -Vt Put virtual table pointer at front of object layout -vu Do not prefix underbars to exported symbol names -Vv Use slow virtual base pointers -Vw Emit native code instead of Unicode for multi-byte character -Vx Zero-length empty class member functions -w Display all warnings -w! Returns nonzero from compiler on warnings -wxxx Enable xxx warning message -w-xxx Disable xxx warning message -wmsg User-defined warnings -X Disable compiler autodependency output (Default: -X- use co= mpiler autodependency output) -x Enable exception handling (Default) -xd Enable destructor cleanup (Default) -xf Enable fast exception prologs -xp Enable exception location information -xs Enable slow exception epilogs -xv Hide special exception handling variables so variables of th= is name can be used. -y Add debug line numbers C++ message options (alphabetical listing) Option Number (Alias) Warning message -w-ali -w-8086 Incorrect use of #pragma alias "aliasName" =3D "= substitutename" (Default ON) -wamb -w8000 Ambiguous operators need parentheses (Default O= FF) -wamp -w8001 Superfluous & with function (Default OFF) -w-asc -w-8002 Restarting compile using assembly (Default ON) -wasm -w8003 Unknown assembler instruction (Default OFF) -w-aus -w-8004 'identifier' is assigned a value that is never u= sed (Default ON) -wbbf -w8005 Bit fields must be signed or unsigned int (Defa= ult OFF) -w-bei -w-8006 Initializing 'identifier' with 'identifier' (Def= ault ON) -w-big -w-8007 Hexadecimal value contains more than three digit= s (Default ON) -w-ccc -w-8008 Condition is always true OR Condition is always = false (Default ON) -wcln -w8009 Constant is long (Default OFF) -w-cod -w-8093 Incorrect use of #pragma codeseg (Default ON) -w-com -w-8010 Continuation character \ found in // comment (De= fault ON) -w-cpt -w-8011 Nonportable pointer comparison (Default ON) -w-csu -w-8012 Comparing signed and unsigned values (Default ON= ) -wdef -w8013 Possible use of 'identifier' before definition = (Default OFF) -w-dig -w-8014 Declaration ignored (Default ON) -w-dpu -w-8015 Declare 'type' prior to use in prototype (Defaul= t ON) -w-dsz -w-8016 Array size for 'delete' ignored (Default ON) -w-dup -w-8017 Redefinition of 'macro' is not identical (Defaul= t ON) -w-eas -w-8018 Assigning 'type' to 'enum' (Default ON) -w-eff -w-8019 Code has no effect (Default ON) -w-ext -w-8020 'identifier' is declared as both external and st= atic (Default ON) -w-hch -w-8021 Handler for 'type1' Hidden by Previous Handler f= or 'type2' (Default ON) -w-hid -w-8022 'function1' hides virtual function 'function2' (= Default ON) -w-ias -w-8023 Array variable 'identifier' is near (Default ON) -w-ibc -w-8024 Base class 'class1' is also a base class of 'cla= ss2' (Default ON) -w-ifr -w-8085 Function 'function' redefined as non-inline (Def= ault ON) -w-ill -w-8025 Ill-formed pragma (Default ON) -w-inl -w-8026 Functions containing certain constructs are not = expanded inline (Default ON) -w-inl -w-8027 Functions containing reserved words are not expa= nded inline (Default ON) -w-lin -w-8028 Temporary used to initialize 'identifier' (Defau= lt ON) -w-lvc -w-8029 Temporary used for parameter 'parameter' (Defaul= t ON) -w-lvc -w-8030 Temporary used for parameter 'parameter' in call= to 'function' (Default ON) -w-lvc -w-8031 Temporary used for parameter number (Default ON) -w-lvc -w-8032 Temporary used for parameter number in call to '= function' (Default ON) -w-mcc -w-8098 Multi-character character constant -w-mcs -w-8096 Incorrect use of #pragma code_seg (Default ON) -w-mes -w-8095 Incorrect use of #pragma message (Default ON) -w-mpc -w-8033 Conversion to 'type' fails for members of virtua= l base 'base' (Default ON) -w-mpd -w-8034 Maximum precision used for member pointer type '= type' (Default ON) -w-msg -w-8035 User-defined warnings (Default ON) -wnak -w8036 Non-ANSI Keyword Used: 'keyword' (Default OFF)(= Note: Use of this option is required for ANSI conformance) -w-ncf -w-8037 Non-const function 'function' called for const o= bject (Default ON) -w-nci -w-8038 Constant member 'identifier' is not initialized = (Default ON) -w-ncl -w-8039 Constructor initializer list ignored (Default ON= ) -w-nfd -w-8040 Function body ignored (Default ON) -w-ngu -w-8041 Negating unsigned value (Default ON) -w-nin -w-8042 Initializer for object 'identifier' ignored (Def= ault ON) -w-nma -w-8043 Macro definition ignored (Default ON) -w-nmu -w-8044 #undef directive ignored (Default ON) -wnod -w8045 No declaration for function 'function' (Default= OFF) -w-nop -w-8046 Pragma option pop with no matching option push (= Default ON) -w-npp -w-8083 Pragma pack pop with no matching pack push (Defa= ult ON) -w-nsf -w-8047 Declaration of static function 'function(...)' i= gnored (Default ON) -w-nst -w-8048 Use qualified name to access nested type 'type' = (Default ON) -w-ntd -w-8049 Use '> >' for nested templates instead of '>>' (= Default ON) -w-nto -w-8050 No type OBJ file present. Disabling external typ= es option. (Default ON) -w-nvf -w-8051 Non-volatile function 'function' called for vola= tile object (Default ON) -w-obi -w-8052 Base initialization without a class name is now = obsolete (Default ON) -w-obs -w-8053 'identifier' is obsolete (Default ON) -w-ofp -w-8054 Style of function definition is now obsolete (De= fault ON) -w-onr -w-8097 Not all options can be restored at this time (De= fault ON) -w-osh -w-8055 Possible overflow in shift operation (Default ON= ) -w-ovf -w-8056 Integer arithmetic overflow (Default ON) -w-par -w-8057 Parameter 'parameter' is never used (Default ON) -w-pch -w-8058 Cannot create pre-compiled header: 'header' (Def= ault ON) -w-pck -w-8059 Structure packing size has changed (Default ON) -w-psb -w-8099 Static 'main' is not treated as an entry point=20 -w-pcm -w-8094 Incorrect use of #pragma comment (Default ON) -w-pia -w-8060 Possibly incorrect assignment (Default ON) -wpin -w8061 Initialization is only partially bracketed (Def= ault OFF) -w-pow -w-8062 Previous options and warnings not restored (Defa= ult ON) -w-prc -w-8084 Suggest parentheses to clarify precedence (Defau= lt OFF) -w-pre -w-8063 Overloaded prefix operator 'operator' used as a = postfix operator (Default ON) -w-pro -w-8064 Call to function 'function' with no prototype (D= efault ON) -w-pro -w-8065 Call to function 'function' with no prototype (D= efault ON) -w-rch -w-8066 Unreachable code (Default ON) -w-ret -w-8067 Both return and return of a value used (Default = ON) -w-rng -w-8068 Constant out of range in comparison (Default ON) -w-rpt -w-8069 Nonportable pointer conversion (Default ON) -w-rvl -w-8070 Function should return a value (Default ON) -wsig -w8071 Conversion may lose significant digits (Default= OFF) -w-spa -w-8072 Suspicious pointer arithmetic (Default ON) -w-stl -w-8087 'operator=3D=3D' must be publicly visible to be = contained by a 'name' (Default OFF) -w-stl -w-8089 'operator<' must be publicly visible to be conta= ined by a 'name' (Default OFF) -w-stl -w-8090 'operator<' must be publicly visible to be used = by a 'name' (Default OFF) -w-stl -w-8091 'type' argument 'argument' passed to 'function' = is a 'type' iterator. 'type' iterator required (Default OFF) -w-stl -w-8092 'type' argument 'argument' passed to 'function' = is not an iterator. 'type' iterator required (Default OFF) -wstu -w8073 Undefined structure 'structure' (Default OFF) -wstv -w8074 Structure passed by value (Default OFF) -w-sus -w-8075 Suspicious pointer conversion (Default ON) -w-tai -w-8076 Template instance 'instance' is already instanti= ated (Default ON) -w-tes -w-8077 Explicitly specializing an explicitly specialize= d class member makes no sense (Default ON) -w-thr -w-8078 Throw expression violates exception specificatio= n (Default ON) -wucp -w8079 Mixing pointers to different 'char' types (Defa= ult OFF) -wuse -w8080 'identifier' declared but never used (Default O= FF) -w-voi -w-8081 void functions may not return a value (Default O= N) -w-zdi -w-8082 Division by zero (Default ON) --=-qxNHMX2CmIG/FMinDffR-- From vijon77@hotmail.com Wed Aug 28 06:48:26 2002 From: vijon77@hotmail.com (=?ks_c_5601-1987?B?wMy/67yu?=) Date: Wed, 28 Aug 2002 14:48:26 +0900 Subject: [vtkusers] Using OpenGL texture matrix in VTK? Message-ID: <000001c24e56$87b36470$da6997da@leon> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C24EA1.F7B216E0 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: 7bit OpenGL offers the possibility to define a texture matrix, which is defined as the identity matrix by default, the matrix being applied to all textures coordinates before rendering occurs. As far as I know, this operation is performed in hardware when a 3D graphics card is available and supports OpenGL. I would like to know whether I could make use of this feature with VTK. Does anybody have a response to my question (possible and why or not possible in VTK)? Thanks in advance for your help. One more question, VTK can using OpenGL model? I want know cording..ABOUT THAT. I use vtk v.2.2 & visual c++ 6.0 Here is my cording. void CFirstViewManager::OnPaint() { CPaintDC dc(this); // device context for painting // TODO: Add your message handler code here HWND hwnd = GetSafeHwnd(); HDC hdc = ::GetDC(hwnd); if (m_ren) { m_renWin->Render(); m_iren->Start(); SwapBuffers(hdc); RECT rect; ::GetClientRect(hwnd,&rect); ValidateRect(&rect); GLfloat ambientLight[] = {0.4f, 0.4f, 0.4f, 1.0f }; GLfloat diffuseLight[] = {0.7f, 0.7f, 0.7f, 1.0f }; GLfloat specular[] = { 0.9f, 0.9f, 0.9f, 1.0f}; GLfloat lightPos[] = { -50.0f, 200.0f, 200.0f, 1.0f }; GLfloat specref[] = { 0.6f, 0.6f, 0.6f, 1.0f }; glEnable(GL_DEPTH_TEST); // Hidden surface removal glEnable(GL_CULL_FACE); // Do not calculate inside of solid object glFrontFace(GL_CCW); // Enable lighting glEnable(GL_LIGHTING); // Setup light 0 glLightModelfv(GL_LIGHT_MODEL_AMBIENT,ambientLight); glLightfv(GL_LIGHT0,GL_AMBIENT,ambientLight); glLightfv(GL_LIGHT0,GL_DIFFUSE,diffuseLight); glLightfv(GL_LIGHT0,GL_SPECULAR,specular); // Position and turn on the light glLightfv(GL_LIGHT0,GL_POSITION,lightPos); glEnable(GL_LIGHT0); // Enable color tracking glEnable(GL_COLOR_MATERIAL); // Set Material properties to follow glColor values glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE); // All materials hereafter have full specular reflectivity // with a moderate shine glMaterialfv(GL_FRONT, GL_SPECULAR,specref); glMateriali(GL_FRONT,GL_SHININESS,64); // Black background // glClearColor(0.0f, 0.0f, 0.0f, 1.0f ); // SwapBuffers(pDC->hDC); DrawScene(); //**Draw Bolt, It made by Opengl. ------=_NextPart_000_0001_01C24EA1.F7B216E0 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: quoted-printable

OpenGL offers the possibility to define a texture matrix, =

which is defined as the identity matrix by default, the matrix being = applied to all textures coordinates before rendering occurs. =

As far as I know, this operation is performed in hardware when a 3D graphics card is available and supports OpenGL. =

I would like to know whether I could make use of this feature with = VTK. Does anybody have a response to my question =

(possible and why or not possible in = VTK)? Thanks in advance for your help.

 

One more question,

VTK can using OpenGL = model?

 

I want know cording..ABOUT THAT.

 

I use vtk v.2.2 & visual c++ 6.0 =

 

Here is my cording.

 

void CFirstViewManager::OnPaint() =

{

        = ;     CPaintDC dc(this); // = device context for painting

        = ;    

        = ;     // TODO: Add your message handler code here

        = ;     HWND hwnd =3D GetSafeHwnd();

        = ;     HDC hdc =3D ::GetDC(hwnd);

  if (m_ren)

        = ;            =        = {

        = ;            =        m_renWin->Render();

        = ;            =        m_iren->Start();

        = ;            =        SwapBuffers(hdc);

        = ;            =        RECT rect;

        = ;            =        ::GetClientRect(hwnd,&rect);

        = ;            =        ValidateRect(&rect);

 

        = ;     GLfloat  ambientLight[] =3D {0.4f, 0.4f, 0.4f, 1.0f };

        = ;     GLfloat  diffuseLight[] =3D {0.7f, 0.7f, 0.7f, 1.0f };

        = ;     GLfloat  specular[] =3D { 0.9f, 0.9f, 0.9f, 1.0f};

        = ;     GLfloat   lightPos[] =3D { -50.0f, 200.0f, 200.0f, 1.0f };

        = ;     GLfloat  specref[] =3D  { 0.6f, 0.6f, 0.6f, = 1.0f };

 

        = ;     glEnable(GL_DEPTH_TEST);        = ;   // Hidden surface removal

        = ;     glEnable(GL_CULL_FACE);        = ;            =       // Do not calculate inside of solid object

        = ;     glFrontFace(GL_CCW);

        = ;    

        = ;     // Enable lighting

        = ;     glEnable(GL_LIGHTING);

 

        = ;     // Setup light 0

        = ;     glLightModelfv(GL_LIGHT_MODEL_AMBIENT,ambientLight);

        = ;     glLightfv(GL_LIGHT0,GL_AMBIENT,ambientLight);

        = ;     glLightfv(GL_LIGHT0,GL_DIFFUSE,diffuseLight);

        = ;     glLightfv(GL_LIGHT0,GL_SPECULAR,specular);<= /font>

 

        = ;     // Position and turn on the light

        = ;     glLightfv(GL_LIGHT0,GL_POSITION,lightPos);<= /font>

        = ;     glEnable(GL_LIGHT0);

 

        = ;     // Enable color tracking

        = ;     glEnable(GL_COLOR_MATERIAL);

        = ;    

        = ;     // Set Material properties to follow glColor = values

        = ;     glColorMaterial(GL_FRONT, GL_AMBIENT_AND_DIFFUSE);

 

        = ;     // All materials hereafter have full specular reflectivity

        = ;     // with a moderate shine

        = ;     glMaterialfv(GL_FRONT, GL_SPECULAR,specref);

        = ;     glMateriali(GL_FRONT,GL_SHININESS,64);=

 

        = ;     // Black background

//        = ;   glClearColor(0.0f, 0.0f, 0.0f, 1.0f );

 

//        = ;   SwapBuffers(pDC->hDC);   =

        = ;     DrawScene();  //©&no= t;Draw Bolt, It made by Opengl.

 

 

 

 

------=_NextPart_000_0001_01C24EA1.F7B216E0-- From vijon77@hotmail.com Wed Aug 28 06:52:35 2002 From: vijon77@hotmail.com (=?ks_c_5601-1987?B?wMy/67yu?=) Date: Wed, 28 Aug 2002 14:52:35 +0900 Subject: [vtkusers] MFC CWnd and VTK In-Reply-To: <200104191251.IAA24356@public.kitware.com> Message-ID: <000a01c24e57$1c050ed0$da6997da@leon> Hi, everyone, I would like to write a MDI application using MFC, making a rendering appear inside a child window. I'm trying to use an instance of vtkWin32OpenGLRenderWindow, but so far I couldn't work it out. Can anyone give me a hint? (I'm still using VTK2.2 and VC++6.0) Thank you From PreethishK@geind.ge.com Wed Aug 28 07:21:40 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Wed, 28 Aug 2002 11:51:40 +0530 Subject: [vtkusers] vtk+solaris+java installation problem Message-ID: <10B96F9B1453D61191B400508B650D94024E2ECD@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C24E5B.2BBB97A0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi, =20 i was trying to build vtk java on solaris, i am attaching user.make also. =20 JDKHOME=3D/usr/java1.2 JAVAC=3D${JDKHOME}/bin/javac JAVA_CLASS_HOME=3D/homes/kumarm/vtk31 JAVAH=3D${JDKHOME}/bin/javah JAVA_INCLUDES=3D-I${JDKHOME}/include -I${JDKHOME}/include/solaris JAVA_CXX_LIB=3D-lC =20 i got an error at the end of installation. =20 the error was=20 =20 CC -G \ -o libvtkJava.so -L. -L../common -L/homes/kumarm/vtk31/i maging -lVTKImagingJava -lVTKImaging -L/homes/kumarm/vtk31/graphics -lVTKGra phicsJava -lVTKGraphics -lVTKCommonJava -lVTKCommon = -L/usr/openwin/lib -R/usr/ openwin/lib -L/usr/openwin/lib -lGL -ldl \ -L/usr/openwin/lib -R/usr/openwin/lib -lXext -lSM -lICE -lX11 -lsocket -lnsl -l C ld: warning: symbol `_GLOBAL_OFFSET_TABLE_' has differing sizes: (file /homes/kumarm/vtk31/imaging/libVTKImagingJava.so = value=3D0x0; file / homes/kumarm/vtk31/graphics/libVTKGraphicsJava.so value=3D0x11e6); /homes/kumarm/vtk31/imaging/libVTKImagingJava.so definition = taken ld: fatal: library -lC: not found ld: fatal: File processing errors. No output written to libvtkJava.so *** Error code 1 make: Fatal error: Command failed for target `libvtkJava.so' _____ =20 = Upgrade Outlook=AE - Add COLOR to your Emails =09 Outlook=AE is a registered trademark of Microsoft Corporation=09 "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR = THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this=20 communication is strictly Prohibited.=20 If you have received this message by error, please notify us=20 immediately, return the original mail to the sender and delete the=20 message from your system." ------_=_NextPart_001_01C24E5B.2BBB97A0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
hi,
 
    i = was trying to=20 build vtk java on solaris, i am attaching user.make=20 also.
 
JDKHOME=3D/usr/java1.2
JAVAC=3D${JDKHOME}/= bin/javac
JAVA_CLASS_HOME=3D/homes/kumarm/vtk31
JAVAH=3D${JDKHOME}= /bin/javah
JAVA_INCLUDES=3D-I${JDKHOME}/include=20 -I${JDKHOME}/include/solaris
JAVA_CXX_LIB=3D-lC
 
i got an error at the end of=20 installation.
 
the error was
 
CC  -G=20 \
-o libvtkJava.so -L. =20 -L../common          &= nbsp;           &= nbsp;=20 -L/homes/kumarm/vtk31/i
maging -lVTKImagingJava=20 -lVTKImaging     -L/homes/kumarm/vtk31/graphics=20 -lVTKGra
phicsJava -lVTKGraphics  -lVTKCommonJava = -lVTKCommon =20 -L/usr/openwin/lib -R/usr/
openwin/lib -L/usr/openwin/lib -lGL = -ldl =20 \
-L/usr/openwin/lib -R/usr/openwin/lib -lXext -lSM -lICE -lX11=20 -lsocket  -lnsl -l
C
ld: warning: symbol = `_GLOBAL_OFFSET_TABLE_' has=20 differing sizes:
        (file=20 /homes/kumarm/vtk31/imaging/libVTKImagingJava.so value=3D0x0; file=20 /
homes/kumarm/vtk31/graphics/libVTKGraphicsJava.so=20 value=3D0x11e6);
       =20 /homes/kumarm/vtk31/imaging/libVTKImagingJava.so definition = taken
ld: fatal:=20 library -lC: not found
ld: fatal: File processing errors. No output = written=20 to libvtkJava.so
*** Error code 1
make: Fatal error: Command = failed for=20 target `libvtkJava.so'


Outlook=AE is a registered trademark of Microsoft=20 Corporation
Upgrade=20 Outlook=AE - Add COLOR to=20 your Emails  


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C24E5B.2BBB97A0-- From andreas.loesch@gmx.net Wed Aug 28 10:04:47 2002 From: andreas.loesch@gmx.net (Andreas Loesch) Date: Wed, 28 Aug 2002 11:04:47 +0200 Subject: [vtkusers] Re: Vtk book out of print; what now? In-Reply-To: <20020827201002.710C41AB28@public.kitware.com> Message-ID: I didn'f find it in Germany, so I ordered my User Guide via Amazon USA (14th August), yesterday the book was shipped.... .... I've choosen a cheaper shipping (standard international) so it is estimated to arrive here about 26th September. Andreas > Message: 3 > From: "Brunen, Johannes" > To: "'vtkusers@public.kitware.com'" > Date: Tue, 27 Aug 2002 17:25:29 +0200 > Subject: [vtkusers] Re: Vtk book out of print; what now? > > Great news, > > however, I have the problem ordering the VTK Users's Guide > 4.0 book from > Germany. > Amazon does not offer the book for Germany. Ordering from > Kitware is to > expensive > due to the shipping cost. Does anyone know a German reseller > of the guide. > > With best regards > From baudet@ondim.fr Wed Aug 28 10:20:30 2002 From: baudet@ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Wed, 28 Aug 2002 11:20:30 +0200 Subject: [vtkusers] Black texture Message-ID: <004801c24e74$27c5ea10$1c00a8c0@muscles> Hi all, On some computer (WinNT4 or Win2K), with different graphic card, textures (using vtkImageReader2Factory and vtkTexture) appears black, is it a depth color problem or something like that? Or a graphic card driver problem? Does someone encounter the same problem? Thanks a lot for your answers!! R=E9my Baudet ONDIM - Signal | Image | Multim=E9dia Email : baudet@ondim.fr T=E9l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris From j.robinson@kepler.ie Wed Aug 28 11:04:30 2002 From: j.robinson@kepler.ie (James C. Robinson) Date: Wed, 28 Aug 2002 11:04:30 +0100 Subject: [vtkusers] Slow Message-ID: Dear All, I have written a finite element simulation program. It has a C++ GUI and a FORTRAN 90 simulation engine. Previously I was using a games oriented graphics library for visualisation. I have now included a vtk MFC based window. However, I am finding that the simulation times have increased by 70-90%, despite the fact that the graphics functions aren't (I am pretty sure) called during the simulation (which runs on a separate thread). I am using the static version of the vtk libraries, compiled for Pentium Pro and mutilthread. Any ideas?? Yours in hope, Jim ______________________ James C. Robinson, PhD, Chartered Engineer, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson@kepler.ie ______________________ From p.cook@cs.ucl.ac.uk Wed Aug 28 11:55:31 2002 From: p.cook@cs.ucl.ac.uk (Phil Cook) Date: 28 Aug 2002 11:55:31 +0100 Subject: [vtkusers] Control visibility of individual glyphs? Message-ID: <1030532132.1101.40.camel@maraca.cs.ucl.ac.uk> I am trying to visualize voxel data by creating a 3D volume of adjacent coloured cubes. I want to display only selected cubes (eg to show a slice of the data). It is efficient to render the cubes by creating a structured grid and then using glyph3D. But is there an easy way to turn individual glyphs on and off? I notice that vtkStructuredGrid has the ability to blank points, but blanking doesn't seem to affect the behaviour of vtkGlyph3D. Thanks, Phil From baudet@ondim.fr Wed Aug 28 11:55:18 2002 From: baudet@ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Wed, 28 Aug 2002 12:55:18 +0200 Subject: [vtkusers] Black texture In-Reply-To: <004801c24e74$27c5ea10$1c00a8c0@muscles> Message-ID: <005401c24e81$6607cc50$1c00a8c0@muscles> I fix the problem. My texture was set to a PlaneSource, and when scaling (using SetScale) its actor the texture appeared black. But resizing the PlaneSource itself (via Origin, Point1 and Point2), it works correctly, the texture is displayed... I don't know if it's a bug but it might be useful to know it. =20 R=E9my =20 -----Message d'origine----- De : vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] De la part de R=E9my Baudet Envoy=E9 : mercredi 28 ao=FBt 2002 11:21 =C0 : 'VtkUsers' Objet : [vtkusers] Black texture Hi all, On some computer (WinNT4 or Win2K), with different graphic card, textures (using vtkImageReader2Factory and vtkTexture) appears black, is it a depth color problem or something like that? Or a graphic card driver problem? Does someone encounter the same problem? Thanks a lot for your answers!! R=E9my Baudet ONDIM - Signal | Image | Multim=E9dia Email : baudet@ondim.fr T=E9l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris _______________________________________________ This is the private VTK discussion list.=20 Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From PreethishK@geind.ge.com Wed Aug 28 12:42:01 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Wed, 28 Aug 2002 17:12:01 +0530 Subject: [vtkusers] load library goes to infinite time Message-ID: <10B96F9B1453D61191B400508B650D94024E35D8@ban03xbindge> hi, i am new user. i have succesfully compiled vtk on solaris with java option. i ran one sample java program.but the program seems to run for ever at load library function.has any one faced with same problem.plz help.thank u in advacne "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From S.Subramanian@tue.nl Wed Aug 28 13:06:07 2002 From: S.Subramanian@tue.nl (Subramanian, S.) Date: Wed, 28 Aug 2002 14:06:07 +0200 Subject: [vtkusers] Updating Selected actors Message-ID: <81E5F727841DD211A5FD0008C728DB7B080A57F8@campusx1.tue.nl> Hi, In my application I have several actors attached to a rendering window. The position of the actors are changed in real time, but not all actors are updated at all times. Since rendering is heavy duty and I'm not able to even get 14 frames per sec. I am wondering if I can instruct the "renWin" which actors need to be updated and which need not be updated. I don't want to make an actor invisible, but I just don't want to update it. Is this possible? I suppose when I run "renWin->Render()", it updates all actors (even if their positions where not updated. I have another related question, Can I update the position of the actors in one thread and asynchronously run "renWin->Render();" in another thread? Are there some examples of multi threaded code? I hope my question is clear, thanks in advance, Sriram -----Original Message----- From: Kumar, Preethish M (MED) [mailto:PreethishK@geind.ge.com] Sent: Wednesday, August 28, 2002 13:42 To: vtkusers@public.kitware.com Subject: [vtkusers] load library goes to infinite time hi, i am new user. i have succesfully compiled vtk on solaris with java option. i ran one sample java program.but the program seems to run for ever at load library function.has any one faced with same problem.plz help.thank u in advacne "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." _______________________________________________ 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 david.portnoy@verizon.net Wed Aug 28 13:02:44 2002 From: david.portnoy@verizon.net (David Portnoy) Date: Wed, 28 Aug 2002 08:02:44 -0400 Subject: [vtkusers] vtk on Mac OS X 10.2 Jaguar Message-ID: Hi, I have successfully installed vtk vs. 4.1.1 on Mac OS 10.2, but when I run GraphicsCxxTests and enter a test to run, nothing happens (ie. The program is running but now window appears). Has anybody seen this problem? What am I doing wrong? Thanks, David Portnoy From bertvansesamstraat@hotmail.com Wed Aug 28 13:41:23 2002 From: bertvansesamstraat@hotmail.com (Bert VanSesamstraat) Date: Wed, 28 Aug 2002 12:41:23 +0000 Subject: [vtkusers] 'Undefined Reference' while compiling? Message-ID: Dear all, I wanted to try out the c++ examples shipped with vtk. Therefore I used the following script: VTK_PATH=/usr/include/vtk VTK_PATH_LIB=/usr/lib/vtk/tcl g++ -I$VTK_PATH -I$VTK_PATH/Common -I$VTK_PATH/Filtering \ -I$VTK_PATH/Graphics -I$VTK_PATH/Hybrid -I$VTK_PATH/IO \ -I/usr/X11R6/LessTif/Motif1.2/include -I$VTK_PATH/Imaging -I$VTK_PATH/Patented \ -I$VTK_PATH/Rendering -I/usr/X11R6/include/X11 \ -L$VTK_PATH_LIB -I$VTK_PATH_LIB/vtkcommon -I$VTK_PATH_LIB/lvtkfiltering -I$VTK_PATH_LIB/vtkgraphics \ -I$VTK_PATH_LIB/vtkhybrid -I$VTK_PATH_LIB/vtkiO -I$VTK_PATH_LIB/vtkimaging -I$VTK_PATH_LIB/vtkpatented -I$VTK_PATH_LIB/vtkrendering \ cpp/Example1.cxx -o Example1 -O2 -g When I execute this script i run into a lot of 'undefined references'. : /tmp/ccu4psd8.o: In function `main': /Net/work/home/maurice/tmp/cpp/Example1.cxx:44: undefined reference to `vtkRenderWindow::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:45: undefined reference to `vtkRenderer::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:46: undefined reference to `vtkRenderWindow::AddRenderer(vtkRenderer *)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:48: undefined reference to `vtkSphereSource::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:49: undefined reference to `vtkPolyDataMapper::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:50: undefined reference to `vtkPolyDataSource::GetOutput(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:50: undefined reference to `vtkPolyDataMapper::SetInput(vtkPolyData *)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:51: undefined reference to `vtkActor::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:53: undefined reference to `vtkConeSource::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:54: undefined reference to `vtkGlyph3D::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:55: undefined reference to `vtkPolyDataSource::GetOutput(void)' /tmp/ccu4psd8.o: In function `main': /usr/include/vtk/vtkGlyph3D.h:113: undefined reference to `vtkPolyDataSource::GetOutput(void)' /usr/include/vtk/vtkGlyph3D.h:113: undefined reference to `vtkGlyph3D::SetSource(int, vtkPolyData *)' /tmp/ccu4psd8.o: In function `main': /Net/work/home/maurice/tmp/cpp/Example1.cxx:60: undefined reference to `vtkPolyDataMapper::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:61: undefined reference to `vtkPolyDataSource::GetOutput(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:61: undefined reference to `vtkPolyDataMapper::SetInput(vtkPolyData *)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:62: undefined reference to `vtkActor::New(void)' /tmp/ccu4psd8.o: In function `main': /usr/include/vtk/vtkRenderer.h:69: undefined reference to `vtkViewport::AddProp(vtkProp *)' /usr/include/vtk/vtkRenderer.h:69: undefined reference to `vtkViewport::AddProp(vtkProp *)' /tmp/ccu4psd8.o: In function `main': /Net/work/home/maurice/tmp/cpp/Example1.cxx:70: undefined reference to `XtSetLanguageProc' /Net/work/home/maurice/tmp/cpp/Example1.cxx:72: undefined reference to `XtVaAppInitialize' /Net/work/home/maurice/tmp/cpp/Example1.cxx:75: undefined reference to `XtDisplay' /Net/work/home/maurice/tmp/cpp/Example1.cxx:80: undefined reference to `vtkXRenderWindowInteractor::New(void)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:81: undefined reference to `vtkRenderWindowInteractor::SetRenderWindow(vtkRenderWindow *)' /Net/work/home/maurice/tmp/cpp/Example1.cxx:88: undefined reference to `XtStrings' /Net/work/home/maurice/tmp/cpp/Example1.cxx:88: undefined reference to `XtStrings' /Net/work/home/maurice/tmp/cpp/Example1.cxx:88: undefined reference to `xmPushButtonWidgetClass' /Net/work/home/maurice/tmp/cpp/Example1.cxx:88: undefined reference to `XtVaCreateManagedWidget' /Net/work/home/maurice/tmp/cpp/Example1.cxx:90: undefined reference to `XtRealizeWidget' /Net/work/home/maurice/tmp/cpp/Example1.cxx:91: undefined reference to `_XmStrings' /Net/work/home/maurice/tmp/cpp/Example1.cxx:91: undefined reference to `XtAddCallback' /Net/work/home/maurice/tmp/cpp/Example1.cxx:92: undefined reference to `XtAppMainLoop' collect2: ld returned 1 exit status Can someone tell me what I'm doing wrong? _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From c.p.botha@its.tudelft.nl Wed Aug 28 14:00:05 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Wed, 28 Aug 2002 15:00:05 +0200 Subject: [vtkusers] 'Undefined Reference' while compiling? In-Reply-To: References: Message-ID: <20020828130005.GF325@dutidad.twi.tudelft.nl> Hello Bert, I hope the book helped. :) On Wed, Aug 28, 2002 at 12:41:23PM +0000, Bert VanSesamstraat wrote: > I wanted to try out the c++ examples shipped with vtk. > Therefore I used the following script: > > VTK_PATH=/usr/include/vtk > VTK_PATH_LIB=/usr/lib/vtk/tcl > > g++ -I$VTK_PATH -I$VTK_PATH/Common -I$VTK_PATH/Filtering \ > -I$VTK_PATH/Graphics -I$VTK_PATH/Hybrid -I$VTK_PATH/IO \ > -I/usr/X11R6/LessTif/Motif1.2/include -I$VTK_PATH/Imaging > -I$VTK_PATH/Patented \ > -I$VTK_PATH/Rendering -I/usr/X11R6/include/X11 \ > -L$VTK_PATH_LIB -I$VTK_PATH_LIB/vtkcommon -I$VTK_PATH_LIB/lvtkfiltering > -I$VTK_PATH_LIB/vtkgraphics \ > -I$VTK_PATH_LIB/vtkhybrid -I$VTK_PATH_LIB/vtkiO -I$VTK_PATH_LIB/vtkimaging > -I$VTK_PATH_LIB/vtkpatented -I$VTK_PATH_LIB/vtkrendering \ > cpp/Example1.cxx -o Example1 -O2 -g > > When I execute this script i run into a lot of 'undefined references'. > Can someone tell me what I'm doing wrong? Your script is not actually linking the example with _any_ libraries, so you should expect numerous undefined references. You could modify your script to link with the built VTK libraries, but it is far easier to run ccmake e.g. in VTK/Examples/GUI/Motif (where Example1.cxx lives) and have it generate a good Makefile. "make Example1" will then do the trick. I can't remember if this applies to the VTK4.0 release as well. Good luck, Charl -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From andy.cedilnik@kitware.com Wed Aug 28 14:15:57 2002 From: andy.cedilnik@kitware.com (Andy Cedilnik) Date: 28 Aug 2002 09:15:57 -0400 Subject: [vtkusers] vtk+solaris+java installation problem In-Reply-To: <10B96F9B1453D61191B400508B650D94024E2ECD@ban03xbindge> References: <10B96F9B1453D61191B400508B650D94024E2ECD@ban03xbindge> Message-ID: <1030540560.25547.4.camel@xanth.kitwarein.com> Hello Kumar, What version of VTK are you using. Andy On Wed, 2002-08-28 at 02:21, Kumar, Preethish M (MED) wrote: > hi, > > i was trying to build vtk java on solaris, i am attaching user.make > also. > > JDKHOME=/usr/java1.2 > JAVAC=${JDKHOME}/bin/javac > JAVA_CLASS_HOME=/homes/kumarm/vtk31 > JAVAH=${JDKHOME}/bin/javah > JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/solaris > JAVA_CXX_LIB=-lC > > i got an error at the end of installation. > > the error was > > CC -G \ > -o libvtkJava.so -L. -L../common > -L/homes/kumarm/vtk31/i > maging -lVTKImagingJava -lVTKImaging -L/homes/kumarm/vtk31/graphics > -lVTKGra > phicsJava -lVTKGraphics -lVTKCommonJava -lVTKCommon -L/usr/openwin/lib > -R/usr/ > openwin/lib -L/usr/openwin/lib -lGL -ldl \ > -L/usr/openwin/lib -R/usr/openwin/lib -lXext -lSM -lICE -lX11 -lsocket > -lnsl -l > C > ld: warning: symbol `_GLOBAL_OFFSET_TABLE_' has differing sizes: > (file /homes/kumarm/vtk31/imaging/libVTKImagingJava.so value=0x0; > file / > homes/kumarm/vtk31/graphics/libVTKGraphicsJava.so value=0x11e6); > /homes/kumarm/vtk31/imaging/libVTKImagingJava.so definition taken > ld: fatal: library -lC: not found > ld: fatal: File processing errors. No output written to libvtkJava.so > *** Error code 1 > make: Fatal error: Command failed for target `libvtkJava.so' From dharmendra@strandgenomics.com Wed Aug 28 16:05:19 2002 From: dharmendra@strandgenomics.com (Dharmendra) Date: Wed, 28 Aug 2002 20:35:19 +0530 Subject: [vtkusers] (no subject) Message-ID: <5.1.1.6.0.20020828180337.00a73c18@mail.strandgenomics.com> How to manually create a vtk file. From cormack@chem.vu.nl Wed Aug 28 16:04:20 2002 From: cormack@chem.vu.nl (Drew McCormack) Date: Wed, 28 Aug 2002 17:04:20 +0200 Subject: [vtkusers] vtk on Mac OS X 10.2 Jaguar In-Reply-To: Message-ID: <6E25B0CC-BA97-11D6-9CBF-003065BD3BD8@chem.vu.nl> Yesterday a message was posted to the list with this advice: "Try to add -Xlinker -bind_at_load when linking the tests (TimeRenderer) and your own programs." This worked for me. Add the options to the link options in the CMakeCache.txt file, rerun cmake, and rerun make. Only the test code, and your own code, needs to be remade. Drew On Wednesday, August 28, 2002, at 02:02 pm, David Portnoy wrote: > Hi, > > I have successfully installed vtk vs. 4.1.1 on Mac OS 10.2, but when I > run > GraphicsCxxTests and enter a test to run, nothing happens (ie. The > program > is running but now window appears). > > Has anybody seen this problem? What am I doing wrong? > > Thanks, > > David Portnoy > > _______________________________________________ > 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 > > ======================================== Dr. Drew McCormack (Kmr. R153) Afd. Theoretische Chemie Faculteit Exacte Wetenschappen Vrije Universiteit Amsterdam De Boelelaan 1083 1081 HV Amsterdam The Netherlands Email cormack@chem.vu.nl Telephone +31 20 44 47623 Mobile +31 6 483 21307 Fax +31 20 44 47629 From anast.jm@pg.com Wed Aug 28 17:52:49 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Wed, 28 Aug 2002 12:52:49 -0400 Subject: [vtkusers] VTK Java - problem with vtkPanel Message-ID: I've been having a problem with vtkPanel crashing (other vtk/Java seems to be working fine). I'm using jre 1.3.1_02 on WinNT 4sp6 VC6 CVS build of 8/26/2002. This has been happening for many months now and I keep hoping that upgrades etc will make it go away but to no avail. I'm not sure where to turn to fix this....is it vtkPanel, the JVM or ntdll.dll that has the problem. Any help appreciated....john error - the rendered window with the cone opens fine but the app crashes shortly there after =========================================================================== P:\>java SimpleVTK An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616 Function name=RtlLeaveCriticalSection Library=C:\WINNT\System32\ntdll.dll Current Java thread: at vtk.vtkPanel.UnLock(Native Method) at vtk.vtkPanel.Render(vtkPanel.java:103) at vtk.vtkPanel.paint(vtkPanel.java:116) at sun.awt.RepaintArea.paint(Unknown Source) at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Dynamic libraries: 0x00400000 - 0x00405000 C:\WINNT\system32\java.exe 0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll 0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll 0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll 0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll 0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll 0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll 0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll 0x6D420000 - 0x6D4F0000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hotspot\jvm.dll 0x77FD0000 - 0x77FFA000 C:\WINNT\system32\WINMM.dll 0x6BC00000 - 0x6BC10000 C:\WINNT\system32\SMNT40.dll 0x69F00000 - 0x69F14000 C:\WINNT\system32\sxgb.dll 0x71DC0000 - 0x71DCA000 C:\WINNT\system32\PSAPI.DLL 0x76AC0000 - 0x76ADD000 C:\WINNT\system32\IMAGEHLP.dll 0x10000000 - 0x10009000 C:\WINNT\system32\SXGBSYS.DLL 0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hpi.dll 0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\verify.dll 0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\java.dll 0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\zip.dll 0x6D020000 - 0x6D129000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\awt.dll 0x77C00000 - 0x77C18000 C:\WINNT\system32\WINSPOOL.DRV 0x76AB0000 - 0x76AB5000 C:\WINNT\system32\IMM32.dll 0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll 0x6D1E0000 - 0x6D21B000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\fontmanager.dll 0x090B0000 - 0x09128000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkCommonJava.dll 0x09130000 - 0x092AF000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkCommon.dll 0x780C0000 - 0x78121000 C:\WINNT\system32\MSVCP60.dll 0x092B0000 - 0x092CC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkFilteringJava.dll 0x092D0000 - 0x09333000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkFiltering.dll 0x09340000 - 0x09362000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkIOJava.dll 0x09370000 - 0x0950A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkIO.dll 0x09510000 - 0x0952A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkpng.dll 0x09530000 - 0x0953F000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkzlib.dll 0x09540000 - 0x0955A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkjpeg.dll 0x09560000 - 0x0959E000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtktiff.dll 0x095A0000 - 0x095BB000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkexpat.dll 0x095C0000 - 0x095FC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkImagingJava.dll 0x09600000 - 0x09806000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkImaging.dll 0x09810000 - 0x09881000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkGraphicsJava.dll 0x09890000 - 0x09B76000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkGraphics.dll 0x09B80000 - 0x09BD8000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkRenderingJava.dll 0x09BE0000 - 0x09DEC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkRendering.dll 0x09DF0000 - 0x09E69000 C:\WINNT\system32\vli.dll 0x755B0000 - 0x75678000 C:\WINNT\system32\OPENGL32.dll 0x76C80000 - 0x76CA2000 C:\WINNT\system32\GLU32.dll 0x77160000 - 0x77167000 C:\WINNT\system32\DCIMAN32.dll 0x09E70000 - 0x09E7A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkftgl.dll 0x09E80000 - 0x09EBB000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkfreetype.dll 0x6D270000 - 0x6D275000 P:\Wincvs\Java13102\JRE\bin\jawt.dll 0x77130000 - 0x77156000 C:\WINNT\system32\ddraw.dll 0x1C000000 - 0x1C182000 C:\WINNT\system32\wcgicd.dll Local Time = Wed Aug 28 12:38:32 2002 Elapsed Time = 5 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode) # # An error report file has been saved as hs_err_pid62.log. # Please refer to the file for further information. # From galicjan@yahoo.com Wed Aug 28 20:01:49 2002 From: galicjan@yahoo.com (Jarek Sacha) Date: Wed, 28 Aug 2002 12:01:49 -0700 (PDT) Subject: [vtkusers] VTK Java - problem with vtkPanel In-Reply-To: Message-ID: <20020828190149.34086.qmail@web20907.mail.yahoo.com> --- anast.jm@pg.com wrote: > > I've been having a problem with vtkPanel crashing (other vtk/Java seems > to be > working fine). I'm using jre 1.3.1_02 on WinNT 4sp6 VC6 CVS build of > 8/26/2002. Do you have other versions of Java installed on your system? (check what you have in "C:\Program Files\Java" and "C:\Program Files\JavaSoft\JRE") I do have similar problem on WinXP with 1.3.1_04 and 1.3.0_02. However it works fine with 1.4.0_01. (all of them installed at the same time) I am do not know though what is causing the problem. Jarek __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From bwvb@xs4all.nl Wed Aug 28 21:46:27 2002 From: bwvb@xs4all.nl (Bertwim van Beest) Date: Wed, 28 Aug 2002 22:46:27 +0200 Subject: [vtkusers] Picking a large object: slow??? Message-ID: <3D6D36A3.6040408@xs4all.nl> I read a large unstructured grid ( ~10^3 -- 10^6 cells) which I visualise on the screen. I have enabled interaction with it by using an instance of vtkRenderWindowInteractor. So far all failrly standard. In "camera mode" (pressing "C"), the view on the grid changes instantaneous when I press/move the mouse. However, when I am in "actor mode" (pressing "A") it can take considerable time (a couple of seconds) when I have ~10^4 cells, and *much* more when the grid is larger. I can see that the CPU is very busy on the mouse click, apparently deciding which actor is to be moved. Once it has found the actor, I can almost painless move/rotate the grid. I have the feeling that too much work is being done here. I only wanted to rotate my grid. Can somebody help me out how to do this faster? Thanks in advance Bertwim From xtalswing@yahoo.com Wed Aug 28 22:22:21 2002 From: xtalswing@yahoo.com (P K) Date: Wed, 28 Aug 2002 14:22:21 -0700 (PDT) Subject: [vtkusers] vtkImageImport array format In-Reply-To: <65HBHEED31D8C964SN2X2YTS1VKJI5.3d6b30fb@MRI-PATRICK> Message-ID: <20020828212221.34857.qmail@web12901.mail.yahoo.com> The -1 issue was accounted for in the definition of source->size. Upon further examination, the problem I'm encountering may be in vtkImageExport. Here's a debug trace. It has me quite confused right now. The relevant code is: vtkImageData *vtktdata=TargetImport->GetOutput(); //... vtkImageExport *TargetVtkExporter = vtkImageExport::New(); TargetVtkExporter->SetInput(vtktdata); What appears to be happening 127 vtkImageExport *TargetVtkExporter = vtkImageExport::New(); (gdb) print *vtktdata $1 = { = { = { = {Debug = 0 '\000', MTime = {ModifiedTime = 245, _vptr. = 0x836c5a0}, ReferenceCount = 3, SubjectHelper = 0x0, _vptr. = 0x83725e0}, FieldData = 0x8400f98, Source = 0x8400d70, DataReleased = 0, NumberOfConsumers = 2, Consumers = 0x84457f0, WholeExtent = {1, 100, 1, 100, 1, 100}, Extent = {1, 100, 1, 100, 1, 100}, UpdateExtent = {1, 100, 1, 100, 100, 100}, UpdateExtentInitialized = 1 '\001', ExtentTranslator = 0x8400fd8, NumberOfPieces = 1, Piece = 0, MaximumNumberOfPieces = -1, UpdateNumberOfPieces = 1, UpdatePiece = 0, RequestExactExtent = 0, GhostLevel = 0, UpdateGhostLevel = 0, ReleaseDataFlag = 0, UpdateTime = {ModifiedTime = 246, _vptr. = 0x836c5a0}, PipelineMTime = 114, LastUpdateExtentWasOutsideOfTheExtent = 0, Locality = 0}, CellData = 0x84010b8, PointData = 0x8401038, ComputeTime = {ModifiedTime = 0, _vptr. = 0x836c5a0}, Bounds = {9.99999968e+37, -9.99999968e+37, 9.99999968e+37, -9.99999968e+37, 9.99999968e+37, -9.99999968e+37}, ScalarRange = {0, 1}, Center = {0, 0, 0}}, Vertex = 0x8401138, Line = 0x8401250, Pixel = 0x8401378, Voxel = 0x84015e8, Dimensions = {0, 0, 0}, DataDescription = 8, Increments = {1, 100, 10000}, Origin = {0, 0, 0}, Spacing = {1, 1, 1}, ScalarType = 3, NumberOfScalarComponents = 1} (gdb) until 128 TargetVtkExporter->SetInput(vtktdata); (gdb) print *vtktdata $2 = { = { = { = {Debug = 0 '\000', MTime = {ModifiedTime = 245, _vptr. = 0x836c5a0}, ReferenceCount = 3, SubjectHelper = 0x0, _vptr. = 0x83725e0}, FieldData = 0x8400f98, Source = 0x8400d70, DataReleased = 0, NumberOfConsumers = 2, Consumers = 0x84457f0, WholeExtent = {1, 100, 1, 100, 1, 100}, Extent = {1, 100, 1, 100, 1, 100}, UpdateExtent = {1, 100, 1, 100, 100, 100}, UpdateExtentInitialized = 1 '\001', ExtentTranslator = 0x8400fd8, NumberOfPieces = 1, Piece = 0, MaximumNumberOfPieces = -1, UpdateNumberOfPieces = 1, UpdatePiece = 0, RequestExactExtent = 0, GhostLevel = 0, UpdateGhostLevel = 0, ReleaseDataFlag = 0, UpdateTime = {ModifiedTime = 246, _vptr. = 0x836c5a0}, PipelineMTime = 114, LastUpdateExtentWasOutsideOfTheExtent = 0, Locality = 0}, CellData = 0x84010b8, PointData = 0x8401038, ComputeTime = {ModifiedTime = 0, _vptr. = 0x836c5a0}, Bounds = {9.99999968e+37, -9.99999968e+37, 9.99999968e+37, -9.99999968e+37, 9.99999968e+37, -9.99999968e+37}, ScalarRange = {0, 1}, Center = {0, 0, 0}}, Vertex = 0x8401138, Line = 0x8401250, Pixel = 0x8401378, Voxel = 0x84015e8, Dimensions = {0, 0, 0}, DataDescription = 8, Increments = {1, 100, 10000}, Origin = {0, 0, 0}, Spacing = {1, 1, 1}, ScalarType = 3, NumberOfScalarComponents = 1} (gdb) until 64 itkNewMacro(Self); (gdb) print *vtktdata $3 = { = { = { = {Debug = 0 '\000', MTime = {ModifiedTime = 257, _vptr. = 0x836c5a0}, ReferenceCount = 1, SubjectHelper = 0x0, _vptr. = 0x83708a0}, FieldData = 0x0, Source = 0x0, DataReleased = 0, NumberOfConsumers = 0, Consumers = 0x0, WholeExtent = {0, 1, 0, 138426224, 138696800, 138696816}, Extent = {1, 0, 0, 0, 0, 0}, UpdateExtent = {17, 1079157416, 1079157416, 138696888, 17, 1079157416}, UpdateExtentInitialized = 168 '¨', ExtentTranslator = 0x84458d0, NumberOfPieces = 17, Piece = 138420120, MaximumNumberOfPieces = 138696512, UpdateNumberOfPieces = 138696704, UpdatePiece = 9673, RequestExactExtent = 1079157416, GhostLevel = 1079157416, UpdateGhostLevel = 0, ReleaseDataFlag = 0, UpdateTime = {ModifiedTime = 0, _vptr. = 0x0}, PipelineMTime = 0, LastUpdateExtentWasOutsideOfTheExtent = 0, Locality = 0}, CellData = 0x40529b20, PointData = 0x0, ComputeTime = {ModifiedTime = 0, _vptr. = 0x0}, Bounds = {1.40129846e-45, 0, 0, 0, 0, 0}, ScalarRange = {0, 0}, Center = {0, 0, 0}}, Vertex = 0x0, Line = 0x0, Pixel = 0x0, Voxel = 0x0, Dimensions = {0, 0, 0}, DataDescription = 0, Increments = {0, 0, 0}, Origin = {0, 0, 0}, Spacing = {0, 0, 0}, ScalarType = 0, NumberOfScalarComponents = 0} --- "Koning, P.J.H. de (LKEB)" wrote: > 26-08-02 19:21:19, P K wrote: > > Try the following for the data extent > > SourceImport->SetDataExtent(0, source->size[0] - 1, > 0, source->size[1] - 1, 0, source->size[2] - 1); > __________________________________________________ Do You Yahoo!? Yahoo! Finance - Get real-time stock quotes http://finance.yahoo.com From lisong@vrac.iastate.edu Wed Aug 28 23:05:24 2002 From: lisong@vrac.iastate.edu (Song Li) Date: Wed, 28 Aug 2002 17:05:24 -0500 Subject: [vtkusers] parallel library Message-ID: <3D6D4924.75676143@vrac.iastate.edu> --------------B33F8098F26E2F5E0BAC1543 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Gurus, When I compile my application on linux, if use "-lvtkParallel" during linking, the screen output looks like below. Does anybody know what should I do to make so many phrase known by the compiler ? Thanks a lot!!!! Error message: ------------------------------------------------------------------------- /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_append' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rw' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_deregister_object' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `nsend' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `dsend' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_trpoint' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamepub' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `mrev4' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `blktype' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_kexit' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_free' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksigretry' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamedel' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getnodeid' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rpdoom' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_next' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnameget' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getrent' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getntype' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksigsetretry' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `argvfree' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_errorstr' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getroute' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getnodes' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kenter' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksignal' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_register_objects' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfselect' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lpattach' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ldogetlinks' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_free' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_delete' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kexit' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `nrecv' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `microsleep' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_init' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfrecv' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `show_help' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `next_prime' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `stoi' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kinit' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_accept_tmout' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_open_srv_inet_stm' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `_kio' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ttime' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_find' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_insert' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_init' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_insert' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfiprobe' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_delete' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_set_buf_size' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_expand' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_find' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getorigin' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamesweep' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `_lam_signal' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_open_clt_inet_stm' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rpstate' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `tprintf' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kpause' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_next' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rev8' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `argvadd' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfiselect' /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrstore' -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong@vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong --------------B33F8098F26E2F5E0BAC1543 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Hi, Gurus,

When I compile my application on linux, if use "-lvtkParallel" during linking,  the screen output looks like below. Does
anybody know what should I do to make so many phrase known by the compiler ? Thanks a lot!!!!

Error message:
-------------------------------------------------------------------------
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_append'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rw'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_deregister_object'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `nsend'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `dsend'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_trpoint'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamepub'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `mrev4'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `blktype'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_kexit'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_free'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksigretry'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamedel'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getnodeid'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rpdoom'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_next'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnameget'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getrent'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getntype'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksigsetretry'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `argvfree'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_errorstr'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getroute'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getnodes'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kenter'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_ksignal'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_register_objects'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfselect'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lpattach'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ldogetlinks'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_free'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_delete'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kexit'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `nrecv'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `microsleep'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_init'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfrecv'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `show_help'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `next_prime'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `stoi'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kinit'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_accept_tmout'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_open_srv_inet_stm'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `_kio'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ttime'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_find'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_insert'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_init'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_insert'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfiprobe'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_delete'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_set_buf_size'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_expand'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `al_find'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `getorigin'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrnamesweep'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `_lam_signal'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `sfh_sock_open_clt_inet_stm'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rpstate'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `tprintf'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `kpause'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `ah_next'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `rev8'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `argvadd'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `bfiselect'
/home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined reference to `lam_rtrstore'

-- 
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: http://www.vrac.iastate.edu/~lisong
  --------------B33F8098F26E2F5E0BAC1543-- From a.maclean@acfr.usyd.edu.au Thu Aug 29 00:06:07 2002 From: a.maclean@acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Thu, 29 Aug 2002 09:06:07 +1000 Subject: [vtkusers] MFC CWnd and VTK In-Reply-To: <000a01c24e57$1c050ed0$da6997da@leon> Message-ID: <006401c24ee7$7dba79e0$88d24e81@acfr.usyd.edu.au> Some time ago I offered some examples, with descriptions of the steps to take, for both a MDI and SDI application but I don't know if they were incorporated into the \VTK\Examples\GUI\Win32examples directory. If someone at Kitware wants to do this I will be delighted to send the examples to them. ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA =20 Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] On Behalf Of = =C0=CC=BF=EB=BC=AE Sent: Wednesday, 28 August 2002 15:53 To: vtkusers@public.kitware.com Subject: [vtkusers] MFC CWnd and VTK Hi, everyone, I would like to write a MDI application using MFC, making a rendering appear inside a child window. I'm trying to use an instance of vtkWin32OpenGLRenderWindow, but so far I couldn't work it out. Can anyone give me a hint? (I'm still using VTK2.2 and VC++6.0) Thank you From nundys@neuro.duke.edu Thu Aug 29 00:34:39 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Wed, 28 Aug 2002 19:34:39 -0400 Subject: [vtkusers] Dual vs. single-processor problem Message-ID: Hello, I have an unusual seeming problem. I am using vtk Mac OS X on single and dual-processor machines (G4s) and it runs well. I have made a program in C++ which runs fine on the single processor machine. When I compile it and then call it on the dual processor machine, matlab crashes with an EXC_BAD_ACCESS message in gdb. Has anyone else had this problem? Thanks, Surajit Nundy From bwvb@xs4all.nl Thu Aug 29 01:40:09 2002 From: bwvb@xs4all.nl (Bertwim van Beest) Date: Thu, 29 Aug 2002 02:40:09 +0200 Subject: [vtkusers] Is clipping really that hard in VTK??? Message-ID: <3D6D6D69.5010703@xs4all.nl> I simply don't understand how to do the following: I have a certain UnstructuredGrid, with one data value per cell. Now I want to create a clipping plane, such that all data on one side of the plane is visible, and on the other side of the plane the grid is not displayed. Seems to me a very basic problem. Yet I have not been succesful to do. I have looked at the examples (e.g. the clipped cow), but no success. Who can help me out. If the answer is that the cell based values is at the heart of the problem, and that VTK is not the toolkit for this type of problems, than I would like to know, before it is too late (in that I have embarked on a ship that is really not equipped for these type of problems. Thanks in advance, Bertwim From David.Pont@ForestResearch.co.nz Thu Aug 29 01:59:21 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 29 Aug 2002 12:59:21 +1200 Subject: [vtkusers] Is clipping really that hard in VTK??? Message-ID: Hi Bertwim, How about vtkClipDataSet (new in vtk 4, able to handle unstructured grid) and vtkPlane. I have never worked with cell data, but I would hope it is handled without any problem? regards Dave |--------+---------------------------------> | | Bertwim van Beest | | | | | | Sent by: | | | vtkusers-admin@public.k| | | itware.com | | | | | | | | | 29/08/2002 12:40 | | | | |--------+---------------------------------> >------------------------------------------------------------------------------------------------------------| | | | To: vtkusers | | cc: | | Subject: [vtkusers] Is clipping really that hard in VTK??? | >------------------------------------------------------------------------------------------------------------| I simply don't understand how to do the following: I have a certain UnstructuredGrid, with one data value per cell. Now I want to create a clipping plane, such that all data on one side of the plane is visible, and on the other side of the plane the grid is not displayed. Seems to me a very basic problem. Yet I have not been succesful to do. I have looked at the examples (e.g. the clipped cow), but no success. Who can help me out. If the answer is that the cell based values is at the heart of the problem, and that VTK is not the toolkit for this type of problems, than I would like to know, before it is too late (in that I have embarked on a ship that is really not equipped for these type of problems. Thanks in advance, Bertwim _______________________________________________ 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 PreethishK@geind.ge.com Thu Aug 29 05:06:14 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Thu, 29 Aug 2002 09:36:14 +0530 Subject: [vtkusers] UnsatisfiedLinkError java +unix+solaris Message-ID: <10B96F9B1453D61191B400508B650D94024E3B7B@ban03xbindge> hai, i installed the vtk with --with-java and --with-shared option and make.everything went fine.after that i set LD_LIBRARY_PATH to every *.so file generated and compiled and ran Regression.java. i got the following unsatisfied link error.can any one help.thank u in advance Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava in java.library.path at java.lang.Throwable.fillInStackTrace(Native Method) at java.lang.Throwable.fillInStackTrace(Compiled Code) at java.lang.Throwable.(Compiled Code) at java.lang.Error.(Error.java:50) at java.lang.LinkageError.(LinkageError.java:43) at java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:42) at java.lang.ClassLoader.loadLibrary(Compiled Code) at java.lang.Runtime.loadLibrary0(Runtime.java:473) at java.lang.System.loadLibrary(System.java:778) at "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system." From stefan.bruckner@chello.at Thu Aug 29 06:13:32 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: 29 Aug 2002 07:13:32 +0200 Subject: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ In-Reply-To: <5.0.2.1.0.20020828091555.04a271d8@pop.nycap.rr.com> References: <000401c24e0b$e8b6dc20$bc9fbad4@SID> <000401c24e0b$e8b6dc20$bc9fbad4@SID> <5.0.2.1.0.20020828091555.04a271d8@pop.nycap.rr.com> Message-ID: <1030598012.4303.9.camel@NANCY> Thanks for you help, I have managed to build VTK with Kylix (which also involved some source changes, because bc++ handles some things very differently than "usual" UNIX compilers ... additionally the command line syntax of the compiler is so much different from what cmake expects that manually editing the generated makefiles was the only solution I found). However, since several other issues have arisen I have found that integrating VTK and Kylix is probably not feasable at the moment ... For other users who want to try this, I suggest to wait till bc++ and gcc produce ABI compatible libraries (which might take some time) ... Thanks again for your support! -- Stefan Bruckner Am Mit, 2002-08-28 um 15.19 schrieb William A. Hoffman: > This does not look like any of those problems. > It looks like: > > bcc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl > -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > /usr/src/packages/SOURCES/VTK/bin/mkg3states > > Is trying to compile a .cpp file and not create an executable like one > would expect. > > Can you try building an executable from the command line? > > Start with the above command, and start removing things until it works. > Does this work: > bcc++ mkg3states.o -o mkg3states > > What on the command line is causing it to fail? > > -Bill > > > At 11:55 PM 8/27/2002 +0200, Stefan Bruckner wrote: > >I have tried the -tD flag for building shared libraries and the -VC flag > >for position independent code, but when I build I always get: > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > >/usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c: > >Warning W8065 /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c > >383: Call to function 'getopt' with no prototype in function main > >bc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl > >-lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > >/usr/src/packages/SOURCES/VTK/bin/mkg3states > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > >Error E2194: Could not find file > >'/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp' > From gregory.bleiker@phonak.ch Thu Aug 29 07:58:31 2002 From: gregory.bleiker@phonak.ch (Gregory Bleiker) Date: Thu, 29 Aug 2002 08:58:31 +0200 Subject: Antw: [vtkusers] 'Undefined Reference' while compiling? Message-ID: Hi Bert and all This is a rather annoying situation and there has been a few posts earlier = on revering to similar problems. Maybe a tutorial can be found somewhere? = Anyway, compiling and (especially) linking the VTK stuff is not as simple = as it looks. In your case, you include the vtkCommon library first and = that's why you will get the link errors. Including the libs in the = following way will probably help: -lvtkIO -lvtkRendering -lvtkGraphics -IvtkImaging -lvtkjpeg -lvtkpng = -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32 BUT: It is probably the best idea to use CMake to generate the makefile = for you (see page 31 of VTK User's Guide). This approach is good, but gets = you into a bit of trouble if you want to use the GNU autoconf/libtool = approach as you will have to if you want to use FOX, for example. If = anybody can tell me how to get past that rock I would highly appreciate = it. Hope this helps Gregi From simon.chatelain@epfl.ch Thu Aug 29 08:23:00 2002 From: simon.chatelain@epfl.ch (Simon Chatelain) Date: Thu, 29 Aug 2002 09:23:00 +0200 Subject: [vtkusers] vtkRnendererCollection problem with java Message-ID: Hello, I have an java/VTK application. I'm using jdk 1.4.0 and VTK 4.0. In my application, i have a vtkRenderWindow with some vtkRenderer with different viewport. Like in the vtkPanel class, i check the number of actors in the differents renderer. I try with two different methods: 1) vtkRendererCollection rcoll = this.rw.GetRenderers(); rcoll.InitTraversal(); int nbren = rcoll.GetNumberOfItems(); int nbActor = 0; for (int i=0;i (a VTKPanel) at VTKPanel.Render(VTKPanel.java:105) - locked <02FF16F0> (a VTKPanel) at vtk.vtkPanel.paint(vtkPanel.java:51) at sun.awt.RepaintArea.paint(RepaintArea.java:180) at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) ... I try with an another method : 2) vtkRendererCollection rcoll = this.rw.GetRenderers(); rcoll.InitTraversal(); vtkRenderer ren = rcoll.GetNextItem(); int nbActor = 0; while (ren != null) { nbActor += ren.VisibleActorCount(); ren = rcoll.GetNextItem(); } this methods create (often but not always) the following exception: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xB65A3E6 Function=Java_vtk_vtkRendererCollection_GetNextItem_13+0x16 Library=C:\WINDOWS\system32\vtkRenderingJava.dll Current Java thread: at vtk.vtkRendererCollection.GetNextItem_3(Native Method) at vtk.vtkRendererCollection.GetNextItem(vtkRendererCollection.java:24) at VTKPanel.visibleActor(VTKPanel.java:56) - locked <02FFE3C0> (a VTKPanel) at VTKPanel.Render(VTKPanel.java:104) - locked <02FFE3C0> (a VTKPanel) at vtk.vtkPanel.paint(vtkPanel.java:51) at sun.awt.RepaintArea.paint(RepaintArea.java:180) ... This exception occurs only on during the second call to GetNextItem(). Can someone help ? Thanks. From im01_peg@nada.kth.se Thu Aug 29 10:57:36 2002 From: im01_peg@nada.kth.se (Guangning Pei) Date: Thu, 29 Aug 2002 11:57:36 +0200 Subject: [vtkusers] About vtkDataObjectToDataSetFilter Message-ID: <3D6DF010.937A0CFE@nada.kth.se> Hi all, I am a beginner of vtk. Follow the demo of finance.tcl, I use vtkProgramDataObjectSource to create Data object, then use vtkDataObjectToDataSetFilter to create the points and vtkFieldDataToAttributeDataFilter to assign the scalar. After I change the axis component by "set xAxis xxx", I found I can't just use commands " do2ds SetPointComponent 0 $xAxis 0 ..."! The dataobject has been destroyed! I have to create another vtkDataObjectToDataSetFilter or create the vtkProgramDataObjectSource again! Can anyone tell me if there is a convenience way to do it? or there is other filters I should use instead of vtkDataObjectToDataSetFilter? Thanks a lot! Regards/Grand From John Biddiscombe" <000401c24e0b$e8b6dc20$bc9fbad4@SID> <5.0.2.1.0.20020828091555.04a271d8@pop.nycap.rr.com> <1030598012.4303.9.camel@NANCY> Message-ID: <002201c24f43$a0bd9f60$0100a8c0@tigger> > However, since several other issues have arisen I have found that > integrating VTK and Kylix is probably not feasable at the moment ...=20 Could you please elaborate? as a BCB6 user who's been working with vtk = for many years, I can't see why Kylix is going to be ruled out. What = problems do you refer to > For other users who want to try this, I suggest to wait till bc++ and > gcc produce ABI compatible libraries (which might take some time) ... Whats ABI? thanks JB From baki.gur@vestel.com.tr Thu Aug 29 11:35:10 2002 From: baki.gur@vestel.com.tr (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) Date: Thu, 29 Aug 2002 13:35:10 +0300 Subject: [vtkusers] help Message-ID: <3CCA3F3DDB98D411B3E700A0C9E4A8BE0B9B2E7E@VESCOMSERVER> > -----Original Message----- > From: vtkusers-request@public.kitware.com > [SMTP:vtkusers-request@public.kitware.com] > Sent: Thursday, August 29, 2002 1:38 PM > To: vtkusers@public.kitware.com > Subject: vtkusers digest, Vol 1 #1214 - 6 msgs > > Send vtkusers mailing list submissions to > vtkusers@public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. UnsatisfiedLinkError java +unix+solaris (Kumar, Preethish M (MED)) > 2. Re: Re: Re: Re: Building VTK with Kylix bc++ (Stefan Bruckner) > 3. Antw: [vtkusers] 'Undefined Reference' while compiling? (Gregory > Bleiker) > 4. vtkRnendererCollection problem with java (Simon Chatelain) > 5. About vtkDataObjectToDataSetFilter (Guangning Pei) > 6. Re: Re: Re: Re: Re: Building VTK with Kylix bc++ (John Biddiscombe) > > --__--__-- > > Message: 1 > From: "Kumar, Preethish M (MED)" > To: vtkusers@public.kitware.com > Date: Thu, 29 Aug 2002 09:36:14 +0530 > Subject: [vtkusers] UnsatisfiedLinkError java +unix+solaris > > hai, > > i installed the vtk with --with-java and --with-shared option and > make.everything went fine.after that i set LD_LIBRARY_PATH to every *.so > file generated and compiled and ran Regression.java. i got the following > unsatisfied link error.can any one help.thank u in advance > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava in > java.library.path > at java.lang.Throwable.fillInStackTrace(Native Method) > at java.lang.Throwable.fillInStackTrace(Compiled Code) > at java.lang.Throwable.(Compiled Code) > at java.lang.Error.(Error.java:50) > at java.lang.LinkageError.(LinkageError.java:43) > at > java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:42) > at java.lang.ClassLoader.loadLibrary(Compiled Code) > at java.lang.Runtime.loadLibrary0(Runtime.java:473) > at java.lang.System.loadLibrary(System.java:778) > at > > > "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE > ADDRESSEE and may contain confidential and privileged information. > If the reader of this message is not the intended recipient, > you are notified that any dissemination, distribution or copy of this > communication is strictly Prohibited. > If you have received this message by error, please notify us > immediately, return the original mail to the sender and delete the > message from your system." > > > --__--__-- > > Message: 2 > From: Stefan Bruckner > To: vtkusers@public.kitware.com > Date: 29 Aug 2002 07:13:32 +0200 > Subject: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > > Thanks for you help, I have managed to build VTK with Kylix (which also > involved some source changes, because bc++ handles some things very > differently than "usual" UNIX compilers ... additionally the command > line syntax of the compiler is so much different from what cmake expects > that manually editing the generated makefiles was the only solution I > found). > > However, since several other issues have arisen I have found that > integrating VTK and Kylix is probably not feasable at the moment ... > > For other users who want to try this, I suggest to wait till bc++ and > gcc produce ABI compatible libraries (which might take some time) ... > > Thanks again for your support! > > -- > Stefan Bruckner > > > Am Mit, 2002-08-28 um 15.19 schrieb William A. Hoffman: > > This does not look like any of those problems. > > It looks like: > > > > bcc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl > > -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > /usr/src/packages/SOURCES/VTK/bin/mkg3states > > > > Is trying to compile a .cpp file and not create an executable like one > > would expect. > > > > Can you try building an executable from the command line? > > > > Start with the above command, and start removing things until it works. > > Does this work: > > bcc++ mkg3states.o -o mkg3states > > > > What on the command line is causing it to fail? > > > > -Bill > > > > > > At 11:55 PM 8/27/2002 +0200, Stefan Bruckner wrote: > > >I have tried the -tD flag for building shared libraries and the -VC > flag > > >for position independent code, but when I build I always get: > > > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > >/usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c: > > >Warning W8065 /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c > > >383: Call to function 'getopt' with no prototype in function main > > >bc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl > > >-lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > >/usr/src/packages/SOURCES/VTK/bin/mkg3states > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > >Error E2194: Could not find file > > >'/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp' > > > > > > --__--__-- > > Message: 3 > Date: Thu, 29 Aug 2002 08:58:31 +0200 > From: "Gregory Bleiker" > To: , > Subject: Antw: [vtkusers] 'Undefined Reference' while compiling? > > Hi Bert and all > This is a rather annoying situation and there has been a few posts earlier > = > on revering to similar problems. Maybe a tutorial can be found somewhere? > = > Anyway, compiling and (especially) linking the VTK stuff is not as simple > = > as it looks. In your case, you include the vtkCommon library first and = > that's why you will get the link errors. Including the libs in the = > following way will probably help: > > -lvtkIO -lvtkRendering -lvtkGraphics -IvtkImaging -lvtkjpeg -lvtkpng = > -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32 > > BUT: It is probably the best idea to use CMake to generate the makefile = > for you (see page 31 of VTK User's Guide). This approach is good, but gets > = > you into a bit of trouble if you want to use the GNU autoconf/libtool = > approach as you will have to if you want to use FOX, for example. If = > anybody can tell me how to get past that rock I would highly appreciate = > it. > > Hope this helps > Gregi > > > > --__--__-- > > Message: 4 > From: "Simon Chatelain" > To: "vtkmailinlist" > Date: Thu, 29 Aug 2002 09:23:00 +0200 > Subject: [vtkusers] vtkRnendererCollection problem with java > > Hello, > > I have an java/VTK application. I'm using jdk 1.4.0 and VTK 4.0. > In my application, i have a vtkRenderWindow with some vtkRenderer with > different viewport. > Like in the vtkPanel class, i check the number of actors in the differents > renderer. > > I try with two different methods: > 1) > > vtkRendererCollection rcoll = this.rw.GetRenderers(); > rcoll.InitTraversal(); > > int nbren = rcoll.GetNumberOfItems(); > int nbActor = 0; > for (int i=0;i { > vtkRenderer ren = rcoll.GetNextItem(); > nbActor += ren.VisibleActorCount(); > } > return nbActor; > > this methods create (often but not always) the following exception: > > An unexpected exception has been detected in native code outside the > VM. > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > PC=0xAE3E4B0 > Function=vtkCollection::GetNumberOfItems+0x0 > Library=C:\WINDOWS\System32\vtkCommon.dll > > Current Java thread: > at vtk.vtkCollection.GetNumberOfItems_8(Native Method) > at vtk.vtkCollection.GetNumberOfItems(vtkCollection.java:44) > at VTKPanel.visibleActor(VTKPanel.java:53) > - locked <02FF16F0> (a VTKPanel) > at VTKPanel.Render(VTKPanel.java:105) > - locked <02FF16F0> (a VTKPanel) > at vtk.vtkPanel.paint(vtkPanel.java:51) > at sun.awt.RepaintArea.paint(RepaintArea.java:180) > at > sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) ... > > I try with an another method : > 2) > vtkRendererCollection rcoll = this.rw.GetRenderers(); > rcoll.InitTraversal(); > vtkRenderer ren = rcoll.GetNextItem(); > > int nbActor = 0; > while (ren != null) > { > nbActor += ren.VisibleActorCount(); > ren = rcoll.GetNextItem(); > } > > this methods create (often but not always) the following exception: > > An unexpected exception has been detected in native code outside the > VM. > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > PC=0xB65A3E6 > Function=Java_vtk_vtkRendererCollection_GetNextItem_13+0x16 > Library=C:\WINDOWS\system32\vtkRenderingJava.dll > > Current Java thread: > at vtk.vtkRendererCollection.GetNextItem_3(Native Method) > at > vtk.vtkRendererCollection.GetNextItem(vtkRendererCollection.java:24) > at VTKPanel.visibleActor(VTKPanel.java:56) > - locked <02FFE3C0> (a VTKPanel) > at VTKPanel.Render(VTKPanel.java:104) > - locked <02FFE3C0> (a VTKPanel) > at vtk.vtkPanel.paint(vtkPanel.java:51) > at sun.awt.RepaintArea.paint(RepaintArea.java:180) ... > > This exception occurs only on during the second call to GetNextItem(). > > Can someone help ? > > Thanks. > > > --__--__-- > > Message: 5 > Date: Thu, 29 Aug 2002 11:57:36 +0200 > From: Guangning Pei > To: vtkusers@public.kitware.com > Subject: [vtkusers] About vtkDataObjectToDataSetFilter > > Hi all, > I am a beginner of vtk. Follow the demo of finance.tcl, I use > vtkProgramDataObjectSource to create Data object, then use > vtkDataObjectToDataSetFilter to create the points and > vtkFieldDataToAttributeDataFilter to assign the scalar. > After I change the axis component by "set xAxis xxx", I found I can't > just use commands " do2ds SetPointComponent 0 $xAxis 0 ..."! The > dataobject has been destroyed! I have to create another > vtkDataObjectToDataSetFilter or create the vtkProgramDataObjectSource > again! > Can anyone tell me if there is a convenience way to do it? or there is > other filters I should use instead of vtkDataObjectToDataSetFilter? > Thanks a lot! > Regards/Grand > > > --__--__-- > > Message: 6 > Reply-To: "John Biddiscombe" > From: "John Biddiscombe" > To: "Stefan Bruckner" , > > Subject: Re: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > Date: Thu, 29 Aug 2002 11:05:35 +0100 > > > > However, since several other issues have arisen I have found that > > integrating VTK and Kylix is probably not feasable at the moment ...=20 > > Could you please elaborate? as a BCB6 user who's been working with vtk = > for many years, I can't see why Kylix is going to be ruled out. What = > problems do you refer to > > > For other users who want to try this, I suggest to wait till bc++ and > > gcc produce ABI compatible libraries (which might take some time) ... > > Whats ABI? > > thanks > > JB > > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers@public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From jeff@cdnorthamerica.com Thu Aug 29 11:56:51 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 29 Aug 2002 06:56:51 -0400 Subject: [vtkusers] parallel library References: <3D6D4924.75676143@vrac.iastate.edu> Message-ID: <3D6DFDF3.6030300@cdnorthamerica.com> It looks like you linked libvtkParallel with lam mpi and you need another lam lib to resolve these references. -Jeff Song Li wrote: > Hi, Gurus, > > When I compile my application on linux, if use "-lvtkParallel" during > linking, the screen output looks like below. Does > anybody know what should I do to make so many phrase known by the > compiler ? Thanks a lot!!!! > > Error message: > ------------------------------------------------------------------------- > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_append' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `rw' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_deregister_object' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `nsend' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `dsend' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_trpoint' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_rtrnamepub' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `mrev4' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `blktype' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_kexit' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_free' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_ksigretry' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_rtrnamedel' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getnodeid' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `rpdoom' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_next' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_rtrnameget' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getrent' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getntype' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_ksigsetretry' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `argvfree' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_errorstr' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getroute' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getnodes' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `kenter' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_ksignal' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_register_objects' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `bfselect' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lpattach' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ldogetlinks' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_free' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_delete' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `kexit' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `nrecv' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `microsleep' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_init' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `bfrecv' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `show_help' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `next_prime' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `stoi' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `kinit' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `sfh_sock_accept_tmout' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `sfh_sock_open_srv_inet_stm' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `_kio' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ttime' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_find' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_insert' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_init' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_insert' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `bfiprobe' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_delete' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `sfh_sock_set_buf_size' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_expand' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `al_find' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `getorigin' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_rtrnamesweep' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `_lam_signal' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `sfh_sock_open_clt_inet_stm' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `rpstate' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `tprintf' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `kpause' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `ah_next' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `rev8' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `argvadd' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `bfiselect' > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > reference to `lam_rtrstore' > >-- >Song Li >VRAC(Virtual Reality Application Center),Iowa State University >Email: lisong@vrac.iastate.edu >Homepage: http://www.vrac.iastate.edu/~lison > From Steffen.Oeltze@Student.Uni-Magdeburg.DE Thu Aug 29 12:13:08 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Thu, 29 Aug 2002 13:13:08 +0200 Subject: [vtkusers] changing transfer functions interactively ? Message-ID: <3D6E01C4.3060803@student.uni-magdeburg.de> Dear VTK-users, I've written a program that renders a volume using ray-casting. I'd like to enable the user to change the transfer functions for opacity and color interactively by using sliders. Has anybody an idea or a source code sample ? Or is there maybe a better way than using sliders ? Regards, Steffen From bob@stlcc.org Thu Aug 29 12:44:14 2002 From: bob@stlcc.org (Bob Palank) Date: Thu, 29 Aug 2002 06:44:14 -0500 Subject: [vtkusers] vtk and Java and VJ# In-Reply-To: Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0020_01C24F27.7D2C2880 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Can anyone shed light on this ? I'm attempting to use Microsoft's VJ# (java code)with vtk40 running under XP. I downloaded the dlls from the vtk website and did not rebuild them, nor did I rebuild the vtk.jar. MSDN support asks : Are the DLLs native Win32/COM Dlls or are they containing embedded .class & resource files (Like is possible using the JExeGen tool of VJ6). If the DLLs are native Win32 Dlls being accessed through JNI, then this is not supported in Visual J#. You will have to move to using P/Invoke or COM inter-op services of .NET Fx. If on the other hand, these DLLs contain embedded .class/resource files, then you need to convert the classes to managed assemblies before using in VJ# app. For this you can use the VJ# binary converter tool (JbImp.exe). When using JbImp.exe - please confirm that there are no legal restrictions from the vendor of the .class files on doing a binary conversion. Note, that JbImp does not support extracting embedded .class files in Win32 Dlls. The tool must be run on the original .class files on which JExeGen (or similar tool) was run. Regarding the behaviour of System.loadLibrary, we follow the same semantics as the Win32 LoadLibrary API. If a path is specified then the DLL is looked for in that path. If no path is specified then the search heuristics of the Win32 LoadLibrary API is followed. The MSDN documentation for Win32 LoadLibrary API has these heuristics. -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Bob Palank Sent: Tuesday, August 20, 2002 4:14 PM To: vtkusers@public.kitware.com Subject: [vtkusers] vtk and Java Running in Borland JBuilder 60 - Java under XP Pro 1. I Rebuild the project and the build succeeds. 2. Project runs fine when the lines below are commented out. // vtkConeSource cone = new vtkConeSource(); // cone.SetHeight( 3.0 ); // cone.SetRadius( 1.0 ); // cone.SetResolution( 10 ); 3. when // vtkConeSource cone = new vtkConeSource(); is uncommented, the build fails with the following error. "cone02.java": Error #: 300 : class vtkConeSource not found in class cone02.cone02 at line 27, column 6 4. I thought the import vtk.*; and System.loadLibrary() should get me beyond this point, but I must be missing something! TIA Bob Palank Fortunately, I had this running before I did a system rebuild! The tutorial code follows. ============================================================= Java Code follows: // Source vtk Tutorial Step 1. // // This example creates a polygonal model of a cone, and then rendered it to // the screen. It willrotate the cone 360 degrees and then exit. The basic // setup of source -> mapper -> actor -> renderer -> renderwindow is // typical of most VTK programs. // package cone02; import vtk.*; // be sure to add a Path to d:\windows\system32 for vtk.jar public class cone02 { static { System.loadLibrary("vtkCommonJava"); System.loadLibrary("vtkFilteringJava"); System.loadLibrary("vtkIOJava"); System.loadLibrary("vtkImagingJava"); System.loadLibrary("vtkGraphicsJava"); System.loadLibrary("vtkRenderingJava"); /* ====================================================== ======================================================= */ } public static void main(String[] args) { // vtkConeSource cone = new vtkConeSource(); // cone.SetHeight( 3.0 ); // cone.SetRadius( 1.0 ); // cone.SetResolution( 10 ); System.out.println("20Aug02 Pass 05"); } } _______________________________________________ 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 ------=_NextPart_000_0020_01C24F27.7D2C2880 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

Can anyone shed light on = this ?
I'm=20 attempting to use Microsoft's VJ# (java code)with vtk40 running under=20 XP.

I downloaded the dlls from = the vtk=20 website and did not rebuild them, nor did I rebuild the vtk.jar. =

MSDN=20 support asks :

Are the DLLs native Win32/COM = Dlls or are=20 they containing embedded .class &
resource files (Like is = possible using=20 the JExeGen tool of VJ6).

If the DLLs are native Win32 Dlls being = accessed through JNI, then this is
not supported in Visual J#. You = will have=20 to move to using P/Invoke or COM
inter-op services of .NET = Fx.

If on=20 the other hand, these DLLs contain embedded .class/resource = files,
then you=20 need to convert the classes to managed assemblies before using in
VJ# = app.=20 For this you can use the VJ# binary converter tool (JbImp.exe).
When = using=20 JbImp.exe - please confirm that there are no legal restrictions
from = the=20 vendor of the .class files on doing a binary conversion. Note, = that
JbImp=20 does not support extracting embedded .class files in Win32 Dlls. = The
tool=20 must be run on the original .class files on which JExeGen (or = similar
tool)=20 was run.
Regarding the behaviour of System.loadLibrary, we follow the = same=20 semantics
as the Win32 LoadLibrary API. If a path is specified then = the DLL=20 is looked
for in that path. If no path is specified then the search=20 heuristics of the
Win32 LoadLibrary API is followed. The MSDN = documentation=20 for Win32
LoadLibrary API has these heuristics.

-----Original=20 Message-----
From: vtkusers-admin@public.kitware.com
[
mailto:vtkusers-admin@public.kitware.com
]On Behalf Of Bob Palank
Sent: Tuesday, August = 20, 2002=20 4:14 PM
To: vtkusers@public.kitware.com
Subject: [vtkusers] vtk = and=20 Java


Running in Borland JBuilder 60 - Java under XP = Pro

1. I=20 Rebuild the project and the build succeeds.
2. Project runs fine when = the=20 lines below are commented out.
     // = vtkConeSource cone=20 =3D new vtkConeSource();
     // cone.SetHeight( = 3.0=20 );
     // cone.SetRadius( 1.0=20 );
     // cone.SetResolution( 10 );
3. when = //=20 vtkConeSource cone =3D new vtkConeSource(); is uncommented, the
build = fails=20 with the following error.
"cone02.java": Error #: 300 : class = vtkConeSource=20 not found in class
cone02.cone02 at line 27, column 6

4. I = thought the=20 import vtk.*; and System.loadLibrary() should get me beyond
this = point, but I=20 must be missing something!

TIA
  Bob = Palank

Fortunately, I=20 had this running before I did a system rebuild!
The tutorial code=20 follows.



 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Java=20 Code=20 follows:
//          = ;            =            =20 Source vtk Tutorial Step 1.

//
// This example creates a = polygonal=20 model of a cone, and then rendered it to
// the screen. It willrotate = the=20 cone 360 degrees and then exit. The basic
// setup of source -> = mapper=20 -> actor -> renderer -> renderwindow is
// typical of most = VTK=20 programs.
//

package cone02;
import vtk.*;  // be sure = to add=20 a Path to d:\windows\system32 for vtk.jar

public class cone02 = {
 =20 static {
   =20 System.loadLibrary("vtkCommonJava");
   =20 System.loadLibrary("vtkFilteringJava");
   =20 System.loadLibrary("vtkIOJava");
   =20 System.loadLibrary("vtkImagingJava");
   =20 System.loadLibrary("vtkGraphicsJava");
   =20 System.loadLibrary("vtkRenderingJava");
    /*=20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
   =20 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D */
}

 =20 public static void main(String[] args) {

     = //=20 vtkConeSource cone =3D new vtkConeSource();
     = //=20 cone.SetHeight( 3.0 );
     // cone.SetRadius( = 1.0=20 );
     // cone.SetResolution( 10=20 );



    System.out.println("20Aug02  = Pass=20 05");

 =20 }
}

_______________________________________________
This is = the=20 private VTK discussion list.
Please keep messages on-topic. Check the = FAQ at:=20 <http://public.kitware.com/cgi-bin/vtkfaq>
Follow this link to=20 subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/vtkusers

------=_NextPart_000_0020_01C24F27.7D2C2880-- From reichl@ifb.tu-graz.ac.at Thu Aug 29 13:50:09 2002 From: reichl@ifb.tu-graz.ac.at (reichl@ifb.tu-graz.ac.at) Date: Thu, 29 Aug 2002 13:50:09 +0100 Subject: [vtkusers] vtkusers digest, Vol 1 #1215 - 4 msgs Message-ID: <73520D28BE@bauing.tu-graz.ac.at> I am on vacation till 6th of September. Your email has been delivered and i will answer as soon as possible. kind regards Thomas Reichl From baki.gur@vestel.com.tr Thu Aug 29 12:44:49 2002 From: baki.gur@vestel.com.tr (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) Date: Thu, 29 Aug 2002 14:44:49 +0300 Subject: [vtkusers] RE: vtkusers digest, Message-ID: <3CCA3F3DDB98D411B3E700A0C9E4A8BE0B9B335C@VESCOMSERVER> > -----Original Message----- > From: vtkusers-request@public.kitware.com > [SMTP:vtkusers-request@public.kitware.com] > Sent: Thursday, August 29, 2002 2:46 PM > To: vtkusers@public.kitware.com > Subject: vtkusers digest, Vol 1 #1215 - 4 msgs > > Send vtkusers mailing list submissions to > vtkusers@public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. help (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) > 2. Re: parallel library (Jeff Lee) > 3. changing transfer functions interactively ? (Steffen Oeltze) > 4. RE: vtk and Java and VJ# (Bob Palank) > > --__--__-- > > Message: 1 > From: =?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?= > > To: vtkusers@public.kitware.com > Date: Thu, 29 Aug 2002 13:35:10 +0300 > Subject: [vtkusers] help > > > > > -----Original Message----- > > From: vtkusers-request@public.kitware.com > > [SMTP:vtkusers-request@public.kitware.com] > > Sent: Thursday, August 29, 2002 1:38 PM > > To: vtkusers@public.kitware.com > > Subject: vtkusers digest, Vol 1 #1214 - 6 msgs > > > > Send vtkusers mailing list submissions to > > vtkusers@public.kitware.com > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://public.kitware.com/mailman/listinfo/vtkusers > > or, via email, send a message with subject or body 'help' to > > vtkusers-request@public.kitware.com > > > > You can reach the person managing the list at > > vtkusers-admin@public.kitware.com > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of vtkusers digest..." > > > > > > Today's Topics: > > > > 1. UnsatisfiedLinkError java +unix+solaris (Kumar, Preethish M (MED)) > > 2. Re: Re: Re: Re: Building VTK with Kylix bc++ (Stefan Bruckner) > > 3. Antw: [vtkusers] 'Undefined Reference' while compiling? (Gregory > > Bleiker) > > 4. vtkRnendererCollection problem with java (Simon Chatelain) > > 5. About vtkDataObjectToDataSetFilter (Guangning Pei) > > 6. Re: Re: Re: Re: Re: Building VTK with Kylix bc++ (John > Biddiscombe) > > > > -- __--__-- > > > > Message: 1 > > From: "Kumar, Preethish M (MED)" > > To: vtkusers@public.kitware.com > > Date: Thu, 29 Aug 2002 09:36:14 +0530 > > Subject: [vtkusers] UnsatisfiedLinkError java +unix+solaris > > > > hai, > > > > i installed the vtk with --with-java and --with-shared option and > > make.everything went fine.after that i set LD_LIBRARY_PATH to every *.so > > file generated and compiled and ran Regression.java. i got the > following > > unsatisfied link error.can any one help.thank u in advance > > > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava in > > java.library.path > > at java.lang.Throwable.fillInStackTrace(Native Method) > > at java.lang.Throwable.fillInStackTrace(Compiled Code) > > at java.lang.Throwable.(Compiled Code) > > at java.lang.Error.(Error.java:50) > > at java.lang.LinkageError.(LinkageError.java:43) > > at > > java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:42) > > at java.lang.ClassLoader.loadLibrary(Compiled Code) > > at java.lang.Runtime.loadLibrary0(Runtime.java:473) > > at java.lang.System.loadLibrary(System.java:778) > > at > > > > > > "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE > > ADDRESSEE and may contain confidential and privileged information. > > If the reader of this message is not the intended recipient, > > you are notified that any dissemination, distribution or copy of this > > communication is strictly Prohibited. > > If you have received this message by error, please notify us > > immediately, return the original mail to the sender and delete the > > message from your system." > > > > > > -- __--__-- > > > > Message: 2 > > From: Stefan Bruckner > > To: vtkusers@public.kitware.com > > Date: 29 Aug 2002 07:13:32 +0200 > > Subject: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > > > > Thanks for you help, I have managed to build VTK with Kylix (which also > > involved some source changes, because bc++ handles some things very > > differently than "usual" UNIX compilers ... additionally the command > > line syntax of the compiler is so much different from what cmake expects > > that manually editing the generated makefiles was the only solution I > > found). > > > > However, since several other issues have arisen I have found that > > integrating VTK and Kylix is probably not feasable at the moment ... > > > > For other users who want to try this, I suggest to wait till bc++ and > > gcc produce ABI compatible libraries (which might take some time) ... > > > > Thanks again for your support! > > > > -- > > Stefan Bruckner > > > > > > Am Mit, 2002-08-28 um 15.19 schrieb William A. Hoffman: > > > This does not look like any of those problems. > > > It looks like: > > > > > > bcc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread -ldl > > > -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > > /usr/src/packages/SOURCES/VTK/bin/mkg3states > > > > > > Is trying to compile a .cpp file and not create an executable like one > > > would expect. > > > > > > Can you try building an executable from the command line? > > > > > > Start with the above command, and start removing things until it > works. > > > Does this work: > > > bcc++ mkg3states.o -o mkg3states > > > > > > What on the command line is causing it to fail? > > > > > > -Bill > > > > > > > > > At 11:55 PM 8/27/2002 +0200, Stefan Bruckner wrote: > > > >I have tried the -tD flag for building shared libraries and the -VC > > flag > > > >for position independent code, but when I build I always get: > > > > > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > > >/usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c: > > > >Warning W8065 > /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c > > > >383: Call to function 'getopt' with no prototype in function main > > > >bc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread > -ldl > > > >-lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > > >/usr/src/packages/SOURCES/VTK/bin/mkg3states > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > > >Error E2194: Could not find file > > > >'/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp' > > > > > > > > > > > -- __--__-- > > > > Message: 3 > > Date: Thu, 29 Aug 2002 08:58:31 +0200 > > From: "Gregory Bleiker" > > To: , > > Subject: Antw: [vtkusers] 'Undefined Reference' while compiling? > > > > Hi Bert and all > > This is a rather annoying situation and there has been a few posts > earlier > > = > > on revering to similar problems. Maybe a tutorial can be found > somewhere? > > = > > Anyway, compiling and (especially) linking the VTK stuff is not as > simple > > = > > as it looks. In your case, you include the vtkCommon library first and = > > that's why you will get the link errors. Including the libs in the = > > following way will probably help: > > > > -lvtkIO -lvtkRendering -lvtkGraphics -IvtkImaging -lvtkjpeg -lvtkpng > = > > -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32 > > > > BUT: It is probably the best idea to use CMake to generate the makefile > = > > for you (see page 31 of VTK User's Guide). This approach is good, but > gets > > = > > you into a bit of trouble if you want to use the GNU autoconf/libtool = > > approach as you will have to if you want to use FOX, for example. If = > > anybody can tell me how to get past that rock I would highly appreciate > = > > it. > > > > Hope this helps > > Gregi > > > > > > > > -- __--__-- > > > > Message: 4 > > From: "Simon Chatelain" > > To: "vtkmailinlist" > > Date: Thu, 29 Aug 2002 09:23:00 +0200 > > Subject: [vtkusers] vtkRnendererCollection problem with java > > > > Hello, > > > > I have an java/VTK application. I'm using jdk 1.4.0 and VTK 4.0. > > In my application, i have a vtkRenderWindow with some vtkRenderer with > > different viewport. > > Like in the vtkPanel class, i check the number of actors in the > differents > > renderer. > > > > I try with two different methods: > > 1) > > > > vtkRendererCollection rcoll = this.rw.GetRenderers(); > > rcoll.InitTraversal(); > > > > int nbren = rcoll.GetNumberOfItems(); > > int nbActor = 0; > > for (int i=0;i > { > > vtkRenderer ren = rcoll.GetNextItem(); > > nbActor += ren.VisibleActorCount(); > > } > > return nbActor; > > > > this methods create (often but not always) the following exception: > > > > An unexpected exception has been detected in native code outside the > > VM. > > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > > PC=0xAE3E4B0 > > Function=vtkCollection::GetNumberOfItems+0x0 > > Library=C:\WINDOWS\System32\vtkCommon.dll > > > > Current Java thread: > > at vtk.vtkCollection.GetNumberOfItems_8(Native Method) > > at vtk.vtkCollection.GetNumberOfItems(vtkCollection.java:44) > > at VTKPanel.visibleActor(VTKPanel.java:53) > > - locked <02FF16F0> (a VTKPanel) > > at VTKPanel.Render(VTKPanel.java:105) > > - locked <02FF16F0> (a VTKPanel) > > at vtk.vtkPanel.paint(vtkPanel.java:51) > > at sun.awt.RepaintArea.paint(RepaintArea.java:180) > > at > > sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) ... > > > > I try with an another method : > > 2) > > vtkRendererCollection rcoll = this.rw.GetRenderers(); > > rcoll.InitTraversal(); > > vtkRenderer ren = rcoll.GetNextItem(); > > > > int nbActor = 0; > > while (ren != null) > > { > > nbActor += ren.VisibleActorCount(); > > ren = rcoll.GetNextItem(); > > } > > > > this methods create (often but not always) the following exception: > > > > An unexpected exception has been detected in native code outside the > > VM. > > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > > PC=0xB65A3E6 > > Function=Java_vtk_vtkRendererCollection_GetNextItem_13+0x16 > > Library=C:\WINDOWS\system32\vtkRenderingJava.dll > > > > Current Java thread: > > at vtk.vtkRendererCollection.GetNextItem_3(Native Method) > > at > > vtk.vtkRendererCollection.GetNextItem(vtkRendererCollection.java:24) > > at VTKPanel.visibleActor(VTKPanel.java:56) > > - locked <02FFE3C0> (a VTKPanel) > > at VTKPanel.Render(VTKPanel.java:104) > > - locked <02FFE3C0> (a VTKPanel) > > at vtk.vtkPanel.paint(vtkPanel.java:51) > > at sun.awt.RepaintArea.paint(RepaintArea.java:180) ... > > > > This exception occurs only on during the second call to GetNextItem(). > > > > Can someone help ? > > > > Thanks. > > > > > > -- __--__-- > > > > Message: 5 > > Date: Thu, 29 Aug 2002 11:57:36 +0200 > > From: Guangning Pei > > To: vtkusers@public.kitware.com > > Subject: [vtkusers] About vtkDataObjectToDataSetFilter > > > > Hi all, > > I am a beginner of vtk. Follow the demo of finance.tcl, I use > > vtkProgramDataObjectSource to create Data object, then use > > vtkDataObjectToDataSetFilter to create the points and > > vtkFieldDataToAttributeDataFilter to assign the scalar. > > After I change the axis component by "set xAxis xxx", I found I can't > > just use commands " do2ds SetPointComponent 0 $xAxis 0 ..."! The > > dataobject has been destroyed! I have to create another > > vtkDataObjectToDataSetFilter or create the vtkProgramDataObjectSource > > again! > > Can anyone tell me if there is a convenience way to do it? or there is > > other filters I should use instead of vtkDataObjectToDataSetFilter? > > Thanks a lot! > > Regards/Grand > > > > > > -- __--__-- > > > > Message: 6 > > Reply-To: "John Biddiscombe" > > From: "John Biddiscombe" > > To: "Stefan Bruckner" , > > > > Subject: Re: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > > Date: Thu, 29 Aug 2002 11:05:35 +0100 > > > > > > > However, since several other issues have arisen I have found that > > > integrating VTK and Kylix is probably not feasable at the moment > ...=20 > > > > Could you please elaborate? as a BCB6 user who's been working with vtk = > > for many years, I can't see why Kylix is going to be ruled out. What = > > problems do you refer to > > > > > For other users who want to try this, I suggest to wait till bc++ and > > > gcc produce ABI compatible libraries (which might take some time) ... > > > > Whats ABI? > > > > thanks > > > > JB > > > > > > > > > > -- __--__-- > > > > _______________________________________________ > > vtkusers mailing list > > vtkusers@public.kitware.com > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > End of vtkusers Digest > > --__--__-- > > Message: 2 > Date: Thu, 29 Aug 2002 06:56:51 -0400 > From: Jeff Lee > Organization: Computational Dynamics North America > To: lisong@vrac.iastate.edu > Cc: vtkusers@public.kitware.com > Subject: Re: [vtkusers] parallel library > > It looks like you linked libvtkParallel with lam mpi and you need > another lam lib to resolve these references. > -Jeff > > Song Li wrote: > > > Hi, Gurus, > > > > When I compile my application on linux, if use "-lvtkParallel" during > > linking, the screen output looks like below. Does > > anybody know what should I do to make so many phrase known by the > > compiler ? Thanks a lot!!!! > > > > Error message: > > > ------------------------------------------------------------------------- > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_append' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rw' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_deregister_object' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `nsend' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `dsend' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_trpoint' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamepub' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `mrev4' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `blktype' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_kexit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_free' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksigretry' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamedel' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getnodeid' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rpdoom' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_next' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnameget' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getrent' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getntype' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksigsetretry' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `argvfree' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_errorstr' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getroute' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getnodes' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kenter' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksignal' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_register_objects' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfselect' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lpattach' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ldogetlinks' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_free' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_delete' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kexit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `nrecv' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `microsleep' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_init' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfrecv' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `show_help' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `next_prime' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `stoi' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kinit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_accept_tmout' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_open_srv_inet_stm' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `_kio' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ttime' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_find' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_insert' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_init' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_insert' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfiprobe' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_delete' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_set_buf_size' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_expand' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_find' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getorigin' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamesweep' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `_lam_signal' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_open_clt_inet_stm' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rpstate' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `tprintf' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kpause' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_next' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rev8' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `argvadd' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfiselect' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrstore' > > > >-- > >Song Li > >VRAC(Virtual Reality Application Center),Iowa State University > >Email: lisong@vrac.iastate.edu > >Homepage: http://www.vrac.iastate.edu/~lison > > > > > > --__--__-- > > Message: 3 > Date: Thu, 29 Aug 2002 13:13:08 +0200 > From: Steffen Oeltze > To: VTK users > Subject: [vtkusers] changing transfer functions interactively ? > > Dear VTK-users, > > I've written a program that renders a volume using ray-casting. I'd like > to enable the user > to change the transfer functions for opacity and color interactively by > using sliders. Has > anybody an idea or a source code sample ? Or is there maybe a better way > than using > sliders ? > > Regards, > Steffen > > > --__--__-- > > Message: 4 > From: "Bob Palank" > To: > Subject: RE: [vtkusers] vtk and Java and VJ# > Date: Thu, 29 Aug 2002 06:44:14 -0500 > > This is a multi-part message in MIME format. > > ------=_NextPart_000_0020_01C24F27.7D2C2880 > Content-Type: text/plain; > charset="iso-8859-1" > Content-Transfer-Encoding: 7bit > > Can anyone shed light on this ? > I'm attempting to use Microsoft's VJ# (java code)with vtk40 running under > XP. > > I downloaded the dlls from the vtk website and did not rebuild them, nor > did > I rebuild the vtk.jar. > > MSDN support asks : > > Are the DLLs native Win32/COM Dlls or are they containing embedded .class > & > resource files (Like is possible using the JExeGen tool of VJ6). > > If the DLLs are native Win32 Dlls being accessed through JNI, then this is > not supported in Visual J#. You will have to move to using P/Invoke or COM > inter-op services of .NET Fx. > > If on the other hand, these DLLs contain embedded .class/resource files, > then you need to convert the classes to managed assemblies before using in > VJ# app. For this you can use the VJ# binary converter tool (JbImp.exe). > When using JbImp.exe - please confirm that there are no legal restrictions > from the vendor of the .class files on doing a binary conversion. Note, > that > JbImp does not support extracting embedded .class files in Win32 Dlls. The > tool must be run on the original .class files on which JExeGen (or similar > tool) was run. > Regarding the behaviour of System.loadLibrary, we follow the same > semantics > as the Win32 LoadLibrary API. If a path is specified then the DLL is > looked > for in that path. If no path is specified then the search heuristics of > the > Win32 LoadLibrary API is followed. The MSDN documentation for Win32 > LoadLibrary API has these heuristics. > > -----Original Message----- > From: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Bob Palank > Sent: Tuesday, August 20, 2002 4:14 PM > To: vtkusers@public.kitware.com > Subject: [vtkusers] vtk and Java > > > Running in Borland JBuilder 60 - Java under XP Pro > > 1. I Rebuild the project and the build succeeds. > 2. Project runs fine when the lines below are commented out. > // vtkConeSource cone = new vtkConeSource(); > // cone.SetHeight( 3.0 ); > // cone.SetRadius( 1.0 ); > // cone.SetResolution( 10 ); > 3. when // vtkConeSource cone = new vtkConeSource(); is uncommented, the > build fails with the following error. > "cone02.java": Error #: 300 : class vtkConeSource not found in class > cone02.cone02 at line 27, column 6 > > 4. I thought the import vtk.*; and System.loadLibrary() should get me > beyond > this point, but I must be missing something! > > TIA > Bob Palank > > Fortunately, I had this running before I did a system rebuild! > The tutorial code follows. > > > > ============================================================= > Java Code follows: > // Source vtk Tutorial Step 1. > > // > // This example creates a polygonal model of a cone, and then rendered it > to > // the screen. It willrotate the cone 360 degrees and then exit. The basic > // setup of source -> mapper -> actor -> renderer -> renderwindow is > // typical of most VTK programs. > // > > package cone02; > import vtk.*; // be sure to add a Path to d:\windows\system32 for vtk.jar > > public class cone02 { > static { > System.loadLibrary("vtkCommonJava"); > System.loadLibrary("vtkFilteringJava"); > System.loadLibrary("vtkIOJava"); > System.loadLibrary("vtkImagingJava"); > System.loadLibrary("vtkGraphicsJava"); > System.loadLibrary("vtkRenderingJava"); > /* ====================================================== > ======================================================= */ > } > > public static void main(String[] args) { > > // vtkConeSource cone = new vtkConeSource(); > // cone.SetHeight( 3.0 ); > // cone.SetRadius( 1.0 ); > // cone.SetResolution( 10 ); > > > > System.out.println("20Aug02 Pass 05"); > > } > } > > _______________________________________________ > 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 > > > ------=_NextPart_000_0020_01C24F27.7D2C2880 > Content-Type: text/html; > charset="iso-8859-1" > Content-Transfer-Encoding: quoted-printable > > > > charset=3Diso-8859-1"> > > >

Can anyone shed light on = > this ?
I'm=20 > attempting to use Microsoft's VJ# (java code)with vtk40 running under=20 > XP.

>

I downloaded the dlls from = > the vtk=20 > website and did not rebuild them, nor did I rebuild the vtk.jar. = >

MSDN=20 > support asks :

Are the DLLs native Win32/COM = > Dlls or are=20 > they containing embedded .class &
resource files (Like is = > possible using=20 > the JExeGen tool of VJ6).

If the DLLs are native Win32 Dlls being = > > accessed through JNI, then this is
not supported in Visual J#. You = > will have=20 > to move to using P/Invoke or COM
inter-op services of .NET = > Fx.

If on=20 > the other hand, these DLLs contain embedded .class/resource = > files,
then you=20 > need to convert the classes to managed assemblies before using in
VJ# = > app.=20 > For this you can use the VJ# binary converter tool (JbImp.exe).
When = > using=20 > JbImp.exe - please confirm that there are no legal restrictions
from = > the=20 > vendor of the .class files on doing a binary conversion. Note, = > that
JbImp=20 > does not support extracting embedded .class files in Win32 Dlls. = > The
tool=20 > must be run on the original .class files on which JExeGen (or = > similar
tool)=20 > was run.
Regarding the behaviour of System.loadLibrary, we follow the = > same=20 > semantics
as the Win32 LoadLibrary API. If a path is specified then = > the DLL=20 > is looked
for in that path. If no path is specified then the search=20 > heuristics of the
Win32 LoadLibrary API is followed. The MSDN = > documentation=20 > for Win32
LoadLibrary API has these heuristics.

-----Original=20 > Message-----
From: vtkusers-admin@public.kitware.com
[
href=3D"mailto:vtkusers-admin@public.kitware.com"> face=3D"Courier = > New">mailto:vtkusers-admin@public.kitware.com
face=3D"Courier New">]On Behalf Of Bob Palank
Sent: Tuesday, August = > 20, 2002=20 > 4:14 PM
To: vtkusers@public.kitware.com
Subject: [vtkusers] vtk = > and=20 > Java


Running in Borland JBuilder 60 - Java under XP = > Pro

1. I=20 > Rebuild the project and the build succeeds.
2. Project runs fine when = > the=20 > lines below are commented out.
     // = > vtkConeSource cone=20 > =3D new vtkConeSource();
     // cone.SetHeight( = > 3.0=20 > );
     // cone.SetRadius( 1.0=20 > );
     // cone.SetResolution( 10 );
3. when = > //=20 > vtkConeSource cone =3D new vtkConeSource(); is uncommented, the
build = > fails=20 > with the following error.
"cone02.java": Error #: 300 : class = > vtkConeSource=20 > not found in class
cone02.cone02 at line 27, column 6

4. I = > thought the=20 > import vtk.*; and System.loadLibrary() should get me beyond
this = > point, but I=20 > must be missing something!

TIA
  Bob = > Palank

Fortunately, I=20 > had this running before I did a system rebuild!
The tutorial code=20 > follows.



 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Java=20 > Code=20 > follows:
//          = > ;            = >            =20 > Source vtk Tutorial Step 1.

//
// This example creates a = > polygonal=20 > model of a cone, and then rendered it to
// the screen. It willrotate = > the=20 > cone 360 degrees and then exit. The basic
// setup of source -> = > mapper=20 > -> actor -> renderer -> renderwindow is
// typical of most = > VTK=20 > programs.
//

package cone02;
import vtk.*;  // be sure = > to add=20 > a Path to d:\windows\system32 for vtk.jar

public class cone02 = > {
 =20 > static {
   =20 > System.loadLibrary("vtkCommonJava");
   =20 > System.loadLibrary("vtkFilteringJava");
   =20 > System.loadLibrary("vtkIOJava");
   =20 > System.loadLibrary("vtkImagingJava");
   =20 > System.loadLibrary("vtkGraphicsJava");
   =20 > System.loadLibrary("vtkRenderingJava");
    /*=20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D
   =20 > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > D= > =3D=3D=3D=3D=3D */
}

 =20 > public static void main(String[] args) {

     = > //=20 > vtkConeSource cone =3D new vtkConeSource();
     = > //=20 > cone.SetHeight( 3.0 );
     // cone.SetRadius( = > 1.0=20 > );
     // cone.SetResolution( 10=20 > );



    System.out.println("20Aug02  = > Pass=20 > 05");

 =20 > }
}

_______________________________________________
This is = > the=20 > private VTK discussion list.
Please keep messages on-topic. Check the = > FAQ at:=20 > < target=3D_blank> face=3D"Courier = > New">http://public.kitware.com/cgi-bin/vtkfaq face=3D"Courier New">>
Follow this link to=20 > subscribe/unsubscribe:
href=3D"http://public.kitware.com/mailman/listinfo/vtkusers" = > target=3D_blank> face=3D"Courier = > New">http://public.kitware.com/mailman/listinfo/vtkusers > face=3D"Courier New">

> > ------=_NextPart_000_0020_01C24F27.7D2C2880-- > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers@public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From baki.gur@vestel.com.tr Thu Aug 29 13:16:25 2002 From: baki.gur@vestel.com.tr (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) Date: Thu, 29 Aug 2002 15:16:25 +0300 Subject: [vtkusers] unsubscribe Message-ID: <3CCA3F3DDB98D411B3E700A0C9E4A8BE0B9B3520@VESCOMSERVER> > -----Original Message----- > From: vtkusers-request@public.kitware.com > [SMTP:vtkusers-request@public.kitware.com] > Sent: Thursday, August 29, 2002 2:53 PM > To: vtkusers@public.kitware.com > Subject: vtkusers digest, Vol 1 #1216 - 2 msgs > > Send vtkusers mailing list submissions to > vtkusers@public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request@public.kitware.com > > You can reach the person managing the list at > vtkusers-admin@public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. vtkusers digest, Vol 1 #1215 - 4 msgs (reichl@ifb.tu-graz.ac.at) > 2. RE: vtkusers digest, > (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) > > --__--__-- > > Message: 1 > To: vtkusers@public.kitware.com > From: > Date: Thu, 29 Aug 2002 13:50:09 +0100 > Subject: [vtkusers] vtkusers digest, Vol 1 #1215 - 4 msgs > > I am on vacation till 6th of September. > Your email has been delivered and i will answer as soon as possible. > > kind regards > Thomas Reichl > > --__--__-- > > Message: 2 > From: =?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?= > > To: vtkusers@public.kitware.com > Date: Thu, 29 Aug 2002 14:44:49 +0300 > Subject: [vtkusers] RE: vtkusers digest, > > > > > -----Original Message----- > > From: vtkusers-request@public.kitware.com > > [SMTP:vtkusers-request@public.kitware.com] > > Sent: Thursday, August 29, 2002 2:46 PM > > To: vtkusers@public.kitware.com > > Subject: vtkusers digest, Vol 1 #1215 - 4 msgs > > > > Send vtkusers mailing list submissions to > > vtkusers@public.kitware.com > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://public.kitware.com/mailman/listinfo/vtkusers > > or, via email, send a message with subject or body 'help' to > > vtkusers-request@public.kitware.com > > > > You can reach the person managing the list at > > vtkusers-admin@public.kitware.com > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of vtkusers digest..." > > > > > > Today's Topics: > > > > 1. help (=?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?=) > > 2. Re: parallel library (Jeff Lee) > > 3. changing transfer functions interactively ? (Steffen Oeltze) > > 4. RE: vtk and Java and VJ# (Bob Palank) > > > > -- __--__-- > > > > Message: 1 > > From: =?iso-8859-9?Q?Baki_Onur_G=FCr_=28ARGE-VESTMAN=29?= > > > > To: vtkusers@public.kitware.com > > Date: Thu, 29 Aug 2002 13:35:10 +0300 > > Subject: [vtkusers] help > > > > > > > > > -----Original Message----- > > > From: vtkusers-request@public.kitware.com > > > [SMTP:vtkusers-request@public.kitware.com] > > > Sent: Thursday, August 29, 2002 1:38 PM > > > To: vtkusers@public.kitware.com > > > Subject: vtkusers digest, Vol 1 #1214 - 6 msgs > > > > > > Send vtkusers mailing list submissions to > > > vtkusers@public.kitware.com > > > > > > To subscribe or unsubscribe via the World Wide Web, visit > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > or, via email, send a message with subject or body 'help' to > > > vtkusers-request@public.kitware.com > > > > > > You can reach the person managing the list at > > > vtkusers-admin@public.kitware.com > > > > > > When replying, please edit your Subject line so it is more specific > > > than "Re: Contents of vtkusers digest..." > > > > > > > > > Today's Topics: > > > > > > 1. UnsatisfiedLinkError java +unix+solaris (Kumar, Preethish M > (MED)) > > > 2. Re: Re: Re: Re: Building VTK with Kylix bc++ (Stefan Bruckner) > > > 3. Antw: [vtkusers] 'Undefined Reference' while compiling? (Gregory > > > Bleiker) > > > 4. vtkRnendererCollection problem with java (Simon Chatelain) > > > 5. About vtkDataObjectToDataSetFilter (Guangning Pei) > > > 6. Re: Re: Re: Re: Re: Building VTK with Kylix bc++ (John > > Biddiscombe) > > > > > > -- __--__-- > > > > > > Message: 1 > > > From: "Kumar, Preethish M (MED)" > > > To: vtkusers@public.kitware.com > > > Date: Thu, 29 Aug 2002 09:36:14 +0530 > > > Subject: [vtkusers] UnsatisfiedLinkError java +unix+solaris > > > > > > hai, > > > > > > i installed the vtk with --with-java and --with-shared option and > > > make.everything went fine.after that i set LD_LIBRARY_PATH to every > *.so > > > file generated and compiled and ran Regression.java. i got the > > following > > > unsatisfied link error.can any one help.thank u in advance > > > > > > > > > Exception in thread "main" java.lang.UnsatisfiedLinkError: no vtkJava > in > > > java.library.path > > > at java.lang.Throwable.fillInStackTrace(Native Method) > > > at java.lang.Throwable.fillInStackTrace(Compiled Code) > > > at java.lang.Throwable.(Compiled Code) > > > at java.lang.Error.(Error.java:50) > > > at java.lang.LinkageError.(LinkageError.java:43) > > > at > > > java.lang.UnsatisfiedLinkError.(UnsatisfiedLinkError.java:42) > > > at java.lang.ClassLoader.loadLibrary(Compiled Code) > > > at java.lang.Runtime.loadLibrary0(Runtime.java:473) > > > at java.lang.System.loadLibrary(System.java:778) > > > at > > > > > > > > > "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR > THE > > > ADDRESSEE and may contain confidential and privileged information. > > > If the reader of this message is not the intended recipient, > > > you are notified that any dissemination, distribution or copy of this > > > communication is strictly Prohibited. > > > If you have received this message by error, please notify us > > > immediately, return the original mail to the sender and delete the > > > message from your system." > > > > > > > > > -- __--__-- > > > > > > Message: 2 > > > From: Stefan Bruckner > > > To: vtkusers@public.kitware.com > > > Date: 29 Aug 2002 07:13:32 +0200 > > > Subject: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > > > > > > Thanks for you help, I have managed to build VTK with Kylix (which > also > > > involved some source changes, because bc++ handles some things very > > > differently than "usual" UNIX compilers ... additionally the command > > > line syntax of the compiler is so much different from what cmake > expects > > > that manually editing the generated makefiles was the only solution I > > > found). > > > > > > However, since several other issues have arisen I have found that > > > integrating VTK and Kylix is probably not feasable at the moment ... > > > > > > For other users who want to try this, I suggest to wait till bc++ and > > > gcc produce ABI compatible libraries (which might take some time) ... > > > > > > Thanks again for your support! > > > > > > -- > > > Stefan Bruckner > > > > > > > > > Am Mit, 2002-08-28 um 15.19 schrieb William A. Hoffman: > > > > This does not look like any of those problems. > > > > It looks like: > > > > > > > > bcc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread > -ldl > > > > -lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > > > /usr/src/packages/SOURCES/VTK/bin/mkg3states > > > > > > > > Is trying to compile a .cpp file and not create an executable like > one > > > > would expect. > > > > > > > > Can you try building an executable from the command line? > > > > > > > > Start with the above command, and start removing things until it > > works. > > > > Does this work: > > > > bcc++ mkg3states.o -o mkg3states > > > > > > > > What on the command line is causing it to fail? > > > > > > > > -Bill > > > > > > > > > > > > At 11:55 PM 8/27/2002 +0200, Stefan Bruckner wrote: > > > > >I have tried the -tD flag for building shared libraries and the -VC > > > flag > > > > >for position independent code, but when I build I always get: > > > > > > > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > > > >/usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c: > > > > >Warning W8065 > > /usr/src/packages/SOURCES/VTK/Utilities/tiff/mkg3states.c > > > > >383: Call to function 'getopt' with no prototype in function main > > > > >bc++ mkg3states.o -L/usr/src/packages/SOURCES/VTK/bin -lpthread > > -ldl > > > > >-lm -Wl,-rpath,/usr/src/packages/SOURCES/VTK/bin -o > > > > >/usr/src/packages/SOURCES/VTK/bin/mkg3states > > > > >Borland C++ 5.7 Open Edition Copyright (c) 1987, 2002 Borland > > > > >Error E2194: Could not find file > > > > >'/usr/src/packages/SOURCES/VTK/bin/mkg3states.cpp' > > > > > > > > > > > > > > > > -- __--__-- > > > > > > Message: 3 > > > Date: Thu, 29 Aug 2002 08:58:31 +0200 > > > From: "Gregory Bleiker" > > > To: , > > > Subject: Antw: [vtkusers] 'Undefined Reference' while compiling? > > > > > > Hi Bert and all > > > This is a rather annoying situation and there has been a few posts > > earlier > > > = > > > on revering to similar problems. Maybe a tutorial can be found > > somewhere? > > > = > > > Anyway, compiling and (especially) linking the VTK stuff is not as > > simple > > > = > > > as it looks. In your case, you include the vtkCommon library first and > = > > > that's why you will get the link errors. Including the libs in the = > > > following way will probably help: > > > > > > -lvtkIO -lvtkRendering -lvtkGraphics -IvtkImaging -lvtkjpeg > -lvtkpng > > = > > > -lvtkzlib -lvtkFiltering -lvtkCommon -lopengl32 > > > > > > BUT: It is probably the best idea to use CMake to generate the > makefile > > = > > > for you (see page 31 of VTK User's Guide). This approach is good, but > > gets > > > = > > > you into a bit of trouble if you want to use the GNU autoconf/libtool > = > > > approach as you will have to if you want to use FOX, for example. If = > > > anybody can tell me how to get past that rock I would highly > appreciate > > = > > > it. > > > > > > Hope this helps > > > Gregi > > > > > > > > > > > > -- __--__-- > > > > > > Message: 4 > > > From: "Simon Chatelain" > > > To: "vtkmailinlist" > > > Date: Thu, 29 Aug 2002 09:23:00 +0200 > > > Subject: [vtkusers] vtkRnendererCollection problem with java > > > > > > Hello, > > > > > > I have an java/VTK application. I'm using jdk 1.4.0 and VTK 4.0. > > > In my application, i have a vtkRenderWindow with some vtkRenderer with > > > different viewport. > > > Like in the vtkPanel class, i check the number of actors in the > > differents > > > renderer. > > > > > > I try with two different methods: > > > 1) > > > > > > vtkRendererCollection rcoll = this.rw.GetRenderers(); > > > rcoll.InitTraversal(); > > > > > > int nbren = rcoll.GetNumberOfItems(); > > > int nbActor = 0; > > > for (int i=0;i > > { > > > vtkRenderer ren = rcoll.GetNextItem(); > > > nbActor += ren.VisibleActorCount(); > > > } > > > return nbActor; > > > > > > this methods create (often but not always) the following exception: > > > > > > An unexpected exception has been detected in native code outside the > > > VM. > > > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > > > PC=0xAE3E4B0 > > > Function=vtkCollection::GetNumberOfItems+0x0 > > > Library=C:\WINDOWS\System32\vtkCommon.dll > > > > > > Current Java thread: > > > at vtk.vtkCollection.GetNumberOfItems_8(Native Method) > > > at vtk.vtkCollection.GetNumberOfItems(vtkCollection.java:44) > > > at VTKPanel.visibleActor(VTKPanel.java:53) > > > - locked <02FF16F0> (a VTKPanel) > > > at VTKPanel.Render(VTKPanel.java:105) > > > - locked <02FF16F0> (a VTKPanel) > > > at vtk.vtkPanel.paint(vtkPanel.java:51) > > > at sun.awt.RepaintArea.paint(RepaintArea.java:180) > > > at > > > sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260) > ... > > > > > > I try with an another method : > > > 2) > > > vtkRendererCollection rcoll = this.rw.GetRenderers(); > > > rcoll.InitTraversal(); > > > vtkRenderer ren = rcoll.GetNextItem(); > > > > > > int nbActor = 0; > > > while (ren != null) > > > { > > > nbActor += ren.VisibleActorCount(); > > > ren = rcoll.GetNextItem(); > > > } > > > > > > this methods create (often but not always) the following exception: > > > > > > An unexpected exception has been detected in native code outside the > > > VM. > > > Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at > > > PC=0xB65A3E6 > > > Function=Java_vtk_vtkRendererCollection_GetNextItem_13+0x16 > > > Library=C:\WINDOWS\system32\vtkRenderingJava.dll > > > > > > Current Java thread: > > > at vtk.vtkRendererCollection.GetNextItem_3(Native Method) > > > at > > > vtk.vtkRendererCollection.GetNextItem(vtkRendererCollection.java:24) > > > at VTKPanel.visibleActor(VTKPanel.java:56) > > > - locked <02FFE3C0> (a VTKPanel) > > > at VTKPanel.Render(VTKPanel.java:104) > > > - locked <02FFE3C0> (a VTKPanel) > > > at vtk.vtkPanel.paint(vtkPanel.java:51) > > > at sun.awt.RepaintArea.paint(RepaintArea.java:180) ... > > > > > > This exception occurs only on during the second call to GetNextItem(). > > > > > > Can someone help ? > > > > > > Thanks. > > > > > > > > > -- __--__-- > > > > > > Message: 5 > > > Date: Thu, 29 Aug 2002 11:57:36 +0200 > > > From: Guangning Pei > > > To: vtkusers@public.kitware.com > > > Subject: [vtkusers] About vtkDataObjectToDataSetFilter > > > > > > Hi all, > > > I am a beginner of vtk. Follow the demo of finance.tcl, I use > > > vtkProgramDataObjectSource to create Data object, then use > > > vtkDataObjectToDataSetFilter to create the points and > > > vtkFieldDataToAttributeDataFilter to assign the scalar. > > > After I change the axis component by "set xAxis xxx", I found I can't > > > just use commands " do2ds SetPointComponent 0 $xAxis 0 ..."! The > > > dataobject has been destroyed! I have to create another > > > vtkDataObjectToDataSetFilter or create the vtkProgramDataObjectSource > > > again! > > > Can anyone tell me if there is a convenience way to do it? or there is > > > other filters I should use instead of vtkDataObjectToDataSetFilter? > > > Thanks a lot! > > > Regards/Grand > > > > > > > > > -- __--__-- > > > > > > Message: 6 > > > Reply-To: "John Biddiscombe" > > > From: "John Biddiscombe" > > > To: "Stefan Bruckner" , > > > > > > Subject: Re: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > > > Date: Thu, 29 Aug 2002 11:05:35 +0100 > > > > > > > > > > However, since several other issues have arisen I have found that > > > > integrating VTK and Kylix is probably not feasable at the moment > > ...=20 > > > > > > Could you please elaborate? as a BCB6 user who's been working with vtk > = > > > for many years, I can't see why Kylix is going to be ruled out. What = > > > problems do you refer to > > > > > > > For other users who want to try this, I suggest to wait till bc++ > and > > > > gcc produce ABI compatible libraries (which might take some time) > ... > > > > > > Whats ABI? > > > > > > thanks > > > > > > JB > > > > > > > > > > > > > > > -- __--__-- > > > > > > _______________________________________________ > > > vtkusers mailing list > > > vtkusers@public.kitware.com > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > > End of vtkusers Digest > > > > -- __--__-- > > > > Message: 2 > > Date: Thu, 29 Aug 2002 06:56:51 -0400 > > From: Jeff Lee > > Organization: Computational Dynamics North America > > To: lisong@vrac.iastate.edu > > Cc: vtkusers@public.kitware.com > > Subject: Re: [vtkusers] parallel library > > > > It looks like you linked libvtkParallel with lam mpi and you need > > another lam lib to resolve these references. > > -Jeff > > > > Song Li wrote: > > > > > Hi, Gurus, > > > > > > When I compile my application on linux, if use "-lvtkParallel" during > > > linking, the screen output looks like below. Does > > > anybody know what should I do to make so many phrase known by the > > > compiler ? Thanks a lot!!!! > > > > > > Error message: > > > > > > ------------------------------------------------------------------------- > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_append' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `rw' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_deregister_object' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `nsend' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `dsend' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_trpoint' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_rtrnamepub' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `mrev4' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `blktype' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_kexit' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_free' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_ksigretry' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_rtrnamedel' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getnodeid' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `rpdoom' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_next' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_rtrnameget' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getrent' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getntype' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_ksigsetretry' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `argvfree' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_errorstr' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getroute' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getnodes' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `kenter' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_ksignal' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_register_objects' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `bfselect' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lpattach' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ldogetlinks' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_free' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_delete' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `kexit' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `nrecv' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `microsleep' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_init' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `bfrecv' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `show_help' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `next_prime' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `stoi' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `kinit' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `sfh_sock_accept_tmout' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `sfh_sock_open_srv_inet_stm' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `_kio' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ttime' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_find' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_insert' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_init' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_insert' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `bfiprobe' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_delete' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `sfh_sock_set_buf_size' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_expand' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `al_find' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `getorigin' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_rtrnamesweep' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `_lam_signal' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `sfh_sock_open_clt_inet_stm' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `rpstate' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `tprintf' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `kpause' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `ah_next' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `rev8' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `argvadd' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `bfiselect' > > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > > reference to `lam_rtrstore' > > > > > >-- > > >Song Li > > >VRAC(Virtual Reality Application Center),Iowa State University > > >Email: lisong@vrac.iastate.edu > > >Homepage: http://www.vrac.iastate.edu/~lison > > > > > > > > > > > -- __--__-- > > > > Message: 3 > > Date: Thu, 29 Aug 2002 13:13:08 +0200 > > From: Steffen Oeltze > > To: VTK users > > Subject: [vtkusers] changing transfer functions interactively ? > > > > Dear VTK-users, > > > > I've written a program that renders a volume using ray-casting. I'd like > > > to enable the user > > to change the transfer functions for opacity and color interactively by > > using sliders. Has > > anybody an idea or a source code sample ? Or is there maybe a better way > > > than using > > sliders ? > > > > Regards, > > Steffen > > > > > > -- __--__-- > > > > Message: 4 > > From: "Bob Palank" > > To: > > Subject: RE: [vtkusers] vtk and Java and VJ# > > Date: Thu, 29 Aug 2002 06:44:14 -0500 > > > > This is a multi-part message in MIME format. > > > > ------=_NextPart_000_0020_01C24F27.7D2C2880 > > Content-Type: text/plain; > > charset="iso-8859-1" > > Content-Transfer-Encoding: 7bit > > > > Can anyone shed light on this ? > > I'm attempting to use Microsoft's VJ# (java code)with vtk40 running > under > > XP. > > > > I downloaded the dlls from the vtk website and did not rebuild them, nor > > did > > I rebuild the vtk.jar. > > > > MSDN support asks : > > > > Are the DLLs native Win32/COM Dlls or are they containing embedded > .class > > & > > resource files (Like is possible using the JExeGen tool of VJ6). > > > > If the DLLs are native Win32 Dlls being accessed through JNI, then this > is > > not supported in Visual J#. You will have to move to using P/Invoke or > COM > > inter-op services of .NET Fx. > > > > If on the other hand, these DLLs contain embedded .class/resource files, > > then you need to convert the classes to managed assemblies before using > in > > VJ# app. For this you can use the VJ# binary converter tool (JbImp.exe). > > When using JbImp.exe - please confirm that there are no legal > restrictions > > from the vendor of the .class files on doing a binary conversion. Note, > > that > > JbImp does not support extracting embedded .class files in Win32 Dlls. > The > > tool must be run on the original .class files on which JExeGen (or > similar > > tool) was run. > > Regarding the behaviour of System.loadLibrary, we follow the same > > semantics > > as the Win32 LoadLibrary API. If a path is specified then the DLL is > > looked > > for in that path. If no path is specified then the search heuristics of > > the > > Win32 LoadLibrary API is followed. The MSDN documentation for Win32 > > LoadLibrary API has these heuristics. > > > > -----Original Message----- > > From: vtkusers-admin@public.kitware.com > > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Bob Palank > > Sent: Tuesday, August 20, 2002 4:14 PM > > To: vtkusers@public.kitware.com > > Subject: [vtkusers] vtk and Java > > > > > > Running in Borland JBuilder 60 - Java under XP Pro > > > > 1. I Rebuild the project and the build succeeds. > > 2. Project runs fine when the lines below are commented out. > > // vtkConeSource cone = new vtkConeSource(); > > // cone.SetHeight( 3.0 ); > > // cone.SetRadius( 1.0 ); > > // cone.SetResolution( 10 ); > > 3. when // vtkConeSource cone = new vtkConeSource(); is uncommented, the > > build fails with the following error. > > "cone02.java": Error #: 300 : class vtkConeSource not found in class > > cone02.cone02 at line 27, column 6 > > > > 4. I thought the import vtk.*; and System.loadLibrary() should get me > > beyond > > this point, but I must be missing something! > > > > TIA > > Bob Palank > > > > Fortunately, I had this running before I did a system rebuild! > > The tutorial code follows. > > > > > > > > ============================================================= > > Java Code follows: > > // Source vtk Tutorial Step 1. > > > > // > > // This example creates a polygonal model of a cone, and then rendered > it > > to > > // the screen. It willrotate the cone 360 degrees and then exit. The > basic > > // setup of source -> mapper -> actor -> renderer -> renderwindow is > > // typical of most VTK programs. > > // > > > > package cone02; > > import vtk.*; // be sure to add a Path to d:\windows\system32 for > vtk.jar > > > > public class cone02 { > > static { > > System.loadLibrary("vtkCommonJava"); > > System.loadLibrary("vtkFilteringJava"); > > System.loadLibrary("vtkIOJava"); > > System.loadLibrary("vtkImagingJava"); > > System.loadLibrary("vtkGraphicsJava"); > > System.loadLibrary("vtkRenderingJava"); > > /* ====================================================== > > ======================================================= */ > > } > > > > public static void main(String[] args) { > > > > // vtkConeSource cone = new vtkConeSource(); > > // cone.SetHeight( 3.0 ); > > // cone.SetRadius( 1.0 ); > > // cone.SetResolution( 10 ); > > > > > > > > System.out.println("20Aug02 Pass 05"); > > > > } > > } > > > > _______________________________________________ > > 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 > > > > > > ------=_NextPart_000_0020_01C24F27.7D2C2880 > > Content-Type: text/html; > > charset="iso-8859-1" > > Content-Transfer-Encoding: quoted-printable > > > > > > > > > charset=3Diso-8859-1"> > > > > > >

Can anyone shed light on = > > this ?
I'm=20 > > attempting to use Microsoft's VJ# (java code)with vtk40 running under=20 > > XP.

> >

I downloaded the dlls from > = > > the vtk=20 > > website and did not rebuild them, nor did I rebuild the vtk.jar. = > >

MSDN=20 > > support asks :

Are the DLLs native Win32/COM = > > Dlls or are=20 > > they containing embedded .class &
resource files (Like is = > > possible using=20 > > the JExeGen tool of VJ6).

If the DLLs are native Win32 Dlls being > = > > > > accessed through JNI, then this is
not supported in Visual J#. You = > > will have=20 > > to move to using P/Invoke or COM
inter-op services of .NET = > > Fx.

If on=20 > > the other hand, these DLLs contain embedded .class/resource = > > files,
then you=20 > > need to convert the classes to managed assemblies before using in
VJ# > = > > app.=20 > > For this you can use the VJ# binary converter tool (JbImp.exe).
When > = > > using=20 > > JbImp.exe - please confirm that there are no legal restrictions
from > = > > the=20 > > vendor of the .class files on doing a binary conversion. Note, = > > that
JbImp=20 > > does not support extracting embedded .class files in Win32 Dlls. = > > The
tool=20 > > must be run on the original .class files on which JExeGen (or = > > similar
tool)=20 > > was run.
Regarding the behaviour of System.loadLibrary, we follow the > = > > same=20 > > semantics
as the Win32 LoadLibrary API. If a path is specified then = > > the DLL=20 > > is looked
for in that path. If no path is specified then the > search=20 > > heuristics of the
Win32 LoadLibrary API is followed. The MSDN = > > documentation=20 > > for Win32
LoadLibrary API has these > heuristics.

-----Original=20 > > Message-----
From: vtkusers-admin@public.kitware.com
[
> href=3D"mailto:vtkusers-admin@public.kitware.com"> > face=3D"Courier = > > New">mailto:vtkusers-admin@public.kitware.com
> face=3D"Courier New">]On Behalf Of Bob Palank
Sent: Tuesday, August = > > 20, 2002=20 > > 4:14 PM
To: vtkusers@public.kitware.com
Subject: [vtkusers] vtk = > > and=20 > > Java


Running in Borland JBuilder 60 - Java under XP = > > Pro

1. I=20 > > Rebuild the project and the build succeeds.
2. Project runs fine when > = > > the=20 > > lines below are commented out.
     // = > > vtkConeSource cone=20 > > =3D new vtkConeSource();
     // cone.SetHeight( > = > > 3.0=20 > > );
     // cone.SetRadius( 1.0=20 > > );
     // cone.SetResolution( 10 );
3. when = > > //=20 > > vtkConeSource cone =3D new vtkConeSource(); is uncommented, the
build > = > > fails=20 > > with the following error.
"cone02.java": Error #: 300 : class = > > vtkConeSource=20 > > not found in class
cone02.cone02 at line 27, column 6

4. I = > > thought the=20 > > import vtk.*; and System.loadLibrary() should get me beyond
this = > > point, but I=20 > > must be missing something!

TIA
  Bob = > > Palank

Fortunately, I=20 > > had this running before I did a system rebuild!
The tutorial code=20 > > > follows.



 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Java=20 > > Code=20 > > > follows:
//          = > > > ;            = > >            =20 > > Source vtk Tutorial Step 1.

//
// This example creates a = > > polygonal=20 > > model of a cone, and then rendered it to
// the screen. It willrotate > = > > the=20 > > cone 360 degrees and then exit. The basic
// setup of source -> = > > mapper=20 > > -> actor -> renderer -> renderwindow is
// typical of most = > > VTK=20 > > programs.
//

package cone02;
import vtk.*;  // be sure > = > > to add=20 > > a Path to d:\windows\system32 for vtk.jar

public class cone02 = > > {
 =20 > > static {
   =20 > > System.loadLibrary("vtkCommonJava");
   =20 > > System.loadLibrary("vtkFilteringJava");
   =20 > > System.loadLibrary("vtkIOJava");
   =20 > > System.loadLibrary("vtkImagingJava");
   =20 > > System.loadLibrary("vtkGraphicsJava");
   =20 > > System.loadLibrary("vtkRenderingJava");
    /*=20 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > =3D=3D=3D=3D
   =20 > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 > > D= > > =3D=3D=3D=3D=3D */
}

 =20 > > public static void main(String[] args) {

     > = > > //=20 > > vtkConeSource cone =3D new vtkConeSource();
     > = > > //=20 > > cone.SetHeight( 3.0 );
     // cone.SetRadius( = > > 1.0=20 > > );
     // cone.SetResolution( 10=20 > > );



    System.out.println("20Aug02  = > > Pass=20 > > 05");

 =20 > > }
}

_______________________________________________
This is > = > > the=20 > > private VTK discussion list.
Please keep messages on-topic. Check the > = > > FAQ at:=20 > > < > target=3D_blank> > face=3D"Courier = > > New">http://public.kitware.com/cgi-bin/vtkfaq > face=3D"Courier New">>
Follow this link to=20 > > subscribe/unsubscribe:
> href=3D"http://public.kitware.com/mailman/listinfo/vtkusers" = > > target=3D_blank> > face=3D"Courier = > > > New">http://public.kitware.com/mailman/listinfo/vtkusers > > > face=3D"Courier New">

> > > > ------=_NextPart_000_0020_01C24F27.7D2C2880-- > > > > > > > > -- __--__-- > > > > _______________________________________________ > > vtkusers mailing list > > vtkusers@public.kitware.com > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > End of vtkusers Digest > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers@public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From John Biddiscombe" Message-ID: <000b01c24f58$33bebdd0$0100a8c0@tigger> Andrew, + developers + users, I have checked in your MDI and SDI examples under the following tree \VTK\Examples\GUI\Win32\vtkMFC with \VTK\Examples\GUI\Win32\vtkMFC\vtkMDI \VTK\Examples\GUI\Win32\vtkMFC\vtkSDI as subdirs. Your project files didn't work on my setup due to heap error with MSVC = (/Zm option) and they have been removed. Instead, I have added = CMakeLists.txt files to the appropriate locations. This setup is tested = and produces working projects which compile and run under Visual Studio = 7 dot NET. If anyone reading can test under MSVC 6 and confirm that it works, it = would be appreciated. TABS were converted to 2x. Apologies for resulting style errors. = Your headers/disclaimers were replaced with the standard vtk text. Many thanks for your demos. On a pesonal note - as an experienced vtk = user, but new to MSVC I'd like to see demos with buttons and sliders etc = that show how to design a complex gui that integrates with vtk. (eg = control the glyph sizes with a slider &etc) - No doubt this is not = really a vtk issue but rather one of familiarising oneself with the = development environment. Thanks again John B From PS7278514B@ntu.edu.sg Thu Aug 29 14:11:44 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Thu, 29 Aug 2002 21:11:44 +0800 Subject: [vtkusers] something about the HeadBone file. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259BC@mail02.student.main.ntu.edu.sg> Dear All: I use the window NT based computer & VC6.0 compiler. I meet the problem when I convert the headBone.tcl to Cxx file. I add the file : vtkMarchingCubes.h, vtkMarchingCubes.cxx to the = project. When I bulid it. It give me a warning that vtkMarchingCubes.h something = wrong. Could anyone give me some suggest about it. The source code below: #include "vtkLight.h" #include "vtkMergePoints.h" #include "vtkVolume16Reader.h" #include "vtkMarchingCubes.h" #include "vtkVectorNorm.h" #include "vtkDataSetMapper.h" #include "vtkOutlineFilter.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" int main(int argc, char *argv[]) { vtkRenderer *ren1 =3D vtkRenderer::New(); // ren1->AddActor(actor); // ren1->SetBackground(0, 0, 1); // ren1->GetActiveCamera()->Zoom(1.5); vtkRenderWindow *renWin =3D vtkRenderWindow::New(); renWin->AddRenderer(ren1); // renWin->SetSize(500,500); vtkRenderWindowInteractor *iren =3D = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin);=09 vtkLight *lgt=3DvtkLight::New(); vtkMergePoints *locator=3DvtkMergePoints::New(); locator->SetDivisions(32,32,46); locator->RetainCellListsOff(); locator->SetNumberOfPointsPerBucket(2); locator->AutomaticOff(); vtkVolume16Reader *v16=3DvtkVolume16Reader::New(); v16->SetDataDimensions(64,64); v16->GetOutput()->SetOrigin(0,0,0); v16->SetDataByteOrderToLittleEndian(); v16->SetFilePrefix("c:/Vtkdata/Data/headsq/quarter"); v16->SetImageRange(1,93); v16->SetDataSpacing(3.2,3.2,1.5); vtkMarchingCubes *iso=3DvtkMarchingCubes::New(); iso->SetInput(v16->GetOutput()); iso->SetValue(0,1150); iso->ComputeGradientsOn(); iso->ComputeScalarsOff(); iso->SetLocator(locator); vtkVectorNorm *gradient=3DvtkVectorNorm::New(); gradient->SetInput(iso->GetOutput()); vtkDataSetMapper *isoMapper=3DvtkDataSetMapper::New(); isoMapper->SetInput(gradient->GetOutput()); isoMapper->ScalarVisibilityOn(); isoMapper->SetScalarRange(0,1200); isoMapper->ImmediateModeRenderingOn(); vtkActor *isoActor=3DvtkActor::New(); isoActor->SetMapper(isoMapper); isoActor->GetProperty()->SetColor(0,0,1); // set->isoProp(isoActor->GetProperty()); // eval->isoProp->SetColor(0,0,1); vtkOutlineFilter *outline=3DvtkOutlineFilter::New(); outline->SetInput(v16->GetOutput()); vtkPolyDataMapper *outlineMapper=3DvtkPolyDataMapper::New(); outlineMapper->SetInput(outline->GetOutput()); vtkActor *outlineActor=3DvtkActor::New(); outlineActor->SetMapper(outlineMapper); outlineActor->GetProperty()->SetColor(0,0,0); // set->outlineProp(outlineActor->GetProperty()); // eval->outlineProp->SetColor(0,0,0); // Add the actors to the renderer, set the background and size ren1->AddActor(outlineActor); ren1->AddActor(isoActor); ren1->SetBackground(1,1,1); ren1->AddLight(lgt); renWin->SetSize(250,250); ren1->SetBackground(0.1,0.2,0.4); // lgt->SetPosition(cam1->GetPosition()); // lgt->SetFocalPoint(cam1->GetFocalPoint()); // ren1->ResetCameraClippingRange(); // This starts the event loop and as a side effect causes an initial = render. renWin->Render(); iren->Start(); ren1->Delete(); renWin->Delete(); iren->Delete(); return 0; } the Cmake list is: PROJECT (headBone) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF (USE_VTK_FILE) LINK_LIBRARIES(=20 vtkCommon vtkFiltering vtkGraphics vtkHybrid vtkImaging vtkIO vtkjpeg vtkParallel vtkPng vtkRendering vtkzlib ) ADD_EXECUTABLE(headBone headBone.cxx) thanks very much. my e-mail address is : ps7278514b@ntu.edu.sg ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PS7278514B@ntu.edu.sg Thu Aug 29 14:13:17 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Thu, 29 Aug 2002 21:13:17 +0800 Subject: [vtkusers] something about the HeadBone file. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259BD@mail02.student.main.ntu.edu.sg> Dear All: I use the window NT based computer & VC6.0 compiler. I meet the problem when I convert the headBone.tcl to Cxx file. I add the file : vtkMarchingCubes.h, vtkMarchingCubes.cxx to the = project. When I bulid it. It give me a warning that vtkMarchingCubes.h something = wrong. Could anyone give me some suggest about it. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From Koning, P.J.H. de (LKEB)" Message-ID: 29-08-02 15:11:44, "#YAN RI AN#" wrote: vtkMarchingCubes is located in the vtkPatented library >Dear All: >I use the window NT based computer & VC6.0 compiler. > I meet the problem when I convert the headBone.tcl to Cxx file. >I add the file : vtkMarchingCubes.h, vtkMarchingCubes.cxx to the project. >When I bulid it. It give me a warning that vtkMarchingCubes.h something wrong. >Could anyone give me some suggest about it. > >The source code below: > #include "vtkLight.h" > #include "vtkMergePoints.h" > #include "vtkVolume16Reader.h" > #include "vtkMarchingCubes.h" > #include "vtkVectorNorm.h" > #include "vtkDataSetMapper.h" > #include "vtkOutlineFilter.h" > #include "vtkActor.h" > #include "vtkRenderer.h" > #include "vtkRenderWindow.h" > #include "vtkRenderWindowInteractor.h" > > int main(int argc, char *argv[]) > { > vtkRenderer *ren1 = vtkRenderer::New(); > // ren1->AddActor(actor); > // ren1->SetBackground(0, 0, 1); > // ren1->GetActiveCamera()->Zoom(1.5); > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > // renWin->SetSize(500,500); > > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > > > vtkLight *lgt=vtkLight::New(); > > > vtkMergePoints *locator=vtkMergePoints::New(); > locator->SetDivisions(32,32,46); > locator->RetainCellListsOff(); > locator->SetNumberOfPointsPerBucket(2); > locator->AutomaticOff(); > > vtkVolume16Reader *v16=vtkVolume16Reader::New(); > v16->SetDataDimensions(64,64); > v16->GetOutput()->SetOrigin(0,0,0); > v16->SetDataByteOrderToLittleEndian(); > v16->SetFilePrefix("c:/Vtkdata/Data/headsq/quarter"); > v16->SetImageRange(1,93); > v16->SetDataSpacing(3.2,3.2,1.5); > > vtkMarchingCubes *iso=vtkMarchingCubes::New(); > iso->SetInput(v16->GetOutput()); > iso->SetValue(0,1150); > iso->ComputeGradientsOn(); > iso->ComputeScalarsOff(); > iso->SetLocator(locator); > > vtkVectorNorm *gradient=vtkVectorNorm::New(); > gradient->SetInput(iso->GetOutput()); > > vtkDataSetMapper *isoMapper=vtkDataSetMapper::New(); > isoMapper->SetInput(gradient->GetOutput()); > isoMapper->ScalarVisibilityOn(); > isoMapper->SetScalarRange(0,1200); > isoMapper->ImmediateModeRenderingOn(); > > vtkActor *isoActor=vtkActor::New(); > isoActor->SetMapper(isoMapper); > isoActor->GetProperty()->SetColor(0,0,1); > > // set->isoProp(isoActor->GetProperty()); > // eval->isoProp->SetColor(0,0,1); > > vtkOutlineFilter *outline=vtkOutlineFilter::New(); > outline->SetInput(v16->GetOutput()); > vtkPolyDataMapper *outlineMapper=vtkPolyDataMapper::New(); > outlineMapper->SetInput(outline->GetOutput()); > > vtkActor *outlineActor=vtkActor::New(); > outlineActor->SetMapper(outlineMapper); > outlineActor->GetProperty()->SetColor(0,0,0); > // set->outlineProp(outlineActor->GetProperty()); > // eval->outlineProp->SetColor(0,0,0); > > // Add the actors to the renderer, set the background and size > > ren1->AddActor(outlineActor); > ren1->AddActor(isoActor); > ren1->SetBackground(1,1,1); > ren1->AddLight(lgt); > renWin->SetSize(250,250); > ren1->SetBackground(0.1,0.2,0.4); > > > // lgt->SetPosition(cam1->GetPosition()); > // lgt->SetFocalPoint(cam1->GetFocalPoint()); > > // ren1->ResetCameraClippingRange(); > > // This starts the event loop and as a side effect causes an initial render. > renWin->Render(); > iren->Start(); > > ren1->Delete(); > renWin->Delete(); > iren->Delete(); > return 0; > } > the Cmake list is: > PROJECT (headBone) > > INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) > IF (USE_VTK_FILE) > INCLUDE(${USE_VTK_FILE}) > ENDIF (USE_VTK_FILE) > > LINK_LIBRARIES( > vtkCommon > vtkFiltering > vtkGraphics > vtkHybrid > vtkImaging > vtkIO > vtkjpeg > vtkParallel > vtkPng > vtkRendering > vtkzlib > ) > > ADD_EXECUTABLE(headBone headBone.cxx) > > thanks very much. > my e-mail address is : > ps7278514b@ntu.edu.sg >*************************************** >* Best Regards >* Yan Rian (Research Student) >* Email : ps7278514b@ntu.edu.sg >* Lab : AMRC Research Centre >* Nanyang Technological University >* Singapore >*************************************** > > >_______________________________________________ >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 tapadmin@swbell.net Thu Aug 29 16:03:14 2002 From: tapadmin@swbell.net (Tom Parker) Date: Thu, 29 Aug 2002 10:03:14 -0500 Subject: [vtkusers] MFC CWnd and VTK In-Reply-To: <000b01c24f58$33bebdd0$0100a8c0@tigger> Message-ID: Hello All, These demos work for me, I still get one memory leak using the vtkSDI example but that's a blessing considering the hundreds in the original demos. I have tracked down this memory address before and the problem seems to be in the vtkOpenGLPolyDataMapper.cxx class. I found the threads in the mail archives relating to this earlier and moved the vtk classes and destructors from the doc to the view but it didn't help. ... Detected memory leaks! Dumping objects -> {2216} normal block at 0x03787320, 5200 bytes long. Data: < Building> 00 00 00 00 00 00 00 00 42 75 69 6C 64 69 6E 67 Object dump complete. ... I must confess to having written some huge commercial apps using MFC, I'll add some complexity to these demos (sliders/buttons/splitters/doc archives) when I get a chance and send them to John. Thanks again Andrew, Tom > -----Original Message----- > From: vtkusers-admin@public.kitware.com > [mailto:vtkusers-admin@public.kitware.com]On Behalf Of John Biddiscombe > Sent: Thursday, August 29, 2002 7:33 AM > To: list-vtk-developers; vtkusers@public.kitware.com; > a.maclean@acfr.usyd.edu.au > Subject: Re: [vtkusers] MFC CWnd and VTK > > > Andrew, + developers + users, > > I have checked in your MDI and SDI examples under the following tree > > \VTK\Examples\GUI\Win32\vtkMFC > > with > \VTK\Examples\GUI\Win32\vtkMFC\vtkMDI > \VTK\Examples\GUI\Win32\vtkMFC\vtkSDI > as subdirs. > > Your project files didn't work on my setup due to heap error with > MSVC (/Zm option) and they have been removed. Instead, I have > added CMakeLists.txt files to the appropriate locations. This > setup is tested and produces working projects which compile and > run under Visual Studio 7 dot NET. > > If anyone reading can test under MSVC 6 and confirm that it > works, it would be appreciated. > > TABS were converted to 2x. Apologies for resulting style > errors. Your headers/disclaimers were replaced with the standard vtk text. > > Many thanks for your demos. On a pesonal note - as an experienced > vtk user, but new to MSVC I'd like to see demos with buttons and > sliders etc that show how to design a complex gui that integrates > with vtk. (eg control the glyph sizes with a slider &etc) - No > doubt this is not really a vtk issue but rather one of > familiarising oneself with the development environment. > > Thanks again > > John B > > > _______________________________________________ > 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 jeff@cdnorthamerica.com Thu Aug 29 16:14:53 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Thu, 29 Aug 2002 11:14:53 -0400 Subject: [vtkusers] VTK Java - problem with vtkPanel References: Message-ID: <3D6E3A6D.9020506@cdnorthamerica.com> I recall some time ago that NT4 had problems with java1.3.1, but I don't know if they were fixed with jdk1.4? Mabey look through the archives to see the discussions? -Jeff anast.jm@pg.com wrote: >I've been having a problem with vtkPanel crashing (other vtk/Java seems to be >working fine). I'm using jre 1.3.1_02 on WinNT 4sp6 VC6 CVS build of 8/26/2002. >This has been happening for many months now and I keep hoping that upgrades etc >will make it go away but to no avail. I'm not sure where to turn to fix >this....is it vtkPanel, the JVM or ntdll.dll that has the problem. Any help >appreciated....john > >error - the rendered window with the cone opens fine but the app crashes shortly >there after >=========================================================================== >P:\>java SimpleVTK > >An unexpected exception has been detected in native code outside the VM. >Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f67616 >Function name=RtlLeaveCriticalSection >Library=C:\WINNT\System32\ntdll.dll > >Current Java thread: > at vtk.vtkPanel.UnLock(Native Method) > at vtk.vtkPanel.Render(vtkPanel.java:103) > at vtk.vtkPanel.paint(vtkPanel.java:116) > at sun.awt.RepaintArea.paint(Unknown Source) > at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source) > at java.awt.Component.dispatchEventImpl(Unknown Source) > at java.awt.Component.dispatchEvent(Unknown Source) > at java.awt.EventQueue.dispatchEvent(Unknown Source) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source) > > at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) > at java.awt.EventDispatchThread.pumpEvents(Unknown Source) > at java.awt.EventDispatchThread.run(Unknown Source) > >Dynamic libraries: >0x00400000 - 0x00405000 C:\WINNT\system32\java.exe >0x77F60000 - 0x77FBE000 C:\WINNT\System32\ntdll.dll >0x77DC0000 - 0x77DFF000 C:\WINNT\system32\ADVAPI32.dll >0x77F00000 - 0x77F5E000 C:\WINNT\system32\KERNEL32.dll >0x77E70000 - 0x77EC5000 C:\WINNT\system32\USER32.dll >0x77ED0000 - 0x77EFC000 C:\WINNT\system32\GDI32.dll >0x77E10000 - 0x77E67000 C:\WINNT\system32\RPCRT4.dll >0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll >0x6D420000 - 0x6D4F0000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hotspot\jvm.dll >0x77FD0000 - 0x77FFA000 C:\WINNT\system32\WINMM.dll >0x6BC00000 - 0x6BC10000 C:\WINNT\system32\SMNT40.dll >0x69F00000 - 0x69F14000 C:\WINNT\system32\sxgb.dll >0x71DC0000 - 0x71DCA000 C:\WINNT\system32\PSAPI.DLL >0x76AC0000 - 0x76ADD000 C:\WINNT\system32\IMAGEHLP.dll >0x10000000 - 0x10009000 C:\WINNT\system32\SXGBSYS.DLL >0x6D220000 - 0x6D227000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hpi.dll >0x6D3B0000 - 0x6D3BD000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\verify.dll >0x6D250000 - 0x6D266000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\java.dll >0x6D3C0000 - 0x6D3CD000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\zip.dll >0x6D020000 - 0x6D129000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\awt.dll >0x77C00000 - 0x77C18000 C:\WINNT\system32\WINSPOOL.DRV >0x76AB0000 - 0x76AB5000 C:\WINNT\system32\IMM32.dll >0x77B20000 - 0x77BD7000 C:\WINNT\system32\ole32.dll >0x6D1E0000 - 0x6D21B000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\fontmanager.dll >0x090B0000 - 0x09128000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkCommonJava.dll >0x09130000 - 0x092AF000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkCommon.dll > >0x780C0000 - 0x78121000 C:\WINNT\system32\MSVCP60.dll >0x092B0000 - 0x092CC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkFilteringJava.dll >0x092D0000 - 0x09333000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkFiltering.dll >0x09340000 - 0x09362000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkIOJava.dll > >0x09370000 - 0x0950A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkIO.dll >0x09510000 - 0x0952A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkpng.dll >0x09530000 - 0x0953F000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkzlib.dll >0x09540000 - 0x0955A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkjpeg.dll >0x09560000 - 0x0959E000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtktiff.dll >0x095A0000 - 0x095BB000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkexpat.dll >0x095C0000 - 0x095FC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkImagingJava.dll >0x09600000 - 0x09806000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkImaging.dll >0x09810000 - 0x09881000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkGraphicsJava.dll >0x09890000 - 0x09B76000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkGraphics.dll >0x09B80000 - 0x09BD8000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkRenderingJava.dll >0x09BE0000 - 0x09DEC000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkRendering.dll >0x09DF0000 - 0x09E69000 C:\WINNT\system32\vli.dll >0x755B0000 - 0x75678000 C:\WINNT\system32\OPENGL32.dll >0x76C80000 - 0x76CA2000 C:\WINNT\system32\GLU32.dll >0x77160000 - 0x77167000 C:\WINNT\system32\DCIMAN32.dll >0x09E70000 - 0x09E7A000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkftgl.dll >0x09E80000 - 0x09EBB000 P:\WinCVS\vtk40\VTKbin\bin\Release\vtkfreetype.dll >0x6D270000 - 0x6D275000 P:\Wincvs\Java13102\JRE\bin\jawt.dll >0x77130000 - 0x77156000 C:\WINNT\system32\ddraw.dll >0x1C000000 - 0x1C182000 C:\WINNT\system32\wcgicd.dll > >Local Time = Wed Aug 28 12:38:32 2002 >Elapsed Time = 5 ># ># The exception above was detected in native code outside the VM ># ># Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode) ># ># An error report file has been saved as hs_err_pid62.log. ># Please refer to the file for further information. ># > >_______________________________________________ >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 vladan@mt.net.mk Thu Aug 29 16:29:43 2002 From: vladan@mt.net.mk (Vladan Andonovic) Date: Thu, 29 Aug 2002 17:29:43 +0200 Subject: [vtkusers] Problem with Tcl Message-ID: <002d01c24f71$2abe2b80$5accdc3e@v4z7w9> This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C24F81.A996C100 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: quoted-printable Dear all, I use the window ME based computer & VC6.0 compiler & Wish83 & vtk 2.0. I meet the problem when I try to start Tcl files from VTK. When I start for example Cone.tcl I receive the window with "Error in = start script" : invalid command name "vtk Render" while executing ...... . I have read = all instructions from CD for installation and I have vtk\vtkbin\vtktcl = with vtktcl.dll, vtktcl.lib and all *.obj files in "obj" subdirect... What does "Remember to move this file into your system area " stand for = given in installation ? I have put vtktcl.dll in c:\windows\system but = without success. Best regards. Vladan ------=_NextPart_000_0028_01C24F81.A996C100 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
Dear all,
 
I use the window  ME based computer & VC6.0 compiler & = Wish83=20 & vtk 2.0.
I  meet the problem when I try to start Tcl files from = VTK.
When I start for example Cone.tcl I receive the window with "Error = in start=20 script" :
invalid command name "vtk Render" while executing ...... . I have = read all=20 instructions from CD for installation and I have vtk\vtkbin\vtktcl = with =20 vtktcl.dll, vtktcl.lib and all *.obj files in "obj" subdirect...
What does "Remember to move this file into your system area " = stand=20 for given in installation ? I have put vtktcl.dll in c:\windows\system = but=20 without success.
 
Best regards.
Vladan
 
------=_NextPart_000_0028_01C24F81.A996C100-- From stefan.bruckner@chello.at Thu Aug 29 16:56:23 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: Thu, 29 Aug 2002 17:56:23 +0200 Subject: [vtkusers] changing transfer functions interactively ? Message-ID: <000201c24f74$9fc42df0$bc9fbad4@SID> Hi, I have written an interactive transfer function editor in JAVA which allows you to define the function graphically. If you're interested I can mail you the source code. -- Stefan Bruckner -----Urspr=FCngliche Nachricht----- Von: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] Im Auftrag von Steffen Oeltze Gesendet: Donnerstag, 29. August 2002 13:13 An: VTK users Betreff: [vtkusers] changing transfer functions interactively ? Dear VTK-users, I've written a program that renders a volume using ray-casting. I'd like to enable the user to change the transfer functions for opacity and color interactively by=20 using sliders. Has anybody an idea or a source code sample ? Or is there maybe a better way than using sliders ? Regards, Steffen _______________________________________________ This is the private VTK discussion list.=20 Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From stefan.bruckner@chello.at Thu Aug 29 16:59:51 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: Thu, 29 Aug 2002 17:59:51 +0200 Subject: [vtkusers] Re: Re: Re: Re: Re: Building VTK with Kylix bc++ Message-ID: <000301c24f75$1bc46960$bc9fbad4@SID> > Whats ABI? ABI means Application Binary Interface defines, among other things, rules for name decoration. Kylix bc++ and gcc do not have compatible ABIs, which basically means that you cannot link a library produced by gcc with your Kylix programm and vice versa. Note that is is only true for C++, you can link C libraries with you Kylix programs. This is the reason why I tried recompiling VTK with bc++. You can also refer to the Borland newsgroups for further information on this isse (the Kylix documentation doesn't even mention it!). Also, I believe that is only true for the C++ compiler, the Delphi compiler does not have these problems. > Could you please elaborate? as a BCB6 user who's been working with vtk > for many years, I can't see why Kylix is going to > be ruled out. What > problems do you refer to Well, first it turned out to be rather difficult (IMO impossible) to configure the current version if cmake to produce correct makefiles for the Borland tools. Secondly, some source code changes were needed because of non-unix like behaviour of the compiler (although this might be useful for porting windows apps to linux). Thirdly, the compiled libraries still have some problem with memory allocation, which I could not figure out yet. I have spent two weeks now evaluating the use of Kylix in an upcoming project which also uses VTK and lots of other existing source code. From my point of view it is more feasable to use another platform for the GUI, which has proven to work well in combination with VTK (like QT). I do think Kylix is a very good RAD tool, but for what we want to do it seems that it just isn't ready yet. Maybe Kylix 4 will be ... However, if you try to get VTK to work with Kylix please stay in touch with me. Maybe you'll be more sucessful than I was. -- Regards, Stefan Bruckner -----Urspr=FCngliche Nachricht----- Von: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com] Im Auftrag von John Biddiscombe Gesendet: Donnerstag, 29. August 2002 12:06 An: Stefan Bruckner; vtkusers@public.kitware.com Betreff: Re: [vtkusers] Re: Re: Re: Re: Building VTK with Kylix bc++ > However, since several other issues have arisen I have found that > integrating VTK and Kylix is probably not feasable at the moment ... Could you please elaborate? as a BCB6 user who's been working with vtk for many years, I can't see why Kylix is going to be ruled out. What problems do you refer to > For other users who want to try this, I suggest to wait till bc++ and > gcc produce ABI compatible libraries (which might take some time) ... Whats ABI? thanks JB _______________________________________________ This is the private VTK discussion list.=20 Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From daniele.bianchini@menci.com Thu Aug 29 17:35:13 2002 From: daniele.bianchini@menci.com (Daniele Bianchini) Date: Thu, 29 Aug 2002 18:35:13 +0200 Subject: [vtkusers] vtkPolyData Editing Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C24F8A.CFF38780 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit I need to delete some cells from a vtkPolyData structure. I tried to use vtkPolyData::DeleteCell() function, but when I render the vtkPolyData deleted cells are still visible. How can I do? Thank you very much for any help. Daniele. ------=_NextPart_000_0005_01C24F8A.CFF38780 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
I need = to=20 delete some cells from a vtkPolyData structure. I tried to use=20 vtkPolyData::DeleteCell() function, but when I render the vtkPolyData = deleted=20 cells are still visible.
 
How = can I=20 do?
 
Thank = you very much=20 for any help.
 
Daniele.
------=_NextPart_000_0005_01C24F8A.CFF38780-- From andreas.loesch@gmx.net Thu Aug 29 17:33:08 2002 From: andreas.loesch@gmx.net (Andreas Loesch) Date: Thu, 29 Aug 2002 18:33:08 +0200 Subject: [vtkusers] RE: changing transfer functions interactively In-Reply-To: <20020829114702.4CE7B1AB30@public.kitware.com> Message-ID: Dear Steffen, I wouldn't use Sliders because you might need more fixpoints for the function. I am planning something similar by giving the user a 2D-graph widget where the transfer function can be manipulated. So let the user draw the function scalar->opacity. Andreas > > I've written a program that renders a volume using > ray-casting. I'd like > to enable the user > to change the transfer functions for opacity and color > interactively by > using sliders. Has > anybody an idea or a source code sample ? Or is there maybe a > better way > than using > sliders ? > > Regards, > Steffen > From krw@viz-solutions.com Thu Aug 29 18:19:53 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 29 Aug 2002 10:19:53 -0700 Subject: [vtkusers] vtkPolyData Editing In-Reply-To: Message-ID: <5.1.0.14.0.20020829101833.02827e60@mail.viz-solutions.com> >I need to delete some cells from a vtkPolyData structure. I tried to use >vtkPolyData::DeleteCell() function, but when I render the vtkPolyData >deleted cells are still visible. > >How can I do? I'm not familiar with the DeleteCell, but did you try calling Modified() on the PolyData before updating? Kevin. From neri@hobbes.nrl.navy.mil Thu Aug 29 18:23:29 2002 From: neri@hobbes.nrl.navy.mil (Jesse Neri) Date: Thu, 29 Aug 2002 13:23:29 -0400 Subject: [vtkusers] Problem with Tcl In-Reply-To: <002d01c24f71$2abe2b80$5accdc3e@v4z7w9> Message-ID: <000e01c24f80$cad28e40$fa9efa84@nrl.navy.mil> This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C24F5F.43C274E0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit I'm not sure the OpenGL functionality for the Render is available in ME. I've only run under NT 4 and WIn 2K, where OpenGL is available. Also, Render is a command sent to the render window. The fact that it waits until then to bomb indicates that the basic installation is probably OK. BTW, vtk is now up to 4.0, so 2.0 is pretty out of date. Jess Neri -----Original Message----- From: vtkusers-admin@public.kitware.com [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Vladan Andonovic Sent: Thursday, August 29, 2002 11:30 AM To: vtkusers@public.kitware.com Subject: [vtkusers] Problem with Tcl Dear all, I use the window ME based computer & VC6.0 compiler & Wish83 & vtk 2.0. I meet the problem when I try to start Tcl files from VTK. When I start for example Cone.tcl I receive the window with "Error in start script" : invalid command name "vtk Render" while executing ...... . I have read all instructions from CD for installation and I have vtk\vtkbin\vtktcl with vtktcl.dll, vtktcl.lib and all *.obj files in "obj" subdirect... What does "Remember to move this file into your system area " stand for given in installation ? I have put vtktcl.dll in c:\windows\system but without success. Best regards. Vladan ------=_NextPart_000_000F_01C24F5F.43C274E0 Content-Type: text/html; charset="koi8-r" Content-Transfer-Encoding: quoted-printable
I'm not=20 sure the OpenGL functionality for the Render is available in ME. I've = only=20 run
under=20 NT 4 and WIn 2K, where OpenGL is available. Also, Render is a command = sent=20 to
the=20 render window.  The fact that it waits until then to bomb indicates = that=20 the basic
installation is probably = OK.
 
BTW,=20 vtk is now up to 4.0, so 2.0 is pretty out of date.
 
Jess=20 Neri
-----Original Message-----
From:=20 vtkusers-admin@public.kitware.com=20 [mailto:vtkusers-admin@public.kitware.com]On Behalf Of Vladan=20 Andonovic
Sent: Thursday, August 29, 2002 11:30 = AM
To:=20 vtkusers@public.kitware.com
Subject: [vtkusers] Problem with = Tcl

Dear all,
 
I use the window  ME based computer & VC6.0 compiler = &=20 Wish83 & vtk 2.0.
I  meet the problem when I try to start Tcl files from = VTK.
When I start for example Cone.tcl I receive the window with = "Error in=20 start script" :
invalid command name "vtk Render" while executing ...... . I have = read=20 all instructions from CD for installation and I have vtk\vtkbin\vtktcl = with  vtktcl.dll, vtktcl.lib and all *.obj files in "obj"=20 subdirect...
What does "Remember to move this file into your system area = " stand=20 for given in installation ? I have put vtktcl.dll in c:\windows\system = but=20 without success.
 
Best regards.
Vladan
 
------=_NextPart_000_000F_01C24F5F.43C274E0-- From stefan.bruckner@chello.at Thu Aug 29 19:13:47 2002 From: stefan.bruckner@chello.at (Stefan Bruckner) Date: Thu, 29 Aug 2002 20:13:47 +0200 Subject: [vtkusers] Transfer function editor Message-ID: <000001c24f87$d1ad4cd0$bc9fbad4@SID> This is a multi-part message in MIME format. ------=_NextPart_000_0001_01C24F98.95361CD0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi! I'll put the whole demo app for the transfer function editor up on a website, just give me a day ... -- Stefan Bruckner ------=_NextPart_000_0001_01C24F98.95361CD0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Nachricht
Hi!
 
I'll = put the whole=20 demo app for the transfer function editor up on a website, just give me = a day=20 ...
 
--
Stefan = Bruckner
------=_NextPart_000_0001_01C24F98.95361CD0-- From dmpd@onetel.net.uk Thu Aug 29 19:35:06 2002 From: dmpd@onetel.net.uk (D.M.P.Davies) Date: Thu, 29 Aug 2002 19:35:06 +0100 Subject: [vtkusers] Is clipping really that hard in VTK??? References: <3D6D6D69.5010703@xs4all.nl> Message-ID: <3D6E695A.A1E66747@onetel.net.uk> --------------6297B13A1ACA6DDBF70BA256 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Bertwim I've just done exactly this in my tcl/tk general purpose display package using vtk3.2. Steps were as follows : ### Define a suitable implicit function to cut unstructured grid##### vtkCylinder $CC $CC SetCenter 0 0 0 $CC SetRadius 100 vtkSphere $CS $CS SetCenter 0 0 0 $CS SetRadius 100 vtkPlane $CP $CP SetOrigin 0 0 0 $CP SetNormal -1 -1 .5 #CN set imp $CC set imp $CP ############### Now Clip The Unstuctured Grid Boundary (i.e after vtkGeometryFilter) ############## vtkClipPolyData $CN $CN SetInput [$boundary GetOutput] $CN SetClipFunction $imp $CN GenerateClipScalarsOff $CN SetValue 0.5 $CN Update ###### Also for in front of implicit function##### vtkClipPolyData $Cn $Cn SetInput [$boundary GetOutput] $Cn SetClipFunction $imp $Cn GenerateClipScalarsOff $Cn SetInsideOut 1 $Cn SetValue 0.5 $Cn Update ########## Now Cut The Full Structure to get better cut mesh ############## vtkCutter $CE; #Generate cut lines $CE SetInput [$thresh GetOutput] $CE SetCutFunction $imp $CE GenerateCutScalarsOff $CE SetValue 0 0.5 ######## Now Append cutter mesh to front and back clipped Polys and map them ############ vtkAppendPolyData $AP $AP AddInput [$CN GetOutput] $AP AddInput [$CE GetOutput] vtkDataSetMapper $CL $CL SetInput [$AP GetOutput] $CL SetLookupTable vTK_LUT($LUT(no)) $CL SetScalarRange $LUT($LUT(no),bot) $LUT($LUT(no),top) $CL SetScalarModeToUsePointData vtkAppendPolyData $Ap $Ap AddInput [$Cn GetOutput] $Ap AddInput [$CE GetOutput] # vtkDataSetMapper $Cl $Cl SetInput [$Ap GetOutput] $Cl SetLookupTable vTK_LUT($LUT(no)) $Cl SetScalarRange $LUT($LUT(no),bot) $LUT($LUT(no),top) $Cl SetScalarModeToUsePointData ###################Actors For Front and Back################################### vtkActor $CA $CA SetMapper $CL $CA SetProperty property(front) vtkActor $Ca $Ca SetMapper $Cl $Ca SetProperty property(back) ##################Finally Render the actors ############################# Renderer($widget) AddActor $CA Renderer($widget) AddActor $Ca It Works Well for me with dials in control of the implicit funtion positioning running under a vtkTkRenderWidget's $widget. Bertwim van Beest wrote: > I simply don't understand how to do the following: > > I have a certain UnstructuredGrid, with one data value per cell. > , > Bertwim > > _______________________________________________ --------------6297B13A1ACA6DDBF70BA256 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Bertwim

I've just done exactly this in my  tcl/tk general purpose display package using vtk3.2.

Steps were as follows :

###  Define a suitable implicit function to cut unstructured grid#####
vtkCylinder $CC
  $CC SetCenter  0 0 0
  $CC SetRadius 100

vtkSphere $CS
  $CS SetCenter  0 0 0
  $CS SetRadius 100

vtkPlane $CP
    $CP  SetOrigin 0 0 0
    $CP SetNormal -1 -1 .5
#CN

set imp $CC
set imp $CP

############### Now Clip The Unstuctured Grid Boundary (i.e after vtkGeometryFilter) ##############
vtkClipPolyData $CN
    $CN  SetInput [$boundary GetOutput]
    $CN  SetClipFunction $imp
    $CN  GenerateClipScalarsOff
    $CN  SetValue 0.5
$CN Update
###### Also for in front of implicit function#####
vtkClipPolyData $Cn
    $Cn  SetInput [$boundary GetOutput]
    $Cn  SetClipFunction $imp
    $Cn  GenerateClipScalarsOff
    $Cn  SetInsideOut 1
    $Cn  SetValue 0.5
$Cn Update
########## Now Cut The Full Structure to get better cut mesh ##############

vtkCutter $CE; #Generate cut lines
   $CE SetInput [$thresh GetOutput]
   $CE SetCutFunction $imp
  $CE GenerateCutScalarsOff
  $CE SetValue 0 0.5

######## Now Append cutter mesh  to front and back clipped Polys and map them ############
vtkAppendPolyData $AP
  $AP AddInput [$CN GetOutput]
  $AP AddInput [$CE GetOutput]

vtkDataSetMapper $CL
$CL SetInput [$AP GetOutput]
$CL SetLookupTable  vTK_LUT($LUT(no))
$CL SetScalarRange $LUT($LUT(no),bot)  $LUT($LUT(no),top)
$CL SetScalarModeToUsePointData

vtkAppendPolyData $Ap
  $Ap AddInput [$Cn GetOutput]
  $Ap AddInput [$CE GetOutput]
#
vtkDataSetMapper $Cl
$Cl SetInput [$Ap GetOutput]
$Cl SetLookupTable  vTK_LUT($LUT(no))
$Cl SetScalarRange $LUT($LUT(no),bot)  $LUT($LUT(no),top)
$Cl SetScalarModeToUsePointData
###################Actors For Front and Back###################################
vtkActor $CA
    $CA SetMapper $CL
    $CA SetProperty property(front)
vtkActor $Ca
    $Ca SetMapper $Cl
    $Ca SetProperty property(back)
##################Finally Render the actors #############################
Renderer($widget) AddActor $CA
Renderer($widget) AddActor $Ca

It Works Well for me with dials in control of the implicit funtion positioning running under a  vtkTkRenderWidget's $widget.
 

Bertwim van Beest wrote:

I simply don't understand how to do the following:

I have a certain UnstructuredGrid, with one data value per cell.
,
Bertwim

_______________________________________________

--------------6297B13A1ACA6DDBF70BA256-- From dmpd@onetel.net.uk Thu Aug 29 19:43:14 2002 From: dmpd@onetel.net.uk (D.M.P.Davies) Date: Thu, 29 Aug 2002 19:43:14 +0100 Subject: [vtkusers] vtkPolyData Editing References: Message-ID: <3D6E6B42.C095F4F7@onetel.net.uk> --------------3B61665B75E653D9AF9C91ED Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Daniele Bianchini wrote: > I need to delete some cells from a vtkPolyData structure. I tried to > use vtkPolyData::DeleteCell() function, but when I render the > vtkPolyData deleted cells are still visible. I could only do this by giving cell some (vtkScalar) values - vtk3.2. Then I used vtkThreshold on these values. If a wanted to delete a cell I made its value suitably high to fail the threshold test. This works for unsturctured grids going through a vtkGeometryFilter for the boundary polygons. Dave Davies --------------3B61665B75E653D9AF9C91ED Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  

Daniele Bianchini wrote:

 I need to delete some cells from a vtkPolyData structure. I tried to use vtkPolyData::DeleteCell() function, but when I render the vtkPolyData deleted cells are still visible.


I could only do this by giving cell some  (vtkScalar) values - vtk3.2. Then I used vtkThreshold on these values.

If a wanted to delete a cell I made its value suitably high to fail the threshold test. This works for unsturctured grids going through a vtkGeometryFilter for the boundary polygons.

Dave Davies --------------3B61665B75E653D9AF9C91ED-- From a.trum@teraport.de Thu Aug 29 20:07:16 2002 From: a.trum@teraport.de (Alexander Trum) Date: Thu, 29 Aug 2002 21:07:16 +0200 Subject: [vtkusers] Bugs in vtk 4.0 Message-ID: <3D6E70E4.416EA2E@teraport.de> Hello, We are using VTK 4.0 and we have found some bugs. We have no CVS write access therefore i am writing this mail in the hope somebody will fix it and check the changes in. ================================================================================ 1. Bug in vtkIVWriter.cxx ================================================================================ change -------------------------------------------------------------------------------- if (colors) { fprintf(fp,"\tMaterial {\n"); fprintf(fp,"\t\tdiffuseColor [\n"); fprintf(fp, "\t\t\t"); for (i=0; iGetNumberOfTuples(); i++) { unsigned char *rgba; rgba = colors->GetPointer(4*i); fprintf(fp, "%g %g %g, ", rgba[0]/255.0f, rgba[1]/255.0f, rgba[2]/255.0f); if (!((i+1)%2)) { fprintf(fp, "\n\t\t\t"); } } fprintf(fp, "\n\t\t]\n"); fprintf(fp,"\t}\n"); } colors->Delete(); -------------------------------------------------------------------------------- to -------------------------------------------------------------------------------- if (colors) { fprintf(fp,"\tMaterial {\n"); fprintf(fp,"\t\tdiffuseColor [\n"); fprintf(fp, "\t\t\t"); for (i=0; iGetNumberOfTuples(); i++) { unsigned char *rgba; rgba = colors->GetPointer(4*i); fprintf(fp, "%g %g %g, ", rgba[0]/255.0f, rgba[1]/255.0f, rgba[2]/255.0f); if (!((i+1)%2)) { fprintf(fp, "\n\t\t\t"); } } fprintf(fp, "\n\t\t]\n"); fprintf(fp,"\t}\n"); colors->Delete(); } -------------------------------------------------------------------------------- because otherwise the program will crash if colors == NULL ================================================================================ 2. Bug in vtkTriangleFilter.cxx ================================================================================ change the line 121 from -------------------------------------------------------------------------------- if ( this->PassVerts ) -------------------------------------------------------------------------------- to -------------------------------------------------------------------------------- if ( this->PassLines ) -------------------------------------------------------------------------------- because otherwise lines will only be passed if verts are passed! ================================================================================ 3. Bug in vtkOBBTree.cxx ================================================================================ change the lines 1908 and 1909 from -------------------------------------------------------------------------------- delete OBBstackA; delete OBBstackB; -------------------------------------------------------------------------------- to -------------------------------------------------------------------------------- delete[] OBBstackA; delete[] OBBstackB; -------------------------------------------------------------------------------- because otherwise there will be memory leaks! ================================================================================ 4. Bug in vtkDecimatePro.cxx ================================================================================ change -------------------------------------------------------------------------------- static float ComputeEdgeError(float x[3], float x1[3], float x2[3]) { float projDist = vtkLine::DistanceToLine(x, x1, x2); float edgeLength = vtkMath::Distance2BetweenPoints(x1,x2); return (projDist < edgeLength ? projDist : edgeLength); } -------------------------------------------------------------------------------- to -------------------------------------------------------------------------------- static float ComputeEdgeError(float x[3], float x1[3], float x2[3]) { float projDist = vtkLine::DistanceToLine(x, x1, x2); float edgeLength = vtkMath::Distance2BetweenPoints(x1,x2); float e = (projDist < edgeLength ? projDist : edgeLength); if (e < 0.0) e = 0.0; return e; } -------------------------------------------------------------------------------- because the implementation of vtkLine::DistanceToLine returns sometimes negative values!!! Perhaps it is much more better to fix this error in vtkLine::DistanceToLine! Effects: Only a few polygons will be kept after decimation of some large polygonal models if preserve topology is off and accumulate error is on!!! Thanks a lot, Alexander -- Alexander Trum Dipl.-Math. (FH) Senior Software Developer Engineering IT Consulting Teraport GmbH Phone +49 89 651086 721 Fax +49 89 651086 701 Mobile +49 173 38 25 490 mailto:alexander.trum@teraport.de http://www.teraport.de From mcabral@lsi.usp.br Thu Aug 29 21:27:19 2002 From: mcabral@lsi.usp.br (Marcio Cabral) Date: Thu, 29 Aug 2002 17:27:19 -0300 Subject: [vtkusers] VolumePro1000 Example Message-ID: <02b201c24f9a$79208f10$32c8000a@tylerdurden> Hi there, Where can I find C++ examples using VolumePro and vtk? Thank's in advance for any reply. Regards, _________________________ Marcio Calixto Cabral Coordenador de Projetos - CAVERNA Digital Universidade de Sao Paulo From tarjeik@chemcon.no Thu Aug 29 22:44:30 2002 From: tarjeik@chemcon.no (Tarjei Knapstad) Date: 29 Aug 2002 23:44:30 +0200 Subject: [vtkusers] Aligning a cylinder between two points Message-ID: <1030657470.27723.248.camel@cc-intern01> Hi. I've got a bit of a tranformation/rotation problem at hand. I want to draw a cylinder where the top and bottom are aligned to two points, p1=(x0, y0, z0) and p2=(x1, y1, z1), something like: --------- p1 -> | | <- p2 --------- I'm using a vtkCylinderSource, vtkPolyDataMapper, and a vtkActor I'm a bit new to 3D visualization in Vtk, so have me excused if this is completely trivial, but my attempts so far have miserably failed in one way or another. Could anyone give me a solution/hints to how to obtain this in Vtk? Regards, Tarjei From krw@viz-solutions.com Thu Aug 29 23:27:01 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 29 Aug 2002 15:27:01 -0700 Subject: [vtkusers] Aligning a cylinder between two points In-Reply-To: <1030657470.27723.248.camel@cc-intern01> Message-ID: <5.1.0.14.0.20020829145125.028348f0@mail.viz-solutions.com> >I've got a bit of a tranformation/rotation problem at hand. I want to >draw a cylinder where the top and bottom are aligned to two points, >p1=(x0, y0, z0) and p2=(x1, y1, z1), something like: > > --------- > p1 -> | | <- p2 > --------- > >I'm using a vtkCylinderSource, vtkPolyDataMapper, and a vtkActor lets say x = x1-x0 y = y1-y0 z = z1-z0 1. Set the height of the cylinder to be sqrt(x^2 + y ^2 + z^2) using vtkCylinderSource->SetHeight 3. Cross the vector (x,y,z) with the default axis of the cylinder (0,1,0) to get the axis to rotate about, which would be (z,0,-x) 4. Get the angle between the two vectors (using the cosine law where one vector is 0,1,0): sin(angle) = y / sqrt(x^2 + y^2 + z^2) 5. Create a vtkTransform object 6. Apply a translation to the vtkTransform using Translate() to (x0 + x/2,y0 + y/2,z0 + z/2) 7. Apply a rotation to the transform using RotateWXYZ with the angle from 4 and the vector from 3 8. Create a vtkTransformFilter and apply the vtkTransform from 5 to it. 9. Pass the vtkCylinderSource through the transform filter. I'm no geometry expert, that may not be the most efficient way to do things, but I think it will get the job done for you, unless I've made a stupid math error. If you look at the examples for vtkTransformFilter, I'll bet you find some code doing something similar to what you want to do. Kevin. From John Biddiscombe" Message-ID: <000c01c24fae$b56082a0$0100a8c0@tigger> If you can't be bothered to do the sums to work out the end points, = cheat... use a vtkLineSource. Put the ends where you want them. Then run the = output through a tube filter! JB ----- Original Message -----=20 From: "Tarjei Knapstad" To: "VTK Users" Sent: Thursday, August 29, 2002 10:44 PM Subject: [vtkusers] Aligning a cylinder between two points > Hi. > I've got a bit of a tranformation/rotation problem at hand. I want to > draw a cylinder where the top and bottom are aligned to two points, > p1=3D(x0, y0, z0) and p2=3D(x1, y1, z1), something like: >=20 > --------- > p1 -> | | <- p2 > ---------=20 >=20 > I'm using a vtkCylinderSource, vtkPolyDataMapper, and a vtkActor >=20 > I'm a bit new to 3D visualization in Vtk, so have me excused if this = is > completely trivial, but my attempts so far have miserably failed in = one > way or another. Could anyone give me a solution/hints to how to obtain > this in Vtk? >=20 > Regards, > Tarjei >=20 > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at: = > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From bwvb@xs4all.nl Fri Aug 30 00:45:21 2002 From: bwvb@xs4all.nl (Bertwim van Beest) Date: Fri, 30 Aug 2002 01:45:21 +0200 Subject: [vtkusers] Is clipping really that hard in VTK??? References: <3D6D6D69.5010703@xs4all.nl> <3D6E695A.A1E66747@onetel.net.uk> Message-ID: <3D6EB211.9020307@xs4all.nl> Hi, thanks for your reply. I will experiment with it. One question though: in your code I see / "SetScalarModeToUsePointData/ " etc. In my case, I have cell data. I have seen functions that convert cell data to point data (and vice versa), but from what I have seen these functions are useless in the sense that data is interpolated/averaged such that no sensible information is left. What I need is clipping a (unstructured) grid, but keeping the cell data alive. Does you code adress this problem? Kind regards, Bertwim D.M.P.Davies wrote: > *Bertwim* > > *I've just done exactly this in my tcl/tk general purpose display > package using vtk3.2.* > > *Steps were as follows :* > > *### Define a suitable implicit function to cut unstructured grid#####* > /vtkCylinder $CC/ > / $CC SetCenter 0 0 0/ > / $CC SetRadius 100/ > > /vtkSphere $CS/ > / $CS SetCenter 0 0 0/ > / $CS SetRadius 100/ > > /vtkPlane $CP/ > / $CP SetOrigin 0 0 0/ > / $CP SetNormal -1 -1 .5/ > /#CN/ > > /set imp $CC/ > /set imp $C/P > > *############### Now Clip The Unstuctured Grid Boundary (i.e after > vtkGeometryFilter) ##############* > /vtkClipPolyData $CN/ > / $CN SetInput [$boundary GetOutput]/ > / $CN SetClipFunction $imp/ > / $CN GenerateClipScalarsOff/ > / $CN SetValue 0.5/ > /$CN Update/ > */###### Also for in front of implicit function#####/* > /vtkClipPolyData $Cn/ > / $Cn SetInput [$boundary GetOutput]/ > / $Cn SetClipFunction $imp/ > / $Cn GenerateClipScalarsOff/ > / $Cn SetInsideOut 1/ > / $Cn SetValue 0.5/ > /$Cn Update/ > *########## Now Cut The Full Structure to get better cut mesh > ##############* > > /vtkCutter $CE; #Generate cut lines/ > / $CE SetInput [$thresh GetOutput]/ > / $CE SetCutFunction $imp/ > / $CE GenerateCutScalarsOff/ > / $CE SetValue 0 0.5/ > > *######## Now Append cutter mesh to front and back clipped Polys and > map them ############* > /vtkAppendPolyData $AP/ > / $AP AddInput [$CN GetOutput]/ > / $AP AddInput [$CE GetOutput]/ > > /vtkDataSetMapper $CL/ > /$CL SetInput [$AP GetOutput]/ > /$CL SetLookupTable vTK_LUT($LUT(no))/ > /$CL SetScalarRange $LUT($LUT(no),bot) $LUT($LUT(no),top)/ > /$CL SetScalarModeToUsePointData/ > > /vtkAppendPolyData $Ap/ > / $Ap AddInput [$Cn GetOutput]/ > / $Ap AddInput [$CE GetOutput]/ > /#/ > /vtkDataSetMapper $Cl/ > /$Cl SetInput [$Ap GetOutput]/ > /$Cl SetLookupTable vTK_LUT($LUT(no))/ > /$Cl SetScalarRange $LUT($LUT(no),bot) $LUT($LUT(no),top)/ > /$Cl SetScalarModeToUsePointData/ > *###################Actors For Front and > Back###################################* > /vtkActor $CA/ > / $CA SetMapper $CL/ > / $CA SetProperty property(front)/ > /vtkActor $Ca/ > / $Ca SetMapper $Cl/ > / $Ca SetProperty property(back)/ > *##################Finally Render the actors > #############################* > /Renderer($widget) AddActor $CA/ > /Renderer($widget) AddActor $Ca/ > > */It Works Well for me with dials in control of the implicit funtion > positioning running under a vtkTkRenderWidget's $widget./* > > > Bertwim van Beest wrote: > >> I simply don't understand how to do the following: >> >> I have a certain UnstructuredGrid, with one data value per cell. >> , >> Bertwim >> >> _______________________________________________ >> From PS7278514B@ntu.edu.sg Fri Aug 30 03:22:58 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Fri, 30 Aug 2002 10:22:58 +0800 Subject: [vtkusers] help: about vtkPatented.lib Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259C2@mail02.student.main.ntu.edu.sg> Dear All: I tryed to find the vtkPatented.lib file but failed. Now I only got 11 library files such as: VtkCommon.lib, vtkFiltering.lib, vtkGraphics.lib, vtkHybrid.lib, vtkImaging.lib, vtkIO.lib, vtkjpeg.lib, vtkParallel.lib, vtkPng.lib, vtkRendering.lib, vtkzlib.lib, for VC6.0 compiler. Could any master send or show me where download the vtkPatented.lib file = to me or another extra. Library files & header files for MSVC to me? Thank you very much. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From PreethishK@geind.ge.com Fri Aug 30 09:24:32 2002 From: PreethishK@geind.ge.com (Kumar, Preethish M (MED)) Date: Fri, 30 Aug 2002 13:54:32 +0530 Subject: [vtkusers] java+irix runtime error Message-ID: <10B96F9B1453D61191B400508B650D940255F658@ban03xbindge> This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C24FFE.AA90F7B0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable hi, i got following error while running regression.java.this error seem = to come for cxx file also.plz help =20 Xlib: extension "GLX" missing on display "3.70.202.16:0.0". Xlib: extension "GLX" missing on display "3.70.202.16:0.0". Xlib: extension "GLX" missing on display "3.70.202.16:0.0". Xlib: extension "GLX" missing on display "3.70.202.16:0.0". ERROR: In vtkOpenGLRenderWindow.cxx, line 178 vtkOpenGLRenderWindow (0x1021d220): Could not find a decent visual X Error of failed request: BadValue (integer parameter out of range = for operati on) Major opcode of failed request: 78 (X_CreateColormap) Value in failed request: 0x0 Serial number of failed request: 6 Current serial number in output stream: 11 =20 with regards,=20 Preethish Kumar M=20 extn-3189=20 Don't ever save anything for a special occasion.=20 Every day you're alive is a special occasion=20 _____ =20 = Upgrade Outlook=AE - Add COLOR to your Emails =09 Outlook=AE is a registered trademark of Microsoft Corporation=09 "THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR = THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this=20 communication is strictly Prohibited.=20 If you have received this message by error, please notify us=20 immediately, return the original mail to the sender and delete the=20 message from your system." ------_=_NextPart_001_01C24FFE.AA90F7B0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable

hi,
   i got following = error while=20 running regression.java.this error seem to come for cxx file also.plz=20 help
 
Xlib:  extension "GLX" missing on display=20 "3.70.202.16:0.0".
Xlib:  extension "GLX" missing on display=20 "3.70.202.16:0.0".
Xlib:  extension "GLX" missing on display=20 "3.70.202.16:0.0".
Xlib:  extension "GLX" missing on display=20 "3.70.202.16:0.0".
ERROR: In vtkOpenGLRenderWindow.cxx, line=20 178
vtkOpenGLRenderWindow (0x1021d220): Could not find a decent = visual

X Error of failed request:  BadValue (integer parameter = out of=20 range for operati
on)

  Major opcode of failed = request:  78=20 (X_CreateColormap)
  Value in failed request:  = 0x0
  Serial=20 number of failed request:  6
  Current serial number in = output=20 stream:  11
 

with regards,

         &n= bsp;=20 Preethish Kumar M
         &n= bsp;=20 extn-3189
Don't ever save=20 anything for a special occasion.
 Every day you're alive is a special = occasion



Outlook=AE is a registered trademark of Microsoft=20 Corporation
Upgrade=20 Outlook=AE - Add COLOR to=20 your Emails  


"THIS E-MAIL MESSAGE ALONG WITH ANY = ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain = confidential and privileged information.

If the reader of this message is not = the intended recipient,

you are notified that any = dissemination, distribution or copy of this

communication is strictly Prohibited. =

If you have received this message by = error, please notify us

immediately, return the original mail = to the sender and delete the

message from your system."


------_=_NextPart_001_01C24FFE.AA90F7B0-- From a.trum@teraport.de Fri Aug 30 09:34:48 2002 From: a.trum@teraport.de (Alexander Trum) Date: Fri, 30 Aug 2002 10:34:48 +0200 Subject: [vtkusers] Python question Message-ID: <3D6F2E28.F933EBDE@teraport.de> Hello, I have a python application using vtk. In this application i fork another application away. The forked application produces some output on stdout. What i want to do is to redirect this output in a log window of the main application. How can i do this in python? Thanks a lot Alexander -- Alexander Trum Dipl.-Math. (FH) Senior Software Developer Engineering IT Consulting Teraport GmbH Phone +49 89 651086 721 Fax +49 89 651086 701 Mobile +49 173 38 25 490 mailto:alexander.trum@teraport.de http://www.teraport.de From Steffen.Oeltze@Student.Uni-Magdeburg.DE Fri Aug 30 09:59:00 2002 From: Steffen.Oeltze@Student.Uni-Magdeburg.DE (Steffen Oeltze) Date: Fri, 30 Aug 2002 10:59:00 +0200 Subject: [vtkusers] help: about vtkPatented.lib References: <0C42D409AF10B1428A0B026FB160A5BE4259C2@mail02.student.main.ntu.edu.sg> Message-ID: <3D6F33D4.50707@student.uni-magdeburg.de> Hi Yan, you will have to rebuild VTK with the Patented-Option "on". I used CMake for that purpose which worked fine. Steffen #YAN RI AN# wrote: >Dear All: >I tryed to find the vtkPatented.lib file but failed. >Now I only got 11 library files such as: >VtkCommon.lib, vtkFiltering.lib, vtkGraphics.lib, vtkHybrid.lib, >vtkImaging.lib, vtkIO.lib, vtkjpeg.lib, vtkParallel.lib, >vtkPng.lib, vtkRendering.lib, vtkzlib.lib, for VC6.0 compiler. >Could any master send or show me where download the vtkPatented.lib file to me or another extra. Library files & header files for MSVC to me? >Thank you very much. >*************************************** >* Best Regards >* Yan Rian (Research Student) >* Email : ps7278514b@ntu.edu.sg >* Lab : AMRC Research Centre >* Nanyang Technological University >* Singapore >*************************************** > > >_______________________________________________ >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 zlei@cisunix.unh.edu Fri Aug 30 14:34:59 2002 From: zlei@cisunix.unh.edu (Zhaopeng Lei) Date: Fri, 30 Aug 2002 09:34:59 -0400 (EDT) Subject: [vtkusers] Problem: unresolved external symbol _wWinMain@16 Message-ID: vc6 I have included opengl32.lib glaux.lib vtkjpeg.lib vtkzlib.lib vtkParallel.lib vtkRendering.lib vtkIO.lib vtkImaging.lib vtkHybrid.lib vtkGraphics.lib vtkFiltering.lib vtkCommon.lib vtkpng.lib in the link tab but when I build all, I got following error message: SVCRTD.lib(wcrtexew.obj) : error LNK2001: unresolved external symbol _wWinMain@16 I also tried what support.microsoft.com said, setting the Entry point in the Output category of the Link tab in the Project Settings dialog box to wWinMainCRTStartup. It still doesn't work. Can you tell me how to solve this problem? Thanks in advance. Regards, - Zhaopeng :-) -_____ ^ _____- -__\ [|] /__- -_\|/_- /M\ From PS7278514B@ntu.edu.sg Fri Aug 30 14:35:20 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Fri, 30 Aug 2002 21:35:20 +0800 Subject: [vtkusers] RE: still some problem about vtkMarchingCubes. Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259C6@mail02.student.main.ntu.edu.sg> Dear steffen: I use the window NT based computer & VC6.0 compiler. I executeed the vtkPatented.dll from the new VTK data and copy it to C:\vtk40\lib\vtk\ I also modified the file:c:\vtk40\include\vtk\CMakeCache.txt VTK_USE_PATENTED:BOOL=3DON Then I use cmake to bulid my headBone.cpp. the CMakeLists.txt write: PROJECT (headBone) INCLUDE (${CMAKE_ROOT}/Modules/FindVTK.cmake) IF (USE_VTK_FILE) INCLUDE(${USE_VTK_FILE}) ENDIF (USE_VTK_FILE) LINK_LIBRARIES(=20 vtkCommon vtkFiltering vtkGraphics vtkHybrid vtkImaging vtkIO vtkjpeg vtkParallel vtkPng vtkRendering vtkzlib vtkPatented ) ADD_EXECUTABLE(headBone headBone.cpp) After Executed the workspace file, the warning message is: --------------------Configuration: headBone - Win32 = Debug-------------------- Linking... headBone.obj : error LNK2001: unresolved external symbol = "__declspec(dllimport) public: void __thiscall = vtkMarchingCubes::SetLocator(class vtkPointLocator *)" = (__imp_?SetLocator@vtkMarchingCubes@@QAEXPAVvtkPointLocator@@@Z) headBone.obj : error LNK2001: unresolved external symbol = "__declspec(dllimport) public: void __thiscall = vtkMarchingCubes::SetValue(int,float)" = (__imp_?SetValue@vtkMarchingCubes@@QAEXHM@Z) headBone.obj : error LNK2001: unresolved external symbol = "__declspec(dllimport) public: static class vtkMarchingCubes * __cdecl = vtkMarchingCubes::New(void)" (__imp_?New@vtkMarchingCubes@@SAPAV1@XZ) Debug/headBone.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. ALL_BUILD - 4 error(s), 0 warning(s) I do not know if I must build the Patent DLL file and added in. Cuold you give me some suggest. Thank you very much ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From andresba@hotmail.com Fri Aug 30 15:39:36 2002 From: andresba@hotmail.com (Andres Barrera) Date: Fri, 30 Aug 2002 09:39:36 -0500 Subject: [vtkusers] Clipping question Message-ID: Hello list, I have a vtkPolyDataNormals and a clip function vtkSphere. I used ClipPolyData to get clip and rest surfaces from the PolyDataNormals. That is ok. PolyDataNormals clipped PolyDataNormals \ ClipPolyData / clipfunction(sphere)/ \ rest PolyDataNormals Now, there is any way of getting the two different parts of my “cutter” sphere? Thanks in advance Andres _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From will.schroeder@kitware.com Fri Aug 30 15:48:26 2002 From: will.schroeder@kitware.com (Will Schroeder) Date: Fri, 30 Aug 2002 10:48:26 -0400 Subject: [vtkusers] VTK Course at IEEE Visualization 2002 in Boston Message-ID: <5.1.0.14.0.20020830104617.02c3ba18@pop.nycap.rr.com> --=====================_160451386==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Hi Folks- This is an announcement for a VTK Course at the IEEE Visualization Conference in Boston on October 27 at special conference rates. See http://www.kitware.com/products/ieeevis2002vtkcourse.html for the announcement. Will ------------------------------ Kitware is offering a special 1-day VTK course at the IEEE Visualization 2002 Conference (http://vis.computer.org/vis2002/) on Sunday October 27, 2002. The course will cover the fundamentals of VTK 4.0 including system organization; the visualization pipeline; key filters and how to use them; surface, image, and volume rendering; and methods to interface your data to VTK. The course will be taught hands-on, students are encouraged to bring a laptop computer and work through the exercises during class. Attendees will receive course notes and a VTK User's Guide. This course is offered at a special conference price of $350 for the day ($250 for students). To register for this course, please contact Kitware at kitware@kitware.com, or via phone at 518-371-3971. The attached registration form (http://www.kitware.com/products/IeeeRegistrationForm.pdf) may also be completed and faxed to 518-371-3971. Payment may be via credit card (MasterCard, Visa, or American Express) or check. Contact Kitware for information regarding payment via purchase order. Please register early, seating is limited. Come to the course and then enjoy the conference! IEEE Visualization is the premier visualization conference in the world today. This year the conference will be held in Boston, MA, USA from October 27 through November 1. At the conference you can meet many of the developers and companies creating visualization technology. A special 3-day exhibition (Kitware is a Gold Supporter) offers the chance to see and try the latest in visualization technology. Two special mini-conferences on volume visualization (VolVis 2002 http://www.cs.sunysb.edu/~volvis02/) and information visualization (InfoVis 2002 http://www.infovis.org/infovis2002/) are also offered that same week. --=====================_160451386==_.ALT Content-Type: text/html; charset="us-ascii" Hi Folks-

This is an announcement for a VTK Course at the IEEE Visualization Conference in Boston on October 27 at special conference rates. See http://www.kitware.com/products/ieeevis2002vtkcourse.html for the announcement.

Will
------------------------------

Kitware is offering a special 1-day VTK course at the IEEE Visualization 2002 Conference (http://vis.computer.org/vis2002/) on Sunday October 27, 2002. The course will cover the fundamentals of VTK 4.0 including system organization; the visualization pipeline; key filters and how to use them; surface, image, and volume rendering; and methods to interface your data to VTK. The course will be taught hands-on, students are encouraged to bring a laptop computer and work through the exercises during class. Attendees will receive course notes and a VTK User's Guide. This course is offered at a special conference price of $350 for the day ($250 for students).

To register for this course, please contact Kitware at kitware@kitware.com, or via phone at 518-371-3971. The attached registration form (http://www.kitware.com/products/IeeeRegistrationForm.pdf) may also be completed and faxed to 518-371-3971. Payment may be via credit card (MasterCard, Visa, or American Express) or check. Contact Kitware for information regarding payment via purchase order. Please register early, seating is limited.

Come to the course and then enjoy the conference! IEEE Visualization is the premier visualization conference in the world today. This year the conference will be held in Boston, MA, USA from October 27 through November 1. At the conference you can meet many of the developers and companies creating visualization technology. A special 3-day exhibition (Kitware is a Gold Supporter) offers the chance to see and try the latest in visualization technology. Two special mini-conferences on volume visualization (VolVis 2002 http://www.cs.sunysb.edu/~volvis02/) and information visualization (InfoVis 2002 http://www.infovis.org/infovis2002/) are also offered that same week.
--=====================_160451386==_.ALT-- From jjomier@cs.unc.edu Fri Aug 30 19:26:47 2002 From: jjomier@cs.unc.edu (Julien Jomier) Date: Fri, 30 Aug 2002 11:26:47 -0700 Subject: [vtkusers] VTK with FLTK/Qt problem Message-ID: <001601c25052$cd0a4d60$5d691398@pissarro> Hi all, I'm having a strange problem using VTK with FLTK (same problem with Qt) I have a simple window with two VTK displays in it. Each display shows a different VTK actor. The first time the window is shown everything looks fine. but when I do a refresh of one of the windows, the actor is not displayed anymore and the other display turns black (background color) too. The strange thing is that when the two displays (vtkRenderWindow) have the same actor, everything is fine. I'm using VisualC++/Window2K with VTK4 Thanks for your help Julien From John Biddiscombe" I've been playing with wxWindows and want to evaluate it for vtk usage. = I've had a look at the wxVTKWindow class by D.Marshall & B.Todd. at=20 http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html but it doesn't seem to be working under vtk4 and it's GPL'd which makes = it off limits to me anyway. Before I start work on a new wxRenderWindow - is there anyone out there = who's already done it and can save me some time? thanks JB From dgobbi@imaging.robarts.ca Fri Aug 30 18:28:13 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Fri, 30 Aug 2002 13:28:13 -0400 (EDT) Subject: [vtkusers] wxWindows In-Reply-To: <031a01c25048$88c4a010$0100a8c0@tigger> Message-ID: Hi John, The file VTK/Wrapping/Python/vtk/wx/wxVTKRenderWindow.py does the wx/VTK connection under Python and it works fine. There is no need to create a special wxRenderWindow class, you should be able to call renWin->SetWindowId(wxWin->GetHandle()); to connect the windows. The only tricky thing is that the wxWindow has to be mapped to the screen before the first Render is called. - David -- David Gobbi, MSc dgobbi@imaging.robarts.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Fri, 30 Aug 2002, John Biddiscombe wrote: > I've been playing with wxWindows and want to evaluate it for vtk usage. I've had a look at the wxVTKWindow class by D.Marshall & B.Todd. at > http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html > but it doesn't seem to be working under vtk4 and it's GPL'd which makes it off limits to me anyway. > > Before I start work on a new wxRenderWindow - is there anyone out there who's already done it and can save me some time? > > 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 John Biddiscombe" Message-ID: <000d01c2504d$5e4b6b20$0100a8c0@tigger> David, > There is no need to create a special wxRenderWindow class, > you should be able to call > renWin->SetWindowId(wxWin->GetHandle()); > to connect the windows. OK. I had planned on subclassing wxWindow and then doing = renWin->SetWindowId(this->GetHandle()); somewhere in the initialization. = I have so much legacy code for doing little things to the window (from = my Borland renderwindow classes) that I had hoped to create a whole = family of wxRenderWindows. One thing that may cause trouble is that I have options for turning = on/off stereo rendering (glasses etc) etc, but these require the window = to be destroyed and recreated. Is there a convenient hook into = DestroyHandle and CreateHandle under wx? > The only tricky thing is that the wxWindow has to be mapped > to the screen before the first Render is called. Noted. I'll remember this. I'm still only playing with wx right now, but = when I get there.... thanks JB From dgobbi@imaging.robarts.ca Fri Aug 30 19:02:05 2002 From: dgobbi@imaging.robarts.ca (David Gobbi) Date: Fri, 30 Aug 2002 14:02:05 -0400 (EDT) Subject: [vtkusers] wxWindows In-Reply-To: <000d01c2504d$5e4b6b20$0100a8c0@tigger> Message-ID: On Fri, 30 Aug 2002, John Biddiscombe wrote: > One thing that may cause trouble is that I have options for turning on/off stereo rendering (glasses etc) etc, but these require the window to be destroyed and recreated. Is there a convenient hook into DestroyHandle and CreateHandle under wx? A cheap trick is to just set the EyeAngle to zero when you want to turn off stereo. Otherwise, yes, you will have to destroy and recreate both the wxWindow and the vtkRenderWindow every time you switch. With some vendors' OpenGL drivers you can create a StereoCapableWindow and just use StereoRenderOn()/Off() to switch, but some other drivers will spew garbage if you do a non-stereo render inside a stereo context. > > The only tricky thing is that the wxWindow has to be mapped > > to the screen before the first Render is called. > > Noted. I'll remember this. I'm still only playing with wx right now, but when I get there.... There might also be some funky stuff you need to keep the wxWindow 'erase' from causing flicker, but this might just be for the GTK version of wxWindows. It should all be in the python script. - David From lisong@vrac.iastate.edu Fri Aug 30 20:43:58 2002 From: lisong@vrac.iastate.edu (Song Li) Date: Fri, 30 Aug 2002 14:43:58 -0500 Subject: [vtkusers] parallel library References: <3D6D4924.75676143@vrac.iastate.edu> <3D6DFDF3.6030300@cdnorthamerica.com> Message-ID: <3D6FCAFD.DF1FE765@vrac.iastate.edu> --------------8CE2E1D9AD8FE090B48FE2B5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Thanks, Jeff. It's odd because I am using mpich...I don't think there is any option related to lam mpi. Do you know how can I don't link lam mpi ???? Thanks! Jeff Lee wrote: > It looks like you linked libvtkParallel with lam mpi and you need > another lam lib to resolve these references. > -Jeff > > Song Li wrote: > > > Hi, Gurus, > > > > When I compile my application on linux, if use "-lvtkParallel" during > > linking, the screen output looks like below. Does > > anybody know what should I do to make so many phrase known by the > > compiler ? Thanks a lot!!!! > > > > Error message: > > ------------------------------------------------------------------------- > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_append' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rw' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_deregister_object' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `nsend' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `dsend' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_trpoint' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamepub' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `mrev4' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `blktype' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_kexit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_free' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksigretry' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamedel' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getnodeid' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rpdoom' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_next' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnameget' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getrent' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getntype' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksigsetretry' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `argvfree' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_errorstr' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getroute' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getnodes' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kenter' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_ksignal' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_register_objects' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfselect' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lpattach' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ldogetlinks' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_free' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_delete' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kexit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `nrecv' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `microsleep' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_init' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfrecv' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `show_help' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `next_prime' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `stoi' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kinit' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_accept_tmout' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_open_srv_inet_stm' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `_kio' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ttime' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_find' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_insert' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_init' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_insert' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfiprobe' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_delete' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_set_buf_size' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_expand' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `al_find' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `getorigin' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrnamesweep' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `_lam_signal' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `sfh_sock_open_clt_inet_stm' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rpstate' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `tprintf' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `kpause' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `ah_next' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `rev8' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `argvadd' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `bfiselect' > > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined > > reference to `lam_rtrstore' > > > >-- > >Song Li > >VRAC(Virtual Reality Application Center),Iowa State University > >Email: lisong@vrac.iastate.edu > >Homepage: http://www.vrac.iastate.edu/~lison > > -- Song Li VRAC(Virtual Reality Application Center),Iowa State University Email: lisong@vrac.iastate.edu Homepage: http://www.vrac.iastate.edu/~lisong --------------8CE2E1D9AD8FE090B48FE2B5 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit  Thanks, Jeff.
  It's odd because I am using mpich...I don't think there is any option related to lam mpi. Do you know how can I don't link lam mpi ???? Thanks!
 

Jeff Lee wrote:

It looks like you linked libvtkParallel with lam mpi and you need
another lam lib to resolve these references.
-Jeff

Song Li wrote:

> Hi, Gurus,
>
> When I compile my application on linux, if use "-lvtkParallel" during
> linking,  the screen output looks like below. Does
> anybody know what should I do to make so many phrase known by the
> compiler ? Thanks a lot!!!!
>
> Error message:
> -------------------------------------------------------------------------
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_append'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `rw'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_deregister_object'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `nsend'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `dsend'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_trpoint'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_rtrnamepub'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `mrev4'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `blktype'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_kexit'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_free'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_ksigretry'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_rtrnamedel'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getnodeid'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `rpdoom'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_next'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_rtrnameget'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getrent'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getntype'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_ksigsetretry'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `argvfree'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_errorstr'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getroute'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getnodes'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `kenter'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_ksignal'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_register_objects'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `bfselect'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lpattach'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ldogetlinks'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_free'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_delete'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `kexit'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `nrecv'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `microsleep'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_init'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `bfrecv'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `show_help'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `next_prime'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `stoi'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `kinit'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `sfh_sock_accept_tmout'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `sfh_sock_open_srv_inet_stm'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `_kio'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ttime'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_find'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_insert'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_init'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_insert'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `bfiprobe'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_delete'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `sfh_sock_set_buf_size'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_expand'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `al_find'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `getorigin'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_rtrnamesweep'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `_lam_signal'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `sfh_sock_open_clt_inet_stm'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `rpstate'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `tprintf'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `kpause'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `ah_next'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `rev8'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `argvadd'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `bfiselect'
> /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined
> reference to `lam_rtrstore'
>
>--
>Song Li
>VRAC(Virtual Reality Application Center),Iowa State University
>Email: lisong@vrac.iastate.edu
>Homepage: http://www.vrac.iastate.edu/~lison <http://www.vrac.iastate.edu/%7Elisong>
>

-- 
Song Li
VRAC(Virtual Reality Application Center),Iowa State University
Email: lisong@vrac.iastate.edu
Homepage: http://www.vrac.iastate.edu/~lisong
  --------------8CE2E1D9AD8FE090B48FE2B5-- From jeff@cdnorthamerica.com Fri Aug 30 20:50:33 2002 From: jeff@cdnorthamerica.com (Jeff Lee) Date: Fri, 30 Aug 2002 15:50:33 -0400 Subject: [vtkusers] parallel library References: <3D6D4924.75676143@vrac.iastate.edu> <3D6DFDF3.6030300@cdnorthamerica.com> <3D6FCAFD.DF1FE765@vrac.iastate.edu> Message-ID: <3D6FCC89.4010902@cdnorthamerica.com> I was just guessing that it was lam because of the lam_xxx undefined references. In CMakeCache.txt it has the location if the mpi libraries that it will link with. With newer releases of mpich you will need to link an extra lib for profiling (something like libmpich.a and libpmpich.a). You should verify that you are indeed using mpich. Good luck -Jeff Song Li wrote: > Thanks, Jeff. > It's odd because I am using mpich...I don't think there is any > option related to lam mpi. Do you know how can I don't link lam mpi > ???? Thanks! > > > Jeff Lee wrote: > >> It looks like you linked libvtkParallel with lam mpi and you need >> another lam lib to resolve these references. >> -Jeff >> >> Song Li wrote: >> >> > Hi, Gurus, >> > >> > When I compile my application on linux, if use "-lvtkParallel" during >> > linking, the screen output looks like below. Does >> > anybody know what should I do to make so many phrase known by the >> > compiler ? Thanks a lot!!!! >> > >> > Error message: >> > >> ------------------------------------------------------------------------- >> >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_append' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `rw' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_deregister_object' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `nsend' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `dsend' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_trpoint' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_rtrnamepub' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `mrev4' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `blktype' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_kexit' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_free' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_ksigretry' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_rtrnamedel' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getnodeid' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `rpdoom' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_next' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_rtrnameget' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getrent' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getntype' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_ksigsetretry' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `argvfree' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_errorstr' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getroute' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getnodes' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `kenter' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_ksignal' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_register_objects' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `bfselect' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lpattach' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ldogetlinks' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_free' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_delete' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `kexit' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `nrecv' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `microsleep' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_init' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `bfrecv' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `show_help' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `next_prime' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `stoi' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `kinit' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `sfh_sock_accept_tmout' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `sfh_sock_open_srv_inet_stm' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `_kio' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ttime' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_find' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_insert' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_init' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_insert' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `bfiprobe' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_delete' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `sfh_sock_set_buf_size' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_expand' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `al_find' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `getorigin' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_rtrnamesweep' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `_lam_signal' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `sfh_sock_open_clt_inet_stm' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `rpstate' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `tprintf' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `kpause' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `ah_next' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `rev8' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `argvadd' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `bfiselect' >> > /home/users/lisong/vtk/linux/VTK/bin/libvtkParallel.so: undefined >> > reference to `lam_rtrstore' >> > >> >-- >> >Song Li >> >VRAC(Virtual Reality Application Center),Iowa State University >> >Email: lisong@vrac.iastate.edu >> >Homepage: http://www.vrac.iastate.edu/~lison >> >> >> > >> >-- >Song Li >VRAC(Virtual Reality Application Center),Iowa State University >Email: lisong@vrac.iastate.edu >Homepage: http://www.vrac.iastate.edu/~lisong > From blezek@crd.ge.com Fri Aug 30 21:11:13 2002 From: blezek@crd.ge.com (Blezek, Daniel J (Research)) Date: Fri, 30 Aug 2002 16:11:13 -0400 Subject: [vtkusers] New feature: vtkImageDataToTkPhoto Message-ID: Hi all, I won't go into the rational behind this feature, rather I'll just expalain. I've added new Tcl and Python(Tk) commands into VTK. The command is called vtkImageDataToTkPhoto. Usage: vtkImageDataToTkPhoto image photo z image - in Tcl image is a vtkImageData, in Python it is the address string image.__this__[:-2] photo - the name of the photo widget returned from [image create photo] or Tkinter.PhotoImage() z - the z slice to take from the image data The command only handles 1,3, & 4 component unsigned char vtkImageData types. For python, I added a class called vtkTkPhotoImage as a wrapper class around this command. Since the Python code took a bit more "hack"ing, you can use vktTkPhotoImage wherever you need a Tkinter.PhotoImage. vtkTkPhotoImage has a new method PutImageData that takes a vtkImageData and a z slice, effectively hiding the call to vtkImageDataToTkPhoto. Please let me know if you have questions or comments, -dan -- Daniel Blezek, Ph.D. blezek@crd.ge.com Visualization and Computer Vision Lab, Imaging Technologies GE Global Research Center From blezek@crd.ge.com Fri Aug 30 21:13:52 2002 From: blezek@crd.ge.com (Blezek, Daniel J (Research)) Date: Fri, 30 Aug 2002 16:13:52 -0400 Subject: [vtkusers] New feature: vtkImageDataToTkPhoto Message-ID: Ooops, forgot the example code. -dan -- Daniel Blezek, Ph.D. blezek@crd.ge.com Visualization and Computer Vision Lab, Imaging Technologies GE Global Research Center > -----Original Message----- > From: Blezek, Daniel J (Research) > Sent: Friday, August 30, 2002 4:11 PM > To: vtkusers@public.kitware.com > Subject: [vtkusers] New feature: vtkImageDataToTkPhoto > > > Hi all, > > I won't go into the rational behind this feature, rather > I'll just expalain. > > I've added new Tcl and Python(Tk) commands into VTK. The > command is called vtkImageDataToTkPhoto. > > Usage: vtkImageDataToTkPhoto image photo z > image - in Tcl image is a vtkImageData, in Python it is the > address string image.__this__[:-2] > photo - the name of the photo widget returned from [image > create photo] or Tkinter.PhotoImage() > z - the z slice to take from the image data > > The command only handles 1,3, & 4 component unsigned char > vtkImageData types. > > For python, I added a class called vtkTkPhotoImage as a > wrapper class around this command. Since the > Python code took a bit more "hack"ing, you can use > vktTkPhotoImage wherever you need a > Tkinter.PhotoImage. vtkTkPhotoImage has a new method > PutImageData that takes a vtkImageData and a z > slice, effectively hiding the call to vtkImageDataToTkPhoto. > > Please let me know if you have questions or comments, > -dan > > -- > Daniel Blezek, Ph.D. > blezek@crd.ge.com > Visualization and Computer Vision Lab, Imaging Technologies > GE Global Research Center > _______________________________________________ > 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 begin 600 Foo.tcl M<&%C:V%G92!R97%U:7)E('9T:PH*"G=M('=I=&AD'1E;G1="@IT M;W!L979E;"`N8PIW;2!T:71L92`N8R`B5&-L(%9E'!R("@D:"`M("1L*2`O(#)=("UC M;VUM86YD(%-E=%=I;F1O=R!=("UF:6QL('@@+65X<&%N9"`Q"G!A8VL@6W-C M86QE("YC+FP@+6QA8F5L($QE=F5L("UO"`M97AP M86YD(#$*"G!A8VL@6W-C86QE("YC+GH@+6QA8F5L(%H@+6]R:65N="!H;W)I M>F]N=&%L("UF"`M97AP M86YD(#$*"BYC+G<@B!G971="GT* ` end From ted@caept.com Fri Aug 30 21:45:57 2002 From: ted@caept.com (Ted Christiansen) Date: Fri, 30 Aug 2002 22:45:57 +0200 Subject: [vtkusers] Re: Problem: unresolved external symbol _wWinMain@16 Message-ID: <3D6FD985.1B74F0F6@caept.com> Zhaopeng, Are you using MFC or just the API to create a window? If you are using the API to create a window then you will need a main function which is the entry point for the program, see the MSDN docs: int WINAPI WinMain( HINSTANCE hInstance, // handle to current instance HINSTANCE hPrevInstance, // handle to previous instance LPSTR lpCmdLine, // command line int nCmdShow // show state ); If you are using MFC then you should only need to include the libraries you have listed in your email: opengl32.lib glaux.lib vtkjpeg.lib vtkzlib.lib vtkParallel.lib vtkRendering.lib vtkIO.lib vtkImaging.lib vtkHybrid.lib vtkGraphics.lib vtkFiltering.lib vtkCommon.lib vtkpng.lib Ted From S.Subramanian@tue.nl Fri Aug 30 22:23:30 2002 From: S.Subramanian@tue.nl (Subramanian, S.) Date: Fri, 30 Aug 2002 23:23:30 +0200 Subject: [vtkusers] Intersection? Message-ID: <81E5F727841DD211A5FD0008C728DB7B080A5809@campusx1.tue.nl> Hi, I am new to vtk and have the following question. How do I find the point of intersection of a cube with a line using vtk? Can I use vtkclippolydata? I tried the following but it gives an error that vtkline is not part of ImplicitFunction. vtkLine *line = vtkLine::New(); line->GetPointIds()->SetId(0,0); line->GetPointIds()->SetId(1,1); line->GetPoints()->SetPoint(0,point1); line->GetPoints()->SetPoint(1,point2); vtkClipPolyData *clipper = vtkClipPolyData::New(); clipper->SetInput(cube->GetOutput()); clipper->SetClipFunction(line); clipper->GenerateClippedOutputOn(); clipper->SetValue(0.5); I tried introducing vtkImplicitDataSet *dataset; but line is not compatible with that too. I am missing something silly here, Can you help me? thanks in advance, Sriram From karshi.hasanov@utoronto.ca Fri Aug 30 16:55:49 2002 From: karshi.hasanov@utoronto.ca (Karshi) Date: Fri, 30 Aug 2002 11:55:49 -0400 Subject: [vtkusers] vtk_nightly_Aug_30_errors Message-ID: <3D6F9585.FCFA190B@utoronto.ca> Hi, I've tried to install the vtknightly (Aug 30) source release on Windows2000 and Linux, but both gave me CMake errors. From moniquisma@colacao.es Sat Aug 31 09:05:45 2002 From: moniquisma@colacao.es (Monica Hernandez) Date: Sat, 31 Aug 2002 10:05:45 +0200 Subject: [vtkusers] (no subject) Message-ID: <20020831081401.ACE0D1AA56@public.kitware.com> Greetings: I want to create an vtkImageData object with some specified parameters and use it for accessing to its scalar values. If I do this: //begining of program //using vtk 3.0 #include //creation of the vtkImageData object with the specified parameters vtkImageData *vtkimage = vtkImageData::New(); vtkimage->SetExtent(0,49,0,49,0,49); vtkimage->SetScalarType(VTK_FLOAT); vtkimage->SetSpacing(1.0,1.0,1.0); vtkimage->SetOrigin(0,0,0); vtkimage->SetNumberOfScalarComponents(1); float *ptr = (float*) vtkimage->GetScalarPointer(); int incX, incY, incZ, ext[6]; vtkimage->GetContinuousIncrements(ext,incX,incY,incZ); for (int z=0; z<50; z++){ for (int y=0; y<50; y++){ for (int x=0; x<50; x++){ cerr << x <<" " << y << " " << z << endl; cerr << *ptr < Greetings: I want to create an vtkImageData object with some specified parameters and use it for accessing to its scalar values. If I do this: //begining of program //using vtk 3.0 #include //creation of the vtkImageData object with the specified parameters vtkImageData *vtkimage = vtkImageData::New(); vtkimage->SetExtent(0,49,0,49,0,49); vtkimage->SetScalarType(VTK_FLOAT); vtkimage->SetSpacing(1.0,1.0,1.0); vtkimage->SetOrigin(0,0,0); vtkimage->SetNumberOfScalarComponents(1); float *ptr = (float*) vtkimage->GetScalarPointer(); int incX, incY, incZ, ext[6]; vtkimage->GetContinuousIncrements(ext,incX,incY,incZ); for (int z=0; z<50; z++){ for (int y=0; y<50; y++){ for (int x=0; x<50; x++){ cerr << x <<" " << y << " " << z << endl; cerr << *ptr < Dear VTK Users, I am a new user of VTK and am waiting for the User's Guide to be shipped to me. I am trying to use VTK to visualise polynomials in real-time using measurement data (coefficients) obtained from an optical instrument. I am using VTK (MSVC++ 6.0) to visualise polynomials on a warped plane. Each time a measurement is made and a set of coefficients determined for the set of polynomials, I would like to update the window display to visualise the new data. I am still familiarising myself with actors, renderers, mappers etc. So far I just only managed to plot the polynomials themselves. In all examples it seems that rendering the window is the last operation performed in the code. Does anyone have any tips or example code for updating the window with a new dataset after it has been rendered? Any help would be much appreciated. Thanks in advance, Best Regards, Jonathan Brooks j.brooks@ic.ac.uk From PS7278514B@ntu.edu.sg Sat Aug 31 13:24:46 2002 From: PS7278514B@ntu.edu.sg (#YAN RI AN#) Date: Sat, 31 Aug 2002 20:24:46 +0800 Subject: [vtkusers] thank you very much Message-ID: <0C42D409AF10B1428A0B026FB160A5BE4259C7@mail02.student.main.ntu.edu.sg> Dear steffen: Sorry, I executed the vtkPatented.lib and copy it to C:\vtk40\lib\vtk\ = already. But I did not get the vtkPatented.dll file. could you send me the vtkPatented.dll file or tell me how to get it? sorry for ask you so many questions. thank you very much. ***************************************=20 * Best Regards * Yan Rian (Research Student)=20 * Email : ps7278514b@ntu.edu.sg * Lab : AMRC Research Centre=20 * Nanyang Technological University=20 * Singapore=20 *************************************** From s.maheswaran@eastman.ucl.ac.uk Sun Aug 25 14:31:00 2002 From: s.maheswaran@eastman.ucl.ac.uk (Satheesh Maheswaran) Date: Sun, 25 Aug 2002 14:31:00 +0100 Subject: [vtkusers] vtkPanel Message-ID: <000201c24c3b$a6b22770$77345290@edisatheesh> This is a multi-part message in MIME format. ------=_NextPart_000_0003_01C24C44.08768F70 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Hi vtkGurus I am using vtk(cvs) with Java on Windows XP platform. I also use vtkPanel, I want to be able to write my scene to a tiff format image using the usual vtkWindowToImageFilter and then vtkTiffWriter So far so good, but with vtkPanel I can not do the following w2if.SetInput(renWin3D); because renWin3D is not actually a vtkRenderWindow, its vtkPanel Is there anyway, I can get around this problem in java Thanks Satheesh ------=_NextPart_000_0003_01C24C44.08768F70 Content-Type: text/html; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable

Hi vtkGurus

I am using vtk(cvs) with Java on Windows XP platform.  I = also use vtkPanel, I want to be able to write my scene to a tiff format image using the = usual vtkWindowToImageFilter and then vtkTiffWriter

So far so good, but with vtkPanel I can not do the = following

w2if.SetInput(renWin3D);

because renWin3D is not actually a = vtkRenderWindow, its vtkPanel

Is there anyway, I can get around this problem in java

Thanks

Satheesh

------=_NextPart_000_0003_01C24C44.08768F70-- From alear@cns.montana.edu Thu Aug 1 00:20:41 2002 From: alear@cns.montana.edu (Alex Lear) Date: Wed, 31 Jul 2002 17:20:41 -0600 Subject: [vtkusers] Actors disappearing on zoom - Video! Message-ID: <000a01c238e8$e39e84a0$73b25a99@ALEXWORKSTATION> Hello, I have about 1000 actors that make up a branch structure. As I zoom away from them they seem to disappear depending on their size. It doesn't seem to be a clipping issue because they don't seem to disappear depending on placement but by size. If someone knows how to stop this disappearing I would like to know. I have made a movie of this and posted it at http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. Sorry about the size but it needed to be large and good quality to see this problem. Thanks for helping and any help is appreciated. Alex Lear From David.Pont@ForestResearch.co.nz Thu Aug 1 01:04:22 2002 From: David.Pont@ForestResearch.co.nz (David.Pont@ForestResearch.co.nz) Date: Thu, 1 Aug 2002 12:04:22 +1200 Subject: [vtkusers] Actors disappearing on zoom - Video! Message-ID: Hi Alex, I just can't resist a good movie... Is this a lighting effect? The branches seem to become increasingly shaded until they merge with the black background. Have you set up a positioned light source instead of the default 'headlight'? Would a white background clarify if black shading is making the branches disappear? The branch size effect may be due to resolution in the shading calculations. As you zoom out, a branch surface decreases towards being a just pixel or so wide 'on-screen', and its averaged surface normal may point further and further away from the camera. just guessing, Dave Pont "Alex Lear" To: "vtk users" Sent by: cc: vtkusers-admin@public.k Subject: [vtkusers] Actors disappearing on zoom - Video! itware.com 01/08/2002 11:20 Hello, I have about 1000 actors that make up a branch structure. As I zoom away from them they seem to disappear depending on their size. It doesn't seem to be a clipping issue because they don't seem to disappear depending on placement but by size. If someone knows how to stop this disappearing I would like to know. I have made a movie of this and posted it at http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. Sorry about the size but it needed to be large and good quality to see this problem. Thanks for helping and any help is appreciated. Alex Lear _______________________________________________ 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 helmut.ebner@profactor.at Thu Aug 1 10:08:24 2002 From: helmut.ebner@profactor.at (Ebner Helmut) Date: Thu, 1 Aug 2002 11:08:24 +0200 Subject: [vtkusers] plane approximation Message-ID: <91F8F22D85BFD411B13B000102B35995A1A5E6@mailsrv.int.profactor.at> How can i get the best fitting plane through many 3D points? From L.J.vanRuijven@amc.uva.nl Thu Aug 1 14:08:43 2002 From: L.J.vanRuijven@amc.uva.nl (CPBuid: ljvanruijven) Date: Thu, 1 Aug 2002 15:08:43 +0200 Subject: [vtkusers] RE: plane approximation Message-ID: <200208011307.PAA01950@mekka.amc.uva.nl> Hi Ebner, For every point x,y,z calculate xx, xy, xz, yy, yz and zz. Add all terms, and put the sums in a symmetric 3 by 3 matrix (xx,xy,xz; xy,yy,yz; xz,yz,zz). This matrix represents an ellipsoid whose shape corresponds with the shape of your points. From this matrix you can calculate the eigenvalues and eigenvectors (see vtkMath). These eigenvectors and eigenvalues define the directions and lengths of the main axes of this ellipsoid. The vectors belonging to the largest eigenvalues give you the orientation of the requested plane. The position of the plane is determined by the centriod of your points. Leo van Ruijven From anast.jm@pg.com Thu Aug 1 14:41:01 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Thu, 1 Aug 2002 09:41:01 -0400 Subject: [vtkusers] build vtk with ANSI STDLIB collision probs Message-ID: One of the Insight examples requires a vtk build with VTK_USE_ANSI_STDLIB turned on. When I try to build this way (7/30 CVS update, release build WinNT VC 6.0) I get some library collisions that the VC compiler complains about. These are associated with vtkOpenGLVolumeProVG500Mapper.cxx vtkVolumeProMapper.cxx and vtkRenderingInstantiator7.cxx The errors are below (sorry for the length). Does anyone know how to cure this?? The build goes smoothly with no problems running vtk with this option turned off. Thanks, john ======================================= vtkOpenGLVolumeProVG500Mapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' ==================================== vtkVolumeProMapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(35) : error C2511: 'CollectRevisions' : overloaded member function 'void (class ostream &)' not found in 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(198) : error C2511: 'PrintSelf' : overloaded member function 'void (class ostream &,class vtkIndent)' not found in 'vtkVolumeProMapper' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' vtkVolumeProVG500Mapper.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProVG500Mapper.cxx(33) : error C2664: 'CollectRevisions' : cannot convert parameter 1 from 'class ostream' to 'class std::basic_ostream > &' A reference that is not to 'const' cannot be bound to a non-lvalue ========================================== vtkRenderingInstantiator7.cxx C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' From billlist@nycap.rr.com Thu Aug 1 14:58:01 2002 From: billlist@nycap.rr.com (William A. Hoffman) Date: Thu, 01 Aug 2002 09:58:01 -0400 Subject: [vtkusers] build vtk with ANSI STDLIB collision probs In-Reply-To: Message-ID: <5.0.2.1.0.20020801095510.0189d2a8@pop.nycap.rr.com> The problem is in the vli.h header files. They #include the old style stream classes. You can remove the #include from the vli.h file, and remove the friend functions that use ostream, and it should work. So, remove these lines from vli.h: #include VLIEXPORT friend ostream & operator << ( ostream &, const VLIVector2D & ); VLIEXPORT friend ostream & operator << ( ostream &, const VLIVector3D & ); VLIEXPORT friend ostream & operator << ( ostream &, const VLIMatrix & ); -Bill At 09:41 AM 8/1/2002 -0400, anast.jm@pg.com wrote: >One of the Insight examples requires a vtk build with VTK_USE_ANSI_STDLIB >turned on. When I try to build this way (7/30 CVS update, release build WinNT VC >6.0) I get some library collisions that the VC compiler complains about. These >are associated with >vtkOpenGLVolumeProVG500Mapper.cxx >vtkVolumeProMapper.cxx and >vtkRenderingInstantiator7.cxx > >The errors are below (sorry for the length). Does anyone know how to cure this?? The build goes smoothly with no problems running vtk with this option turned >off. >Thanks, john > > >======================================= >vtkOpenGLVolumeProVG500Mapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' > >==================================== >vtkVolumeProMapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(35) : error C2511: 'CollectRevisions' : overloaded member function 'void (class ostream &)' not found in >'vtkVolumeProMapper' > P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.cxx(198) : error C2511: 'PrintSelf' : overloaded member function 'void (class ostream &,class vtkIndent)' not >found in 'vtkVolumeProMapper' > P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProMapper.h(86) : see declaration of 'vtkVolumeProMapper' >vtkVolumeProVG500Mapper.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' >P:\WinCVS\vtk40\VTK\Rendering\vtkVolumeProVG500Mapper.cxx(33) : error C2664: 'CollectRevisions' : cannot convert parameter 1 from 'class ostream' to 'class >std::basic_ostream > &' > A reference that is not to 'const' cannot be bound to a non-lvalue > >========================================== >vtkRenderingInstantiator7.cxx >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(104) : error C2371: 'ostream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(257) : see declaration of 'ostream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ios.h(106) : error C2371: 'ios' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(254) : see declaration of 'ios' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(64) : error C2371: 'istream' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iosfwd(256) : see declaration of 'istream' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\istream.h(173) : error C2371: 'cin' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(17) : see declaration of 'cin' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(139) : error C2371: 'cout' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(18) : see declaration of 'cout' >C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\ostream.h(140) : error C2371: 'cerr' : redefinition; different basic types > C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\iostream(19) : see declaration of 'cerr' > >_______________________________________________ >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@kitware.com Thu Aug 1 16:36:31 2002 From: lisa.avila@kitware.com (Lisa Avila) Date: Thu, 01 Aug 2002 11:36:31 -0400 Subject: [vtkusers] Actors disappearing on zoom - Video! In-Reply-To: <000a01c238e8$e39e84a0$73b25a99@ALEXWORKSTATION> Message-ID: <5.1.0.14.0.20020801113553.032e1dd0@pop.nycap.rr.com> Hello Alex, Try removing the default culler from the renderer - it is perhaps throwing away small actors incorrectly. Lisa At 07:20 PM 7/31/2002, Alex Lear wrote: >Hello, I have about 1000 actors that make up a branch structure. As I zoom >away from them they seem to disappear depending on their size. It doesn't >seem to be a clipping issue because they don't seem to disappear depending >on placement but by size. If someone knows how to stop this disappearing I >would like to know. I have made a movie of this and posted it at >http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. >Sorry about the size but it needed to be large and good quality to see this >problem. > >Thanks for helping and any help is appreciated. > >Alex Lear > >_______________________________________________ >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 krw@viz-solutions.com Thu Aug 1 17:29:10 2002 From: krw@viz-solutions.com (Kevin Wright) Date: Thu, 01 Aug 2002 09:29:10 -0700 Subject: [vtkusers] Polydatawriter binaryformat In-Reply-To: <000001c23895$3f006bf0$0b01a8c0@hong> Message-ID: <5.1.0.14.0.20020801091830.00af5c28@mail.viz-solutions.com> >Anyone knows where I can find the binary format of the polydatawriter. The binary format is the same as the ASCII. The file would look something like: # vtk DataFile Version 2.0
BINARY DATASET POLYDATA POINTS 'n' float <'n' floating point numbers written in binary> POLYGONS 'i' 'j' <'j' integers written in binary> ... and so on. Hope that helps. Kevin. From alear@cns.montana.edu Thu Aug 1 18:07:22 2002 From: alear@cns.montana.edu (Alex Lear) Date: Thu, 1 Aug 2002 11:07:22 -0600 Subject: [vtkusers] Actors disappearing on zoom - Update References: <5.1.0.14.0.20020801113553.032e1dd0@pop.nycap.rr.com> Message-ID: <001801c2397d$e6dca3f0$73b25a99@ALEXWORKSTATION> An update: Removing the culler solved the problem. Thanks Lisa and David for your feedback. Alex Lear ----- Original Message ----- From: "Lisa Avila" To: "Alex Lear" ; "vtk users" Sent: Thursday, August 01, 2002 9:36 AM Subject: Re: [vtkusers] Actors disappearing on zoom - Video! > Hello Alex, > > Try removing the default culler from the renderer - it is perhaps throwing > away small actors incorrectly. > > Lisa > > > At 07:20 PM 7/31/2002, Alex Lear wrote: > >Hello, I have about 1000 actors that make up a branch structure. As I zoom > >away from them they seem to disappear depending on their size. It doesn't > >seem to be a clipping issue because they don't seem to disappear depending > >on placement but by size. If someone knows how to stop this disappearing I > >would like to know. I have made a movie of this and posted it at > >http://www.eotbat.com/Branch_Dissolve.avi . It is a little under 5MB. > >Sorry about the size but it needed to be large and good quality to see this > >problem. > > > >Thanks for helping and any help is appreciated. > > > >Alex Lear > > > >_______________________________________________ > >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 rrp@imm.dtu.dk Thu Aug 1 18:38:29 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Thu, 1 Aug 2002 19:38:29 +0200 (METDST) Subject: [vtkusers] RE: plane approximation In-Reply-To: <200208011307.PAA01950@mekka.amc.uva.nl> Message-ID: Hi Ebner and Leo On Thu, 1 Aug 2002, CPBuid: ljvanruijven wrote: > For every point x,y,z calculate xx, xy, xz, yy, yz and zz. Add all terms, and > put the sums in a symmetric 3 by 3 matrix (xx,xy,xz; xy,yy,yz; xz,yz,zz). > This matrix represents an ellipsoid whose shape corresponds with the shape of > your points. From this matrix you can calculate the eigenvalues and > eigenvectors (see vtkMath). These eigenvectors and eigenvalues define the > directions and lengths of the main axes of this ellipsoid. The vectors > belonging to the largest eigenvalues give you the orientation of the > requested plane. > > The position of the plane is determined by the centriod of your points. For an example of how to calculate the major axis using the eigenvectors and values take a look at vtkOBBTree. The first level of the OBB tree is similar to what you are looking for. On my homepage www.imm.dtu.dk/~rrp/VTK there is a class (vtkPrincipalAxisTransform) that will transform a given shape to the principal axis of another shape. This class also contains the sought functionallity. Regards, Rasmus From amerdsp@hotmail.com Thu Aug 1 19:27:51 2002 From: amerdsp@hotmail.com (Amer Abufadel) Date: Thu, 1 Aug 2002 14:27:51 -0400 Subject: [vtkusers] Smooth Isosurface? Message-ID: Hello, I was able to create an isosurface using Marching cubes from binary data. The data is a segmentation of medical images (contours in 2D), so the 3D volume turned out to look like cylinders stacked on top of each other. Is there a way to smooth the surface? Thanks, Amer From prabhu@aero.iitm.ernet.in Fri Aug 2 03:59:23 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 2 Aug 2002 08:29:23 +0530 Subject: [vtkusers] problems with python and cvs vtk In-Reply-To: References: <15687.19598.949525.765285@monster.linux.in> Message-ID: <15689.62859.621696.515779@monster.linux.in> >>>>> "MH" == Magnus Hagdorn writes: >> Could you do the make install and then run python setup.py >> from inside Wrapping/Python and tell us how it goes? We can >> try to iron out any bugs in the script. MH> yup, this is what i did:i run setup.py after make install. i MH> had to change permissions vtk.pth. it created the sym links, Ok. Why did you have to change the permissions of vtk.pth? site.py should not be sensitive to permission (except ofcourse everyone has to have read perms). The CVS version has read permissions for everyone. MH> etc. i double checked there is only one set of MH> libvtk*Python.so in my library path. the odd thing is that MH> some of the example programs work, i.e. the ones with the MH> graphic primitives like cone, etc. it also loads the vtk MH> module just fine. i am quite puzzled since it does work when i MH> change the python path. maybe not all required files are MH> copied. i shall investigate that and let you know what's going MH> on. Yes, this is wierd. As I understand, after running make install followed by setup.py, you have the following: libvtk*.so in /usr/local/lib/vtk libvtk*Python.so also in /usr/local/lib/vtk there. all the *.py files in /usr/lib/python2.2/site-packages/vtk_python a correct vtk.pth in /usr/lib/python2.2/site-packages/ correct symlinks in /usr/lib/python2.2/site-packages/vtk_python that point to /usr/local/lib/vtk/lib*Python.so LD_LIBRARY_PATH set to /usr/local/lib/vtk Anything else? If this is the case I thought everything should work? Is /usr/local/VTK/bin also in the linkers path? thanks, prabhu From L.Scheef@uni-bonn.de Fri Aug 2 08:01:44 2002 From: L.Scheef@uni-bonn.de (L.Scheef@uni-bonn.de) Date: Fri, 2 Aug 2002 09:01:44 +0200 Subject: [vtkusers] Question regarding VTK installation on Windows Message-ID: <200208020700.JAA35500@f1node03.rhrz.uni-bonn.de> Dear list members! I would like to install VTK4.0 on a Windows system, but unfortunately I was not quite successful so far. It would be kind, if you could help me regarding the following questions: 1) Do I have to use vtk40Core.exe and vtk40TCL.exe ( for the use together with TCL) 2) Is it ok to install both in the same folder? 3) Could anybody be so kind and tell me how to proceed after running the above mentioned exe files? Or is there any description in the net? The read me files I found in the distribution did not help a lot... When I tried to run a vtk example script, I got the error message tcl833.dll not found. To overcome this problem, I have copied all tcl/tk dlls into the win/syst folder. But after that I had to deal with the error message: tcl.ini not found ...inproper TCL installation. However TCL works fine. I use the Active Tcl 8.34 distribution on a Win98 PC. A couple of years ago, I used vtk 2.2. The installation wasn't a problem at all. I just had to unzip the given executable ... However, I would be happy about any kind of help ... Best wishes, Lukas Lukas Scheef, MD, MSc MR-Tomography Department of Radiology University of Bonn Sigmund-Freud-Stra=DFe 25 D-53105 Bonn Fax: +49-228-287-5598 Phone:+49-228-287-4496 E-mail: L.Scheef@uni-bonn.de From burgert@ira.uka.de Fri Aug 2 07:46:18 2002 From: burgert@ira.uka.de (Oliver Burgert) Date: Fri, 2 Aug 2002 08:46:18 +0200 Subject: AW: [vtkusers] Smooth Isosurface? Message-ID: <01734FCC8274D51199C50050DA20ACBC18A89E@i61p2.ira.uka.de> You should apply marching cubes (or vtkContourFilter) on a 3D-image and = not on the single slices. If this is still too ugly, you can try vtkSmoothPolyDataFilter or vtkDecimate(Pro) with "PreserveTopologyOff". HTH Oliver Oliver Burgert IRF / IAIM=20 Geb. 07.21 (Technologiefabrik Universit=E4t Karlsruhe (TH) Kaiserstr. 12 76128 Karlsruhe burgert@ira.uka.de =20 > -----Urspr=FCngliche Nachricht----- > Von: Amer Abufadel [mailto:amerdsp@hotmail.com]=20 > Gesendet: Donnerstag, 1. August 2002 20:28 > An: vtk > Betreff: [vtkusers] Smooth Isosurface? >=20 >=20 > Hello, > I was able to create an isosurface using Marching cubes=20 > from binary data. The data is a segmentation of medical=20 > images (contours in 2D), so the 3D volume turned out to look=20 > like cylinders stacked on top of each other. Is there a way=20 > to smooth the surface? >=20 > Thanks, >=20 > Amer > _______________________________________________ > This is the private VTK discussion list.=20 > Please keep messages on-topic. Check the FAQ at:=20 Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From peppe@mail-arts.sssup.it Fri Aug 2 12:26:36 2002 From: peppe@mail-arts.sssup.it (peppe megali) Date: Fri, 02 Aug 2002 13:26:36 +0200 Subject: [vtkusers] Problems running example code.... Message-ID: <3D4A6C6C.8020308@mail-arts.sssup.it> Hi, I am a very new user. I downloaded VTK 4.0 and installed it. I downloaded also the source code, and unzipped it. When I try to execute the examples TCL code contained in the Testing directory of the Patented source code (e.g. .../VTK/Patented/Testing/Tcl/iceCream.tcl) I get error messages like this: - invalid command name "vtkMarchingContourFilter" while executing "vtkMarchingContourFilter theConeSurface".... the command name differs depending from the specific tcl example. This happen for all the tcl source file in that directory (while no problems I had encountered executing all the tcl example and testing code in the other directories), and the invalid command name is always one of the Patented code. Practically, it seems that the Patented code has not be installed correctly (infact I have not vtkPatentedTcl lib and dll)... What do I have to do to correctly install the Patented code? Thanks peppe -- _________________________________________________________ Giuseppe Megali, PhD Scuola Superiore Sant'Anna - Polo Sant'Anna Valdera CRIM - Computer Assisted Surgery Group Viale Rinaldo Piaggio, 34 57025 Pontedera, Pisa (Italy) Phone: (+39) 050 883 405, Fax: (+39) 050 883 402 email: peppe@mail-arts.sssup.it, web: www-mitech.sssup.it _________________________________________________________ From rrp@imm.dtu.dk Fri Aug 2 12:51:04 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 2 Aug 2002 13:51:04 +0200 (METDST) Subject: [vtkusers] Problems running example code.... In-Reply-To: <3D4A6C6C.8020308@mail-arts.sssup.it> Message-ID: Hi Peppe, On Fri, 2 Aug 2002, peppe megali wrote: > I downloaded VTK 4.0 and installed it. I downloaded also the source > code, and unzipped it. When I try to execute the examples TCL code > contained in the Testing directory of the Patented source code (e.g. > .../VTK/Patented/Testing/Tcl/iceCream.tcl) I get error messages like this: > > - invalid command name "vtkMarchingContourFilter" while executing > "vtkMarchingContourFilter theConeSurface".... > > the command name differs depending from the specific tcl example. > > This happen for all the tcl source file in that directory (while no > problems I had encountered executing all the tcl example and testing > code in the other directories), and the invalid command name is always > one of the Patented code. > Practically, it seems that the Patented code has not be installed > correctly (infact I have not vtkPatentedTcl lib and dll)... > > What do I have to do to correctly install the Patented code? The patented code is not included in the binary distribution. To get that you have to recompile VTK yourself. Instructions for doing that can be found in the VTK books. If you are using windows, I have written a step by step guide, which can be found here (under manuals): www.imm.dtu.dk/~rrp Regards, Rasmus From mybetatest@hotmail.com Fri Aug 2 21:14:47 2002 From: mybetatest@hotmail.com (H A) Date: Fri, 02 Aug 2002 20:14:47 +0000 Subject: [vtkusers] vtkinteractorstyleuser/observer callback Message-ID: Hello everyone, I am using vtk 4.0 and VC++, I am trying to assign functions to different events. For instance, if you left click on your mouse an object gets translated. I have been able to output messages to cerr but everytime I try and do something to the actors I get a sharing violation error. I have subclassed vtkinteractorstyleuser to do this. I have not been able to find an example anywhere of how to do this. Can anyone pls provide me with a C++ example? Either using vtkinteractorstyleuser or the observer callback method. I just want to be able to custom interact with my software :) Thank you, H.A. _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From doctorart@hotmail.com Mon Aug 5 00:34:09 2002 From: doctorart@hotmail.com (R T) Date: Sun, 04 Aug 2002 15:34:09 -0800 Subject: [vtkusers] How to link a new class Message-ID: Hello all, I have a class where I extend a VTK class: class vtkMyPolyDataFilter:vtkPolyDataToPolyDataFilter {........ } How do I compile my class and link with my application? Do I have to recompile the Whole VTK source tree and include my class somehow( How ??) or separately, Build a DLL, or link it statically? While it compiles without errors, it doesn't link with VTK libraries, gives " public:static vtkMyPolyDataFilter::New() unresolved" when I define all the required methods like New(), PrintHeader(), etc inline in .h file, it compiles and links, but at runtime it gives "can't find external VTKCOMMON@@vtkObject@@@!##$#@" I use MS Visual Studio 6.0 Thanks, Roma _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From kch90@cs.ccu.edu.tw Mon Aug 5 06:36:50 2002 From: kch90@cs.ccu.edu.tw (Ivan) Date: Mon, 5 Aug 2002 13:36:50 +0800 Subject: [vtkusers] Write Mapper (or Actor) as an intermediate output Message-ID: <000f01c23c42$195c1b50$67657b8c@IVAN> This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C23C85.27701910 Content-Type: text/plain; charset="big5" Content-Transfer-Encoding: quoted-printable Hi all: I find i can use PolyDataWriter to export the intermediate output of = StructuredGridGeometryFilter and use PolyDataReader to import the = intermediate output and continue the Mapping and Rendering at an other machine. My main problem is i can't find a way to export the intermediate output = of Mapper (ex. PolyDataMapper) or Actor to finish the pipeline (i.e. = rendering) at an other machine.=20 Any help is appreciated! Thanks a lot, Ivan Kuo ------=_NextPart_000_000C_01C23C85.27701910 Content-Type: text/html; charset="big5" Content-Transfer-Encoding: quoted-printable
Hi all:
 
I find i can use = PolyDataWriter to export the intermediate output of=20 StructuredGridGeometryFilter and use PolyDataReader=20 to import the intermediate output
and continue the Mapping = and Rendering at an other=20 machine.
 
My main problem is i = can't find a way to export=20 the intermediate output of Mapper (ex.=20 PolyDataMapper) or Actor to finish the pipeline (i.e. rendering) at an = other=20 machine.
 
Any help is appreciated!
 
Thanks a lot,
Ivan Kuo
 
------=_NextPart_000_000C_01C23C85.27701910-- From srodrigu@gbt.tfo.upm.es Mon Aug 5 10:17:08 2002 From: srodrigu@gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Mon, 5 Aug 2002 11:17:08 +0200 Subject: [vtkusers] What I need to build VTK in Windows References: Message-ID: <007201c23c60$df9ab420$5f0a048a@sisifo> Hello everybody, I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 version, but I saw other files in the webside, like vtk40Data.zip, vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody tell me if I really need these files and If I need them, In which directory must I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how runs Cmake. Thanks in advance, Samuel From gregory.bleiker@phonak.ch Mon Aug 5 10:33:03 2002 From: gregory.bleiker@phonak.ch (Gregory Bleiker) Date: Mon, 05 Aug 2002 11:33:03 +0200 Subject: [vtkusers] Antw: vtkusers digest, Vol 1 #1174 - 3 msgs Message-ID: Dear all I have a question regarding the nightly sources... are they purely for the = developers, or can "ordinary" users try to compile their code and should = have some success? I've been trying to do so for a few days now and = altough I can always compile the VTK sources with cygwin and W2K, I never = get my program to work with the code I've written (a small stl reader). Is = this the expected outcome? I've tried the unix and the windows sources, = both with equal results. Greetings Gregi PS. An initial dump of my compiler output=20 Building Makefile: "E:\programming\cpp\VTK\Makefile.win" Executing make... make.exe -f "E:\programming\cpp\VTK\Makefile.win" all g++.exe -c qcview2.cpp -o qcview2.o -I"E:\VTK\IO" -I"E:\VTK\Common" = -I"E:\VTK\Filtering" -I"E:\VTK" -I"E:\VTK\Rendering" -I"E:\VTK\Graphics"= -static -s windres.exe -i VTKTRY~1.RC -I rc -o vtktryout.res -O coff=20 g++.exe qcview2.o vtktryout.res -o "vtktryout.exe" -L"E:\Dev-C++\lib" = -L"E:\VTK\bin" -lvtkIO -lvtkCommon -lvtkFiltering -lvtkRendering -lvtkGraph= ics -IvtkImaging -lvtkexpat -lvtkfreetype -lvtkjpeg -lvtkpng -lvtktiff = -lvtkzlib -I"E:\VTK\IO" -I"E:\VTK\Common" -I"E:\VTK\Filtering" = -I"E:\VTK" -I"E:\VTK\Rendering" -I"E:\VTK\Graphics" -static -s E:\VTK\bin/libvtkCommon.a(vtkWin32OutputWindow.o)(.text+0x5a1):vtkWin32Outp= utWindow.cxx: undefined reference to `GetStockObject@4' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x2177):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::CollectRevisions(ostream &)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x21bf):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x23e3):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow(void)' E:\VTK\bin/libvtkRendering.a(vtkRenderWindow.o)(.text+0x24ed):vtkRenderWind= ow.cxx: undefined reference to `vtkWindow::~vtkWindow(void)' From rrp@imm.dtu.dk Mon Aug 5 10:37:38 2002 From: rrp@imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Mon, 5 Aug 2002 11:37:38 +0200 (METDST) Subject: [vtkusers] What I need to build VTK in Windows In-Reply-To: <007201c23c60$df9ab420$5f0a048a@sisifo> Message-ID: Hi Samuel, On Mon, 5 Aug 2002, Samuel Rodr=EDguez Bescos wrote: > I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 > version, but I saw other files in the webside, like vtk40Data.zip, > vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody t= ell > me if I really need these files and If I need them, In which directory mu= st > I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how > runs Cmake. Take a look at the guide (found under manuals) at this page: www.imm.dtu.dk/~rrp Perhaps you can use something from it. Else I recommend buying the books. Regards, Rasmus PS. I will make a minor update of the guide tomorrow, but I think it is still useful. From srodrigu@gbt.tfo.upm.es Mon Aug 5 10:46:26 2002 From: srodrigu@gbt.tfo.upm.es (=?iso-8859-1?Q?Samuel_Rodr=EDguez_Bescos?=) Date: Mon, 5 Aug 2002 11:46:26 +0200 Subject: [vtkusers] What I need to build VTK in Windows References: Message-ID: <000a01c23c64$f73e8120$5f0a048a@sisifo> Thanks for your reply, Samuel ----- Original Message ----- From: "Rasmus Reinhold Paulsen" To: "Samuel Rodríguez Bescos" Cc: Sent: Monday, August 05, 2002 11:37 AM Subject: Re: [vtkusers] What I need to build VTK in Windows > Hi Samuel, > > On Mon, 5 Aug 2002, Samuel Rodríguez Bescos wrote: > > > I want to work with Vtk toolkit. I have downloaded the Source code of 4.0 > > version, but I saw other files in the webside, like vtk40Data.zip, > > vtk40Core.exe, vtk40Tcl.exe, vtk40cpp.exe or VTK40MSVC. Could anybody tell > > me if I really need these files and If I need them, In which directory must > > I put them?. I work with windows 2000 and MSVC++6.0 . And I Know also how > > runs Cmake. > > Take a look at the guide (found under manuals) at this page: > > www.imm.dtu.dk/~rrp > > Perhaps you can use something from it. Else I recommend buying the books. > > Regards, > Rasmus > > PS. I will make a minor update of the guide tomorrow, but I think it is > still useful. > From L.Scheef@uni-bonn.de Mon Aug 5 13:33:52 2002 From: L.Scheef@uni-bonn.de (L.Scheef@uni-bonn.de) Date: Mon, 5 Aug 2002 14:33:52 +0200 Subject: [vtkusers] Still help needed!!! Message-ID: <200208051232.OAA42692@f2node23.rhrz.uni-bonn.de> Dear list members! I still would need a little help from the vtk friends... As I mailed a couple of days ago, I try to install the binary version of TCL/TK but I am not able to run even a simple example. Herre is what I have done: I've installed TCL/TK8.2 on win98 system. It works well so far. After that I have installed the vtk40core.exe and vtk40Tcl.exe And added the TCLLIBPATH C:/Programme/VTK40/Wrapping/Tcl to the autoexec.bat Running: % puts $auto_path ob the wish shell gives me: C:/Programme/VTK40/Wrapping/Tcl C:/Programme/vtk40/lib/vtk C:/PROGRAMME/TCL/lib/tcl8.2 C:/PROGRAMME/TCL/lib C:/PROGRAMME/TCL/lib/tk8.2 However, if I try to start any example script (from the win explorer), I get the error message: "can't find package vtkvommon" Does anybody have an idea what might be wrong? I searched the mailing list but was not able to find the answer so far... Do I have to rebuild VTK? I hope that this would be not neccessary... (I neither have the Borland nor the MSV C++ compiIer... I was able to use the old VTK2.2 version without any problems ... What has changed in the meantime? Any help would be appreciated ... Best wishes, Lukas From yuet_kwok@hotmail.com Mon Aug 5 18:37:15 2002 From: yuet_kwok@hotmail.com (Yuet Chung Kwok) Date: Mon, 5 Aug 2002 18:37:15 +0100 Subject: [vtkusers] transformation under interactor Message-ID: This is a multi-part message in MIME format. ------=_NextPart_000_0005_01C23CAF.1F2F6BA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hello, I am new to VTK and am using it to rendering some wavefont data(*.obj = file), I am using the interactor to render the data, the problem I have = now is that I need to extract the data after some transformation I have = done in the render window. But since the rotation was done with the = camera and not the data, when I use the vtkOBJWriter object to write the = data back to file, it is the original data set without any = transformation. I want to know if there is any way that I can get the = transformed set of data after the transformation take place using the = interactor? Thanks, Yuet ------=_NextPart_000_0005_01C23CAF.1F2F6BA0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hello,
 
I am new to VTK and am using it to = rendering=20 some wavefont data(*.obj file),  I am using the interactor to = render the=20 data, the problem I have now is that I need to extract the data after = some=20 transformation I have done in the render window. But since the rotation = was done=20 with the camera and not the data, when I use the vtkOBJWriter object to = write=20 the data back to file, it is the original data set without any = transformation. I=20 want to know if there is any way that I can get the transformed set of = data=20 after the transformation take place using the interactor?
 
Thanks,
 
Yuet
------=_NextPart_000_0005_01C23CAF.1F2F6BA0-- From Joey Mukherjee Mon Aug 5 18:42:56 2002 From: Joey Mukherjee (Joey Mukherjee) Date: Mon, 5 Aug 2002 12:42:56 -0500 (CDT) Subject: [vtkusers] vtkMaskPoints bug Message-ID: <200208051745.g75HjYJ16893@phobos.space.swri.edu> I noticed that vtkMaskPoints has a bug in that if you SetMaximumNumberOfPoints to 1, nothing will be plotted. Digging in the code, I see: for ( ptId = this->Offset; (ptId < numPts) && (id < (this->MaximumNumberOfPoints-1)) && !abort; ptId += this->OnRatio ) The part that fails is "id < (this->MaximumNumberOfPoints-1)" since id is 0 and this->MaximumNumberOfPoints-1 is zero, it never falls in the loop. Changing it to a <= doesn't work for values > 1. I added a : if (this->MaximumNumberOfPoints == 1) { x = input->GetPoint(this->Offset); id = newPts->InsertNextPoint(x); outputPD->CopyData(pd,this->Offset,id); } else above it, but this may not be the best fix since there may be a way to handle the random case and the non-random case in the same way. If you need a test case, the Examples/VisualizationAlgorithms/Tcl/spikeF.tcl exhibits the problem if you add a ptMask SetMaximumNumberOfPoints 1 in there. Cheers, Joey +--------------------------------------------------------------------------+ + + + Joey Mukherjee "The price of freedom is eternal + + joey@swri.org vigilance, or $12.50 as seen on + + eBay... + + + +--------------------------------------------------------------------------+ From mauricio.inforcati@cenpra.gov.br Mon Aug 5 20:55:00 2002 From: mauricio.inforcati@cenpra.gov.br (Mauricio Caliggiuri Inforcati) Date: Mon, 5 Aug 2002 16:55:00 -0300 Subject: [vtkusers] Clipboard Message-ID: <200208051655.01003.mauricio.inforcati@cenpra.gov.br> How can I copy/paste 2d or 3d Images to/from the clipboard under Linux or= =20 Windows? Mauricio From yjin76@hotmail.com Mon Aug 5 21:37:12 2002 From: yjin76@hotmail.com (Yuan Jin) Date: Mon, 05 Aug 2002 20:37:12 +0000 Subject: [vtkusers] About clipping a polydata Message-ID: Hi, How can I get 'CappingOn' effect after clipping a polydata using vtkPlane? Thanks, _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From marcelomaxaqp@yahoo.es Tue Aug 6 00:20:36 2002 From: marcelomaxaqp@yahoo.es (=?iso-8859-1?q?Marcelo=20Flores?=) Date: Tue, 6 Aug 2002 01:20:36 +0200 (CEST) Subject: [vtkusers] Help with BMP loading and bmp to ppm convertion In-Reply-To: <20020805104405.E2A631AB4A@public.kitware.com> Message-ID: <20020805232036.43809.qmail@web20505.mail.yahoo.com> --0-1703807565-1028589636=:43756 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Hi i want to load a 2D bmp image and make it look like 3D( like the masonry example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object with a vtkBMPreader object but it doesnt work properly ). I want to transform a bmp to a ppm image too. Could anyone send me a sample code with the object vtkBMPreader and vtkPNMreader. --------------------------------- Yahoo! Messenger Nueva versión: Webcam, voz, y mucho más ˇGratis! --0-1703807565-1028589636=:43756 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit

Hi

i want to load a 2D bmp image and make it look like 3D( like the masonry example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object with a vtkBMPreader object but it doesnt work properly ). I want to transform a bmp to a ppm image too. Could anyone send me a sample code with the object vtkBMPreader and vtkPNMreader.


Yahoo! Messenger
Nueva versión: Webcam, voz, y mucho más ˇGratis!
--0-1703807565-1028589636=:43756-- From ficmic01@evergreen.edu Tue Aug 6 02:18:56 2002 From: ficmic01@evergreen.edu (FICKER, MICHAEL) Date: Mon, 5 Aug 2002 18:18:56 -0700 Subject: [vtkusers] Large Volume Data Message-ID: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C23CE7.3C1423E0 Content-Type: text/plain My data set consists of 1500 jpeg images of 2000x2000 pixels each. I do not intend to visualize such a large volume but I was trying to make VTK extract and resample my Volume of Interest (VOI) and then dump this smaller volume (aprox 150x150x150) out into a new set of jpegs. I have had luck manipulating and visualizing smaller volumes but have been unable to use such a large data set. I have tried various forms of vtkImageDataStreamer and vtkMemoryLimitImageDataStreamer. I have been trying varios forms of the following script. If I only procecss ~350 images it runs fine, but if I try the entire stack VTK crashes. Time is not a concern, the script can run as long as it takes. Any ideas on how to work with datasets this large? # read a stack of images starting at GR0000.JPG vtkJPEGReader reader reader SetFilePrefix "GR" reader SetDataExtent 0 2000 0 2000 0 1500 reader SetFilePattern "%s%04d.JPG" reader SetDataSpacing 2 2 3 reader SetDataScalarTypeToUnsignedShort reader GlobalReleaseDataFlagOn #Stream the data to comsume less memory vtkImageDataStreamer streamer streamer SetInput [reader GetOutput] streamer SetNumberOfStreamDivisions 32 [streamer GetExtentTranslator] SetSplitModeToBlock streamer UpdateWholeExtent # Extract and resample a sub volume from the source vtkExtractVOI voi voi SetInput [streamer GetOutput] voi SetVOI 500 1500 400 1600 100 1400 voi SetSampleRate 10 10 10 [voi GetOutput] SetScalarTypeToUnsignedChar # write out the new smaller volume vtkJPEGWriter writer writer SetInput [voi GetOutput] writer SetFilePrefix "vol" writer SetFilePattern "%s%04d.jpg" writer SetFileDimensionality 3 writer Write ------_=_NextPart_001_01C23CE7.3C1423E0 Content-Type: text/html Content-Transfer-Encoding: quoted-printable Large Volume Data

My data set consists of 1500 jpeg images of 2000x2000 = pixels each.  I do not intend to visualize such a large volume but = I was trying to make VTK extract and resample my Volume of Interest = (VOI) and then dump this smaller volume (aprox 150x150x150) out into a = new set of jpegs.

I have had luck manipulating and visualizing smaller = volumes but have been unable to use such a large data set.  I have = tried various forms of vtkImageDataStreamer and = vtkMemoryLimitImageDataStreamer.

I have been trying varios forms of the following = script.  If I only procecss ~350 images it runs fine, but if I try = the entire stack VTK crashes.

Time is not a concern, the script can run as long as = it takes.
Any ideas on how to work with datasets this = large?


# read a stack of images starting at = GR0000.JPG
vtkJPEGReader reader
        reader = SetFilePrefix "GR"
        reader = SetDataExtent 0 2000 0 2000 0 1500
        reader = SetFilePattern "%s%04d.JPG"
        reader = SetDataSpacing 2 2 3
        reader = SetDataScalarTypeToUnsignedShort
        reader = GlobalReleaseDataFlagOn

#Stream the data to comsume less memory
vtkImageDataStreamer streamer
        streamer = SetInput [reader GetOutput]
        streamer = SetNumberOfStreamDivisions 32
        [streamer = GetExtentTranslator] SetSplitModeToBlock
        streamer = UpdateWholeExtent

# Extract and resample a sub volume from the = source
vtkExtractVOI voi
        voi = SetInput [streamer GetOutput]
        voi = SetVOI 500 1500 400 1600 100 1400
        voi = SetSampleRate 10 10 10
        [voi = GetOutput] SetScalarTypeToUnsignedChar

# write out the new smaller volume
vtkJPEGWriter writer
        writer = SetInput [voi GetOutput]
        writer = SetFilePrefix "vol"
        writer = SetFilePattern "%s%04d.jpg"
        writer = SetFileDimensionality 3
        writer = Write

------_=_NextPart_001_01C23CE7.3C1423E0-- From helmut.ebner@profactor.at Tue Aug 6 09:49:16 2002 From: helmut.ebner@profactor.at (Ebner Helmut) Date: Tue, 6 Aug 2002 10:49:16 +0200 Subject: [vtkusers] reduce noise! Message-ID: <91F8F22D85BFD411B13B000102B35995A1A5E9@mailsrv.int.profactor.at> Hi, I have a simple 2D Image (only black and white pixel) with a lot of noise. Are there some vtkFilters to reduce noise? How can i do this in C++ Thanks a lot From h.huisman@rad.umcn.nl Tue Aug 6 10:55:15 2002 From: h.huisman@rad.umcn.nl (h.huisman@rad.umcn.nl) Date: Tue, 6 Aug 2002 11:55:15 +0200 (CEST) Subject: [vtkusers] vtkImplicitBoolean bug Message-ID: Hi, Think I noticed a bug in vtkImplicitBoolean (IB). I use IB to combine AND transform several implicitfunctions. However, the transform doesn't seem to be working. Running debugger (ddd) I noticed that the ImplicitBoolean::EvaluateFunction(x) doesn't use the IB transformation. I would expect xt = IB->Transform(x) and then f = IF(xt) whereas it now directly calls f = IF(x) avoiding the transformation. Hope somebody can shine a light on this one. Henkjan --------------------------------------------------------------------- H.J. Huisman, PhD, MSEE E : h.huisman@rad.umcn.nl Biomedical Physicist T : +31 24 3617536/14545 Dept. Radiology F : +31 24 3540866 UMC St. Radboud S : 430 Radiologie/POBox 9101/ 6500HB Nijmegen/Netherlands From John Biddiscombe" Message-ID: <000901c23d40$704d4a70$0100a8c0@tigger> > ImplicitBoolean::EvaluateFunction(x) doesn't use the IB = transformation. I=20 > Hope somebody can shine a light on this one. I doubt it was ever implemented. Implicit boolean is a subclass of the = more general Implicit function which defines the transform and it just = got left out. See if you can add the necessary code to make it work and = then post it here. Probably you can just copy a chunk from one of the = other implicit classes... JB From goettler@dfki.de Tue Aug 6 13:32:12 2002 From: goettler@dfki.de (=?iso-8859-1?Q?Jochen_G=F6ttler?=) Date: Tue, 6 Aug 2002 14:32:12 +0200 Subject: [vtkusers] vtkWin32RenderWindowInteractor In-Reply-To: <20020806085801.7B6F11AB10@public.kitware.com> Message-ID: How are the vtkWin32OpenGLRenderWindow and vtkWin32RenderWindowInteractor used? Does anyone have example code? From c.p.botha@its.tudelft.nl Tue Aug 6 13:52:30 2002 From: c.p.botha@its.tudelft.nl (Charl P. Botha) Date: Tue, 6 Aug 2002 14:52:30 +0200 Subject: [vtkusers] vtkWin32RenderWindowInteractor In-Reply-To: References: <20020806085801.7B6F11AB10@public.kitware.com> Message-ID: <20020806125230.GM7148@dutidad.twi.tudelft.nl> On Tue, Aug 06, 2002 at 02:32:12PM +0200, Jochen Göttler wrote: > How are the vtkWin32OpenGLRenderWindow and vtkWin32RenderWindowInteractor > used? Does anyone have > example code? You shouldn't use these directly, but rather vtkRenderWindow and vtkRenderWindowInteractor. These will automatically use the correct specialised class. There are plenty of examples in the Examples directory, just do a recursive text find for "vtkRenderWindow". -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From YaelFeldman@aol.com Tue Aug 6 14:27:23 2002 From: YaelFeldman@aol.com (YaelFeldman@aol.com) Date: Tue, 06 Aug 2002 09:27:23 -0400 Subject: [vtkusers] colouring a surface according to one's own floatarray Message-ID: <5C6B353D.02F4561A.420A636E@aol.com> I am trying to colour a surface (a triangulated polygonal mesh) according to a floatarray listing numbers (that are calculated by the programme), one number corresponding to each of the polygon vertices. I know I need to use scalars, and vtkGlyph or somethink like it, yet all the examples seem to reiterate the use of Plot3D files, with pre-defined scalars e.g velocity magnitude etc. Does anyone have any advice? From lists@carlh.net Tue Aug 6 14:38:11 2002 From: lists@carlh.net (Carl Hetherington) Date: Tue, 6 Aug 2002 14:38:11 +0100 (GMT Daylight Time) Subject: [vtkusers] VTK for pre-processing of Boundary Element Model meshes Message-ID: Hi, I'm using VTK to help me generate meshes for use with an acoustical BEM package, PAFEC. There are various limits to the geometries that PAFEC can handle. For example, the angle between any two cell edges must lie within the range 15-165 degrees. There are also limitations related to the length of quadrilaterals with respect to their height. Does VTK offer any classes that can help me to process arbitrary meshes to meet these constraints? Is anyone else on this list doing anything similar? Thanks in advance for any suggestions. Carl From anast.jm@pg.com Tue Aug 6 14:59:56 2002 From: anast.jm@pg.com (anast.jm@pg.com) Date: Tue, 6 Aug 2002 09:59:56 -0400 Subject: [vtkusers] Help with BMP loading and bmp to ppm convertion Message-ID: Marcelo, In order to use a bmp image for this purpose you need to extract the lu= minance of the image. Try running the output of the bmp reader through vtkLumin= ance. In tcl this looks like vtkBMPReader reader reader SetFileName myFile.bmp vtkImageLuminance luminance luminance SetInput [reader GetOutput] =20 Internet Mail Message =20 Received from host: public.kitware.com =20 [24.97.130.19] =20 =20 From: Marcelo Flores @public.kitware.com on 08/= 06/2002 01:20 AM ZE2 = =20 Marcelo Flores To: vtkusers@p= ublic.kitware.com =20 @public.kitware.com Cc: (bcc: Joh= n Anast-JM/PGI) =20 Subject: [vtkusers]= Help with BMP loading and=20 bmp to ppm converti= on =20 Sent by: vtkusers-admin@public.kitware.com = =20 08/05/2002 07:20 PM = =20 = =20 = =20 Hi i want to load a 2D bmp image and make it look like 3D( like the masonr= y example in vtk 3.1 but with a bmp image. i've replaced the vtkPNMreader object = with a vtkBMPreader object but it doesnt work properly ). I want to transform = a bmp to a ppm image too. Could anyone send me a sample code with the object vtk= BMPreader and vtkPNMreader. Yahoo! Messenger Nueva versi=F3n: Webcam, voz, y mucho m=E1s =A1Gratis! = From prabhu@aero.iitm.ernet.in Tue Aug 6 15:25:46 2002 From: prabhu@aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 6 Aug 2002 19:55:46 +0530 Subject: [vtkusers] colouring a surface according to one's own floatarray In-Reply-To: <5C6B353D.02F4561A.420A636E@aol.com> References: <5C6B353D.02F4561A.420A636E@aol.com> Message-ID: <15695.56426.510082.936172@monster.linux.in> >>>>> "YF" == YaelFeldman writes: YF> I am trying to colour a surface (a triangulated polygonal YF> mesh) according to a floatarray listing numbers (that are YF> calculated by the programme), one number corresponding to each YF> of the polygon vertices. I know I need to use scalars, and YF> vtkGlyph or somethink like it, yet all the examples seem to YF> reiterate the use of Plot3D files, with pre-defined scalars YF> e.g velocity magnitude etc. Does anyone have any advice? Once you create your PolyData you can associate point scalars with the points of the data. Create a vtkFloatArray and then stick the scalars in it and then associate this array with your point data. Thats about all you need. pd = vtkPolyData() # this is your polydata object. You might generate it some other way. sc = vtkFloatArray() for i in range(pd.GetNumberOfPoints()): sc.InsertNextValue(_insert_your_scalar_here) pd.GetPointData().SetScalars(sc) cheers, prabhu From nundys@neuro.duke.edu Tue Aug 6 16:43:28 2002 From: nundys@neuro.duke.edu (Surajit Nundy) Date: Tue, 06 Aug 2002 11:43:28 -0400 Subject: [vtkusers] Accessing Arrays in Matlab-Java-vtk References: Message-ID: <3D4FEEA0.4050602@neuro.duke.edu> Is it possible to access a vtk array from matlab (such as vtkFloatArray or vtkUnsignedCharArray). I have been trying to do this, vtk allows exports to a C array through vtkImageExport which doesn't seem to fit with matlab. However, matlab cannot work with pointers (java arrays are pointers), so any calls to these functions fail. I'd appreciate any help Surajit Nundy From bthomas@engineering.uiowa.edu Wed Aug 7 02:52:00 2002 From: bthomas@engineering.uiowa.edu (bthomas) Date: Tue, 6 Aug 2002 20:52:00 -0500 Subject: [vtkusers] vtkImageImportFromArray.py Message-ID: <3D4F39B9@webmail.engineering.uiowa.edu> Does anyone know of an updated vtkImageImportFromArray for vtk4.0? I have tried to update it myself but I'm having some trouble getting MarchingCubes to generate anything from my output. I'm unsure of what exactly needs to be updated besides the SetDataExtent/SetWholeExtent which I have set equal. Any help would be much appreciated. Benjamin Thomas From wb@huahai.com.cn Wed Aug 7 03:20:57 2002 From: wb@huahai.com.cn (wb) Date: Wed, 7 Aug 2002 10:20:57 +0800 Subject: [vtkusers] Question about Color Scalar Data Message-ID: <004a01c23db9$11a2ef10$c30083c0@wb> This is a multi-part message in MIME format. ------=_NextPart_000_0047_01C23DFC.1E948CE0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 aGVsbG8gdnRrIGZyaWVuZHMNCmkgZG9uJ3Qga25vdyB3aGVyZSBjYW4gaSBmb3VuZCB2dGtDb2xv clNjYWxhcnMgY2xhc3MuIGkgYW0gdmVyeSBnbGFkIHRvIGtub3cgaG93IGNhbiBpIGZvdW5kIGl0 IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50Lg0KdGhhbmtzIGluIGFkdmFuY2UNCg== ------=_NextPart_000_0047_01C23DFC.1E948CE0 Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PWdi MjMxMiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hUTUwgNS4w MC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+DQo8Qk9E WSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIHNpemU9Mj5oZWxsbyB2dGsgZnJpZW5kczxC Uj5pIGRvbid0IGtub3cgd2hlcmUgY2FuIGkgZm91bmQgDQp2dGtDb2xvclNjYWxhcnMgY2xhc3Mu IGkgYW0gdmVyeSBnbGFkIHRvIGtub3cgaG93IGNhbiBpIGZvdW5kIGl0IG9yIHdoYXQncyBpdCdz IA0KcmVwbGFjZW1lbnQuPEJSPnRoYW5rcyBpbiBhZHZhbmNlPC9GT05UPjwvRElWPjwvQk9EWT48 L0hUTUw+DQo= ------=_NextPart_000_0047_01C23DFC.1E948CE0-- From wb@huahai.com.cn Wed Aug 7 04:14:30 2002 From: wb@huahai.com.cn (wb) Date: Wed, 7 Aug 2002 11:14:30 +0800 Subject: [vtkusers] Queston about vtkColorScalars class Message-ID: <00a901c23dc0$8b734e00$c30083c0@wb> This is a multi-part message in MIME format. ------=_NextPart_000_00A6_01C23E03.998A5900 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: base64 aGVsbG8gdnRrIGZyaWVuZHMNCmkgaGF2ZSBhIHRyb3VibGUgdGhhdCBpcyB3aGVyZSBpIGNhbiBm aW5kIHRoZSB2dGtDb2xvclNjYWxhcnMgY2xhc3MuSSBjYW4gZm91bmQgdGhlIHZ0a1NjYWxhcnMg Y2xhc3MuaSBhbSBnbGFkIHRoYXQgc29tZW9uZSBjYW4gdGVsbCBtZSB3aGVyZSBpIGNhbiBmaW5k IGl0IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50Lg0KdGhhbmtzIGluIGFkdmFuY2UNCg== ------=_NextPart_000_00A6_01C23E03.998A5900 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgY29udGVudD0idGV4dC9odG1sOyBjaGFyc2V0PXdp bmRvd3MtMTI1MiIgaHR0cC1lcXVpdj1Db250ZW50LVR5cGU+DQo8TUVUQSBjb250ZW50PSJNU0hU TUwgNS4wMC4yOTIwLjAiIG5hbWU9R0VORVJBVE9SPg0KPFNUWUxFPjwvU1RZTEU+DQo8L0hFQUQ+ DQo8Qk9EWSBiZ0NvbG9yPSNmZmZmZmY+DQo8RElWPjxGT05UIGZhY2U9JiMyMzQzNTsmIzIwMzA3 OyBzaXplPTI+aGVsbG8gdnRrIGZyaWVuZHM8L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIGZhY2U9 JiMyMzQzNTsmIzIwMzA3OyBzaXplPTI+aSBoYXZlIGEgdHJvdWJsZSB0aGF0IGlzIHdoZXJlIGkg Y2FuIGZpbmQgdGhlIA0KdnRrQ29sb3JTY2FsYXJzIGNsYXNzLkkgY2FuIGZvdW5kIHRoZSB2dGtT Y2FsYXJzIGNsYXNzLmkgYW0gZ2xhZCB0aGF0IHNvbWVvbmUgDQpjYW4gdGVsbCBtZSB3aGVyZSBp IGNhbiBmaW5kIGl0IG9yIHdoYXQncyBpdCdzIHJlcGxhY2VtZW50LjwvRk9OVD48L0RJVj4NCjxE SVY+PEZPTlQgZmFjZT0mIzIzNDM1OyYjMjAzMDc7IHNpemU9Mj50aGFua3MgaW4gYWR2YW5jZTwv Rk9OVD48L0RJVj48L0JPRFk+PC9IVE1MPg0K ------=_NextPart_000_00A6_01C23E03.998A5900-- From dykim@ns.kopec.co.kr Wed Aug 7 09:06:35 2002 From: dykim@ns.kopec.co.kr (=?ks_c_5601-1987?B?sei1tb+s?=) Date: Wed, 7 Aug 2002 17:06:35 +0900 Subject: [vtkusers] Timing gap for Animation Message-ID: <001201c23de9$59fe2f60$6d190dbf@kopec.co.kr> This is a multi-part message in MIME format. ------=_NextPart_000_000F_01C23E34.C9472660 Content-Type: text/plain; charset="ks_c_5601-1987" Content-Transfer-Encoding: base64 IA0KSGVsbG8gIQ0KDQpJIHdvdWxkIGxpa2Uga25vdyBob3cgY2FuIGkgYWRqdXN0IHRoZSByZW5k ZXJpbmcgdGltZSBpbiB0aGUgZXZlbnQgbG9vcCBmb3IgYW5pbWF0aW9uLg0KSW4gb3RoZXIgd29y ZCwgaSB3YW50IHRvIG1ha2UgYSB0aW1pbmcgZ2FwIGJldHdlZW4gZWFjaCBpbWFnZSBzZXF1ZW5j ZXMgZm9yIGFuaW1hdGlvbi4NCkFsc28sIGkgd2FudCB0byBzdG9wIHRoZSByZW5kZXJpbmcgaW1h Z2UgYW5kIGdvIHRvIHRoZSBuZXh0IGltYWdlIHVwb24gdGhlIGtleXByZXNzIG9yIG1vdXNlIGNs aWNrLg0KVGhhbmsgeW91IHZlcnkgbXVjaC4NCg0KQmVzdCBSZWdhcmRzLA0KDQpELiBZLiBLaW0N Cg== ------=_NextPart_000_000F_01C23E34.C9472660 Content-Type: text/html; charset="ks_c_5601-1987" Content-Transfer-Encoding: base64 PCFET0NUWVBFIEhUTUwgUFVCTElDICItLy9XM0MvL0RURCBIVE1MIDQuMCBUcmFuc2l0aW9uYWwv L0VOIj4NCjxIVE1MPjxIRUFEPg0KPE1FVEEgaHR0cC1lcXVpdj1Db250ZW50LVR5cGUgY29udGVu dD0idGV4dC9odG1sOyBjaGFyc2V0PWtzX2NfNTYwMS0xOTg3Ij4NCjxNRVRBIGNvbnRlbnQ9Ik1T SFRNTCA2LjAwLjI2MDAuMCIgbmFtZT1HRU5FUkFUT1I+DQo8U1RZTEU+PC9TVFlMRT4NCjwvSEVB RD4NCjxCT0RZIGJnQ29sb3I9I2ZmZmZmZj4NCjxESVY+PEZPTlQgc2l6ZT0yPiZuYnNwOw0KPERJ Vj48Rk9OVCBzaXplPTM+SGVsbG8gITwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPjwv Rk9OVD4mbmJzcDs8L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPkkgd291bGQgbGlrZSBrbm93IGhv dyBjYW4gaSBhZGp1c3QgdGhlIHJlbmRlcmluZyB0aW1lIGluIHRoZSANCmV2ZW50IGxvb3AgZm9y IGFuaW1hdGlvbi48L0ZPTlQ+PC9ESVY+DQo8RElWPjxGT05UIHNpemU9Mz5JbiBvdGhlciB3b3Jk LCBpIHdhbnQgdG8gbWFrZSBhIHRpbWluZyBnYXAgYmV0d2VlbiBlYWNoIGltYWdlIA0Kc2VxdWVu Y2VzIGZvciBhbmltYXRpb24uPC9GT05UPjwvRElWPg0KPERJVj48Rk9OVCBzaXplPTM+QWxzbywg aSB3YW50IHRvJm5ic3A7c3RvcCB0aGUgcmVuZGVyaW5nIGltYWdlIGFuZCBnbyB0byB0aGUgDQpu ZXh0IGltYWdlIHVwb24gdGhlIGtleXByZXNzIG9yIG1vdXNlIGNsaWNrLjwvRk9OVD48L0RJVj4N CjxESVY+PEZPTlQgc2l6ZT0zPlRoYW5rIHlvdSB2ZXJ5IG11Y2guPC9GT05UPjwvRElWPg0KPERJ Vj48Rk9OVCBzaXplPTM+PC9GT05UPiZuYnNwOzwvRElWPg0KPERJVj48Rk9OVCBzaXplPTM+QmVz dCBSZWdhcmRzLDwvRk9OVD48L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPjwvRk9OVD4mbmJzcDs8 L0RJVj4NCjxESVY+PEZPTlQgc2l6ZT0zPkQuIFkuIEtpbTwvRk9OVD48L0RJVj48L0ZPTlQ+PC9E SVY+PC9CT0RZPjwvSFRNTD4NCg== ------=_NextPart_000_000F_01C23E34.C9472660-- From hongwan@myrealbox.com Wed Aug 7 15:19:14 2002 From: hongwan@myrealbox.com (Ng Hong Wan) Date: Wed, 7 Aug 2002 22:19:14 +0800 Subject: [vtkusers] Discontinous Line Message-ID: <001601c23e1d$6e977ab0$0b01a8c0@hong> This is a multi-part message in MIME format. ------=_NextPart_000_0017_01C23E60.7CBABAB0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, After running thr marching cubes to generate iso surfaces, and vtkcutter to generate contours, the model suffers from a lot of discontinous lines even after I apply polydataconnectivity filter, is there anyway around this.. Thanks ------=_NextPart_000_0017_01C23E60.7CBABAB0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Discontinous Line

Hi,

After running thr marching cubes = to generate iso surfaces, and vtkcutter to generate contours, the model = suffers from  a lot of discontinous lines even = after = I apply polydataconnectivity = filter, is there anyway around this.. Thanks

------=_NextPart_000_0017_01C23E60.7CBABAB0-- From rgupta@imaging.robarts.ca Wed Aug 7 15:33:35 2002 From: rgupta@imaging.robarts.ca (Ravi Gupta) Date: Wed, 07 Aug 2002 10:33:35 -0400 Subject: [vtkusers] Compiling VTK on W2K without VC++ Message-ID: <3D512FBF.4030309@imaging.robarts.ca> Hi, I want to compile VTK on W2K without having to buy VC++ Pro for CD$140, VC++ Std has been discontinued. Does anyone have any suggestions or experience using other compilers, especially free ones. I would think that any command line compiler under a dos shell should do the job. All I need is the dlls. We do our development using Tkinter. Any help would be appreciated. Thanks Ravi -- Ravi Gupta Programmer ################################################# The John P. | P.O. Box 5015 Robarts Research Institute | 100 Perth Drive Imaging Research Laboratories | London Tel: (519) 663-5777 ext. 1-34077| Ontario Fa