From JBrunen at caddy.de Thu Mar 1 08:32:53 2001 From: JBrunen at caddy.de (Brunen, Johannes) Date: Thu, 1 Mar 2001 14:32:53 +0100 Subject: [vtkusers] ASIC file format (SAT) reader Message-ID: Dear VTK users, is there any information available how to read ASIC SAT files into vtk and to visualize them? Best regards, Johannes Brunen ZIEGLER-Informatics GmbH Johannes Brunen Software-Entwicklung Nobelstr. 3-5 41189 M?nchengladbach Tel.: 02166 / 955 789 Email: JBrunen at CADdy.de Internet: http://www.CADdy.de From karlson at stu.mech.titech.ac.jp Thu Mar 1 00:54:24 2001 From: karlson at stu.mech.titech.ac.jp (Kitya Karlson) Date: Thu, 01 Mar 2001 14:54:24 +0900 Subject: [vtkusers] simple question Message-ID: <3A9DE40F.75F82E0D@stu.mech.titech.ac.jp> Hello! I have a matrix and I want to visualisate it with different colors. Can I make it with vtk? Which class should I use for it? Thank you From faulhabe at ipf.uni-karlsruhe.de Thu Mar 1 10:18:21 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Thu, 01 Mar 2001 16:18:21 +0100 Subject: [vtkusers] Picking in Java? Message-ID: <3A9E683D.4A9E9F44@ipf.uni-karlsruhe.de> Hi, this is supposed to be simple, but I just can't find the solution: Using vtk with Java, I want to pick a point (Vertex/PolyData) and get the scalar value of this point. From the Picker I can get coordinates, ID, Actor and DataSet. Usually one gets the PointData from the DataSet and the Scalars from the PointData. But - these methods don't exist in the Java Wrappers! Does anyone have a workaround? I appreciate any help!!! Karin -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 Email: faulhaber at ipf.uni-karlsruhe.de From jnorris at csar.uiuc.edu Thu Mar 1 11:42:34 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Thu, 1 Mar 2001 10:42:34 -0600 Subject: [vtkusers] Possible bug in 3.2beta Message-ID: <20010301104234.A23225@gagarin.csar.uiuc.edu> Hello, I was browsing through the source for vtk3.2beta when I noticed this interesting piece of code in vtkDataSet.cxx: //---------------------------------------------------------------------------- // This copies all the local variables (but not objects). void vtkDataSet::InternalDataSetCopy(vtkDataSet *src) { int idx; this->ComputeTime = src->ComputeTime; this->ScalarRange[0] = src->ScalarRange[0]; this->ScalarRange[1] = src->ScalarRange[1]; for (idx = 0; idx < 3; ++idx) { this->Bounds[idx] = src->Bounds[idx]; this->Bounds[idx*2] = src->Bounds[idx*2]; } } I think that this for loop must be messed up. If you unroll it, you get this: this->Bounds[0] = src->Bounds[0]; this->Bounds[0] = src->Bounds[0]; this->Bounds[1] = src->Bounds[1]; this->Bounds[2] = src->Bounds[2]; this->Bounds[2] = src->Bounds[2]; this->Bounds[4] = src->Bounds[4]; This doesn't really make any sense. Some bounds are copied twice, and some aren't copied at all. John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From arindamb at caip.rutgers.edu Thu Mar 1 12:26:37 2001 From: arindamb at caip.rutgers.edu (Arindam Bhattacharya) Date: Thu, 1 Mar 2001 12:26:37 -0500 (EST) Subject: [vtkusers] problem with vrmlwriter Message-ID: Hello, I am facing a problem with vtkVRMLWrter.. if use a filepointer to write to a file like FILE *myfile; myfile=fopen("myfile.wrl","w"); fprintf(myfile,"Content-type: x-world/x-vrml\n"); fprintf(myfile,"Pragma: no-cache\n\n"); writer->SetFileName("myfile.wrl"); renWin->SetSize( 300, 300 ); renWin->Render(); writer->Write(); this gives me an error as it fails in Write .. DO I have to initialise anything else ?? regards Arindam From arindamb at caip.rutgers.edu Thu Mar 1 12:28:19 2001 From: arindamb at caip.rutgers.edu (Arindam Bhattacharya) Date: Thu, 1 Mar 2001 12:28:19 -0500 (EST) Subject: [vtkusers] typo in previous mail Message-ID: Hi, Sorry there was a typo in the code i ad sent previously.. This is the right code.. FILE *myfile; myfile=fopen("myfile.wrl","w"); fprintf(myfile,"Content-type: x-world/x-vrml\n"); fprintf(myfile,"Pragma: no-cache\n\n"); writer->SetFileName(myfile); renWin->SetSize( 300, 300 ); renWin->Render(); writer->Write(); this gives me an error as it fails in Write .. DO I have to initialise anything else ?? regards Arindam From sbissoo2 at hotmail.com Thu Mar 1 13:46:54 2001 From: sbissoo2 at hotmail.com (Shiva Bissoon) Date: Thu, 01 Mar 2001 18:46:54 -0000 Subject: [vtkusers] vtkcutter help? Message-ID: Hi all, I am having problems using vtkcutter and I was hoping I could get some help.I have created a box using tcl commands...simply the cubesource and I have placed some particle that are ellipsoids.I wanted to cut the particles and be able to display them on a separate window.I was able to use vtkcutter and set the input to be the cube but that gives me an outline of the cutter when displayed in the rendered window and there appears to be no filling in between.I used vtkplane as my cut function. It also does nothing to the particles inside, i.e they appear uncut and I can't see a plane passing through them.The cutter is easy to mainupulate but it is useless in seeing the particles it passes through. I also tried inputing the particles I created but that does nothing. Can someone suggest an alternative?Is vtkcutter only good for datasets and not for sources?Any help would be appreciated. Thanks in advance, Shiva _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From Dieter.Nuetzel at hamburg.de Thu Mar 1 14:30:23 2001 From: Dieter.Nuetzel at hamburg.de (Dieter =?iso-8859-1?q?N=FCtzel?=) Date: Thu, 1 Mar 2001 20:30:23 +0100 Subject: [vtkusers] VTK CVS for SuSE 7.1 (Tcl 8.3 and Python 2.0)? Message-ID: <01030120302300.00318@sunwave1> Hello Will, I've switched my system over to SuSE 7.1 and have the above versions, now. Are they compatible with the current CVS code? I get this compilation error (I think it is not related...). make[1]: Entering directory `/opt/VTK/vtk/common' c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB -I./../common -I../common -I/opt/jdk/include -I/opt/jdk/include/linux -I/usr/include/python2.0 -c vtkOverrideInformation.cxx -o vtkOverrideInformation.o vtkOverrideInformation.cxx: In method `void vtkOverrideInformation::PrintSelf(ostream &, vtkIndent)': vtkOverrideInformation.cxx:93: initialization of non-const reference type `class vtkIndent &' vtkOverrideInformation.cxx:93: from rvalue of type `vtkIndent' vtkIndent.h:71: in passing argument 2 of `operator <<(ostream &, vtkIndent &)' make[1]: *** [vtkOverrideInformation.o] Error 1 make[1]: Leaving directory `/opt/VTK/vtk/common' make: *** [build_common] Error 2 Thanks Dieter -- Dieter N?tzel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-K?lln-Stra?e 30 D-22527 Hamburg, Germany email: nuetzel at kogs.informatik.uni-hamburg.de @home: Dieter.Nuetzel at hamburg.de From vmoskvin at RADONC.uh.iupui.edu Thu Mar 1 15:19:10 2001 From: vmoskvin at RADONC.uh.iupui.edu (Vadim Moskvin) Date: Thu, 1 Mar 2001 15:19:10 EST Subject: [vtkusers] vtkImageRegion equivalent Message-ID: Hi, How possible to refer to a region of the data within vtkImageData object like it was done with vtkImageRegion in version 2.x? Thanks Vadim From whv88240 at Bayou.UH.EDU Thu Mar 1 15:14:41 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Thu, 1 Mar 2001 14:14:41 -0600 (CST) Subject: [vtkusers] To Editors: error in User's Guide Message-ID: I think there is an error in the VTK3.1 User's Guide, February 2000, p32. It says : "If you built VTK incrementally you will need to add all of the library files vtkCommon.lib, vtkGraphics0.lib, vtkGraphics1.lib, ect." I tried this in Visual Studio 6.0 C++, NT 4.0, but building got me LINK : fatal error LNK1104: cannot open file "vtkCommon.lib" Error executing link.exe. What worked for me instead, was adding vtkbin\lib to the Directories. Tools > Options > Directories > Show directories for: Library files > Directories: C:\vtkbin\lib This built and ran fine. Wolfv. From bill.hoffman at kitware.com Thu Mar 1 15:18:25 2001 From: bill.hoffman at kitware.com (William A. Hoffman) Date: Thu, 01 Mar 2001 15:18:25 -0500 Subject: [vtkusers] VTK CVS for SuSE 7.1 (Tcl 8.3 and Python 2.0)? In-Reply-To: <01030120302300.00318@sunwave1> Message-ID: <5.0.2.1.0.20010301151751.00a8a730@pop.nycap.rr.com> I just checked in a new vtkOverrideInformation.cxx file, it should fix the problem. -Bill At 08:30 PM 3/1/2001 +0100, Dieter N?tzel wrote: >Hello Will, > >I've switched my system over to SuSE 7.1 and have the above versions, now. >Are they compatible with the current CVS code? > >I get this compilation error (I think it is not related...). > >make[1]: Entering directory `/opt/VTK/vtk/common' >c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 >-fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. -I./../graphics >-DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented >-DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB -I./../common >-I../common -I/opt/jdk/include -I/opt/jdk/include/linux >-I/usr/include/python2.0 -c vtkOverrideInformation.cxx -o >vtkOverrideInformation.o >vtkOverrideInformation.cxx: In method `void >vtkOverrideInformation::PrintSelf(ostream &, vtkIndent)': >vtkOverrideInformation.cxx:93: initialization of non-const reference type >`class vtkIndent &' >vtkOverrideInformation.cxx:93: from rvalue of type `vtkIndent' >vtkIndent.h:71: in passing argument 2 of `operator <<(ostream &, vtkIndent &)' >make[1]: *** [vtkOverrideInformation.o] Error 1 >make[1]: Leaving directory `/opt/VTK/vtk/common' >make: *** [build_common] Error 2 > >Thanks > Dieter > >-- >Dieter N?tzel >Graduate Student, Computer Science > >University of Hamburg >Department of Computer Science >Cognitive Systems Group >Vogt-K?lln-Stra?e 30 >D-22527 Hamburg, Germany > >email: nuetzel at kogs.informatik.uni-hamburg.de >@home: Dieter.Nuetzel at hamburg.de > >_______________________________________________ >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 Dieter.Nuetzel at hamburg.de Thu Mar 1 15:49:44 2001 From: Dieter.Nuetzel at hamburg.de (Dieter =?iso-8859-1?q?N=FCtzel?=) Date: Thu, 1 Mar 2001 21:49:44 +0100 Subject: [vtkusers] VTK CVS for SuSE 7.1 (Tcl 8.3 and Python 2.0)? In-Reply-To: References: Message-ID: <01030121494400.01100@sunwave1> Am Donnerstag, 1. M?rz 2001 20:40 schrieb David Gobbi: > Hi Dieter, > > Since the problem is with the compiler, please enlighten us on which > version of gcc you are using. > > gcc -v I know that one. 've used a self compiled gcc-2.95.2 for ages before...:-) > As far as I know, VTK only compiles with gcc-2.91.66 (egcs-1.1.2) > or with gcc-2.95. It will not compile with the gcc-2.96 (unstable!) > that comes with RedHat-7.0 unless you also download their latest gcc > patch. I don't know what version of gcc is shipped by SuSE. /home/nuetzel> gcc --version 2.95.2 /home/nuetzel> gcc -v Reading specs from /usr/lib/gcc-lib/i486-suse-linux/2.95.2/specs gcc version 2.95.2 19991024 (release) /home/nuetzel> ld -V GNU ld version 2.10.91 (with BFD 2.10.0.33) Supported emulations: elf_i386 i386linux glibc-2.2 -Dieter > On Thu, 1 Mar 2001, Dieter [iso-8859-1] N?tzel wrote: > > Hello Will, > > > > I've switched my system over to SuSE 7.1 and have the above versions, > > now. Are they compatible with the current CVS code? > > > > I get this compilation error (I think it is not related...). > > > > make[1]: Entering directory `/opt/VTK/vtk/common' > > c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 > > -fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. > > -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING > > -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB > > -I./../common -I../common -I/opt/jdk/include -I/opt/jdk/include/linux > > -I/usr/include/python2.0 -c vtkOverrideInformation.cxx -o > > vtkOverrideInformation.o > > vtkOverrideInformation.cxx: In method `void > > vtkOverrideInformation::PrintSelf(ostream &, vtkIndent)': > > vtkOverrideInformation.cxx:93: initialization of non-const reference type > > `class vtkIndent &' > > vtkOverrideInformation.cxx:93: from rvalue of type `vtkIndent' > > vtkIndent.h:71: in passing argument 2 of `operator <<(ostream &, > > vtkIndent &)' make[1]: *** [vtkOverrideInformation.o] Error 1 > > make[1]: Leaving directory `/opt/VTK/vtk/common' > > make: *** [build_common] Error 2 > > > > Thanks > > Dieter From tarifa at rpi.edu Thu Mar 1 15:54:37 2001 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Thu, 1 Mar 2001 15:54:37 -0500 Subject: [vtkusers] 2D/3D Threshold and link filters Message-ID: <004c01c0a291$d83e19c0$74d9a918@nycap.rr.com> Hello, I sent the appended message to the list about a week ago but got rejected because I attached the source code with the message and the email got big. Anyways, I put the classes in the following web-site for download. If anyone is interested, you can download them from the web. Asad Hi vtkers, I developed two classes that threshold a gradient image and link it using two thresholds, strong and weak thresholds. They are attached to this email. Now, I'll start by describing the intuition behind those two classes and the basic idea. Then, I'll show the old pipeline (the one that's usually used) and the new one (using one of the two classes attached). I hope that those clases will be helpful to someone. I'll be happy to answer any questions!! Regards, Asad ___________________________________________________ / Asad A. Abu-Tarif \ | Computer Engineering. | | PhD Candidate, Rensselaer Polytechnic Institute (RPI). | | Research Assistant, NYS Center for Automated Technologies | | tarifa at rpi.edu | | Tel (O): 518-276-2991 | | Fax: 313-557-6100 | \____________________________________________________/ ================================================================ * Intuition and Basic Idea: After finding the gradient of an image, thresholding is usually the next step. However, in a lot of practical applications you can't find a single threshold that can give satisfactory results. On the other hand, it is usually easier to find a threshold value at which the resulting thresholded image will have all correct edgels and no false ones but it won't find all of the correct edgels (false negative, if you well). It is also possible to find another smaller threshold value where all the good edgels are included but you've added few false edgels in the mix (false positive). Having said that, a more clever thresholding approach would be to threshold using the strong threshold (that results in the false negative case). Then, try to extend (link) the edgels using the weak threshold. Finally, for each set of connected edgels, if the total number of edgels in that link (connected set of edgels) is less than a certain length value, then discard that link and all of its edgels. The two attached classes perform exactly this operation. The difference between the two is that vtkLinkIn2DandThreshold tries to extend (link) edgels in the same slice. In other words, it links edgels in 2D. On the other hand, vtkLinkIn3DandThreshold tries to extend (link) edgels in the same volume. In other words, it links edgels in 3D. It remains to say that in vtkLinkIn2DandThreshold I used 8 neighbors to connectivity. In vtkLinkIn3DandThreshold I used 26 neighbors for connectivity. ================================================================ * Old pipeline: vtkImageGradient *gradient=vtkImageGradient::New(); gradient->SetInput(InputData); vtkImageGradientMagnitude *gradientmagnitude=vtkImageGradientMagnitude::New(); gradientmagnitude->SetInput(InputData); vtkImageNonMaximumSuppression *suppress=vtkImageNonMaximumSuppression::New(); suppress->SetVectorInput(gradient); suppress->SetMagnitudeInput(gradientmagnitude); vtkImageThreshold *theshold=vtkImageThreshold::New(); threshold->SetInput(suppress->GetOutput()); threshold->ThresholdByLower(thresholdvalue); // then you can display the result or pass it through other filters. ================================================================ * New pipeline (using either vtkLinkIn2DandThreshold or vtkLinkIn3DandThreshold): vtkImageGradient *gradient=vtkImageGradient::New(); gradient->SetInput(InputData); vtkImageGradientMagnitude *gradientmagnitude=vtkImageGradientMagnitude::New(); gradientmagnitude->SetInput(InputData); vtkImageNonMaximumSuppression *suppress=vtkImageNonMaximumSuppression::New(); suppress->SetVectorInput(gradient); suppress->SetMagnitudeInput(gradientmagnitude); vtkLinkIn3DandThreshold *theshold=vtkLinkIn3DandThreshold::New(); // or you can use vtkLinkIn2DandThreshold threshold->SetInput(suppress->GetOutput()); threshold->SetStrongThreshold(strong_threshold_value); threshold->SetWeakThreshold(weak_threshold_value); threshold->SetShortestLink(shortest_link_value); // then you can display the result or pass it through other filters. From tarifa at rpi.edu Thu Mar 1 18:59:36 2001 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Thu, 1 Mar 2001 18:59:36 -0500 Subject: [vtkusers] 2D/3D Threshold and link filters References: <004c01c0a291$d83e19c0$74d9a918@nycap.rr.com> <3A9EDFFB.4390CBC9@rainbow.es.dupont.com> Message-ID: <007001c0a2ab$abcdc330$74d9a918@nycap.rr.com> Oops, I'm sorry. The web-site is: http://asad.dnsq.org/Downloads/ The file names are as mentioned in the email. Asad ----- Original Message ----- From: David E. Jones To: Asad A. Abu-Tarif Sent: Thursday, March 01, 2001 6:49 PM Subject: Re: [vtkusers] 2D/3D Threshold and link filters Asad A. Abu-Tarif wrote: Hello, I sent the appended message to the list about a week ago but got rejected because I attached the source code with the message and the email got big. Anyways, I put the classes in the following web-site for download. If anyone is interested, you can download them from the web. Asad Hi vtkers, I developed two classes that threshold a gradient image and link it using two thresholds, strong and weak thresholds. They are attached to this email. Now, I'll start by describing the intuition behind those two classes and the basic idea. Then, I'll show the old pipeline (the one that's usually used) and the new one (using one of the two classes attached). I hope that those clases will be helpful to someone. I'll be happy to answer any questions!! Regards, Asad ___________________________________________________ / Asad A. Abu-Tarif \ | Computer Engineering. | | PhD Candidate, Rensselaer Polytechnic Institute (RPI). | | Research Assistant, NYS Center for Automated Technologies | | tarifa at rpi.edu | | Tel (O): 518-276-2991 | | Fax: 313-557-6100 | \____________________________________________________/ ================================================================ * Intuition and Basic Idea: After finding the gradient of an image, thresholding is usually the next step. However, in a lot of practical applications you can't find a single threshold that can give satisfactory results. On the other hand, it is usually easier to find a threshold value at which the resulting thresholded image will have all correct edgels and no false ones but it won't find all of the correct edgels (false negative, if you well). It is also possible to find another smaller threshold value where all the good edgels are included but you've added few false edgels in the mix (false positive). Having said that, a more clever thresholding approach would be to threshold using the strong threshold (that results in the false negative case). Then, try to extend (link) the edgels using the weak threshold. Finally, for each set of connected edgels, if the total number of edgels in that link (connected set of edgels) is less than a certain length value, then discard that link and all of its edgels. The two attached classes perform exactly this operation. The difference between the two is that vtkLinkIn2DandThreshold tries to extend (link) edgels in the same slice. In other words, it links edgels in 2D. On the other hand, vtkLinkIn3DandThreshold tries to extend (link) edgels in the same volume. In other words, it links edgels in 3D. It remains to say that in vtkLinkIn2DandThreshold I used 8 neighbors to connectivity. In vtkLinkIn3DandThreshold I used 26 neighbors for connectivity. ================================================================ * Old pipeline: vtkImageGradient *gradient=vtkImageGradient::New(); gradient->SetInput(InputData); vtkImageGradientMagnitude *gradientmagnitude=vtkImageGradientMagnitude::New(); gradientmagnitude->SetInput(InputData); vtkImageNonMaximumSuppression *suppress=vtkImageNonMaximumSuppression::New(); suppress->SetVectorInput(gradient); suppress->SetMagnitudeInput(gradientmagnitude); vtkImageThreshold *theshold=vtkImageThreshold::New(); threshold->SetInput(suppress->GetOutput()); threshold->ThresholdByLower(thresholdvalue); // then you can display the result or pass it through other filters. ================================================================ * New pipeline (using either vtkLinkIn2DandThreshold or vtkLinkIn3DandThreshold): vtkImageGradient *gradient=vtkImageGradient::New(); gradient->SetInput(InputData); vtkImageGradientMagnitude *gradientmagnitude=vtkImageGradientMagnitude::New(); gradientmagnitude->SetInput(InputData); vtkImageNonMaximumSuppression *suppress=vtkImageNonMaximumSuppression::New(); suppress->SetVectorInput(gradient); suppress->SetMagnitudeInput(gradientmagnitude); vtkLinkIn3DandThreshold *theshold=vtkLinkIn3DandThreshold::New(); // or you can use vtkLinkIn2DandThreshold threshold->SetInput(suppress->GetOutput()); threshold->SetStrongThreshold(strong_threshold_value); threshold->SetWeakThreshold(weak_threshold_value); threshold->SetShortestLink(shortest_link_value); // then you can display the result or pass it through other filters. I'd like to try your classes for work in 3D segmentation for microtomgraphy. >Anyways, I put the classes in the following web-site for download. Did I overlook the web-site name ? I can't find it in the message I received. Thanks in advance. Dave -- David E Jones Du Pont Central Research Experimental Station, Bldg 320 Wilmington, DE 19880-0320 -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.maclean at acfr.usyd.edu.au Thu Mar 1 19:42:01 2001 From: a.maclean at acfr.usyd.edu.au (Andrew Maclean) Date: Fri, 2 Mar 2001 11:42:01 +1100 Subject: [vtkusers] The locus of the intersection of n surfaces Message-ID: Can anyone give me some hints on how to calculate the intersection of two or more surfaces? In other words I want the ?object? that results from the locus of points common to the surfaces. Probing seems to return a band mapped onto the input surface consisting of the scalar range of the source surface. So if the source was planar this would be Ok. Thanks Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From graphix at iastate.edu Thu Mar 1 22:36:16 2001 From: graphix at iastate.edu (Kent Vander Velden) Date: Thu, 01 Mar 2001 21:36:16 CST Subject: [vtkusers] Visual C++ Build Message-ID: <200103020336.VAA25828@isua4.iastate.edu> Hi. I apologize for asking these questions since it likely one that has been answered several time before or one that would be easy to answer if Visual C++ was my normal build environment. I have build vtk-nightly from source code into a non-debug, non-incremental dll. Now, I am working on an application that uses vtk with in the Visual C++ environment. First off, does either VTKDLL or VTKNODLL need to be defined in the build of a user's application? If so, what are they for? They do not seem to have an affect. Next, whenever I build with UNICODE defined (seems to be the default) I get a few undefined symbols at link time. If I remove this define and rebuild the application links. Any idea about this? Did I build vtk incorrectly? Finally, when I link my application I get a message that libcmt conflicts with other libraries and the suggestion is that I add a /nodefaultlibrary: line to the link. I am pretty sure that vtk was build as a multithreaded dll. My application can be built either way but I make no explicit use of threads. Another library, Qt, has been build as a single threaded dll. Is there any harm in mixing single and multi threaded dlls like this? Must vtk be built as a multi-threaded dll? Does it matter if my application is built single or multi threaded? Thanks for taking the time to read this. I have spent a lot of time in a trail and error mode building my application that was developed on Linux in a Windows environment. I just want to make certain that I am doing this properly and that there will not be problems in the further as a result of a hack that I did today. --- Kent Vander Velden kent at iastate.edu From Oliver.Fleig at univ-rennes1.fr Fri Mar 2 06:04:35 2001 From: Oliver.Fleig at univ-rennes1.fr (Oliver Fleig) Date: Fri, 02 Mar 2001 12:04:35 +0100 Subject: [vtkusers] problem with vrmlwriter References: Message-ID: <3A9F7E43.7010603@univ-rennes1.fr> Arindam Bhattacharya wrote: > Hello, > I am facing a problem with vtkVRMLWrter.. if use a filepointer to > write to a file like > > FILE *myfile; > myfile=fopen("myfile.wrl","w"); > fprintf(myfile,"Content-type: x-world/x-vrml\n"); > fprintf(myfile,"Pragma: no-cache\n\n"); > writer->SetFileName("myfile.wrl"); > renWin->SetSize( 300, 300 ); > renWin->Render(); > writer->Write(); > > this gives me an error as it fails in Write .. DO I have to initialise > anything else ?? Try to close the file before you attempt to write to it in aother process. Cheers Oliver -- Oliver Fleig Laboratoire SIM +33 2 99 33 68 63 mailto:Oliver.Fleig at univ-rennes1.fr http://sim3.univ-rennes1.fr/users/fleig From cmarbur at iti.upv.es Fri Mar 2 06:39:59 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Fri, 2 Mar 2001 12:39:59 +0100 (CET) Subject: [vtkusers] Clipping and cutting more than one actor? Message-ID: Hi all. I have a renderer with some actors and I need to use a plane to cut them. I have done it with one actor but I don't know how can I do it whith more than one. Could you help me? I'm programming in Java, but I have noticed that some methods are not implemented in the wrappers, like GetBounds in vtkProp3D. Is it an error? Then, how can I obtain the bound of an actor? Thanks. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From will.schroeder at kitware.com Fri Mar 2 06:53:50 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 02 Mar 2001 06:53:50 -0500 Subject: [vtkusers] The locus of the intersection of n surfaces In-Reply-To: Message-ID: <5.0.2.1.0.20010302064513.00a7cfc0@pop.nycap.rr.com> Hi Andrew- At 11:42 AM 3/2/2001 +1100, Andrew Maclean wrote: >Can anyone give me some hints on how to calculate the intersection of two >or more surfaces? In other words I want the object that results from the >locus of points common to the surfaces. vtkHull has the ability to generate convex surfaces from the intersection of convex surfaces, where each surface is represented by one or more planes. See the example graphics/examplesTcl/hull.tcl. Will William J. Schroeder, Ph.D. Kitware, Inc. VTK-Based Visualization Solutions 469 Clifton Corporate Parkway Clifton Park, NY 12065 USA will.schroeder at kitware.com http://www.kitware.com 1-518-371-3971 x102 -------------- next part -------------- An HTML attachment was scrubbed... URL: From heiland at ncsa.uiuc.edu Fri Mar 2 10:22:02 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Fri, 2 Mar 2001 09:22:02 -0600 Subject: [vtkusers] Clipping and cutting more than one actor? In-Reply-To: Carlos Martinez Burgos "[vtkusers] Clipping and cutting more than one actor?" (Mar 2, 12:39pm) References: Message-ID: <1010302092202.ZM29027@sangamon.ncsa.uiuc.edu> > I'm programming in Java, but I have noticed that some methods are not > implemented in the wrappers, like GetBounds in vtkProp3D. Is it an > error? Then, how can I obtain the bound of an actor? The following snippet works in my version (3.2) of VTK: vtkOutlineFilter outline = new vtkOutlineFilter(); outline.SetInput(cone.GetOutput()); outline.Update(); vtkPolyDataMapper outlineMapper = new vtkPolyDataMapper(); outlineMapper.SetInput(outline.GetOutput()); vtkActor outlineActor = new vtkActor(); outlineActor.SetMapper(outlineMapper); outlineActor.GetProperty().SetColor(0,0,0); double bds[] = outlineActor.GetMapper().GetInputAsDataSet().GetBounds(); System.out.println("bds=" + bds[0] +","+bds[1]); // etc... --Randy From jsn_lee at hotmail.com Fri Mar 2 10:50:41 2001 From: jsn_lee at hotmail.com (Jason Lee) Date: Fri, 02 Mar 2001 15:50:41 -0000 Subject: [vtkusers] transformation problem.. Message-ID: I am trying to perform scaling transformation on STRUCTURED_POINTS data...but doesn'twork, although rotation works fine... Can anyone look at the code and tell me what I am doing wrong..? ....... vtkStructuredPointsGeometryFilter toGeometry toGeometry SetInput [reader GetStructuredPointsOutput] vtkTransform nerveTransform nerveTransform Scale 20.0 20.0 1.0 nerveTransform RotateX 180.0 vtkTransformFilter nerveTransformFilter nerveTransformFilter SetInput [toGeometry GetOutput] nerveTransformFilter SetTransform nerveTransform ...................... thanks...Jason.. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From ganguly at acsu.buffalo.edu Fri Mar 2 11:33:25 2001 From: ganguly at acsu.buffalo.edu (Chandragupta Ganguly) Date: Fri, 2 Mar 2001 11:33:25 -0500 (EST) Subject: [vtkusers] Need help regarding running VTK examples In-Reply-To: <200103021548.KAA23137@public.kitware.com> Message-ID: HI I am new to VTK. I am successfully installed vtk. However when I run an example from my home dir the following is the error I get. any help is appreciated thanks chandra vtk /contrib/vtk/graphics/examplesTcl/Cone.tcl Error in startup script: couldn't read file "../../examplesTcl/vtkInt.tcl": no such file or directory while executing "source $VTK_TCL/vtkInt.tcl" (file "/contrib/vtk/graphics/examplesTcl/Cone.tcl" line 6) From anast.jm at pg.com Fri Mar 2 12:06:40 2001 From: anast.jm at pg.com (anast.jm at pg.com) Date: Fri, 2 Mar 2001 12:06:40 -0500 Subject: [vtkusers] Need help regarding running VTK examples Message-ID: $VTK_TCL is your enviroment variable that is added to /vtkInt.tcl. This probably does not point to the actual directory where vtkInt.tcl is located. Either copy the file to where the script expects it be or change the line to point to the file's correct location or fix the environement variable....john Internet Mail Message Received from host: public.kitware.com [208.136.18.25] From: Chandragupta Ganguly @public.kitware.com on 03/02/2001 11:33 AM Chandragupta Ganguly To: vtkusers at public.kitware.com @public.kitware.com Cc: (bcc: John Anast-JM/PGI) Subject: [vtkusers] Need help regarding running VTK examples Sent by: vtkusers-admin at public.kitware.com 03/02/2001 11:33 AM HI I am new to VTK. I am successfully installed vtk. However when I run an example from my home dir the following is the error I get. any help is appreciated thanks chandra vtk /contrib/vtk/graphics/examplesTcl/Cone.tcl Error in startup script: couldn't read file "../../examplesTcl/vtkInt.tcl": no such file or directory while executing "source $VTK_TCL/vtkInt.tcl" (file "/contrib/vtk/graphics/examplesTcl/Cone.tcl" line 6) _______________________________________________ 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 jsn_lee at hotmail.com Fri Mar 2 12:13:09 2001 From: jsn_lee at hotmail.com (Jason Lee) Date: Fri, 02 Mar 2001 17:13:09 -0000 Subject: [vtkusers] Need help regarding running VTK examples Message-ID: Have you set the env variable $VTK_TCL ..look at the second line in your file (cone.tcl) ..it looks like this.. ..... catch {load vtktcl} if { [catch {set VTK_TCL $env(VTK_TCL)}] != 0} { set VTK_TCL "../../examplesTcl" } ........ make sure that VTK_TCL points to the right directory...or check for the availabilty of file vtkInt.tcl in examplesTcl dir.... ..it's just an IO problem not VTK.... cheers..Jason... >From: Chandragupta Ganguly To: vtkusers at public.kitware.com Subject: >[vtkusers] Need help regarding running VTK examples Date: Fri, 2 Mar 2001 >11:33:25 -0500 (EST) > >HI I am new to VTK. I am successfully installed vtk. However when I run an >example from my home dir the following is the error I get. any help is >appreciated thanks chandra > > >vtk /contrib/vtk/graphics/examplesTcl/Cone.tcl Error in startup script: >couldn't read file "../../examplesTcl/vtkInt.tcl": no such file or >directory while executing "source $VTK_TCL/vtkInt.tcl" (file >"/contrib/vtk/graphics/examplesTcl/Cone.tcl" line 6) > > >_______________________________________________ This is the private VTK >discussion list. Please keep messages on-topic. Check the FAQ at: Follow >this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From ganguly at acsu.buffalo.edu Fri Mar 2 12:54:11 2001 From: ganguly at acsu.buffalo.edu (Chandragupta Ganguly) Date: Fri, 2 Mar 2001 12:54:11 -0500 (EST) Subject: [vtkusers] Need help regarding running VTK examples In-Reply-To: Message-ID: Hi I am finally able to get VTK started. If I type vtk at the prompt, a fresh window comes up. However, I am not able to run the example files or the files from vtk20data.part1.tar.gz these are the errors I get: vtk hello.vtk Error in startup script: invalid command name "Stroked" while executing "Stroked lines spell hello..." (file "hello.vtk" line 2) any help is appreciated thanks Chandra From prabhu at aero.iitm.ernet.in Fri Mar 2 13:20:59 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 2 Mar 2001 23:50:59 +0530 (IST) Subject: [vtkusers] Need help regarding running VTK examples In-Reply-To: References: Message-ID: <15007.58507.213200.216471@monster.linux.in> hi, >>>>> "Chandragupta" == Chandragupta Ganguly writes: Chandragupta> these are the errors I get: Chandragupta> vtk hello.vtk Error in startup script: invalid Chandragupta> command name "Stroked" while executing "Stroked Chandragupta> lines spell hello..." (file "hello.vtk" line 2) hello.vtk is not a tcl script - it is a datafile and you shouldnt run vtk hello.vtk Look for scripts like Cone.tcl and run them instead like so: $ vtk Cone.tcl this should work. prabhu -- It is never wise to turn aside from knowing, however the knowing comes. -- Merlinus Ambrosius, "The Hollow Hills", [Mary Stewart] From ganguly at acsu.buffalo.edu Fri Mar 2 14:50:04 2001 From: ganguly at acsu.buffalo.edu (Chandragupta Ganguly) Date: Fri, 2 Mar 2001 14:50:04 -0500 (EST) Subject: [vtkusers] Core dump in Cone.tcl In-Reply-To: Message-ID: HI I am running vtk and am getting a core dump for the command vtk /opt/vtk/graphics/examplesTcl/Cone.tcl the trace stack is #0 0x40ebe6d0 in glXGetCurrentContext () from /usr/lib/libGL.so.1 (gdb) where #0 0x40ebe6d0 in glXGetCurrentContext () from /usr/lib/libGL.so.1 #1 0x40ebe6a8 in glXGetCurrentContext () from /usr/lib/libGL.so.1 #2 0x40966f20 in vtkOpenGLRenderWindow::WindowInitialize () from /usr/lib/libVTKGraphics.so #3 0x409682fc in vtkOpenGLRenderWindow::Initialize () from /usr/lib/libVTKGraphics.so #4 0x40965f9b in vtkOpenGLRenderWindow::Start () from /usr/lib/libVTKGraphics.so #5 0x405b8034 in vtkXRenderWindowTclInteractor::Initialize () from /usr/lib/libVTKGraphicsTcl.so #6 0x4061c4e5 in vtkRenderWindowInteractorCppCommand () from /usr/lib/libVTKGraphicsTcl.so #7 0x4061c281 in vtkRenderWindowInteractorCommand () from /usr/lib/libVTKGraphicsTcl.so #8 0x410bb869 in TclInvokeStringCommand () from /usr/lib/libtcl8.3.so #9 0x410f62e1 in EvalObjv () from /usr/lib/libtcl8.3.so #10 0x410f69eb in Tcl_EvalEx () from /usr/lib/libtcl8.3.so #11 0x410ed65a in Tcl_EvalFile () from /usr/lib/libtcl8.3.so #12 0x41014a65 in Tk_MainEx () from /usr/lib/libtk8.3.so #13 0x8048b77 in main () #14 0x41307b65 in __libc_start_main (main=0x8048b3c
, argc=2, any ideas as to what the problem is thanks chandra From jnorris at csar.uiuc.edu Fri Mar 2 18:16:20 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Fri, 2 Mar 2001 17:16:20 -0600 Subject: [vtkusers] vtk3.2beta bug Message-ID: <20010302171620.A24075@gagarin.csar.uiuc.edu> Hello, vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell information. If you use this->GetOutput()->ShallowCopy(this->GetInput()); in a custom filter derived from vtkUnstructuredGridToUnstructuredGridFilter, the output will have the points and point data, but no cells. John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From will.schroeder at kitware.com Sat Mar 3 08:16:44 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Sat, 03 Mar 2001 08:16:44 -0500 Subject: [vtkusers] Web sites down for Saturday Message-ID: <5.0.2.1.0.20010303081543.025dba78@pop.nycap.rr.com> Just a quick note. Kitware is moving this weekend so the web site and mailing lists will be down on and off this weekend. - Thanks - Ken From wlorens1 at nycap.rr.com Sat Mar 3 12:36:30 2001 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 03 Mar 2001 12:36:30 -0500 Subject: [vtkusers] vtk3.2beta bug In-Reply-To: <20010302171620.A24075@gagarin.csar.uiuc.edu> Message-ID: <4.2.2.20010303123443.019014d0@pop.nycap.rr.com> John, Has the filter been Updated with the Update method at the point of your copy? I did notice that we do not print out the cells counts in the Print method. I just tried the ShallowCopy in one of our tests and it seemed fine. Bill At 05:16 PM 3/2/01 -0600, johnny carroll norris wrote: >Hello, > >vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell information. >If you use > > this->GetOutput()->ShallowCopy(this->GetInput()); > >in a custom filter derived from vtkUnstructuredGridToUnstructuredGridFilter, >the output will have the points and point data, but no cells. > >John >-- >John Norris >Research Programmer >Center for Simulation of Advanced Rockets >http://www.uiuc.edu/ph/www/jnorris > >_______________________________________________ >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 at cdnorthamerica.com Sat Mar 3 13:30:47 2001 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Sat, 03 Mar 2001 13:30:47 -0500 Subject: [vtkusers] vtk3.2beta bug References: <20010302171620.A24075@gagarin.csar.uiuc.edu> Message-ID: <3AA13857.87EA66D8@cdnorthamerica.com> Hi, vtkUnstructuredGrid::ShallowCopy fails to copy through anything but points if the vtkDataObject that you pass through doesn't downcast safely to a vtkUnstructuredGrid. That means that "this->GetInput()" must either be a vtkUnstructuredGrid, or a subclass of vtkUnstructuredGrid. Currently, there is no sublcass of vtkUnstructuredGrid unless you wrote one, so my guess is that whatever you're passing ShallowCopy is not a vtkUnstructuredGrid. -Jeff johnny carroll norris wrote: > Hello, > > vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell information. > If you use > > this->GetOutput()->ShallowCopy(this->GetInput()); > > in a custom filter derived from vtkUnstructuredGridToUnstructuredGridFilter, > the output will have the points and point data, but no cells. > > John > -- > John Norris > Research Programmer > Center for Simulation of Advanced Rockets > http://www.uiuc.edu/ph/www/jnorris > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- J.A. Lee -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaume at tele.ucl.ac.be Sat Mar 3 19:34:29 2001 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Sun, 4 Mar 2001 01:34:29 +0100 (MET) Subject: [vtkusers] how to visualize the inside of a polydata? Message-ID: Hello VTK users, I've got a colored surface polydata. I'd like to see the inside, so I clip the polydata (with texture clipping). Since any vertex has the same color from inside or outside, I cannot clearly distiguish the inside surface from the outside surface. Anybody knows a 'VTK trick' to visualize the inside surface? Is it possible to set a property (color, texture,...) to the inside surface different than the outside surface's property? Thanks for your help! Sylvain From whv88240 at Bayou.UH.EDU Sun Mar 4 02:26:27 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Sun, 4 Mar 2001 01:26:27 -0600 (CST) Subject: [vtkusers] Adding vtkSetObjectMacro to a class Message-ID: Hello. What is the correct way to add SetImplicitFunction to a class? I am trying to add a SetImplicitFunction to the class vtkVolumeRayCastMIPFunction. I copied from vtkSampleFunction.h "vtkSetObjectMacro(ImplicitFunction,vtkImplicitFunction);" and pasted it into vtkVolumeRayCastMIPFunction.h. It built fine. Then I execute a program that uses the SetImplicitFunction and got a memory error. // the code that uses SetImplicitFunction vtkSphere *syntheticFunction = vtkSphere::New(); vtkVolumeRayCastMIPFunction *RayFunction = vtkVolumeRayCastMIPFunction::New(); RayFunction->SetImplicitFunction(syntheticFunction); // the memory error The instruction at "0x00a82a05" referenced memory at "0xcdcdcdcd". The memory could not be "read". Unhandled exception in DiffMIP.exe(VTKGRAPHICS2.DLL):0xC000005: Access Violation. Thank you, Wolfv. From amit_saxena01 at yahoo.com.sg Sun Mar 4 04:46:45 2001 From: amit_saxena01 at yahoo.com.sg (=?iso-8859-1?q?amit=20saxena?=) Date: Sun, 4 Mar 2001 17:46:45 +0800 (CST) Subject: [vtkusers] vtkImageReslice Message-ID: <20010304094645.22308.qmail@web1905.mail.yahoo.com> Hi David, Some time back I had sent a query about ImageReslice class. The problem was that although the class was working in unix but when it comes to windows it just gives a blank and the application just hangs. At that time after looking at the code you suggested me to download the vtk again. I did it and the problem is still same. The class doesnot seem to be working at all. I am in a fix because of that problem. I am sending you the code along. If there is some bug in vtkImageReslice, then how can we rewrite the image back to the ImageData class after transforming the image data directly? I am sending the piece of code along : vtkVolume16Reader *reader1 = tkVolume16Reader::New(); reader1->SetFilePrefix(fileName1[0]); reader1->SetHeaderSize(header[0]); if (byteSwap) reader1->SwapBytesOn(); reader1->SetImageRange(range[0][0],range[0][1]); reader1->SetDataSpacing(space[0][0], space[0][1], space[0][2]); reader1->SetDataDimensions(height[0], width[0]); vtkImageShrink3D *shrink2 = vtkImageShrink3D::New(); shrink2->SetInput(reader1->GetOutput()); shrink2->SetShrinkFactors(1, 1,1.0*(range[0][1]-range[0][0])/(range[1][1]-range[1][0]) ); vtkImageReslice *reslice1 = vtkImageReslice::New(); reslice1->SetInput(reader1->GetOutput()); reslice1->SetOutputSpacing(1,1,1); reslice1->InterpolateOn(); reslice1->SetInterpolationModeToCubic(); reslice1->SetResliceTransform(transform); vtkImageViewer *viewer1 = vtkImageViewer::New(); viewer1->SetInput(reslice1->GetOutput()); viewer1->SetColorLevel(1000); viewer1->SetZSlice(0); Waiting eagerly for the reply Amit __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ From amit_saxena01 at yahoo.com.sg Sun Mar 4 05:24:53 2001 From: amit_saxena01 at yahoo.com.sg (=?iso-8859-1?q?amit=20saxena?=) Date: Sun, 4 Mar 2001 18:24:53 +0800 (CST) Subject: [vtkusers] vtkImageReslice Message-ID: <20010304102453.17255.qmail@web1902.mail.yahoo.com> Hi, I am trying to transform the image using vtkImageReslice. The problem is : 1. During rotations and scaling the image size changes and is not same as the original one. 2. I need to translate the image. It doesnot even seem to happen. How can we do it? AMIT __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ From wlorens1 at nycap.rr.com Sun Mar 4 13:29:03 2001 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sun, 04 Mar 2001 13:29:03 -0500 Subject: [vtkusers] how to visualize the inside of a polydata? In-Reply-To: Message-ID: <4.2.2.20010304132824.016b7b60@pop.nycap.rr.com> You can set the backface property on an actor. SetBackfaceProperty Bill At 01:34 AM 3/4/01 +0100, Sylvain Jaume wrote: >Hello VTK users, > >I've got a colored surface polydata. I'd like to see the inside, so I clip >the polydata (with texture clipping). Since any vertex has the same >color from inside or outside, I cannot clearly distiguish the inside >surface from the outside surface. > >Anybody knows a 'VTK trick' to visualize the inside surface? >Is it possible to set a property (color, texture,...) to the >inside surface different than the outside surface's property? > >Thanks for your help! >Sylvain > > >_______________________________________________ >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 dgobbi at irus.rri.on.ca Sun Mar 4 14:22:50 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sun, 4 Mar 2001 14:22:50 -0500 (EST) Subject: [vtkusers] vtkImageReslice In-Reply-To: <20010304094645.22308.qmail@web1905.mail.yahoo.com> Message-ID: Hi Amit, If you can send me a complete, compilable C program and a small example image that would help a great deal. >From the piece of you sent, here is one possible problem: Whenever you use vtkImageReslice, you should make sure you set the following appropriately. reslice->SetOutputExtent() reslice->SetOutputSpacing() reslice->SetOutputOrigin() I recall mentioning this to you in an earlier email. I repeat, this is _very_ important. Don't trust vtkImageReslice to set up sensible defaults for these parameters. If you want to rewite the transformed image back into the original vtkImageData, then you might actually want to hold the image in your own C++ array instead of in VTK's memory, and use vtkImageImport and vtkImageExport to move the data back and forth between your array and the VTK pipeline. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Sun, 4 Mar 2001, [iso-8859-1] amit saxena wrote: > Hi David, > Some time back I had sent a query about ImageReslice > class. The problem was that although the class was > working in unix but when it comes to windows it just > gives a blank and the application just hangs. > At that time after looking at the code you > suggested me to download the vtk again. I did it and > the problem is still same. The class doesnot seem to > be working at all. > I am in a fix because of that problem. I am > sending you the code along. If there is some bug in > vtkImageReslice, then how can we rewrite the image > back to the ImageData class after transforming the > image data directly? > > I am sending the piece of code along : > > vtkVolume16Reader *reader1 = > tkVolume16Reader::New(); > reader1->SetFilePrefix(fileName1[0]); > reader1->SetHeaderSize(header[0]); > if (byteSwap) > reader1->SwapBytesOn(); > reader1->SetImageRange(range[0][0],range[0][1]); > reader1->SetDataSpacing(space[0][0], space[0][1], > space[0][2]); > reader1->SetDataDimensions(height[0], > width[0]); > vtkImageShrink3D *shrink2 = > vtkImageShrink3D::New(); > shrink2->SetInput(reader1->GetOutput()); > shrink2->SetShrinkFactors(1, > > 1,1.0*(range[0][1]-range[0][0])/(range[1][1]-range[1][0]) > ); > > vtkImageReslice *reslice1 = > vtkImageReslice::New(); > reslice1->SetInput(reader1->GetOutput()); > reslice1->SetOutputSpacing(1,1,1); > reslice1->InterpolateOn(); > reslice1->SetInterpolationModeToCubic(); > reslice1->SetResliceTransform(transform); > > vtkImageViewer *viewer1 = > vtkImageViewer::New(); > viewer1->SetInput(reslice1->GetOutput()); > viewer1->SetColorLevel(1000); > viewer1->SetZSlice(0); > > Waiting eagerly for the reply > > Amit > > > > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail ? Free email you can access from anywhere! > http://mail.yahoo.com.sg/ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From jnorris at csar.uiuc.edu Sun Mar 4 15:07:41 2001 From: jnorris at csar.uiuc.edu (johnny carroll norris) Date: Sun, 4 Mar 2001 14:07:41 -0600 Subject: [vtkusers] vtk3.2beta bug In-Reply-To: <5.0.2.1.0.20010302191317.0262bcb0@pop.nycap.rr.com>; from Will Schroeder on Fri, Mar 02, 2001 at 07:13:33PM -0500 References: <20010302171620.A24075@gagarin.csar.uiuc.edu> <5.0.2.1.0.20010302191317.0262bcb0@pop.nycap.rr.com> Message-ID: <20010304140741.A25424@gagarin.csar.uiuc.edu> Once upon a time, Will Schroeder wrote: > At 05:16 PM 3/2/2001 -0600, John Norris wrote: > >vtkUnstructuredGrid::ShallowCopy() fails to pass through the cell > >information. > > Thanks John, I'll fix it. > Will Sorry everyone. The problem was in my own code. :^( Some time ago I derived a new class from vtkUnstructuredGrid called vtkManifoldUnstructuredGrid. It redefines GetCellNeighbors() so that it returns after finding one neighbor (the method in vtkUnstructuredGrid keeps looking for more). This makes vtkGeometryFilter execute more quickly. Anyway, I fell victim to a stupid cut-and-paste error. My header file had vtkTypeMacro(vtkManifoldUnstructuredGrid, vtkPointSet); instead of vtkTypeMacro(vtkManifoldUnstructuredGrid, vtkUnstructuredGrid); so the SafeDownCast() in vtkUnstructuredGrid::ShallowCopy() was failing. I must write a simple example before mailing the list. I must write a simple example before mailing the list. I must write a simple example before mailing the list. . . . Sorry again, John -- John Norris Research Programmer Center for Simulation of Advanced Rockets http://www.uiuc.edu/ph/www/jnorris From prudhomm at MIT.EDU Sun Mar 4 17:04:02 2001 From: prudhomm at MIT.EDU (Christophe Prud'homme) Date: Sun, 4 Mar 2001 17:04:02 -0500 Subject: [vtkusers] vtk+Qt widget support! Message-ID: <01030417040203.09073@fluids51> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi I retrieved the vtkqgl widget written by Jan Ehrhardt I packaged it ( automake), I used doxygen for the API, and I debianized it go to http://sourceforge.net/cvs/?group_id=1351 for access instructions and http://cvs.sourceforge.net/cgi-bin/cvsweb.cgi/?cvsroot=kfem to have a look at the module regards C. - -- | Christophe Prud'homme, http://augustine.mit.edu/~prudhomm | ICQ UIN: 24560867 Alias: Jesunix | | Somebody once asked me if I thought sex was dirty. | I said, "It is if you're doing it right." | -- Woody allen -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.4 (GNU/Linux) Comment: For info see http://www.gnupg.org iEUEARECAAYFAjqiu9IACgkQoY+0C9S+FFCpdACXSVi9dzu/hmYvznsn43yTHAB0 bACaArh2mJCTu8dbazdFWdHuv5T2ckk= =eyPI -----END PGP SIGNATURE----- From zebern at netcom.no Sun Mar 4 20:42:30 2001 From: zebern at netcom.no (zeb) Date: Mon, 5 Mar 2001 02:42:30 +0100 Subject: [vtkusers] vtkScalarBarActorTcl - compilation problem Message-ID: <003101c0a515$8b3b7600$1ea12dd4@steinbehome> I have a problem compiling VTK source code. After 30min compilation time I get this error: gandalf >: make cd wrap; make - all make[1]: Entering directory `/root/vtk/wrap' ..... cd imaging; make - targets.make make[1]: Entering directory `/root/vtk/imaging' make[1]: `targets.make' is up to date. make[1]: Leaving directory `/root/vtk/imaging' cd imaging; make - all make[1]: Entering directory `/root/vtk/imaging' c++ -g -O2 -fPIC -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I/usr/include/GL -I/usr/X11R6/include -I./../common -I../common -I/usr/include/tcl8.2/tk-private/generic -I/usr/include/tcl8.2/tcl-private/generic -c tcl/vtkScalarBarActorTcl.cxx -o tcl/vtkScalarBarActorTcl.o cc1plus: /tmp/cccmP62Y.s: I/O error make[1]: *** [tcl/vtkScalarBarActorTcl.o] Error 1 make[1]: Leaving directory `/root/vtk/imaging' make: *** [build imaging] Error 2 Installation is on Linux using a VTK nightly version downloaded a couple of days ago. Any help appreciated ! rgds stein erik b. (vtk rookie) -------------- next part -------------- An HTML attachment was scrubbed... URL: From Dieter.Nuetzel at hamburg.de Sun Mar 4 22:04:39 2001 From: Dieter.Nuetzel at hamburg.de (Dieter =?iso-8859-1?q?N=FCtzel?=) Date: Mon, 5 Mar 2001 04:04:39 +0100 Subject: [vtkusers] VTK CVS for SuSE 7.1 (Tcl 8.3 and Python 2.0)? In-Reply-To: <5.0.2.1.0.20010301151751.00a8a730@pop.nycap.rr.com> References: <5.0.2.1.0.20010301151751.00a8a730@pop.nycap.rr.com> Message-ID: <01030504043900.22682@SunWave1> Am Donnerstag, 1. M?rz 2001 21:18 schrieben Sie: > I just checked in a new vtkOverrideInformation.cxx file, it should > fix the problem. > > -Bill Thank you! It fixed it. VTK on SuSE 7.1 now running. -Dieter > At 08:30 PM 3/1/2001 +0100, Dieter N?tzel wrote: > >Hello Will, > > > >I've switched my system over to SuSE 7.1 and have the above versions, now. > >Are they compatible with the current CVS code? > > > >I get this compilation error (I think it is not related...). > > > >make[1]: Entering directory `/opt/VTK/vtk/common' > >c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 > >-fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. > > -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING > > -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB > > -I./../common -I../common -I/opt/jdk/include -I/opt/jdk/include/linux > >-I/usr/include/python2.0 -c vtkOverrideInformation.cxx -o > >vtkOverrideInformation.o > >vtkOverrideInformation.cxx: In method `void > >vtkOverrideInformation::PrintSelf(ostream &, vtkIndent)': > >vtkOverrideInformation.cxx:93: initialization of non-const reference type > >`class vtkIndent &' > >vtkOverrideInformation.cxx:93: from rvalue of type `vtkIndent' > >vtkIndent.h:71: in passing argument 2 of `operator <<(ostream &, vtkIndent > > &)' make[1]: *** [vtkOverrideInformation.o] Error 1 > >make[1]: Leaving directory `/opt/VTK/vtk/common' > >make: *** [build_common] Error 2 > > > >Thanks > > Dieter -- Dieter N?tzel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-K?lln-Stra?e 30 D-22527 Hamburg, Germany email: nuetzel at kogs.informatik.uni-hamburg.de @home: Dieter.Nuetzel at hamburg.de From J.A.Schaap at lumc.nl Mon Mar 5 05:32:46 2001 From: J.A.Schaap at lumc.nl (Schaap, J.A. (LKEB)) Date: Mon, 5 Mar 2001 11:32:46 +0100 Subject: [vtkusers] BUG in vtkImaging.h Message-ID: <619BDB8E7C3ED311B7150090277A2E1E01916E1C@mail2.net1.azl.nl> Hi, In todays nightly vtkImaging.h includes vtkImageFilter.h but this files doesn't excist anymore. Best regards, Jorrit -- Jorrit Schaap Division of Image Processing Leiden University Medical Center +31 71 5266206 From dmpd at mcmail.com Mon Mar 5 10:45:50 2001 From: dmpd at mcmail.com (D.M.P.Davies) Date: Mon, 05 Mar 2001 15:45:50 +0000 Subject: [vtkusers] JAVA Examples Message-ID: <3AA3B4AE.17D1ED82@mcmail.com> vtkusers, Is it possible to create a web applet page activating a java program for vtk3.1.2. I've downloaded the vtknightly for a PC and used with java 2 runtime environment version 1.2.2 (win 32 version) from sun. I've almost given up after a LOT of difficulty - aren't there any examples?? Thanks Dave Davies From ganguly at acsu.buffalo.edu Mon Mar 5 12:18:56 2001 From: ganguly at acsu.buffalo.edu (Chandragupta Ganguly) Date: Mon, 5 Mar 2001 12:18:56 -0500 (EST) Subject: [vtkusers] Needed some instructions to launch VTK In-Reply-To: <200103051700.MAA30081@public.kitware.com> Message-ID: Hi I have been trying to launch VTK. And while it is compiling it is core dumping when I try to execute the examples, such as Cone.tcl. My OS is RedHat linux 7.0, and the vtk is 3.1.2 I am compiling it with -opengl option instead of -mesa option. It seems other people are facing similar problem. Would somebody who has successfully launched the vtk software on RedHat linux 7.0, with -opengl option be kind enough to write down a step by step procedure as to how they did it, including runnning of various examples. It seems to me that there are a lot of people who are facing similar problems. Infact I suggest having an archive which lists down successful implementation of VTk in various OS (RedHat, SuSe, etc) with their versions. Any help in this regard is appreciated. thanks chandra From german_leung at hotmail.com Mon Mar 5 21:58:13 2001 From: german_leung at hotmail.com (german) Date: Tue, 6 Mar 2001 10:58:13 +0800 Subject: [vtkusers] SetImplicitionFunction is not a member of vtkSampleFunction! PLEASE HELP! Message-ID: Dear all vtk user: I try to convert the icecream.tcl to C++! My code was shoe in below:-- void main() { //create a rendering windows and render vtkRenderer*ren=vtkRenderer::New(); vtkRenderWindow*renWindow=vtkRenderWindow::New(); renWindow->AddRenderer(ren); renWindow->SetSize(500,500); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWindow); //create implicit function primitives vtkSphere*iceCream=vtkSphere::New(); iceCream->SetRadius(0.5); iceCream->SetCenter(1.333, 0, 0); vtkSphere*bite=vtkSphere::New(); bite->SetRadius(0.25); bite->SetCenter(1.5, 0, 0.5); //Set Operation vtkImplicitBoolean*theCream=vtkImplicitBoolean::New(); theCream->SetOperationTypeToDifference(); theCream->AddFunction(iceCream); theCream->AddFunction(bite); //iso-surface to create geometry vtkSampleFunction*theCreamSample=vtkSampleFunction::New(); theCreamSample->SetImplicitionFunction(theCream); theCreamSample->SetModelBounds(-1,1.5,-1.25,1.25,-1.25,1.25); theCreamSample->SetSampleDimensions(60,60,60); theCreamSample->ComputeNormalsOff(); //Generate implicit surface vtkContourFilter*theCreamSurface=vtkContourFilter::New(); theCreamSurface->SetInput(theCreamSample->GetOutput()); theCreamSurface->SetValue(0, 0.0); // range[0]=1.0;range[1]=6.0; // theCreamSurface->GenerateValues(3,range); //Map theCreamSurface vtkPolyDataMapper*creamMapper=vtkPolyDataMapper::New(); creamMapper->SetInput(theCreamSurface->GetOutput()); creamMapper->ScalarVisibilityOff(); //Add actor into the scene vtkActor*theCreamSurfaceActor=vtkActor::New(); theCreamSurfaceActor->SetMapper(creamMapper); ren->AddActor(theCreamSurfaceActor); //draw the result scene renWindow->Render(); ren->SetBackground(0.1, 0.2, 0.4); iren->Start(); } When I try to build the program, but the error show " SetImplicitionFunction is not a member of vtkSampleFunction" But in icecream.tcl:-- the code show this: vtkImplicitBoolean theCream theCream SetOperationTypeToDifference theCream AddFunction iceCream theCream AddFunction bite # iso-surface to create geometry vtkSampleFunction theConeSample theConeSample SetImplicitFunction theCone What is the difference between the code in C++ and tcl? Why the program can run in tcl but not in C++?? Please help! Because I want try some vtkImplicitBoolean in C++! Can anyone sent me some idea to solve this problems? Best regards, German Leung -------------- next part -------------- An HTML attachment was scrubbed... URL: From german_leung at hotmail.com Mon Mar 5 22:00:34 2001 From: german_leung at hotmail.com (german) Date: Tue, 6 Mar 2001 11:00:34 +0800 Subject: [vtkusers] why SetImplicitionFunction is not a member of vtkSampleFunction? Message-ID: Dear all vtk user: I try to convert the icecream.tcl to C++! My code was shoe in below:-- void main() { //create a rendering windows and render vtkRenderer*ren=vtkRenderer::New(); vtkRenderWindow*renWindow=vtkRenderWindow::New(); renWindow->AddRenderer(ren); renWindow->SetSize(500,500); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWindow); //create implicit function primitives vtkSphere*iceCream=vtkSphere::New(); iceCream->SetRadius(0.5); iceCream->SetCenter(1.333, 0, 0); vtkSphere*bite=vtkSphere::New(); bite->SetRadius(0.25); bite->SetCenter(1.5, 0, 0.5); //Set Operation vtkImplicitBoolean*theCream=vtkImplicitBoolean::New(); theCream->SetOperationTypeToDifference(); theCream->AddFunction(iceCream); theCream->AddFunction(bite); //iso-surface to create geometry vtkSampleFunction*theCreamSample=vtkSampleFunction::New(); theCreamSample->SetImplicitionFunction(theCream); theCreamSample->SetModelBounds(-1,1.5,-1.25,1.25,-1.25,1.25); theCreamSample->SetSampleDimensions(60,60,60); theCreamSample->ComputeNormalsOff(); //Generate implicit surface vtkContourFilter*theCreamSurface=vtkContourFilter::New(); theCreamSurface->SetInput(theCreamSample->GetOutput()); theCreamSurface->SetValue(0, 0.0); // range[0]=1.0;range[1]=6.0; // theCreamSurface->GenerateValues(3,range); //Map theCreamSurface vtkPolyDataMapper*creamMapper=vtkPolyDataMapper::New(); creamMapper->SetInput(theCreamSurface->GetOutput()); creamMapper->ScalarVisibilityOff(); //Add actor into the scene vtkActor*theCreamSurfaceActor=vtkActor::New(); theCreamSurfaceActor->SetMapper(creamMapper); ren->AddActor(theCreamSurfaceActor); //draw the result scene renWindow->Render(); ren->SetBackground(0.1, 0.2, 0.4); iren->Start(); } When I try to build the program, but the error show " SetImplicitionFunction is not a member of vtkSampleFunction" But in icecream.tcl:-- the code show this: vtkImplicitBoolean theCream theCream SetOperationTypeToDifference theCream AddFunction iceCream theCream AddFunction bite # iso-surface to create geometry vtkSampleFunction theConeSample theConeSample SetImplicitFunction theCone What is the difference between the code in C++ and tcl? Why the program can run in tcl but not in C++?? Please help! Because I want try some vtkImplicitBoolean in C++! Can anyone sent me some idea to solve this problems? Best regards, German Leung -------------- next part -------------- An HTML attachment was scrubbed... URL: From jaroma at sdf.lonestar.org Mon Mar 5 22:46:53 2001 From: jaroma at sdf.lonestar.org (Jose A. Romero M.) Date: Mon, 5 Mar 2001 21:46:53 -0600 (CST) Subject: [vtkusers] SetImplicitionFunction is not a member of vtkSampleFunction! PLEASE HELP! In-Reply-To: Message-ID: For the manpages: void SetImplicitFunction (vtkImplicitFunction *); and not theCreamSample->SetImplicitionFunction(theCream); jaroma at sdf.lonestar.org SDF Public Access UNIX System - http://sdf.lonestar.org On Tue, 6 Mar 2001, german wrote: > Dear all vtk user: > I try to convert the icecream.tcl to C++! My code was shoe in below:-- > void main() > { > //create a rendering windows and render > vtkRenderer*ren=vtkRenderer::New(); > vtkRenderWindow*renWindow=vtkRenderWindow::New(); > renWindow->AddRenderer(ren); > renWindow->SetSize(500,500); > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWindow); > > //create implicit function primitives > vtkSphere*iceCream=vtkSphere::New(); > iceCream->SetRadius(0.5); > iceCream->SetCenter(1.333, 0, 0); > vtkSphere*bite=vtkSphere::New(); > bite->SetRadius(0.25); > bite->SetCenter(1.5, 0, 0.5); > > //Set Operation > vtkImplicitBoolean*theCream=vtkImplicitBoolean::New(); > theCream->SetOperationTypeToDifference(); > theCream->AddFunction(iceCream); > theCream->AddFunction(bite); > > //iso-surface to create geometry > vtkSampleFunction*theCreamSample=vtkSampleFunction::New(); > theCreamSample->SetImplicitionFunction(theCream); > theCreamSample->SetModelBounds(-1,1.5,-1.25,1.25,-1.25,1.25); > theCreamSample->SetSampleDimensions(60,60,60); > theCreamSample->ComputeNormalsOff(); > > //Generate implicit surface > vtkContourFilter*theCreamSurface=vtkContourFilter::New(); > theCreamSurface->SetInput(theCreamSample->GetOutput()); > theCreamSurface->SetValue(0, 0.0); > // range[0]=1.0;range[1]=6.0; > // theCreamSurface->GenerateValues(3,range); > > //Map theCreamSurface > vtkPolyDataMapper*creamMapper=vtkPolyDataMapper::New(); > creamMapper->SetInput(theCreamSurface->GetOutput()); > creamMapper->ScalarVisibilityOff(); > > //Add actor into the scene > vtkActor*theCreamSurfaceActor=vtkActor::New(); > theCreamSurfaceActor->SetMapper(creamMapper); > ren->AddActor(theCreamSurfaceActor); > > //draw the result scene > renWindow->Render(); > ren->SetBackground(0.1, 0.2, 0.4); > iren->Start(); > } > > When I try to build the program, but the error show " SetImplicitionFunction is not a member of vtkSampleFunction" > > But in icecream.tcl:-- > the code show this: > vtkImplicitBoolean theCream > theCream SetOperationTypeToDifference > theCream AddFunction iceCream > theCream AddFunction bite > > # iso-surface to create geometry > vtkSampleFunction theConeSample > theConeSample SetImplicitFunction theCone > > What is the difference between the code in C++ and tcl? Why the program can run in tcl but not in C++?? > > Please help! Because I want try some vtkImplicitBoolean in C++! > > Can anyone sent me some idea to solve this problems? > > Best regards, > German Leung > > > From elsn at loqnl.ufal.br Tue Mar 6 06:16:58 2001 From: elsn at loqnl.ufal.br (Elizeu L. dos Santos Neto) Date: Tue, 6 Mar 2001 08:16:58 -0300 Subject: [vtkusers] dicom to pgm prog References: <000b01c098fb$84f780c0$51b815a5@audi> Message-ID: <013d01c0a62e$f6337dd0$8595f1c8@loqnl.ufal.br> Hello Audi, I try to compile using MSVC and I've got the folow error: "fatal error C1070: mismatched #if/#endif pair in file 'c:\temp\temporary workspaces\oxe\dicomtopgm.cpp'" So, there is a "#ifdef" statement in the 1083 line number without its "#endif" counterpart. Best regards. Elizeu Neto Universidade Federal de Alagoas Laborat?rio de ?ptica Qu?ntica e N?o Linear ----- Original Message ----- From: Audi To: vtkusers at public.kitware.com Sent: Saturday, February 17, 2001 1:05 PM Subject: [vtkusers] dicom to pgm prog Hi, I found dicomtopgm.cpp in www.rad.upenn.edu/~grevera/images/dicom2pgm.html But when I tried to compile it, it gives me weird error, the error said the are mismatch end if but when I check to the line that has been pointed by the error checking is an empty line. I tried to check the program but it seems nothing wrong, but maybe I miss the mistake. So can anybody help me to compile and run the program that I attach here, and inform me whether you can compile successfully. I already tried to email the person who put the source code at that website, but no reply until now. Thanks in advance, Audi -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Tue Mar 6 06:11:47 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 6 Mar 2001 16:41:47 +0530 (IST) Subject: [vtkusers] [Off-topic] VTK mentioned in the Python9 conference! Message-ID: <15012.50675.965822.667459@monster.linux.in> hi, FYI, I just saw this on the web: http://www.python9.org/p9-tutorialsten.html Here is a small snippet. ---------- March 5, 2001 Session: T10 Title: Python for Scientific Computing Instructor: Eric Jones, Enthought Description: This tutorial consists of four sections covering various topics in scientific computing. The first introduces Numeric and its companion modules providing hints that minimize code and maximize speed using these tools. The second describes 2D plotting tools as well as 3D visualization using the Visualization Toolkit (VTK)... ---------- Sorry about the off-topic post but I thought that you folks might be interested. prabhu From wlorens1 at nycap.rr.com Tue Mar 6 07:54:51 2001 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Tue, 06 Mar 2001 07:54:51 -0500 Subject: [vtkusers] BUG in vtkImaging.h In-Reply-To: <619BDB8E7C3ED311B7150090277A2E1E01916E1C@mail2.net1.azl.nl > Message-ID: <4.2.2.20010306075418.018ac780@pop.nycap.rr.com> Jorrit, Thanks for the report, I've checked in the fix. Also, added a couple of new classes to the includes. Bill At 11:32 AM 3/5/01 +0100, Schaap, J.A. (LKEB) wrote: >Hi, > >In todays nightly vtkImaging.h includes vtkImageFilter.h but this files >doesn't excist anymore. > >Best regards, Jorrit > >-- >Jorrit Schaap >Division of Image Processing >Leiden University Medical Center >+31 71 5266206 > >_______________________________________________ >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 zebern at netcom.no Tue Mar 6 09:36:22 2001 From: zebern at netcom.no (zeb) Date: Tue, 6 Mar 2001 15:36:22 +0100 Subject: [vtkusers] vtkMesaRenderWindow - runtime error Message-ID: <006801c0a64a$d204e220$90a22dd4@steinbehome> I was very lucky having overcome compilation&configuration&setup problems after a couple of days of hard work (I'm a vtk rookie, for sure), but then RUNTIME error when I was ready for some vtkTcl demo examples. Big disappointment! The error messages read like this: gandalf > ../../tcl/vtk fohe.tcl Xlib: extension "GLX" missing on display ":0.0" Xlib: extension "GLX" missing on display ":0.0" ERROR: In vtkMesaRenderWindow.cxx, line 162 vtkMesaRenderWindow (0x80a20b8): Could not find a decent visual Segmentation fault gandalf > I'm using debian linux, XFree4.0.2, VTK nightly release from 1st of March. VTK configured/compiled with "--with-mesa --with-tcl --with-shared". Any help appreciated, I eager to get vtk going. rgds Erik zebern at netcom.no -------------- next part -------------- An HTML attachment was scrubbed... URL: From jma at ceg.uiuc.edu Tue Mar 6 11:00:31 2001 From: jma at ceg.uiuc.edu (Jianhua Ma) Date: Tue, 06 Mar 2001 10:00:31 -0600 Subject: [vtkusers] VTK-based Collaborative Application Message-ID: <3.0.3.32.20010306100031.00965430@hp720.ceg.uiuc.edu> Dear VTK users, Hello! A prototype collaborative visualization applications has been developed by the Computational Electronics group of BI, using the NCSA Habanero platform. Habanero environment is entirely written in JAVA and it provides direct communication between a host computer and any number of client computers. Two examples will be shown to illustrate different 3D visualization capabilities: 1) Bandstructure of silicon, 2) Transport in a porin ion channel. Prototype has an available collaborative interactive GUI that one uses mouse operations for manipulating visual objetcs meanwhile other clients in the session can see it or operate it, e.g. WYSIWIS (What You See Is What I See). Typical collaborative operations include: Rotate, zoom, translate and moving slices... There are some other collaborative operations that can be achieved through key presses. If you ARE interested, please let me know I'd like to send a simply Poster (Attach file doc, more 100k). Thanks, I'll be happy to answer any questions. Best regards, -Jianhua +==============================================+ * Jianhua Ma * * The Computational Electronics group * * The Beckman Institute * * University of Illinois at Urbana Champaign * * 405 N. Mathews Avenue,Urbana, IL 61801 * * Phone: (217)244-4076(Office) * * E-Mail: jma at ceg.uiuc.edu * +==============================================+ From jal at cinesite.co.uk Tue Mar 6 12:14:12 2001 From: jal at cinesite.co.uk (John Lockwood) Date: Tue, 06 Mar 2001 17:14:12 +0000 Subject: [vtkusers] dynamic VTK Message-ID: <3AA51AE2.5D5B5F59@cinesite.co.uk> Dear VTK users, Is it possible to load VTK dynamically into a tcl shell? Also is anyone using VTK with tclpro? Thanks, John Lockwood From amer at ece.gatech.edu Tue Mar 6 15:19:20 2001 From: amer at ece.gatech.edu (Amer Abufadel) Date: Tue, 6 Mar 2001 15:19:20 -0500 Subject: [vtkusers] Lighting Message-ID: <002501c0a67a$ba3c9f90$3b914dc7@LITTLEY> Hello, I have two volume datasets of equal dimensions. One is the actual data and the other is the radiance coefficients. There is a one to one correspondence between the two. Is there a method to be able to display pixels from the first dataset with lighting coefficients from the second? Thanks a bunch, Amer From rspereir at ucalgary.ca Tue Mar 6 15:24:21 2001 From: rspereir at ucalgary.ca (Raoul Pereira) Date: Tue, 06 Mar 2001 13:24:21 -0700 Subject: [vtkusers] tcl and vtk Message-ID: <3AA54775.E4293569@ucalgary.ca> dear vtk users, we are currently using a tcl script file with a c++-based program. the script file provides the user interface (tk gui), while the c++ program opens a couple of vtk windows to display images. are there any ways where we can integrate the vtk windows with the tk gui so it appears as one window? furthermore, vtk doesn't seem to work with the version of tcl/tk we are currently using (ver. 8.3.2) thanks. ben wong From sshin at engineering.uiowa.edu Wed Mar 7 00:03:55 2001 From: sshin at engineering.uiowa.edu (Seonho Shin) Date: Tue, 6 Mar 2001 23:03:55 -0600 Subject: [vtkusers] Need help to use Volume16Reader Message-ID: <3AA174A8@webmail.engineering.uiowa.edu> Hello, all I'm a graduate student who is working in medical image processing. I've just started to learn about vtk. I have 214 slices of CT cardiac image. I've been trying to read the slices and generate 3D image through the vtkVolume16Reader. The image file has .pix extention, i.e., W16L0001.pix, W16L002.pix, ... so on. However, they are not pix files in the traditional definition. It is BINARY files with unsigned short 16 bits. I thought vtkVolume16Reader would read the files without trouble but it did not work. When I tried to verify the image dimension after reading, it had 0, 0, i.e., nothing had been read with the vtkVoulme16Reader. Maybe, I made a wrong program. Since I rarely have experience on vtk program(I'm only four days old on vtk), if there is anyone who can give some tips or methods for read the images, I really appreciate. Many Thanks. Seonho e-mail : sshin at icaen.uiowa.edu phone(O) : (319) 384-0593 From bowang at iastate.edu Wed Mar 7 00:52:53 2001 From: bowang at iastate.edu (bo wang) Date: Tue, 6 Mar 2001 23:52:53 -0600 Subject: [vtkusers] Need help to use Volume16Reader Message-ID: <000b01c0a6ca$dae529b0$4dcfba81@ndelab1.cnde.iastate.edu> Try vtkImageReader, see whether it can read the data set. such as: vtkImageReader *reader = vtkImageReader::New(); reader->SetDataByteOrderToLittleEndian(); file://for read 16bits for pc reader->SetDataScalarTypeToUnsignedShort(); Bo -----Original Message----- From: Seonho Shin To: vtk users Date: Tuesday, March 06, 2001 11:13 PM Subject: [vtkusers] Need help to use Volume16Reader >Hello, all > >I'm a graduate student who is working in medical image processing. I've just >started to learn about vtk. I have 214 slices of CT cardiac image. I've been >trying to read the slices and generate 3D image through the vtkVolume16Reader. >The image file has .pix extention, i.e., W16L0001.pix, W16L002.pix, ... so on. >However, they are not pix files in the traditional definition. It is BINARY >files with unsigned short 16 bits. I thought vtkVolume16Reader would read the >files without trouble but it did not work. When I tried to verify the image >dimension after reading, it had 0, 0, i.e., nothing had been read with the >vtkVoulme16Reader. Maybe, I made a wrong program. Since I rarely have >experience on vtk program(I'm only four days old on vtk), if there is anyone >who can give some tips or methods for read the images, I really appreciate. > >Many Thanks. > >Seonho > >e-mail : sshin at icaen.uiowa.edu >phone(O) : (319) 384-0593 > > >_______________________________________________ >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 j.stifter at medres.ch Wed Mar 7 06:46:44 2001 From: j.stifter at medres.ch (Jan Stifter) Date: Wed, 07 Mar 2001 12:46:44 +0100 Subject: [vtkusers] uncompress GE compressed CT's Message-ID: hello vtk, i would like to do a CT reconstruction with vtk. how can i uncompress a GE CT, which is (unfortunately) compressed ? many thanks in advance jan --- Jan Stifter http://www.medres.ch/~jstifter/ From dpaul at ira.uka.de Wed Mar 7 07:30:27 2001 From: dpaul at ira.uka.de (Dominik Paul) Date: Wed, 7 Mar 2001 13:30:27 +0100 Subject: [vtkusers] easy example Message-ID: <002d01c0a702$64107ff0$2c1a0d81@ira.uka.de> Helle there does somebody have any very easy examples for dreactin an ImagaData and showing it? My example isnt running, that means the window shows nothing, just black Dom Example: #include #include #include #include #include main() { //vtkTiffReader* theReader = vtkTiffReader::New(); vtkImageReader* theReader = vtkImageReader::New(); theReader ->SetFileName("Testbild"); void SetFileName (const char *) vtkImageData* volume = vtkImageData::New(); volume -> Print(cout); volume -> UpdateInformation(); volume -> Update(); volume -> Print(cout); vtkImageViewer* theViewer = vtkImageViewer::New(); theViewer -> SetInput(volume); theViewer -> SetZSlice(2); theViewer -> Render(); while (1) { theViewer -> SetInput(volume); theViewer -> SetZSlice(2); theViewer -> Render(); int hallo; cin >> hallo; if (hallo == 1) break; } } From millerjv at crd.ge.com Wed Mar 7 07:54:11 2001 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Wed, 7 Mar 2001 07:54:11 -0500 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 Message-ID: David and John, I saw that you werew changing the build process for vtk's python bindings on the pc, so I'll direct my question towards you. I am trying to build the python bindings for vtk on a pc with Windows2000 (shouldn't matter, but I have hit upon some other Win2000 library problems). The normal python bindings work fine, but when I use TkRenderWidget my program crashes. The build process seems to build the TkRenderWidget dll fine. Since this is the TkRenderWidget, my first assumption is that vtk and python are building with different versions of tcl/tk. (Any time TkRenderWidget doesn't work in tcl the cause is usually that vtk is built against one version and is executing against a different version.) By default, vtk is building with tcl 8.2 and it looks like python 2.0 ships with tcl 8.3. Are you building off the vtk repository with python 2.0? Do I need to go grab the source for tcl 8.3 so I can build vtk with the same version of tcl that python ships with? Jim Miller _____________________________________ Computer Graphics & Systems Program GE Corporate Research & Development Bldg. KW, Room C218B P.O. Box 8, Schenectady NY 12301 millerjv at crd.ge.com (518) 387-4005, Dial Comm: 8*833-4005, Cell: (518) 505-7065, Fax: (518) 387-6981 <> begin 600 James Miller (E-mail).vcf M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DUI;&QE7-T96US(%!R;V=R86T[0DQ$1R!+5RP at 4DT@0S(Q.$(] M,$0],$%03R!";W@@.#M38VAE;F5C/0T*=&%D>3M.63LQ,C,P,3M5;FET960@ M4W1A=&5S(&]F($%M97)I8V$-"DQ!0D5,.U=/4DL[14Y#3T1)3D<]455/5$5$ M+5!224Y404),13I#;VUP=71E2P at 3ED@,3(S,#$],$0],$%5;FET960 at 4W1A=&5S(&]F M($%M97)I8V$-"D5-04E,.U!2148[24Y415).150Z;6EL;&5R:G9`8W)D+F=E G+F-O;0T*4D56.C(P,#`P,3(X5#$V,C8U-EH-"D5.1#I60T%21`T* ` end From seb-ml-a at barre.nom.fr Wed Mar 7 08:26:28 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 14:26:28 +0100 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: Message-ID: <5.0.0.25.0.20010307142055.037f1c50@pop.fr.clara.net> Hi James At 07/03/01 07:54 -0500, Miller, James V (CRD) wrote: >I saw that you werew changing the build process for vtk's python bindings >on the pc, so I'll direct >my question towards you. I've recently changed pcmaker to include the automatic incremental and non-incremental build for the Python Tk Widget, thus I guess I might give you some clues. Yes, VTK is provided with Tcl 8.2, thus it *won't* work with Python 1.5.2, you will need Tcl <= 8.0.3 for that. Python 2.0 ships with Tcl 8.3, and I've successfully built the Python 2.0 Tk Widget against Tcl 8.3, on both Windows NT and 2000. I haven't tested 8.2, but David has I think. >Are you building off the vtk repository with python 2.0? Do I need to go >grab the source for tcl 8.3 >so I can build vtk with the same version of tcl that python ships with? That would be fine. The binary distrib of Tcl 8.3.0 will do the trick, but you will need the sources too, because some header files are missing (just put them in the include/ dir of the binary install dir). From dpaul at ira.uka.de Wed Mar 7 08:41:16 2001 From: dpaul at ira.uka.de (Dominik Paul) Date: Wed, 7 Mar 2001 14:41:16 +0100 Subject: [vtkusers] easy example 2 Message-ID: <003f01c0a70c$4874e380$2c1a0d81@ira.uka.de> Helle there, my last mail didnt contain the code for an easy example. Here it is now. Can I write into an image Data like this? But Why cant I see anything? #include #include #include #include #include main() { //vtkTiffReader* theReader = vtkTiffReader::New(); vtkImageData* volume = vtkImageData::New(); volume -> SetScalarType (VTK_UNSIGNED_SHORT); volume -> SetDimensions(100,100,3); volume -> SetNumberOfScalarComponents(1); volume -> AllocateScalars(); unsigned short* voxels = (unsigned short*) volume -> GetScalarPointer(); //CAN I WRITE INTO IT LIKE THIS ??? int index = 0; for (int z=0; z<3; z++) for (int y=0; y<100; y++) for (int x=0;x<100; x++) { *(voxels+index) = x+1; index++; } volume -> Print(cout); volume -> UpdateInformation(); volume -> Update(); volume -> Print(cout); vtkImageViewer* theViewer = vtkImageViewer::New(); theViewer -> SetInput(volume); theViewer -> SetZSlice(2); theViewer -> Render(); while (1) { theViewer -> SetInput(volume); theViewer -> SetZSlice(2); theViewer -> Render(); int hallo; cin >> hallo; if (hallo == 1) break; } } From j.stifter at medres.ch Wed Mar 7 09:08:51 2001 From: j.stifter at medres.ch (Jan Stifter) Date: Wed, 07 Mar 2001 15:08:51 +0100 Subject: [vtkusers] uncompress GE compressed CT's In-Reply-To: References: Message-ID: On Wed, 07 Mar 2001 12:46:44 +0100, Jan Stifter wrote: >hello vtk, >i would like to do a CT reconstruction with vtk. how can i uncompress >a GE CT, which is (unfortunately) compressed ? > >many thanks in advance >jan >--- >Jan Stifter >http://www.medres.ch/~jstifter/ i could solve the problems myself by using the dicom3tools. i could not compile the tools but i could compile the genesis to pgm converter. by fiddling with the code, i managed to make raw files, which can be read with the vtkvolumereader. thanks for the replys i got. jan --- you can get more of what you want with a kind word and a gun than you can with just a kind word. Al Capone From seb-ml-a at barre.nom.fr Wed Mar 7 09:23:15 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 15:23:15 +0100 Subject: [vtkusers] uncompress GE compressed CT's In-Reply-To: References: Message-ID: <5.0.0.25.0.20010307151911.03a8d1b0@pop.fr.clara.net> At 07/03/01 15:08 +0100, Jan Stifter wrote: >On Wed, 07 Mar 2001 12:46:44 +0100, Jan Stifter >wrote: > >i could solve the problems myself by using the dicom3tools. i could >not compile the tools Yes, they are tricky to compile on Windows-based computers. I sent a patch to David Clunie, but I'm not sure it will be integrated some day. I've successfully built the dicom3tools for Windows, but you'll need the Cygwin DLL to run them. I guess I'll put the whole stuff in a package some day, but at the moment you (or anyone) can still contact me privately if you need them. Anyway, the genesis2pgm might be the only thing you need. From prabhu at aero.iitm.ernet.in Wed Mar 7 09:44:20 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 7 Mar 2001 20:14:20 +0530 (IST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: References: Message-ID: <15014.18756.422759.667111@monster.linux.in> hi, >>>>> "Jim" == CRD writes: Jim> David and John, I saw that you werew changing the build Jim> process for vtk's python bindings on the pc, so I'll direct Jim> my question towards you. Jim> I am trying to build the python bindings for vtk on a pc with Jim> Windows2000 (shouldn't matter, but I have hit upon some other Jim> Win2000 library problems). The normal python bindings work Jim> fine, but when I use TkRenderWidget my program crashes. The Jim> build process seems to build the TkRenderWidget dll fine. If by "crash" you mean it says something like "Cant load TkRenderWidget" or something when you run the program from a shell, then, IMHO, this is because the installation doesnt run install.py that is in the python dir in the source tree. I mentioned this sometime back on this list. The install.py copies the TkRenderWidget.dll to a system directory and if this isnt done then Tcl cant load the library. Jim> Since this is the TkRenderWidget, my first assumption is that Jim> vtk and python are building with different versions of Jim> tcl/tk. (Any time TkRenderWidget doesn't work in tcl the Jim> cause is usually that vtk is built against one version and is Jim> executing against a different version.) By default, vtk is Jim> building with tcl 8.2 and it looks like python 2.0 ships with Jim> tcl 8.3. Jim> Are you building off the vtk repository with python 2.0? Do I Jim> need to go grab the source for tcl 8.3 so I can build vtk Jim> with the same version of tcl that python ships with? I thought that vtk had problems building with Tcl/Tk8.3? A lot of folks have problems installing/building/running VTK these days with RedHat/Mandrake 7.x. Python and Tcl versions are also causing some pesky problems. Since VTK is not easy to build (not everyone has the patience to build something that takes 3 hours to build on a PC), can we all do something to make sure that it is easy to build/install and run VTK? I dont mind helping out with this. prabhu From prabhu at aero.iitm.ernet.in Wed Mar 7 09:46:11 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 7 Mar 2001 20:16:11 +0530 (IST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <5.0.0.25.0.20010307142055.037f1c50@pop.fr.clara.net> References: <5.0.0.25.0.20010307142055.037f1c50@pop.fr.clara.net> Message-ID: <15014.18867.171578.851302@monster.linux.in> hi, >>>>> "Sebastien" == Sebastien BARRE writes: Sebastien> Hi James At 07/03/01 07:54 -0500, Miller, James V (CRD) Sebastien> wrote: >> I saw that you werew changing the build process for vtk's >> python bindings on the pc, so I'll direct my question towards >> you. Sebastien> I've recently changed pcmaker to include the automatic Sebastien> incremental and non-incremental build for the Python Tk Sebastien> Widget, thus I guess I might give you some clues. Sebastien> Yes, VTK is provided with Tcl 8.2, thus it *won't* work Sebastien> with Python 1.5.2, you will need Tcl <= 8.0.3 for that. Sebastien> Python 2.0 ships with Tcl 8.3, and I've successfully Sebastien> built the Python 2.0 Tk Widget against Tcl 8.3, on both Sebastien> Windows NT and 2000. I haven't tested 8.2, but David Sebastien> has I think. Okay, so the VTK nightly builds wont work with Python1.5.2 is that correct? If so, then, cant this be mentioned at the download pages. It is hard to keep track of things like this even if one is on the list then think of folks who arent on the list and who want to run VTK quickly, I am sure there are a lot of them. :) Please dont be offended by my tone I am not criticizing anyone personally but I am sure you'll agree with my sentiments. How about the linux builds? Is there a problem with Tk8.2 or not? Do we need to update the web pages? There are so many users of VTK I am sure someone wont mind helping with build related pages, updating the web pages etc. I believe the Kitware folks must be really busy with all their projects, since this is an OSS venture, users helping with things like this will be a useful thing for Kitware. What do you folks think? thanks, prabhu From seb-ml-a at barre.nom.fr Wed Mar 7 10:06:38 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 16:06:38 +0100 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <15014.18756.422759.667111@monster.linux.in> References: Message-ID: <5.0.0.25.0.20010307160121.02e93590@pop.fr.clara.net> At 07/03/01 20:14 +0530, Prabhu Ramachandran wrote: >If by "crash" you mean it says something like "Cant load >TkRenderWidget" or something when you run the program from a shell, >then, IMHO, this is because the installation doesnt run install.py >that is in the python dir in the source tree. I mentioned this >sometime back on this list. The install.py copies the >TkRenderWidget.dll to a system directory and if this isnt done then >Tcl cant load the library. You might not need to use install.py. If you are able to run VTK from Tcl, then you will be able to run the Tk widget from Python provided that : - TkRenderWidget.dll is in the same directory DIR as the usual VTK dll (which is the case by default for incremental build) - your PYTHONPATH has a path to DIR Am I right ? Well it works for me, and I do not want any install.py to move the dll to the system dir :) >I thought that vtk had problems building with Tcl/Tk8.3? I'm not sure about this, at least for Windows. I'm using 8.3 :) From dgobbi at irus.rri.on.ca Wed Mar 7 11:28:32 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 7 Mar 2001 11:28:32 -0500 (EST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <15014.18867.171578.851302@monster.linux.in> Message-ID: On Wed, 7 Mar 2001, Prabhu Ramachandran wrote: > hi, > > Okay, so the VTK nightly builds wont work with Python1.5.2 is that > correct? If so, then, cant this be mentioned at the download pages. The VTK nightly builds work with Python 1.5.2 and Python 2.0 under UNIX and Linux, and with Tcl/Tk 8.0 through 8.3 (probably 8.4 as well, but I've never tried). Under Windows you have to play a couple tricks, because the RenderWidgets (for both Tcl and Python) rely on header files that are not included with the binary Tcl distribution. In the standard VTK distribution, the tcl/tk 8.2 versions of these headers are kept in pcmaker/xlib. If you want to use any other version of tcl/tk (for example 8.0 for use with Python1.5.2 or 8.3 for use with Python2.0) then you need to 1) get and install the tcl/tk binaries 1) under the pcmaker 'Advanced' options specify the paths to the tcl and tk libraries 2) get a copy of the tk source, and copy the 'generic', 'win', and 'xlib' directories from the source distribution into your binary distribution Yes, this is ugly. Also note that unless your tcl/tk version matches the version of tcl/tk that python was built against, the RenderWidgets will almost certainly not work under python. - David > It is hard to keep track of things like this even if one is on the > list then think of folks who arent on the list and who want to run VTK > quickly, I am sure there are a lot of them. :) Please dont be offended > by my tone I am not criticizing anyone personally but I am sure you'll > agree with my sentiments. > > How about the linux builds? Is there a problem with Tk8.2 or not? Do > we need to update the web pages? There are so many users of VTK I am > sure someone wont mind helping with build related pages, updating the > web pages etc. I believe the Kitware folks must be really busy with > all their projects, since this is an OSS venture, users helping with > things like this will be a useful thing for Kitware. What do you > folks think? > > thanks, > prabhu > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From prabhu at aero.iitm.ernet.in Wed Mar 7 11:30:25 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 7 Mar 2001 22:00:25 +0530 (IST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <5.0.0.25.0.20010307160121.02e93590@pop.fr.clara.net> References: <5.0.0.25.0.20010307160121.02e93590@pop.fr.clara.net> Message-ID: <15014.25121.728967.725096@monster.linux.in> hi, >>>>> "Sebastien" == Sebastien BARRE writes: Sebastien> You might not need to use install.py. If you are able Sebastien> to run VTK from Tcl, then you will be able to run the Sebastien> Tk widget from Python provided that : - Sebastien> TkRenderWidget.dll is in the same directory DIR as the Sebastien> usual VTK dll (which is the case by default for Sebastien> incremental build) - your PYTHONPATH has a path to DIR Sebastien> Am I right ? Well it works for me, and I do not want Sebastien> any install.py to move the dll to the system dir :) well, that is what the install.py in the CVS tree does. I dont use Windows enough to know what the right thing to do is? AFAIK, when I installed vtk-python uner windows I had trouble using the vtkTkRenderWidget and runnign install.py (which in turn copies TkRenderWidget.dll to a system dir) solved it. Any better options would be appreciated. prabhu From prabhu at aero.iitm.ernet.in Wed Mar 7 11:43:12 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 7 Mar 2001 22:13:12 +0530 (IST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: References: <15014.18867.171578.851302@monster.linux.in> Message-ID: <15014.25888.546499.834270@monster.linux.in> hi, >>>>> "David" == David Gobbi writes: David> On Wed, 7 Mar 2001, Prabhu Ramachandran wrote: >> hi, >> >> Okay, so the VTK nightly builds wont work with Python1.5.2 is >> that correct? If so, then, cant this be mentioned at the >> download pages. David> The VTK nightly builds work with Python 1.5.2 and Python David> 2.0 under UNIX and Linux, and with Tcl/Tk 8.0 through 8.3 David> (probably 8.4 as well, but I've never tried). Umm. But I thought that Python2.0 is not binary compatible with Python1.5.x? So doesnt it matter as to which version of Python is used to build VTK? The other thing is - why do people have trouble with VTK on RedHat 7.0? Does it have anything to do with the Tcl/Tk version or is it something else? David> Yes, this is ugly. Also note that unless your tcl/tk David> version matches the version of tcl/tk that python was built David> against, the RenderWidgets will almost certainly not work David> under python. Okay - in which case cant a simple note be made on the site (or atleast somewhere else) saying something like This version of the vtk nightlies for this OS requires you to have: (1) Python version >= x.y.z that is avlbl for dwnld "here". (2) Tcl/Tk version >= x.y.z that is avlbl for dwnld "here". and anything else worthy of mention. Dont you think this will save a lot of hassle for new users of VTK? I must have missed something but this is what I understand: (1) The current vtk nightly binaries for Windows will work properly if the user has (a) Either Python 1.5.2 or above (i.e. it will also work for Python 2.0) (b) Will work only with Tcl/Tk version 8.2. (2) The nightly RPMs will work with (a) Python >= 1.5.2 (including 2.0). (b) Tk version ?? I am not sure of this. Is this correct? prabhu From dgobbi at irus.rri.on.ca Wed Mar 7 12:06:49 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 7 Mar 2001 12:06:49 -0500 (EST) Subject: [vtkusers] Re: vtk, python20, TkRenderWidget, Win2000 In-Reply-To: Message-ID: Hi Jim, In case you didn't catch my reply to Prabhu, the problem lies with the fact that graphics/vtkTkRenderWidget.cxx (and the other widgets) require header files that don't come with the binary distribution of tcl/tk. Because Python-2.0 was built against tcl83.lib and tk83.lib, you must specify (in pcmaker) that VTK is to be built against these libs. Unfortunately pcmaker uses a fancy (and undocumented) set of rules for searching for the tcl/tk header files. If you tell it that the tcl/tk libraries are "C:\Program Files\Tcl\lib\tcl83.lib" "C:\Program Files\Tcl\lib\tk83.lib" then it adds the following include directories to the build (I was told this recently by Sebastien, but pcmaker has been doing this for years) "C:\Program Files\Tcl\include" "C:\Program Files\Tcl\xlib" "C:\Program Files\Tcl\win" "C:\Program Files\Tcl\generic" but the 'xlib', 'win', and 'generic' directories are only present in the source distribution of tcl/tk. (Note that you only require these directories from the tk source, not the tcl source). So, what I do is copy these directories to my binary Tcl distribution. So what should be done to make things easier? First, someone should take a good hard look at vtkTkRenderWidget.cxx to determine if it is at all possible to remove its dependence on these 'internal' tk header files (someone already did this fix for UNIX a while back). Also, 1) a big, fat README.TXT should be added to the pcmaker directory that tells people in gory detail how to build against a specific tcl/tk distribution 2) the tcl/tk libs included with VTK should be updated to 8.3, so that VTK can be built against Python-2.0 with no hassle (at least until Python switches to a different Tcl/Tk version...). - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 7 Mar 2001, Miller, James V (CRD) wrote: > David and John, > > I saw that you werew changing the build process for vtk's python bindings on the pc, so I'll direct > my question towards you. > > I am trying to build the python bindings for vtk on a pc with Windows2000 (shouldn't matter, but I > have hit upon some other Win2000 library problems). The normal python bindings work fine, but when I > use TkRenderWidget my program crashes. The build process seems to build the TkRenderWidget dll fine. > > Since this is the TkRenderWidget, my first assumption is that vtk and python are building with > different versions of tcl/tk. (Any time TkRenderWidget doesn't work in tcl the cause is usually that > vtk is built against one version and is executing against a different version.) By default, vtk is > building with tcl 8.2 and it looks like python 2.0 ships with tcl 8.3. > > Are you building off the vtk repository with python 2.0? Do I need to go grab the source for tcl 8.3 > so I can build vtk with the same version of tcl that python ships with? > > Jim Miller > _____________________________________ > Computer Graphics & Systems Program > GE Corporate Research & Development > Bldg. KW, Room C218B > P.O. Box 8, Schenectady NY 12301 > > millerjv at crd.ge.com > (518) 387-4005, Dial Comm: 8*833-4005, > Cell: (518) 505-7065, Fax: (518) 387-6981 > > <> > > begin 600 James Miller (E-mail).vcf > M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DUI;&QE M2F%M97, at 36EL;&5R("A%+6UA:6PI#0I/4D M4TP-"E1%3#M73U)+.U9/24-%.B at U,3 at I(#,X-RTT,#`U#0I414P[5T]22SM6 > M3TE#13HJ.#,S+30P,#4-"E1%3#M73U)+.T9!6#HH-3$X*2`S.# M0412.U=/4DL[14Y#3T1)3D<]455/5$5$+5!224Y404),13H[0V]M<'5T97(@ > M1W)A<&AI8W,@)B!3>7-T96US(%!R;V=R86T[0DQ$1R!+5RP at 4DT@0S(Q.$(] > M,$0],$%03R!";W@@.#M38VAE;F5C/0T*=&%D>3M.63LQ,C,P,3M5;FET960@ > M4W1A=&5S(&]F($%M97)I8V$-"DQ!0D5,.U=/4DL[14Y#3T1)3D<]455/5$5$ > M+5!224Y404),13I#;VUP=71E M;3TP1#TP04),1$<@2U M,$%38VAE;F5C=&%D>2P at 3ED@,3(S,#$],$0],$%5;FET960 at 4W1A=&5S(&]F > M($%M97)I8V$-"D5-04E,.U!2148[24Y415).150Z;6EL;&5R:G9`8W)D+F=E > G+F-O;0T*4D56.C(P,#`P,3(X5#$V,C8U-EH-"D5.1#I60T%21`T* > ` > end > From julian at essaustin.com Wed Mar 7 12:15:16 2001 From: julian at essaustin.com (Julian Humphries) Date: Wed, 07 Mar 2001 11:15:16 -0600 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 References: Message-ID: <3AA66CA4.4DD1EA67@essaustin.com> David Gobbi wrote: > > > Under Windows you have to play a couple tricks, because the RenderWidgets > (for both Tcl and Python) rely on header files that are not included > with the binary Tcl distribution. In the standard VTK distribution, > the tcl/tk 8.2 versions of these headers are kept in pcmaker/xlib. > If you want to use any other version of tcl/tk (for example 8.0 for > use with Python1.5.2 or 8.3 for use with Python2.0) then you need to > 1) get and install the tcl/tk binaries > 1) under the pcmaker 'Advanced' options specify the paths to the tcl and > tk libraries > 2) get a copy of the tk source, and copy the 'generic', 'win', and > 'xlib' directories from the source distribution into your binary > distribution > > Yes, this is ugly. Also note that unless your tcl/tk version matches the > version of tcl/tk that python was built against, the RenderWidgets will > almost certainly not work under python. This last problem is one that has defeated me to date, I have only been able to get python 1.5.2/ tcl 8.0/ vtk 3.1 to work. So how do we match the tcl/tk - python - vtk versions? (for windows) Can someone outline a (binaries, not source) installation sequence for using Python 2 and vtk? Can somebody indicate a known combination of versions that work? (I assume from the other text in this message that vtk is not the issue, other than the version of tcl/tk that it installs, and perhaps some path issues). Thanks, Julian Humphries From dgobbi at irus.rri.on.ca Wed Mar 7 12:26:52 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 7 Mar 2001 12:26:52 -0500 (EST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <15014.25888.546499.834270@monster.linux.in> Message-ID: On Wed, 7 Mar 2001, Prabhu Ramachandran wrote: > David> The VTK nightly builds work with Python 1.5.2 and Python > David> 2.0 under UNIX and Linux, and with Tcl/Tk 8.0 through 8.3 > David> (probably 8.4 as well, but I've never tried). > > Umm. But I thought that Python2.0 is not binary compatible with > Python1.5.x? So doesnt it matter as to which version of Python is > used to build VTK? Well, you have to pick one! But either one will work. That is, as long as you are building VTK from source. > The other thing is - why do people have trouble with VTK on RedHat > 7.0? Does it have anything to do with the Tcl/Tk version or is it > something else? It has to do with the gcc-2.96 that is shipped with RedHat 7.0. The most recent stable version of gcc is 2.95. In order to build VTK under Redhat 7.0, you have to go to the RedHat errata page and download their latest gcc patches. I still run RedHat 6.2, and probably won't upgrade until RedHat 7.2 is available. > David> Yes, this is ugly. Also note that unless your tcl/tk > David> version matches the version of tcl/tk that python was built > David> against, the RenderWidgets will almost certainly not work > David> under python. > > Okay - in which case cant a simple note be made on the site (or > atleast somewhere else) saying something like Personally I don't like the idea of putting the information on the web site, because web sites (including Kitware's) have a notorious reputation for becoming out-of-date. I think that the appropriate location for this information is in README files in VTK, where developers can modify them via CVS. > I must have missed something but this is what I understand: > > (1) The current vtk nightly binaries for Windows will work properly > if the user has > > (a) Either Python 1.5.2 or above (i.e. it will also work for > Python 2.0) Nope, just Python 1.5.2 -- you must recompile to use Python 2.0. Ideally, there should be a separate installer that would support Python 2.0, but we would need commitment from someone at Kitware to build it and put it on the web site. > (2) The nightly RPMs will work with > > (a) Python >= 1.5.2 (including 2.0). Again, you must recompile to have them work with anything other than Python-1.5.2/Tk-8.0 (which is fine for now, because this is what RedHat-6.0 through RedHat-7.0 use -- but one RedHat-7.1 is out (with Tk-8.3) we're back into version hell). - David From cmarbur at iti.upv.es Wed Mar 7 12:40:52 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Wed, 7 Mar 2001 18:40:52 +0100 (CET) Subject: [vtkusers] Clipping objects Message-ID: Hello. I am developing a project with VTK, using Java. I have to display some objects which can be added dinamically to the scene. Clipping planes can be added to the scene dinamically too. How can I update the scene so it will be updated each time that I add an object or a clipping plane? What is the pipeline to be used? Furthermore it is important for the user to pick the objects to select and get some data about them. How can I use the picking classes to get this information from the actor picked. I'll be very thankful if someone reply me some ideas in Java. Thanks in advance. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From millerjv at crd.ge.com Wed Mar 7 12:44:58 2001 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Wed, 7 Mar 2001 12:44:58 -0500 Subject: [vtkusers] RE: vtk, python20, TkRenderWidget, Win2000 Message-ID: I pretty much figured the problem was with a tcl version mismatch between vtk and python. I grabbed the necessary headers for tcl 8.3 and rebuilt vtk with tcl8.3. The TkRenderWidget.py script works fine not. 'Course now I have another problem. I am trying to parent the TkRenderWidget off a Pmw.Notebook page (that is inside a Pmw.PanelWidget). Has anyone tried this? I just wind up a notebook page that refuses to paint. It feels like the event system is not tied together properly and the first paint event is not being processed. Perhaps the underlying objects are not being created. Maybe this is a problem with Pmw? Or perhaps I need to send a couple of extra "pack" calls somewhere. Notes ----- 1) install.py could not copy the TkRenderWidget dll to the system directory because it could not find it. The working directory was e:\vtk\python and this library is in e:\vtkbin\lib. So the install.py does not know a separate build directory exists. 2) I tried to separate vtk the Tk internals on the windows side a couple of months ago. I basically tried to mimic what Dan Blezek did on the unix side. He basically restricted all calls to Tk to the public interface. My attempt to do this on Windows resulted in a TkWidget that would not parent properly. I'll take another look at this sometime. I would REALLY like to remove the dependency on the internals to tcl and tk. 3) If we could be successful at #2, then we wouldn't have to ship ANY tcl libraries with vtk. Therefore, we could avoid one of the mismatches in tcl versions. This makes sense to me since we do not ship versions of python or java with vtk. -----Original Message----- From: David Gobbi [mailto:dgobbi at irus.rri.on.ca] Sent: Wednesday, March 07, 2001 12:07 PM To: Miller, James V (CRD) Cc: VTK Mailing List Subject: Re: vtk, python20, TkRenderWidget, Win2000 Hi Jim, In case you didn't catch my reply to Prabhu, the problem lies with the fact that graphics/vtkTkRenderWidget.cxx (and the other widgets) require header files that don't come with the binary distribution of tcl/tk. Because Python-2.0 was built against tcl83.lib and tk83.lib, you must specify (in pcmaker) that VTK is to be built against these libs. Unfortunately pcmaker uses a fancy (and undocumented) set of rules for searching for the tcl/tk header files. If you tell it that the tcl/tk libraries are "C:\Program Files\Tcl\lib\tcl83.lib" "C:\Program Files\Tcl\lib\tk83.lib" then it adds the following include directories to the build (I was told this recently by Sebastien, but pcmaker has been doing this for years) "C:\Program Files\Tcl\include" "C:\Program Files\Tcl\xlib" "C:\Program Files\Tcl\win" "C:\Program Files\Tcl\generic" but the 'xlib', 'win', and 'generic' directories are only present in the source distribution of tcl/tk. (Note that you only require these directories from the tk source, not the tcl source). So, what I do is copy these directories to my binary Tcl distribution. So what should be done to make things easier? First, someone should take a good hard look at vtkTkRenderWidget.cxx to determine if it is at all possible to remove its dependence on these 'internal' tk header files (someone already did this fix for UNIX a while back). Also, 1) a big, fat README.TXT should be added to the pcmaker directory that tells people in gory detail how to build against a specific tcl/tk distribution 2) the tcl/tk libs included with VTK should be updated to 8.3, so that VTK can be built against Python-2.0 with no hassle (at least until Python switches to a different Tcl/Tk version...). - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 7 Mar 2001, Miller, James V (CRD) wrote: > David and John, > > I saw that you werew changing the build process for vtk's python bindings on the pc, so I'll direct > my question towards you. > > I am trying to build the python bindings for vtk on a pc with Windows2000 (shouldn't matter, but I > have hit upon some other Win2000 library problems). The normal python bindings work fine, but when I > use TkRenderWidget my program crashes. The build process seems to build the TkRenderWidget dll fine. > > Since this is the TkRenderWidget, my first assumption is that vtk and python are building with > different versions of tcl/tk. (Any time TkRenderWidget doesn't work in tcl the cause is usually that > vtk is built against one version and is executing against a different version.) By default, vtk is > building with tcl 8.2 and it looks like python 2.0 ships with tcl 8.3. > > Are you building off the vtk repository with python 2.0? Do I need to go grab the source for tcl 8.3 > so I can build vtk with the same version of tcl that python ships with? > > Jim Miller > _____________________________________ > Computer Graphics & Systems Program > GE Corporate Research & Development > Bldg. KW, Room C218B > P.O. Box 8, Schenectady NY 12301 > > millerjv at crd.ge.com > (518) 387-4005, Dial Comm: 8*833-4005, > Cell: (518) 505-7065, Fax: (518) 387-6981 > > <> > > begin 600 James Miller (E-mail).vcf > M0D5'24XZ5D-!4D0-"E9%4E-)3TXZ,BXQ#0I..DUI;&QE M2F%M97, at 36EL;&5R("A%+6UA:6PI#0I/4D M4TP-"E1%3#M73U)+.U9/24-%.B at U,3 at I(#,X-RTT,#`U#0I414P[5T]22SM6 > M3TE#13HJ.#,S+30P,#4-"E1%3#M73U)+.T9!6#HH-3$X*2`S.# M0412.U=/4DL[14Y#3T1)3D<]455/5$5$+5!224Y404),13H[0V]M<'5T97(@ > M1W)A<&AI8W,@)B!3>7-T96US(%!R;V=R86T[0DQ$1R!+5RP at 4DT@0S(Q.$(] > M,$0],$%03R!";W@@.#M38VAE;F5C/0T*=&%D>3M.63LQ,C,P,3M5;FET960@ > M4W1A=&5S(&]F($%M97)I8V$-"DQ!0D5,.U=/4DL[14Y#3T1)3D<]455/5$5$ > M+5!224Y404),13I#;VUP=71E M;3TP1#TP04),1$<@2U M,$%38VAE;F5C=&%D>2P at 3ED@,3(S,#$],$0],$%5;FET960 at 4W1A=&5S(&]F > M($%M97)I8V$-"D5-04E,.U!2148[24Y415).150Z;6EL;&5R:G9`8W)D+F=E > G+F-O;0T*4D56.C(P,#`P,3(X5#$V,C8U-EH-"D5.1#I60T%21`T* > ` > end > From seb-ml-a at barre.nom.fr Wed Mar 7 12:53:03 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 18:53:03 +0100 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <3AA66CA4.4DD1EA67@essaustin.com> References: Message-ID: <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> At 07/03/01 11:15 -0600, Julian Humphries wrote: > > > Yes, this is ugly. Also note that unless your tcl/tk version matches the > > version of tcl/tk that python was built against, the RenderWidgets will > > almost certainly not work under python. > >This last problem is one that has defeated me to date, I have only been >able to get python 1.5.2/ tcl 8.0/ vtk 3.1 to work. > >So how do we match the tcl/tk - python - vtk versions? (for windows) Can >someone outline a (binaries, not source) installation sequence for using >Python 2 and vtk? Can somebody indicate a known combination of versions >that work? Windows : - Python 1.5.2 + Tcl 8.0.3 - Python 2.0 + Tcl 8.3.0 From seb-ml-a at barre.nom.fr Wed Mar 7 12:47:29 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 18:47:29 +0100 Subject: [vtkusers] Re: vtk, python20, TkRenderWidget, Win2000 In-Reply-To: References: Message-ID: <5.0.0.25.0.20010307182023.01e0a2b0@pop.fr.clara.net> At 07/03/01 12:06 -0500, David Gobbi wrote: >In case you didn't catch my reply to Prabhu, the problem lies with >the fact that graphics/vtkTkRenderWidget.cxx (and the other widgets) >require header files that don't come with the binary distribution of >tcl/tk. I will just add this is neither VTK nor Python fault. This is definitely a Tcl problem, I haven't understood why the binary distribs do not ship with these necessary headers. This is an old persistent problem, I remember having reported it since VTK 2.0 or before. >Unfortunately pcmaker uses a fancy (and undocumented) set of rules for >searching for the tcl/tk header files. Yes, I'm responsible for that fancy set of rules :) I added them a long time ago, because the previous behaviour prevented anyone to build VTK against the Tcl binary distrib, which is not organized like the Tcl source tree. I added these rules so that you will just have to specify the path to the Tcl or Tk libs, and the 'include' directory will be computed accordingly, no matter they come from self-compiled sources or pre-built binaries. It works. The problem, as David stated, is that the Tcl binary distrib does not ship with all headers. The gory details are (pcmakerDlg.h) : // Tcl/Tk development libs come in two flavors: sources or pre-built binaries // Sources => // libs : TCL_ROOT/win/Release/tcl**.lib // TK_ROOT/win/Release/tk**.lib // includes dirs : TCL_ROOT/win // TCL_ROOT/generic // TK_ROOT/win // TK_ROOT/generic // TK_ROOT/xlib // // Pre-built binaries => // libs : TCLTK_ROOT/lib/tcl**.lib // TCLTK_ROOT/lib/tcl**.lib // includes dirs : TCLTK_ROOT/include // // WARNING : as of tcl/tk 8.2, some include files are still missing :( // Extract them from the source package, and put them in TCLTK_ROOT/include : // TK_ROOT/generic/tkInt.h // TK_ROOT/generic/tkIntDecls.h // TK_ROOT/generic/tkPlatDecls.h // TK_ROOT/generic/tkIntPlatDecls.h // TK_ROOT/win/tkWin.h // TK_ROOT/win/tkWinInt.h // TK_ROOT/win/tkPort.h // TCL_ROOT/generic/tclInt.h // TCL_ROOT/generic/tclIntDecls.h // Let's update TclRoot and TkRoot so that they match TCL_ROOT / TK_ROOT or // both TCLTK_ROOT. // // Then use them to add the following INCLUDE path : // /I TkRoot/win /I TkRoot/xblib /I TkRoot/generic // /I TclRoot/win /I TclRoot/generic // /I TclRoot/include >then it adds the following include directories to the build (I was >told this recently by Sebastien, but pcmaker has been doing this >for years) > >"C:\Program Files\Tcl\include" >"C:\Program Files\Tcl\xlib" >"C:\Program Files\Tcl\win" >"C:\Program Files\Tcl\generic" > >but the 'xlib', 'win', and 'generic' directories are only present >in the source distribution of tcl/tk. Oh yes, I see the "problem" : I kept these directories (xlib, win, generic) because of laziness, sorry :), but it does not matter if they are present or not, the only important include dir is : "C:\Program Files\Tcl\include", where all your headers "should" be. I should remove xlib, win, generic in that case. >So, >what I do is copy these directories to my binary Tcl distribution. Yes indeed, you can do that, as a side effect of the previous problem :) Interesting. But the correct solution would be : put the include files in the "C:\Program Files\Tcl\include" directory, really. >1) a big, fat README.TXT should be added to the pcmaker directory that > tells people in gory detail how to build against a specific > tcl/tk distribution Yes. >2) the tcl/tk libs included with VTK should be updated to 8.3, so that > VTK can be built against Python-2.0 with no hassle (at least until > Python switches to a different Tcl/Tk version...). Oh yes. 8.3. We need that. From xfpku at yahoo.com.sg Wed Mar 7 12:56:41 2001 From: xfpku at yahoo.com.sg (=?iso-8859-1?q?xiong=20fei?=) Date: Thu, 8 Mar 2001 01:56:41 +0800 (CST) Subject: [vtkusers] Bounding box of volume Message-ID: <20010307175641.1987.qmail@web5407.mail.yahoo.com> Dear vtkusers I have created some volume objects in 3D space, and now want to build a bounding box to enclose the whole volume. But what make me confused is how to do it? It is not as obvious as what it is in VisAD or Vis5D, can someone help me? Thank you very much. Best regards BTW: i have listed the assumed picture below. __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkbound.jpg Type: image/pjpeg Size: 9395 bytes Desc: vtkbound.jpg URL: From cmarbur at iti.upv.es Wed Mar 7 12:54:49 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Wed, 7 Mar 2001 18:54:49 +0100 (CET) Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 Message-ID: Hello. I have problems compiling VTK 3.2 on RedHat 7.0. I fill the user.make file and set the CLASSPATH for Java wrappers. Then I run ./configure with this command line: ./configure --prefix=/usr/local/vtk3.2 --with-shared --with-tcl \ --with-java --with-python --with-tkwidget --with-patented --with-contrib I configure it without --with-mesa and --with-opengl because of I think opengl option is suposed. Then I run gmake and everything is OK until vtk binary file (TCL) is compiled. It reports an error with something about __sysconf. To solve this error I change USING_VTK_LINK_LIBS directive (I don't rememer well) by USING_VTK_BUILD_LIBS in the Makefile of tcl subdirectory. Everything is allright now. The problem is that when I run programs compiling cxx or with vtk binary file I get a segmentation fault. Could you tell me the correct way to run VTK 3.2 on RedHat 7.0? Thanks. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From seb-ml-a at barre.nom.fr Wed Mar 7 12:57:12 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Wed, 07 Mar 2001 18:57:12 +0100 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: References: <15014.25888.546499.834270@monster.linux.in> Message-ID: <5.0.0.25.0.20010307185343.01e0a030@pop.fr.clara.net> At 07/03/01 12:26 -0500, David Gobbi wrote: > > The other thing is - why do people have trouble with VTK on RedHat > > 7.0? Does it have anything to do with the Tcl/Tk version or is it > > something else? > >It has to do with the gcc-2.96 that is shipped with RedHat 7.0. Yes, the infamous 2.96 problem :( RH tried to explained why they did that, but it was too late :( I'd advise anyone to give a try to Mandrake 7.x. It's based on RH, but does not exhibit such kind of problems. It's a very efficient distrib, to my humble opinion. From prabhu at aero.iitm.ernet.in Wed Mar 7 13:01:38 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 7 Mar 2001 23:31:38 +0530 (IST) Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: References: <15014.25888.546499.834270@monster.linux.in> Message-ID: <15014.30594.394613.250482@monster.linux.in> hi, >>>>> "David" == David Gobbi writes: David> It has to do with the gcc-2.96 that is shipped with RedHat David> 7.0. The most recent stable version of gcc is 2.95. In David> order to build VTK under Redhat 7.0, you have to go to the David> RedHat errata page and download their latest gcc patches. David> I still run RedHat 6.2, and probably won't upgrade until David> RedHat 7.2 is available. I think there also was some problem with the Mesa version. Anyway, thanks for the information. >> Okay - in which case cant a simple note be made on the site >> (or atleast somewhere else) saying something like David> Personally I don't like the idea of putting the information David> on the web site, because web sites (including Kitware's) David> have a notorious reputation for becoming out-of-date. I David> think that the appropriate location for this information is David> in README files in VTK, where developers can modify them David> via CVS. That is fine too. But a link to the README from the webpage wont hurt either. People who download the binaries might not want to look at the source and therefore may never see what the README contains unless the README ships with the binary too. >> (2) The nightly RPMs will work with >> >> (a) Python >= 1.5.2 (including 2.0). David> Again, you must recompile to have them work with anything David> other than Python-1.5.2/Tk-8.0 (which is fine for now, David> because this is what RedHat-6.0 through RedHat-7.0 use -- David> but one RedHat-7.1 is out (with Tk-8.3) we're back into David> version hell). Okay, thanks for the information. I guess, if people want to use VTK on RH 7.x they have to do it by hand, unless someone decides to build the rpms and put them up for download (if someone is interested I dont mind helping out). prabhu From jshalf at lbl.gov Wed Mar 7 13:40:07 2001 From: jshalf at lbl.gov (John Shalf) Date: Wed, 07 Mar 2001 10:40:07 -0800 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 References: <15014.25888.546499.834270@monster.linux.in> <5.0.0.25.0.20010307185343.01e0a030@pop.fr.clara.net> Message-ID: <3AA68086.496C91B7@lbl.gov> I emphatically second the "Mandrake" recommendation! Its RPMS are more compatable with RH installations than SuSE. The MandrakeUpdate utility automatically checks for system/security patches, downloads them, and installs them too. This saves me a *lot* of time compared to RH when new CERT advisaries come out.... But ultimately, all of us feel pretty cheezed off by the compiler/Mesa fiascos of RH7... -john Sebastien BARRE wrote: > At 07/03/01 12:26 -0500, David Gobbi wrote: > > > > The other thing is - why do people have trouble with VTK on RedHat > > > 7.0? Does it have anything to do with the Tcl/Tk version or is it > > > something else? > > > >It has to do with the gcc-2.96 that is shipped with RedHat 7.0. > > Yes, the infamous 2.96 problem :( > RH tried to explained why they did that, but it was too late :( > I'd advise anyone to give a try to Mandrake 7.x. It's based on RH, but does > not exhibit such kind of problems. It's a very efficient distrib, to my > humble opinion. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From prabhu at aero.iitm.ernet.in Wed Mar 7 14:03:19 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 8 Mar 2001 00:33:19 +0530 (IST) Subject: [vtkusers] VTK + wxPython flicker issue on Linux/GTK. Message-ID: <15014.34295.202775.997036@monster.linux.in> hi, The only thing holding me back from leaving Tkinter and starting to use wxPython is that under Debian GNU/Linux 2.2 with libwxgtk2.2-python version 2.2.1 and VTK 3.2beta when one runs the wxVTKRenderWindow.py demo there is a huge amount of flicker when one rotates the cone. There is also some very bad clipping that occurs if one zooms into the cone. The initial VTK window is also not sized properly. I know almost nothing about wxPython, so have no idea if these issues have been fixed or what the exact problem is. I'd appreciate if someone could tell me where the problem is and if there is a fix. I am not subscribed on the wxPython-users list so please CC me in on any messages from there. thanks, prabhu From Scott.Harris at wpafb.af.mil Wed Mar 7 15:10:01 2001 From: Scott.Harris at wpafb.af.mil (Harris Scott R CIV AFRL/SNJM) Date: Wed, 7 Mar 2001 15:10:01 -0500 Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. Message-ID: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> The wxVTKRenderWindow always comes up sized to 300x300 pixels. Once you resize the parent window, the VTKwindow resizes almost correctly. I see a single column of pixels on the right hand side. I've tried modifying the wxVTKRenderWindow code to fix some of this behavior, but I've been unsuccessful. I've avoided the problem by making my initial parent window 300x300. I'm using wxPython 2.2.1. -Scott -----Original Message----- From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] Sent: Wednesday, March 07, 2001 2:03 PM To: VTK users list; wxpython-users at lists.sourceforge.net Subject: [wxPython] VTK + wxPython flicker issue on Linux/GTK. hi, The only thing holding me back from leaving Tkinter and starting to use wxPython is that under Debian GNU/Linux 2.2 with libwxgtk2.2-python version 2.2.1 and VTK 3.2beta when one runs the wxVTKRenderWindow.py demo there is a huge amount of flicker when one rotates the cone. There is also some very bad clipping that occurs if one zooms into the cone. The initial VTK window is also not sized properly. I know almost nothing about wxPython, so have no idea if these issues have been fixed or what the exact problem is. I'd appreciate if someone could tell me where the problem is and if there is a fix. I am not subscribed on the wxPython-users list so please CC me in on any messages from there. thanks, prabhu _______________________________________________ wxPython-users mailing list wxPython-users at lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/wxpython-users From bjhenz at hotmail.com Wed Mar 7 16:53:54 2001 From: bjhenz at hotmail.com (Brian Henz) Date: Wed, 07 Mar 2001 15:53:54 -0600 Subject: [vtkusers] vtkPanel Render and Threads Message-ID: Hello, I am writing an application in Java (1.2.2) on SGI and (1.3.0) on Windows platforms. In the application an Actor is rendered in a vtkPanel and then a new thread is started which at specified intervals changes the Scalar values associated with the Actor and then calls Render() on the vtkPanel object. For SGI the actor is updated and drawn fine, but in windows once the vtkPanel is rendered after the scalars are changed the actor is gone. If I stop the thread and try to create a new actor this works fine. Is there a problem with rendering from a thread in windows, or changing the scalars if that thread is the only one accessing the Actor? I am using the nightly version of VTK for windows and Unix, and the unix distribution is from March 3 but Windows is from Feb. 12, I believe. Brian _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com From ganguly at acsu.buffalo.edu Wed Mar 7 17:08:51 2001 From: ganguly at acsu.buffalo.edu (Chandragupta Ganguly) Date: Wed, 7 Mar 2001 17:08:51 -0500 (EST) Subject: [vtkusers] instructions to build VTK on SGI230 with RedHat6.2 In-Reply-To: Message-ID: Hi I was wondering if anybody has a step by step instruction to build VTK on RedHat 6.2. I am using a SGI 230L. I am abit confused as to what version of tcl/tk and mesa to use in this case. Also, should I use ./configure --with-mesa or --with-opengl please let me know thanks Chandra From dgobbi at irus.rri.on.ca Wed Mar 7 17:30:37 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 7 Mar 2001 17:30:37 -0500 (EST) Subject: [vtkusers] instructions to build VTK on SGI230 with RedHat6.2 In-Reply-To: Message-ID: Hi Chandra, Here is what I use on the SGI 330: First, copy the attached user.make into the vtk directory. Then, do ./configure --with-shared --with-tcl --with-python --with-tkwidget \ --with-patented --with-contrib Note the '--with-shared' and also that there is no '--with-mesa' make make install Next, you will probably have to edit /etc/ld.so.conf and add '/usr/local/lib' if it is not there already, and then run /sbin/ldconfig to force the system to re-read /etc/ld.so.conf. That should be it! - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 7 Mar 2001, Chandragupta Ganguly wrote: > Hi > I was wondering if anybody has a step by step instruction to build > VTK on RedHat 6.2. I am using a SGI 230L. I am abit confused as to what > version of tcl/tk and mesa to use in this case. > Also, should I use > ./configure --with-mesa or --with-opengl > please let me know > thanks > Chandra > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- # this file can be used to override any of the values selected # by configure in system.make. At a minimum you should set # the following Tcl/Tk values if you are planning to use Tcl/Tk TCL_INCLUDE= TCL_LIB= -ltcl8.0 TK_INCLUDE= TK_LIB= -ltk8.0 MESA_INCLUDE= MESA_LIB=-lMesaGL -lXt # for python you must set this PYTHON_INCLUDES=-I/usr/include/python1.5 # Add additional CFLAGS and CXXFLAGS for compilation # uncomment the following two lines to set your own flags CC = gcc CXX = g++ USER_CFLAGS = -g -O3 -march=pentiumpro -pedantic -Wall USER_CXXFLAGS = -g -O3 -march=pentiumpro -pedantic -Wall # if you want to try the java support you'll need to set the following # variables to match your environment and uncomment them # #JDKHOME=/home/calvin/content/ITL/java-packages/dev-kits/JDK/jdk1.1 #JAVAC=${JDKHOME}/bin/javac #JAR=${JDKHOME}/bin/jar #JAVA_CLASS_HOME=/home/martink/java #JAVAH=${JDKHOME}/bin/javah #JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/solaris #JAVA_CXX_LIB=/common/software/g++-2.7.1/sun4/5.4/lib/libiberty.a /common/software/g++-2.7.1/sun4/5.4/lib/libstdc++.a /common/software/g++-2.7.1/sun4/5.4/lib/gcc-lib/sparc-sun-solaris2.4/2.7.1/libgcc.a From gte552m at prism.gatech.edu Wed Mar 7 23:00:49 2001 From: gte552m at prism.gatech.edu (David D. Marshall) Date: Wed, 07 Mar 2001 23:00:49 -0500 Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> Message-ID: <3AA703F1.BA5EAC72@prism.gatech.edu> Are you using the updated wxVTKRenderWindow code from http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html? I just tried it with this code (actually slightly modified) and could set my wxFrame to wxSize(150, 140) and wxSize(450, 340). I also could not get the column of pixels problem on the right either. Perhaps we are talking about different wxVTK packages because there are a few :(. As for Prabhu's original flicker question, perhaps you could take a look at the wxVTKRenderwindow code mentioned above and back-port it to python. I am not skilled in this, but from what I remember of the wxPython-VTK code it was similar to the above c++ class wxVTKWindow. Harris Scott R CIV AFRL/SNJM wrote: > The wxVTKRenderWindow always comes up sized to 300x300 pixels. Once you resize the parent > window, the VTKwindow resizes almost correctly. I see a single column of pixels on the right hand side. > I've tried modifying the wxVTKRenderWindow code to fix some of this behavior, but I've been unsuccessful. > I've avoided the problem by making my initial parent window 300x300. > > I'm using wxPython 2.2.1. > > -Scott > > -----Original Message----- > From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] > Sent: Wednesday, March 07, 2001 2:03 PM > To: VTK users list; wxpython-users at lists.sourceforge.net > Subject: [wxPython] VTK + wxPython flicker issue on Linux/GTK. > > hi, > > The only thing holding me back from leaving Tkinter and starting to > use wxPython is that under Debian GNU/Linux 2.2 with > libwxgtk2.2-python version 2.2.1 and VTK 3.2beta when one runs the > wxVTKRenderWindow.py demo there is a huge amount of flicker when one > rotates the cone. There is also some very bad clipping that occurs if > one zooms into the cone. The initial VTK window is also not sized > properly. I know almost nothing about wxPython, so have no idea if > these issues have been fixed or what the exact problem is. > > I'd appreciate if someone could tell me where the problem is and if > there is a fix. I am not subscribed on the wxPython-users list so > please CC me in on any messages from there. > > thanks, > prabhu > > _______________________________________________ > wxPython-users mailing list > wxPython-users at lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/wxpython-users > > _______________________________________________ > 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 -- David D. Marshall ARTLab System Administrator/GRA Georgia Institute of Technology, Atlanta Georgia, 30332 http://www.ae.gatech.edu/research/artlab/artl/artlab.html mailto:gte552m at prism.gatech.edu think: Why anonymity is good, http://www.cato.org/pubs/briefs/bp-054es.html From prabhu at aero.iitm.ernet.in Thu Mar 8 01:12:18 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 8 Mar 2001 11:42:18 +0530 (IST) Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. In-Reply-To: <3AA703F1.BA5EAC72@prism.gatech.edu> References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> <3AA703F1.BA5EAC72@prism.gatech.edu> Message-ID: <15015.8898.460902.283821@monster.linux.in> hi, >>>>> "David" == David D Marshall writes: David> As for Prabhu's original flicker question, perhaps you David> could take a look at the wxVTKRenderwindow code mentioned David> above and back-port it to python. I am not skilled in David> this, but from what I remember of the wxPython-VTK code it David> was similar to the above c++ class wxVTKWindow. I just looked at your package. However, my knowledge of GTK and wx is not good enough to help me here. Here is what i understand looking at the vtk.py from wxPython and wxVTKWindow.cpp that ships with Brian's and your wxVTK package. (1) You are right - both of them are pretty similar in what they try to do. One difference with wxPython.vtk is that there is no multiple inheritance and a renderwindow (not a renderwindowinteractor) is stored as an instance variable in the Python class. Would this make a big difference? (2) I noticed that you set the WindowId of the RenderWindow etc when doing an OnPaint. The vtk.py does this when the window is realized. There is another key difference on how the WindowId is set. The wxVTKWindow class does something funny for the __WXGTK__ case. You use a GtkPizza (I have no clue what that is) and set the RenderWindow's WindowId and DisplayID by looking at the pizza windows bin_window and getting its xwindow and xdisplay. The wxPython code cannot do something like this since it will not have access to Gtk/Gdk stuff. Instead of doing this the wxPython.vtk code merely does this: hdl = seld.GetHandle() self.renderWindow.SetWindowInfo(str(hdl)) Does this matter? Or do you have to do it someother way? So my questions are: (1) Does it matter that in wxPython we store Rather than my poking at this stuff in a random fashion without knowing what I am doing I'd appreciate it if someone who has some clue of what is going on helps. I have tried From prabhu at aero.iitm.ernet.in Thu Mar 8 01:25:01 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 8 Mar 2001 11:55:01 +0530 (IST) Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. In-Reply-To: <3AA703F1.BA5EAC72@prism.gatech.edu> References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> <3AA703F1.BA5EAC72@prism.gatech.edu> Message-ID: <15015.9661.439480.33616@monster.linux.in> hi, Sorry, the last mail was incomplete - I accidentally sent it out when I didnt intend sending it at all! Terribly sorry. >>>>> "David" == David D Marshall writes: David> As for Prabhu's original flicker question, perhaps you David> could take a look at the wxVTKRenderwindow code mentioned David> above and back-port it to python. I am not skilled in David> this, but from what I remember of the wxPython-VTK code it David> was similar to the above c++ class wxVTKWindow. I just looked at your package. However, my knowledge of GTK and wx is not good enough to help me here. Here is what i understand looking at the vtk.py from wxPython and wxVTKWindow.cpp that ships with Brian's and your wxVTK package. (1) You are right - both of them are pretty similar in what they try to do. One difference with wxPython.vtk is that there is no multiple inheritance and a renderwindow (not a renderwindowinteractor) is stored as an instance variable in the Python class. Would this make a big difference? (2) I noticed that you set the WindowId of the RenderWindow etc when doing an OnPaint. The vtk.py does this when the window is realized. There is another key difference on how the WindowId is set. The wxVTKWindow class does something funny for the __WXGTK__ case. You use a GtkPizza (I have no clue what that is) and set the RenderWindow's WindowId and DisplayID by looking at the pizza windows bin_window and getting its xwindow and xdisplay. The wxPython code cannot do something like this since it will not have access to Gtk/Gdk stuff. Instead of doing this the wxPython.vtk code merely does this: hdl = seld.GetHandle() self.renderWindow.SetWindowInfo(str(hdl)) Does this matter? Or do you have to do it someother way? So my questions are: (1) Does it matter that in wxPython we store a RenderWindow instead of a RenderWindowInteractor as you do? (2) Does it matter if you set the WindowId etc. in OnPaint or on the OnCreateWindow? (3) Do you have to do that GtkPizza thing to get things working with wxGtk? Is there another way? Can it be done under Python?? My guess is that item (3) is the most crucial. Rather than my poking at this stuff in a random fashion without knowing what I am doing I'd appreciate it if someone who has some clue of what is going on helps. thanks a ton and sorry for the incomplete post that I made earlier. regards, prabhu From marcelo at cci.fmrp.usp.br Wed Mar 7 08:49:32 2001 From: marcelo at cci.fmrp.usp.br (Marcelo Costa) Date: Wed, 07 Mar 2001 10:49:32 -0300 Subject: [vtkusers] 3D texture mapping ???? Message-ID: <3AA63C6C.C8B0747E@cci.fmrp.usp.br> Hi, users I've been study the Users Guide and on pg 125 is write that only there are 3 main volume rendering techniques. My question is anybody know if new version of vtk implement volume rendering with texture 3D (DVRT). Because in my work i will reconstruction image of MRI. Tanks a lot. Marcelo From Kostas.Bobolas at visualanalysis.com Thu Mar 8 09:05:36 2001 From: Kostas.Bobolas at visualanalysis.com (Kostas Bobolas) Date: Thu, 08 Mar 2001 15:05:36 +0100 Subject: [vtkusers] Re: vtkusers -- confirmation of subscription -- request 118723 References: <200102151158.GAA32235@public.kitware.com> <19780.983997359@www37.gmx.net> Message-ID: <3AA791B0.57F3345B@visualanalysis.com> confirm 118723 From mpuiggar at teleline.es Thu Mar 8 09:17:12 2001 From: mpuiggar at teleline.es (=?iso-8859-1?Q?Miguel_E._Puig_Garc=EDa?=) Date: Thu, 8 Mar 2001 15:17:12 +0100 Subject: [vtkusers] Problem with BCBvtkRenderWindow Message-ID: <018b01c0a7da$7873fbb0$fda093c1@sip.us.es> Hi all vtkusers. I've been working with vtk and Borland c++ Builder, usig the component created by J. Biddiscombe. Whe I have only one component in the aplication there is no problem, but when I have more than one there are problems. When a form containing more than one Bcbvtkrender Window componen is shown the interactor doesn't work, and other times the component shows the previous image in the screen instead of the scene on the renderer. I've tryed many changes to the code, and sometimes I've seen that when I create a new vtkRenderWindow to change the one in the Bcbvtkrender no memory is reserved for the new one. Could some of the problem be due to the setwindowid() and setparentid() functions? can anybody help me? Thanks a lot in advance. Miguel E. Puig Garc?a Escuela Superior de Ingenieros Sevilla Spain -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.p.botha at its.tudelft.nl Thu Mar 8 09:43:04 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Thu, 8 Mar 2001 15:43:04 +0100 Subject: [vtkusers] embedding python vtk pipelines in c++ vtk Message-ID: <20010308154304.E1034@dutidad.twi.tudelft.nl> Dear VTKers, I have a growing C++ VTK application and I'm pondering how I could go about having pipeline fragments in Python and having these interact with my VTK pipelines, i.e. I would like to SetInput() on a C++ instance with the GetOutput from a python "instance". In this way, the application would be nicely extensible with python scripts. I have looked at CXX (cxx.sourceforge.net) but it seems that this wants to wrap all python datastructures in its own C++ equivalents. Has anyone got any ideas w.r.t. this (combining python vtk pipelines with pipelines in a mainly C++ application)? Any information, pointers and FMs would be appreciated. Thanks, -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From prabhu at aero.iitm.ernet.in Thu Mar 8 11:12:00 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 8 Mar 2001 21:42:00 +0530 (IST) Subject: [vtkusers] embedding python vtk pipelines in c++ vtk In-Reply-To: <20010308154304.E1034@dutidad.twi.tudelft.nl> References: <20010308154304.E1034@dutidad.twi.tudelft.nl> Message-ID: <15015.44880.789396.671314@monster.linux.in> hi, >>>>> "Charl" == Charl P Botha writes: Charl> I have looked at CXX (cxx.sourceforge.net) but it seems Charl> that this wants to wrap all python datastructures in its Charl> own C++ equivalents. Has anyone got any ideas w.r.t. this Charl> (combining python vtk pipelines with pipelines in a mainly Charl> C++ application)? Take a look at the Boost Python Library (http://www.boost.org). It is rather easy to use and allows you to wrap C++ objects into Python very well. Infact you can overload virtual methods in Python and have them called by a c++ library if you do things right. You will have to write wrapper code by hand to wrap your C++ library - but that should not be too hard. It is really nice, and definitely worth a shot at. If you wait long enough you could use Kitware's GCC XML extensions to wrap your code to Python and other languages automatically! :) http://public.kitware.com/GCC_XML/ prabhu From c.p.botha at its.tudelft.nl Thu Mar 8 11:22:49 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Thu, 8 Mar 2001 17:22:49 +0100 Subject: [vtkusers] embedding python vtk pipelines in c++ vtk In-Reply-To: <15015.44880.789396.671314@monster.linux.in>; from prabhu@aero.iitm.ernet.in on Thu, Mar 08, 2001 at 09:42:00PM +0530 References: <20010308154304.E1034@dutidad.twi.tudelft.nl> <15015.44880.789396.671314@monster.linux.in> Message-ID: <20010308172249.F1034@dutidad.twi.tudelft.nl> Thanks for the tip, but I actually meant it the other way round. My application is all in C++, but I would like to be able to interpret little snippets of python code (representing VTK pipelines) and connect these pipelines with the pipelines in my main C++ code. I am able to interpret the python snippets, but I don't know how to connect a python VTK pipeline to my "main" C++ vtk pipelines. On Thu, Mar 08, 2001 at 09:42:00PM +0530, Prabhu Ramachandran wrote: > Take a look at the Boost Python Library (http://www.boost.org). It is > rather easy to use and allows you to wrap C++ objects into Python very -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From luciene at cci.fmrp.usp.br Thu Mar 8 13:53:59 2001 From: luciene at cci.fmrp.usp.br (Luciene Cavalcanti) Date: Thu, 08 Mar 2001 15:53:59 -0300 Subject: [Vtkusers] Volume calculation Message-ID: <3AA7D547.4593E7AD@cci.fmrp.usp.br> Hi users I need informations about volume calculation. Anybody know how i can implement with vtk ? Thanks a lot Luciene From will.schroeder at kitware.com Thu Mar 8 13:58:57 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 08 Mar 2001 13:58:57 -0500 Subject: [Vtkusers] Volume calculation In-Reply-To: <3AA7D547.4593E7AD@cci.fmrp.usp.br> Message-ID: <5.0.2.1.0.20010308135749.00ac00b8@pop.nycap.rr.com> Check out vtk/contrib/vtkMassProperties.h/.cxx Will At 03:53 PM 3/8/2001 -0300, Luciene Cavalcanti wrote: >Hi users > > >I need informations about volume calculation. Anybody know how i can >implement with vtk ? > > > >Thanks a lot William J. Schroeder, Ph.D Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 1-518-371-3971 (fax) From dgobbi at irus.rri.on.ca Thu Mar 8 14:03:30 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Thu, 8 Mar 2001 14:03:30 -0500 (EST) Subject: [vtkusers] embedding python vtk pipelines in c++ vtk In-Reply-To: <20010308172249.F1034@dutidad.twi.tudelft.nl> Message-ID: Hi Charl, In order to embed python/vtk in a C++ program, you shouldn't need any tools other than the vtkpython.so library (vtkpython.dll) that is part of VTK. Re-wrapping VTK in python using other tools isn't really going to help. The basics for embedding python in C/C++ are outlined in http://www.python.org/doc/current/ext/embedding.html, you've probably already covered this. To load the vtkpython extensions, you just have to call PyObject *obj = PyRun_SimpleString("from vtkpython import *") Py_XDECREF(obj); // decrement the null that was returned Note that if your main program is linked to vtkpython.so, then this call is guaranteed to find it, otherwise it will search or it in python's load path. The most efficent way to get the vtkObject pointer from a PyVTKObject is to include "common/vtkPythonUtil.h" and use e.g. PyObject *pyobj = PyRun_SimpleString("filter.GetOutput()"); vtkObject *obj = vtkPythonGetPointerFromObject(pyobj, "vtkPolyData"); obj->Register(NULL); // now we own the vtkObject Py_XDECREF(pyobj); // free the pyobj returned by PyRun // now you own a reference to 'vtkobj' and can use it from C++ Calling Register/Delete and Py_XINCREF/Py_XDECREF at the appropriate time is important. To go the other way around, i.e. create a PyVTKObject from a vtkObject, use the following: PyObject *pyobj = vtkPythonGetObjectFromPointer(filter->GetOutput()); and then, to bind the pyobj to a python variable do PyObject *mainmod = PyImport_ImportModule("__main__"); PyObject *maindict = PyModule_GetDict(mainmod); Py_XDECREF(mainmod); PyMapping_SetItemString(maindict,"variablename",pyobj); You'll probably want to keep 'maindict' around, so don't Py_XDECREF it. I hope that all of this helps. The important files to read are vtk/common/vtkPythonUtil.h and vtk/python/python.txt. If you get anywhere with this let me know, I might want to try it sometime. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 8 Mar 2001, Charl P. Botha wrote: > Thanks for the tip, but I actually meant it the other way round. My > application is all in C++, but I would like to be able to interpret little > snippets of python code (representing VTK pipelines) and connect these > pipelines with the pipelines in my main C++ code. I am able to interpret > the python snippets, but I don't know how to connect a python VTK pipeline > to my "main" C++ vtk pipelines. > > On Thu, Mar 08, 2001 at 09:42:00PM +0530, Prabhu Ramachandran wrote: > > Take a look at the Boost Python Library (http://www.boost.org). It is > > rather easy to use and allows you to wrap C++ objects into Python very > > From jeroen at merl.com Thu Mar 8 14:57:00 2001 From: jeroen at merl.com (Jeroen van Baar) Date: Thu, 08 Mar 2001 14:57:00 -0500 Subject: [vtkusers] picking a volume Message-ID: <3AA7E40C.EE53B095@merl.com> Dear VTK users, My scene is very simple and consists only of one volume (sometimes with an outline, but mostly not). My understanding of the render window interactor to transform objects is to switch from camera mode to object mode (pressing 'o'), pick the object I want to transform with the interactor (pressing 'p') and then I should be able to transform my volume. However it seems (and I did some debugging to figure out what happened in the code) that volumes cannot be picked, only actors? Is that right or am I missing something? How can one pick volumes such that the render window interactor can transform them? Thanks in advance, -jeroen -- Jeroen van Baar Member of Technical Staff MERL Cambridge Research http://www.merl.com/people/jeroen From jbiddiscombe at skippingmouse.co.uk Thu Mar 8 17:14:44 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 08 Mar 2001 22:14:44 +0000 Subject: [vtkusers] Problem with BCBvtkRenderWindow In-Reply-To: <018b01c0a7da$7873fbb0$fda093c1@sip.us.es> Message-ID: <5.0.0.25.0.20010308220829.03d936d0@mail.skippingmouse.co.uk> Miguel, I routinely use many renderwindows and have no trouble, but I'm told that one some windows boxes multiple renderwindow can cause trouble. Fixes were put in the nightlies some weeks back which I believe address this. If this isn't the nature of your problem.... I posted a demo years ago with several renderwindows in one form (my progs use seperate forms for renderwindows these days). I'll try and dig it out if you think it'll help. >I've tryed many changes to the code, and sometimes I've seen that when I >create a new vtkRenderWindow to change the one in the Bcbvtkrender no >memory is reserved for the new one. Could some of the problem be due to >the setwindowid() and setparentid() functions? I'll ponder this and get back to you, but at first glance I'd say no. ttfn JB From will.schroeder at kitware.com Thu Mar 8 17:20:42 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 08 Mar 2001 17:20:42 -0500 Subject: [vtkusers] (no subject) Message-ID: <5.0.2.1.0.20010308171551.0255c008@pop.nycap.rr.com> Hi Folks- We are starting to obsolete some classes and methods in the nightly vtk releases. For starters, the classes listed are obsoleted: vtkFloatNormals vtkFloatPoints vtkFloatScalars vtkFloatTCoords vtkFloatTensors vtkFloatVectors If you have an application that uses these classes, you should replace the named class with the following class as described below: vtkFloatNormals - vtkNormals vtkFloatPoints - vtkPoints vtkFloatScalars - vtkScalars vtkFloatTCoords - vtkTCoords vtkFloatTensors - vtkTensors vtkFloatVectors - vtkVectors Will From krs at zappa.uncc.edu Thu Mar 8 19:14:14 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Thu, 08 Mar 2001 19:14:14 -0500 Subject: [vtkusers] cell id from structured grid.. Message-ID: <3AA82055.911ECA77@mail.cs.uncc.edu> Is it possible to get the cell id given a point (x, y, z) from a structured grid? I am generating contour lines from a structured grid and I can extract the point coordinates (using GetPoints()), what I need are the point ids (or lattice coordinates) corresponding to these points on the contour. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From lisa.avila at kitware.com Thu Mar 8 23:20:36 2001 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Thu, 08 Mar 2001 23:20:36 -0500 Subject: [vtkusers] 3D texture mapping ???? In-Reply-To: <3AA63C6C.C8B0747E@cci.fmrp.usp.br> Message-ID: <4.3.2.20010308231914.027705d0@pop.nycap.rr.com> Hello Marcelo, Currently only 2D texture mapping is supported for volume rendering (it is more widely available). This does lead to some temporal artifacts as you cross the "border" between one major direction and another, but generally the results are reasonable. Lisa At 08:49 AM 3/7/2001, Marcelo Costa wrote: >Hi, users > >I've been study the Users Guide and on pg 125 is write that only there >are 3 main volume rendering techniques. My question is anybody know if >new version of vtk implement volume rendering with texture 3D (DVRT). >Because in my work i will reconstruction image of MRI. > >Tanks a lot. > >Marcelo > > > >_______________________________________________ >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 krs at zappa.uncc.edu Fri Mar 9 00:05:29 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Fri, 09 Mar 2001 00:05:29 -0500 Subject: [vtkusers] [Fwd: cell id from structured grid..] Message-ID: <3AA86499.5B0C0419@mail.cs.uncc.edu> (if you see 2 copies of this message, I apologize - the first time it didnt seem to get through) Is it possible to get the cell id given a point (x, y, z) from a structured grid? I am generating contour lines from a structured grid and I can extract the point coordinates (using GetPoints()), what I need are the point ids (or lattice coordinates) corresponding to these points on the contour. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From prabhu at aero.iitm.ernet.in Fri Mar 9 02:57:05 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 13:27:05 +0530 (IST) Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. In-Reply-To: <3AA703F1.BA5EAC72@prism.gatech.edu> References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> <3AA703F1.BA5EAC72@prism.gatech.edu> Message-ID: <15016.36049.107740.962480@monster.linux.in> hi, >>>>> "David" == David D Marshall writes: David> Are you using the updated wxVTKRenderWindow code from David> http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html? I David> just tried it with this code (actually slightly modified) David> and could set my wxFrame to wxSize(150, 140) and David> wxSize(450, 340). I also could not get the column of David> pixels problem on the right either. Perhaps we are talking David> about different wxVTK packages because there are a few :(. David> As for Prabhu's original flicker question, perhaps you David> could take a look at the wxVTKRenderwindow code mentioned David> above and back-port it to python. I am not skilled in David> this, but from what I remember of the wxPython-VTK code it David> was similar to the above c++ class wxVTKWindow. Well, I just got the latest wxwindows version 2.2.5.1 and got it compiled for debian. I got the sources from woody and managed to get them compiled on my potato box. wxwindows seems to work okay. The flicker problem with python is still there. In order to test David's C++ wxVTKRenderWindow code I compiled the stuff and ran both the Sample_gtk and the SplitSample_gtk test programs without making any modifications to wxVTKWindow.cpp. Unfortunately, both of them flicker quite a bit! :( Even if I just rotate the cone by a small amount, slowly, it is clear that there is flicker. None of my other VTK-Python code flickers like this. The standard Cone.py example works, so does all my other code (and i have quite a bit of it). I have a hardware accelerated card - so it is likely that I am able to see the flicker. This also explaine Marco's experiences of seeing flicker on the SGI machines. I then looked at the VTK list archives and some of my saved messages and found that Renaud KERIVEN mentioned that replacing SetWindowId by SetParentId fixes the flicker problem. I did just that and it fixed the problem with your C++ wxVTKWindow class. I also tried removing the SetDisplayId part and that worked fine too. Hence here are some modfications that I suggest for your class (this is valid only for WXGTK since I cant test on any other platform): (1) You dont need to set the DisplayId. This can be safely removed. (2) Replace the SetWindowId to SetParentId - this removes all the flicker. (3) You shouldnt set the Parent Id each time you do OnPaint. if you do this then when I resize the programs window I get error messages from VTK like so: $ ./Sample_gtk ERROR: In vtkXRenderWindow.cxx, line 223 vtkOpenGLRenderWindow (0x80cc5d0): ParentId is already set. ERROR: In vtkXRenderWindow.cxx, line 223 vtkOpenGLRenderWindow (0x80cc5d0): ParentId is already set. etc. etc. This should hopefully fix the flicker problems with the wxVTKWindow class. It appears to me that if a similar approach is taken with the Python class the flicker with the Python code can also be eliminated. I propose to add a member function to the vtkXRenderWindow and vtkWin32OpenGLRenderWindow classes called SetParentInfo() which works just like SetWindowInfo. Hopefully, by using this instead of the SetWindowInfo the flicker can be completely eliminated. I will let you folks know how it goes. thanks, prabhu From cmarbur at iti.upv.es Fri Mar 9 04:10:44 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Fri, 9 Mar 2001 10:10:44 +0100 (CET) Subject: [vtkusers] Three cutting planes? Message-ID: Hi all. I am trying to apply three cutting planes to an object (see the atachment file). I pass the object to a ClipPolyData filter an to a Cutter filter like in the capCow.tcl example. Then I append the results and take it's output like an object, to cut it whith the second plane. The same is done with the third. I think I got the wrong way but I don't know how to do it easily. I have tried whith vtkImplicitBoolean and with vtkPlanes, but I get wrong results. Please, could somebody take a look to my program and tell me how? (It is written in Java, but the pipeline is the same) How can I apply the same three cutting planes to more than one object? Thanks in advance. I have a big problem and I don't have much knowledge of VTK. Greetings. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- -------------- next part -------------- import vtk.*; import java.awt.*; import java.awt.event.*; import javax.swing.*; public class Prueba extends JPanel implements KeyListener { vtkPanel panelVTK; vtkRenderer renderer; double corteX,corteY,corteZ; vtkPlane planoX,planoY,planoZ; vtkClipPolyData clipperX,clipperY,clipperZ; vtkCutter cutterX,cutterY,cutterZ; vtkFeatureEdges edgesX,edgesY,edgesZ; vtkCleanPolyData cleanX,cleanY,cleanZ; vtkTriangleFilter triangles; vtkStripper stripperX,stripperY,stripperZ; vtkPolyData cuttedPolyX,cuttedPolyY,cuttedPolyZ; vtkAppendPolyData appendX,appendY,appendZ; vtkPolyDataMapper mapper; vtkActor actor; public Prueba() { panelVTK=new vtkPanel(); panelVTK.setSize(500,500); panelVTK.addKeyListener(this); add(panelVTK); renderer=panelVTK.getRenderer(); renderer.TwoSidedLightingOn(); renderer.SetBackground(1,1,1); corteX=0; planoX=new vtkPlane(); planoX.SetOrigin(corteX,0,0); planoX.SetNormal(1,0,0); corteY=0; planoY=new vtkPlane(); planoY.SetOrigin(0,corteY,0); planoY.SetNormal(0,1,0); corteZ=0; planoZ=new vtkPlane(); planoZ.SetOrigin(0,0,corteZ); planoZ.SetNormal(0,0,1); vtkSphereSource esfera=new vtkSphereSource(); esfera.SetCenter(0,0,0); esfera.SetRadius(100); esfera.SetPhiResolution(20); esfera.SetThetaResolution(20); clipperX=new vtkClipPolyData(); clipperX.SetInput(esfera.GetOutput()); clipperX.SetClipFunction(planoX); clipperX.GenerateClipScalarsOff(); clipperX.GenerateClippedOutputOff(); clipperX.SetValue(0); cutterX=new vtkCutter(); cutterX.SetInput(esfera.GetOutput()); cutterX.SetCutFunction(planoX); cutterX.GenerateCutScalarsOn(); cutterX.SetValue(0,0); stripperX=new vtkStripper(); stripperX.SetInput(cutterX.GetOutput()); stripperX.Update(); cuttedPolyX=new vtkPolyData(); cuttedPolyX.SetPoints(stripperX.GetOutput().GetPoints()); cuttedPolyX.SetPolys(stripperX.GetOutput().GetLines()); appendX=new vtkAppendPolyData(); appendX.AddInput(clipperX.GetOutput()); appendX.AddInput(cuttedPolyX); clipperY=new vtkClipPolyData(); clipperY.SetInput(appendX.GetOutput()); clipperY.SetClipFunction(planoY); clipperY.GenerateClipScalarsOff(); clipperY.GenerateClippedOutputOff(); clipperY.SetValue(0); cutterY=new vtkCutter(); cutterY.SetInput(appendX.GetOutput()); cutterY.SetCutFunction(planoY); cutterY.GenerateCutScalarsOn(); cutterY.SetValue(0,0); stripperY=new vtkStripper(); stripperY.SetInput(cutterY.GetOutput()); stripperY.Update(); cuttedPolyY=new vtkPolyData(); cuttedPolyY.SetPoints(stripperY.GetOutput().GetPoints()); cuttedPolyY.SetPolys(stripperY.GetOutput().GetLines()); appendY=new vtkAppendPolyData(); appendY.AddInput(clipperY.GetOutput()); appendY.AddInput(cuttedPolyY); clipperZ=new vtkClipPolyData(); clipperZ.SetInput(appendY.GetOutput()); clipperZ.SetClipFunction(planoZ); clipperZ.GenerateClipScalarsOff(); clipperZ.GenerateClippedOutputOff(); clipperZ.SetValue(0); cutterZ=new vtkCutter(); cutterZ.SetInput(appendY.GetOutput()); cutterZ.SetCutFunction(planoZ); cutterZ.GenerateCutScalarsOn(); cutterZ.SetValue(0,0); stripperZ=new vtkStripper(); stripperZ.SetInput(cutterZ.GetOutput()); stripperZ.Update(); cuttedPolyZ=new vtkPolyData(); cuttedPolyZ.SetPoints(stripperZ.GetOutput().GetPoints()); cuttedPolyZ.SetPolys(stripperZ.GetOutput().GetLines()); appendZ=new vtkAppendPolyData(); appendZ.AddInput(clipperZ.GetOutput()); appendZ.AddInput(cuttedPolyZ); mapper=new vtkPolyDataMapper(); mapper.SetInput(appendZ.GetOutput()); actor=new vtkActor(); actor.SetMapper(mapper); actor.GetProperty().SetColor(0,0,1); renderer.AddActor(actor); } public void actualizar() { planoX.SetOrigin(corteX,0,0); planoY.SetOrigin(0,corteY,0); planoZ.SetOrigin(0,0,corteZ); stripperX.Update(); cuttedPolyX.SetPoints(stripperX.GetOutput().GetPoints()); cuttedPolyX.SetPolys(stripperX.GetOutput().GetLines()); stripperY.Update(); cuttedPolyY.SetPoints(stripperY.GetOutput().GetPoints()); cuttedPolyY.SetPolys(stripperY.GetOutput().GetLines()); stripperZ.Update(); cuttedPolyZ.SetPoints(stripperZ.GetOutput().GetPoints()); cuttedPolyZ.SetPolys(stripperZ.GetOutput().GetLines()); mapper.Update(); panelVTK.Render(); } public void updatePipeline() { panelVTK.Render(); } public void keyPressed(KeyEvent e) { if (e.getKeyCode()==KeyEvent.VK_Q) { System.exit(0); } else if (e.getKeyCode()==KeyEvent.VK_X) { if (e.getModifiers()==KeyEvent.SHIFT_MASK) corteX+=10; else corteX-=10; System.out.println("Corte X="+corteX); } else if (e.getKeyCode()==KeyEvent.VK_Y) { if (e.getModifiers()==KeyEvent.SHIFT_MASK) corteY+=10; else corteY-=10; System.out.println("Corte Y="+corteY); } else if (e.getKeyCode()==KeyEvent.VK_Z) { if (e.getModifiers()==KeyEvent.SHIFT_MASK) corteZ+=10; else corteZ-=10; System.out.println("Corte Z="+corteZ); } actualizar(); } public void keyReleased(KeyEvent e) {} public void keyTyped(KeyEvent e) {} public static void main(String args[]) { JFrame frame=new JFrame("Prueba de VTK con Java"); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); frame.getContentPane().add(new Prueba()); frame.pack(); frame.setSize(500,500); frame.setVisible(true); } } From cmarbur at iti.upv.es Fri Mar 9 05:46:21 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Fri, 9 Mar 2001 11:46:21 +0100 (CET) Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 In-Reply-To: Message-ID: Hello again. I have upgraded Red Hat 7.0 with the bug fixes and nothing has changed. I get the same error message and when I run an example, I get a core dump. I have a Geforce 2 MX with the NVIDIA rpm drivers. Could this be the problem? I think not because everything is OK but VTK. I think that I could install Mandrake 7.2, the NVIDIA drivers, and compile VTK again. Has anybody compiled VTK in Mandrake 7.2? Will I get the same problems? If I can't resolve this problem I'm going to install VTK and JDK on Windows, but I prefer Linux to develop software. Do you understand me? Well, I use VTK on work but I need to use it in home, where I can't have it run. Please help me!! Thanks a lot. On Wed, 7 Mar 2001, David Gobbi wrote: > Hi Carlos, > > The fix for this was mentioned earlier today. Go to > http://www.redhat.com/errata and download (under Bug Fixes) > the latest gcc and glibc. > > The problem is not with VTK at all, it is with the version > of gcc that RedHat included with 7.0. > > - David > > > On Wed, 7 Mar 2001, Carlos Martinez Burgos wrote: > > > Hello. > > > > I have problems compiling VTK 3.2 on RedHat 7.0. I fill the user.make file > > and > > set the CLASSPATH for Java wrappers. Then I run ./configure with this > > command line: > > > > ./configure --prefix=/usr/local/vtk3.2 --with-shared --with-tcl \ > > --with-java --with-python --with-tkwidget --with-patented --with-contrib > > > > I configure it without --with-mesa and --with-opengl because of I think > > opengl option is suposed. > > > > Then I run gmake and everything is OK until vtk binary file (TCL) is > > compiled. It reports an error with something about __sysconf. > > > > To solve this error I change USING_VTK_LINK_LIBS directive (I don't > > rememer well) by USING_VTK_BUILD_LIBS in the Makefile of tcl > > subdirectory. Everything is allright now. > > > > The problem is that when I run programs compiling cxx or with vtk binary > > file I get a segmentation fault. > > > > Could you tell me the correct way to run VTK 3.2 on RedHat 7.0? > > > > Thanks. > > > > > -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From erik.sohns at web.de Fri Mar 9 06:00:10 2001 From: erik.sohns at web.de (Erik Sohns) Date: Fri, 09 Mar 2001 12:00:10 +0100 Subject: [vtkusers] Scalar Value in MC References: <200103061436.JAA30554@public.kitware.com> Message-ID: <3AA8B7BA.CDDAF6F2@web.de> Hi all, I'm trying to contour segmented volumes using marching cubes. Initially, I'd taken the a straightfoward approach, setting the scalar value to the actual class value (i.e. 1024) I'd wanted to visualize, having masked the unwanted classes aforehand. This seems to work, although I get a rather stepped surface. The steps occur between voxel boundaries. Now, the book gives an example using a slightly different technique, where half the contour value (i.e. 511.5) is used. This 'shifts' the generated surface by half a voxelsize, producing slightly more primitives in my case. In this case, the steppings occur at mid-voxel height (as expected). As these generated models are not equivalent, I was wondering which is the better approach respective model accuracy. Any ideas ? Greetings, Erik From Oliver.Fleig at univ-rennes1.fr Fri Mar 9 06:07:25 2001 From: Oliver.Fleig at univ-rennes1.fr (Oliver Fleig) Date: Fri, 09 Mar 2001 12:07:25 +0100 Subject: [vtkusers] genarating movies from VTK views Message-ID: <3AA8B96D.4020507@univ-rennes1.fr> Hello! I would like to generate a movie (mpg?) from a vtk scene. The only solution I see would be dividing the camera trajectory into small steps and grab the RenderWindow using SaveImageAsPPM. And then trying to make an mpeg from the resulting images. Has anyboy a nicer way to do that?? Cheers Oliver -- Oliver Fleig Laboratoire SIM mailto:Oliver.Fleig at univ-rennes1.fr From prabhu at aero.iitm.ernet.in Fri Mar 9 06:22:15 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 16:52:15 +0530 (IST) Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. In-Reply-To: <3AA703F1.BA5EAC72@prism.gatech.edu> References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil> <3AA703F1.BA5EAC72@prism.gatech.edu> Message-ID: <15016.48359.526707.641853@monster.linux.in> hi, This is the promised update on the flicker issue with wxPython + VTK on Linux with GTK. In the earlier message I indicated that the C++ class wxVTKWindow works fine when one changes the references to WindowId to ParentId. As regards the Python code, the vtk.py shipped with wxPython sets the WindowId by calling the wrapped function SetWindowInfo(char *) like so: hdl = self.GetHandle() self.renderWindow.SetWindowInfo(str(hdl)) Since the flicker in the c++ class vanished when I used ParentId instead of WindowId I proposed to add a new function called SetParentInfo to the vtk classes. I just did that and recompiled the libVTKGraphics.so and libVTKGraphicsPython.so. Then I changed the wxPython/lib/vtk.py file to use this new function like so: hdl = self.GetHandle() self.renderWindow.SetParentInfo(str(hdl)) I am thrilled to say it now works like a charm! No more flicker!! I also added an OnSize method to make the size change properly. I guess when I get a little more familiar with wxPython I will send in an improved wxVTKRenderWindow class. I did notice a silly problem with all the wxPython demos. All of the widgets do not seem to redraw on an expose event. Is this a known bug?? Meanwhile, I will send the VTK patches to the VTK list separately and hope that the stuff gets added to both the CVS tree and also the 3.2beta branch. Now there is nothing stopping me from learning wxPython properly!! Thanks for all the help and patient listening. :) regards, prabhu From d.agrafiotis at bristol.ac.uk Fri Mar 9 06:35:32 2001 From: d.agrafiotis at bristol.ac.uk (Dimitris Agrafiotis) Date: Fri, 9 Mar 2001 11:35:32 +0000 Subject: [vtkusers] Hardware Clipping planes Message-ID: Dear All I have a polygonal object which I want to clip using hardware clipping planes. However I want to keep the part of the object that is outside the region defined by the 6 clipping planes and not the inside, thus leaving something like a hole in the geometry. To do that I currently use 6 mappers defining a clipping plane for each one (with the normal of each plane looking outwards). To avoid re-rendering parts that already exist from previous mappers I also include the clipping planes used so far(minus one) with the normals inverted. I am wondering, is there any smarter way to do that? What about using the stencil buffer to define pixels that shouldn't be drawn? Can I manipulate the stencil buffer with VTK? Or is this wrong anyway? Thanks in advance ---------------------- Dimitris Agrafiotis University of Bristol Department of Electrical & Electronic Engineering Merchant Venturers Building Woodland Road, Bristol BS8 1UB, UK Phone: (+ 44 117) 9545194 E-mail: d.agrafiotis at bristol.ac.uk From prabhu at aero.iitm.ernet.in Fri Mar 9 06:49:01 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 17:19:01 +0530 (IST) Subject: [vtkusers] Patch for wxPython + VTK fix. Message-ID: <15016.49965.49421.324706@monster.linux.in> hi, Rather than send a patch to the whole list I'd like to ask someone with CVS access and the time if they would be willing to look at the stuff? I will send in the patches to them. I'd appreciate if someone could also help me with the following questions: Right now I have added a method called SetParentInfo(char *) that is very similar to the SetWindowInfo method to the files vtkRenderWindow.h, vtkXRenderWindow.{h,cxx}, vtkWin32OpenGLRenderWindow.{h,cxx}. This enables one to set the ParentId from a Python script. The question is since vtkRenderWindow is derived from vtkWindow should I add these methods to vtkWindow also? If I add them to the vtkWindow, then I will have to add the methods to the vtkImageWindow and derived classes as well. However, I found that the Info related methods are not implemented in the ImageWindows. Should I go ahead and add them in as well? Any objections or specific reason why these were never implemented?? thanks, prabhu -- It is never wise to turn aside from knowing, however the knowing comes. -- Merlinus Ambrosius, "The Hollow Hills", [Mary Stewart] From will.schroeder at kitware.com Fri Mar 9 06:55:17 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 09 Mar 2001 06:55:17 -0500 Subject: [vtkusers] cell id from structured grid.. In-Reply-To: <3AA82055.911ECA77@mail.cs.uncc.edu> Message-ID: <5.0.2.1.0.20010309065016.025d3568@pop.nycap.rr.com> At 07:14 PM 3/8/2001 -0500, K.R.Subramanian wrote: >Is it possible to get the cell id given a point (x, y, z) from a >structured grid? Use the FindCell() method (first defined as a virtual function in vtkDataSet and reimplemented in vtkPointSet, which is vtkStructuredGrid's superclass). Will From seb-ml-a at barre.nom.fr Fri Mar 9 07:57:58 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Fri, 09 Mar 2001 13:57:58 +0100 Subject: [vtkusers] genarating movies from VTK views In-Reply-To: <3AA8B96D.4020507@univ-rennes1.fr> Message-ID: <5.0.0.25.0.20010309135624.02932eb0@pop.fr.clara.net> At 09/03/01 12:07 +0100, Oliver Fleig wrote: >Hello! > >I would like to generate a movie (mpg?) from a vtk scene. The only >solution I see would be dividing the camera trajectory into small steps >and grab the RenderWindow using SaveImageAsPPM. And then trying to make an >mpeg from the resulting images. >Has anyboy a nicer way to do that?? There has been some articles related to that issue (both synchronous and asynchronous), check the archives for the "animation" word. Give a try to the keyBottle in exampleTcl/. There is no public AVIWriter at the moment. From millerjv at crd.ge.com Fri Mar 9 08:14:07 2001 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Fri, 9 Mar 2001 08:14:07 -0500 Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Lin ux/GTK. Message-ID: I wonder if the SetParentInfo() method would help us separate Win32 builds from the internals of tcl/tk. When I tried to separate them before I could not get widgets to parent properly.... -----Original Message----- From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] Sent: Friday, March 09, 2001 6:22 AM To: David D. Marshall Cc: Harris Scott R CIV AFRL/SNJM; 'wxpython-users at lists.sourceforge.net'; VTK users list; m. petrone Subject: Re: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. hi, This is the promised update on the flicker issue with wxPython + VTK on Linux with GTK. In the earlier message I indicated that the C++ class wxVTKWindow works fine when one changes the references to WindowId to ParentId. As regards the Python code, the vtk.py shipped with wxPython sets the WindowId by calling the wrapped function SetWindowInfo(char *) like so: hdl = self.GetHandle() self.renderWindow.SetWindowInfo(str(hdl)) Since the flicker in the c++ class vanished when I used ParentId instead of WindowId I proposed to add a new function called SetParentInfo to the vtk classes. I just did that and recompiled the libVTKGraphics.so and libVTKGraphicsPython.so. Then I changed the wxPython/lib/vtk.py file to use this new function like so: hdl = self.GetHandle() self.renderWindow.SetParentInfo(str(hdl)) I am thrilled to say it now works like a charm! No more flicker!! I also added an OnSize method to make the size change properly. I guess when I get a little more familiar with wxPython I will send in an improved wxVTKRenderWindow class. I did notice a silly problem with all the wxPython demos. All of the widgets do not seem to redraw on an expose event. Is this a known bug?? Meanwhile, I will send the VTK patches to the VTK list separately and hope that the stuff gets added to both the CVS tree and also the 3.2beta branch. Now there is nothing stopping me from learning wxPython properly!! Thanks for all the help and patient listening. :) regards, prabhu _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From prabhu at aero.iitm.ernet.in Fri Mar 9 08:40:53 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 19:10:53 +0530 (IST) Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Lin ux/GTK. In-Reply-To: References: Message-ID: <15016.56677.181952.824987@monster.linux.in> hi, >>>>> "Jim" == "James V. Miller" writes: Jim> I wonder if the SetParentInfo() method would help us separate Jim> Win32 builds from the internals of tcl/tk. When I tried to Jim> separate them before I could not get widgets to parent Jim> properly.... Well, it would be wonderful if it does help. But I have no clue if it will. Anyways, I'll be sending the patches to Sebastien Barre in a short while. Hopefully, if I havent messed things up this should get to the CVS tree and you can check if it helps you. :) regds, prabhu From prabhu at aero.iitm.ernet.in Fri Mar 9 09:47:58 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 20:17:58 +0530 (IST) Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 In-Reply-To: References: <15016.50227.55.171363@monster.linux.in> Message-ID: <15016.60702.116711.916068@monster.linux.in> hi, >>>>> "Carlos" == Carlos Martinez Burgos writes: Carlos> How can I debug the core if I run a tcl or java example? Carlos> I'm not compiling cxx examples. I think you can just run gdb core. You will get atleast some messages. With python it is easy to debug stuff on gdb. $ cd /usr/share/doc/vtk/examples/graphics/examplesPython/ $ gdb python (gdb) r Starting program: /usr/bin/python (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... Python 1.5.2 (#0, Apr 3 2000, 14:46:48) [GCC 2.95.2 20000313 (Debian GNU/Linux)] on linux2 Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam (no debugging symbols found)...(no debugging symbols found)... (no debugging symbols found)...(no debugging symbols found)... >>> execfile("Cone.py") I dont know about tcl though. prabhu From gte552m at prism.gatech.edu Fri Mar 9 10:48:17 2001 From: gte552m at prism.gatech.edu (David D. Marshall) Date: Fri, 9 Mar 2001 10:48:17 -0500 Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 In-Reply-To: References: Message-ID: <01030910481707.01330@pc-mm-dell> On Friday 09 March 2001 05:46, Carlos Martinez Burgos wrote: > Hello again. > > I have upgraded Red Hat 7.0 with the bug fixes and nothing has changed. I > get the same error message and when I run an example, I get a core dump. > I think that the general consensus is that in RH 7.0 both the compiler and the mesa libraries are broken for VTK. ?They say that RH has a patch for the compiler, and I think people have recompiled the mesa libraries and gotten it to work (however since your using the NVIDIA drivers, the mesa comment doesn't apply to you). > I have a Geforce 2 MX with the NVIDIA rpm drivers. Could this be the > problem? I think not because everything is OK but VTK. > > I think that I could install Mandrake 7.2, the NVIDIA drivers, and compile > VTK again. Has anybody compiled VTK in Mandrake 7.2? Will I get the same > problems? > I am using Mandrake 7.2 and VTK without any problems. ?I however did have a problem with the nvidia drivers for my TNT2 card which I now believe to be related to my AGP chipset. ?If you can get the nvidia stuff working, then VTK should not be a problem. > If I can't resolve this problem I'm going to install VTK and JDK on > Windows, but I prefer Linux to develop software. Do you understand me? > You unfortunately picked the wrong rev of RH (or more precisely, RH released a questionable product). ?Good luck. > Well, I use VTK on work but I need to use it in home, where I can't have > it run. Please help me!! > > Thanks a lot. > > On Wed, 7 Mar 2001, David Gobbi wrote: > > Hi Carlos, > > > > The fix for this was mentioned earlier today. Go to > > http://www.redhat.com/errata and download (under Bug Fixes) > > the latest gcc and glibc. > > > > The problem is not with VTK at all, it is with the version > > of gcc that RedHat included with 7.0. > > > > - David > > > > On Wed, 7 Mar 2001, Carlos Martinez Burgos wrote: > > > Hello. > > > > > > I have problems compiling VTK 3.2 on RedHat 7.0. I fill the user.make > > > file and > > > set the CLASSPATH for Java wrappers. Then I run ./configure with this > > > command line: > > > > > > ./configure --prefix=/usr/local/vtk3.2 --with-shared --with-tcl \ > > > --with-java --with-python --with-tkwidget --with-patented > > > --with-contrib > > > > > > I configure it without --with-mesa and --with-opengl because of I think > > > opengl option is suposed. > > > > > > Then I run gmake and everything is OK until vtk binary file (TCL) is > > > compiled. It reports an error with something about __sysconf. > > > > > > To solve this error I change USING_VTK_LINK_LIBS directive (I don't > > > rememer well) by USING_VTK_BUILD_LIBS in the Makefile of tcl > > > subdirectory. Everything is allright now. > > > > > > The problem is that when I run programs compiling cxx or with vtk > > > binary file I get a segmentation fault. > > > > > > Could you tell me the correct way to run VTK 3.2 on RedHat 7.0? > > > > > > Thanks. -- David D. Marshall ARTLab System Administrator/GRA Georgia Institute of Technology, Atlanta Georgia, 30332 http://www.ae.gatech.edu/research/artlab/artl/artlab.html mailto:gte552m at prism.gatech.edu 7 lines that will bring down the MPAA? No, but now you can watch DVDs! $_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c^=( $m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72, at z=(64,72,$a^=12*($_%16 -2?0:$m&17)),$b^=$_%64?12:0, at z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h =5;$_=unxb24,join"", at b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$ d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d>>12^$d>>4^ $d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^ (($h>>=8)+=$f+(~$g&$t))for at a[128..$#a]}print+x"C*", at a}';s/x/pack+/g;eval From jbiddiscombe at skippingmouse.co.uk Fri Mar 9 11:11:56 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 09 Mar 2001 16:11:56 +0000 Subject: [vtkusers] Hardware Clipping planes In-Reply-To: Message-ID: <5.0.0.25.0.20010309161021.02ca8c10@mail.skippingmouse.co.uk> >leaving something like a hole in the geometry. To do that I currently >use 6 mappers defining a clipping plane for each one (with the normal >of each plane looking outwards). To avoid re-rendering parts that Look at SetClippingPlanes in the existing mappers. You can define your planes as a vtkPlane collection (or implicit function) and then do->SetClippingPlanes(). I suspect it is exacly what you're after. JB From prabhu at aero.iitm.ernet.in Fri Mar 9 11:51:36 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 9 Mar 2001 22:21:36 +0530 (IST) Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 In-Reply-To: <01030910481707.01330@pc-mm-dell> References: <01030910481707.01330@pc-mm-dell> Message-ID: <15017.2584.7709.60677@monster.linux.in> hi, >>>>> "David" == David D Marshall writes: David> I think that the general consensus is that in RH 7.0 both David> the compiler and the mesa libraries are broken for David> VTK. ?They say that RH has a patch for the compiler, and I David> think people have recompiled the mesa libraries and gotten David> it to work (however since your using the NVIDIA drivers, David> the mesa comment doesn't apply to you). That might not be the case because, the nVidia rpms only provide the OpenGL library and not the headers. IIRC, the headers that ship with RH also had a problem so, the problem may also be due to this. My suggestion is to visit the search email link from the vtk home page http://public.kitware.com/htdig/search.html and enter the string "HOWTO get VTK 3.1.2 to work on RedHat 7.0" and then search. You should hit some informative messages. HTH, prabhu From d.agrafiotis at bristol.ac.uk Fri Mar 9 12:07:38 2001 From: d.agrafiotis at bristol.ac.uk (Dimitris Agrafiotis) Date: Fri, 9 Mar 2001 17:07:38 +0000 Subject: [vtkusers] Hardware Clipping planes In-Reply-To: <5.0.0.25.0.20010309161021.02ca8c10@mail.skippingmouse.co.uk> References: <5.0.0.25.0.20010309161021.02ca8c10@mail.skippingmouse.co.uk> Message-ID: On Fri, 09 Mar 2001 16:11:56 +0000 John Biddiscombe wrote: > Look at SetClippingPlanes in the existing mappers. You can define your > planes as a vtkPlane collection (or implicit function) and then > do->SetClippingPlanes(). > > I suspect it is exacly what you're after. > > JB Hi John I did that, but what I get is the geometry inside the area defined by the planes. Let's say that the planes define a cube. What I want to take is everything outside that cube, and not in it. Is there any way I can do that? Dimitris From dgobbi at irus.rri.on.ca Fri Mar 9 12:14:41 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 9 Mar 2001 12:14:41 -0500 (EST) Subject: [vtkusers] genarating movies from VTK views In-Reply-To: <3AA8B96D.4020507@univ-rennes1.fr> Message-ID: Hi Oliver, I have a class called vtkWindowVideoSource that will automatically capture n frames/second from any vtkWindow and store the frames in memory. The frames can be accessed (either one at a time or en masse) from vtkWindowVideoSource output and written to files using vtkPNMWriter. Then I use an mpeg encoder on the files. The class is still a little buggy, but you can try it out if you want. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Fri, 9 Mar 2001, Oliver Fleig wrote: > Hello! > > I would like to generate a movie (mpg?) from a vtk scene. The only > solution I see would be dividing the camera trajectory into small steps > and grab the RenderWindow using SaveImageAsPPM. And then trying to make > an mpeg from the resulting images. > Has anyboy a nicer way to do that?? > > Cheers > > Oliver > > > From bctwong at ucalgary.ca Fri Mar 9 13:35:29 2001 From: bctwong at ucalgary.ca (Ben Wong) Date: Fri, 09 Mar 2001 11:35:29 -0700 Subject: [vtkusers] vtkusers Message-ID: <3AA92271.C8ECFC67@ucalgary.ca> Dear all, using vtkImageViewer, if the image i am displaying is smaller than the window size, is it possible to center the image in the middle of the window? thanks. ben From robin at alldunn.com Fri Mar 9 13:48:03 2001 From: robin at alldunn.com (Robin Dunn) Date: Fri, 9 Mar 2001 10:48:03 -0800 Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Linux/GTK. References: <9F17D7A52AA1D311988500104B2444E003098152@fszhtv44.wpafb.af.mil><3AA703F1.BA5EAC72@prism.gatech.edu> <15015.9661.439480.33616@monster.linux.in> Message-ID: <052e01c0a8c9$79ace240$95feff0a@Rogue> > > (2) I noticed that you set the WindowId of the RenderWindow etc > when doing an OnPaint. The vtk.py does this when the window is > realized. There is another key difference on how the WindowId is > set. The wxVTKWindow class does something funny for the > __WXGTK__ case. You use a GtkPizza (I have no clue what that is) > and set the RenderWindow's WindowId and DisplayID by looking at > the pizza windows bin_window and getting its xwindow and > xdisplay. The wxPython code cannot do something like this since > it will not have access to Gtk/Gdk stuff. Instead of doing this > the wxPython.vtk code merely does this: > > hdl = seld.GetHandle() > self.renderWindow.SetWindowInfo(str(hdl)) > > Does this matter? Or do you have to do it someother way? wxPython remaps the GetHandle method on wxGTK to go through all the GtkPizza stuff and return the actual X window handle instead of the gtk widget pointer. -- Robin Dunn Software Craftsman robin at AllDunn.com Java give you jitters? http://wxPython.org Relax with wxPython! From prabhu at aero.iitm.ernet.in Fri Mar 9 14:21:39 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 10 Mar 2001 00:51:39 +0530 (IST) Subject: [vtkusers] genarating movies from VTK views In-Reply-To: References: <3AA8B96D.4020507@univ-rennes1.fr> Message-ID: <15017.11587.745292.144888@monster.linux.in> hi, >>>>> "David" == David Gobbi writes: David> Hi Oliver, I have a class called vtkWindowVideoSource that David> will automatically capture n frames/second from any David> vtkWindow and store the frames in memory. The frames can David> be accessed (either one at a time or en masse) from David> vtkWindowVideoSource output and written to files using David> vtkPNMWriter. Then I use an mpeg encoder on the files. David> The class is still a little buggy, but you can try it out David> if you want. Why dont you put it up in the contrib section? I am sure a lot of folks would be interested in something like this. prabhu From sbissoo2 at hotmail.com Fri Mar 9 13:58:46 2001 From: sbissoo2 at hotmail.com (Shiva Bissoon) Date: Fri, 09 Mar 2001 18:58:46 -0000 Subject: [vtkusers] (no subject) Message-ID: Hi all, I am having problems with storing data.I am not sure if this can be done. I have created a cutting plane and sliced some particles in a cube.I was wondering if there is a way to store the data where the cutting plane intersects the particles in the cube.Is there an example somewhere where data generated is read into a file?Also, I am only setting the bounds of the cutter using the cube,so, the particles appear to be sliced on the render screen, however, they may not have been passed through the pipeline.Does anyone have any suggestions or help? Thanks in advance, Shiva _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From sbissoo2 at hotmail.com Fri Mar 9 13:59:27 2001 From: sbissoo2 at hotmail.com (Shiva Bissoon) Date: Fri, 09 Mar 2001 18:59:27 -0000 Subject: [vtkusers] Cutting planes data??? Message-ID: Hi all, I am having problems with storing data.I am not sure if this can be done. I have created a cutting plane and sliced some particles in a cube.I was wondering if there is a way to store the data where the cutting plane intersects the particles in the cube.Is there an example somewhere where data generated is read into a file?Also, I am only setting the bounds of the cutter using the cube,so, the particles appear to be sliced on the render screen, however, they may not have been passed through the pipeline.Does anyone have any suggestions or help? Thanks in advance, Shiva _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From sbissoo2 at hotmail.com Fri Mar 9 14:18:42 2001 From: sbissoo2 at hotmail.com (Shiva Bissoon) Date: Fri, 09 Mar 2001 19:18:42 -0000 Subject: [vtkusers] Good editor for windows Message-ID: Does anyone know of a good editor for writing tcl programs in WinNT??? I am currently using notepad and it is not that good. Shiva _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From dgobbi at irus.rri.on.ca Fri Mar 9 14:49:08 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 9 Mar 2001 14:49:08 -0500 (EST) Subject: [vtkusers] genarating movies from VTK views In-Reply-To: <15017.11587.745292.144888@monster.linux.in> Message-ID: On Sat, 10 Mar 2001, Prabhu Ramachandran wrote: > >>>>> "David" == David Gobbi writes: > > David> Hi Oliver, I have a class called vtkWindowVideoSource that > David> will automatically capture n frames/second from any > David> vtkWindow and store the frames in memory. The frames can > David> be accessed (either one at a time or en masse) from > David> vtkWindowVideoSource output and written to files using > David> vtkPNMWriter. Then I use an mpeg encoder on the files. > David> The class is still a little buggy, but you can try it out > David> if you want. > > Why dont you put it up in the contrib section? I am sure a lot of > folks would be interested in something like this. I will eventually, but like I said, it's still buggy, and I don't have a Tcl example program to go with it for regression testing (and we all know how much I looove Tcl). So patience, huh? ;) - David From dgobbi at irus.rri.on.ca Fri Mar 9 14:59:33 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Fri, 9 Mar 2001 14:59:33 -0500 (EST) Subject: [vtkusers] Good editor for windows In-Reply-To: Message-ID: On Fri, 9 Mar 2001, Shiva Bissoon wrote: > Does anyone know of a good editor for writing tcl programs in WinNT??? > I am currently using notepad and it is not that good. > Shiva My personal recommendation is emacs, it has a very complete tcl mode. http://www.gnu.org/software/emacs/windows/ntemacs.html get the 'bin' or 'fullbin' .tar.gz files (tar and gzip for Windows are included in the 'utilities' directory of the ftp directory). After you un-tar, run 'addpm.exe' in the bin directory to make emacs operational. Whichever editor you choose, you should go into the Windows "File Types" and change the 'edit' action of the TCL filetype to use the appropriate editor. - David From erik.sobel at alphatech.com Fri Mar 9 15:39:18 2001 From: erik.sobel at alphatech.com (Erik Sobel) Date: Fri, 09 Mar 2001 15:39:18 -0500 Subject: [vtkusers] Good editor for windows In-Reply-To: Message-ID: <4.3.2.7.2.20010309152910.00b4b4f0@mail.alphatech.com> I just use the Microsoft Visual C++ Developer's Studio for Tcl. I mapped one of the function keys to run the wish interpreter on the current project. It works pretty well especially if you are bouncing back and forth between C++ and Tcl. It doesn't know about Tcl syntax. -Erik From me at andy.cx Fri Mar 9 15:49:47 2001 From: me at andy.cx (Lego Andy) Date: Fri, 9 Mar 2001 15:49:47 -0500 Subject: [vtkusers] Good editor for windows In-Reply-To: References: Message-ID: <20010309154947.52503a8c.me@andy.cx> On the day of the Lord Fri, 09 Mar 2001 19:18:42 -0000 "Shiva Bissoon" mentioned: > Does anyone know of a good editor for writing tcl programs in WinNT??? > I am currently using notepad and it is not that good. > Shiva There is only one answer: Emacs Get it from: http://www.gnu.org/software/emacs/windows/ntemacs.html It does all the stuff decent editor should do and when you finally stop using TCL and switch to Python, it will still work. Also, it works on just about all the platforms Linux, Solaris, AIX, OSX,... Andy -- /\ | | |~\ \ / ------------------------------------------------ / \ |\ | | | \/ / e-mail: andy at x0.org )\._.,--....,'``. |--| | \| | | / / ICQ: 27889915 /, _.. \ _\ (`._ ,. | | | | |_/ / / http://andy.x0.org `._.-(,_..'--(,_..'`-.;.' ---------------------- From seb-ml-vtk at barre.nom.fr Fri Mar 9 16:00:39 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Fri, 09 Mar 2001 22:00:39 +0100 Subject: [vtkusers] Good editor for windows In-Reply-To: References: Message-ID: <5.0.0.25.2.20010309214819.02dc5b80@wheresmymailserver.com> At 09/03/2001 14:59, David Gobbi wrote: >On Fri, 9 Mar 2001, Shiva Bissoon wrote: > > > Does anyone know of a good editor for writing tcl programs in WinNT??? > > I am currently using notepad and it is not that good. > > Shiva > >My personal recommendation is emacs, it has a very complete tcl mode. >http://www.gnu.org/software/emacs/windows/ntemacs.html >get the 'bin' or 'fullbin' .tar.gz files (tar and gzip for Windows >are included in the 'utilities' directory of the ftp directory). > >After you un-tar, run 'addpm.exe' in the bin directory to make emacs >operational. > >Whichever editor you choose, you should go into the Windows "File Types" >and change the 'edit' action of the TCL filetype to use the appropriate >editor. As David, I'd also recommend NTemacs (for every kind of editing in fact). If you are not familiar with Emacs, I'd not say that it's the easiest editor you can find (UltraEdit might help you too), but it's free, extremely powerful, and for these of us that love Lisp, it has unlimited possibilities through various customization features (my .emacs is 2300 lines :). More importantly, you can edit and *run* you Tcl script right *inside* Emacs, just by hitting a key : Emacs will run the script in a separate buffer (i.e. frame, or window), and you will be able to modify the bevahiour of your program *without* stopping it. Emacs allows you to edit your files, functions, packages, variables simultaneously, and send the modifications immediately, while the script is running. GUI script (using Tk) can be launched as well, with some tricks. Once you get used to Tcl (or if you want to avoid launching Tcl script inside Emacs), you will probably prefer to attach TkCon to your Tk scripts to modify them on the fly. http://www.hobbs.wservice.com/tcl/script/tkcon/ From song.ahn at home.com Fri Mar 9 17:04:49 2001 From: song.ahn at home.com (Song Ho Ahn) Date: Fri, 09 Mar 2001 14:04:49 -0800 Subject: [vtkusers] Good editor for windows References: Message-ID: <3AA95381.A1AE09AF@home.com> I recommend EditPlus. It is really good for any scripts or program languages. I use it all the time for html, xml, C/C++, Java, Tcl/Tk, etc... It also useful for file conversion from Unix to Dos, vice versa. EditPlus Home Page http://www.editplus.com Syntax plug-in http://www.editplus.com/files.html ==song== Shiva Bissoon wrote: > > Does anyone know of a good editor for writing tcl programs in WinNT??? > I am currently using notepad and it is not that good. > Shiva > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- _______________________________________________________ Song Ho Ahn song.ahn at sheridanc.on.ca Visualization Design Institute Sheridan College Tel: 905.845.9430 ext 8703 1430 Trafalgar Road Fax: 905.815.4220 Oakville, ON, L6H 2L1 _______________________________________________________ From me at andy.cx Fri Mar 9 16:28:38 2001 From: me at andy.cx (Lego Andy) Date: Fri, 9 Mar 2001 16:28:38 -0500 Subject: [vtkusers] Good editor for windows In-Reply-To: <3AA95381.A1AE09AF@home.com> References: <3AA95381.A1AE09AF@home.com> Message-ID: <20010309162838.553ef070.me@andy.cx> > It is really good for any scripts or program languages. I use it all the > time for html, xml, C/C++, Java, Tcl/Tk, etc... > It also useful for file conversion from Unix to Dos, vice versa. > > > Does anyone know of a good editor for writing tcl programs in WinNT??? > > I am currently using notepad and it is not that good. > > Shiva Did I mention that Emacs is free? Andy -- /\ | | |~\ \ / ------------------------------------------------ / \ |\ | | | \/ / e-mail: andy at x0.org )\._.,--....,'``. |--| | \| | | / / ICQ: 27889915 /, _.. \ _\ (`._ ,. | | | | |_/ / / http://andy.x0.org `._.-(,_..'--(,_..'`-.;.' ---------------------- From volpecr at crd.ge.com Fri Mar 9 16:40:24 2001 From: volpecr at crd.ge.com (Volpe, Christopher R (CRD)) Date: Fri, 9 Mar 2001 16:40:24 -0500 Subject: [vtkusers] Good editor for windows Message-ID: | |> > > Does anyone know of a good editor for writing tcl |> programs in WinNT??? |> > > I am currently using notepad and it is not that good. |> > > Shiva |> |> Did I mention that Emacs is free? |> BTW, so is XEmacs. Download from www.xemacs.org. From j.stifter at medres.ch Fri Mar 9 16:50:14 2001 From: j.stifter at medres.ch (Jan Stifter) Date: Fri, 09 Mar 2001 22:50:14 +0100 Subject: [vtkusers] Good editor for windows In-Reply-To: References: Message-ID: On Fri, 09 Mar 2001 19:18:42 -0000, "Shiva Bissoon" wrote: >Does anyone know of a good editor for writing tcl programs in WinNT??? >I am currently using notepad and it is not that good. >Shiva i would recommend you ultraedit or GWD Text Editor. both are easy to use and nice. emacs is nice too, but maybe the step from Notepad to emacs is a little bit fast. jan From gummadi.sreenivas at Mentisys.com Fri Mar 9 17:00:42 2001 From: gummadi.sreenivas at Mentisys.com (Gummadi Sreenivas) Date: Fri, 9 Mar 2001 17:00:42 -0500 Subject: [vtkusers] Good editor for windows Message-ID: <09D1BF315997D4119AC000B0D03D8D7F013E34@ATNTS-EXCHANGE> My vote goes to emacs as the best editor which is available on most platforms and is free. Even if you are not familiar with emacs key bindings, emacs can emulate your favourite editor's bindings. I am familiar with Vi and use the vi-mode in emacs which works quite well, allowing you to use the power of emacs while preserving the familiar Vi key bindings. There is also a wordstar mode, but I have not used it myself and you may be able to find an emacs mode which preserves the keybindings of your favourite editor. I don't know why the other editors are still there, but they do not seem be to doing any harm and can coexist peacefully like the Afhgan Buddhas (pardon the political statement). best regards, gummadi. From prabhu at aero.iitm.ernet.in Sat Mar 10 09:09:25 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 10 Mar 2001 19:39:25 +0530 (IST) Subject: [vtkusers] Gtk/wx and VTK - more issues: need help! Message-ID: <15018.13717.74234.154641@monster.linux.in> hi, Here are some new problems I ran into while trying to create a pyGtk widget with an embedded VTK widget. (1) If I set the ParentId of the vtkRenderWindow using SetParentInfo the flicker is removed but now there is a new problem, the window does not generate expose events properly. Therefore, if you put another window on top of this window and move the top window the embedded vtk window is not redrawn because it doesnt generate an expose event. A resize of the widget however generates an expose event. This happens with both wxPython, the wxVTKWindow c++ class and also with my simple GTK + Python class. If I set the WindowId using WindowInfo the expose event works but there is a huge amount of flicker as mentioned before. I ran xev on this and found that as expected when the embedded widget is obscured and then un-obscured there is no expose event generated but a visibilitynotify event and by capturing this and generating a redraw things work fine. However, I dont understand why this happens - can any X guru enlighten me out here? This might be a GTK problem too. My version of GTK is 1.2.8. (2) While embedding a vtk window into a gtk widget I first tried with a vtkRenderWindow() and I was able to embed the window properly. However, when I tried to use a vtkRenderWindowInteractor and use that instead, the vtkRenderWindow simply refuses to become embedded in the Gtk Widget. I suspect that this happens because Render() is called before the Gtk window is realized. Is there a way out of this? Oh, BTW if there are any pyGtk lovers there looking for a start with embedding VTK and GTK, please let me know. I know practically no GTK and am bumbling with it quite a bit. However, I have successfully managed to embed a vtkRenderWindow into a GtkDrawingArea. I havent added the mouse based stuff yet... thanks, prabhu From seb-ml-vtk at barre.nom.fr Sat Mar 10 09:09:24 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Sat, 10 Mar 2001 15:09:24 +0100 Subject: [vtkusers] RE: [wxPython] VTK + wxPython flicker issue on Lin ux/GTK. In-Reply-To: <15016.56677.181952.824987@monster.linux.in> References: Message-ID: <5.0.0.25.2.20010310144800.01c54fa8@wheresmymailserver.com> At 09/03/2001 19:10, Prabhu Ramachandran wrote: > >>>>> "Jim" == "James V. Miller" writes: > > Jim> I wonder if the SetParentInfo() method would help us separate > Jim> Win32 builds from the internals of tcl/tk. When I tried to > Jim> separate them before I could not get widgets to parent > Jim> properly.... Yes, that would be great. >Well, it would be wonderful if it does help. But I have no clue if it >will. Anyways, I'll be sending the patches to Sebastien Barre in a >short while. Hopefully, if I havent messed things up this should get >to the CVS tree and you can check if it helps you. :) I've reviewed Prabhu's changes, and the code looks clean. It's a new feature, that does not interfere with other functions (i.e. is not likely to break anything to my opinion). It's in the CVS. Give it a try Jim :) Check the continous build dashboard for details : http://www.visualizationtoolkit.org/vtk/quality/ContinuousResults/solaris/Change.2579.html From plowry041 at sprintmail.com Sun Mar 11 10:59:44 2001 From: plowry041 at sprintmail.com (Patrick Lowry) Date: Sun, 11 Mar 2001 09:59:44 -0600 Subject: [vtkusers] CGMWriter Message-ID: <200103101559.HAA03323@snipe.prod.itd.earthlink.net> Greetings: I am using a PC and accessing VTK with Tcl/Tk. I have downloaded the latest nightlies and vtkCGMWriter is not recognized as a valid command. Is vtkCGMWriter implimented for in the PC binaries? Patrick Lowry From will.schroeder at kitware.com Sat Mar 10 12:54:47 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Sat, 10 Mar 2001 12:54:47 -0500 Subject: [vtkusers] CGMWriter In-Reply-To: <200103101559.HAA03323@snipe.prod.itd.earthlink.net> Message-ID: <5.0.2.1.0.20010310125357.02eb2900@pop.nycap.rr.com> Hi Patrick- vtkCGMWriter is not in the contrib/Makefile.in. Add it, rerun pcmaker, rebuild, and you should be able to use it. Will At 09:59 AM 3/11/2001 -0600, Patrick Lowry wrote: >Greetings: > >I am using a PC and accessing VTK with Tcl/Tk. I have downloaded the >latest nightlies and vtkCGMWriter is not recognized as a valid command. Is >vtkCGMWriter implimented for in the PC binaries? > >Patrick Lowry > > >_______________________________________________ >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 dgobbi at irus.rri.on.ca Sat Mar 10 13:13:23 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 10 Mar 2001 13:13:23 -0500 (EST) Subject: [vtkusers] Re: [vtk-developers] Gtk/wx and VTK - more issues: need help! In-Reply-To: <15018.13717.74234.154641@monster.linux.in> Message-ID: On Sat, 10 Mar 2001, Prabhu Ramachandran wrote: > (2) While embedding a vtk window into a gtk widget I first tried > with a vtkRenderWindow() and I was able to embed the window > properly. However, when I tried to use a vtkRenderWindowInteractor > and use that instead, the vtkRenderWindow simply refuses to become > embedded in the Gtk Widget. I suspect that this happens because > Render() is called before the Gtk window is realized. Is there a > way out of this? This is probably because the event handler in vtkRenderWindowInteractor and the one in Gtk aren't cooperating with one another. There is a special vtkXRenderWindowTclInteractor that cooperates with Tk, so I'm guessing that if you wanted to use an Interactor with Gtk you would need a special vtkXRenderWindowGtkInteractor. My advice would be to do all the event handling (including the redraws) through Gtk, and not use the Interactor at all. - David From guimond at bwh.harvard.edu Sat Mar 10 13:22:40 2001 From: guimond at bwh.harvard.edu (Alexandre Guimond) Date: 10 Mar 2001 13:22:40 -0500 Subject: [vtkusers] vtkImagePermute without copying the data Message-ID: Hi there. Would anybody out there have a class that does the same thing vtkImagePermute does, but that only changes the attributes (extents,dimensions,etc.) and references the input data for it's own? I'm building a viewer with 3 views for each data set (x,y,z) and the unnecessary 2*NumDataSets*permute simply takes too much memory. I'm sure some of you have done this before so there must be a better way than what I'm doing now... thx for the info -- Alexandre Guimond, Ph.D. guimond at bwh.harvard.edu Phone:(617) 278-0800 http://spl.bwh.harvard.edu:8000/~guimond/ Fax:(617) 264-5154 Brigham and Women's Hospital, Harvard Medical School CNI, RF396, 221 Longwood Av, Boston, MA 02115 From a_uplinger at hotmail.com Sat Mar 10 14:05:49 2001 From: a_uplinger at hotmail.com (Andrew Uplinger) Date: Sat, 10 Mar 2001 11:05:49 -0800 Subject: [vtkusers] genarating movies from VTK views References: Message-ID: Hi, I briefly experimented with Windows Media Encoder (http://www.microsoft.com/windows/windowsmedia/en/wm7/encoder.asp) (only works on W98, Me, and W2000). It has a screen capture function- define a region to capture, and the encoder will make a movie of that region. I have done this with simple vis with vtk, and it works out quite nicely. Advantage- it's quick, free, and easy. Disadvantage- complex vis will overwhelm your computer and the video capture will stop. Andrew ----- Original Message ----- From: "David Gobbi" To: "Prabhu Ramachandran" Cc: "VTK users list" Sent: Friday, March 09, 2001 11:49 AM Subject: Re: [vtkusers] genarating movies from VTK views > On Sat, 10 Mar 2001, Prabhu Ramachandran wrote: > > > >>>>> "David" == David Gobbi writes: > > > > David> Hi Oliver, I have a class called vtkWindowVideoSource that > > David> will automatically capture n frames/second from any > > David> vtkWindow and store the frames in memory. The frames can > > David> be accessed (either one at a time or en masse) from > > David> vtkWindowVideoSource output and written to files using > > David> vtkPNMWriter. Then I use an mpeg encoder on the files. > > David> The class is still a little buggy, but you can try it out > > David> if you want. > > > > Why dont you put it up in the contrib section? I am sure a lot of > > folks would be interested in something like this. > > I will eventually, but like I said, it's still buggy, and I don't have > a Tcl example program to go with it for regression testing (and we all > know how much I looove Tcl). So patience, huh? ;) > > - David > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From prabhu at aero.iitm.ernet.in Sat Mar 10 16:22:55 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 11 Mar 2001 02:52:55 +0530 (IST) Subject: [vtkusers] Re: [vtk-developers] Gtk/wx and VTK - more issues: need help! In-Reply-To: References: <15018.13717.74234.154641@monster.linux.in> Message-ID: <15018.39727.658898.345405@monster.linux.in> hi, >>>>> "David" == David Gobbi writes: David> This is probably because the event handler in David> vtkRenderWindowInteractor and the one in Gtk aren't David> cooperating with one another. There is a special David> vtkXRenderWindowTclInteractor that cooperates with Tk, so David> I'm guessing that if you wanted to use an Interactor with David> Gtk you would need a special vtkXRenderWindowGtkInteractor. David> My advice would be to do all the event handling (including David> the redraws) through Gtk, and not use the Interactor at David> all. Thanks, David, for the advice. However, I thought I'd mention that the wxVTKWindow c++ class simply derives from vtkRenderWindowInteractor and works. I still suspect that this problem with Gtk+ vtkRenderWindowInteractor arises because somehow Render() is called before the Gtk Widget is realized. In the wxVTKWindow code the RenderWindow is created only when the widgets are realized. Anyway, I will follow your advice because it isnt worth the effort bending over backwards to ensure that things are called in proper order. After all embeding a vtkRenderWindow works perfectly well. I was just lazy to implement the interaction/picking etc. So, when I get the time I will modify some of the vtkTkRenderWidget code and stick it into my GtkVTK hack (I still dont know enough Gtk to call my hack "code" :). Of course, I'd be glad to leave this task to some pyGtk guru on the list who wants to have a shot. :) prabhu From dgobbi at irus.rri.on.ca Sat Mar 10 18:12:29 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 10 Mar 2001 18:12:29 -0500 (EST) Subject: [vtkusers] vtkImagePermute without copying the data In-Reply-To: Message-ID: On 10 Mar 2001, Alexandre Guimond wrote: > Hi there. Would anybody out there have a class that does the same > thing vtkImagePermute does, but that only changes the attributes > (extents,dimensions,etc.) and references the input data for it's own? This isn't possible. You can't rearrange the x,y,z of vtkImageData without re-ordering the data in memory. > I'm building a viewer with 3 views for each data set (x,y,z) and the > unnecessary 2*NumDataSets*permute simply takes too much memory. I'm > sure some of you have done this before so there must be a better way > than what I'm doing now... Usually when you use vtkImagePermute, it doesn't actually permute the entire volume... it only extracts the single slice that you are viewing. However, for extracting axial/sagitall/coronal slices from a volume I find that it is best to use three copies of vtkImageReslice, each with a different permutation matrix for the ResliceMatrix. e.g. pmatrix = vtkMatrix4x4() pmatrix.DeepCopy(( 0, 0, 1, 0, 0, 1, 0, 0, -1, 0, 0, 0, 0, 0, 0, 1)) # width, height are window dimensions # zoom is the zoom factor # displayX, displayY can be used to pan through the volume # displayZ can be used to display different slices reslice = vtkImageReslice() reslice.SetResliceMatrix(pmatrix) reslice.SetOutputExtent(0, width-1, 0, height-1, 0, 0) reslice.SetOutputOrigin(displayX,displayY,displayZ) reslice.SetOutputSpacing(1.0/zoom, 1.0/zoom, 1.0/zoom) examples of how to compute displayX, displayY, displayZ in order to display the desired slice of the image are provided in contrib/examplesPython/SliceViewer.py Another option, if you're good at working with transformations, is to instead use SetOutputOrigin(0,0,0) SetOutputSpacing(1,1,1) and then, instead of making 'pmatrix' a simple permutation matrix, create a matrix that will convert directly from the window display coordinates to the volume data coordinates, i.e. the matrix will map the four corners of the window (0,0,width-1,height-1) to the four corners of the volume slice that you want to view. - David From jbiddiscombe at skippingmouse.co.uk Sat Mar 10 18:32:08 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sat, 10 Mar 2001 23:32:08 +0000 Subject: [vtkusers] vtkImagePermute without copying the data In-Reply-To: References: Message-ID: <5.0.0.25.0.20010310232420.03314960@mail.skippingmouse.co.uk> > > Hi there. Would anybody out there have a class that does the same > > thing vtkImagePermute does, but that only changes the attributes > > (extents,dimensions,etc.) and references the input data for it's own? > >This isn't possible. You can't rearrange the x,y,z of vtkImageData >without re-ordering the data in memory. >I'm building a viewer with 3 views for each data set (x,y,z) and the The only likely solution would be to redo the mappers (one for each axis) such that they display data in a different order (like copy it to textures). its just about conceivable if you were creating textures in graphics memory and not user memory - then you could get away with one copy of the raw data and N copies of "rendered" stuff. Not sure I've thought this through properly...hmmm From dgobbi at irus.rri.on.ca Sat Mar 10 19:47:06 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 10 Mar 2001 19:47:06 -0500 (EST) Subject: [vtkusers] vtkImagePermute without copying the data In-Reply-To: <5.0.0.25.0.20010310232420.03314960@mail.skippingmouse.co.uk> Message-ID: On Sat, 10 Mar 2001, John Biddiscombe wrote: > > > Hi there. Would anybody out there have a class that does the same > > > thing vtkImagePermute does, but that only changes the attributes > > > (extents,dimensions,etc.) and references the input data for it's own? > > > >This isn't possible. You can't rearrange the x,y,z of vtkImageData > >without re-ordering the data in memory. > > >I'm building a viewer with 3 views for each data set (x,y,z) and the > > The only likely solution would be to redo the mappers (one for each axis) > such that they display data in a different order (like copy it to > textures). its just about conceivable if you were creating textures in > graphics memory and not user memory - then you could get away with one copy > of the raw data and N copies of "rendered" stuff. Not sure I've thought > this through properly...hmmm Yes, it would be possible to have an extra ivar in vtkImageMapper to specify whether you want to view xy, zx, or yz slices. Then vtkImageMapper could do the permutation on-the-fly. But once this is added, people might want to add ivars for zoom, pan etc. and it could all get messy. Perhaps I should just try to find a way to make vtkImageReslice easier to use for this kind of stuff. Almost all my own imaging pipelines end like this: (input)->vtkImageReslice->vtkImageMapToColors->(mapper or texture) but setting up vtkImageReslice to do the desired permute/clip/pan/zoom operation can be a pain. Usually I do the pan/zoom part with textures, and just use vtkImageReslice for permute/clip (or at times permute/pad). If you use 3D textures (VTK doesn't... anyone have some spare time to add them?) then everything can be done in memory, although you have to convert your data to unsigned char ahead of time. Dynamic window/level on 16-bit data might be out of the question for 3D textures, if you have to re-load the whole volume each time. - David From jbiddiscombe at skippingmouse.co.uk Sat Mar 10 20:17:41 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sun, 11 Mar 2001 01:17:41 +0000 Subject: [vtkusers] vtkImagePermute without copying the data In-Reply-To: References: <5.0.0.25.0.20010310232420.03314960@mail.skippingmouse.co.uk> Message-ID: <5.0.0.25.0.20010311011011.032107e0@mail.skippingmouse.co.uk> >If you use 3D textures (VTK doesn't... anyone have some spare time to add >them?) then everything can be done in memory, although you have to convert Just think what fun you could have redoing all the raycast mappers to permute the axes too! .... actually, a class like vtkImagePermute which only acted as an access function might just cope. You could have a meta-dataobject which "contained" a real data object and supplied new GetPixel type operations, such that the axes were permuted. This could have a vtkImageData object embedded in it, but not duplicate the memory. It'd be quite interesting because then you could override the Get(index) operations arbitrarily and it'd be a new kind of mapper in a way. (Magnification, scaling, shearing...permuting could all be simulated by changing the indexing scheme into the underlying data - what a pain). JB From dgobbi at irus.rri.on.ca Sat Mar 10 21:21:51 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 10 Mar 2001 21:21:51 -0500 (EST) Subject: [vtkusers] vtkImagePermute without copying the data In-Reply-To: <5.0.0.25.0.20010311011011.032107e0@mail.skippingmouse.co.uk> Message-ID: On Sun, 11 Mar 2001, John Biddiscombe wrote: > >If you use 3D textures (VTK doesn't... anyone have some spare time to add > >them?) then everything can be done in memory, although you have to convert > > Just think what fun you could have redoing all the raycast mappers to > permute the axes too! > .... > actually, a class like vtkImagePermute which only acted as an access > function might just cope. You could have a meta-dataobject which > "contained" a real data object and supplied new GetPixel type operations, > such that the axes were permuted. This could have a vtkImageData object > embedded in it, but not duplicate the memory. It'd be quite interesting > because then you could override the Get(index) operations arbitrarily and > it'd be a new kind of mapper in a way. (Magnification, scaling, > shearing...permuting could all be simulated by changing the indexing scheme > into the underlying data - what a pain). Yeah, it _is_ a pain... take a look inside vtkImageReslice.cxx, that's basically what it does -- it builds a 4x4 matrix that converts output (i,j,k) data indices to input (i,j,k) data indices. That's the easy part... most of the code in vtkImageReslice deals with interpolation and special-casing for efficiency. If it pushed the data through a color map at the same time and then called glDrawPixels on the result, then it pretty much _would_ be an all-purpose image mapper. - David From audi2006 at singnet.com.sg Sat Mar 10 21:24:58 2001 From: audi2006 at singnet.com.sg (Audi) Date: Sun, 11 Mar 2001 10:24:58 +0800 Subject: [vtkusers] dicom into 3D Message-ID: <001501c0a9d2$78e258e0$d6d315a5@audi> > Hi, > Did anybody ever tried to load DICOM samples provided in the sebastien Barre > website? > I tried to load DICOM sample about ankle and it only able to display 2D > image > eventhough I use volume rendering. > Are you able to render the DICOM samples after you convert to RAW and > display it as > 3D that can rotated such that can be seen all side of the image? > > I really stuck, I suppose to render that image in 3D, but I always get 2D. > I load the raw data and stored it as structured points and using volume > rendering method > to render structured points into 3D but not succesful, it only gives me 2D > image. > If anybody can display it as 3D, can give me advise how to do it? > > Thanks a lot > > regards, > Audi > From seb-ml-vtk at barre.nom.fr Sat Mar 10 22:10:02 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Sun, 11 Mar 2001 04:10:02 +0100 Subject: [vtkusers] dicom into 3D In-Reply-To: <001501c0a9d2$78e258e0$d6d315a5@audi> Message-ID: <5.0.0.25.2.20010311035750.01ba1ec0@wheresmymailserver.com> At 11/03/2001 10:24, Audi wrote: > > Did anybody ever tried to load DICOM samples provided in the sebastien >Barre website? I guess you are referring to that page : http://medical.barre.nom.fr/samples and the file : CT-MONO2-16-ankle > > I tried to load DICOM sample about ankle and it only able to display 2D > > image eventhough I use volume rendering. > > Are you able to render the DICOM samples after you convert to RAW and > > display it as 3D that can rotated such that can be seen all side of the > image? Oh I see the problem :), there is some kind of misunderstanding :) That file does not hold any "3D object", it's just a *2D* screen-capture of a 3D reconstruction that was performed at a hospital, somewhere, somehow, sometime (I do not know much about that picture, and I've anonymized it anyway). Look at its tags : http://www.barre.nom.fr/medical/samples/tags/CT-MONO2-16-ankle.txt Image Type (0008,0008) 1-n CS [DERIVED\SECONDARY\3D] that kind of file is a so-called "secondary capture", a "A general catch all Modality that is used for images that did not originate as a DICOM image. Image that were stored as TIFF or BMP that are converted to DICOM are given this Modality.". Plain 2D. > > I really stuck, I suppose to render that image in 3D, but I always get 2D. Definitely. There is hardly any chance that you will ever get a 3D volume rendering from a single-frame DICOM file. You will succeed by using a set of contiguous 2D images, i.e. a *series* of medical file (an acquisition). Or a multiple-frame DICOM file, although I've not seen any stack organized that way at the moment (multiple-frame file are most of the time used for cine-mode and so on). > > If anybody can display it as 3D, can give me advise how to do it? If somebody has displayed it as 3D, it deserves my admiration, and should send me a postcard :) Anyway, if you want to try "volume rendering", download the VTK data files, and use the frog, fullhead, headsq dataset. From whv88240 at Bayou.UH.EDU Sun Mar 11 04:23:21 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Sun, 11 Mar 2001 03:23:21 -0600 (CST) Subject: [vtkusers] vtkOutputWindow scrolls too fast to read. Message-ID: Hello vtkusers! When I run a C++ program that uses VTK, a vtkOutputWindow pops up and scrolls several messages very fast. Is there a way to control the scrolling so I can read the messages? I am using VTK3.1 on NT4.0, Visual Studio 6.0, C++. Thank you, Wolfv. From german_leung at hotmail.com Sun Mar 11 06:20:31 2001 From: german_leung at hotmail.com (german) Date: Sun, 11 Mar 2001 19:20:31 +0800 Subject: [vtkusers] How to draw the path of the movement? Please help!! Message-ID: Dear all VTK user: I want to update the position of the object by the encoder signal and show the path of the object move! I try to renWin->EraseOff but it doesn't work! But I find that function was work in ..\cowwalk.tcl. I try to use the user interface to change the cow position, and the image of the cows will keep on the screen. Why...? My code was something like that:-------- for ( i = 1; i < 2000; i++) { ren1->AddActor(joinActor); ren1->AddActor(cutterActor); ren1->SetBackground(0.1,0.2,0.4); renWin->SetSize(500,500); renWin->Render(); //print out the input cout << "please enter x, y, z" <<"\n"; cin >>x>>y>>z; a=x+a; b=y+b; c=z+c; cutterActor->SetPosition(a, b ,c); ren1->AddActor(cutterActor); renWin->Render(); renWin->Render(); renWin->EraseOff; } ------------------------- the for loop just simulate the encoder signal input! Please help! Thanks for any advise! Best regards, German Leung -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Sun Mar 11 07:12:21 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 11 Mar 2001 17:42:21 +0530 (IST) Subject: [vtkusers] A working GtkVtkRenderWindow for pyGtk!! Message-ID: <15019.27557.261288.675173@monster.linux.in> hi, Attached is a gzipped file containing a class called GtkVtkRenderWindow that lets you embed a vtkRenderWindow in a pyGtk application. It requires pyGtk (I guess any recent version sould be okay) and a recent nightly version of VTK because I use the newly added set ParentInfo method. It supports almost all the important functionality provided by the vtkTkRenderWidget class (mouse based zoom, pan, rotate and also the ability for picking). I am no Gtk expert, but it works just fine for me. I stole most of the interaction code from the excellent vtkRenderWidget.py Just gunzip the file and run it for a simple demo. I will see if I can mail this to James Henstridge so that he can include it with the pyGTK examples. I am sorry that I am sending this on the list but the gzipped file is only about 3Kb. My apologies to those of you who are not interested in this. Enjoy! prabhu -------------- next part -------------- A non-text attachment was scrubbed... Name: vtk.py.gz Type: application/octet-stream Size: 3662 bytes Desc: vtk.py.gz URL: From dgobbi at irus.rri.on.ca Sun Mar 11 08:04:11 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sun, 11 Mar 2001 08:04:11 -0500 (EST) Subject: [vtkusers] A working GtkVtkRenderWindow for pyGtk!! In-Reply-To: <15019.27557.261288.675173@monster.linux.in> Message-ID: On Sun, 11 Mar 2001, Prabhu Ramachandran wrote: > Attached is a gzipped file containing a class called > GtkVtkRenderWindow that lets you embed a vtkRenderWindow in a pyGtk > application. [....] > [....] I stole most of the > interaction code from the excellent vtkRenderWidget.py Of course, that code was originally stolen from TkInteractor.tcl... All this 'stealing' guarantees consistent interaction behaviour, so it is a very good thing. - David From rima_khuffash at hotmail.com Sun Mar 11 17:08:16 2001 From: rima_khuffash at hotmail.com (RIMA KHUFFASH) Date: Sun, 11 Mar 2001 17:08:16 Subject: [vtkusers] reading bmp image Message-ID: Hi, I need source C++ code for reading and display a bitmap (bmp). Please email it to rima_khuffash at hotmail.com I hope the code contains header of bmp information. Thank in advance _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From robbel at science.uva.nl Sun Mar 11 12:14:59 2001 From: robbel at science.uva.nl (Robert Belleman) Date: Sun, 11 Mar 2001 18:14:59 +0100 Subject: [vtkusers] Compiling VTK 3.2 on RedHat 7.0 In-Reply-To: <15016.60702.116711.916068@monster.linux.in>; from prabhu@aero.iitm.ernet.in on Fri, Mar 09, 2001 at 08:17:58PM +0530 References: <15016.50227.55.171363@monster.linux.in> <15016.60702.116711.916068@monster.linux.in> Message-ID: <20010311181459.A10607@carol.wins.uva.nl> On Fri, Mar 09, 2001 at 08:17:58PM +0530, Prabhu Ramachandran wrote: > hi, > > >>>>> "Carlos" == Carlos Martinez Burgos writes: > > Carlos> How can I debug the core if I run a tcl or java example? > Carlos> I'm not compiling cxx examples. > > I think you can just run gdb core. You will get atleast some > messages. With python it is easy to debug stuff on gdb. If a Vtk/Tcl program dumps core, use: $ gdb `which vtk` core # note REVERSE quotes from the directory in which the core is located. Then type "where" to get a stack dump. Possibly "list" to see at which line in the source code the fault happened (works only when the code where the crash occured has been compiled with debugging symbols). Of course, you still have a way to go to get back to the script line that produced the core. If you want to debug a script, consider the tcl_traceExec and tcl_traceCompile variables (set them both to 1) or get a Tcl debugger. -- Rob [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From sdexu at csd.uwo.ca Sun Mar 11 12:40:12 2001 From: sdexu at csd.uwo.ca (Dexu Sun) Date: Sun, 11 Mar 2001 12:40:12 -0500 (EST) Subject: [vtkusers] seperate raw date file Message-ID: Hi, I have a CT and a MR raw data file. The order is z-y-x The file format is: 16-bit integers --two consecutive bytes make up one binary integer. If you have a program which can seperate this raw data file into difference slice files which are either the same raw data or standard image file format such as pgm or ppm, please email me. Thank in advance From Benoit.Saye at pet.hw.ac.uk Sun Mar 11 13:49:59 2001 From: Benoit.Saye at pet.hw.ac.uk (Benoit Saye) Date: Sun, 11 Mar 2001 18:49:59 -0000 Subject: [vtkusers] perl/tk with vtk Message-ID: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> Hi I was recommended Perl/Tk to develop nice interfaces. I can see that vtk has been combined to Tcl/tk, Python but not Perl. Is there any particular reason for that? Is Perl recommended for use with vtk, or would Tcl just do the same job with the benefit of all the code and examples already available with vtk ? Thanks for your help, Benoit From prabhu at aero.iitm.ernet.in Sun Mar 11 14:18:41 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 12 Mar 2001 00:48:41 +0530 (IST) Subject: [vtkusers] perl/tk with vtk In-Reply-To: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> References: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> Message-ID: <15019.53137.55346.203739@monster.linux.in> hi, >>>>> "Benoit" == Benoit Saye writes: Benoit> Hi I was recommended Perl/Tk to develop nice interfaces. I Benoit> can see that vtk has been combined to Tcl/tk, Python but Benoit> not Perl. Is there any particular reason for that? Is Perl Benoit> recommended for use with vtk, or would Tcl just do the Benoit> same job with the benefit of all the code and examples Benoit> already available with vtk ? There arent any Perl bindings for VTK yet. I dont know why. I wont venture on speculations for fear of starting a language war here. :) Python and Tcl sure do a great job! My personal favourite is Python and you can use Python and VTK with either Tkinter, or wxWindows/wxPython or with pyGtk. There are a lot of Python examples for VTK too. prabhu From randy at schrodinger.com Sun Mar 11 14:27:31 2001 From: randy at schrodinger.com (Randall Jones) Date: Sun, 11 Mar 2001 11:27:31 -0800 Subject: [vtkusers] perl/tk with vtk References: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> Message-ID: <3AABD1A3.C4BE5937@schrodinger.com> Why not use Python with Tk? I've wondered about Perl myself. Why is there not a Perl binding? Not that I'm advocating a Perl interface, I far prefer Python! But, Perl is more commonly available with default installations of Unicies. I could see how a Perl interface might be useful for processing some data for an interactive Web visualization application. Although, Python could just as easily serve this type of need! While I'm using bandwidth, I'd just like to say Thank you to the developers responsible for the Python bindings. I personally use them extensively for small applications, testing and fast proto-type development. I'm glad they're there! Just curious, Randy -- Benoit Saye wrote: > > Hi > > I was recommended Perl/Tk to develop nice interfaces. I can see that vtk has > been combined to Tcl/tk, Python but not Perl. Is there any particular reason > for that? Is Perl recommended for use with vtk, or would Tcl just do the > same job with the benefit of all the code and examples already available > with vtk ? > > Thanks for your help, > Benoit -- _______________________________________________________________ :: Randall Jones :: Schr?dinger, Inc. :: randy at schrodinger.com :: From seb-ml-vtk at barre.nom.fr Sun Mar 11 15:04:35 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Sun, 11 Mar 2001 21:04:35 +0100 Subject: [vtkusers] perl/tk with vtk : yes there is. In-Reply-To: <15019.53137.55346.203739@monster.linux.in> References: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> Message-ID: <5.0.0.25.2.20010311205640.02aec550@wheresmymailserver.com> At 12/03/2001 00:48, Prabhu Ramachandran wrote: > >>>>> "Benoit" == Benoit Saye writes: > > Benoit> Hi I was recommended Perl/Tk to develop nice interfaces. I > Benoit> can see that vtk has been combined to Tcl/tk, Python but > Benoit> not Perl. Is there any particular reason for that? Is Perl > Benoit> recommended for use with vtk, or would Tcl just do the > Benoit> same job with the benefit of all the code and examples > Benoit> already available with vtk ? > >There arent any Perl bindings for VTK yet. I dont know why. I wont >venture on speculations for fear of starting a language war here. :) There are Perl bindings. In september 2000, Roberto de Leo contacted me to talk about that topic. He had succeeded in creating a set of Perl bindings for Unix. At that time, I had not time or workstation to test them (sadly). His web page states that he was unable to achieve the same result for Win32. In the meanwhile, he sent me what seems to be Perl bindings for win32 (the link is not on his web page). Have a look at : http://www.math.umd.edu/~rdl/PerlVTK/ http://www.math.umd.edu/~rdl/PerlVTK/PerlVTK-3.12Win32.tgz Bare in mind that these bindings have not been created using the usual VTK wrapping mechanism, thus they might not behave as expected by Tcl or Python users. I do not even know if they are maintained anymore (Roberto is in CC:). I do not know if there is a Perl guru at Kitware who would be able to create a new wrapping module designed to output Perl, and I do not even know if there is a need for that. Furthermore, there is no "unique" way to do object-orientation in Perl. It has not been designed in that spirit. From julian at essaustin.com Sun Mar 11 15:22:42 2001 From: julian at essaustin.com (Julian Humphries) Date: Sun, 11 Mar 2001 14:22:42 -0600 Subject: [vtkusers] RemoveAllClippingPlanes gone? In-Reply-To: <15019.53137.55346.203739@monster.linux.in> References: <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> <41083A0F155AD31186F20008C71A055CBBEF9C@petserv03.pet.hw.ac.uk> Message-ID: <4.3.2.7.2.20010311141231.00de7c50@essaustin.com> I am trying to figure out how to remove a (one or more) clipping plane(s) from a PolyDataMapper. I added the plane with self.mymapper.AddClippingPlane(plane) just fine. The interface allows multiple calls so I need a way to remove all added clipping planes. It looks like RemoveAllClippingPlanes() would do the job, but the version of vtk I am using (PC binaries, released version 3.1) with Python bindings doesn't have this method (apparently). A call to: self.mymapper.RemoveAllClippingPlanes() returns an attribute error. There don't seem to be any examples. Any suggestions would be welcome. Thanks, Julian Humphries From rdl at math.umd.edu Sun Mar 11 18:05:38 2001 From: rdl at math.umd.edu (Roberto De Leo) Date: Sun, 11 Mar 2001 18:05:38 -0500 (EST) Subject: [vtkusers] perl/tk with vtk : yes there is. In-Reply-To: <5.0.0.25.2.20010311205640.02aec550@wheresmymailserver.com> Message-ID: > Bare in mind that these bindings have not been created using the usual VTK > wrapping mechanism, thus they might not behave as expected by Tcl or Python > users. I do not even know if they are maintained anymore (Roberto is in CC:). Hi, it is almost a year I am not using VTK so I am not updating or using perl bindings since then and I can't remember in detail how well they were working in Unix and Win32. It would be very interesting for me if anybody wants to try them and let me know about bugs. For sure it was working perfectly fine for me, but I was using very few functions so almost all of them are not tested. There should be a reasonably good documentation and enough examples in the packages that Sebastien pointed out. I remember I also tested the Win32 package and it seemed to work, but I tested even less than the Unix one. Still also there the few functions I used were working ok. In a few weeks I should start again working with VTK and so I will re-start working on the Perl modules, both on Unix and Win98/NT. Any feedback would be greatly appreciated. Roberto De Leo rdl at math.umd.edu From dgobbi at irus.rri.on.ca Sun Mar 11 20:06:53 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sun, 11 Mar 2001 20:06:53 -0500 (EST) Subject: [vtkusers] RemoveAllClippingPlanes gone? In-Reply-To: <4.3.2.7.2.20010311141231.00de7c50@essaustin.com> Message-ID: On Sun, 11 Mar 2001, Julian Humphries wrote: > I am trying to figure out how to remove a (one or more) clipping > plane(s) from a PolyDataMapper. I added the plane with > > self.mymapper.AddClippingPlane(plane) > > just fine. The interface allows multiple calls so I need a way to remove > all added clipping planes. It looks like RemoveAllClippingPlanes() would > do the job, but the version of vtk I am using (PC binaries, released > version 3.1) with Python bindings doesn't have this method (apparently). > A call to: > > self.mymapper.RemoveAllClippingPlanes() returns an attribute error. This method is certainly wrapped in the current VTK, I'm not sure why it would be missing in 3.1. You could try using mapper.SetClippingPlanes(None) or mapper.GetClippingPlanes().RemoveAllItems() - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario From julian at essaustin.com Sun Mar 11 20:32:17 2001 From: julian at essaustin.com (Julian Humphries) Date: Sun, 11 Mar 2001 19:32:17 -0600 Subject: [vtkusers] RemoveAllClippingPlanes gone? In-Reply-To: References: <4.3.2.7.2.20010311141231.00de7c50@essaustin.com> Message-ID: <4.3.2.7.2.20010311193050.00de7380@essaustin.com> At 08:06 PM 3/11/01 -0500, you wrote: >On Sun, 11 Mar 2001, Julian Humphries wrote: > > > > > just fine. The interface allows multiple calls so I need a way to remove > > all added clipping planes. It looks like RemoveAllClippingPlanes() would > > do the job, but the version of vtk I am using (PC binaries, released > > version 3.1) with Python bindings doesn't have this method (apparently). > > A call to: > > > > self.mymapper.RemoveAllClippingPlanes() returns an attribute error. > >This method is certainly wrapped in the current VTK, I'm not sure why >it would be missing in 3.1. You could try using > mapper.SetClippingPlanes(None) >or > mapper.GetClippingPlanes().RemoveAllItems() The later method works like a charm. Thanks. Julian Humphries From tyyu01 at mail.apol.com.tw Sun Mar 11 23:29:25 2001 From: tyyu01 at mail.apol.com.tw (TzuYi Yu) Date: Mon, 12 Mar 2001 12:29:25 +0800 Subject: [vtkusers] How to find proper member function of a particular class in vtk Message-ID: <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> Dear VTK Users: In the graphics\examplesCxx\Cone4.cxx, there are some statements listed as follows: ----------Code Segment included ----------------- vtkActor *cone1 = vtkActor::New(); cone1->SetMapper(coneMapper); cone1->GetProperty()->SetColor(0.2000,0.6300,0.7900); cone1->GetProperty()->SetDiffuse(0.7); cone1->GetProperty()->SetSpecular(0.4); cone1->GetProperty()->SetSpecularPower(20); ----------End of included ----------------------- The cone1 is a pointer and points to vtkActor, however, when I check vtkActor, I can NOT find that vtkActor has member functions of GetProperty and SetMapper, so I assume that the superclass of vtkActor should have these member functions and the vtkActor just inherits them. But when I go to the online menual page, and check for vtkActor, I found vtkActor->vtkProp3D->vtkProp->vtkObject, BUT vtkProp3D, vtkProp and vtkObject DON'T have GetProperty() member function! Did I miss anything? Can anyone tell me how the inheritance relationship? (ie, why cone1->GetProperty() is legal?) Thanks, Robert Yu From tyyu01 at mail.apol.com.tw Sun Mar 11 23:28:06 2001 From: tyyu01 at mail.apol.com.tw (TzuYi Yu) Date: Mon, 12 Mar 2001 12:28:06 +0800 Subject: [vtkusers] The question regarding SetScalarRange() function Message-ID: <000201c0aab2$940fadd0$bde74fcb@ncnuimcadcam> Dear VTK User: In the graphics\examplesCxx\ColorSph.cxx, there are some statements listed as follows: ----------Code Segment included ----------------- vtkSphereSource *sphere = vtkSphereSource::New(); sphere->SetPhiResolution(12); sphere->SetThetaResolution(12); vtkElevationFilter *colorIt = vtkElevationFilter::New(); colorIt->SetInput(sphere->GetOutput()); colorIt->SetLowPoint(0,0,-1); colorIt->SetHighPoint(0,0,1); ----------End of included ----------------------- If I add the "colorIt->SetScalarRange(a,b);" where a & b are different numbers, then the sphere shows different colors (sometime, it only show one color even a and b are differnt). Can anyone tell me how the "SetScalarRange" effect the final color of the sphere? ie, how can I know how to specify the right range to have the desire color of the sphere when renders? Thanks, Robert Yu From prabhu at aero.iitm.ernet.in Mon Mar 12 00:42:07 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 12 Mar 2001 11:12:07 +0530 (IST) Subject: [vtkusers] How to find proper member function of a particular class in vtk In-Reply-To: <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> References: <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> Message-ID: <15020.25007.174032.974405@monster.linux.in> hi, >>>>> "TzuYi" == TzuYi Yu writes: TzuYi> is a pointer and points to vtkActor, however, when I check TzuYi> vtkActor, I can NOT find that vtkActor has member functions TzuYi> of GetProperty and SetMapper, so I assume that the TzuYi> superclass of vtkActor should have these member functions TzuYi> and the vtkActor just inherits them. But when I go to the Well, vtkActor.h does have both the GetProperty and SetMapper member functions. I dont know how the documentation does not show this. Here is a snippet from the current CVS tree vtkActor.h (with line number info.) 114 void SetProperty(vtkProperty *lut); 115 vtkProperty *GetProperty(); [...] 137 vtkSetObjectMacro(Mapper,vtkMapper); 141 vtkGetObjectMacro(Mapper,vtkMapper); prabhu From whv88240 at Bayou.UH.EDU Mon Mar 12 01:00:16 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Mon, 12 Mar 2001 00:00:16 -0600 (CST) Subject: [vtkusers] VTKRayCastRayInfo.TransformedIncrement[3] Message-ID: Hello, VTK experts. I will appreciate your help with two questions. 1) Where is VTKRayCastRayInfo.TransformedIncrement[3] computed? It is stored in vtkRayCastStructures.h and used in class vtkVolumeRayCastIsosurfaceFunction, function CastRay_Trilin(): CastRay_Trilin ( VTKRayCastVolumeInfo *volumeInfo ) { ray_increment = rayInfo->TransformedIncrement; } 2) Is there some technique for finding these things without reading the half the VTK library? Thank you, Wolfv. From shade_cn at mailandnews.com Mon Mar 12 03:22:26 2001 From: shade_cn at mailandnews.com (Shade) Date: Mon, 12 Mar 2001 16:22:26 +0800 Subject: [vtkusers] How to get the zoom ratio of vtkCamera? Message-ID: Dear Everyone, How can I get the volume rendering zoom ratio? For example, a volume image is 256*256*256(data), it can be rendered in the screen with 512*512*512(image), so the zoom ratio should be 2, but how can I get the zoom ratio or the screen size of the volume iamge? Thanks. Shade From will.schroeder at kitware.com Mon Mar 12 06:49:26 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 12 Mar 2001 06:49:26 -0500 Subject: [vtkusers] How to find proper member function of a particular class in vtk In-Reply-To: <15020.25007.174032.974405@monster.linux.in> References: <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> Message-ID: <5.0.2.1.0.20010312064349.023f5d70@pop.nycap.rr.com> At 11:12 AM 3/12/2001 +0530, Prabhu Ramachandran wrote: >Well, vtkActor.h does have both the GetProperty and SetMapper member >functions. I dont know how the documentation does not show this. I believe the reason that the GetProperty command does not show up is that the comment that precedes it is associated with a block of methods (in this case SetProperty and GetProperty). There are lots of these in VTK. It would be absolutely wonderful if the doxygen-formatting scripts could be set up to associate a comment with all the methods that follow in a group. I know that doxygen has some grouping commands that might be useful here (we've also tried to encourage the doxygen folks to use blank lines as group delimiters to no avail). Will William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 USA will.schroeder at kitware.com http://www.kitware.com 1-518-371-3971 x102 From seb-ml-a at barre.nom.fr Mon Mar 12 07:14:22 2001 From: seb-ml-a at barre.nom.fr (Sebastien BARRE) Date: Mon, 12 Mar 2001 13:14:22 +0100 Subject: [vtkusers] How to find proper member function of a particular class in vtk In-Reply-To: <5.0.2.1.0.20010312064349.023f5d70@pop.nycap.rr.com> References: <15020.25007.174032.974405@monster.linux.in> <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> <000301c0aab2$94e8cfc0$bde74fcb@ncnuimcadcam> Message-ID: <5.0.0.25.0.20010312130727.03dd1700@pop.fr.clara.net> At 12/03/01 06:49 -0500, Will Schroeder wrote: >At 11:12 AM 3/12/2001 +0530, Prabhu Ramachandran wrote: > >>Well, vtkActor.h does have both the GetProperty and SetMapper member >>functions. I dont know how the documentation does not show this. > >I believe the reason that the GetProperty command does not show up is that >the comment that precedes it is associated with a block of methods (in >this case SetProperty and GetProperty). Exactly. Only the first Macro is documented, for example : vtkSetObjectMacro(Mapper,vtkMapper); vtkGetObjectMacro(Mapper,vtkMapper); This is not so dramatic, because at least one is documented, and the other is not so far away :) >There are lots of these in VTK. It would be absolutely wonderful if the >doxygen-formatting scripts could be set up to associate a comment with all >the methods that follow in a group. I know that doxygen has some grouping >commands that might be useful here (we've also tried to encourage the >doxygen folks to use blank lines as group delimiters to no avail). I've written most of the (infamous) Perl scripts that are used to build the current documentation using doxygen (Vetle Roeim started the project) , but they were no satisfying grouping mechanism at that time. Doxygen 1.6 has been released, I guess I shall find some time to finish the scripts, provided that Kitware will be OK with the tags that have to be put at the beginning and the end of the group, and that it will upgrade to doxygen 1.6. I just had not time to take care of that until now. Seb From bctwong at ucalgary.ca Mon Mar 12 11:18:34 2001 From: bctwong at ucalgary.ca (Ben Wong) Date: Mon, 12 Mar 2001 09:18:34 -0700 Subject: [vtkusers] vtkTkImageViewerWidget Message-ID: <3AACF6DA.D1CAA1EE@ucalgary.ca> hi vtkusers, does anybody know how i can use vtkTkImageViewerWidget in combination with vtkImageViewer in c++? thanks ben From julian at essaustin.com Mon Mar 12 14:24:13 2001 From: julian at essaustin.com (Julian Humphries) Date: Mon, 12 Mar 2001 13:24:13 -0600 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 References: <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> Message-ID: <3AAD225D.8ADA9735@essaustin.com> Sebastien BARRE wrote: > > > >So how do we match the tcl/tk - python - vtk versions? (for windows) Can > >someone outline a (binaries, not source) installation sequence for using > >Python 2 and vtk? Can somebody indicate a known combination of versions > >that work? > > Windows : > - Python 1.5.2 + Tcl 8.0.3 > - Python 2.0 + Tcl 8.3.0 Um, ok, today I tried to update from Python 1.5.2, and with little success. I downloaded both 3.2 and nightly versions of the vtk core and vtkpython bindings (pc binaries). Both "seem" to require Python 1.5 (I get a message that says module use requiring python15.dll is not compatible with this version of python). Oddly, the vtkpython.dll in the nightly is dated from last December, the 3.2 version is last month. At any rate, does this mean that there is not a precompiled version of vtk and python bindings that work with Python 2? In another oddity of this version nightmare, I tried first to use vtk 3.2 with python 1.5. That worked for the most part, but all of the examples in the imaging\examplesPython directory failed because they wanted tcl/tk 8.0 (a message about running fixtk.py appears). However all the examples in graphics\examplesPython seemed to work. Ugh. Julian Humphries From themangoon at yahoo.com Mon Mar 12 14:35:10 2001 From: themangoon at yahoo.com (Nicolas Mangon) Date: Mon, 12 Mar 2001 11:35:10 -0800 (PST) Subject: [vtkusers] orientation of 2D text Message-ID: <20010312193510.94580.qmail@web10102.mail.yahoo.com> Hello ! Is it possible to change the orientation of 2D text annotations instead of being always horizontal ? Thanks Nicolas __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ From seb-ml-vtk at barre.nom.fr Mon Mar 12 16:32:16 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Mon, 12 Mar 2001 22:32:16 +0100 Subject: [vtkusers] vtk, python20, TkRenderWidget, Win2000 In-Reply-To: <3AAD225D.8ADA9735@essaustin.com> References: <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> Message-ID: <5.0.0.25.2.20010312222837.02c295c8@wheresmymailserver.com> At 12/03/2001 13:24, Julian Humphries wrote: >At any rate, does this mean that there is not a precompiled >version of vtk and python bindings that work with Python 2? That's it. A choice had to be made I guess. Windows : - Python 1.5.2 => Tcl 8.0.3 - Python 2.0 => Tcl 8.3.0 - VTK precompiled => Python 1.5.2 - VTK compiled from sources => choose either 1.5.2 or 2.0 >In another oddity of this version nightmare, I tried first to >use vtk 3.2 with python 1.5. That worked for the most part, but >all of the examples in the imaging\examplesPython directory failed >because they wanted tcl/tk 8.0 (a message about running fixtk.py >appears). However all the examples in graphics\examplesPython >seemed to work. I guess some of the examples use Tkinter, the Python module binding Tk and Python. From themangoon at yahoo.com Mon Mar 12 16:56:52 2001 From: themangoon at yahoo.com (Nicolas Mangon) Date: Mon, 12 Mar 2001 13:56:52 -0800 (PST) Subject: [vtkusers] Text orientation Message-ID: <20010312215652.67708.qmail@web10112.mail.yahoo.com> Hello, What I mean is by Is it possible to change the orientation of 2D text annotations instead of being always horizontal, is can we rotate the text along any axis, not only vertical. Thanks __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ From themangoon at yahoo.com Mon Mar 12 17:02:25 2001 From: themangoon at yahoo.com (Nicolas Mangon) Date: Mon, 12 Mar 2001 14:02:25 -0800 (PST) Subject: [vtkusers] SetLabelFormat Message-ID: <20010312220225.41927.qmail@web10109.mail.yahoo.com> In c++ I am using vtkLabeledDataMapper->SetLabelFormat(char*) For scintific notation I pass %6.4e. I always get 1.2345E+005 which is not elegant if I want to get 1.2345E+05. How can I get rid of the unnecessary 0 If it is not possible with VTK, is it possible in C ? Thanks Nicolas __________________________________________________ Do You Yahoo!? Yahoo! Auctions - Buy the things you want at great prices. http://auctions.yahoo.com/ From dgobbi at irus.rri.on.ca Mon Mar 12 17:09:44 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 12 Mar 2001 17:09:44 -0500 (EST) Subject: [vtkusers] Text orientation In-Reply-To: <20010312215652.67708.qmail@web10112.mail.yahoo.com> Message-ID: Hi Nicolas, There are questions that you might be asking, so I'll answer them both. First, I don't think this is what you mean, but to write vertical text like T E X T you can just put a "\n" after each letter, e.g. text = vtkVectorText() text.SetText("T\nE\nX\nT") In order to take a piece of horizontal text and rotate it to any orientation (I'm guessing that this is what you want to do) you can use vtkTransformPolyDataFilter text = vtkVectorText() text.SetText("TEXT") transform = vtkTransform() transform.Translate(x,y,z) # set coords for text transform.RotateX(90.0) # change orientation transform.Scale(10,10,10) # apply whatever scale you want to use transformFilter = vtkTransformPolyDataFilter() transformFilter.SetInput(text.GetOutput()) transformFilter.SetTransform(transform) You can also do the translation/rotation/scaling to the vtkActor instead of to the data. Also, it can be useful to use vtkFollower in place of vtkActor if you always want the text to face the camera. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 12 Mar 2001, Nicolas Mangon wrote: > Hello, > > What I mean is by Is it possible to change the > orientation of 2D text annotations instead of being > always horizontal, is can we rotate the text along any > axis, not only vertical. > > Thanks > From ludasergeevna at yahoo.com Mon Mar 12 19:42:18 2001 From: ludasergeevna at yahoo.com (Felix) Date: Tue, 13 Mar 2001 03:42:18 +0300 Subject: [vtkusers] =?windows-1251?Q?Re:_=C2=FB_=ED=E5_=EE=E4=E8=ED,_=EA=F2=EE_=F5=EE=F7=E5=F2_=FD=F2=EE_=F1=E4=E5=EB=E0=F2=FC!?= Message-ID: <200103130036.f2D0aVU02565@mailhub.co.ru> ?? ?? ????, ??? ????? ???????? ???? ??????????????! ?? ???? ?????? ??????? ????? ??????? ????? ?????????? ???????. ????????? ???????, ???? ?????? ???????? ?????? ???, ???? ?????? ?????? ?? ?????! ?????? ??????? ?????? ??????. ??????? - ????? ??? ????????? ???????? ? ???????????? ????????? ??????? ? ?????? ??????? ??????????? ? ???????????. ???. ?? ??????????, ??????? ?? ??? SITE, ?????? ?????????? ????????, ?????????? ??? ?????? ?? ??????. http://asia.net.ru/incolor ??? ????? ?? ?????? ??? ? ??????. ???????????. mailto:mlmcolor at yahoo.com ??????. From whv88240 at Bayou.UH.EDU Tue Mar 13 23:31:13 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Tue, 13 Mar 2001 22:31:13 -0600 (CST) Subject: [vtkusers] light source in cammera Message-ID: I am trying to understand how the light source stays in the camera during vtkCamera::Azimuth and vtkCamera::Elevation when a scene is rendered. When I render a scene using vtkVolumeRayCastIsosurfaceFunction, the specular isosurface looks nice and shiny. As I rotate through Elevation and Azimuth the light source seems to stay with the camera. I am writing a class that raycasts a synthetic scene directly from a mathematical model (no interpolation is used). And would like the same light-in-camera effect. Is vtkEncodedGradientEstimator::Update() involved? If so, where is vtkEncodedGradientEstimator::Update() called from? Thank you for your help, Wolfv. From whv88240 at Bayou.UH.EDU Wed Mar 14 06:54:32 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Wed, 14 Mar 2001 05:54:32 -0600 (CST) Subject: [vtkusers] light source in cammera In-Reply-To: Message-ID: Please disregard my last message "Subject: light source in cammera". There was a mistake in that message, not to mention a spelling error. Sorry for the inconvenience. Wolfv. From faulhabe at ipf.uni-karlsruhe.de Wed Mar 14 11:28:22 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Wed, 14 Mar 2001 17:28:22 +0100 Subject: [vtkusers] contour lines from polydata Message-ID: <3AAF9C26.78C22B5@ipf.uni-karlsruhe.de> Hi, does anyone have or know of an example creating contour LINES (not Isosurfaces) from PolyData (Vertices oder PolyVertex)? The standard examples seem to create Isosurfaces from structuredPoints ... Thanks very much!!! Karin -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 Email: faulhaber at ipf.uni-karlsruhe.de From J.Riley at cs.ucl.ac.uk Wed Mar 14 12:28:58 2001 From: J.Riley at cs.ucl.ac.uk (Jason RILEY) Date: Wed, 14 Mar 2001 17:28:58 +0000 Subject: [vtkusers] a 'new' RedHAt 7.0 Compile Problem Message-ID: <5302.984590938@cs.ucl.ac.uk> dear all, I am trying to install VTK31 on redhat 7. I have downgraded my compiler to gcc2.9.5 and patched it with glibc2.2 I have installed the nvidia drivers and GLX library from nvidia for the GeforceII graphics card. I use configure: ./configure --prefix=/home/jriley/vtk31 --with-shared --with-tcl --with-tkwidget --with-patented --with-contrib when I compile the target program crashes with a segmentation fault... cd common; make - targets.make make[1]: Entering directory `/home/jriley/vtk31/common' ../targets ./.. extra . concrete vtkActor2D vtkActor2DCollection vtkBitArray vtkByteSwap vtkCellArray vtkCellData vtkCellLinks vtkCellTypes vtkCharArray vtkCollection vtkContourValu es vtkCoordinate vtkDataObject vtkDataSetAttributes vtkDataSetCollection vtkDirectory vtkDy namicLoader vtkDoubleArray vtkEdgeTable vtkEmptyCell vtkFieldData vtkFloatArray vtkFloatNor mals vtkFloatPoints vtkFloatScalars vtkFloatTCoords vtkFloatTensors vtkFloatVectors vtkGene ralTransformConcatenation vtkGeneralTransformInverse vtkGenericCell vtkHexahedron vtkIdList vtkImageData vtkImageSource vtkImageToStructuredPoints vtkImplicitFunctionCollection vtkIn dent vtkIntArray vtkLine vtkLogLookupTable vtkLongArray vtkLookupTable vtkMapper2D vtkMath vtkMatrix4x4 vtkMergePoints2D vtkMultiThreader vtkMutexLock vtkNormals vtkObject vtkOutputW indow vtkPixel vtkPlane vtkPlaneCollection vtkPointData vtkPointLocator vtkPointLocator2D v tkPoints vtkPolyData vtkPolyLine vtkPolyVertex vtkPolygon vtkPriorityQueue vtkProcessObject vtkProp vtkPropAssembly vtkPropCollection vtkProperty2D vtkPyramid vtkQuad vtkRectilinearG rid vtkReferenceCount vtkScalars vtkShortArray vtkSource vtkStack vtkStructuredData vtkStru cturedGrid vtkStructuredPoints vtkTCoords vtkTensor vtkTensors vtkTetra vtkTimeStamp vtkTim erLog vtkTransform vtkTransformCollection vtkTriangle vtkTriangleStrip vtkUnsignedCharArray vtkUnsignedIntArray vtkUnsignedLongArray vtkUnsignedShortArray vtkUnstructuredGrid vtkVect ors vtkVersion vtkVertex vtkVoidArray vtkVoxel vtkWedge vtkWindowLevelLookupTable vtkWindow ToImageFilter abstract vtkAbstractMapper vtkAttributeData vtkCell vtkDataArray vtkDataSet v tkGeneralTransform vtkImplicitFunction vtkLocator vtkObjectFactory vtkPointSet vtkScalarsTo Colors vtkViewport vtkWindow concrete_h vtkObjectFactoryCollection abstract_h make[1]: *** [targets.make] Segmentation fault (core dumped) make[1]: *** Deleting file `targets.make' make[1]: Leaving directory `/home/jriley/vtk31/common' Please Help!!!!!pretty Please!! thanks, Jason ------------------------------------------------------------------------------ Jason Riley PhD Student Computer Science Department University College London Telephone: ucl: 3876 Gower Street external: +44 (0)20 7679 3876 London WC1E 6BT WebPage: http://www.cs.ucl.ac.uk/staff/J.Riley UK ------------------------------------------------------------------------------ From kamucha at hfm.e-technik.uni-kassel.de Wed Mar 14 10:31:10 2001 From: kamucha at hfm.e-technik.uni-kassel.de (George Kamucha) Date: Wed, 14 Mar 2001 18:31:10 +0300 Subject: [vtkusers] Subtracting two surfaces References: <200103141700.MAA28266@public.kitware.com> Message-ID: <3AAF8EBE.27237133@hfm.e-technik.uni-kassel.de> Hi all I have two surfaces which have been matched using vtksbIterativeClosestPointTransform. The surfaces are very similar with just very small variations. I now need to obtain a surface map showing the difference between the two surfaces but I am not managing it. Any idea to achieving this would be very appreciated. Best regards George From seb-ml-vtk at barre.nom.fr Wed Mar 14 14:25:13 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Wed, 14 Mar 2001 20:25:13 +0100 Subject: [vtkusers] [CVS] Added list of consumers to data objects... In-Reply-To: <5302.984590938@cs.ucl.ac.uk> Message-ID: <5.0.0.25.2.20010314202216.02bb1098@wheresmymailserver.com> Hi I just bumped on that : http://www.visualizationtoolkit.org/vtk/quality/ContinuousResults/solaris/Change.2591.html I guess it's worth saying that Ken added a " list of consumers to data objects so that the pipeline can be navigated in both directions The consumers are not reference counted." In both directions. Yes. From clearlight at dreamx.net Thu Mar 15 04:02:45 2001 From: clearlight at dreamx.net (=?ks_c_5601-1987?B?wMy787z2?=) Date: Thu, 15 Mar 2001 18:02:45 +0900 Subject: [vtkusers] VTK and Finite Element Method Message-ID: <001001c0ad2e$b6a918d0$3f88f5cb@LocalHost> Hi, I'm a FEM postprocessor programmer... I am very interested in using VTK for FEM .. but In my view,it seems that VTK is not fit to FEM.. because it cannot assign each value on each node of cells,so that the cells can show abrupt value change on edge which is so common in FEM analysis... another problem is it cannot represent high order element such as 8 node quad, 6 node triangle, or 12 node hexa ... so on... I am studying vtk to fix above problems, but feel it is very complicated problems... Is there anyone who thinked about those? -------------- next part -------------- An HTML attachment was scrubbed... URL: From skrikerud at ifu.bepr.ethz.ch Thu Mar 15 05:15:41 2001 From: skrikerud at ifu.bepr.ethz.ch (Martin Skrikerud) Date: Thu, 15 Mar 2001 11:15:41 +0100 Subject: [vtkusers] VTK and Finite Element Method References: <001001c0ad2e$b6a918d0$3f88f5cb@LocalHost> Message-ID: <3AB0964D.A170CF8F@ifu.bepr.ethz.ch> Hello, I have used vtk for fem-pre- and postprocessing purposes for 3 years now, and I am quite pleased with that. Though I have only used it for 3-noded and 4-noded elements. But you can assign a scalar colour value to each node. Have a nice day! Martin From c.p.botha at its.tudelft.nl Thu Mar 15 07:51:20 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Thu, 15 Mar 2001 13:51:20 +0100 Subject: [vtkusers] announce: new class for using fltk and vtk together Message-ID: <20010315135120.D1886@dutidad.twi.tudelft.nl> Dear VTK users, Please see http://cpbotha.net/vtkFlRenderWindowInteractor.html for a new class that enables FLTK-VTK integration and interaction. This is based on the work of David Pont, but has been cleaned-up, simplified and made more robust. The main .cxx file is less than 300 lines and enables full fltk-vtk interaction. To VTK, it's just another vtkRenderWindowInteractor. This class is available under the LGPL license. Regards, -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From audi2006 at singnet.com.sg Thu Mar 15 08:37:34 2001 From: audi2006 at singnet.com.sg (Audi) Date: Thu, 15 Mar 2001 21:37:34 +0800 Subject: [vtkusers] DICOM multiple frame files Message-ID: <002f01c0ad55$1843dd20$4adc15a5@audi> Hi, Is the DICOM samples multiple frame files that can be downloaded from Sebastien Barre website, 3D? Is the meaning of Image type ORIGINAL/PRIMARY = 3D image? If not, do anybody have DICOM samples that in 3D?If have can send few to me?I really need to render 3D from DICOM files. Thanks a lot Semmala -------------- next part -------------- An HTML attachment was scrubbed... URL: From kee at erdc.hpc.mil Thu Mar 15 14:29:33 2001 From: kee at erdc.hpc.mil (Kent Eschenberg, Ph.D.) Date: Thu, 15 Mar 2001 13:29:33 -0600 Subject: [vtkusers] Teaching VTK with TCL/TK Message-ID: Dear VTKers, I'm teaching a course for computer science graduate students this summer on the subject of scientific visualization. We'll be using VTK (both TCL/TK and C++ flavors) on PCs for projects and there will be 48 hours for lecture and/or labs. Any suggestions for course materials? If I use a set of notes (html, Powerpoint, Word, ..., crayon) I'd be happy to pass back any additions. Any suggestions for books? I have the two from Kitware, but am still searching for a good intro to TCL/TK for the class and myself. I've only used the C++ approach at work since I tend towards really large datasets. Any further suggestions would be welcome. It would probably be a good idea to communicate directly to save the VTK world from these slightly off-topic messages. Kent Eschenberg kee at erdc.hpc.mil ERDC MSRC (DoD supercomputer center), Vicksburg, MS From adv_biologic at hotmail.com Thu Mar 15 15:06:36 2001 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Thu, 15 Mar 2001 15:06:36 -0500 Subject: [vtkusers] Simple Question regarding PolyLines Message-ID: Dear vtk support / vtk users, I have a trivial question regarding using polylines as opposed to lines. The following mock code should help illustrate my question vtkPoints *myPolyLinePoints; vtkCellArray *myCellArray; vtkPolyData *myPolyData; ... pointID = myPolyLinePoints->InsertNextPoint( aPoint); pointList[0] = pointID; pointID = myPolyLinePoints->InsertNextPoint( bPoint); pointList[1] = pointID; pointID = myPolyLinePoints->InsertNextPoint( cPoint); pointList[2] = pointID; myCellArray->InsertNextCell( 3, pointList ); // I noticed that in the new release there are new versions of the method // InsertNextCell( VTK_POLY_LINE, 3, pointList) // Do I need to switch to this? // Moving on, myPolyData->SetPoints( myPolyLinePoints); // For 2 point lines I've been using myPolyData->SetLines( myCellArray); // For 3 or more point polylines do I need to switch to myPolyData->SetPolys( myCellArray); // ? Thanks. Sincerely, Audrius Stundzia _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From seb-ml-vtk at barre.nom.fr Thu Mar 15 15:38:48 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Thu, 15 Mar 2001 21:38:48 +0100 Subject: [vtkusers] Teaching VTK with TCL/TK In-Reply-To: Message-ID: <5.0.0.25.2.20010315213438.01b9cc38@wheresmymailserver.com> At 15/03/2001 13:29, Kent Eschenberg, Ph.D. wrote: >I'm teaching a course for computer science graduate students this summer on >the subject of scientific visualization. We'll be using VTK (both TCL/TK and >C++ flavors) on PCs for projects and there will be 48 hours for lecture >and/or labs. > >Any suggestions for course materials? I tried to compile some of them. I do not know if all links are up-to-date : http://www.barre.nom.fr/vtk/links.html#examples see "Classes, Courses, Presentations" >If I use a set of notes (html, >Powerpoint, Word, ..., crayon) I'd be happy to pass back any additions. Would be great if you could put your course materials online some day. Feel free to keep me posted. >Any suggestions for books? I have the two from Kitware, but am still >searching for a good intro to TCL/TK for the class and myself. I've only >used the C++ approach at work since I tend towards really large datasets. http://www.barre.nom.fr/vtk/links.html#documentation see "Books" see "Bookstore", Kitware has several references to various scripting languages books, including "Brent B. Welch : Practical Programming in Tcl & Tk.". I'dd also add "Tcl and the Tk Toolkit", Ousterhout. But I guess you have them. From J.Riley at cs.ucl.ac.uk Fri Mar 16 05:29:45 2001 From: J.Riley at cs.ucl.ac.uk (Jason RILEY) Date: Fri, 16 Mar 2001 10:29:45 +0000 Subject: [vtkusers] Re:a 'new' RedHAt 7.0 Compile Problem Message-ID: <17855.984738585@cs.ucl.ac.uk> Dear all, Just a note to say we now have vtk(tcl/tk) running under RedHat 7.0. Thanks for the help. The solution for us was as follows(The key issue appears to have been, for us, the RH7 compiler): TCL/Tk - preinstalled 8.3 with RH7 OpenGL - installed using the nvidia drivers available on their site for the GEForceII (plus: changing the line in the X config file for the graphics card from driver = "nv" to driver = "nvidia") Compiler - downgrading to gcc2.95 with the glibc2.2 patch (rpms from redhat or gcc site(can't remember which - sorry) NOTE: problem with this is we had to leave the separate kernel compiler on for later use, so uninstalling the old rpms for gcc2.96(the RH7 release version) didn't work to well - it leaves some old libstdc libraries in /usr/lib the new libraries get installed to /usr/local/lib to get round this we had to add /usr/local/lib to LD_LIBRARY_PATH (or you could move the files/create the appropriate links). anyway all that said and done vtk is now running quite happily on RH7 I don't know if this will be of help to anyone who still has problems but I thought I'd send this in case it helps anyone. Thanks again for your help, Jason ------------------------------------------------------------------------------ Jason Riley PhD Student Computer Science Department University College London Telephone: ucl: 3876 Gower Street external: +44 (0)20 7679 3876 London WC1E 6BT WebPage: http://www.cs.ucl.ac.uk/staff/J.Riley UK ------------------------------------------------------------------------------ From robbel at science.uva.nl Fri Mar 16 05:38:51 2001 From: robbel at science.uva.nl (Robert Belleman) Date: Fri, 16 Mar 2001 11:38:51 +0100 Subject: [vtkusers] Teaching VTK with TCL/TK In-Reply-To: ; from kee@erdc.hpc.mil on Thu, Mar 15, 2001 at 01:29:33PM -0600 References: Message-ID: <20010316113851.A17043@waal.wins.uva.nl> On Thu, Mar 15, 2001 at 01:29:33PM -0600, Kent Eschenberg, Ph.D. wrote: > I'm teaching a course for computer science graduate students this summer on > the subject of scientific visualization. We'll be using VTK (both TCL/TK and > C++ flavors) on PCs for projects and there will be 48 hours for lecture > and/or labs. > > Any suggestions for course materials? If I use a set of notes (html, > Powerpoint, Word, ..., crayon) I'd be happy to pass back any additions. We have been teaching a caput on "Scientific Visualization and Virtual Reality" for two years now in which the students are also asked to fulfill a number of lab assignments using Vtk. You are welcome to have a look at the material we provide for this course. It's at http://www.science.uva.nl/research/scs/edu/scivis/ These pages also contain material presented by invited speakers and references to other sources (such as introductory pages on Tcl). If you plan to use any of the material provided by our invited speakers for your own course, please contact me so that I can check for an OK with the authors. Regarding the lab sessions; my experience is that a two-hour introductory lecture on Tcl and Vtk (with interactive demonstrations) is sufficient to get computer science students with some programming experience well on their way. Good luck, -- Rob [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] From faulhabe at ipf.uni-karlsruhe.de Fri Mar 16 05:41:53 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Fri, 16 Mar 2001 11:41:53 +0100 Subject: [vtkusers] Contour Lines Message-ID: <3AB1EDF1.60ED61B@ipf.uni-karlsruhe.de> Hi, okay, so I have created a vtkPolyData with a couple of vertices. The 3rd coordinates of all the points I used for them are zero (all points lying on a plane). All of the points have a scalar attribute. I want to show the Isolines. Why does the contourFilter only output the points of the original vtkPolyData which have EXACTLY one of my ContourValues as attribute data instead of interpolating lines??? Thanks a lot!!! Karin -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 Email: faulhaber at ipf.uni-karlsruhe.de From jbiddiscombe at skippingmouse.co.uk Fri Mar 16 07:07:22 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 16 Mar 2001 12:07:22 +0000 Subject: [vtkusers] Teaching VTK with TCL/TK In-Reply-To: Message-ID: <5.0.0.25.0.20010316120014.00ab69e8@mail.skippingmouse.co.uk> >I'm teaching a course for computer science graduate students this summer on >the subject of scientific visualization. We'll be using VTK (both TCL/TK and >C++ flavors) on PCs for projects and there will be 48 hours for lecture >and/or labs. >Any further suggestions would be welcome. It would probably be a good idea >to communicate directly to save the VTK world from these slightly off-topic >messages. If you're not going to start your course for a couple of months. I'm hoping to have a beta release of RPD-2 (Rapid Pipieline Design) ready soonish (couple of months). Your students could be guinea pigs if you want. No web page available yet, but RPD is a visual network editor for vtk (RPD-2 now with Tcl support). I can send a version of RPD-1 if you don't know what it is. ttfn John B From c.p.botha at its.tudelft.nl Fri Mar 16 10:42:36 2001 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Fri, 16 Mar 2001 16:42:36 +0100 Subject: [vtkusers] ANNOUNCE: vtkFlRenderWindowInteractor 0.2 available Message-ID: <20010316164236.E15340@dutidad.twi.tudelft.nl> Dear VTK users, Version 0.2 of vtkFlRenderWindowInteractor is now available. This fixes quite a few nasty issues w.r.t. portability, so if you experienced problems with 0.1, please give 0.2 a try. It is available from: http://cpbotha.net/vtkFlRenderWindowInteractor.html (in the USA) and http://www.cg.its.tudelft.nl/~cpbotha/vtkFlRenderWindowInteractor.html (in NL) Changes since 0.1 include: * tested on SGI Octane and O2 (this didn't work with 0.1) * parent flush() method disabled; previously this would cause the front and back buffers on some systems to get really confused * Inheritance changed back to Fl_Gl_Window; there might be systems where Fl_Window grabs a visual which is missing capabilities required by VTK. * Removed dumb ^Ms from sources (SGI CC does NOT like them) * README now has tested configurations * Cone3.cxx has more comments Regards, -- charl p. botha | computer graphics and cad/cam http://cpbotha.net/ | http://www.cg.its.tudelft.nl/ From msyal at vt.edu Fri Mar 16 19:57:37 2001 From: msyal at vt.edu (Manan Syal) Date: Fri, 16 Mar 2001 19:57:37 -0500 Subject: [vtkusers] 3d data format?? Message-ID: <3AB2B681.F2A0D847@vt.edu> hello all... i am new to VTK. I am trying to render some 3d data... i have uncompressed data, which i need to render in the form of meshes..i have gone through the examples, and realize that the user must specify data at each point, and the connectivity list between the points.. is there any example or any other link where i can find the (user )data structure required by VTK to render volumes ? please reply at the earliest..need help with this one.. manan From prabhu at aero.iitm.ernet.in Sat Mar 17 00:36:57 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 17 Mar 2001 11:06:57 +0530 (IST) Subject: [vtkusers] 3d data format?? In-Reply-To: <3AB2B681.F2A0D847@vt.edu> References: <3AB2B681.F2A0D847@vt.edu> Message-ID: <15026.63481.554283.965933@monster.linux.in> hi, >>>>> "Manan" == Manan Syal writes: Manan> hello all... i am new to VTK. I am trying to render some Manan> 3d data... i have uncompressed data, which i need to render Manan> in the form of meshes..i have gone through the examples, Manan> and realize that the user must specify data at each point, Manan> and the connectivity list between the points.. is there Manan> any example or any other link where i can find the (user Manan> )data structure required by VTK to render volumes ? please Manan> reply at the earliest..need help with this one.. manan What kind of data is this? Is it a rectilinear or structured or unstructured grid?? In any case you can use the vtk data format information on the data format is avlbl in the appendices of the VTK book and also online here: http://www.kitware.com/FileFormats.pdf If you are looking for examples, get a hold of the VTK CD that ships with the book (and separately sold also) and look in the vtkdata directory. If you dont have access to either, download the data from: http://www.kitware.com/vtkhtml/vtkdata/HowToGetSoftware.html There are links to the data here with some information on what to get etc. HTH, prabhu From cheby20 at yahoo.com Sat Mar 17 06:01:13 2001 From: cheby20 at yahoo.com (cheby wow) Date: Sat, 17 Mar 2001 03:01:13 -0800 (PST) Subject: [vtkusers] vtkstructuredpoints Message-ID: <20010317110113.4194.qmail@web12304.mail.yahoo.com> Hi, I'm newbie to vtk. I'm having assignment to read multiple frame files of raw files. And I'm using vtkStructuredPoints instead of vtkVolume16Reader, as it caused me a lot of trouble when using vtkVolume16Reader in mfc. Anybody had ever used vtkStructuredPoints only to read multiple frame files? If yes, How to append the data from next file to the previous structuredpoints that had stored the data from the first file?Because I only can get data from one file, it seems the new data overwrite the prev data. I include part of the function that handle that, could somebody find what cause the the prob?I really need this urgently, I hope somebody can help me. The function below I repeat it for number of read files times. "Number" is for indicating which slice I read. fread(Image,1,datainfo.m_XDim*datainfo.m_YDim,fin); fclose(fin); vtkScalars *scalars=(*StructuredPoints)->GetPointData()->GetScalars(); scalars->SetDataType(VTK_UNSIGNED_CHAR); int i,j,k; for(k=Number-1;kSetScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i,Image[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]); } Thanks a lot, Cheby --------------------------------- Do You Yahoo!? Yahoo! Mail Personal Address - Get email at your own domain with Yahoo! Mail. -------------- next part -------------- An HTML attachment was scrubbed... URL: From julian at essaustin.com Sat Mar 17 20:48:27 2001 From: julian at essaustin.com (Julian Humphries) Date: Sat, 17 Mar 2001 19:48:27 -0600 Subject: [vtkusers] Vtk, Python, compilation problems on Windows In-Reply-To: <5.0.0.25.2.20010312222837.02c295c8@wheresmymailserver.com> References: <3AAD225D.8ADA9735@essaustin.com> <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> Message-ID: <4.3.2.7.2.20010317173709.00df8960@essaustin.com> At 10:32 PM 3/12/01 +0100, Sebastien BARRE wrote: >At 12/03/2001 13:24, Julian Humphries wrote: > >>At any rate, does this mean that there is not a precompiled >>version of vtk and python bindings that work with Python 2? > >That's it. A choice had to be made I guess. > >Windows : > - Python 1.5.2 => Tcl 8.0.3 > - Python 2.0 => Tcl 8.3.0 > - VTK precompiled => Python 1.5.2 > - VTK compiled from sources => choose either 1.5.2 or 2.0 Ok, I thought I could deal with that. I decided to compile it myself, despite having no recent C++ experience. Downloaded the Borland compiler, Got the 3.2 source, ran the pcmaker.exe program, it asks if I want to build Python, I do, I download Python 2.0 source, rerun pcmaker, it runs, I compile vtk (mucho time), but it is successful, go to the Python directory, try to make that, but the make file says: ### Not Implemented Yet Argh! Boy, this is tiring. Is there a way to get the vtk-Python package working on WIndows with Python 2.0? In fact, all I really want to do is use the patented classes with Python, any version, but as the precompiled versions at Kitware don't include those. I am looking for suggestions. Does anybody have binaries for vtk and python with the patented classes included? Python 2.0 support would be a bonus, but even 1.5 would do at this point. Many thanks, Julian Humphries University of Texas P.S. Also, the link failed with the Borland turbo linker and the tcl build (but worked fine with the vtkdll.dll). An error about an invalid flag, anyone had success with that combo? From G.R.Tabor at exeter.ac.uk Fri Mar 16 12:44:04 2001 From: G.R.Tabor at exeter.ac.uk (Gavin Tabor) Date: Fri, 16 Mar 2001 17:44:04 +0000 Subject: [vtkusers] reading from FORTRAN files Message-ID: <3AB250E4.E09D62F@ex.ac.uk> Hi. I'm trying to read in data from a FE file written by a FORTRAN code, in order to visualise the data in VTK. The file contains integers and floating point numbers in binary format. I've managed to read in the integers OK, giving me an outline of the file (I can for example read how many points there are in the mesh), but I cannot work out how to read a binary FLOAT into an appropriate C variable. If anyone can give me some clues on this I would be very appreciative. Gavin -- Dr. Gavin Tabor School of Engineering and Computer Science Department of Engineering University of Exeter From jbiddiscombe at skippingmouse.co.uk Sat Mar 17 22:11:33 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sun, 18 Mar 2001 03:11:33 +0000 Subject: [vtkusers] Vtk, Python, compilation problems on Windows In-Reply-To: <4.3.2.7.2.20010317173709.00df8960@essaustin.com> References: <5.0.0.25.2.20010312222837.02c295c8@wheresmymailserver.com> <3AAD225D.8ADA9735@essaustin.com> <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> Message-ID: <5.0.0.25.0.20010318030521.0266b9c8@mail.btinternet.com> >P.S. Also, the link failed with the Borland turbo linker and the tcl >build (but >worked fine with the vtkdll.dll). An error about an invalid flag, anyone >had success >with that combo? The tcl82.lib file (generated from tcl82.dll) is a microsoft compatible lib file do this implib -a tcl82.lib tcl82.dll in your tcl/bin (where tcl82.dll is) directory and then copy the new lib file over that from the vtk/pcmaker install. This somewhat assumes you've got implib handy (you mention downloading a compiler, you mean the BCC command line one? does it have implib packaged in?) Anyway, your tiresome labours are not over. Last time I tried, the borland make failed using pcmaker. But that was a long time ago. if it does fail. Wait a few days and I'm putting a Borland pcmaker type thing out. I'll post to the list when its available. JB From Dieter.Nuetzel at hamburg.de Sat Mar 17 22:29:52 2001 From: Dieter.Nuetzel at hamburg.de (Dieter =?iso-8859-1?q?N=FCtzel?=) Date: Sun, 18 Mar 2001 04:29:52 +0100 Subject: [vtkusers] CVS 18.03.2001: SaveImage2.h is missing Message-ID: <01031804295200.29221@SunWave1> Hello Will, SaveImage2.h is missing in ~vtk/graphics/examplesCxx. Cone.cxx need it, now? c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 -fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. -I/usr/X11R6/include -I./../../common -I./../../common/examplesCxx -I./.. -I../../common -I./../../imaging -c Cone.cxx -o Cone.o Cone.cxx:7: SaveImage2.h: Datei oder Verzeichnis nicht gefunden make: *** [Cone.o] Error 1 Regards, Dieter -- Dieter N?tzel Graduate Student, Computer Science University of Hamburg Department of Computer Science Cognitive Systems Group Vogt-K?lln-Stra?e 30 D-22527 Hamburg, Germany email: nuetzel at kogs.informatik.uni-hamburg.de @home: Dieter.Nuetzel at hamburg.de From karlson at stu.mech.titech.ac.jp Sun Mar 18 06:27:04 2001 From: karlson at stu.mech.titech.ac.jp (Kojekine Nikita) Date: Sun, 18 Mar 2001 13:27:04 +0200 Subject: [vtkusers] linux coredump Message-ID: <3AB49B88.DC2960E6@stu.mech.titech.ac.jp> Hello! I compiled VTK 3.2 on Linux 2.4.2ac11, XFree86 4.0.2, gcc 2.95.2, Mesa 3.3. But when I try to run any sample program with renderer - it makes segmentation fault, core dumped. how can i fix it? thank you From gte552m at prism.gatech.edu Sun Mar 18 01:14:03 2001 From: gte552m at prism.gatech.edu (David D. Marshall) Date: Sun, 18 Mar 2001 01:14:03 -0500 Subject: [vtkusers] reading from FORTRAN files References: <3AB250E4.E09D62F@ex.ac.uk> Message-ID: <3AB4522B.387CE959@prism.gatech.edu> FORTRAN unformatted file format works by putting a 4 byte (possibly integer) header in front of every data block. For instance the following code: INTEGER*4 I1, I2, I3 REAL*4 F WRITE(11) I1, I2, I3 WRITE(11) (F(N),N=1,3) Will result in the following data layout on 32-bit arch: byte:1---5----0----5----0----5----0-- data:HDR1[I1][I2][I3]HDR2[F1][F2][F3] I'm sure that the header information has some signifigance, but I never saw a pattern the few times I cared to look. As for the data types, the data should be written as a direct memcpy way, so a REAL*4 => float and REAL*8 => double. The last twist is the byte order of the machine running the FORTRAN code. You may need to do byte swapping (see VTK code for how to do the swapping). This is all the info that you should need, as this has been what has gotten me to read FORTRAN files from all kinds of hardware/OS combinations without problems. Gavin Tabor wrote: > > Hi. > > I'm trying to read in data from a FE file written by a FORTRAN code, > in order to visualise the data in VTK. The file contains integers > and floating point numbers in binary format. I've managed to read > in the integers OK, giving me an outline of the file (I can for > example read how many points there are in the mesh), but I cannot > work out how to read a binary FLOAT into an appropriate C variable. > If anyone can give me some clues on this I would be very appreciative. > > Gavin > > -- > > Dr. Gavin Tabor > School of Engineering and Computer Science > Department of Engineering > University of Exeter > > _______________________________________________ > 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 -- David D. Marshall ARTLab System Administrator/GRA Georgia Institute of Technology, Atlanta Georgia, 30332 http://www.ae.gatech.edu/research/artlab/artl/artlab.html mailto:gte552m at prism.gatech.edu think: Why anonymity is good, http://www.cato.org/pubs/briefs/bp-054es.html From seb-ml-vtk at barre.nom.fr Sun Mar 18 05:55:11 2001 From: seb-ml-vtk at barre.nom.fr (Sebastien BARRE) Date: Sun, 18 Mar 2001 11:55:11 +0100 Subject: [vtkusers] Re: Vtk, Python, compilation problems on Windows In-Reply-To: <4.3.2.7.2.20010317173709.00df8960@essaustin.com> References: <5.0.0.25.2.20010312222837.02c295c8@wheresmymailserver.com> <3AAD225D.8ADA9735@essaustin.com> <5.0.0.25.0.20010307184912.01e087d0@pop.fr.clara.net> Message-ID: <5.0.0.25.2.20010318114255.01bbde28@wheresmymailserver.com> At 17/03/2001 19:48, Julian Humphries wrote: >Ok, I thought I could deal with that. I decided to compile it myself, >despite having no recent C++ experience. Downloaded the Borland compiler, >Got the 3.2 source, ran the pcmaker.exe program, it asks if I want to build >Python, Does it ? >I do, I download Python 2.0 source, rerun pcmaker, it runs, I compile >vtk (mucho time), but it is successful, go to the Python directory, try >to make >that, but the make file says: > >### Not Implemented Yet > >Argh! Boy, this is tiring. The Borland Compiler is not as well supported as VC++ is in pcmaker. Really. You said "Downloaded the Borland compiler", so I guess you are using the free command-line package. I do not know if it is supported too. I do not think John Biddiscombe (our very own Borland guru) is using pcmaker, he will probably post his build-framework soon (we had a little discussion about that yesterday, and as soon as it's ready, you will find it in the mailing list, or here : http://www.barre.nom.fr/vtk/links-build-install.html). > Is there a way to get the vtk-Python package >working on WIndows with Python 2.0? Using the Microsoft VC++ (not free), or gcc (free). >P.S. Also, the link failed with the Borland turbo linker and the tcl >build (but >worked fine with the vtkdll.dll). An error about an invalid flag, anyone >had success >with that combo? As I told you before (did I ?), your nightmare is not over. Once you have selected the Borland Compiler, you will most of the time face the following problem : most precompiled binaries (Tcl, Python, etc.) are built using the Microsoft Compiler. Thus, you will have to translate these libraries to Borland format using implib (I hope it works better than the last time I tried), or re-compile from the sources. From dgobbi at irus.rri.on.ca Sun Mar 18 10:37:27 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sun, 18 Mar 2001 10:37:27 -0500 (EST) Subject: [vtkusers] Re: Vtk, Python, compilation problems on Windows In-Reply-To: <5.0.0.25.2.20010318114255.01bbde28@wheresmymailserver.com> Message-ID: On Sun, 18 Mar 2001, Sebastien BARRE wrote: > At 17/03/2001 19:48, Julian Humphries wrote: > > > Is there a way to get the vtk-Python package > >working on WIndows with Python 2.0? > > Using the Microsoft VC++ (not free), or gcc (free). Only Microsoft VC++ is supported. With gcc, you can build the main vtk libraries but not the wrappers. The makefiles require a lot of tweaking before the wrappers can be built with gcc (I've tried and given up). Also: you don't require the python source to build VTK under Windows (or any platform, for that matter). The python binary distribution will work just fine. The PCMaker label that says 'Where is Python (Source)' should be changed to simply say 'Where is Python'. - David From wlorens1 at nycap.rr.com Sun Mar 18 10:39:51 2001 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sun, 18 Mar 2001 10:39:51 -0500 Subject: [vtkusers] CVS 18.03.2001: SaveImage2.h is missing In-Reply-To: <01031804295200.29221@SunWave1> Message-ID: <4.2.2.20010318103823.01685f00@pop.nycap.rr.com> That was caused by a goof on my part. It's been repaired. Bill At 04:29 AM 3/18/01 +0100, Dieter N?tzel wrote: >Hello Will, > >SaveImage2.h is missing in ~vtk/graphics/examplesCxx. >Cone.cxx need it, now? > >c++ -O -mcpu=k6 -mpreferred-stack-boundary=2 -malign-functions=4 >-fschedule-insns2 -fexpensive-optimizations -fPIC -I. -I. >-I/usr/X11R6/include -I./../../common -I./../../common/examplesCxx -I./.. >-I../../common -I./../../imaging -c Cone.cxx -o Cone.o >Cone.cxx:7: SaveImage2.h: Datei oder Verzeichnis nicht gefunden >make: *** [Cone.o] Error 1 > >Regards, > Dieter > >-- >Dieter N?tzel >Graduate Student, Computer Science > >University of Hamburg >Department of Computer Science >Cognitive Systems Group >Vogt-K?lln-Stra?e 30 >D-22527 Hamburg, Germany > >email: nuetzel at kogs.informatik.uni-hamburg.de >@home: Dieter.Nuetzel at hamburg.de > >_______________________________________________ >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 jbiddiscombe at skippingmouse.co.uk Sun Mar 18 15:02:28 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sun, 18 Mar 2001 20:02:28 +0000 Subject: [vtkusers] Borland BvtkCxxWizard available Message-ID: <5.0.0.25.0.20010318195543.00ab8140@mail.btinternet.com> Borland users wanting to try out a makefile generator are invited to visit http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/index.htm and download project source (and binary) if need be. The links are bound to fail as this is my first attempt to publish a page with anything on it, so here are links just in case readme http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/readme.txt project source http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/BvtkCxxWizard_3.zip binary exe http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/BvtkCxxWizard_3_bin.zip Please give feedback. If it works or if it doesn't : I'd like to know (honest!) Thanks John B From prabhu at aero.iitm.ernet.in Sun Mar 18 22:22:14 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 19 Mar 2001 08:52:14 +0530 (IST) Subject: [vtkusers] linux coredump In-Reply-To: <3AB49B88.DC2960E6@stu.mech.titech.ac.jp> References: <3AB49B88.DC2960E6@stu.mech.titech.ac.jp> Message-ID: <15029.31590.862504.335463@monster.linux.in> hi, >>>>> "Kojekine" == Kojekine Nikita writes: Kojekine> Hello! I compiled VTK 3.2 on Linux 2.4.2ac11, XFree86 Kojekine> 4.0.2, gcc 2.95.2, Mesa 3.3. But when I try to run any Kojekine> sample program with renderer - it makes segmentation Kojekine> fault, core dumped. how can i fix it? thank you What sample program is this? If it is a c++ program, run it thru gdb and do a backtrace. If it is a Tcl program run $ gdb /vtk gdb> run tcl_script.tcl in case its a Python script $ gdb /python gdb> run python_script.py Hopefully you will get some information if you do this. prabhu From djn at elan.mad.adelaide.edu.au Mon Mar 19 02:49:56 2001 From: djn at elan.mad.adelaide.edu.au (David J. Netherway) Date: Mon, 19 Mar 2001 18:19:56 +1030 Subject: [vtkusers] vtkImage to Tk image References: <3AB49B88.DC2960E6@stu.mech.titech.ac.jp> <15029.31590.862504.335463@monster.linux.in> Message-ID: <3AB5BA24.2273ADC9@elan.mad.adelaide.edu.au> Hello, When running a tcl script how does one take the output of a vtkImage and make it a Tk image. At the moment I am writing out a tiff file and reading it back in using the vtkTiffWriter and "image create photo name -file filename.tif". A better method would be appreciated. Thanks, David From dehghani at medphys.ucl.ac.uk Mon Mar 19 11:31:27 2001 From: dehghani at medphys.ucl.ac.uk (Hamid Dehghani) Date: Mon, 19 Mar 2001 16:31:27 +0000 Subject: [vtkusers] 3D surface triangulations from a set of surface cloud points! Message-ID: <01031916343800.02824@borg-remus-pc> Hi all I am trying to generate a 3D surface triangulation from a set of 3D points from a surface (points generated for the skin layer from a set of MRI slices) All I have is just coordinates of my points! what is the best way of doing this using VTK? If anyone can help, I be grateful. Also if anyone wants to try generating triangulation from my points, let me know and I'll email you my data. Thanks Hamid Dehgahni _______________________________________________________ Hamid Dehghani PhD MIPEM Department of Medical Physics and Bioengineering University College London Shropshire House 11-20 Capper Street London WC1E 6JA Tel: 020 76 79 6404 Fax: 020 76 79 6269 email: dehghani at medphys.ucl.ac.uk URL : http://medphys.ucl.ac.uk/research/borg/index.htm ------------------------------------------------------- From sbissoo2 at hotmail.com Mon Mar 19 11:45:27 2001 From: sbissoo2 at hotmail.com (Shiva Bissoon) Date: Mon, 19 Mar 2001 16:45:27 -0000 Subject: [vtkusers] How to store data of cut actors ?? Message-ID: An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Mon Mar 19 18:06:40 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Mon, 19 Mar 2001 23:06:40 +0000 Subject: [vtkusers] errata : Borland BvtkCxxWizard available In-Reply-To: <5.0.0.25.0.20010318195543.00ab8140@mail.btinternet.com> Message-ID: <5.0.0.25.0.20010319230352.026cee18@mail.btinternet.com> Further to earlier post : The first link below has been updated to include the Borland VCL package files for anyone downloading the binary zip file who doesn't have the relevant dlls etc. This is most likely if you are using the command line compiler or a version of C++Builder earlier than 5. ttfn John B >Borland users wanting to try out a makefile generator are invited to visit > >http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/index.htm > >and download project source (and binary) if need be. > >The links are bound to fail as this is my first attempt to publish a page >with anything on it, so here are links just in case > >readme >http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/readme.txt >project source >http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/BvtkCxxWizard_3.zip >binary exe >http://www.skippingmouse.co.uk/vtk/BvtkCxxWizard/BvtkCxxWizard_3_bin.zip > >Please give feedback. If it works or if it doesn't : I'd like to know >(honest!) > >Thanks > >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 tarifa at rpi.edu Mon Mar 19 18:08:43 2001 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Mon, 19 Mar 2001 18:08:43 -0500 Subject: [vtkusers] Difference between vtkImageShrink3D and vtkImageResample Message-ID: <02f701c0b0c9$8b78f8d0$74d9a918@nycap.rr.com> Hi, What's the difference between vtkImageShrink3D and vtkImageResample? Asad __________________________________________________ / Asad A. Abu-Tarif \ | Computer Engineering. | | PhD Candidate, Rensselaer Polytechnic Institute (RPI). | | Research Assistant, NYS CAT, RPI | | tarifa at rpi.edu | \___________________________________________________/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.on.ca Mon Mar 19 18:28:37 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 19 Mar 2001 18:28:37 -0500 (EST) Subject: [vtkusers] Difference between vtkImageShrink3D and vtkImageResample In-Reply-To: <02f701c0b0c9$8b78f8d0$74d9a918@nycap.rr.com> Message-ID: On Mon, 19 Mar 2001, Asad A. Abu-Tarif wrote: > Hi, > What's the difference between vtkImageShrink3D and vtkImageResample? vtkImageShrink3D can do antialiasing, and can't be used to magnify images. vtkImageResample can be used to either magnify or shrink images, but cannot do antialiasing. Also, there is vtkImageReslice, which can be used to do the same sorts of things as vtkImageResample but which can provide additional operations such as cubic interpolation or image rotation. - David From whv88240 at Bayou.UH.EDU Tue Mar 20 03:04:12 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Tue, 20 Mar 2001 02:04:12 -0600 (CST) Subject: [vtkusers] transform and rotation Message-ID: Hello VTKers. I have a question about rendering with vtkVolumeRayCastIsosurfaceFunction. If vtkCamera::Azimuth() is used before rendering, where in the VTK library is the transform multiplication performed? Thank you, Wolfv. From audi2006 at singnet.com.sg Tue Mar 20 04:47:04 2001 From: audi2006 at singnet.com.sg (Audi) Date: Tue, 20 Mar 2001 17:47:04 +0800 Subject: [vtkusers] structured point to render few 2D Message-ID: <002501c0b122$b8f5e120$c7c615a5@audi> Hi, I used vtkStructuredPoints to render few 2D data to form 3D instead of using volume rendering. But I have problem to render it. This is the function for rendering few 2D files into 3D, can anybody find what is the problem with my function?I'm stuck. I hope somebody can help me to find it. 1. m_XDim,m_YDim are file dimensions 2. m_ZDim is the number of 2D files that has been read 3. Number is the counter to count how many files that has been read 4. m_XScale,m_YScale,m_ZScale are the file spacing My program is reading the 2D file one by one, every time reading one file it will store it into vtkStructuredPoints. I also check with the vtkVolumeReader, it seems correct, but my prog only can view 2D instead of 3D. It seems the storing part not succesful, but I can't find why, so anybody can find it? Thanks a lot, Audi BOOL CPointsVisualizationView::LoadRawDataMul(vtkStructuredPoints **StructuredPoints) { GetDocument()->Cleanup(); CWaitCursor *cursor; CString FileName; unsigned char *Image; unsigned short *Image2; int Number=1; bool ImageFlag=false; bool ImageFlag2=false; cursor=new CWaitCursor; CFileDialog filedialog(TRUE,"*.raw",NULL,NULL,"Raw Data File(*.raw) |*.raw||",NULL); if(filedialog.DoModal()==IDCANCEL) return FALSE; delete cursor; cursor=NULL; cursor=new CWaitCursor; FILE *fin; fin=fopen(filedialog.GetFileName(),"rb"); if(fin==NULL) { AfxMessageBox("I was not able to open the file..."); return FALSE; } FileName=filedialog.GetFileName(); CInfoDialog datainfo; if(datainfo.DoModal()==IDCANCEL) return FALSE; if((*StructuredPoints)!=NULL) { (*StructuredPoints)->Delete(); (*StructuredPoints)=NULL; } (*StructuredPoints)=vtkStructuredPoints::New(); if(datainfo.m_ByteCount==1) { (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_CHAR); Image=new unsigned char[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; ImageFlag=true; } else { (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_SHORT); Image2=new unsigned short[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; ImageFlag2=true; } (*StructuredPoints)->SetDimensions(datainfo.m_XDim,datainfo.m_YDim,datainfo.m_ZDim); (*StructuredPoints)->SetSpacing(datainfo.m_XScale,datainfo.m_YScale,datainfo.m_ZScale); (*StructuredPoints)->AllocateScalars(); while (Number!=datainfo.m_ZDim) { if(datainfo.m_ByteCount==1) { fread(Image,1,datainfo.m_XDim*datainfo.m_YDim,fin); fclose(fin); vtkScalars *scalars=(*StructuredPoints)->GetPointData()->GetScalars(); scalars->SetDataType(VTK_UNSIGNED_CHAR); scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); int i,j,k; for(k=Number-1;kInsertScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i,Image[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]); } } else { fread(Image2,2,datainfo.m_XDim*datainfo.m_YDim,fin); fclose(fin); vtkScalars *scalars=(*StructuredPoints)->GetPointData()->GetScalars(); scalars->SetDataType(VTK_UNSIGNED_SHORT); scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); int i,j,k; for(k=Number-1;kSetScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i,Image2[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]); } } if(filedialog.DoModal()==IDCANCEL) return FALSE; fin=fopen(filedialog.GetFileName(),"rb"); if(fin==NULL) { AfxMessageBox("I was not able to open the file..."); return FALSE; } Number=Number+1; } (*StructuredPoints)->Modified(); delete cursor; cursor=NULL; cursor=new CWaitCursor; if (ImageFlag==true) delete [] Image; if (ImageFlag2==true) delete [] Image2; cursor->Restore(); delete cursor; return TRUE; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From fabrice.vincent at creatis.insa-lyon.fr Tue Mar 20 05:18:42 2001 From: fabrice.vincent at creatis.insa-lyon.fr (Fabrice Vincent) Date: Tue, 20 Mar 2001 11:18:42 +0100 Subject: [vtkusers] 3D surface triangulations from a set of surface cloud points! References: <01031916343800.02824@borg-remus-pc> Message-ID: <3AB72E82.49ADCA23@creatis.insa-lyon.fr> Hi, You can use vtkSurfaceReconstructionFilter. Fabrice Hamid Dehghani wrote: > Hi all > I am trying to generate a 3D surface triangulation from a set of 3D points from > a surface (points generated for the skin layer from a set of MRI slices) > All I have is just coordinates of my points! > what is the best way of doing this using VTK? > If anyone can help, I be grateful. Also if anyone wants to try generating > triangulation from my points, let me know and I'll email you my data. > Thanks > Hamid Dehgahni > > _______________________________________________________ > Hamid Dehghani PhD MIPEM > Department of Medical Physics and Bioengineering > University College London > Shropshire House > 11-20 Capper Street > London > WC1E 6JA > Tel: 020 76 79 6404 > Fax: 020 76 79 6269 > email: dehghani at medphys.ucl.ac.uk > URL : http://medphys.ucl.ac.uk/research/borg/index.htm > ------------------------------------------------------- > > _______________________________________________ > 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 -- Fabrice VINCENT CREATIS (CNRS UMR 5515), INSA 502, 69621 Villeurbanne, FRANCE email: fabrice.vincent at creatis.insa-lyon.fr Tel. : 06 22 31 04 93 Fax : +33 (0)4 72 43 85 26 From sdexu at csd.uwo.ca Tue Mar 20 11:15:33 2001 From: sdexu at csd.uwo.ca (Dexu Sun) Date: Tue, 20 Mar 2001 11:15:33 -0500 (EST) Subject: [vtkusers] 3D images Message-ID: Hi, My project involves visualizing medical images from different devices such as CT, MRI and ultrosound as well as non-medical 3D images using VTK as a tool. I have several 3D images but need more for testing. Therefor, I wonder if you have any 3D image data for sharing or know some downloading web sites. Thanks lot. Dexu Sun From julian at essaustin.com Tue Mar 20 13:21:32 2001 From: julian at essaustin.com (Julian Humphries) Date: Tue, 20 Mar 2001 10:21:32 -0800 Subject: [vtkusers] Error message in 3.2 (InterceptCacheUpdate) Message-ID: Ok, I went out and got MS VC++, set up all of the vtk, python and tcl/tk source, ran pcmaker, compiled and got what seem to be working dll's. Reset my path to all of the new libs and dll's. I ran my python vtk program and I get this and similar messages for a number of classes: ERROR: In E:\vtk-src-windows\common\vtkImageSource.h, line 85 vtkImageReader (0x0369DC50): InterceptCacheUpdate was obsoleted for version "3.2" and will be removed in a future version I don't (to my knowledge) call InterceptCacheUpdate, in fact don't even call imagereader.Update(). A few other classes such as the Gaussian image smooth give similar messages. Did I screw up? or am I using an obsolete class? I am having a few other problems with lack of persistence of some global objects as well, so maybe I have some other hard to find problem. Any and all suggestions welcome. julian humphries university of texas From prabhu at aero.iitm.ernet.in Tue Mar 20 11:43:01 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 20 Mar 2001 22:13:01 +0530 (IST) Subject: [vtkusers] 3D images In-Reply-To: References: Message-ID: <15031.34965.444993.723112@monster.linux.in> hi, >>>>> "Dexu" == Dexu Sun writes: Dexu> My project involves visualizing medical images from Dexu> different devices such as CT, MRI and ultrosound as well as Dexu> non-medical 3D images using VTK as a tool. Dexu> I have several 3D images but need more for Dexu> testing. Therefor, I wonder if you have any 3D image data Dexu> for sharing or know some downloading web sites. Look here: http://www.kitware.com/vtkhtml/vtkdata/HowToGetSoftware.html There are links to data available there. prabhu From fladak at rri.on.ca Tue Mar 20 14:43:35 2001 From: fladak at rri.on.ca (fladak at rri.on.ca) Date: Tue, 20 Mar 2001 19:43:35 GMT Subject: [vtkusers] writing a TIFF file Message-ID: <200103201943.OAA05829@netmgr.rri.on.ca> I have read in an image from a VFF file. I have selected an area within the image and would like to write this selected area to a TIFF file. Can anyone suggest how I could do this? It seems that vtkTIFFWriter only deals with unsigned char input type. My vff file can be 8, 16, or 32 bit. Thanks. -Faruq --------------------------------------------- This message was sent using Endymion MailMan. http://www.endymion.com/products/mailman/ From zsolt at simbiosys.ca Tue Mar 20 15:17:38 2001 From: zsolt at simbiosys.ca (Zsolt Zsoldos) Date: Tue, 20 Mar 2001 15:17:38 -0500 Subject: [vtkusers] Is there a filter to convert float volume to unsigned int ? In-Reply-To: <200103201700.MAA22856@public.kitware.com> References: <200103201700.MAA22856@public.kitware.com> Message-ID: <01032015173800.06996@saturn.simbiosys.ca> Hi All, I would like to visualize a volume of floating point data using 2D texture mapping (vtkVolumeTextureMapper2D). This only supports unsigned integer data, either 8 or 16 bit. My data usually falls into a quite small range, e.g. between -5.2 and +9.9, but there are lots of variations. If I simply call SetDataTypeToUnsignedShort() on the scalar data, then it works but it is a simple 'casting' conversion, so I end up with integers between 0 and 10 and all fine (fractional) data differences disappear (as well as all negative values). I would like to apply a filter, which would map my floating data linearly to the full UnsignedShort range, e.g. in the above example -5.2 should map to 0 and +9.9 should map to 65535. Is there any filter, which could be applied to a volume to do such mapping (basicly a linear interpolation for each value in the volume) ? I know it is not a big deal, I could write one, but if there is already one that I do not know about, then why should I reinvent the wheel... Thanks a lot in advance, Zsolt -- Zsolt Zsoldos, zsolt at simbiosys.ca, http://www.simbiosys.ca/ From lisa.avila at kitware.com Tue Mar 20 15:30:31 2001 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Tue, 20 Mar 2001 15:30:31 -0500 Subject: [vtkusers] Is there a filter to convert float volume to unsigned int ? In-Reply-To: <01032015173800.06996@saturn.simbiosys.ca> References: <200103201700.MAA22856@public.kitware.com> <200103201700.MAA22856@public.kitware.com> Message-ID: <5.0.0.25.0.20010320152901.0212a350@pop.nycap.rr.com> Hello Zsolt, vtkImageShiftScale should do what you want. Set the shift value so that is moves your min scalar value to 0, set the scale so that the max scalar value (after being shifted) will become 65535. Then set the output scalar type to unsigned short. Lisa At 03:17 PM 3/20/2001, Zsolt Zsoldos wrote: >Hi All, > >I would like to visualize a volume of floating point data using 2D texture >mapping (vtkVolumeTextureMapper2D). This only supports unsigned integer data, >either 8 or 16 bit. My data usually falls into a quite small range, e.g. >between -5.2 and +9.9, but there are lots of variations. If I simply call >SetDataTypeToUnsignedShort() on the scalar data, then it works but >it is a simple 'casting' conversion, so I end up with integers between >0 and 10 and all fine (fractional) data differences disappear (as well as >all negative values). > >I would like to apply a filter, which would map my floating data linearly >to the full UnsignedShort range, e.g. in the above example -5.2 should map to >0 and +9.9 should map to 65535. > >Is there any filter, which could be applied to a volume to do such mapping >(basicly a linear interpolation for each value in the volume) ? > >I know it is not a big deal, I could write one, but if there is already one >that I do not know about, then why should I reinvent the wheel... > >Thanks a lot in advance, >Zsolt > >-- >Zsolt Zsoldos, zsolt at simbiosys.ca, http://www.simbiosys.ca/ > >_______________________________________________ >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 jmlg at lehigh.edu Tue Mar 20 15:39:45 2001 From: jmlg at lehigh.edu (John M. Linebarger) Date: Tue, 20 Mar 2001 15:39:45 -0500 Subject: [vtkusers] How to compile VTK 3.2 using Mesa on Win32? Message-ID: <3AB7C011.9A0469B2@lehigh.edu> How would I alter the makefile created by pcmaker so that I use Mesa instead of the Win32 OpenGL headers and libraries? I need off-screen rendering capability on Windows 2000, and don't seem to be able to get a vtkMesaRenderWindow class unless I explicitly compile vtk using Mesa. But I don't seem to be able to customize the makefile and configure VTK to build properly with Mesa. I did get Mesa 3.4.1 to build and execute properly on Windows 2000, so that's a good first step. Or is there another way altogether to get off-screen rendering to work? What I want is a pure windowless graphics server, which will run in the background as a DCOM component service and serve JPEG images without ever needing to pop up a window on the screen. Thanks! Enjoy! John M. Linebarger Lehigh University/Sandia National Laboratories -------------- next part -------------- A non-text attachment was scrubbed... Name: jmlg.vcf Type: text/x-vcard Size: 211 bytes Desc: Card for John M. Linebarger URL: From lisa.avila at kitware.com Tue Mar 20 17:00:03 2001 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Tue, 20 Mar 2001 17:00:03 -0500 Subject: [vtkusers] How to compile VTK 3.2 using Mesa on Win32? In-Reply-To: <3AB7C011.9A0469B2@lehigh.edu> Message-ID: <5.0.0.25.0.20010320165810.033d3e60@pop.nycap.rr.com> Hello John, You don't need Mesa - you can render into memory with OpenGL on Win32. Look at vtkWin32OpenGLRenderWindow::SetUpMemoryRendering() and vtkWin32OpenGLRenderWindow::ResumeScreenRendering(). Lisa At 03:39 PM 3/20/2001, John M. Linebarger wrote: >How would I alter the makefile created by pcmaker so that I use Mesa >instead of >the Win32 OpenGL headers and libraries? I need off-screen rendering >capability >on Windows 2000, and don't seem to be able to get a vtkMesaRenderWindow class >unless I explicitly compile vtk using Mesa. But I don't seem to be able to >customize the makefile and configure VTK to build properly with Mesa. > >I did get Mesa 3.4.1 to build and execute properly on Windows 2000, so >that's a >good first step. Or is there another way altogether to get off-screen >rendering >to work? What I want is a pure windowless graphics server, which will run in >the background as a DCOM component service and serve JPEG images without ever >needing to pop up a window on the screen. > >Thanks! Enjoy! > >John M. Linebarger >Lehigh University/Sandia National Laboratories > From guimond at bwh.harvard.edu Tue Mar 20 18:58:32 2001 From: guimond at bwh.harvard.edu (Alexandre Guimond) Date: 20 Mar 2001 18:58:32 -0500 Subject: [vtkusers] automatic update of objects generating a vtkAbstractTransform Message-ID: Hi all. I build a little object that does image registration and outputs a vtkAbstractTransform. It is derived from vtkProcessObject. The problem I have is that when I want use the resulting transformation, for example with vtkImageReslice, I have to call RegistrationObject->Update() explicitly since there is no automatic update mechanism for vtkAbstractTransform such as there is for vtkDataObject, or at least none that I know of. Is there a simple way of implementing this sort of thing in vtk, or would I have to through and develop the same type of update process that exists with vtkSource/vtkDataObject? thx for the info. -- Alexandre Guimond, Ph.D. guimond at bwh.harvard.edu Phone:(617) 278-0800 http://spl.bwh.harvard.edu:8000/~guimond/ Fax:(617) 264-5154 Brigham and Women's Hospital, Harvard Medical School CNI, RF396, 221 Longwood Av, Boston, MA 02115 From krs at zappa.uncc.edu Tue Mar 20 19:01:07 2001 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Tue, 20 Mar 2001 19:01:07 -0500 Subject: [vtkusers] vtkLookupTable.. Message-ID: <3AB7EF43.309EF977@mail.cs.uncc.edu> Are the methods SetColor() and GetColor() still part of this class? I looked in the header file, but dont seem to find it (in response to my compile error -:) ) I am setting up a simple rainbow type color table, and I just need to retrieve colors (rgb) for a given scalar value, without having to compute the index myself. Set/GetColor() is the right function to do that. Thanks. -- krs -- K.R.Subramanian Phone: (704) 687-4872 Department of Computer Science FAX: (704) 687-4893 UNC Charlotte, CARC 311 Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 Web: http://www.cs.uncc.edu/~krs From dgobbi at irus.rri.on.ca Tue Mar 20 20:24:15 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Tue, 20 Mar 2001 20:24:15 -0500 (EST) Subject: [vtkusers] automatic update of objects generating a vtkAbstractTransform In-Reply-To: Message-ID: Hi Alexandre, There is an automatic update mechanism for vtkAbstractTransform. Any time you call transform->TransformPoint() or any similar method, the Update() method of the transform is automatically called. It is written out clearly in the header file: ---- void TransformPoint(const float in[3], float out[3]) { this->Update(); this->InternalTransformPoint(in,out); }; ---- Classes such as vtkImageReslice or vtkTransformPolyDataFilter will usually call transform->Update() at the beginning of every Execute() cycle and then call transform->InternalTransformPoint() for each transformed point (transform->InternalTransformPoint is identical to transform->TransformPoint except for the lack of Update). - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On 20 Mar 2001, Alexandre Guimond wrote: > Hi all. I build a little object that does image registration and > outputs a vtkAbstractTransform. It is derived from vtkProcessObject. > The problem I have is that when I want use the resulting > transformation, for example with vtkImageReslice, I have to call > RegistrationObject->Update() explicitly since there is no automatic > update mechanism for vtkAbstractTransform such as there is for > vtkDataObject, or at least none that I know of. Is there a simple way > of implementing this sort of thing in vtk, or would I have to through > and develop the same type of update process that exists with > vtkSource/vtkDataObject? > > thx for the info. > From mrfx at 263.net Tue Mar 20 21:07:02 2001 From: mrfx at 263.net (mrfx) Date: Wed, 21 Mar 2001 10:07:02 +0800 Subject: [vtkusers] Where to download the lastest vtk3.2? Message-ID: <003001c0b1ab$9f7ac100$1500a8c0@gis1> Hi, VTK 3.2 had released, but in the vtk ftp site, the vtk32-src-windows.zip was updated only at Feb 1. Where to download the lastest vtk3.2? mrfx -------------- next part -------------- An HTML attachment was scrubbed... URL: From shock8 at donguri.sakura.ne.jp Wed Mar 21 04:47:23 2001 From: shock8 at donguri.sakura.ne.jp (shock8) Date: Wed, 21 Mar 2001 18:47:23 +0900 Subject: [vtkusers] announce: vtk for FOX-GUI is now available Message-ID: <005e01c0b1eb$ee44efa0$7a01a8c0@tshock.h7.dion.ne.jp> hi vtk folks now vtk is available with another GUI-toolkit FOX(http://foxgui.sourceforge.net/) take a look at my web page http://donguri.sakura.ne.jp/~shock8/fox/fox_vtk/ i hope this help someone regards shock8 From audi2006 at singnet.com.sg Wed Mar 21 05:56:52 2001 From: audi2006 at singnet.com.sg (Audi) Date: Wed, 21 Mar 2001 18:56:52 +0800 Subject: [vtkusers] render 2D files into 3D Message-ID: <001301c0b1f5$a6c4e7c0$22be15a5@audi> Hi, Anybody can help me now?(because I need this urgently) I used vtkStructuredPoints to render few 2D data to form 3D instead of using volume rendering. But I have problem to render it. This is the function for rendering few 2D files into 3D,=20 can anybody find what is the problem with my function?I'm stuck. I hope somebody can help me to find it. 1. m_XDim,m_YDim are file dimensions 2. m_ZDim is the number of 2D files that has been read 3. Number is the counter to count how many files that has been read 4. m_XScale,m_YScale,m_ZScale are the file spacing My program is reading the 2D file one by one, every time reading one = file it will store it into vtkStructuredPoints. I also check with the = vtkVolumeReader, it seems correct, but my prog only can view 2D instead of 3D. It seems the = storing part not succesful, but I can't find why, so anybody can find it? Thanks a lot, Audi BOOL CPointsVisualizationView::LoadRawDataMul(vtkStructuredPoints = **StructuredPoints)=20 {=20 GetDocument()->Cleanup(); CWaitCursor *cursor; CString FileName; unsigned char *Image; unsigned short *Image2; int Number=3D1; bool ImageFlag=3Dfalse; bool ImageFlag2=3Dfalse; =20 cursor=3Dnew CWaitCursor;=20 CFileDialog filedialog(TRUE,"*.raw",NULL,NULL,"Raw Data File(*.raw) = |*.raw||",NULL); =20 if(filedialog.DoModal()=3D=3DIDCANCEL) return FALSE; =20 delete cursor; cursor=3DNULL; cursor=3Dnew CWaitCursor; =20 FILE *fin; =20 fin=3Dfopen(filedialog.GetFileName(),"rb"); =20 if(fin=3D=3DNULL) { AfxMessageBox("I was not able to open the file..."); return FALSE; } FileName=3Dfiledialog.GetFileName(); CInfoDialog datainfo; if(datainfo.DoModal()=3D=3DIDCANCEL) return FALSE; if((*StructuredPoints)!=3DNULL) { (*StructuredPoints)->Delete(); (*StructuredPoints)=3DNULL; } =20 (*StructuredPoints)=3DvtkStructuredPoints::New(); =20 if(datainfo.m_ByteCount=3D=3D1) { (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_CHAR); Image=3Dnew unsigned = char[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; ImageFlag=3Dtrue; } else { (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_SHORT); Image2=3Dnew unsigned = short[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; ImageFlag2=3Dtrue; } =20 = (*StructuredPoints)->SetDimensions(datainfo.m_XDim,datainfo.m_YDim,datain= fo.m_ZDim); = (*StructuredPoints)->SetSpacing(datainfo.m_XScale,datainfo.m_YScale,datai= nfo.m_ZScale); (*StructuredPoints)->AllocateScalars(); while (Number!=3Ddatainfo.m_ZDim) { if(datainfo.m_ByteCount=3D=3D1) {=20 fread(Image,1,datainfo.m_XDim*datainfo.m_YDim,fin); fclose(fin); =20 vtkScalars = *scalars=3D(*StructuredPoints)->GetPointData()->GetScalars(); scalars->SetDataType(VTK_UNSIGNED_CHAR); scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); int i,j,k; for(k=3DNumber-1;kInsertScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_X= Dim)+i,Image[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]);= } } else { =20 fread(Image2,2,datainfo.m_XDim*datainfo.m_YDim,fin); fclose(fin); vtkScalars = *scalars=3D(*StructuredPoints)->GetPointData()->GetScalars(); scalars->SetDataType(VTK_UNSIGNED_SHORT); scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); =20 int i,j,k; for(k=3DNumber-1;kSetScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim= )+i,Image2[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]); } } =20 if(filedialog.DoModal()=3D=3DIDCANCEL) return FALSE; fin=3Dfopen(filedialog.GetFileName(),"rb"); =20 if(fin=3D=3DNULL) { AfxMessageBox("I was not able to open the file..."); return FALSE; } =20 Number=3DNumber+1; } (*StructuredPoints)->Modified(); delete cursor; cursor=3DNULL; cursor=3Dnew CWaitCursor; =20 if (ImageFlag=3D=3Dtrue) delete [] Image; if (ImageFlag2=3D=3Dtrue) delete [] Image2; =20 cursor->Restore(); delete cursor; =20 return TRUE; } ------=_NextPart_000_0022_01C0B165 From guimond at bwh.harvard.edu Wed Mar 21 11:02:58 2001 From: guimond at bwh.harvard.edu (Alexandre Guimond) Date: 21 Mar 2001 11:02:58 -0500 Subject: [vtkusers] Re: automatic update of objects generating a vtkAbstractTransform References: Message-ID: On Tue, 20 Mar 2001 20:24:15 -0500 (EST) David Gobbi writes: > Hi Alexandre, > > There is an automatic update mechanism for vtkAbstractTransform. > Any time you call transform->TransformPoint() or any similar > method, the Update() method of the transform is automatically called. Hi David. Thx for the reply. I had noticed this update mechanism with vtkAbstractTransform. I guess I didn't make myself clear enough, or I'm not getting the process right. What I meant is that calling the transform::Update() function doesn't update the object that generated the transform. For example, here is a stripped down version of my stuff ----- vtkStructuredPointsReader* TargetReader = vtkStructuredPointsReader::New(); vtkStructuredPointsReader* SourceReader = vtkStructuredPointsReader::New(); TargetReader->SetFileName(argv[1]); SourceReader->SetFileName(argv[2]); vtkImageRegistration* Registration = vtkImageRegistration::New(); Registration->SetInput1(TargetReader->GetOutput()); Registration->SetInput2(SourceReader->GetOutput()); vtkTransformWriter* Writer = vtkTransformWriter::New(); Writer->SetFileName(argv[3]); Writer->SetTransform(Registration->GetTransform()); Writer->Write(); ----- vtkTransformWriter::Write calls Update on the transform before writing it. This transform is in Registration and is obtained calling Registration->GetTransform(). The problem is that vtkTransform::Update() doesn't call Registration::Update(), hence the transform written is the Identity. To make it work, I have to call Registration->Update() before writing, not that this is a big problem. I'm just wondering if there is a way to do this automitically as with vtkDataObject. Hence my question: is there a way for vtkTransform to call the update function of the object that generates it? thx. -- Alexandre Guimond, Ph.D. guimond at bwh.harvard.edu Phone:(617) 278-0800 http://spl.bwh.harvard.edu:8000/~guimond/ Fax:(617) 264-5154 Brigham and Women's Hospital, Harvard Medical School CNI, RF396, 221 Longwood Av, Boston, MA 02115 From dgobbi at irus.rri.on.ca Wed Mar 21 11:44:00 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 21 Mar 2001 11:44:00 -0500 (EST) Subject: [vtkusers] Re: automatic update of objects generating a vtkAbstractTransform In-Reply-To: Message-ID: On 21 Mar 2001, Alexandre Guimond wrote: > On Tue, 20 Mar 2001 20:24:15 -0500 (EST) > David Gobbi writes: > > > Hi Alexandre, > > > > There is an automatic update mechanism for vtkAbstractTransform. > > Any time you call transform->TransformPoint() or any similar > > method, the Update() method of the transform is automatically called. > > Hi David. Thx for the reply. I had noticed this update mechanism > with vtkAbstractTransform. I guess I didn't make myself clear > enough, or I'm not getting the process right. What I meant is that > calling the transform::Update() function doesn't update the object > that generated the transform. [...] Ah, I understand. No, a transform does not have a 'source.' I'll have to think about this... it might be worthwhile to make vtkAbstractTransform a subclass of vtkDataObject, but I'm reluctant to do this because most of the methods/attributes of vtkDataObject are irrelevant to transforms. On the other hand, the concept of 'UpdateExtent' does make sense for nonlinear transformations. Hmm. My suggestion is that, for now, you add GetSource()/SetSource() methods to vtkAbstractTransform.h and add this patch to vtkAbstractTransform.cxx: //---------------------------------------------------------------------------- void vtkAbstractTransform::Update() { // locking is require to ensure that the class is thread-safe this->UpdateMutex->Lock(); ! if (this->Source != NULL) ! { ! this->Source->Update(); ! } and then ensure that when 'Update' is called on your Registration class, the transformation is updated. If this sort of thing works for you, I'll add this mechanism to the repository. - David From tornow at techinfo.rwth-aachen.de Wed Mar 21 12:16:50 2001 From: tornow at techinfo.rwth-aachen.de (Ruediger Tornow) Date: Wed, 21 Mar 2001 18:16:50 +0100 Subject: [vtkusers] Wrong Coordinates from vtkPolyData::GetPoint? References: <200102141700.MAA01568@public.kitware.com> Message-ID: <3AB8E202.87974B26@techinfo.rwth-aachen.de> Hi there, I am encountering a strange behaviour concerning the return values of vtkPolyData::GetPoint. While accessing the data created from a vtkCubeSource or a vtkSphereSource, the coordinates returned are centered to the global center (0,0,0), even if the center of the original Cube/Sphere is positioned e.g. at (2,2,2). Even the GetCenter() method returns a (0,0,0). Is this a bug in GetPoint, or do I have to do some coordinate transformation first? If so, where do I get the additional information for that transformation? The scenario is as follows: - I used the vtkVRMLImporter to import some data. - Data is accessed using vtkVRMLImporter->GetRenderer()->GetActorCollection()-> GetNextItem()->GetMapper()->GetInput() If anyone knows a better way to access the Polygonal data from the vtkVRMLImporter, please let me know. As far as I can see it, the Importer does not provide functions for direct access to the imported data. Ruediger From faulhabe at ipf.uni-karlsruhe.de Wed Mar 21 12:23:13 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Wed, 21 Mar 2001 18:23:13 +0100 Subject: [vtkusers] searching in the archive Message-ID: <3AB8E381.37CA9837@ipf.uni-karlsruhe.de> Hi, is there ANY possibility to search for more than one word in the archive? For example (only an example, I don't need that) if I wanted to find messages about saving camera properties I would look for "camera" and "save". I tried everything I could think of (using AND or + etc.) ... Maybe I'm only blind ... Thanks a lot, Karin From gummadi.sreenivas at Mentisys.com Wed Mar 21 12:21:37 2001 From: gummadi.sreenivas at Mentisys.com (Gummadi Sreenivas) Date: Wed, 21 Mar 2001 12:21:37 -0500 Subject: [vtkusers] Teaching VTK with TCL/TK Message-ID: <09D1BF315997D4119AC000B0D03D8D7F013E44@ATNTS-EXCHANGE> If you have decided on TCL to script VTK (and not python, which (IMHO) is a better teaching language): For computer scientists this online TCL tutorial is short and sweet: http://www.arsdigita.com/books/tcl/ Here is an excerpt from its preface: "...We hope that a professional programmer or MIT student can breeze through it in one evening. By the end of the evening, that person should have learned Tcl, learned a little something about the Web, and not have been bored. It is available on the Web at a permanent URL. If you don't like it, the authors will happily refund your purchase price. :-)" > -----Original Message----- > From: Kent Eschenberg, Ph.D. [mailto:kee at erdc.hpc.mil] > Sent: Thursday, March 15, 2001 1:30 PM > To: VTK > Subject: [vtkusers] Teaching VTK with TCL/TK > > > Dear VTKers, > > I'm teaching a course for computer science graduate students > this summer on > the subject of scientific visualization. We'll be using VTK > (both TCL/TK and > C++ flavors) on PCs for projects and there will be 48 hours > for lecture > and/or labs. > > Any suggestions for course materials? If I use a set of notes (html, > Powerpoint, Word, ..., crayon) I'd be happy to pass back any > additions. > > Any suggestions for books? I have the two from Kitware, but am still > searching for a good intro to TCL/TK for the class and > myself. I've only > used the C++ approach at work since I tend towards really > large datasets. > > Any further suggestions would be welcome. It would probably > be a good idea > to communicate directly to save the VTK world from these > slightly off-topic > messages. > > Kent Eschenberg kee at erdc.hpc.mil > ERDC MSRC (DoD supercomputer center), Vicksburg, MS > > > _______________________________________________ > 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 frog at creatis.insa-lyon.fr Wed Mar 21 12:28:46 2001 From: frog at creatis.insa-lyon.fr (Eric Boix) Date: Wed, 21 Mar 2001 18:28:46 +0100 Subject: [vtkusers] Email archive possibly broken ? Message-ID: <20010321182846.F8202@tux.creatis.insa-lyon.fr> Dear vtk users, It looks like the vtkusers email archives of the current month could be damaged (all kind of sorting date, subject, author and thread) : see http://public.kitware.com/pipermail/vtkusers/2001-March/date.html#start The page stops after the post of Miguel E. Puig Garc[something screwy]Da with subject "Problem with BCBvtkRenderWindow" : see wget log below. In the meantime I cannot access the usefull links posted by vtkusers. Am I the only one experiencing this trouble ? If not, could anybody please fix that ? Please... Yours. Eric Boix Research and Applications Center for Image and Signal Processing http://www.creatis.insa-lyon.fr/ ---------- > wget --cache=off --proxy=off --output-document=- > http://public.kitware.com/pipermail/vtkusers/2001-March/date.html | tail -5 > --17:16:29-- > http://public.kitware.com:80/pipermail/vtkusers/2001-March/date.html > => `-' > Connecting to public.kitware.com:80... connected! > HTTP request sent, awaiting response... 200 OK > Length: 12,288 [text/html] > > 0K -> .......... .. [100%] > > 17:16:33 (3.86 KB/s) - `-' saved [12288/12288] > >
  • [vtkusers] RE: [wxPython] VTK + wxPython flicker > issue on Linux/GTK. Prabhu Ramachandran >
  • [vtkusers] RE: [wxPython] VTK + wxPython flicker > issue on Linux/GTK. Prabhu Ramachandran >
  • [vtkusers] Re: vtkusers -- confirmation of > subscription -- request 118723 Kostas Bobolas >
  • [vtkusers] Problem with BCBvtkRenderWindow NAME="5877">=?iso-8859-1?Q?Miguel_E._Puig_Garc=EDa?= >
  • [ From frog at creatis.insa-lyon.fr Wed Mar 21 13:39:57 2001 From: frog at creatis.insa-lyon.fr (Eric Boix) Date: Wed, 21 Mar 2001 19:39:57 +0100 Subject: [vtkusers] vtkRenderWindow within wxPython (wxVTKRenderWindow by Robin Dunn) Message-ID: <20010321193957.L8202@tux.creatis.insa-lyon.fr> Dear VTK (and wxPython) users, I'm trying to adapt David Gobbi's $VTK/python/vtkRenderWidget.py to wxPython. I pulled Robin Dunn's "plugin" wxVTKRenderWindow (from http://download.sourceforge.net/wxpython/wxPython-demo-2.2.5.tar.gz i.e. the official demos of wxPython). This works fine when calling it within a wxFrame e.g. : frame = wxFrame(None, -1, "vtkwxRenderWidget Test", size=(550,400)) vtkWxRender = wxVTKRenderWindow(frame) The vtkRenderWindow lies nicely inside the X11 window containing the wxFrame. But (there is a but) this fails when calling it within a wxPanel e.g. frame = wxFrame(None, -1, "vtkwxRenderWidget Test", size=(550,400)) panel = wxPanel(frame, -1) vtkWxRender = wxVTKRenderWindow(panel) The vtkRenderWindow then lives within a new X11 window (different from the X11 window containing the wxFrame) ! Of course :-) I need more than one vtkRenderWindow inside my wxFrame. Who can be satisfied with a single renderer when one can have many ? :-) Could it be that wxVTKRenderWINDOW is really different from wxVTKRenderWIDGET (Tk terminology) meaning I can only have a single instance within each wxFrame ?(apparently wxVTKRenderWindow is based on a call to vtk's vtk[X-Win32OpenGL]RenderWindow::SetWindowInfo. Is this the source of the limitation ?) Any kind of help truly appreciated. Yours, Eric Boix -------------- Research and Applications Center for Image and Signal Processing http://www.creatis.insa-lyon.fr/ From jordi.inglada at cnes.fr Wed Mar 21 13:49:38 2001 From: jordi.inglada at cnes.fr (Jordi Inglada) Date: Wed, 21 Mar 2001 19:49:38 +0100 Subject: [vtkusers] Color compositions Message-ID: <01032119493800.14582@pruneta.home.fr> Hi all, Is there an easy way to create an RGB (and/or HSV) image from 3 grey-scale images? By now, I have done this: sum2 = vtkImageMathematics::New(); sum1 = vtkImageMathematics::New(); R = vtkImageConstantPad::New(); G = vtkImageExtractComponents::New(); B = vtkImageExtractComponents::New(); R->SetInput(input1); R->SetOutputNumberOfScalarComponents(3); R->SetConstant(0); vtkImageConstantPad* padG = vtkImageConstantPad::New(); padG->SetInput(input2); padG->SetOutputNumberOfScalarComponents(3); padG->SetConstant(0); G->SetInput(padG->GetOutput()); G->SetComponents(1,0,2); vtkImageConstantPad* padB = vtkImageConstantPad::New(); padB->SetInput(input3); padB->SetOutputNumberOfScalarComponents(3); padB->SetConstant(0); B->SetInput(padB->GetOutput()); B->SetComponents(1,2,0); sum1->SetInput2(G->GetOutput()); sum1->SetOperationToAdd(); sum2->SetInput1(sum1->GetOutput()); sum2->SetInput2(B->GetOutput()); sum2->SetOperationToAdd(); return sum2->GetOutput(); But I guess there must be an easier way. I have found the classes vtkImageRGBToHSV and its inverse, but my problem is building a 3-channel image from 3 1-channel images. From there I can use these classes for colorspace transformations. Thanks. -- Jordi Inglada CNES - Centre Spatial de Toulouse DSO/OT/QTIS/SR - BPI 811 18, avenue Edouard Belin 31401 Toulouse Cedex 04 - France Tel. +33.(0)5.61.27.33.97 - Fax. +33.(0)5.61.28.31.09 GSM: +33.(0)6.89.32.92.94 From jbiddiscombe at skippingmouse.co.uk Wed Mar 21 13:53:07 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 21 Mar 2001 18:53:07 +0000 Subject: [vtkusers] Color compositions In-Reply-To: <01032119493800.14582@pruneta.home.fr> Message-ID: <5.0.0.25.0.20010321185215.0272dbf0@mail.btinternet.com> see docs... vtkImageAppendComponents takes the components from two inputs and merges them into one output. If Input1 has M components, and Input2 has N components, the output will have M+N components with input1 components coming first. JB (Use two of them!) At 18:49 21/03/2001, Jordi Inglada wrote: >Hi all, > >Is there an easy way to create an RGB (and/or HSV) image from 3 grey-scale >images? > >By now, I have done this: > > sum2 = vtkImageMathematics::New(); > sum1 = vtkImageMathematics::New(); > R = vtkImageConstantPad::New(); > G = vtkImageExtractComponents::New(); > B = vtkImageExtractComponents::New(); > > > R->SetInput(input1); > R->SetOutputNumberOfScalarComponents(3); > R->SetConstant(0); > > vtkImageConstantPad* padG = vtkImageConstantPad::New(); > padG->SetInput(input2); > padG->SetOutputNumberOfScalarComponents(3); > padG->SetConstant(0); > > > G->SetInput(padG->GetOutput()); > G->SetComponents(1,0,2); > > > vtkImageConstantPad* padB = vtkImageConstantPad::New(); > padB->SetInput(input3); > padB->SetOutputNumberOfScalarComponents(3); > padB->SetConstant(0); > > > B->SetInput(padB->GetOutput()); > B->SetComponents(1,2,0); > > sum1->SetInput2(G->GetOutput()); > sum1->SetOperationToAdd(); > > sum2->SetInput1(sum1->GetOutput()); > sum2->SetInput2(B->GetOutput()); > sum2->SetOperationToAdd(); > > return sum2->GetOutput(); > >But I guess there must be an easier way. I have found the classes >vtkImageRGBToHSV and its inverse, but my problem is building a 3-channel >image from 3 1-channel images. From there I can use these classes for >colorspace transformations. > >Thanks. > >-- >Jordi Inglada >CNES - Centre Spatial de Toulouse >DSO/OT/QTIS/SR - BPI 811 >18, avenue Edouard Belin >31401 Toulouse Cedex 04 - France >Tel. +33.(0)5.61.27.33.97 - Fax. +33.(0)5.61.28.31.09 >GSM: +33.(0)6.89.32.92.94 > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From jbiddiscombe at skippingmouse.co.uk Wed Mar 21 13:50:56 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 21 Mar 2001 18:50:56 +0000 Subject: [vtkusers] Wrong Coordinates from vtkPolyData::GetPoint? In-Reply-To: <3AB8E202.87974B26@techinfo.rwth-aachen.de> References: <200102141700.MAA01568@public.kitware.com> Message-ID: <5.0.0.25.0.20010321184802.02723920@mail.btinternet.com> >- Data is accessed using > vtkVRMLImporter->GetRenderer()->GetActorCollection()-> > GetNextItem()->GetMapper()->GetInput() I've not tried this, but it's highly likely that the vrml importer is creating objects centred at the origin, and then using the transformation properties of the actor (see user matrix and matrix), check GetPosition etc etc. By saying Actor->SetPosition(Somewhere unexpected). You'd get polydata centred on zero, but appearing elsewhere. ttfn JB From prabhu at aero.iitm.ernet.in Wed Mar 21 15:11:29 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 22 Mar 2001 01:41:29 +0530 (IST) Subject: [vtkusers] vtkRenderWindow within wxPython (wxVTKRenderWindow by Robin Dunn) In-Reply-To: <20010321193957.L8202@tux.creatis.insa-lyon.fr> References: <20010321193957.L8202@tux.creatis.insa-lyon.fr> Message-ID: <15033.2801.158172.644518@monster.linux.in> hi, >>>>> "Eric" == Eric Boix writes: Eric> Dear VTK (and wxPython) users, I'm trying to adapt Eric> David Gobbi's $VTK/python/vtkRenderWidget.py to wxPython. I Eric> pulled Robin Dunn's "plugin" wxVTKRenderWindow (from Eric> http://download.sourceforge.net/wxpython/wxPython-demo-2.2.5.tar.gz Eric> i.e. the official demos of wxPython). If you can wait - dont bother doing this yet. I already spent quite some time doing just this (adapting vtkRenderWidget.py to wxPython). It works under linux and Sebastien Barre is testing it under windows. I will let you know once it is finished. I will also send this to Robin Dunn for inclusion with wxPython. If you want I can mail you this. I dont know if it works on windows... Eric> This works fine when calling it within a wxFrame e.g. : Eric> frame = wxFrame(None, -1, "vtkwxRenderWidget Test", Eric> size=(550,400)) vtkWxRender = wxVTKRenderWindow(frame) The Eric> vtkRenderWindow lies nicely inside the X11 window containing Eric> the wxFrame. Eric> But (there is a but) this fails when calling it within a Eric> wxPanel e.g. frame = wxFrame(None, -1, "vtkwxRenderWidget Eric> Test", size=(550,400)) panel = wxPanel(frame, -1) Eric> vtkWxRender = wxVTKRenderWindow(panel) The vtkRenderWindow Eric> then lives within a new X11 window (different from the X11 Eric> window containing the wxFrame) ! I am no wxPython expert but here is some info from the wx docs A panel is a window on which controls are placed. It is usually placed within a frame. It contains minimal extra functionality over and above its parent class wxWindow; its main purpose is to be similar in appearance and functionality to a dialog, but with the flexibility of having any window as a parent. So maybe you are using the wrong widget. Eric> Of course :-) I need more than one vtkRenderWindow inside my Eric> wxFrame. Who can be satisfied with a single renderer when Eric> one can have many ? :-) Try code like this instead - it should work (this is taken straight from one of my test programs): frame = wxFrame (NULL, -1, "wxVTKRenderWindow Demo!", size=(600,400)) nb = wxNotebook (frame, -1) # The wxVTKRenderWindow wxvtk = wxVTKRenderWindow (nb, -1) nb.AddPage (wxvtk, "wxVTKRenderWindow") self.SetupVTK (wxvtk) nb.Refresh () # do your vtk stuff here # add other notebook widgets if you want. Of course, you can create more notebook pages with other wxVTKRenderWindows. I even have a working MDIDemo test program that creates mutliple MDI frames with vtkRenderWindows embedded. If you want I can mail you the code. Let me know. It may still have bugs with Windows but works perfectly under linux. Hope this helps. prabhu From msyal at vt.edu Thu Mar 22 06:28:45 2001 From: msyal at vt.edu (Manan Syal) Date: Thu, 22 Mar 2001 06:28:45 -0500 Subject: [vtkusers] isosurfaces..?? Message-ID: <3AB9E1ED.8553FC55@vt.edu> Hello all... what algorithm does vtk implement in order to extract isosurfaces and render them ? is marching cubes the algorithm used? if so, isn't it true that this algorithm is not the most optimal, and there have been many other algorithms that have been proposed to reduce the computational complexities associated with isosurface extraction? Please tell me what algorithm is used by vtk for this purpose, and also how optimum have u found using it? Thank you in advance, Manan Syal. From will.schroeder at kitware.com Thu Mar 22 10:34:59 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 22 Mar 2001 10:34:59 -0500 Subject: [vtkusers] isosurfaces..?? In-Reply-To: <3AB9E1ED.8553FC55@vt.edu> Message-ID: <5.0.2.1.0.20010322101346.0281cc38@pop.nycap.rr.com> Hi Manan- > what algorithm does vtk implement in order to extract isosurfaces >and render them ? is marching cubes the algorithm used? if so, isn't it >true that this algorithm is not the most optimal, and there have been >many other algorithms that have been proposed to reduce the >computational complexities associated with isosurface extraction? >Please tell me what algorithm is used by vtk for this purpose, and also >how optimum have u found using it? There are several ways to extract isosurfaces in VTK. Here are some that come to mind. 1) Marching cubes (for structured points): simple, robust, beautiful, elegant, still one of the fastest if you are extracting just one surface. Generates isosurface which is then rendered with polygonal hardware. Speeds can be further improved by creating triangle strips from the output. 2) Kitware's Synchronized Templates (for structured points): similar to marching cubes, faster in some cases because it avoids multiple edge intersections. 3) Volume rendering an iso-surface: ray-caster solves non-linear interpolation function equations to give accurate and high quality renderings 4) Volume rendering in general: the right transfer function generates an iso-surface like image; with texture mapping acceleration or the VolumePro board you can get up to 30 fps. 5) Other data types use ContourFilter, ContourGrid, etc....which are related variations of marching cubes and optimized for a particular data type. 6) Dividing cubes generates "point cloud" representations of isosurfaces...with the right hardware, it can do this really fast. Many of the above algorithms can and have been parallelized, either using shared-memory, threaded approaches and/or distributed memory (MPI) approaches. Most of the work in the field has gone into algorithms that pre-process the data to build data structures that enable high-performance extraction of multiple surfaces. (The structures eliminate visits to all of the cells in the dataset.) Some, are out-of-core algorithms that do similar things but avoid the need to read in all the data. If you are extracting a single iso-surface, these algorithms don't buy you much. But if you are playing around with multiple iso-surface values, or extracting large surfaces, or have huge data on disk, they are quite useful. A good place to starting finding references are the IEEE Visualization proceedings; there has been many the last several years. Will Dr. William J. Schroeder Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 (Phone & Fax) From cmumford at teclabs.net Thu Mar 22 12:14:09 2001 From: cmumford at teclabs.net (Chris Mumford) Date: Thu, 22 Mar 2001 11:14:09 -0600 Subject: [vtkusers] vtkContourGrid ??? Message-ID: <001101c0b2f3$85109f30$a101650a@eng.teclabs.net> I have searched the web, and the email archive for hints on how to use vtkContourGrid, but can't seem to figure it out. My problem is this: I want to draw a contour plot of antenna signal strengths. I have a bunch of X & Y positions, and signal strengths. I want to draw a 2D contour plot of them in a 2D window. Something like this: http://www.cmumford.com/contour.gif Since my input is not in a regular grid, I know that I first have to fit some kind of curve to it to get a regular grid first, and then I can draw the contour plot. I believe that vtkContourGrid is what I need, but can't figure out how to make use of it. I also want a normal 2D plot, not a 2D overlay in an OpenGL window, but a real 2D plot if possible. I've already ordered both books, but I don't want to wait until next week to get this problem solved - I'm impatient :-) Are there any kind soles out there willing to help me with this problem? -Chris From plowry at scotia-group.com Thu Mar 22 12:58:03 2001 From: plowry at scotia-group.com (Patrick Lowry) Date: Thu, 22 Mar 2001 11:58:03 -0600 Subject: [vtkusers] vtkContourGrid ??? In-Reply-To: <001101c0b2f3$85109f30$a101650a@eng.teclabs.net> Message-ID: <200103221059250.SM00181@PHL> Chis: If your data points are random, you can use a gridding algorithm to convert them to a structured points data set (not part of VTK). A simple inverse distance weighted algorithm works well but there are better methods. Then its easy enough to contour the data set and display it as shown in the gif you provided or as contour lines. The image can then be written out as a BMP, TIFF or CGM. We do this all the time for our clients in the oil business. If you would like more help on the gridding, let me know. One thing about being impatient, in the consulting world, it drives up the price. Patrick Lowry The Scotia Group, Inc. At 11:14 AM 3/22/01 -0600, you wrote: >I have searched the web, and the email archive for hints on how to use >vtkContourGrid, but can't seem to figure it out. > >My problem is this: I want to draw a contour plot of antenna signal >strengths. I have a bunch of X & Y positions, and signal strengths. I want >to draw a 2D contour plot of them in a 2D window. Something like this: >http://www.cmumford.com/contour.gif > >Since my input is not in a regular grid, I know that I first have to fit >some kind of curve to it to get a regular grid first, and then I can draw >the contour plot. I believe that vtkContourGrid is what I need, but can't >figure out how to make use of it. > >I also want a normal 2D plot, not a 2D overlay in an OpenGL window, but a >real 2D plot if possible. > >I've already ordered both books, but I don't want to wait until next week to >get this problem solved - I'm impatient :-) > >Are there any kind soles out there willing to help me with this problem? > >-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 jbiddiscombe at skippingmouse.co.uk Thu Mar 22 13:09:25 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 22 Mar 2001 18:09:25 +0000 Subject: [vtkusers] vtkContourGrid ??? In-Reply-To: <200103221059250.SM00181@PHL> References: <001101c0b2f3$85109f30$a101650a@eng.teclabs.net> Message-ID: <5.0.0.25.0.20010322180634.023f0820@mail.btinternet.com> I use a similar trick which is to triangulate the random data points to get a surface. Then Fire rays at the surface along a regular grid and end up with a structuredpoints dataset. This can then be contoured. (it's not as much work as you'd think). The surface is not analytical, but can be used as a first stab. I have made a "vtkSurfaceProbeFilter" for doing exactly this, but it's not available (at the time of writing) for general use - apologies. JB >If your data points are random, you can use a gridding algorithm to convert >them to a structured points data set (not part of VTK). A simple inverse >distance weighted algorithm works well but there are better methods. Then >its easy enough to contour the data set and display it as shown in the gif >you provided or as contour lines. The image can then be written out as a >BMP, TIFF or CGM. > >We do this all the time for our clients in the oil business. If you would >like more help on the gridding, let me know. > >One thing about being impatient, in the consulting world, it drives up the >price. > >Patrick Lowry >The Scotia Group, Inc. > >At 11:14 AM 3/22/01 -0600, you wrote: > >I have searched the web, and the email archive for hints on how to use > >vtkContourGrid, but can't seem to figure it out. > > > >My problem is this: I want to draw a contour plot of antenna signal > >strengths. I have a bunch of X & Y positions, and signal strengths. I want > >to draw a 2D contour plot of them in a 2D window. Something like this: > >http://www.cmumford.com/contour.gif > > > >Since my input is not in a regular grid, I know that I first have to fit > >some kind of curve to it to get a regular grid first, and then I can draw > >the contour plot. I believe that vtkContourGrid is what I need, but can't > >figure out how to make use of it. > > > >I also want a normal 2D plot, not a 2D overlay in an OpenGL window, but a > >real 2D plot if possible. > > > >I've already ordered both books, but I don't want to wait until next week to > >get this problem solved - I'm impatient :-) > > > >Are there any kind soles out there willing to help me with this problem? > > > >-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 > > > > > >_______________________________________________ >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 themangoon at yahoo.com Thu Mar 22 13:14:02 2001 From: themangoon at yahoo.com (Nicolas Mangon) Date: Thu, 22 Mar 2001 10:14:02 -0800 (PST) Subject: [vtkusers] Zoom window Message-ID: <20010322181402.62261.qmail@web10108.mail.yahoo.com> Hello everyone, Is there a way to implement a zoom window ? instead of a zoom Plus or Minus. Thank you Nicolas __________________________________________________ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ From will.schroeder at kitware.com Thu Mar 22 14:04:12 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 22 Mar 2001 14:04:12 -0500 Subject: [vtkusers] vtkContourGrid ??? In-Reply-To: <200103221059250.SM00181@PHL> References: <001101c0b2f3$85109f30$a101650a@eng.teclabs.net> Message-ID: <5.0.2.1.0.20010322135727.0280aea8@pop.nycap.rr.com> Hi Chris - At 11:58 AM 3/22/2001 -0600, Patrick Lowry wrote: >Chis: > >If your data points are random, you can use a gridding algorithm to convert >them to a structured points data set (not part of VTK). A simple inverse >distance weighted algorithm works well but there are better methods. Then >its easy enough to contour the data set and display it as shown in the gif >you provided or as contour lines. The image can then be written out as a >BMP, TIFF or CGM. VTK has several useful algorithms for converting points to data forms that can be contoured. * vtkGaussianSplatter - points to vtkStructuredPoints/vtkImageData (ellipsoidal splats) * vtkShepardMethod = points to vtkStructuredPoints/vtkImageData (simple inverse weighting as Patrick describes) * vtkDelaunay2D - points to vtkPolyData * vtkDelaunay3D - points to vtkUnstructuredGrid * vtkSurfaceReconstructionFilter - points to vtkStructuredPoints/vtkImageData (Hoppe's surface algorithm thanks to Tim Hutton) * vtkImplicitModeller - vertex cells (you have to create a vertex per point) to vtkStructuredPoints/vtkImageData (distance function) There are probably a few more... Will From smitty at kcc.com Thu Mar 22 16:12:31 2001 From: smitty at kcc.com (Tom G. Smith (B75826)) Date: Thu, 22 Mar 2001 15:12:31 -0600 (CST) Subject: [vtkusers] VTK24 vs. 312, quality and performance Message-ID: <200103222112.f2MLCVX28466@random.kcc.com> Some time ago I posted a message about a significant difference in rendering quality and speed, VTK 2.4 versus VTK 3.1.2. I didn't do a very good job of describing the problem then, and I'm going to try again. I have two environments: 1. SGI Dual Processor Octane, 1G memory, IRIX 6.5, VTK 2.4 compiled w/OpenGL. 2. Compaq Proliant, 2 450Mhz processors, 320M memory, RedHat Linux 7.0, VTK 3.1.2 compiled w/Mesa. The hardware difference isn't really significant. I'm doing all my rendering from both systems using HCL/eXceed under Windows 95 on an old Toshiba 510 with 32M memory, with no graphics accelerator card. That sort of levels the playing field :-) Prior to upgrading to RH7 and VTK 3.1.2, the renderings from the Linux box were comparable to those from the SGI system, and I only noticed a significant degradation in performance and rendering quality after the upgrade. I don't have another Linux system still running vtk 2.4, so I was forced to use the SGI for the comparison. The scripts I used to make the performance and rendering comparisons are identical on both hosts. I picked a really simple Tcl/Tk script that renders a five-pointed star. That script and the stuff it sources are attached. Here's the two commands I used on both systems: vtk star.tcl -- -c yellow vtk star.tcl -- -c yellow -w The first brings up the Interactor, and the second generates an animated gif file, showing the star rotating 360 degrees about its vertical axis. Here's the sizes of the two gif files, and as you can see, the one from VTK 3.1.2 is over 12 times the size of the gif from VTK 2.4: -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif To give some measure of the difference in performance, using the Interactor, I left-clicked and dragged from the center to the edge of the rendering window, which of course causes the image to rotate. Then I timed the rotation through 360 degrees. The rendering from VTK 2.4 takes 16 seconds, and that from vtk312 72 seconds, 4.5 times longer. I can't attach the gif files, because it'd make this posting too big to get onto Kitware's list server, so you'll just have to take my word that the one from VTK 3.1.2 looks very bad compared to that from VTK 2.4. star.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: Generates an n-pointed 3D star. # Syntax: vtk star.tcl [-- [-c ] [-s ] [-w] [-x] [-y] [-z]] #----------------------------------------------------------------------- # Changelog: # 000323 Smitty created. #----------------------------------------------------------------------- #set Debug 1 # --------------------------------------------------------------- # Initialize constants. if {![regexp {^(.*/)([^/]+$)} $argv0 dummy dirname basename]} { # dirname is the path to this executable, e.g. /home/smitty/vtkstuff/, # and basename will be "star.tcl". set dirname ./ set basename $argv0 } set dirname "$dirname/common" source "$dirname/startup.tcl" ;# Initialize vtk. source "$dirname/colors.tcl" ;# Define colors source "$dirname/getopts.tcl"; # Get the getopts and defaultopts routines. set Pi [expr acos(-1)] ;# Approx. 3.14159265359 set Pitwice [expr $Pi*2.0] ;# Radians of full circumference. set tips 5 ;# Five pointed star. set height 2 ;# Diameter at star tips. set depth [expr $height/4.0] ;# Depth of star, front-to-back. set radius [expr $height/2.0] ;# Radius of circle at star tips. set inner_radius $depth ;# Radius of circle where star tip edges intersect. set c cornflower ;# Default color set w 0 ;# Default is not to produce animation. set s 300 ;# Default size of image. set x 0 set y 0 set z 0 # --------------------------------------------------------------- # Mainline starts here. getopts {c:s:wxyz}; # Get command line arguments. # Now build vtkPoints object. set pointcount [expr $tips*2+2] cmd [list "vtkPoints points"] cmd [list "points SetNumberOfPoints $pointcount"] cmd [list "points InsertPoint 0 [expr $depth/2] 0 0"] ;# Front center point. set a 0 ;# Angle of first star tip. set aincr [expr $Pitwice/$tips] ;# Angle between star tips. set bincr [expr $aincr/2] ;# Angle increment to intersection of star tip edges. set n 1 ;# Point index, relative 0. set xp 0 ;# Plane bisecting star. while {$a < $Pitwice} { foreach r [list $radius $inner_radius] { set yp [expr cos($a)*$r] set zp [expr sin($a)*$r] cmd [list "points InsertPoint $n $xp $yp $zp"] incr n set a [expr $a+$bincr] ;# Bump to angle of next defining point. } } cmd [list "points InsertPoint $n [expr -$depth/2] 0 0"] ;# Back center point. # strips will contain two cells, one for each triangle strip, front and back. cmd [list "vtkCellArray strips"] foreach k [list 0 [expr $pointcount-1]] { cmd [list "strips InsertNextCell [expr $tips*3+2]"] set p 0 while {$p < $tips*2} { cmd [list "strips InsertCellPoint $k"] ;# Front/Back Center cmd [list "strips InsertCellPoint [expr $p+1]"] ;# Star tip cmd [list "strips InsertCellPoint [expr $p+2]"] ;# intersection. incr p 2 } cmd [list "strips InsertCellPoint $k"] ;# Front/Back Center cmd [list "strips InsertCellPoint 1"] } cmd [list\ "vtkPolyData polydata"\ "polydata SetPoints points"\ "polydata SetStrips strips"\ "vtkPolyDataMapper map"\ "map SetInput polydata"\ "vtkActor actor"\ "actor SetMapper map"] cmd [list\ "eval {[actor GetProperty] SetColor } $colors($c)"\ "[actor GetProperty] BackfaceCullingOff"\ "ren1 AddActor actor"\ "actor RotateY 90"\ "ren1 SetBackground 1 1 1"] if {$w} { source "$dirname/whirl.tcl" ;# Generate images for animation. if {![expr $x+$y+$z]} { set y 1; } whirl $s $s whirl 10 $x $y $z } else { go $s $s ;# start the Interactor and display the image. } ........................................................................... common/cmd.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: This Tcl script can be sourced to get the typical # code to run vtk commands, and optionally print them on stderr. #----------------------------------------------------------------------- # Changelog: # 000323 Smitty created. #----------------------------------------------------------------------- set cmd_include 1 ;# Indicates this file already included. if {![info exists Debug]} { set Debug 0; } proc cmd {cmds} { # --------------------------------------------------------------- # Called to run a list of vtk commands. # --------------------------------------------------------------- global Debug foreach cmd $cmds { if {$Debug} { puts stderr $cmd; } eval $cmd } } ;# End cmd. ........................................................................... common/colors.tcl: ........................................................................... #----------------------------------------------------------------------- # Description: This Tcl script can be sourced to build an array of # RGB color values. It's a copy of /opt/vtk/examplesTcl/colors.tcl, # with a lot of changes. #----------------------------------------------------------------------- # Changelog: # 991020 Smitty created. #----------------------------------------------------------------------- # Whites set colors(antique_white) "0.9804 0.9216 0.8431" set colors(azure) "0.9412 1.0000 1.0000" set colors(bisque) "1.0000 0.8941 0.7686" set colors(blanched_almond) "1.0000 0.9216 0.8039" set colors(cornsilk) "1.0000 0.9725 0.8627" set colors(eggshell) "0.9900 0.9000 0.7900" set colors(floral_white) "1.0000 0.9804 0.9412" set colors(gainsboro) "0.8627 0.8627 0.8627" set colors(ghost_white) "0.9725 0.9725 1.0000" set colors(honeydew) "0.9412 1.0000 0.9412" set colors(ivory) "1.0000 1.0000 0.9412" set colors(lavender) "0.9020 0.9020 0.9804" set colors(lavender_blush) "1.0000 0.9412 0.9608" set colors(lemon_chiffon) "1.0000 0.9804 0.8039" set colors(linen) "0.9804 0.9412 0.9020" set colors(mint_cream) "0.9608 1.0000 0.9804" set colors(misty_rose) "1.0000 0.8941 0.8824" set colors(moccasin) "1.0000 0.8941 0.7098" set colors(navajo_white) "1.0000 0.8706 0.6784" set colors(old_lace) "0.9922 0.9608 0.9020" set colors(papaya_whip) "1.0000 0.9373 0.8353" set colors(peach_puff) "1.0000 0.8549 0.7255" set colors(seashell) "1.0000 0.9608 0.9333" set colors(snow) "1.0000 0.9804 0.9804" set colors(thistle) "0.8471 0.7490 0.8471" set colors(titanium_white) "0.9900 1.0000 0.9400" set colors(wheat) "0.9608 0.8706 0.7020" set colors(white) "1.0000 1.0000 1.0000" set colors(white_smoke) "0.9608 0.9608 0.9608" set colors(zinc_white) "0.9900 0.9700 1.0000" # Greys set colors(cold_grey) "0.5000 0.5400 0.5300" set colors(dim_grey) "0.4118 0.4118 0.4118" set colors(grey) "0.7529 0.7529 0.7529" set colors(light_grey) "0.8275 0.8275 0.8275" set colors(slate_grey) "0.4392 0.5020 0.5647" set colors(slate_grey_dark) "0.1843 0.3098 0.3098" set colors(slate_grey_light) "0.4667 0.5333 0.6000" set colors(warm_grey) "0.5000 0.5000 0.4100" # Blacks set colors(black) "0.0000 0.0000 0.0000" set colors(ivory_black) "0.1600 0.1400 0.1300" set colors(lamp_black) "0.1800 0.2800 0.2300" # Reds set colors(alizarin_crimson) "0.8900 0.1500 0.2100" set colors(brick) "0.6100 0.4000 0.1200" set colors(cadmium_red_deep) "0.8900 0.0900 0.0500" set colors(coral) "1.0000 0.4980 0.3137" set colors(coral_light) "0.9412 0.5020 0.5020" set colors(deep_pink) "1.0000 0.0784 0.5765" set colors(english_red) "0.8300 0.2400 0.1000" set colors(firebrick) "0.6980 0.1333 0.1333" set colors(geranium_lake) "0.8900 0.0700 0.1900" set colors(hot_pink) "1.0000 0.4118 0.7059" set colors(indian_red) "0.6900 0.0900 0.1200" set colors(light_salmon) "1.0000 0.6275 0.4784" set colors(madder_lake_deep) "0.8900 0.1800 0.1900" set colors(maroon) "0.6902 0.1882 0.3765" set colors(pink) "1.0000 0.7529 0.7961" set colors(pink_light) "1.0000 0.7137 0.7569" set colors(raspberry) "0.5300 0.1500 0.3400" set colors(red) "1.0000 0.0000 0.0000" set colors(rose_madder) "0.8900 0.2100 0.2200" set colors(salmon) "0.9804 0.5020 0.4471" set colors(tomato) "1.0000 0.3882 0.2784" set colors(venetian_red) "0.8300 0.1000 0.1200" # Browns set colors(beige) "0.6400 0.5800 0.5000" set colors(brown) "0.5000 0.1647 0.1647" set colors(brown_madder) "0.8600 0.1600 0.1600" set colors(brown_ochre) "0.5300 0.2600 0.1200" set colors(burlywood) "0.8706 0.7216 0.5294" set colors(burnt_sienna) "0.5400 0.2100 0.0600" set colors(burnt_umber) "0.5400 0.2000 0.1400" set colors(chocolate) "0.8235 0.4118 0.1176" set colors(deep_ochre) "0.4500 0.2400 0.1000" set colors(flesh) "1.0000 0.4900 0.2500" set colors(flesh_ochre) "1.0000 0.3400 0.1300" set colors(gold_ochre) "0.7800 0.4700 0.1500" set colors(greenish_umber) "1.0000 0.2400 0.0500" set colors(khaki) "0.9412 0.9020 0.5490" set colors(khaki_dark) "0.7412 0.7176 0.4196" set colors(light_beige) "0.9608 0.9608 0.8627" set colors(peru) "0.8039 0.5216 0.2471" set colors(rosy_brown) "0.7373 0.5608 0.5608" set colors(raw_sienna) "0.7800 0.3800 0.0800" set colors(raw_umber) "0.4500 0.2900 0.0700" set colors(sepia) "0.3700 0.1500 0.0700" set colors(sienna) "0.6275 0.3216 0.1765" set colors(saddle_brown) "0.5451 0.2706 0.0745" set colors(sandy_brown) "0.9569 0.6431 0.3765" set colors(tan) "0.8235 0.7059 0.5490" set colors(van_dyke_brown) "0.3700 0.1500 0.0200" # Oranges set colors(cadmium_orange) "1.0000 0.3800 0.0100" set colors(cadmium_red_light) "1.0000 0.0100 0.0500" set colors(carrot) "0.9300 0.5700 0.1300" set colors(dark_orange) "1.0000 0.5490 0.0000" set colors(mars_orange) "0.5900 0.2700 0.0800" set colors(mars_yellow) "0.8900 0.4400 0.1000" set colors(orange) "1.0000 0.5000 0.0000" set colors(orange_red) "1.0000 0.2706 0.0000" set colors(yellow_ochre) "0.8900 0.5100 0.0900" # Yellows set colors(aureoline_yellow) "1.0000 0.6600 0.1400" set colors(banana) "0.8900 0.8100 0.3400" set colors(cadmium_lemon) "1.0000 0.8900 0.0100" set colors(cadmium_yellow) "1.0000 0.6000 0.0700" set colors(cadmium_yellow_light) "1.0000 0.6900 0.0600" set colors(gold) "1.0000 0.8431 0.0000" set colors(goldenrod) "0.8549 0.6471 0.1255" set colors(goldenrod_dark) "0.7216 0.5255 0.0431" set colors(goldenrod_light) "0.9804 0.9804 0.8235" set colors(goldenrod_pale) "0.9333 0.9098 0.6667" set colors(light_goldenrod) "0.9333 0.8667 0.5098" set colors(melon) "0.8900 0.6600 0.4100" set colors(naples_yellow_deep) "1.0000 0.6600 0.0700" set colors(yellow) "1.0000 1.0000 0.0000" set colors(yellow_light) "1.0000 1.0000 0.8784" # Greens set colors(chartreuse) "0.4980 1.0000 0.0000" set colors(chrome_oxide_green) "0.4000 0.5000 0.0800" set colors(cinnabar_green) "0.3800 0.7000 0.1600" set colors(cobalt_green) "0.2400 0.5700 0.2500" set colors(emerald_green) "0.0000 0.7900 0.3400" set colors(forest_green) "0.1333 0.5451 0.1333" set colors(green) "0.0000 1.0000 0.0000" set colors(green_dark) "0.0000 0.3922 0.0000" set colors(green_pale) "0.5961 0.9843 0.5961" set colors(green_yellow) "0.6784 1.0000 0.1843" set colors(lawn_green) "0.4863 0.9882 0.0000" set colors(lime_green) "0.1961 0.8039 0.1961" set colors(mint) "0.7400 0.9900 0.7900" set colors(olive) "0.2300 0.3700 0.1700" set colors(olive_drab) "0.4196 0.5569 0.1373" set colors(olive_green_dark) "0.3333 0.4196 0.1843" set colors(permanent_green) "0.0400 0.7900 0.1700" set colors(sap_green) "0.1900 0.5000 0.0800" set colors(sea_green) "0.1804 0.5451 0.3412" set colors(sea_green_dark) "0.5608 0.7373 0.5608" set colors(sea_green_medium) "0.2353 0.7020 0.4431" set colors(sea_green_light) "0.1255 0.6980 0.6667" set colors(spring_green) "0.0000 1.0000 0.4980" set colors(spring_green_medium) "0.0000 0.9804 0.6039" set colors(terre_verte) "0.2200 0.3700 0.0600" set colors(viridian_light) "0.4300 1.0000 0.4400" set colors(yellow_green) "0.6039 0.8039 0.1961" # Cyans set colors(aquamarine) "0.4980 1.0000 0.8314" set colors(aquamarine_medium) "0.4000 0.8039 0.6667" set colors(cyan) "0.0000 1.0000 1.0000" set colors(cyan_white) "0.8784 1.0000 1.0000" set colors(turquoise) "0.2510 0.8784 0.8157" set colors(turquoise_dark) "0.0000 0.8078 0.8196" set colors(turquoise_medium) "0.2824 0.8196 0.8000" set colors(turquoise_pale) "0.6863 0.9333 0.9333" # Blues set colors(alice_blue) "0.9412 0.9725 1.0000" set colors(blue) "0.0000 0.0000 1.0000" set colors(blue_light) "0.6784 0.8471 0.9020" set colors(blue_medium) "0.0000 0.0000 0.8039" set colors(cadet) "0.3725 0.6196 0.6275" set colors(cobalt) "0.2400 0.3500 0.6700" set colors(cornflower) "0.3922 0.5843 0.9294" set colors(cerulean) "0.0200 0.7200 0.8000" set colors(dodger_blue) "0.1176 0.5647 1.0000" set colors(indigo) "0.0300 0.1800 0.3300" set colors(manganese_blue) "0.0100 0.6600 0.6200" set colors(midnight_blue) "0.0980 0.0980 0.4392" set colors(navy) "0.0000 0.0000 0.5020" set colors(peacock) "0.2000 0.6300 0.7900" set colors(powder_blue) "0.6902 0.8784 0.9020" set colors(royal_blue) "0.2549 0.4118 0.8824" set colors(slate_blue) "0.4157 0.3529 0.8039" set colors(slate_blue_dark) "0.2824 0.2392 0.5451" set colors(slate_blue_light) "0.5176 0.4392 1.0000" set colors(slate_blue_medium) "0.4824 0.4078 0.9333" set colors(sky_blue) "0.5294 0.8078 0.9216" set colors(sky_blue_deep) "0.0000 0.7490 1.0000" set colors(sky_blue_light) "0.5294 0.8078 0.9804" set colors(steel_blue) "0.2745 0.5098 0.7059" set colors(steel_blue_light) "0.6902 0.7686 0.8706" set colors(turquoise_blue) "0.0000 0.7800 0.5500" set colors(ultramarine) "0.0700 0.0400 0.5600" # Magentas set colors(blue_violet) "0.5412 0.1686 0.8863" set colors(cobalt_violet_deep) "0.5700 0.1300 0.6200" set colors(magenta) "1.0000 0.0000 1.0000" set colors(orchid) "0.8549 0.4392 0.8392" set colors(orchid_dark) "0.6000 0.1961 0.8000" set colors(orchid_medium) "0.7294 0.3333 0.8275" set colors(permanent_red_violet) "0.8600 0.1500 0.2700" set colors(plum) "0.8667 0.6275 0.8667" set colors(purple) "0.6275 0.1255 0.9412" set colors(purple_medium) "0.5765 0.4392 0.8588" set colors(ultramarine_violet) "0.3600 0.1400 0.4300" set colors(violet) "0.5600 0.3700 0.6000" set colors(violet_dark) "0.5804 0.0000 0.8275" set colors(violet_red) "0.8157 0.1255 0.5647" set colors(violet_red_medium) "0.7804 0.0824 0.5216" set colors(violet_red_pale) "0.8588 0.4392 0.5765" proc showcolors {} { #------------------------------------------------------------------ # Called to display all the possible color names. #------------------------------------------------------------------ global colors foreach key [lsort [array names colors]] { set value $colors($key) puts "$key=$value" } } ;# End showcolors. proc tablecolors {tablename colornames {count 0}} { #------------------------------------------------------------------ # Called to build a vtkLookupTable object based on a list of # color names. If count is greater than the number of colors in # colornames, the table will be built with $count entries and the # colors in colornames will be cycled to fill out the table. #------------------------------------------------------------------ global colors if {$count < 1} { set count [llength $colornames]; } upvar $tablename lut vtkLookupTable lut lut SetNumberOfColors $count # Specify the number of values (i.e., colors) in the lookup # table. This method simply allocates memory and prepares the # table for use with SetTableValue(). It differs from Build() # method in that the allocated memory is not initialized # according to HSVA ramps. lut SetTableRange 0 [expr $count - 1] # Declared as "void SetTableRange(float r[2]);" in # vtkLookupTable.h. I found source for it in # vtkLookupTable.cxx that looks like this, in part: # void vtkLookupTable::SetTableRange(float min, float max) # { this->TableRange[0] = min; this->TableRange[1] = max; } lut Build # Build is a virtual function inherited from vtkScalarsToColors # class, where it's declared as "virtual void Build() {};". # The actual source for it is in vtkLookupTable.cxx. # Using pre-established (perhaps default) values for # HueRange, SaturationRange, ValueRange, and AlphaRange, # it builds the specified set of colors (see SetNumberOfColors # and SetTableRange above). set ix 0; # Color table index. set jx 0; # Color name index. while {$ix < $count} { set name [lindex $colornames $jx] incr jx if {$jx == [llength $colornames]} { set jx 0; } if {![info exists colors($name)]} { puts "ERROR: Color $name is not defined." exit 1 } set cmd "lut SetTableValue $ix $colors($name) 1" eval $cmd # SetTableValue expects 5 arguments: # 1. The index (relative 0) of the colortable entry # to be set. # 2. The red component of the RGB value. # A number from 0 to 1. # 3. The green component of the RGB value. # A number from 0 to 1. # 4. The blue component of the RGB value. # A number from 0 to 1. # 5. The alpha, or transparency, component. # A number from 0 to 1, 1 being totally opaque. incr ix } } ;# End tablecolors. ........................................................................... common/getopts.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: When sourced in a Tcl script run under vtk, enables # subroutine getopts that reads the command line arguments and # sets global variables accordingly, and defaultopt that can be # invoked to set a default. #----------------------------------------------------------------------- # Changelog: # 991013 Smitty created. # 991207 Smitty modified to properly handle positional parameters, and to # check for duplicate use of keywords. # 000613 Smitty moved getopts.tcl to /usr/local/bin on random. #----------------------------------------------------------------------- if {![info exists Debug]} { set Debug 0; } if {![info exists getopts_include]} { set getopts_include 1 proc defaultopt {opt {default 0}} { #----------------------------------------------------------------------- # Called to set the default for a command line argument. #----------------------------------------------------------------------- upvar $opt t if {![info exists t]} { set t $default } } ;# End defaultopt. proc getopts {optstr} { #----------------------------------------------------------------------- # Called to get the command line arguments. # optstr contains the option letters to be recognized. # -> Each option letter may optionally be followed by a slash-delimited # name. If the option letter is found on the command line, the # global variable with that name will either be set # to the argument (see below), or if there is no argument expected, # will be set to 1 to indicate the option letter was found. # If not supplied, the name used will be the option letter itself. # -> If a letter, and possibly its slash-delimited name (see above) is # followed by a colon, the option is expected to # have an argument, which should be separated from it by white # space on the command line. # -> One or more semicolons at the end of optstr each signify # positional parameters. Values for positional parameters will # be set to corresponding locations in global list pos. # Examples: #----------------------------------------------------------------------- global argc argv Debug pos if {$Debug} { puts "getopts entered, optstr='$optstr'"; } set pos {};# Initialize pos to empty list. set a 0 ;# Index to command line arguments. while {$a < $argc} { set arg [lindex $argv $a];# arg = next command line argument. incr a if {$Debug} { puts "getopts loop, optstr='$optstr' arg='$arg'"; } set len [string length $optstr] if {0 == $len} { puts "ERROR: More arguments than expected, arg='$arg' pos='$pos'" exit 1 } if {0 == [string first ";" $optstr]} { if {$Debug} { puts "nothing left but positionals"; } # Nothing left but positionals. lappend pos $arg;# Add to global positionals set optstr [string range $optstr 1 end] } else { if {0 != [string first - $arg]} { if {$Debug} { puts "No preceding hyphen, so m/b positonal = '$arg'"; } # No preceding hyphen, so it must be positional. set i [string last ";" $optstr] if {$i < [expr $len-1]} { puts "ERROR: invalid syntax in '$optstr', arg='$arg' i=$i len=$len" exit 1 } set optstr [string range $optstr 0 [expr $len-2]] lappend pos $arg;# Add to global positionals } else { set b 1;# Bypass the hyphen. if {$Debug} { puts "setting b to 1"; } while {$b < [string length $arg]} { set letter [string index $arg $b] incr b set ret [getopts_sub $optstr $letter $a] if {$Debug} { puts "letter='$letter' ret='$ret'"; } set optstr [lindex $ret 0] set a [lindex $ret 1] } } } } if {-1 < [string last ";" $optstr]} { puts "ERROR: Positional arguments expected but not found." exit 1 } } ;# End getopts. proc getopts_sub {optstr opt a} { #----------------------------------------------------------------------- # Called from getopts to process an option letter (opt) parsed from the # command line. A two-item list is returned, {optstr a}, where # optstr is updated to eliminate a keyword, indicating it's been # used, and a is the index to argv to the next available argument. # If the option has an argument, its value will be extracted # from $argv and assigned to the global variable with the keyword name, # and the index $a+1 will be returned. Otherwise index $a # will be returned. #----------------------------------------------------------------------- global argc argv Debug if {$Debug} { puts "getopts_sub entered, optstr='$optstr' opt='$opt' a=$a"; } set match 0; # Indicates letter matched in optstr. set state 0; # Looking for option letter in optstr. set b 0 while {$b < [string length $optstr]} { set letter [string index $optstr $b] # letter is next letter from optstr. incr b switch -exact -- $state { 0 { ;# Looking for matching option letter. if {0 == [string compare $letter ";"]} break if {0 == [string compare $letter $opt]} { set match 1;# Indicate keyword found. set mix [expr $b-2]; # Save start index. set name $letter; # Default name. set value 1; # Default value. } set state 1; # Look for slash. } 1 { ;# Looking for slash. if {0 == [string compare $letter /]} { set name {}; # Empty out default name. while {$b < [string length $optstr]} { set letter [string index $optstr $b] incr b if {0 == [string compare $letter /]} break; # Found end of name. if {$b == [string length $optstr]} { puts "ERROR: missing trailing slash" exit 1 } set name "$name$letter" } } else { incr b -1; # Back up parse cursor. } set state 2; # Look for colon. } 2 { ;# Looking for colon. if {0 == [string compare $letter {:}]} { if {$match} { if {$a == $argc} { puts "ERROR: $name has no argument" exit 1 } set value [lindex $argv $a] incr a break; # All done. } set state 0; # Look for next option. } else { incr b -1; # Back up parse cursor. if {$match} break set state 0; # Look for next option. } } } ;# End switch. } if {!$match} { puts "ERROR: $letter is an unknown option." exit 1 } upvar #0 $name t;# t is a synonym for global keyword name. set t $value;# Set keyword argument in global variable of that name. if {$mix} { # Keyword pattern isn't at front of $optstr. set front [string range $optstr 0 $mix] #set a [string length $front] if {$b==[string length $optstr]} { # Keyword pattern is at end of $optstr. set optstr $front } else { # Keyword pattern isn't at end of $optstr. set back [string range $optstr $b end] set optstr "$front$back" } } else { # Keyword pattern is at front of $optstr. if {$b==[string length $optstr]} { # Keyword pattern is at end of $optstr. set optstr "";# Opstring is empty. #set a 1 } else { # Keyword pattern isn't at end of $optstr. set optstr [string range $optstr $b end] #set a 0 } } if {$Debug} { puts "getopts_sub returning, optstr='$optstr' a=$a"; } return [list $optstr $a] } ;# End getopts_sub. } ........................................................................... common/go.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: This Tcl script can be sourced to get the typical # vtk code to start the interactor, and to display the final image. #----------------------------------------------------------------------- # Changelog: # 991013 Smitty created. # 000323 Smitty moved interactor code from startup.tcl to here, and # made go invocable proc. go.tcl is now included for you in # startup.tcl. #----------------------------------------------------------------------- proc go {{hsize 100} {vsize 100}} { cmd [list\ "renWin SetSize $hsize $vsize"\ "source /opt/vtk/examplesTcl/vtkInt.tcl"\ "vtkRenderWindowInteractor iren"\ "iren SetRenderWindow renWin"\ "iren SetUserMethod {wm deiconify .vtkInteract}"\ "iren Initialize"\ "wm withdraw ."] # vtkRenderWindowInteractor is a convenience object that provides # event bindings to common graphics functions. Here's a brief # summary. See http://www.kitware.com/vtkhtml/vtkdata/manhtml/ # vtkRenderWindowInteractor.html for more detail: # Mouse bindings: # camera: Button 1 - rotate # Button 2 - pan # Button 3 - zoom # ctrl-Button 1 - spin # actor: Button 1 - rotate # Button 2 - pan # Button 3 - uniform scale # ctrl-Button 1 - spin # ctrl-Button 2 - dolly. # Keyboard bindings (upper or lower case): # j - joystick like mouse interactions # t - trackball like mouse interactions # o - object/actor interaction # c - camera interaction # r - reset camera view # w - turn all actors wireframe # s - turn all actors surface # u - execute user defined function # p - pick actor under mouse pointer (if pickable) # 3 - toggle in/out of 3D mode (if supported by renderer) # e - exit # q - exit } ;# End go. ........................................................................... common/startup.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: This Tcl script can be sourced to get the typical # vtk initialization. #----------------------------------------------------------------------- # Changelog: # 991007 Smitty created. # 000323 Smitty moved interactor code from here to go.tcl. #----------------------------------------------------------------------- catch {load vtktcl} ;# Load the shared vtk libraries. if {![info exists dirname]} { if {![regexp {^(.*/)([^/]+$)} $argv0 dummy dirname basename]} { # dirname is the path to this executable, # e.g. /home/smitty/vtkstuff/, # and basename will be e.g. "star.tcl". set dirname ./ set basename $argv0 } } if {![info exists cmd_include]} { source "$dirname/cmd.tcl"; } cmd [list\ "vtkRenderer ren1"\ "vtkRenderWindow renWin"\ "renWin AddRenderer ren1"] # vtkRenderer provides an abstract specification for renderers. A # renderer is an object that controls the rendering process for # objects. Rendering is the process of converting geometry, # a specification for lights, and a camera view into an # image. vtkRenderer also performs coordinate transformation # between world coordinates, view coordinates (the computer # graphics rendering coordinate system), and display coordinates # (the actual screen coordinates on the display device). # # vtkRenderWindow is an abstract object to specify the behavior # of a rendering window. A rendering window is a window # in a graphical user interface where renderers draw their # images. Methods are provided to synchronize the rendering # process, set window size, and control double buffering. # # Associate renderer ren1 with renWin. source "$dirname/go.tcl" ;# Go proc starts the Interactor, displays the image. ........................................................................... common/whirl.sh: ........................................................................... #!/usr/bin/sh # ----------------------------------------------------------------- # Description: # Called by whirl.tcl. Uses convert from ImageMagick to convert # ppm files to gif, then invokes whirlgif to create an animation # from the gif files. You can see the resulting animation with - # animate $1.gif # ----------------------------------------------------------------- # Changelog: # 000324 Smitty created. # ----------------------------------------------------------------- for i in `ls $1*.ppm | cut -d. -f1` do convert $i.ppm $i.gif rm $i.ppm done whirlgif -loop 999999 -o $1.gif ${1}_[0-9][0-9][0-9].gif rm ${1}_[0-9][0-9][0-9].gif ........................................................................... common/whirl.tcl: ........................................................................... #!/usr/bin/tcl #----------------------------------------------------------------------- # Description: This Tcl script can be sourced to define subroutine whirl, # which can be invoked to generate a series of ppm files that later can # be combined to produce an animation. #----------------------------------------------------------------------- # Changelog: # 000323 Smitty created. # 000921 Smitty added the actors argument #----------------------------------------------------------------------- proc whirl {{hsize 100} {vsize 100} {basename whirl} {nsteps 10} {x 0} {y 1} {z 0} {actors actor}} { # --------------------------------------------------------------- # Generates a series of ppm files, with filenames of the form # $filename_001.ppm, $filename_002.ppm, etc. The files contain # progressive images of the scene, with the camera rotated about # the z axis a specified increment for each image, for a full # 360 degrees. Expects renWin, a vtkRenderWindow object, and # by default, actor, a vtkActor object, to be predefined. # # Arguments - # basename # Filenames will be $basename_001.ppm, $basename_002.ppm, etc. # If omitted, the default is "whirl". # hsize # Horizontal size in pels of the images. # If omitted, the default is 100. # vsize # Vertical size in pels of the images. # If omitted, the default is 100. # nsteps # Number of images to be generated, i.e. 10 would produce # 10 images, each rotated from the others by 36 degrees about # the z axis. # If omitted, the default is 10. # x # Set to 1 if rotation is to occur about the x axis. # Default is 0. # y # Set to 1 if rotation is to occur about the y axis. # Default is 1. # z # Set to 1 if rotation is to occur about the z axis. # Default is 0. # # actor # list of actors in the rendering. Default is the single # actor named "actor". # --------------------------------------------------------------- global dirname set delta [expr 360.0/$nsteps] set suffix ppm set n 0 cmd [list\ "renWin SetSize $hsize $vsize"\ "wm withdraw ."] while {$n < $nsteps} { incr n set filename "${basename}_[format %03d $n].$suffix" cmd [list\ "renWin Render"\ "renWin SetFileName $filename"\ "renWin SaveImageAsPPM"] foreach actor $actors { if {$x} { cmd [list "$actor RotateX $delta"] } if {$y} { cmd [list "$actor RotateY $delta"] } if {$z} { cmd [list "$actor RotateZ $delta"] } } } cmd [list "destroy ."] catch {exec $dirname/whirl.sh $basename} } ;# End whirl. ........................................................................... ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From joey at phobos.space.swri.edu Thu Mar 22 16:56:53 2001 From: joey at phobos.space.swri.edu (Joey Mukherjee) Date: Thu, 22 Mar 2001 15:56:53 -0600 (CST) Subject: [vtkusers] VTK24 vs. 312, quality and performance Message-ID: <200103222200.f2MM0Wl24231@phobos.space.swri.edu> > 1. SGI Dual Processor Octane, 1G memory, IRIX 6.5, > VTK 2.4 compiled w/OpenGL. > > 2. Compaq Proliant, 2 450Mhz processors, 320M memory, > RedHat Linux 7.0, > VTK 3.1.2 compiled w/Mesa. On the SGI, isn't the hardware acceleration taking effect even if you are throwing your display? >The first brings up the Interactor, and the second generates an animated >gif file, showing the star rotating 360 degrees about its vertical axis. >Here's the sizes of the two gif files, and as you can see, the one from >VTK 3.1.2 is over 12 times the size of the gif from VTK 2.4: > > -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif > -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif Are you sure both are using the same version of convert with --enable-lzw enabled? FWIW, I noticed exactly the opposite effect. When I was using vtk2.4, it was slower than the vtk3.2 I am using now, but this was on Sparcs. Joey +--------------------------------------------------------------------------+ + Joey Mukherjee + + joey at swri.org "I intend to live forever, + + http://www.space.swri.edu/~joey so far, so good... + + + +--------------------------------------------------------------------------+ From cmumford at teclabs.net Thu Mar 22 17:08:40 2001 From: cmumford at teclabs.net (Chris Mumford) Date: Thu, 22 Mar 2001 16:08:40 -0600 Subject: [vtkusers] vtkContourGrid ??? References: <001101c0b2f3$85109f30$a101650a@eng.teclabs.net> <5.0.2.1.0.20010322135727.0280aea8@pop.nycap.rr.com> Message-ID: <005f01c0b31c$a9d57a10$a101650a@eng.teclabs.net> > > VTK has several useful algorithms for converting points to data forms that can be contoured. > * vtkGaussianSplatter - points to vtkStructuredPoints/vtkImageData (ellipsoidal splats) > * vtkShepardMethod = points to vtkStructuredPoints/vtkImageData (simple inverse weighting as Patrick describes) > * vtkDelaunay2D - points to vtkPolyData > * vtkDelaunay3D - points to vtkUnstructuredGrid > * vtkSurfaceReconstructionFilter - points to vtkStructuredPoints/vtkImageData (Hoppe's surface algorithm thanks to Tim Hutton) > * vtkImplicitModeller - vertex cells (you have to create a vertex per point) to vtkStructuredPoints/vtkImageData (distance function) > > There are probably a few more... > > Will Will: Thanks for your input. I managed to get something that look reasonably good using vtkShepardMethod. It's still a darn spinning 3D cube kind of thingy, but hopefully I can get it displayed as 2D soon. Thanks again, Chris From naveenpkumar at hotmail.com Thu Mar 22 22:56:27 2001 From: naveenpkumar at hotmail.com (Naveen Kumar Polapally) Date: Thu, 22 Mar 2001 22:56:27 Subject: [vtkusers] vtkSource::ComputeEstimatedPipelineMemorySize Message-ID: I have a problem where i have to estimate the size of the pipeline after every stage in the pipeline.When i used imaging pipelines i could use the method "ComputeEstimatedPipelineMemorySize".But I am unable to do so in case of Isosurfacing, even though vtkMarchingCubes has this method.When i try this method with vtkMarchingcubes all I get is Zero for size[0] and size[1].But i get the maximum pipeline size size[2] encountered so far during this propagation. How can i estimate the amount of data after the vtkPolyDataMapper and vtkActor , vtkRenderer, vtkRenderWindow ? thank you. naveen _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From audi2006 at singnet.com.sg Thu Mar 22 20:31:44 2001 From: audi2006 at singnet.com.sg (Audi) Date: Fri, 23 Mar 2001 09:31:44 +0800 Subject: [vtkusers] transformslice Message-ID: <003c01c0b339$05d189a0$38c115a5@audi> Hi, Anybody know where I can find the function transformslice that I found inside the function ReadVolume in vtkVolume16Reader.cxx? Audi -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Thu Mar 22 23:45:35 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST) Subject: [vtkusers] VTK24 vs. 312, quality and performance In-Reply-To: <200103222112.f2MLCVX28466@random.kcc.com> References: <200103222112.f2MLCVX28466@random.kcc.com> Message-ID: <15034.54511.289234.431724@monster.linux.in> hi, >>>>> "Tom" == B75826 writes: Tom> The first brings up the Interactor, and the second generates Tom> an animated gif file, showing the star rotating 360 degrees Tom> about its vertical axis. Here's the sizes of the two gif Tom> files, and as you can see, the one from VTK 3.1.2 is over 12 Tom> times the size of the gif from VTK 2.4: Tom> -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif Tom> -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif Tom> To give some measure of the difference in performance, using Tom> the Interactor, I left-clicked and dragged from the center to Tom> the edge of the rendering window, which of course causes the Tom> image to rotate. Then I timed the rotation through 360 Tom> degrees. The rendering from VTK 2.4 takes 16 seconds, and Tom> that from vtk312 72 seconds, 4.5 times longer. I havent looked at your code, but I read in the comments that you use ImageMagick to convert ppm's to gif. I think this is the source of the problem. Since Unisys patented the compression with gifs and started enforcing the patent, most sensible Linux distributions avoid shipping with libraries that use the compression. The new uncompressed gif library is usually called 'libungif'. I think that the basic problem is there. This is the reason why you see a file that is 12 times larger: No compression. I believe that your SGI has a libgif that does compression and ImageMagick on the SGI uses it. Older linux distro's also shipped with these kind of libraries. The rendering time may be slower simply because the gif files are so large and processing them will take longer. I cannot explain the poor quality of the rendering. Hope this helps, prabhu From xfpku at yahoo.com.sg Fri Mar 23 07:34:03 2001 From: xfpku at yahoo.com.sg (=?iso-8859-1?q?xiong=20fei?=) Date: Fri, 23 Mar 2001 20:34:03 +0800 (CST) Subject: [vtkusers] vtkLookupTable Message-ID: <20010323123403.75684.qmail@web5409.mail.yahoo.com> Hi, vtkusers I plan to use vtkLookupTable to transfer scalar data into colors. But when I use the public method GetColor or GetOpacity, the VTK system return error and say "there is no member function like GetColor/GetOpacity". However, I can find it in vtkLookupTable's manual page. Can somebody tell me what's the reason? Thanks a lot. Best Regards Peter __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ From smitty at kcc.com Fri Mar 23 08:25:51 2001 From: smitty at kcc.com (Tom G. Smith (B75826)) Date: Fri, 23 Mar 2001 07:25:51 -0600 (CST) Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance Message-ID: <200103231325.f2NDPqn29610@random.kcc.com> Prabhu hit the nail squarely on the head regarding the ImageMagick convert utility not using compression in RH7. The original ppm files were all 270015 bytes, and the gif files out of the convert utility are all 91492 bytes on the RH7 system, and range from 4178 to 8629 bytes on the older SGI system. That explains the gif file size differences, but still doesn't address the performance and rendering quality issues. My performance test was done with the VTK Interactor, and a GIF file was not involved there, just vtk: vtk star.tcl -- -c yellow. Regarding the rendering quality, there are artifacts that shouldn't be there, shadows have sharp edges where they should be blended, and objects are clipped where they shouldn't be. The best description I can give, it looks like Andy Warhol had an influence in the renderings from VTK 3.1.2 :-) Forwarded message: > From: "Prabhu Ramachandran" > Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST) > To: "Tom G. Smith (B75826)" , > "VTK users list" > Subject: [vtkusers] VTK24 vs. 312, quality and performance > > hi, > > >>>>> "Tom" == B75826 writes: > > Tom> The first brings up the Interactor, and the second generates > Tom> an animated gif file, showing the star rotating 360 degrees > Tom> about its vertical axis. Here's the sizes of the two gif > Tom> files, and as you can see, the one from VTK 3.1.2 is over 12 > Tom> times the size of the gif from VTK 2.4: > > Tom> -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif > Tom> -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif > > Tom> To give some measure of the difference in performance, using > Tom> the Interactor, I left-clicked and dragged from the center to > Tom> the edge of the rendering window, which of course causes the > Tom> image to rotate. Then I timed the rotation through 360 > Tom> degrees. The rendering from VTK 2.4 takes 16 seconds, and > Tom> that from vtk312 72 seconds, 4.5 times longer. > > I havent looked at your code, but I read in the comments that you use > ImageMagick to convert ppm's to gif. I think this is the source of > the problem. Since Unisys patented the compression with gifs and > started enforcing the patent, most sensible Linux distributions avoid > shipping with libraries that use the compression. The new > uncompressed gif library is usually called 'libungif'. I think that > the basic problem is there. This is the reason why you see a file > that is 12 times larger: No compression. I believe that your SGI has > a libgif that does compression and ImageMagick on the SGI uses it. > Older linux distro's also shipped with these kind of libraries. The > rendering time may be slower simply because the gif files are so large > and processing them will take longer. I cannot explain the poor > quality of the rendering. > > Hope this helps, > > prabhu > -- ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From naveenpkumar at hotmail.com Fri Mar 23 16:00:04 2001 From: naveenpkumar at hotmail.com (Naveen Kumar Polapally) Date: Fri, 23 Mar 2001 16:00:04 Subject: [vtkusers] vtkSource::ComputeEstimatedPipelineMemorySize Message-ID: hi, I did not get a reply to my previous mail ,so i am sending one more. I have the following stages in the Iso-surfacing pipeline. 1)vtkVolume16Reader 2)vtkMarchingCubes 3)vtkPolyDataMapper 4)vtkActor 5)vtkRenderer 6)vtkRenderWindow I want to get the size of the data after each stage.but only stages 1 and 2 have ComputeEstimatedOutputMemorySize().But I get proper result only in case of vtkVolume16Reader.vtkMarchingCubes gives me zero for the result.I think this is because this method was not over written in the class vtkStructuredPointsToPolyDataFilter.h. I also want to know if there is a way to find out the amount of data after each of the other stages.If any one has faced a similar problem, please reply. thanks. >From: "Naveen Kumar Polapally" >To: vtkusers at public.kitware.com >Subject: [vtkusers] vtkSource::ComputeEstimatedPipelineMemorySize >Date: Thu, 22 Mar 2001 22:56:27 > > >I have a problem where i have to estimate the size of the pipeline after >every stage in the pipeline.When i used imaging pipelines i could use the >method "ComputeEstimatedPipelineMemorySize".But I am unable to do so in >case >of Isosurfacing, even though vtkMarchingCubes has this method.When i try >this method with vtkMarchingcubes all I get is Zero for size[0] and >size[1].But i get the maximum pipeline size >size[2] encountered so far during this propagation. > >How can i estimate the amount of data after the vtkPolyDataMapper and >vtkActor , vtkRenderer, vtkRenderWindow ? > >thank you. > >naveen >_________________________________________________________________________ >Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From geov at netactive.co.za Fri Mar 23 16:02:39 2001 From: geov at netactive.co.za (Malcolm Drummond) Date: Fri, 23 Mar 2001 23:02:39 +0200 Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance References: <200103231325.f2NDPqn29610@random.kcc.com> Message-ID: <003501c0b3dc$f2642400$cefefea9@bart> I have also just upgraded from vtk24. Some apparent degradation may be due to a more generous automated camera clipping range in vtk31. On some of my datasets this results in polygon flickering with camera movement (as the depth resolution is not fine enough) and "ragged" intersections. My immediate fix was to introduce near range-clamping methods to the camera, as this affects depth resolution (I didn't want to mess with the renderers ResetCameraClippingRange() - but that might be another route to go). I've attached my files. The methods are ... // Description: // Set/Get clamping of ClippingRange[0]. Prevents value < ClipRangeNearClampValue. vtkSetMacro(ClippingRangeNearClamping,int); vtkGetMacro(ClippingRangeNearClamping,int); void ClippingRangeNearClampingOn(); void ClippingRangeNearClampingOff(); // Description: // Set/Get value to clamp ClippingRange[0] by. vtkSetMacro(ClippingRangeNearClampValue,double); vtkGetMacro(ClippingRangeNearClampValue,double); You can test if depth resolution is a problem via tcl script, just reset the camera range via the interactive command window and see if there's any remarkable change when you render (but call the render through the command window - using the mouse to force a render could cause the renderer to recompute the bounds and reset the camera to the old range again). I don't know if this is the best solution ... it just worked in a hurry. If the Gurus think it's OK I'll introduce ClippingRangeFarClamping etc.for completeness and submit the code. ----- Original Message ----- From: Tom G. Smith (B75826) To: Sent: Friday, March 23, 2001 3:25 PM Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance > Prabhu hit the nail squarely on the head regarding the ImageMagick > convert utility not using compression in RH7. The original ppm files > were all 270015 bytes, and the gif files out of the convert utility > are all 91492 bytes on the RH7 system, and range from 4178 to 8629 > bytes on the older SGI system. > > That explains the gif file size differences, but still doesn't address > the performance and rendering quality issues. My performance test was > done with the VTK Interactor, and a GIF file was not involved there, > just vtk: vtk star.tcl -- -c yellow. Regarding the rendering quality, > there are artifacts that shouldn't be there, shadows have sharp edges > where they should be blended, and objects are clipped where they shouldn't > be. The best description I can give, it looks like Andy Warhol had an > influence in the renderings from VTK 3.1.2 :-) > > Forwarded message: > > From: "Prabhu Ramachandran" > > Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST) > > To: "Tom G. Smith (B75826)" , > > "VTK users list" > > Subject: [vtkusers] VTK24 vs. 312, quality and performance > > > > hi, > > > > >>>>> "Tom" == B75826 writes: > > > > Tom> The first brings up the Interactor, and the second generates > > Tom> an animated gif file, showing the star rotating 360 degrees > > Tom> about its vertical axis. Here's the sizes of the two gif > > Tom> files, and as you can see, the one from VTK 3.1.2 is over 12 > > Tom> times the size of the gif from VTK 2.4: > > > > Tom> -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif > > Tom> -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif > > > > Tom> To give some measure of the difference in performance, using > > Tom> the Interactor, I left-clicked and dragged from the center to > > Tom> the edge of the rendering window, which of course causes the > > Tom> image to rotate. Then I timed the rotation through 360 > > Tom> degrees. The rendering from VTK 2.4 takes 16 seconds, and > > Tom> that from vtk312 72 seconds, 4.5 times longer. > > > > I havent looked at your code, but I read in the comments that you use > > ImageMagick to convert ppm's to gif. I think this is the source of > > the problem. Since Unisys patented the compression with gifs and > > started enforcing the patent, most sensible Linux distributions avoid > > shipping with libraries that use the compression. The new > > uncompressed gif library is usually called 'libungif'. I think that > > the basic problem is there. This is the reason why you see a file > > that is 12 times larger: No compression. I believe that your SGI has > > a libgif that does compression and ImageMagick on the SGI uses it. > > Older linux distro's also shipped with these kind of libraries. The > > rendering time may be slower simply because the gif files are so large > > and processing them will take longer. I cannot explain the poor > > quality of the rendering. > > > > Hope this helps, > > > > prabhu > > > > > -- > > -------------------------------------------------------------------------- ---- > This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. > > ============================================================================ == > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkCamera.h Type: application/octet-stream Size: 14688 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkCamera.cxx Type: application/octet-stream Size: 34628 bytes Desc: not available URL: From lisa.avila at kitware.com Sat Mar 24 04:26:30 2001 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Sat, 24 Mar 2001 04:26:30 -0500 Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance In-Reply-To: <003501c0b3dc$f2642400$cefefea9@bart> References: <200103231325.f2NDPqn29610@random.kcc.com> Message-ID: <4.3.2.20010324042333.01f76f20@pop.nycap.rr.com> Hello Malcolm, If under "normal" circumstances (meaning your data has reasonable bounds and is not pushing the limits of precision) you are seeing bad images due to the clipping range, then we probably should tweak ResetCameraClippingRange(). It does attempt to determine the depth buffer depth and base the minimum near value on that. How deep is your depth buffer? What are the near / far values when you see a bad image? Thanks, Lisa At 04:02 PM 3/23/2001, Malcolm Drummond wrote: >I have also just upgraded from vtk24. Some apparent degradation may be due >to a more generous automated camera clipping range in vtk31. On some of my >datasets this results in polygon flickering with camera movement (as the >depth resolution is not fine enough) and "ragged" intersections. My >immediate fix was to introduce near range-clamping methods to the camera, as >this affects depth resolution (I didn't want to mess with the renderers >ResetCameraClippingRange() - but that might be another route to go). I've >attached my files. > >The methods are ... > >// Description: > // Set/Get clamping of ClippingRange[0]. Prevents value < >ClipRangeNearClampValue. > vtkSetMacro(ClippingRangeNearClamping,int); > vtkGetMacro(ClippingRangeNearClamping,int); > void ClippingRangeNearClampingOn(); > void ClippingRangeNearClampingOff(); > > // Description: > // Set/Get value to clamp ClippingRange[0] by. > vtkSetMacro(ClippingRangeNearClampValue,double); > vtkGetMacro(ClippingRangeNearClampValue,double); > >You can test if depth resolution is a problem via tcl script, just reset the >camera range via the interactive command window and see if there's any >remarkable change when you render (but call the render through the command >window - using the mouse to force a render could cause the renderer to >recompute the bounds and reset the camera to the old range again). > >I don't know if this is the best solution ... it just worked in a hurry. If >the Gurus think it's OK I'll introduce ClippingRangeFarClamping etc.for >completeness and submit the code. > >----- Original Message ----- >From: Tom G. Smith (B75826) >To: >Sent: Friday, March 23, 2001 3:25 PM >Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance > > > > Prabhu hit the nail squarely on the head regarding the ImageMagick > > convert utility not using compression in RH7. The original ppm files > > were all 270015 bytes, and the gif files out of the convert utility > > are all 91492 bytes on the RH7 system, and range from 4178 to 8629 > > bytes on the older SGI system. > > > > That explains the gif file size differences, but still doesn't address > > the performance and rendering quality issues. My performance test was > > done with the VTK Interactor, and a GIF file was not involved there, > > just vtk: vtk star.tcl -- -c yellow. Regarding the rendering quality, > > there are artifacts that shouldn't be there, shadows have sharp edges > > where they should be blended, and objects are clipped where they shouldn't > > be. The best description I can give, it looks like Andy Warhol had an > > influence in the renderings from VTK 3.1.2 :-) > > > > Forwarded message: > > > From: "Prabhu Ramachandran" > > > Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST) > > > To: "Tom G. Smith (B75826)" , > > > "VTK users list" > > > Subject: [vtkusers] VTK24 vs. 312, quality and performance > > > > > > hi, > > > > > > >>>>> "Tom" == B75826 writes: > > > > > > Tom> The first brings up the Interactor, and the second generates > > > Tom> an animated gif file, showing the star rotating 360 degrees > > > Tom> about its vertical axis. Here's the sizes of the two gif > > > Tom> files, and as you can see, the one from VTK 3.1.2 is over 12 > > > Tom> times the size of the gif from VTK 2.4: > > > > > > Tom> -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif > > > Tom> -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif > > > > > > Tom> To give some measure of the difference in performance, using > > > Tom> the Interactor, I left-clicked and dragged from the center to > > > Tom> the edge of the rendering window, which of course causes the > > > Tom> image to rotate. Then I timed the rotation through 360 > > > Tom> degrees. The rendering from VTK 2.4 takes 16 seconds, and > > > Tom> that from vtk312 72 seconds, 4.5 times longer. > > > > > > I havent looked at your code, but I read in the comments that you use > > > ImageMagick to convert ppm's to gif. I think this is the source of > > > the problem. Since Unisys patented the compression with gifs and > > > started enforcing the patent, most sensible Linux distributions avoid > > > shipping with libraries that use the compression. The new > > > uncompressed gif library is usually called 'libungif'. I think that > > > the basic problem is there. This is the reason why you see a file > > > that is 12 times larger: No compression. I believe that your SGI has > > > a libgif that does compression and ImageMagick on the SGI uses it. > > > Older linux distro's also shipped with these kind of libraries. The > > > rendering time may be slower simply because the gif files are so large > > > and processing them will take longer. I cannot explain the poor > > > quality of the rendering. > > > > > > Hope this helps, > > > > > > prabhu > > > > > > > > > -- > > > > -------------------------------------------------------------------------- >---- > > This e-mail is intended for the use of the addressee(s) only and may >contain privileged, confidential, or proprietary information that is exempt >from disclosure under law. If you have received this message in error, >please inform us promptly by reply e-mail, then delete the e-mail and >destroy any printed copy. Thank you. > > > > >============================================================================ >== > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > From geov at netactive.co.za Sun Mar 25 06:59:41 2001 From: geov at netactive.co.za (Malcolm Drummond) Date: Sun, 25 Mar 2001 13:59:41 +0200 Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance Message-ID: <004d01c0b523$93d70900$cefefea9@bart> Hi Lisa I'd call my conditions highly unreasonable. I'm looking at sedimentary basins many kilometers in extent but some of my features and glyphs are only a couple of meters in size. I provide users with the ability to set extents but often they require regional views. The bad images typically occur on the polygons where I've wrapped tubes around sections of boreholes (radius ~2.5m, resolution 10) or glyphs (eg. I place cones at the borehole collars - users can pick these cones to retrieve additional borehole data). I must say I've never experienced any problems under 2.4 or with any of the vtk examples I try under 3.1. The card is nVidia GeForce2 (Creative) which claims a 32 bit z-buffer. With respect to the images I've sent you, the near/far values when the problem kicks in are around 0.15 and 1500 respectively - in this case clamping the near value to 1.0 gives acceptable results. >> then we probably should tweak ResetCameraClippingRange(). Sure, how about run-time tweaking? If the user could control some parameter/s within the method (perhaps the hard-wired "breathing space" parameters for starters) that would make a big difference in cases like this. I initially liked optional clamping of the near and far range values as this approach retained the dynamic behaviour when conditions were favourable. What do you suggest? Thanks Malcolm ----- Original Message ----- From: Lisa Sobierajski Avila To: Malcolm Drummond ; vtkusers Sent: Saturday, March 24, 2001 11:26 AM Subject: Re: [vtkusers] Re: VTK24 vs. 312, quality and performance > Hello Malcolm, > > If under "normal" circumstances (meaning your data has reasonable bounds > and is not pushing the limits of precision) you are seeing bad images due > to the clipping range, then we probably should tweak > ResetCameraClippingRange(). It does attempt to determine the depth buffer > depth and base the minimum near value on that. How deep is your depth > buffer? What are the near / far values when you see a bad image? > > Thanks, > > Lisa > > > At 04:02 PM 3/23/2001, Malcolm Drummond wrote: > >I have also just upgraded from vtk24. Some apparent degradation may be due > >to a more generous automated camera clipping range in vtk31. On some of my > >datasets this results in polygon flickering with camera movement (as the > >depth resolution is not fine enough) and "ragged" intersections. My > >immediate fix was to introduce near range-clamping methods to the camera, as > >this affects depth resolution (I didn't want to mess with the renderers > >ResetCameraClippingRange() - but that might be another route to go). I've > >attached my files. > > > >The methods are ... > > > >// Description: > > // Set/Get clamping of ClippingRange[0]. Prevents value < > >ClipRangeNearClampValue. > > vtkSetMacro(ClippingRangeNearClamping,int); > > vtkGetMacro(ClippingRangeNearClamping,int); > > void ClippingRangeNearClampingOn(); > > void ClippingRangeNearClampingOff(); > > > > // Description: > > // Set/Get value to clamp ClippingRange[0] by. > > vtkSetMacro(ClippingRangeNearClampValue,double); > > vtkGetMacro(ClippingRangeNearClampValue,double); > > > >You can test if depth resolution is a problem via tcl script, just reset the > >camera range via the interactive command window and see if there's any > >remarkable change when you render (but call the render through the command > >window - using the mouse to force a render could cause the renderer to > >recompute the bounds and reset the camera to the old range again). > > > >I don't know if this is the best solution ... it just worked in a hurry. If > >the Gurus think it's OK I'll introduce ClippingRangeFarClamping etc.for > >completeness and submit the code. > > > >----- Original Message ----- > >From: Tom G. Smith (B75826) > >To: > >Sent: Friday, March 23, 2001 3:25 PM > >Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance > > > > > > > Prabhu hit the nail squarely on the head regarding the ImageMagick > > > convert utility not using compression in RH7. The original ppm files > > > were all 270015 bytes, and the gif files out of the convert utility > > > are all 91492 bytes on the RH7 system, and range from 4178 to 8629 > > > bytes on the older SGI system. > > > > > > That explains the gif file size differences, but still doesn't address > > > the performance and rendering quality issues. My performance test was > > > done with the VTK Interactor, and a GIF file was not involved there, > > > just vtk: vtk star.tcl -- -c yellow. Regarding the rendering quality, > > > there are artifacts that shouldn't be there, shadows have sharp edges > > > where they should be blended, and objects are clipped where they shouldn't > > > be. The best description I can give, it looks like Andy Warhol had an > > > influence in the renderings from VTK 3.1.2 :-) > > > > > > Forwarded message: > > > > From: "Prabhu Ramachandran" > > > > Date: Fri, 23 Mar 2001 10:15:35 +0530 (IST) > > > > To: "Tom G. Smith (B75826)" , > > > > "VTK users list" > > > > Subject: [vtkusers] VTK24 vs. 312, quality and performance > > > > > > > > hi, > > > > > > > > >>>>> "Tom" == B75826 writes: > > > > > > > > Tom> The first brings up the Interactor, and the second generates > > > > Tom> an animated gif file, showing the star rotating 360 degrees > > > > Tom> about its vertical axis. Here's the sizes of the two gif > > > > Tom> files, and as you can see, the one from VTK 3.1.2 is over 12 > > > > Tom> times the size of the gif from VTK 2.4: > > > > > > > > Tom> -rw-r--r-- 1 smitty mst 65589 Mar 22 14:06 star24.gif > > > > Tom> -rw-r--r-- 1 smitty mst 805580 Mar 22 13:29 star312.gif > > > > > > > > Tom> To give some measure of the difference in performance, using > > > > Tom> the Interactor, I left-clicked and dragged from the center to > > > > Tom> the edge of the rendering window, which of course causes the > > > > Tom> image to rotate. Then I timed the rotation through 360 > > > > Tom> degrees. The rendering from VTK 2.4 takes 16 seconds, and > > > > Tom> that from vtk312 72 seconds, 4.5 times longer. > > > > > > > > I havent looked at your code, but I read in the comments that you use > > > > ImageMagick to convert ppm's to gif. I think this is the source of > > > > the problem. Since Unisys patented the compression with gifs and > > > > started enforcing the patent, most sensible Linux distributions avoid > > > > shipping with libraries that use the compression. The new > > > > uncompressed gif library is usually called 'libungif'. I think that > > > > the basic problem is there. This is the reason why you see a file > > > > that is 12 times larger: No compression. I believe that your SGI has > > > > a libgif that does compression and ImageMagick on the SGI uses it. > > > > Older linux distro's also shipped with these kind of libraries. The > > > > rendering time may be slower simply because the gif files are so large > > > > and processing them will take longer. I cannot explain the poor > > > > quality of the rendering. > > > > > > > > Hope this helps, > > > > > > > > prabhu > > > > > > > > > > > > > -- > > > > > > -------------------------------------------------------------------------- > >---- > > > This e-mail is intended for the use of the addressee(s) only and may > >contain privileged, confidential, or proprietary information that is exempt > >from disclosure under law. If you have received this message in error, > >please inform us promptly by reply e-mail, then delete the e-mail and > >destroy any printed copy. Thank you. > > > > > > > >=========================================================================== = > >== > > > > > > _______________________________________________ > > > This is the private VTK discussion list. > > > Please keep messages on-topic. Check the FAQ at: > > > > > Follow this link to subscribe/unsubscribe: > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmarbur at iti.upv.es Mon Mar 26 04:52:17 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Mon, 26 Mar 2001 11:52:17 +0200 (CEST) Subject: [vtkusers] Clipping objects? I need help Message-ID: Hi all. I have to apply some cutting planes to a group of objects and I don't know how to do it exactly. I have not much experience in VTK. I have tried two aproaches: The first is to apply each plane to the object using it as the function to vtkClipPolyData and vtkCutter in a loop, using the output of each iteration as input of the next. Something like this: vtkPolyData(Object) --> vtkClipPolyData -> vtkAppendPolyData -> (output 1) \-> vtkCutter -> ... --^ ^ | vtkPlane (1) (output 1) --> vtkClipPolyData -> vtkAppendPolyData -> (output 2) \-> vtkCutter -> ... --^ ^ | vtkPlane (2) (output n) --> vtkClipPolyData -> vtkAppendPolyData -> vtkPolyDataMapper -> vtkActor \-> vtkCutter -> ... --^ ^ | vtkPlane (2) The second is to use a vtkImplicitBoolean to apply all the planes at one time, using less vtkClipPolyData, vtkCutter, vtkStripper, ... objects. I think this aproach is better but I get bad results sometimes. I have a problem whith the number of objects because I can have much entities to which I have to apply the cutting planes so at one time I can have more than 100 objects (much more in the first aproach). This is not a good idea because my program runs slowly. I don't know how exactly do the cut. Is there another aproach better than these. Could you help me? I need a quick response. Thanks a lot. PS: Sorry for my english I think I'll learn it someday. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From audi2006 at singnet.com.sg Mon Mar 26 05:05:47 2001 From: audi2006 at singnet.com.sg (Audi) Date: Mon, 26 Mar 2001 18:05:47 +0800 Subject: [vtkusers] render 2D files into 3D Message-ID: <001301c0b5dc$581cf820$bebb15a5@audi> > Hi, > Anybody can help me now?(because I need this urgently) > I used vtkStructuredPoints to render few 2D data to form 3D > instead of using volume rendering. > But I have problem to render it. > This is the function for rendering few 2D files into 3D,=20 > can anybody find what is the problem with my function?I'm stuck. > I hope somebody can help me to find it. > > 1. m_XDim,m_YDim are file dimensions > 2. m_ZDim is the number of 2D files that has been read > 3. Number is the counter to count how many files that has been read > 4. m_XScale,m_YScale,m_ZScale are the file spacing > > My program is reading the 2D file one by one, every time reading one = > file it will > store it into vtkStructuredPoints. I also check with the = > vtkVolumeReader, it seems > correct, but my prog only can view 2D instead of 3D. It seems the = > storing part > not succesful, but I can't find why, so anybody can find it? > > Thanks a lot, > Audi > > BOOL CPointsVisualizationView::LoadRawDataMul(vtkStructuredPoints = > **StructuredPoints) > { > GetDocument()->Cleanup(); > > CWaitCursor *cursor; > CString FileName; > unsigned char *Image; > unsigned short *Image2; > int Number=1; > bool ImageFlag=false; > bool ImageFlag2=false; > cursor=new CWaitCursor; > CFileDialog filedialog(TRUE,"*.raw",NULL,NULL,"Raw Data File(*.raw) > |*.raw||",NULL); > > if(filedialog.DoModal()=IDCANCEL) > return FALSE; > > delete cursor; > cursor=NULL; > cursor=new CWaitCursor; > > FILE *fin; > > fin=fopen(filedialog.GetFileName(),"rb"); > > if(fin=NULL) > { > AfxMessageBox("I was not able to open the file..."); > return FALSE; > } > > FileName=filedialog.GetFileName(); > CInfoDialog datainfo; > if(datainfo.DoModal()=IDCANCEL) > return FALSE; > > if((*StructuredPoints)!=NULL) > { > (*StructuredPoints)->Delete(); > (*StructuredPoints)=NULL; > } > > (*StructuredPoints)=vtkStructuredPoints::New(); > > if(datainfo.m_ByteCount=1) > { > (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_CHAR); > Image=new unsigned = > char[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; > ImageFlag=true; > } > else > { > (*StructuredPoints)->SetScalarType(VTK_UNSIGNED_SHORT); > Image2=new unsigned = > short[datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim]; > ImageFlag2=true; > } > > > (*StructuredPoints)->SetDimensions(datainfo.m_XDim,datainfo.m_YDim,datain= > fo.m_ZDim); > = > (*StructuredPoints)->SetSpacing(datainfo.m_XScale,datainfo.m_YScale,datai= > nfo.m_ZScale); > > (*StructuredPoints)->AllocateScalars(); > > while (Number!=datainfo.m_ZDim) > { > if(datainfo.m_ByteCount=1) > { > fread(Image,1,datainfo.m_XDim*datainfo.m_YDim,fin); > fclose(fin); > > vtkScalars = > *scalars=(*StructuredPoints)->GetPointData()->GetScalars(); > scalars->SetDataType(VTK_UNSIGNED_CHAR); > scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); > > int i,j,k; > > for(k=Number-1;k for(j=0;j for(i=0;i { > > scalars->InsertScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_X= > Dim)+i,Image[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]);= > > } > } > else > > fread(Image2,2,datainfo.m_XDim*datainfo.m_YDim,fin); > fclose(fin); > > vtkScalars = > *scalars=(*StructuredPoints)->GetPointData()->GetScalars(); > scalars->SetDataType(VTK_UNSIGNED_SHORT); > scalars->Allocate(datainfo.m_XDim*datainfo.m_YDim*datainfo.m_ZDim); > > int i,j,k; > > for(k=Number-1;k for(j=0;j for(i=0;i { > > scalars->SetScalar(k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim= > )+i,Image2[k*(datainfo.m_YDim*datainfo.m_XDim)+j*(datainfo.m_XDim)+i]); > } > } > > if(filedialog.DoModal()=IDCANCEL) > return FALSE; > > fin=fopen(filedialog.GetFileName(),"rb"); > > if(fin=NULL) > { > AfxMessageBox("I was not able to open the file..."); > return FALSE; > } > > Number=Number+1; > } > > (*StructuredPoints)->Modified(); > > delete cursor; > cursor=NULL; > cursor=new CWaitCursor; > > > if (ImageFlag=true) > delete [] Image; > if (ImageFlag2=true) > delete [] Image2; > > cursor->Restore(); > delete cursor; > > return TRUE; > } > > > > ------=_NextPart_000_0022_01C0B165 > From Scott.Harris at wpafb.af.mil Mon Mar 26 11:39:16 2001 From: Scott.Harris at wpafb.af.mil (Harris Scott R CIV AFRL/SNJM) Date: Mon, 26 Mar 2001 11:39:16 -0500 Subject: [vtkusers] Mac OS X and VTK Message-ID: <9F17D7A52AA1D311988500104B2444E0030981A3@fszhtv44.wpafb.af.mil> There was some discussion a while back about trying to port VTK to Mac OS X. I, for one, would be very excited about running VTK on my Mac (right now I do it using LinuxPPC). Since Mac OS X has OpenGL I'm hoping that it won't be too much work. I'm going to try and compile on my iBook tonight to see what happens. Is anyone working on this? Is anyone else interested? Thanks, -Scott Harris From whv88240 at Bayou.UH.EDU Mon Mar 26 11:44:49 2001 From: whv88240 at Bayou.UH.EDU (Wolfram H Volpi) Date: Mon, 26 Mar 2001 10:44:49 -0600 (CST) Subject: [vtkusers] computing ray-sphere intersection Message-ID: Hello. Is there a VTK class that uses or provides a method for computing the intersection of a ray and a sphere? Is there a VTK method for computing the intersection of a ray and a cylinder? Thank you, Wolfv. From ystarrev at uwo.ca Mon Mar 26 11:59:25 2001 From: ystarrev at uwo.ca (Yves Starreveld) Date: Mon, 26 Mar 2001 11:59:25 -0500 Subject: [vtkusers] Mac OS X and VTK References: <9F17D7A52AA1D311988500104B2444E0030981A3@fszhtv44.wpafb.af.mil> Message-ID: <3ABF756D.D5AC678A@julian.uwo.ca> Hi, Scott, We corresponded about this a while back. I have a version of vtk running under OSX public beta. A little more than a recompile was necessary, namely new vtkRenderWindow and vtkRenderWindowInteractor subclasses to deal with the Quartz window manager. An ObjC - C++ bridge file is also necessary, since the current version of the compiler does not compile files which mix ObjC and C++. As soon as I get the release version of OSX installed, I will move this stuff over there, and fix the build process so that installation is less painful than it is now. I will post when this stuff is done. Yves Starreveld Harris Scott R CIV AFRL/SNJM wrote: > > There was some discussion a while back about trying to port VTK to > Mac OS X. I, for one, would be very excited about running VTK on > my Mac (right now I do it using LinuxPPC). > > Since Mac OS X has OpenGL I'm hoping that it won't be too much > work. I'm going to try and compile on my iBook tonight to see > what happens. > > Is anyone working on this? Is anyone else interested? > > Thanks, > -Scott Harris > > _______________________________________________ > 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 xfpku at yahoo.com.sg Mon Mar 26 12:05:34 2001 From: xfpku at yahoo.com.sg (=?iso-8859-1?q?xiong=20fei?=) Date: Tue, 27 Mar 2001 01:05:34 +0800 (CST) Subject: [vtkusers] vtkLookupTable - question? Message-ID: <20010326170534.56166.qmail@web5408.mail.yahoo.com> Dear vtkusers Sorry for posting this message again, but I am really in trouble now. What I want is to transfer a series of special data values into colors, like -1 for red, 0 for green and 1 for blue(just a color mapping). Is there any method provided by VTK to solve this problem? I have tried to use the public method GetColor or GetOpacity in vtkLookupTable or vtkColorTransferFunction, however, it returns an error report for invalid usage. So can someone tell me whether I have chosen a wrong way to do it? Best Regards Peter __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ From bartol at salk.edu Mon Mar 26 12:06:41 2001 From: bartol at salk.edu (Tom Bartol) Date: Mon, 26 Mar 2001 09:06:41 -0800 (PST) Subject: [vtkusers] Mac OS X and VTK In-Reply-To: <9F17D7A52AA1D311988500104B2444E0030981A3@fszhtv44.wpafb.af.mil> Message-ID: Yes, I'm very interested. We don't yet have a Mac running OS X in our lab but will in a couple of weeks. I plan to beat on it pretty hard as soon as we get it to evaluate its stability and performance. If I like it (and I probably will) chances are excellent I'll be getting one for myself. At that point I'll certainly want VTK to run on it. If more is help is required to get VTK running on OS X at that point you can count on me to chip in. So Please keep me posted. Several questions arise: What development/library environment is available on OS X? gcc? XFree86? Thanks! Tom On Mon, 26 Mar 2001, Harris Scott R CIV AFRL/SNJM wrote: > There was some discussion a while back about trying to port VTK to > Mac OS X. I, for one, would be very excited about running VTK on > my Mac (right now I do it using LinuxPPC). > > Since Mac OS X has OpenGL I'm hoping that it won't be too much > work. I'm going to try and compile on my iBook tonight to see > what happens. > > Is anyone working on this? Is anyone else interested? > > Thanks, > -Scott Harris > > _______________________________________________ > 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 bartol at salk.edu Mon Mar 26 12:07:45 2001 From: bartol at salk.edu (Tom Bartol) Date: Mon, 26 Mar 2001 09:07:45 -0800 (PST) Subject: [vtkusers] Mac OS X and VTK In-Reply-To: <3ABF756D.D5AC678A@julian.uwo.ca> Message-ID: Great work! Can't wait to get a machine so I can try this out. Tom On Mon, 26 Mar 2001, Yves Starreveld wrote: > Hi, Scott, > > We corresponded about this a while back. > > I have a version of vtk running under OSX public beta. > > A little more than a recompile was necessary, namely new vtkRenderWindow > and vtkRenderWindowInteractor subclasses to deal with the Quartz window > manager. An ObjC - C++ bridge file is also necessary, since the current > version of the compiler does not compile files which mix ObjC and C++. > > As soon as I get the release version of OSX installed, I will move this > stuff over there, and fix the build process so that installation is less > painful than it is now. > > I will post when this stuff is done. > > Yves Starreveld > > Harris Scott R CIV AFRL/SNJM wrote: > > > > There was some discussion a while back about trying to port VTK to > > Mac OS X. I, for one, would be very excited about running VTK on > > my Mac (right now I do it using LinuxPPC). > > > > Since Mac OS X has OpenGL I'm hoping that it won't be too much > > work. I'm going to try and compile on my iBook tonight to see > > what happens. > > > > Is anyone working on this? Is anyone else interested? > > > > Thanks, > > -Scott Harris > > > > _______________________________________________ > > 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 faulhabe at ipf.uni-karlsruhe.de Mon Mar 26 12:11:13 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Mon, 26 Mar 2001 19:11:13 +0200 Subject: [vtkusers] java improvements in vtk 3.2? Message-ID: <3ABF7831.213B5F69@ipf.uni-karlsruhe.de> Hi, in the FAQ of the kitware-site it says: 6.6. Running list of changes since VTK 3.1.2 Java support has been extended and improved. Since I have vtk 3.1.2 - can someone tell me some details about what is improved in vtk 3.2? Thanks! Karin From faulhabe at ipf.uni-karlsruhe.de Mon Mar 26 12:23:43 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Mon, 26 Mar 2001 19:23:43 +0200 Subject: [vtkusers] vtkLookupTable - question? References: <20010326170534.56166.qmail@web5408.mail.yahoo.com> Message-ID: <3ABF7B1F.3B09BEB4@ipf.uni-karlsruhe.de> Hi Peter, I don't know if this is what you want, but did you try SetTableValue in vtkLookupTable? Good luck Karin xiong fei wrote: > > Dear vtkusers > > Sorry for posting this message again, but I am > really in trouble now. What I want is to transfer a > series of special data values into colors, like -1 for > red, 0 for green and 1 for blue(just a color mapping). > Is there any method provided by VTK to solve this > problem? I have tried to use the public method > GetColor or GetOpacity in vtkLookupTable or > vtkColorTransferFunction, however, it returns an error > report for invalid usage. So can someone tell me > whether I have chosen a wrong way to do it? > > Best Regards > Peter > > __________________________________________________ > Do You Yahoo!? > Yahoo! Mail - Free email you can access from anywhere! > http://mail.yahoo.com.sg/ > > _______________________________________________ > 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 -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 E-Mail: faulhaber at ipf.uni-karlsruhe.de From scharver at evl.uic.edu Mon Mar 26 12:30:15 2001 From: scharver at evl.uic.edu (Chris Scharver) Date: Mon, 26 Mar 2001 11:30:15 -0600 (CST) Subject: [vtkusers] Mac OS X and VTK In-Reply-To: Message-ID: On Mon, 26 Mar 2001, Tom Bartol wrote: > Several questions arise: > What development/library environment is available on OS X? gcc? XFree86? I've been doing a little tinkering on OS X. CodeWarrior is available for development, but I prefer gcc since it lets me use all my UNIX code with fewer modifications. The development tools use an environment called Project Builder which provides an interface to gcc and debugging tools. XFree86 has been ported to natively run on the BSD-based kernel, although I haven't installed it yet. The environment for native OS X windowing is called Aqua, and a port of VTK should ideally create interface elements there. I'm not too familiar with its workings yet. To make things easier for me, I hope to move some of my graphics code to XFree86 first once I finish getting everything installed. -Chris __________________________________________________________________________ Chris Scharver EECS Graduate Student Electronic Visualization Laboratory EVL Phone: 312-996-3002 The University of Illinois at Chicago EVL FAX: 312-413-7585 1998-1999 UIC Men's Swimming and Diving From andrewc at vasci.com Mon Mar 26 12:43:59 2001 From: andrewc at vasci.com (Andrew Cunningham) Date: Mon, 26 Mar 2001 09:43:59 -0800 Subject: [vtkusers] OS X In-Reply-To: <200103261700.MAA03826@public.kitware.com> Message-ID: On 3/26/01 9:00 AM, "vtkusers-admin at public.kitware.com" wrote: > Since Mac OS X has OpenGL I'm hoping that it won't be too much > work. I'm going to try and compile on my iBook tonight to see > what happens. > > Is anyone working on this? Is anyone else interested? There are two ways to get VTK running on OSX. Both have been done. 99% of VTK compiles "as is" with ./configure;make as OS X is real Unix with the usual GNU tools (Gcc 2.95 et al.). As far as displaying graphics you either do .... X-Window port ------------- OS X does not use X-windows, so you need either - Tenons Xtools This means buying Xtools, but you get a supported , commercial quality X-server with full OpenGL/GLX support. - XFree86 Free but currently has some limitations. Have not tried this myself. The above X-Windows "port" could easily be merged into the standard VTK dist with some minor mods to the configure scripts. Cocoa port ---------- Avoid X-Windows entirely and use Cocoa. Requires the building of a Cocoa (Objective-C) bridge and "vtkxxxxRenderWindowxxx" etc classes for Quartz This has been done - see the previous post by Jon Harald Kaspersen Andrew ---------------------- Andrew Cunningham Vibro-Acoustic Sciences Inc http://www.vasci.com mailto: andrewc at vasci.com (858) 350 0057 x105 Intl: +1-858-350 0057 From xfpku at yahoo.com.sg Mon Mar 26 13:39:26 2001 From: xfpku at yahoo.com.sg (=?iso-8859-1?q?xiong=20fei?=) Date: Tue, 27 Mar 2001 02:39:26 +0800 (CST) Subject: [vtkusers] vtkLookupTable - question? In-Reply-To: <3ABF7B1F.3B09BEB4@ipf.uni-karlsruhe.de> Message-ID: <20010326183926.61404.qmail@web5408.mail.yahoo.com> Hi,karin Thank you for your advice. I think my question is that: provided a series of data values and a lookuptable, how can I manually transfer an individual number into the corresponding color? I should say that I don't want to define scalar and polydata objects in this case, the only thing required is a simple mapping. So is there any good method? Thanks a lot. Best Regards Peter --- Karin Faulhaber wrote: > Hi Peter, > > I don't know if this is what you want, but did you > try SetTableValue in > vtkLookupTable? > > Good luck > Karin > > > > xiong fei wrote: > > > > Dear vtkusers > > > > Sorry for posting this message again, but I am > > really in trouble now. What I want is to transfer > a > > series of special data values into colors, like -1 > for > > red, 0 for green and 1 for blue(just a color > mapping). > > Is there any method provided by VTK to solve this > > problem? I have tried to use the public method > > GetColor or GetOpacity in vtkLookupTable or > > vtkColorTransferFunction, however, it returns an > error > > report for invalid usage. So can someone tell me > > whether I have chosen a wrong way to do it? > > > > Best Regards > > Peter > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! Mail - Free email you can access from > anywhere! > > http://mail.yahoo.com.sg/ > > > > _______________________________________________ > > 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 > > -- > Karin Faulhaber > Universitaet Karlsruhe > Institut fuer Photogrammetrie und Fernerkundung > (IPF) > Englerstr. 7 > 76128 Karlsruhe > > Tel: 0721/608-3676 > E-Mail: faulhaber at ipf.uni-karlsruhe.de __________________________________________________ Do You Yahoo!? Yahoo! Mail ? Free email you can access from anywhere! http://mail.yahoo.com.sg/ From jbiddiscombe at skippingmouse.co.uk Mon Mar 26 14:17:01 2001 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Mon, 26 Mar 2001 20:17:01 +0100 Subject: [vtkusers] computing ray-sphere intersection In-Reply-To: Message-ID: <5.0.0.25.0.20010326201151.00ac2630@mail.btinternet.com> >Is there a VTK class that uses or provides a method for computing the >intersection of a ray and a sphere? Not directly as there is no vtkCell derivative like vtkSphere, but if your sphere is a polygon mesh, then use vtkCellLocator and IntersectWithLine Failing that, you can put together a ray/object test for sphere and cylinder quite easily as the intersection tests are well known >Is there a VTK method for computing the intersection of a ray and a >cylinder? see Graphics Gems for example of any one of many raytracing sites for code JB From cmarbur at iti.upv.es Tue Mar 27 03:50:44 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Tue, 27 Mar 2001 10:50:44 +0200 (CEST) Subject: [vtkusers] Re:a 'new' RedHAt 7.0 Compile Problem In-Reply-To: <17855.984738585@cs.ucl.ac.uk> Message-ID: Hello again. I have built VTK again on RedHat 7.0 in my work but I have the same problem. Here I don't have an NVIDIA accelerator. I had updated to glibc-2.2 and gcc-2.96-69 from rh70 updates (not had downgraded to gcc-2.95). I used the user.make file attached. I run configure as this: ./configure --prefix=$HOME/vtk3.2 --with-opengl --with-tkwidget --with-shared --with-tcl --with-java --with-python --with-patented --with-contrib I built using gmake and I get the error attached. I solved this error changing in tcl/Makefile file: vtk: Makefile tkAppInit.o ${TOOLKIT_DEPENDS} $(CXX) -o vtk tkAppInit.o \ -L. ${CXX_FLAGS} ${VTK_SHLIB_LINK_FLAGS} ${XLDFLAGS} ${LDLIBS} \ ${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm by vtk: Makefile tkAppInit.o ${TOOLKIT_DEPENDS} $(CXX) -o vtk tkAppInit.o \ -L. ${CXX_FLAGS} ${VTK_SHLIB_BUILD_FLAGS} ${XLDFLAGS} ${LDLIBS} \ ${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm OK. Now I run a tcl script and get a segmentation fault. If I run vtk with no scripts I get a segmentation fault too. At home, I built VTK on a Athlon 1000MHz with a NVIDIA Geforce2 MX card with RedHat 7.0 with glibc updated to 2.2 and with gcc downgraded to 2.95 and I had the same problems. On another computer, a Pentium 166MMX with a SVIRGE card with Mandrake 7.2, I get the same error and after solve it, I get a segmentation fault too. Here I run python some examples and run OK but not in tcl. I think that the problem is change ${VTK_SHLIB_LINK_FLAGS} by ${VTK_SHLIB_BUILD_FLAGS} on tcl/Makefile. What can I do to solve the error? I don't know what happends. Why I can't get a successfull compilation of VTK? What can I do? I think that I'm stupid. Thanks in advance. PS: Sorry for my english but I don't know exactly how to express myself. On Fri, 16 Mar 2001, Jason RILEY wrote: > Dear all, > > Just a note to say we now have vtk(tcl/tk) running under RedHat 7.0. > Thanks for the help. > > The solution for us was as follows(The key issue appears to have been, for us, > the RH7 compiler): > TCL/Tk - preinstalled 8.3 with RH7 > OpenGL - installed using the nvidia drivers available on their site for the > GEForceII > (plus: changing the line in the X config file for the graphics card > from > driver = "nv" to driver = "nvidia") > Compiler - downgrading to gcc2.95 with the glibc2.2 patch (rpms from redhat or > gcc site(can't remember which - sorry) > > NOTE: problem with this is we had to leave the separate kernel compiler on for > later use, so uninstalling the old rpms for gcc2.96(the RH7 release version) > didn't work to > well - it leaves some old libstdc libraries in /usr/lib the new libraries get > installed to /usr/local/lib to get round this we had to add /usr/local/lib to > LD_LIBRARY_PATH (or you could move the files/create the appropriate links). > > anyway all that said and done vtk is now running quite happily on RH7 > I don't know if this will be of help to anyone who still has problems but I > thought I'd send this in case it helps anyone. > > Thanks again for your help, > Jason > > ------------------------------------------------------------------------------ > Jason Riley PhD Student > Computer Science Department > University College London Telephone: ucl: 3876 > Gower Street external: +44 (0)20 7679 3876 > London > WC1E 6BT WebPage: http://www.cs.ucl.ac.uk/staff/J.Riley > UK > ------------------------------------------------------------------------------ > > > > > _______________________________________________ > 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 > -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- -------------- next part -------------- # this file can be used to override any of the values selected # by configure in system.make. At a minimum you should set # the following Tcl/Tk values if you are planning to use Tcl/Tk TCL_INCLUDE=-I/usr/include TCL_LIB=/usr/lib/libtclstub8.3.a TK_INCLUDE=-I/usr/include TK_LIB=/usr/lib/libtkstub8.3.a MESA_INCLUDE=-I/home/martink/storage/Mesa-1.2.6/include MESA_LIB=/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/libMesaGL.a # for python you must set this PYTHON_INCLUDES=-I/usr/include/python1.5 # Add additional CFLAGS and CXXFLAGS for compilation # uncomment the following two lines to set your own flags USER_CFLAGS = -O2 -D__NO_MATH_INLINES USER_CXXFLAGS = -O2 -D__NO_MATH_INLINES # if you want to try the java support you'll need to set the following # variables to match your environment and uncomment them # JDKHOME=/usr/java/jdk1.3 #JAVAC=${JDKHOME}/bin/javac JAVAC=/usr/bin/jikes JAR=${JDKHOME}/bin/jar JAVA_CLASS_HOME=/home/cmarbur/src/vtk3.2/java JAVAH=${JDKHOME}/bin/javah JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux JAVA_CXX_LIB=/usr/lib/libiberty.a /usr/lib/gcc-lib/i386-redhat-linux/2.96/libstdc++.a /usr/lib/gcc-lib/i386-redhat-linux/2.96/libgcc.a -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: vtk-error.txt URL: From me at andy.cx Tue Mar 27 08:07:56 2001 From: me at andy.cx (Lego Andy) Date: Tue, 27 Mar 2001 08:07:56 -0500 Subject: [vtkusers] VTK in Debian Message-ID: <20010327080756.645c3a73.me@andy.cx> Hello! I would like to share with all of you my pleasent surprise when I performed update of my Debian GNU/Linux system and I saw VTK packages in there. So, thank you all of you who made this happen. Andy -- /\ | | |~\ \ / ------------------------------------------------ / \ |\ | | | \/ / e-mail: andy at x0.org )\._.,--....,'``. |--| | \| | | / / ICQ: 27889915 /, _.. \ _\ (`._ ,. | | | | |_/ / / http://andy.x0.org `._.-(,_..'--(,_..'`-.;.' ---------------------- From dgobbi at irus.rri.on.ca Tue Mar 27 12:15:39 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Tue, 27 Mar 2001 12:15:39 -0500 (EST) Subject: [vtkusers] VTK in Debian In-Reply-To: <20010327080756.645c3a73.me@andy.cx> Message-ID: On Tue, 27 Mar 2001, Lego Andy wrote: > Hello! > > I would like to share with all of you my pleasent surprise when I performed > update of my Debian GNU/Linux system and I saw VTK packages in there. > > So, thank you all of you who made this happen. > > Andy You have Prabhu Ramachandran to thank for that. - David From s986292 at mailserv.cuhk.edu.hk Tue Mar 27 12:41:00 2001 From: s986292 at mailserv.cuhk.edu.hk (tony) Date: Wed, 28 Mar 2001 01:41:00 +0800 Subject: [vtkusers] How to create multi-render? Message-ID: <001201c0b6e5$16638200$1cf9bd89@hon> Hello, I want to write a VTK program with multi-render in C++. But only the last one render (ren4) can display, others render is totoally black. Does anybody know why? Tony Chung My code. ------------------------------------------------------------- void main( int argc, char *argv[] ) { int i; // create a rendering window and both renderers renWin = vtkRenderWindow::New(); vtkRenderer *ren1 = vtkRenderer::New(); // main window renWin->AddRenderer(ren1); vtkRenderer *ren2 = vtkRenderer::New(); // sub-win 1 renWin->AddRenderer(ren2); vtkRenderer *ren3 = vtkRenderer::New(); // sub-win 2 renWin->AddRenderer(ren3); vtkRenderer *ren4 = vtkRenderer::New(); // sub-win 3 renWin->AddRenderer(ren4); iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // read the volume v16 = vol_reader(); // ********* create a b/w lookup table ************* bwLut = bw_table(); c = 32; // ********* create coronal plane ****************** coronal = cor_plane(v16,c,bwLut); coronal->PickableOff(); a = 32; // ********* create axial plane ******************** axial = axi_plane(v16,a,bwLut); axial->PickableOff(); s = 32; // ********* create sagittal plane ***************** sagittal= sag_plane(v16,s,bwLut); sagittal->PickableOff(); /**************************************************************/ // assign our actor to both renderers ren1->AddActor(sagittal); ren1->AddActor(axial); ren1->AddActor(coronal); ren2->AddActor(axial); ren3->AddActor(sagittal); ren4->AddActor(coronal); // set the size of our window renWin->SetSize(600,300); vtkCamera *aCamera = vtkCamera::New(); aCamera->SetViewUp (0, 0, -1); aCamera->SetPosition (0, 10, 0); aCamera->SetFocalPoint (0, 0, 0); aCamera->ComputeViewPlaneNormal(); ren1->SetActiveCamera(aCamera); ren1->ResetCamera (); aCamera->Dolly(1.5); ren1->ResetCameraClippingRange(); // set the viewports and background of the renderers ren1->SetViewport(0,0,0.6,1); ren2->SetViewport(0.6,0,1,0.33); ren3->SetViewport(0.6,0.33,1,0.66); ren4->SetViewport(0.6,0.66,1,1); ren1->SetBackground(0.2,0.3,0.5); ren2->SetBackground(0.2,0.5,0.3); ren3->SetBackground(0.4,0.2,0.1); ren4->SetBackground(0.3,0.7,0.6); // draw the resulting scene renWin->Render(); //_beginthread((void(*)(void*))updateplane,STACK_SIZE,NULL); // make one view 90 degrees fromother //ren1->GetActiveCamera()->Azimuth(90); picker = vtkCellPicker::New(); iren->SetPicker(picker); iren->SetEndPickMethod( &annotatePick, (void *)NULL ); iren->Start(); // Clean up ren1->Delete(); ren2->Delete(); ren3->Delete(); ren4->Delete(); renWin->Delete(); } -------------- next part -------------- An HTML attachment was scrubbed... URL: From will.schroeder at kitware.com Tue Mar 27 16:40:11 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 27 Mar 2001 16:40:11 -0500 Subject: [vtkusers] Unicam Interactor Style Message-ID: <5.0.2.1.0.20010327163113.029d2a70@pop.nycap.rr.com> Hi Folks- Andrew Forsberg of Brown University has graciously donated the vtkInteractorStyleUnicam class. This interactor style implements the interaction described in the paper "UniCam - 2D Gestural Controls for 3D Environments" by Robert Zeleznik and Andrew Forsberg of Brown. The class implements camera panning, translation, and zooming by mapping to a SINGLE mouse button; some camera movements are done relative to features of interest. The paper can be found at ftp://ftp.cs.brown.edu/pub/papers/graphics/research/unicam.pdf The class has been checked into vtk/contrib and is available via CVS or tomorrows nightly release. The Tcl script vtk/contrib/examplesTcl/unicam.tcl shows how to use it. Will Dr. William J. Schroeder Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 (Phone & Fax) -------------- next part -------------- An HTML attachment was scrubbed... URL: From pushkare at students.uiuc.edu Tue Mar 27 19:25:35 2001 From: pushkare at students.uiuc.edu (Gala'Vi and Liss @ Mainframe Country) Date: Tue, 27 Mar 2001 18:25:35 -0600 (CST) Subject: [vtkusers] a polydata question Message-ID: Hi, I have a question about grabbing polydata and its scalar info from a vtk application. So say I have a vtkPolyData() object, like an output of vtkMarchingCubes for example. What I want is some way to dump the polydata set into a file. So dump the vertices, normals, polygons, the whole shebang. Anybody have any ideas on what would be the best way of doing this? TIA -- Wind //*********************************************** -- There is always a way, you just have to find it. (B.Hambly "Children Of The Jedi") //*********************************************** From wlorens1 at nycap.rr.com Tue Mar 27 19:45:30 2001 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Tue, 27 Mar 2001 19:45:30 -0500 Subject: [vtkusers] a polydata question In-Reply-To: Message-ID: <4.2.2.20010327194512.016d5760@pop.nycap.rr.com> vtkPolyDataWriter At 06:25 PM 3/27/01 -0600, Gala'Vi and Liss @ Mainframe Country wrote: >Hi, > >I have a question about grabbing polydata and its scalar info from a vtk >application. So say I have a vtkPolyData() object, like an output of >vtkMarchingCubes for example. What I want is some way to dump the polydata >set into a file. So dump the vertices, normals, polygons, the whole >shebang. > >Anybody have any ideas on what would be the best way of doing this? > >TIA > >-- Wind > >//*********************************************** > -- There is always a way, > you just have to find it. > (B.Hambly "Children Of The Jedi") >//*********************************************** > > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From pushkare at students.uiuc.edu Tue Mar 27 20:21:56 2001 From: pushkare at students.uiuc.edu (Gala'Vi and Liss @ Mainframe Country) Date: Tue, 27 Mar 2001 19:21:56 -0600 (CST) Subject: [vtkusers] vtkPolyDataWriter's output Message-ID: Hi, I have a question about the vtkPolyDataWriter's output. Which order does it output the connectivity lists for polygons, triangle strips, etc.: CW or CCW? TIA -- Wind //*********************************************** -- There is always a way, you just have to find it. (B.Hambly "Children Of The Jedi") //*********************************************** From prabhu at aero.iitm.ernet.in Tue Mar 27 22:25:22 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 28 Mar 2001 08:55:22 +0530 (IST) Subject: [vtkusers] VTK in Debian In-Reply-To: References: <20010327080756.645c3a73.me@andy.cx> Message-ID: <15041.22946.533670.192211@monster.linux.in> hi, >>>>> "David" == David Gobbi writes: David> You have Prabhu Ramachandran to thank for that. This is great! However, the maintainer didnt tell me about this and the packages wont be that great. I will let him know about my efforts and see if he can use them instead. Thanks for letting me know. I have been searching for a maintainer... :) prabhu From prabhu at aero.iitm.ernet.in Tue Mar 27 22:48:04 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 28 Mar 2001 09:18:04 +0530 (IST) Subject: [vtkusers] VTK in Debian In-Reply-To: <15041.22946.533670.192211@monster.linux.in> References: <20010327080756.645c3a73.me@andy.cx> <15041.22946.533670.192211@monster.linux.in> Message-ID: <15041.24308.622582.153600@monster.linux.in> hi, >>>>> "Prabhu" == Prabhu Ramachandran writes: Prabhu> This is great! However, the maintainer didnt tell me Prabhu> about this and the packages wont be that great. I will Well, I really cant say that either. My sincere apologies if I inadvertently hurt someone in the process. In any case I have contacted Maitland Bottoms who is the maintainer and will see if we can collaborate on this. prabhu From smitty at kcc.com Wed Mar 28 08:07:27 2001 From: smitty at kcc.com (Tom G. Smith (B75826)) Date: Wed, 28 Mar 2001 07:07:27 -0600 (CST) Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance Message-ID: <200103281307.f2SD7Rv13158@random.kcc.com> Based on a response from Malcolm Drummond regarding clipping, I did some experimenting, and discovered this helps my renderings considerably: cmd [list\ "eval {[ren1 GetActiveCamera] SetPosition } 0 0 1500"\ "eval {[ren1 GetActiveCamera] SetThickness } 1000.0"] I do this just before entering the loop to generate the ppm files showing the scene rotated in increments about 360 degrees. I also recompiled VTK specifying --with-opengl rather than --with-mesa, and this seems to've cleaned up most of the undesireable artifacts. The rendering speed of VTK 3.1.2 is still 4.5 times slower than VTK 2.4, but I can live with that, as long as the quality is comparable. ------------------------------------------------------------------------------ This e-mail is intended for the use of the addressee(s) only and may contain privileged, confidential, or proprietary information that is exempt from disclosure under law. If you have received this message in error, please inform us promptly by reply e-mail, then delete the e-mail and destroy any printed copy. Thank you. ============================================================================== From ben.held at staarinc.com Wed Mar 28 08:46:36 2001 From: ben.held at staarinc.com (Ben Held) Date: Wed, 28 Mar 2001 07:46:36 -0600 Subject: [vtkusers] vtkLightKit Message-ID: Does anyone have an example of how to use vtkLightKit? Ben L. Held Simulation Technology & Applied Research, Inc. 11520 N. Port Washington Rd. Suite 101B Mequon, WI 53092 Phone: (262) 240-0291 x101 FAX: (262) 240-0294 e-mail: ben.held at staarinc.com web: http://www.staarinc.com From heiland at ncsa.uiuc.edu Wed Mar 28 09:17:39 2001 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Wed, 28 Mar 2001 08:17:39 -0600 Subject: [vtkusers] vtkPolyDataWriter's output In-Reply-To: "Gala'Vi and Liss @ Mainframe Country" "[vtkusers] vtkPolyDataWriter's output" (Mar 27, 7:21pm) References: Message-ID: <1010328081739.ZM28047@sangamon.ncsa.uiuc.edu> On Mar 27, 7:21pm, Gala'Vi and Liss @ Mainframe Country wrote: > Subject: [vtkusers] vtkPolyDataWriter's output > > Hi, > > I have a question about the vtkPolyDataWriter's output. Which order does > it output the connectivity lists for polygons, triangle strips, etc.: > > CW or CCW? In whatever order you (or a filter) create them in the PolyData. You can certainly mix both CW and CCW polys in a PD/PDWriter. But I suspect your question is really about a particular filter. One simple experiment would be to create a vtkStructuredPoints, e.g.: # vtk DataFile Version 1.0 simple 2x2x2 mtx ASCII DATASET STRUCTURED_POINTS DIMENSIONS 2 2 2 ORIGIN 0 0 0 SPACING 1 1 1 POINT_DATA 8 SCALARS sval float LOOKUP_TABLE default 0.0 0.0 0.0 0.0 1.0 1.0 1.0 1.0 read in this dataset, apply a contour filter to it with a value=0.5, and write out the Output of the filter using a vtkPolyDataWriter. Keep in mind the vtkPolyDataNormals class and its "flip" methods. --Randy From p.a.rubini at cranfield.ac.uk Wed Mar 28 10:53:18 2001 From: p.a.rubini at cranfield.ac.uk (Philip Rubini) Date: Wed, 28 Mar 2001 16:53:18 +0100 Subject: [vtkusers] plot3d binary format (old question ?) Message-ID: <003101c0b79f$3551cbd0$8944fa8a@pc.cranfield.ac.uk> I am sure that this question has been asked many times but there is no record in the archive. >From my (limited) understanding of the source for the plot3d reader, is it true that it is hard coded such that the originating data is always assumed to be in BigEndian format. I can see why this might be done such that the example plot3d data files will work on any platform. But working with the binary only distribution on a pc this becomes somewhat more complicated. Am I missing something, is there a method to select the binary 'endian format for use with plot3d data formats, or is the only alternative to work with the source directly ? Phil. Rubini From halazar at media.mit.edu Wed Mar 28 11:57:24 2001 From: halazar at media.mit.edu (Michael Halle) Date: Wed, 28 Mar 2001 11:57:24 -0500 Subject: [vtkusers] vtkLightKit In-Reply-To: Your message of "Wed, 28 Mar 2001 07:46:36 CST." Message-ID: <200103281657.LAA04651@ml.media.mit.edu> Look at contrib/examplesTcl/LightKitViewer.tcl The basic idea is (iren is interactor, ren1 is renderer) iren LightFollowCameraOff ren1 LightFollowCameraOn vtkLightKit lightKit lightKit AddLightsToRenderer ren1 After that, adjust the key light, fill light, and headlight positions, relative intensities, and warmth as described in the help in the above example. --Mike From ben.held at staarinc.com Wed Mar 28 12:08:30 2001 From: ben.held at staarinc.com (Ben Held) Date: Wed, 28 Mar 2001 11:08:30 -0600 Subject: [vtkusers] vtkLightKit In-Reply-To: <200103281657.LAA04651@ml.media.mit.edu> Message-ID: Michael, I am doing this in C++. If I just create a new vtkLightKit, add it to the renderer and call LightFollowCameraOn(), the object I display are black. Is this because the defaults for a new light kit are not appropriate? The documentation does not provide any info on proper values for the various adjustment calls provided in vtkLightKit. Perhaps it is easier to use vtkLight? Ben -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Michael Halle Sent: Wednesday, March 28, 2001 10:57 AM To: Ben Held Cc: vtkusers at public.kitware.com Subject: Re: [vtkusers] vtkLightKit Look at contrib/examplesTcl/LightKitViewer.tcl The basic idea is (iren is interactor, ren1 is renderer) iren LightFollowCameraOff ren1 LightFollowCameraOn vtkLightKit lightKit lightKit AddLightsToRenderer ren1 After that, adjust the key light, fill light, and headlight positions, relative intensities, and warmth as described in the help in the above example. --Mike _______________________________________________ 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 gte552m at prism.gatech.edu Wed Mar 28 12:22:27 2001 From: gte552m at prism.gatech.edu (David D. Marshall) Date: Wed, 28 Mar 2001 12:22:27 -0500 Subject: [vtkusers] plot3d binary format (old question ?) In-Reply-To: <003101c0b79f$3551cbd0$8944fa8a@pc.cranfield.ac.uk> References: <003101c0b79f$3551cbd0$8944fa8a@pc.cranfield.ac.uk> Message-ID: <01032812222700.24011@pc-mm-dell> What we did was use the plot3d reader as an example implementation for our own reader that could swap bytes, handle single/double precission, etc. We needed a lot more flexibility when reading the data files in and converting the data to other flow properties (i.e. needing thermally perfect gas model, curve fit property models). I don't know of an automatic way of determining the endianess of the data file except by having the user set it :(, but once you know that (and the endianess of the platform you're running on), then you can use VTK's byte swapping code to do the swapping as needed. On Wednesday 28 March 2001 10:53, Philip Rubini wrote: > I am sure that this question has been asked many times but there is no > record in the archive. > > >From my (limited) understanding of the source for the plot3d reader, is it > > true that it is hard coded such that the originating data is always assumed > to be in BigEndian format. I can see why this might be done such that the > example plot3d data files will work on any platform. But working with the > binary only distribution on a pc this becomes somewhat more complicated. Am > I missing something, is there a method to select the binary 'endian format > for use with plot3d data formats, or is the only alternative to work with > the source directly ? > > Phil. Rubini -- David D. Marshall ARTLab System Administrator/GRA Georgia Institute of Technology, Atlanta Georgia, 30332 http://www.ae.gatech.edu/research/artlab/artl/artlab.html mailto:gte552m at prism.gatech.edu The legitimate object of government is to do for a community of people whatever they need to have done, but cannot do at all, or cannot so well do, for themselves in their separate and individual capacities. -- Abraham Lincoln From wjn1 at utah.edu Wed Mar 28 14:59:35 2001 From: wjn1 at utah.edu (Will Newman) Date: Wed, 28 Mar 2001 12:59:35 -0700 Subject: [vtkusers] extracting exterior bone surfaces Message-ID: <3AC242A7.815D1DCC@utah.edu> We import volumetric CT data into VTK to create bone surfaces using marching cubes. We are looking for ways to extract only the external bone surfaces, but are having problems eliminating the inside bone surface. There are two main surfaces, the endosteal and periosteal surfaces of the bone. We have used thresholding to isolate a nice binary image but because of small interconnections between the surfaces we are unable to isolate the periosteal (exterior) surface by using the connectivity filter. Is there any way we can further preprocess the image data to obtain just the exterior ring of voxels *before* running marching cubes? Or, are there other strategies we can use to isolate just the exterior surface *after* running marching cubes? Thanks. -- Will Newman Musculoskeletal Research Laboratories University of Utah wjn1 at utah.edu http://hodad.bioen.utah.edu/~weiss/mrl From goodwin.lawlor at ucd.ie Wed Mar 28 16:41:45 2001 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 28 Mar 2001 22:41:45 +0100 Subject: [vtkusers] extracting exterior bone surfaces In-Reply-To: <3AC242A7.815D1DCC@utah.edu> Message-ID: One image pre-processing method that may work is "Opening" - erosion (to break the connecting voxels) followed by dilation (to fill volume back out again). The classes vtkImageContinuousErode3D & vtkImageContinuousDilate3D in series before a mcubes filter (and gaussiansmooth filter) would do it. vtkImageDilateErode3D on its own may do it... -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Will Newman Sent: 28 March 2001 21:00 To: vtkusers at public.kitware.com Subject: [vtkusers] extracting exterior bone surfaces We import volumetric CT data into VTK to create bone surfaces using marching cubes. We are looking for ways to extract only the external bone surfaces, but are having problems eliminating the inside bone surface. There are two main surfaces, the endosteal and periosteal surfaces of the bone. We have used thresholding to isolate a nice binary image but because of small interconnections between the surfaces we are unable to isolate the periosteal (exterior) surface by using the connectivity filter. Is there any way we can further preprocess the image data to obtain just the exterior ring of voxels *before* running marching cubes? Or, are there other strategies we can use to isolate just the exterior surface *after* running marching cubes? Thanks. -- Will Newman Musculoskeletal Research Laboratories University of Utah wjn1 at utah.edu http://hodad.bioen.utah.edu/~weiss/mrl _______________________________________________ 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 maas at annastift.de Thu Mar 29 02:40:27 2001 From: maas at annastift.de (Maas) Date: Thu, 29 Mar 2001 09:40:27 +0200 Subject: [vtkusers] Re: How to create multi-render? (tony) In-Reply-To: <200103281700.MAA02397@public.kitware.com> Message-ID: <000101c0b823$86880080$51f81dc1@k2bio2> Hi! I had the same problems a few month ago. It think it will work if you just take three renderers. That won't solve all your problems, but it may be a little help. Could it be that you try to make your own medical3.cxx? :-) Stefan From cmarbur at iti.upv.es Thu Mar 29 02:01:45 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Thu, 29 Mar 2001 09:01:45 +0200 (CEST) Subject: [vtkusers] Re:a 'new' RedHAt 7.0 Compile Problem In-Reply-To: Message-ID: Hi again. Yes, I'm stupid. I have been able to compile VTK on RH7.0 with updates from RedHat website. When you unzip and untar the source of vtkm the file "user.make" has two lines of environment variables for TCL/TK that point to their libraries. They point to files with ".a" extension. So, when I tried to compile VTK, I searched this libraries in the rpm's of TCL/TK. I found two libraries libtclstub8.3.a and libtkstub8.3.a to which I set the variables. Yesterday, I tried compile VTK again, but this time I set TCL_LIB and TK_LIB to libtcl.so and libtk.so files instead of these with ".a". I run configure and gmake again and everything was right. No error message and no segmentation fault. I'm a new person. If somebody has the same problem that's the solution. Sorry for all and thanks. Greetings. On Tue, 27 Mar 2001, Carlos Martinez Burgos wrote: > Hello again. > > I have built VTK again on RedHat 7.0 in my work but I have the same > problem. Here I don't have an NVIDIA accelerator. I had updated to > glibc-2.2 and gcc-2.96-69 from rh70 updates (not had downgraded to > gcc-2.95). > > I used the user.make file attached. > I run configure as this: > ./configure --prefix=$HOME/vtk3.2 --with-opengl --with-tkwidget > --with-shared --with-tcl --with-java --with-python --with-patented > --with-contrib > > I built using gmake and I get the error attached. > > I solved this error changing in tcl/Makefile file: > vtk: Makefile tkAppInit.o ${TOOLKIT_DEPENDS} > $(CXX) -o vtk tkAppInit.o \ > -L. ${CXX_FLAGS} ${VTK_SHLIB_LINK_FLAGS} ${XLDFLAGS} ${LDLIBS} \ > ${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm > > by > > vtk: Makefile tkAppInit.o ${TOOLKIT_DEPENDS} > $(CXX) -o vtk tkAppInit.o \ > -L. ${CXX_FLAGS} ${VTK_SHLIB_BUILD_FLAGS} ${XLDFLAGS} ${LDLIBS} \ > ${XLIBS} -lXext -lXt ${X_PRE_LIBS} -lX11 ${X_EXTRA_LIBS} -lm > > OK. > > Now I run a tcl script and get a segmentation fault. If I run vtk with no > scripts I get a segmentation fault too. > > At home, I built VTK on a Athlon 1000MHz with a NVIDIA Geforce2 MX card > with RedHat 7.0 with glibc updated to 2.2 and with gcc downgraded to 2.95 > and I had the same problems. > > On another computer, a Pentium 166MMX with a SVIRGE card with Mandrake > 7.2, I get the same error and after solve it, I get a segmentation fault > too. Here I run python some examples and run OK but not in tcl. > > I think that the problem is change ${VTK_SHLIB_LINK_FLAGS} by > ${VTK_SHLIB_BUILD_FLAGS} on tcl/Makefile. What can I do to solve the > error? > > I don't know what happends. Why I can't get a successfull compilation of > VTK? What can I do? I think that I'm stupid. > > Thanks in advance. > > PS: Sorry for my english but I don't know exactly how to express myself. > > > On Fri, 16 Mar 2001, Jason RILEY wrote: > > > Dear all, > > > > Just a note to say we now have vtk(tcl/tk) running under RedHat 7.0. > > Thanks for the help. > > > > The solution for us was as follows(The key issue appears to have been, for us, > > the RH7 compiler): > > TCL/Tk - preinstalled 8.3 with RH7 > > OpenGL - installed using the nvidia drivers available on their site for the > > GEForceII > > (plus: changing the line in the X config file for the graphics card > > from > > driver = "nv" to driver = "nvidia") > > Compiler - downgrading to gcc2.95 with the glibc2.2 patch (rpms from redhat or > > gcc site(can't remember which - sorry) > > > > NOTE: problem with this is we had to leave the separate kernel compiler on for > > later use, so uninstalling the old rpms for gcc2.96(the RH7 release version) > > didn't work to > > well - it leaves some old libstdc libraries in /usr/lib the new libraries get > > installed to /usr/local/lib to get round this we had to add /usr/local/lib to > > LD_LIBRARY_PATH (or you could move the files/create the appropriate links). > > > > anyway all that said and done vtk is now running quite happily on RH7 > > I don't know if this will be of help to anyone who still has problems but I > > thought I'd send this in case it helps anyone. > > > > Thanks again for your help, > > Jason > > > > ------------------------------------------------------------------------------ > > Jason Riley PhD Student > > Computer Science Department > > University College London Telephone: ucl: 3876 > > Gower Street external: +44 (0)20 7679 3876 > > London > > WC1E 6BT WebPage: http://www.cs.ucl.ac.uk/staff/J.Riley > > UK > > ------------------------------------------------------------------------------ > > > > > > > > > > _______________________________________________ > > 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 > > > > -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Thu Mar 29 04:45:57 2001 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Thu, 29 Mar 2001 04:45:57 -0500 (EST) Subject: [vtkusers] Re:a 'new' RedHAt 7.0 Compile Problem In-Reply-To: Message-ID: Hi Carlos, The best way to set up user.make under Linux (or under any UNIX that has tcl/tk properly installed) is TCL_INCLUDE= TCL_LIB= -ltcl8.0 TK_INCLUDE= TK_LIB= -ltk8.0 If you do this, then VTK will should be able to find the libraries as long as they are located in the library path and will also be able to load either .a or .so libraries just fine. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 29 Mar 2001, Carlos Martinez Burgos wrote: > Hi again. > > Yes, I'm stupid. > > I have been able to compile VTK on RH7.0 with updates from RedHat website. > > When you unzip and untar the source of vtkm the file "user.make" has two > lines of environment variables for TCL/TK that point to their > libraries. They point to files with ".a" extension. So, when I tried to > compile VTK, I searched this libraries in the rpm's of TCL/TK. I found two > libraries libtclstub8.3.a and libtkstub8.3.a to which I set the variables. > > Yesterday, I tried compile VTK again, but this time I set TCL_LIB and > TK_LIB to libtcl.so and libtk.so files instead of these with ".a". I run > configure and gmake again and everything was right. No error message and > no segmentation fault. > > I'm a new person. If somebody has the same problem that's the > solution. Sorry for all and thanks. > > Greetings. From karlson at stu.mech.titech.ac.jp Thu Mar 29 04:51:00 2001 From: karlson at stu.mech.titech.ac.jp (Kitya Karlson) Date: Thu, 29 Mar 2001 18:51:00 +0900 Subject: [vtkusers] Implicit Message-ID: <3AC30584.81773707@stu.mech.titech.ac.jp> Hello! How ImplicitFunction in vtk works? How does it search for 0's? Does it need a gradient and what for? Thank you. From gwen at ocean.cf.ac.uk Thu Mar 29 06:28:13 2001 From: gwen at ocean.cf.ac.uk (Gwen Pettigrew) Date: Thu, 29 Mar 2001 12:28:13 +0100 Subject: [vtkusers] VTK on Tru64 UNIX Ver 5.0A Message-ID: <3AC31C4D.D9D0F32C@ocean.cf.ac.uk> Hi I am about to try and compile VTK on an Alpha CPU using Tru64 Ver 5.0a. HAs anyone succeded in doing this? If so are there any problems that I need to be aware of? -- Gwen Pettigrew Computer Officer Department of Earth Sciences Cardiff University http://www.ocean.cf.ac.uk/people/gwen gwen at ocean.cf.ac.uk From hugo_lec at club-internet.fr Thu Mar 29 07:17:31 2001 From: hugo_lec at club-internet.fr (Hugo LECLERC) Date: Thu, 29 Mar 2001 14:17:31 +0200 Subject: [vtkusers] question about VTK/GTK widget with C/C++ Message-ID: <01032914173100.14721@lmamef23> Hi! I would like to write an application using VTK (the visualization toolkit -- marching cubes, etc) and use the GTK for windows. so, I search a c++ programm to make a widget to integrate VTK in GTK Thanks, HUGO From prabhu at aero.iitm.ernet.in Thu Mar 29 09:15:02 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 29 Mar 2001 19:45:02 +0530 (IST) Subject: [vtkusers] question about VTK/GTK widget with C/C++ In-Reply-To: <01032914173100.14721@lmamef23> References: <01032914173100.14721@lmamef23> Message-ID: <15043.17254.524739.619233@monster.linux.in> hi, >>>>> "Hugo" == Hugo LECLERC writes: Hugo> Hi! I would like to write an application using VTK (the Hugo> visualization toolkit -- marching cubes, etc) and use the Hugo> GTK for windows. so, I search a c++ programm to make a Hugo> widget to integrate VTK in GTK Matt Howlett started some work in this direction and developed a widget that embedded a vtkRenderWindow inside a GTK widget. This was a long while back and I really dont know the current status. Matt had a page on this at http://mania.physics.swin.edu.au/~mhowlett/vtkgtk.html However, I cant seem to access it. I think you can take a look at the code for the wxVTK code that David D. Marshall and Brian Todd have developed and design your code in similar fashion. Look here: http://www.prism.gatech.edu/~gte552m/wxVTKWindow.html. BTW, I wrote a small widget that enables one to use VTK from pyGTK. If you want I can mail you that code so you can use that as a basis to write your own code for C++. prabhu -- Live long and prosper. -- Spock, "Amok Time", stardate 3372.7 From zawrotny at mailer.sb.fsu.edu Thu Mar 29 09:58:35 2001 From: zawrotny at mailer.sb.fsu.edu (Michael Zawrotny) Date: Thu, 29 Mar 2001 09:58:35 -0500 Subject: [vtkusers] vtk impressions / linux problem and solution Message-ID: <200103291458.JAA15452@public.kitware.com> (this was originally sent directly to Kitware feedback, Will Schroeder's response suggested that it might be of interest to the list also) I recently downloaded vtk and bought the 2nd edition of the Schroeder, et. al book in order to evaluate vtk as a platform for a project that I'm starting. Overall, I must say that I am quite impressed with both the software and the book (at least what I have read so far). My project is very much in the area of data visualisation and a tool like vtk seems to fit it much better than having to do all of the work in raw OpenGL/GLUT. However, I ran into one problem that was very nearly a show-stopper for me. When I tried to run demos from either the pre-compiled 3.2 from your web site or after compiling it from the source, I always got a segmentation violation. This was on two of my Linux boxes, one running RedHat 7.0, the other Slackware 7.1. In both cases, the solution for me was to remove mesa and install the SGI open source openGL noted below. http://siddiqi.webjump.com/sgi-opengl-1.2.1-1.i386.rpm I'm not complaining about the software. You are providing a package that is large, complicated, and specialized, for which I am quite appreciative. The reason that I am telling you about this issue is so that you can be aware of it and take whatever steps you deem appropriate to mitigate the problem. Sincerely, Michael Zawrotny -- Michael Zawrotny 411 Molecular Biophysics Building Florida State University | email: zawrotny at sb.fsu.edu Tallahassee, FL 32306-4380 | phone: (850) 644-0069 From prabhu at aero.iitm.ernet.in Thu Mar 29 10:56:50 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 29 Mar 2001 21:26:50 +0530 (IST) Subject: [vtkusers] vtk impressions / linux problem and solution In-Reply-To: <200103291458.JAA15452@public.kitware.com> References: <200103291458.JAA15452@public.kitware.com> Message-ID: <15043.23363.99063.569368@monster.linux.in> hi, >>>>> "Michael" == Michael Zawrotny writes: Michael> However, I ran into one problem that was very nearly a Michael> show-stopper for me. When I tried to run demos from Michael> either the pre-compiled 3.2 from your web site or after Michael> compiling it from the source, I always got a segmentation Michael> violation. This was on two of my Linux boxes, one Michael> running RedHat 7.0, the other Slackware 7.1. In both Michael> cases, the solution for me was to remove mesa and install Michael> the SGI open source openGL noted below. Michael> http://siddiqi.webjump.com/sgi-opengl-1.2.1-1.i386.rpm Michael> I'm not complaining about the software. You are Michael> providing a package that is large, complicated, and Michael> specialized, for which I am quite appreciative. The Michael> reason that I am telling you about this issue is so that Michael> you can be aware of it and take whatever steps you deem Michael> appropriate to mitigate the problem. I understand that you are trying to help but I have a few things to say. First, this problem is pretty common and a quick search on the list should tell you that quite a few folks have experienced such problems. Some of the users have succeeded in getting it to work. Secondly, Red Hat is really to blame for shipping with incompatible software. I think Red Hat provides a set of updates that fix most of these problems. Kitware does provide rpms and I guess that they are built under Red Hat 5.2. Maybe we need to get a more up to date machine building the nightly RPMS? We are also trying to get VTK packaged for Debian. Maitland Bottoms has already uploaded a set of VTK packages into the unstable tree. Admittedly these are a bit incomplete but hopefully in a few weeks we (Maitland and me) will polish things up so VTK works out of the box under Debian. If things go well we may see VTK in woody. :) prabhu From sacha.jp at pg.com Thu Mar 29 11:13:40 2001 From: sacha.jp at pg.com (sacha.jp at pg.com) Date: Thu, 29 Mar 2001 11:13:40 -0500 Subject: [vtkusers] Native arrays to VTK arrays in Java - how to do it efficiently Message-ID: What is an efficient way of converting native data in Java to VTK, say vtkDataArray, vtkImageData, or vtkStructuredPoints? I am using something like this: short[] a = new a[65536]; ... vtkShortArray data = new vtkShortArray(); data.SetNumberOfComponents(1); data.SetNumberOfTuples(a.length); for(int i=0; i hi, I tried to compile vtk nightly version with options --with-mpi on Redhat7.0. But all the files in the parallel directory are untouched. Can some one tell me how i can build the files in parallel directory. this is my configure command. ./configure --with-tkwidget --with-mesa --with-mpi --with-contrib --with-patented --with-shared this is my user.make.I used the same file some days back when the files in parallel directory where in contrib and it seem to work. # this file can be used to override any of the values selected # by configure in system.make. At a minimum you should set # the following Tcl/Tk values if you are planning to use Tcl/Tk #TCL_INCLUDE=-I/home/3/polapall/tcl/tcl8.0/generic #TCL_LIB=/usr/lib/libtcl8.0.so #TK_INCLUDE=-I/home/3/polapall/tk/tk8.0/generic #TK_LIB=/usr/lib/libtk8.0.so MESA_INCLUDE=-I/home/3/polapall/Mesa1/Mesa-3.1/include/ MESA_LIB=/home/3/polapall/Mesa1/Mesa-3.1/lib/libGL.so /home/3/polapall/Mesa1/Mes a-3.1/lib/libGLU.so #MPI_INCLUDE=-I/home/devel/mpich-1.2.0/include/ #MPI_LIB=/home/devel/mpich-1.2.0/lib/libmpich.a /home/devel/mpich-1.2.0/lib/libp mpich.a MPI_INCLUDE=-I/home/devel/mpich-1.2..3/include -I/home/devel/mpich-1.2..3/MPI-2 -C++/src MPI_LIBS=/home/devel/mpich-1.2..3/lib/libmpich.a /home/devel/vtk/mpich-1.2..3/li b/libpmpich.a # for python you must set this #PYTHON_INCLUDES=-I/home/schroede/montnaro/Python-1.4/Include # Add additional CFLAGS and CXXFLAGS for compilation # uncomment the following two lines to set your own flags USER_CFLAGS = -O2 -D__NO_MATH_INLINES USER_CXXFLAGS = -O2 -D__NO_MATH_INLINES # if you want to try the java support you'll need to set the following # variables to match your environment and uncomment them # #JDKHOME=/home/2/yarmolen/java/jdk1.2 #JAVAC=${JDKHOME}/bin/javac #JAVA_CLASS_HOME=/home/devel/vtk/vtk/java -classpath /home/devel/vtk/vtk/java #3#JAVAH=${JDKHOME}/bin/javah #JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux #JAVA_CXX_LIB=/usr/lib/libiberty.a /usr/lib/libstdc++.a /usr/lib/gcc-lib/i386-re dhat-linux/2.7.2.3/libgcc.a _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From prabhu at aero.iitm.ernet.in Thu Mar 29 12:10:12 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 29 Mar 2001 22:40:12 +0530 (IST) Subject: [vtkusers] compiling vtkNightly with-mpi on Redhat7.0 In-Reply-To: References: Message-ID: <15043.27764.801905.878314@monster.linux.in> hi, >>>>> "Naveen" == Naveen Kumar Polapally writes: Naveen> I tried to compile vtk nightly version with options Naveen> --with-mpi on Redhat7.0. But all the files in the parallel Naveen> directory are untouched. Can some one tell me how i can Naveen> build the files in parallel directory. I am not sure but I think you should use --with-parallel prabhu From naveenpkumar at hotmail.com Thu Mar 29 17:50:57 2001 From: naveenpkumar at hotmail.com (Naveen Kumar Polapally) Date: Thu, 29 Mar 2001 17:50:57 Subject: [vtkusers] compiling examples in Parallel directory Message-ID: hi, I am using MPI over GM , when i try to compile the examples in Parallel directory i get these error.They appear to be errors due to GM but if any one has come accross these errors,please reply. c++ -o TestPolyDataPort -O2 -D__NO_MATH_INLINES -fPIC -I. -I. -I/home/3/polapall/Mesa1/Mesa-3.1/include/ -I/usr/X11R6/include -I/home/devel/mpich-1.2..3/include -I/home/devel/mpich-1.2..3/MPI-2-C++/src -I./../../common -I./.. -I./../../patented -I./../../imaging -I./../../graphics -I../../common TestPolyDataPort.o -L../../common -L../../graphics -L../../parallel -L../../imaging -L../../patented -lVTKPatented -lVTKImaging -lVTKParallel -lVTKGraphics -lVTKCommon -L/usr/X11R6/lib /home/3/polapall/Mesa1/Mesa-3.1/lib/libGL.so /home/3/polapall/Mesa1/Mesa-3.1/lib/libGLU.so -ldl -lpthread /home/devel/mpich-1.2..3/lib/libmpich.a /home/devel/vtk/mpich-1.2..3/lib/libpmpich.a -lXext -lXt -lX11 -lm \ -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lm ../../parallel/libVTKParallel.so: undefined reference to `gm_open' ../../parallel/libVTKParallel.so: undefined reference to `gm_unknown' ../../parallel/libVTKParallel.so: undefined reference to `gm_min_size_for_length' ../../parallel/libVTKParallel.so: undefined reference to `gm_set_acceptable_sizes' ../../parallel/libVTKParallel.so: undefined reference to `gm_malloc' ../../parallel/libVTKParallel.so: undefined reference to `gm_dma_free' ../../parallel/libVTKParallel.so: undefined reference to `gm_rand' ../../parallel/libVTKParallel.so: undefined reference to `gm_send' ../../parallel/libVTKParallel.so: undefined reference to `gm_deregister_memory' ../../parallel/libVTKParallel.so: undefined reference to `gm_host_name_to_node_id' ../../parallel/libVTKParallel.so: undefined reference to `gm_receive' ../../parallel/libVTKParallel.so: undefined reference to `gm_dma_malloc' ../../parallel/libVTKParallel.so: undefined reference to `gm_bcopy' ../../parallel/libVTKParallel.so: undefined reference to `gm_provide_receive_buffer' ../../parallel/libVTKParallel.so: undefined reference to `gm_close' ../../parallel/libVTKParallel.so: undefined reference to `gm_perror' ../../parallel/libVTKParallel.so: undefined reference to `gm_srand' ../../parallel/libVTKParallel.so: undefined reference to `gm_register_memory' ../../parallel/libVTKParallel.so: undefined reference to `gm_max_length_for_size' ../../parallel/libVTKParallel.so: undefined reference to `gm_bzero' ../../parallel/libVTKParallel.so: undefined reference to `gm_blocking_receive' ../../parallel/libVTKParallel.so: undefined reference to `_gm_assertion_failed' ../../parallel/libVTKParallel.so: undefined reference to `gm_memorize_message' ../../parallel/libVTKParallel.so: undefined reference to `gm_num_receive_tokens' ../../parallel/libVTKParallel.so: undefined reference to `gm_get_node_id' ../../parallel/libVTKParallel.so: undefined reference to `gm_num_send_tokens' collect2: ld returned 1 exit status >From: Ken Martin >To: "Naveen Kumar Polapally" >Subject: Re: [vtkusers] compiling vtkNightly with-mpi on Redhat7.0 >Date: Thu, 29 Mar 2001 11:53:11 -0500 > >--with-parallel in addition to the --with-mpi, some of the parallel code >can be used without mpi so we made them two different flags. > >- Ken > >At 04:50 PM 3/29/2001 +0000, you wrote: > >>hi, >> >>I tried to compile vtk nightly version with options --with-mpi on >>Redhat7.0. But all the files in the parallel directory are untouched. >>Can some one tell me how i can build the files in parallel directory. >> >>this is my configure command. >> >>./configure --with-tkwidget --with-mesa --with-mpi --with-contrib >>--with-patented --with-shared >> >> >>this is my user.make.I used the same file some days back when the files in >>parallel directory where in contrib and it seem to work. >> >># this file can be used to override any of the values selected >># by configure in system.make. At a minimum you should set >># the following Tcl/Tk values if you are planning to use Tcl/Tk >> >>#TCL_INCLUDE=-I/home/3/polapall/tcl/tcl8.0/generic >>#TCL_LIB=/usr/lib/libtcl8.0.so >> >>#TK_INCLUDE=-I/home/3/polapall/tk/tk8.0/generic >>#TK_LIB=/usr/lib/libtk8.0.so >> >>MESA_INCLUDE=-I/home/3/polapall/Mesa1/Mesa-3.1/include/ >>MESA_LIB=/home/3/polapall/Mesa1/Mesa-3.1/lib/libGL.so >>/home/3/polapall/Mesa1/Mes >>a-3.1/lib/libGLU.so >> >>#MPI_INCLUDE=-I/home/devel/mpich-1.2.0/include/ >>#MPI_LIB=/home/devel/mpich-1.2.0/lib/libmpich.a >>/home/devel/mpich-1.2.0/lib/libp >>mpich.a >> >>MPI_INCLUDE=-I/home/devel/mpich-1.2..3/include >>-I/home/devel/mpich-1.2..3/MPI-2 >>-C++/src >>MPI_LIBS=/home/devel/mpich-1.2..3/lib/libmpich.a >>/home/devel/vtk/mpich-1.2..3/li >>b/libpmpich.a >> >> >># for python you must set this >>#PYTHON_INCLUDES=-I/home/schroede/montnaro/Python-1.4/Include >> >># Add additional CFLAGS and CXXFLAGS for compilation >># uncomment the following two lines to set your own flags >>USER_CFLAGS = -O2 -D__NO_MATH_INLINES >>USER_CXXFLAGS = -O2 -D__NO_MATH_INLINES >> >># if you want to try the java support you'll need to set the following >># variables to match your environment and uncomment them >># >>#JDKHOME=/home/2/yarmolen/java/jdk1.2 >>#JAVAC=${JDKHOME}/bin/javac >>#JAVA_CLASS_HOME=/home/devel/vtk/vtk/java -classpath >>/home/devel/vtk/vtk/java >>#3#JAVAH=${JDKHOME}/bin/javah >>#JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux >>#JAVA_CXX_LIB=/usr/lib/libiberty.a /usr/lib/libstdc++.a >>/usr/lib/gcc-lib/i386-re >>dhat-linux/2.7.2.3/libgcc.a >> >>_________________________________________________________________________ >>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. >> >> >>_______________________________________________ >>This is the private VTK discussion list. Please keep messages on-topic. >>Check the FAQ at: >>Follow this link to subscribe/unsubscribe: >>http://public.kitware.com/mailman/listinfo/vtkusers > _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. From jshalf at lbl.gov Thu Mar 29 13:15:11 2001 From: jshalf at lbl.gov (John Shalf) Date: Thu, 29 Mar 2001 10:15:11 -0800 Subject: [vtkusers] compiling examples in Parallel directory References: Message-ID: <3AC37BAF.B734814D@lbl.gov> Need to link to libgm.a -L -lgm Just add it to your user.make or edit system.make and find the MPICH flags directly. -john Naveen Kumar Polapally wrote: > hi, > I am using MPI over GM , when i try to compile the examples in Parallel > directory i get these error.They appear to be errors due to GM but if any > one has come accross these errors,please reply. > > c++ -o TestPolyDataPort -O2 -D__NO_MATH_INLINES -fPIC -I. -I. > -I/home/3/polapall/Mesa1/Mesa-3.1/include/ -I/usr/X11R6/include > -I/home/devel/mpich-1.2..3/include -I/home/devel/mpich-1.2..3/MPI-2-C++/src > -I./../../common -I./.. -I./../../patented -I./../../imaging > -I./../../graphics -I../../common TestPolyDataPort.o -L../../common > -L../../graphics -L../../parallel -L../../imaging -L../../patented > -lVTKPatented -lVTKImaging -lVTKParallel -lVTKGraphics -lVTKCommon > -L/usr/X11R6/lib /home/3/polapall/Mesa1/Mesa-3.1/lib/libGL.so > /home/3/polapall/Mesa1/Mesa-3.1/lib/libGLU.so -ldl -lpthread > /home/devel/mpich-1.2..3/lib/libmpich.a > /home/devel/vtk/mpich-1.2..3/lib/libpmpich.a -lXext -lXt -lX11 -lm \ > -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lm > ../../parallel/libVTKParallel.so: undefined reference to `gm_open' > ../../parallel/libVTKParallel.so: undefined reference to `gm_unknown' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_min_size_for_length' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_set_acceptable_sizes' > ../../parallel/libVTKParallel.so: undefined reference to `gm_malloc' > ../../parallel/libVTKParallel.so: undefined reference to `gm_dma_free' > ../../parallel/libVTKParallel.so: undefined reference to `gm_rand' > ../../parallel/libVTKParallel.so: undefined reference to `gm_send' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_deregister_memory' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_host_name_to_node_id' > ../../parallel/libVTKParallel.so: undefined reference to `gm_receive' > ../../parallel/libVTKParallel.so: undefined reference to `gm_dma_malloc' > ../../parallel/libVTKParallel.so: undefined reference to `gm_bcopy' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_provide_receive_buffer' > ../../parallel/libVTKParallel.so: undefined reference to `gm_close' > ../../parallel/libVTKParallel.so: undefined reference to `gm_perror' > ../../parallel/libVTKParallel.so: undefined reference to `gm_srand' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_register_memory' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_max_length_for_size' > ../../parallel/libVTKParallel.so: undefined reference to `gm_bzero' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_blocking_receive' > ../../parallel/libVTKParallel.so: undefined reference to > `_gm_assertion_failed' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_memorize_message' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_num_receive_tokens' > ../../parallel/libVTKParallel.so: undefined reference to `gm_get_node_id' > ../../parallel/libVTKParallel.so: undefined reference to > `gm_num_send_tokens' > collect2: ld returned 1 exit status > > >From: Ken Martin > >To: "Naveen Kumar Polapally" > >Subject: Re: [vtkusers] compiling vtkNightly with-mpi on Redhat7.0 > >Date: Thu, 29 Mar 2001 11:53:11 -0500 > > > >--with-parallel in addition to the --with-mpi, some of the parallel code > >can be used without mpi so we made them two different flags. > > > >- Ken > > > >At 04:50 PM 3/29/2001 +0000, you wrote: > > > >>hi, > >> > >>I tried to compile vtk nightly version with options --with-mpi on > >>Redhat7.0. But all the files in the parallel directory are untouched. > >>Can some one tell me how i can build the files in parallel directory. > >> > >>this is my configure command. > >> > >>./configure --with-tkwidget --with-mesa --with-mpi --with-contrib > >>--with-patented --with-shared > >> > >> > >>this is my user.make.I used the same file some days back when the files in > >>parallel directory where in contrib and it seem to work. > >> > >># this file can be used to override any of the values selected > >># by configure in system.make. At a minimum you should set > >># the following Tcl/Tk values if you are planning to use Tcl/Tk > >> > >>#TCL_INCLUDE=-I/home/3/polapall/tcl/tcl8.0/generic > >>#TCL_LIB=/usr/lib/libtcl8.0.so > >> > >>#TK_INCLUDE=-I/home/3/polapall/tk/tk8.0/generic > >>#TK_LIB=/usr/lib/libtk8.0.so > >> > >>MESA_INCLUDE=-I/home/3/polapall/Mesa1/Mesa-3.1/include/ > >>MESA_LIB=/home/3/polapall/Mesa1/Mesa-3.1/lib/libGL.so > >>/home/3/polapall/Mesa1/Mes > >>a-3.1/lib/libGLU.so > >> > >>#MPI_INCLUDE=-I/home/devel/mpich-1.2.0/include/ > >>#MPI_LIB=/home/devel/mpich-1.2.0/lib/libmpich.a > >>/home/devel/mpich-1.2.0/lib/libp > >>mpich.a > >> > >>MPI_INCLUDE=-I/home/devel/mpich-1.2..3/include > >>-I/home/devel/mpich-1.2..3/MPI-2 > >>-C++/src > >>MPI_LIBS=/home/devel/mpich-1.2..3/lib/libmpich.a > >>/home/devel/vtk/mpich-1.2..3/li > >>b/libpmpich.a > >> > >> > >># for python you must set this > >>#PYTHON_INCLUDES=-I/home/schroede/montnaro/Python-1.4/Include > >> > >># Add additional CFLAGS and CXXFLAGS for compilation > >># uncomment the following two lines to set your own flags > >>USER_CFLAGS = -O2 -D__NO_MATH_INLINES > >>USER_CXXFLAGS = -O2 -D__NO_MATH_INLINES > >> > >># if you want to try the java support you'll need to set the following > >># variables to match your environment and uncomment them > >># > >>#JDKHOME=/home/2/yarmolen/java/jdk1.2 > >>#JAVAC=${JDKHOME}/bin/javac > >>#JAVA_CLASS_HOME=/home/devel/vtk/vtk/java -classpath > >>/home/devel/vtk/vtk/java > >>#3#JAVAH=${JDKHOME}/bin/javah > >>#JAVA_INCLUDES=-I${JDKHOME}/include -I${JDKHOME}/include/linux > >>#JAVA_CXX_LIB=/usr/lib/libiberty.a /usr/lib/libstdc++.a > >>/usr/lib/gcc-lib/i386-re > >>dhat-linux/2.7.2.3/libgcc.a > >> > >>_________________________________________________________________________ > >>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > >> > >> > >>_______________________________________________ > >>This is the private VTK discussion list. Please keep messages on-topic. > >>Check the FAQ at: > >>Follow this link to subscribe/unsubscribe: > >>http://public.kitware.com/mailman/listinfo/vtkusers > > > > _________________________________________________________________________ > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From jonesde at rainbow.es.dupont.com Sat Mar 24 18:45:08 2001 From: jonesde at rainbow.es.dupont.com (David E. Jones) Date: Sat, 24 Mar 2001 18:45:08 -0500 Subject: [vtkusers] Re: VTK24 vs. 312, quality and performance References: <200103231325.f2NDPqn29610@random.kcc.com> <4.3.2.20010324042333.01f76f20@pop.nycap.rr.com> Message-ID: <3ABD3183.1DCD501A@rainbow.es.dupont.com> Lisa Sobierajski Avila wrote: > Hello Malcolm, > > If under "normal" circumstances (meaning your data has reasonable bounds > and is not pushing the limits of precision) you are seeing bad images due > to the clipping range, then we probably should tweak > ResetCameraClippingRange(). It does attempt to determine the depth buffer > depth and base the minimum near value on that. How deep is your depth > buffer? What are the near / far values when you see a bad image? > > Thanks, > > Lisa > > At 04:02 PM 3/23/2001, Malcolm Drummond wrote: > >I have also just upgraded from vtk24. Some apparent degradation may be due > >to a more generous automated camera clipping range in vtk31. On some of my > >datasets this results in polygon flickering with camera movement (as the > >depth resolution is not fine enough) and "ragged" intersections. My > >immediate fix was to introduce near range-clamping methods to the camera, as > >this affects depth resolution (I didn't want to mess with the renderers > >ResetCameraClippingRange() - but that might be another route to go). I've > >attached my files. > > > >The methods are ... > > > >// Description: > > // Set/Get clamping of ClippingRange[0]. Prevents value < > >ClipRangeNearClampValue. > > vtkSetMacro(ClippingRangeNearClamping,int); > > vtkGetMacro(ClippingRangeNearClamping,int); > > void ClippingRangeNearClampingOn(); > > void ClippingRangeNearClampingOff(); > > > > // Description: > > // Set/Get value to clamp ClippingRange[0] by. > > vtkSetMacro(ClippingRangeNearClampValue,double); > > vtkGetMacro(ClippingRangeNearClampValue,double); > > > >You can test if depth resolution is a problem via tcl script, just reset the > >camera range via the interactive command window and see if there's any > >remarkable change when you render (but call the render through the command > >window - using the mouse to force a render could cause the renderer to > >recompute the bounds and reset the camera to the old range again). > > > >I don't know if this is the best solution ... it just worked in a hurry. If > >the Gurus think it's OK I'll introduce ClippingRangeFarClamping etc.for > >completeness and submit the code. > > I think I have something to contribute here but I'm joining the discussion late. There is an aritcle called "W Pleasure, W Fun" in the May/June IEEE CG&A magazine in which Jim Blinn demonstrates that the location of the near clipping plane must be a significant fraction (at least .3) of the far clipping plane location for Z buffering to be accurate when PERSPECTIVE projections are used. Interestingly (see Fig 3b) things get even worse when high precision floating point is used ! The problem is that the perspective projection causes points projected to screen space to be spaced non-linearly relative to the points in eye space to which they correspond. Dave Dave -- David E Jones Du Pont Central Research Experimental Station, Bldg 320 Wilmington, DE 19880-0320 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cmarbur at iti.upv.es Fri Mar 30 02:38:31 2001 From: cmarbur at iti.upv.es (Carlos Martinez Burgos) Date: Fri, 30 Mar 2001 09:38:31 +0200 (CEST) Subject: [vtkusers] Exception in a Java application Message-ID: Hi all. I have successfully compiled VTK on RedHat 7.0, updating rpms from RH webpage. I can run examples in c++, tcl and python, but when I try to run a Java application I get this exception: Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/local/vtk3.2/lib/libvtkJava.so: /usr/local/vtk3.2/lib/libVTKGraphics.so: undefined symbol: XtStrings at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1382) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1306) at java.lang.Runtime.loadLibrary0(Runtime.java:749) at java.lang.System.loadLibrary(System.java:820) at es.iti.sidgeipa.cliente.Main.(Main.java:9) I have included the line static { System.loadLibrary("vtkJava"); } on the main class to load the library. I run the same program on RH 6.2, whith vtk3.2 rpms installed, and everything is OK. I configured VTK with this command: ./configure --prefix=/usr/local/vtk3.2 --with-x --with-opengl \ --with-tkwidget --with-shared --with-tcl --with-java --with-python \ --with-patented --with-contrib Has somebody the same problem? Have you solved it? Thanks. -- ---------------------------------------------------------------------- Carlos Mart?nez Burgos | Instituto Tecnol?gico de Inform?tica Ingeniero Inform?tico | Universidad Polit?cnica de Valencia Tlf: +34 963877237 | Cam? de Vera, S/N cmarbur at iti.upv.es | 46071 Valencia - Spain www.iti.upv.es/~cmarbur | www.iti.upv.es ---------------------------------------------------------------------- From prabhu at aero.iitm.ernet.in Fri Mar 30 04:06:55 2001 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 30 Mar 2001 14:36:55 +0530 (IST) Subject: [vtkusers] Exception in a Java application In-Reply-To: References: Message-ID: <15044.19631.491222.426256@monster.linux.in> hi, >>>>> "Carlos" == Carlos Martinez Burgos writes: Carlos> Hi all. I have successfully compiled VTK on RedHat 7.0, Carlos> updating rpms from RH webpage. I can run examples in c++, Carlos> tcl and python, but when I try to run a Java application I Carlos> Has somebody the same problem? Have you solved it? In your user.make just add the following somewhere and reconfigure and recompile VTK. X_EXTRA_LIBS = -lXt Hopefully, the problem will vanish. prabhu From Ruediger.Tornow at epost.de Fri Mar 30 05:14:27 2001 From: Ruediger.Tornow at epost.de (Ruediger Tornow) Date: Fri, 30 Mar 2001 12:14:27 +0200 Subject: [vtkusers] Bug in vtkVRMLImporter? In-Reply-To: <200103291700.MAA18245@public.kitware.com> Message-ID: <000101c0b902$33e60680$01000001@mystra> Hi, I am using the vtkVRMLImporter to import multiple VRML files. It seems that the global variables are not initialized correctly if the Importer is used several times during one program run. Even creating new vtkVRMLImporter objects for every import does not work. Due to this problem the import fails after reading three to five files. Did anyone encounter this problem before and maybe fixed it? If so, please let me know. Thanks, Ruediger From djn at elan.mad.adelaide.edu.au Fri Mar 30 06:52:31 2001 From: djn at elan.mad.adelaide.edu.au (David J. Netherway) Date: Fri, 30 Mar 2001 21:22:31 +0930 Subject: [vtkusers] text actor overlay Message-ID: <3AC4737F.71B5C8A0@elan.mad.adelaide.edu.au> I updated my vtk from the daily version of Jan 25, 2001 to Mar 29, 2001. Now my vtkActor2D is causing a problem. I have something like the following: vtkTextMapper mapper mapper SetInput "T" vtkActor2D actor actor SetMapper mapper vtkRenderer ren ren AddActor2D actor to overlay the letter T over a textured plane. I seem to get either the letter rendered or the plane. It seems random but may depend on the 3D position of the plane. The behaviour used to be correct. The plane renders properly if I do a "ren RemoveActor actor". I tried adding the actor using AddProp but I it gave the same behaviour. Does anyone have any ideas, or do I need to cull my code down to an example? Thanks, David From faulhabe at ipf.uni-karlsruhe.de Fri Mar 30 08:34:23 2001 From: faulhabe at ipf.uni-karlsruhe.de (Karin Faulhaber) Date: Fri, 30 Mar 2001 15:34:23 +0200 Subject: [vtkusers] Getting too many coordinates from polydata Message-ID: <3AC48B5F.D1309B9D@ipf.uni-karlsruhe.de> Hi all, I have a test vtkPolyData with exactly 4 points building 1 polyvertex. When I ask for the coordinates: pickedPolyData.GetPoint(0) pickedPolyData.GetPoint(3) I get the correct results. But I can't understand the coordinates I get if I ask for e.g. pickedPolyData.GetPoint(10) Why do I get a result anyway? In my opinion it is supposed to crash??? After all I only HAVE 4 points??? Thanks Karin -- Karin Faulhaber Universitaet Karlsruhe Institut fuer Photogrammetrie und Fernerkundung (IPF) Englerstr. 7 76128 Karlsruhe Tel: 0721/608-3676 E-Mail: faulhaber at ipf.uni-karlsruhe.de From feigee at us.sina.com Fri Mar 30 14:55:15 2001 From: feigee at us.sina.com (feigee at us.sina.com) Date: 30 Mar 2001 11:55:15 -0800 Subject: [vtkusers] Surface ID? Message-ID: <20010330195515.3948.cpmta@c000.zsm.cp.net> Hi, For a 3D unstructured mesh about an airplane, triangles on the fuselage is tagged with an ID, say, ID=1, and triangles on the wing surface is tagged ID=5. What is the best way to deal with this so that we can draw only the fuselage and/or wing surfaces? GeometryFilter did not work as it also give me the triangles on all boundaries, some of which are not part of the airplane geometry. I have the point coordinates and scalars stored using vtkUnstructuredGrid *ug = vtkUnstructuredGrid::New(); ug->SetPoints(points); //points are the coord. ug->SetScalars(scalars); and I used InsertNextCell(VTK_TETRA, 4, vertices) to stuff the cell info into the ug. I thought about threshold filter by giving another "IDscalar" to the object and show only IDscalar>1.5 for wing surface, and IDscalar<1.5 for fuselage surface. But what about the points shared jointly by the wing and fuselage? Thanks for any pointers if you have done something like this before. Alan _______________________________________________________________ http://www.SINA.com - #1 Destination Site for Chinese Worldwide From will.schroeder at kitware.com Fri Mar 30 16:15:11 2001 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 30 Mar 2001 16:15:11 -0500 Subject: [vtkusers] Surface ID? In-Reply-To: <20010330195515.3948.cpmta@c000.zsm.cp.net> Message-ID: <5.0.2.1.0.20010330161254.02a07c50@pop.nycap.rr.com> Hi Alan At 11:55 AM 3/30/2001 -0800, feigee at us.sina.com wrote: >I thought about threshold filter by giving another "IDscalar" to the object and show only IDscalar>1.5 for wing surface, and IDscalar<1.5 for fuselage surface. But what about the points shared jointly by the wing and fuselage? You can threshold cells based on cell scalars....in that case the point values don't matter. Set the correct mode in vtkThreshold and it should work. Will From plowry at scotia-group.com Fri Mar 30 17:58:24 2001 From: plowry at scotia-group.com (Patrick Lowry) Date: Fri, 30 Mar 2001 16:58:24 -0600 Subject: [vtkusers] Work Opportunity Message-ID: <20010330170217.30cce75e1e3a11d5848900c04f79035a.in@work_station.webaccess.net> Greetings: The Scotia Group is looking for an individual with oil and gas technical experience and a working knowledge of using VTK. Professional experience may include geology, engineering, petrophysics, and/or geophysics. Programming skills in C++ and/or a scripting language (Tcl/Tk; Python...) are a must. The position is for full time employment in Dallas, Texas. Please respond directly by email, and not through the VTK users group. Provide a brief summary of your relevant background. Patrick Lowry The Scotia Group From lorensen at crd.ge.com Sat Mar 31 19:59:03 2001 From: lorensen at crd.ge.com (Lorensen, William E (CRD)) Date: Sat, 31 Mar 2001 19:59:03 -0500 Subject: [vtkusers] extracting exterior bone surfaces Message-ID: Try vtkImageIslandRemoval2D. > -----Original Message----- > From: Goodwin Lawlor [SMTP:goodwin.lawlor at ucd.ie] > Sent: Wednesday, March 28, 2001 4:42 PM > To: Will Newman; vtkusers at public.kitware.com > Subject: RE: [vtkusers] extracting exterior bone surfaces > > One image pre-processing method that may work is "Opening" - erosion (to > break the connecting voxels) followed by dilation (to fill volume back out > again). The classes vtkImageContinuousErode3D & vtkImageContinuousDilate3D > in series before a mcubes filter (and gaussiansmooth filter) would do it. > vtkImageDilateErode3D on its own may do it... > > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Will Newman > Sent: 28 March 2001 21:00 > To: vtkusers at public.kitware.com > Subject: [vtkusers] extracting exterior bone surfaces > > > We import volumetric CT data into VTK to create bone surfaces using > marching cubes. We are looking for ways to extract only the external > bone surfaces, but are having problems eliminating the inside bone > surface. There are two main surfaces, the endosteal and periosteal > surfaces of the bone. We have used thresholding to isolate a nice > binary image but because of small interconnections between the surfaces > we are unable to isolate the periosteal (exterior) surface by using the > connectivity filter. Is there any way we can further preprocess the > image data to obtain just the exterior ring of voxels *before* running > marching cubes? Or, are there other strategies we can use to isolate > just the exterior surface *after* running marching cubes? > > Thanks. > > -- > Will Newman > Musculoskeletal Research Laboratories > University of Utah > wjn1 at utah.edu http://hodad.bioen.utah.edu/~weiss/mrl > > > > _______________________________________________ > 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 cartografos at entelchile.net Sat Mar 31 22:26:32 2001 From: cartografos at entelchile.net (Cartografos) Date: Sat, 31 Mar 2001 23:26:32 -0400 Subject: [vtkusers] Sintaxis for patented program Message-ID: <000f01c0ba5b$8d4259e0$55924da4@cartografos> Hello: I work with version 3.2 (CD from book "User guide march 2001 edition"), the examples work fine, but into patented folder not work. ?they need a new sintaxis?, where find a doc with this changes. Hola: Estoy trabajando con los ejemplos del libro, y los ejemplos funcionan bien, pero los ejemplos de algoritmos patentados funcionan haciendo algunos cambios, como por ejemplo: vtkMarchingContourFilter por vtkContourFilter. ?Estos cambios estan documentados en algun lugar? Gracias por la respuesta. Danilo A. Verdugo Ch. Chile -------------- next part -------------- An HTML attachment was scrubbed... URL: