From marcio.mathias at edb.ericsson.se Mon Apr 1 05:31:58 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Mon, 1 Apr 2002 07:31:58 -0300 Subject: [vtkusers] VTK-TCL/Tk users Message-ID: First of all thanks Rasmus, Kevin Wright and Tim Hutton for the hints. I replaced the "catch {load vtktcl}" by package require vtk package require vtkinteraction and now I can run some tcl files, but in a diferent way when I was using VTK3.2. If I double click any VTK-Tcl file I get the error: "can?t find package vtk while executing "package require vtk"... I suspect something wrong with enviroment variables. I checked autoexec.bat and it seems fine. The only way to run vtk-tcl files is openning a vtk-shell and typing the command "source" before the vtk-tcl file name. Is it the expected behavior? If not, what might be wrong with my installation? (I would like to get it running in WinMe and Win98) Thanks again, Marcio. -----Original Message----- From: Rasmus Reinhold Paulsen To: Marcio Antonio Mathias (EDB) Cc: 'vtkusers at public.kitware.com' Sent: 3/28/02 4:57 PM Subject: Re: [vtkusers] VTK-TCL/Tk users Do you use something similar to load vtktcl in your script? If you do you should change it to package require vtk also take a look at the sample in ..\VTK\Examples\Tutorial\Step1\Tcl Regards Rasmus On Thu, 28 Mar 2002, Marcio Antonio Mathias (EDB) wrote: > " I have just upgrade from VTK3.2 to the new release VTK 4.0. > Trying to run my vtk-tcl files I got the following error message: > > "invalid command name "vtkRenderer while executing "vtkRenderer renderizador" ... > > I am using Windows 98. Before installing this new VTK release I removed completely all VTK 3.2 files. I am running > ActiveStateActiveTcl 8.3.4.2 without any trouble for other Tcl/Tk applications. > > What can I do to get VTK4.0 running? -------------- next part -------------- An HTML attachment was scrubbed... URL: From poete66 at caramail.com Mon Apr 1 12:02:22 2002 From: poete66 at caramail.com (Régis BLANCHON) Date: Mon, 01 Apr 2002 12:02:22 GMT+1 Subject: [vtkusers] Problem with visualization and saving an image Message-ID: <1017658942030861@caramail.com> Hi, I want to save in postscript the tetrahedron that I made. But in fact it saves the screen and I have a black screen in my postscript file. Anyone could tell me what is wrong in my code which is after the message. Tanks very much. With Regards R?gis Blanchon catch {load vtktcl} # get the interactor ui #source ~/.wishrc #source vtkInt.tcl #source colors.tcl proc DisplayMesh {file} { vtkWindowToImageFilter w2if #I declare vtkRenderer ren1 vtkRenderWindow renWin vtkRenderWindowInteractor iren vtkUnstructuredGridReader reader reader SetFileName "$file" # reader Update is needed because of .. GetScalarRange .. reader Update # create a hue lookup table vtkLookupTable lut # blue to red lut SetHueRange 0.33 0.66 vtkDataSetMapper dataMapper dataMapper SetInput [reader GetOutput] eval dataMapper SetScalarRange [[reader GetOutput] GetScalarRange] dataMapper SetLookupTable lut vtkActor dataActor dataActor SetMapper dataMapper renWin AddRenderer ren1 iren SetRenderWindow renWin vtkCamera aCamera aCamera SetClippingRange 0.726079 36.3039 aCamera SetFocalPoint 2.43584 2.15046 1.11104 aCamera SetPosition -4.76183 -10.4426 3.17203 aCamera SetViewUp 0.0511273 0.132773 0.989827 aCamera SetViewAngle 18.604 aCamera Zoom 1.2 ren1 SetActiveCamera aCamera w2if SetInput renWin # assign our actor to the renderer ren1 AddActor dataActor ren1 SetBackground 1 1 1 renWin SetSize 500 500 # render the image iren Initialize vtkPostScriptWriter psw #I save psw SetInput [w2if GetOutput] psw SetFileName "vtkPost.ps" psw Write psw Delete # prevent the tk window from showing up then start the event loop } DisplayMesh vtk_tetra.vtk wm withdraw . _________________________________________________________ Le journal des abonn?s Caramail - http://www.carazine.com From rrp at imm.dtu.dk Mon Apr 1 09:25:59 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Mon, 1 Apr 2002 16:25:59 +0200 (METDST) Subject: [vtkusers] VTK-TCL/Tk users In-Reply-To: Message-ID: On Mon, 1 Apr 2002, Marcio Antonio Mathias (EDB) wrote: > I replaced the > "catch {load vtktcl}" > by > package require vtk > package require vtkinteraction > and now I can run some tcl files, but in a diferent way when I was using VTK3.2. > If I double click any VTK-Tcl file I get the error: > "can?t find package vtk while executing "package require vtk"... > I suspect something wrong with enviroment variables. I checked autoexec.bat and it seems fine. > The only way to run vtk-tcl files is openning a vtk-shell and typing the command "source" before the vtk-tcl file name. Is it the expected behavior? If not, what might be wrong with my installation? (I would like to get it running in WinMe and Win98) I think you have to set the environment variable TCLLIBPATH to something like (dependent on installation of VTK): c:/vtk/wrapping/tcl Add the following line to your autoexec.bat SET TCLLIBPATH=C:/VTK/Wrapping/tcl Be careful to use forward slashes (/) and not backslash (\). After reboot start wish and write puts $auto_path which shall include the above mentioned path. Regards Rasmus From krw at viz-solutions.com Mon Apr 1 12:56:46 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon, 01 Apr 2002 09:56:46 -0800 Subject: [vtkusers] removing points from a vtk render window In-Reply-To: <013501c1d89b$5f122640$54294484@cs.technion.ac.il> Message-ID: <5.1.0.14.0.20020401095516.00a69248@mail.viz-solutions.com> >I have the following question, I set my rendering pipeline and it renders >the data correctly now I need to remove some of the data points and render >the data again. The call is done in a callback function after the setup >stage was finished. If you're changing a pointset object directly after the initial render, you'll have to call Modified() after the changes to indicate to the pipeline that an update is required at the next render. Kevin. From Lichan.Hong at parc.com Mon Apr 1 13:08:57 2002 From: Lichan.Hong at parc.com (Lichan.Hong at parc.com) Date: Mon, 1 Apr 2002 10:08:57 PST Subject: [vtkusers] a problem about multithread and VTK again Message-ID: <839BE2CA5177D3119C7000508B11F5DBA002A7@dagobah.parc.xerox.com> I did run into a very similar problem myself when writing my VTK-based Java application and was able to find a solution to solve my problem. Basically, as you have found out, the main reason that your idea doesn't work is that VTK is not thread safe. One way that you can try is, once you enter the method associated with A, you essentially take over the system event queue. Somewhere inside the infinite loop, you check the system event queue to see if button B has been pressed. For my application, this strategy works well with JDK1.3.1, but somehow doesn't work with JDK1.4.0. It seems to me that the system event queue is not implemented correctly in JDK1.4.0. Another way to solve your problem is to get rid of the infinite loop in the method associated with A. When button A is pressed, what you do is that you create and start a thread, say MyThread. After that, method A executes ONLY ONCE the code that you have in the original infinite loop. Now, when button B is pressed, you basically set some boolean flag in your main application. The key idea is how you design MyThread. What I would do is let the thread sleep for approximately the time which the code in the original infinite loop takes to execute. When the thread wakes up, it takes one of the following two choices. If the boolean flag in the main application has been set by method B, MyThread terminates without doing anything. On the other hand, if the boolean flag has not been changed, you basically ARTIFICIALLY generate a button A pressed event and add it to the system event queue of the main application. The system event queue will then do the scheduling job for you automatically and execute the code in method A. Personally, I found coding in this way is more elegant, since you may not want to mess up with the system event queue. Hope this helps. Lichan Hong -----Original Message----- From: lian jiang [mailto:jl_vtk at yahoo.com] Sent: Friday, March 29, 2002 9:00 PM To: vtkusers Subject: [vtkusers] a problem about multithread and VTK again Hi, all: I posted the mail once but did not receive any response. So I have to post it again and hope someone can give me a help. Sorry to bother you all. I met a problem about VTK rendering window and multithread. In my JAVA-VTK program, I have two button, A and B. In the method associated with A, there is an infinite loop, in which the actors are rendered from the first frame to last frame repeatedly in a rendering window. I set a globale variable "boolean jump=false". The infinite loop should exit by judging the value of "jump". In the method associated with button B, I set the variable as true. When I click A, the program will enter the infinite loop. I intend to exit the loop whenever I click the button B. But here is a problem. Once the program enters the dead loop, the GUI seems to be stucked and cann't respond to any user action. So the method of B can not set any global variable. From the view of thread, it is easy to understand--because the two buttons are both in the GUI thread, the dead loop will surely block the GUI thread so that button B is disabled. I tried to solve the problem by multithread. Although the loop can exit as I imaged, there still are some problems. If I put the dead loop in a thread, the rendering window can not be refreshed. IF I put the method of B into a thread, button B will also be disable once the program goes into the dead loop. I don't know whether it is a common problem for all kinds of window refreshing. I had studied multithread used in VTK for some time. As far as I know, VTK window will cause some problems in multithread because VTK calls opengl which is not safe for thread. But I am not sure whether the refreshing problem described above is caused by VTK or other reasons. Is it a common problem for all kinds window refreshing? Is there a way to solve this problem? Thank you very much. BEST WISHES Lian _____ Do You Yahoo!? Yahoo! Greetings - send greetings for Easter, Passover -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangyutin at sina.com Mon Apr 1 19:48:36 2002 From: zhangyutin at sina.com (zhangyu) Date: Tue, 2 Apr 2002 08:48:36 +0800 Subject: [vtkusers] How can I contour a delaunay2D? Message-ID: <004501c1d9e1$377b48e0$0100a8c0@zy> Dear users: I used the below code to contour a delaunay2D: this->points=vtkPoints::New(); for(int i=0;i<100;i++) { this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0); } this->profile=vtkPolyData::New(); this->profile->SetPoints(points); this->del=vtkDelaunay2D::New(); this->del->SetInput(profile); this->del->BoundingTriangulationOn(); this->del->SetTolerance(0.00001); this->del->SetAlpha(0.1); this->del->Update(); this->shrink=vtkShrinkPolyData::New(); shrink->SetInput(del->GetOutput()); this->contours=vtkContourFilter::New(); contours->SetInput(shrink->GetOutput()); float range[1]; range[0]=0.0;range[1]=10; contours->GenerateValues(5,range); this->Contourmap=vtkPolyDataMapper::New(); Contourmap->SetInput(contours->GetOutput()); Contourmap->SetScalarRange(0.0,1.2); this->dgx=vtkActor::New(); dgx->SetMapper(Contourmap); But the vtkContourfilter reported:"no data to contour". How can I use the vtkCountourFilter to do it? Thanks any help! zhangyu -------------- next part -------------- An HTML attachment was scrubbed... URL: From husthj at yahoo.com Mon Apr 1 20:07:46 2002 From: husthj at yahoo.com (he j) Date: Mon, 1 Apr 2002 17:07:46 -0800 (PST) Subject: [vtkusers] VTK and VC++6.0 Message-ID: <20020402010746.86076.qmail@web20207.mail.yahoo.com> hi everyone: I'm a beginner of VTK 4.0. I'm very intersting in the powerful vtk package, but I have a simple question about how to use the vtk classes in VC++6.0. I found some C++ examples in the folder beginning with a line "#include vtk.h". But I cann't find this .h file in vtk folder at all. What's the matter? Anyone willing give me a hand? Great thanks! __________________________________________________ Do You Yahoo!? Yahoo! Greetings - send holiday greetings for Easter, Passover http://greetings.yahoo.com/ From zhangyutin at sina.com Mon Apr 1 20:09:16 2002 From: zhangyutin at sina.com (zhangyu) Date: Tue, 2 Apr 2002 09:09:16 +0800 Subject: [vtkusers] How can I contour a delaunay2D? Message-ID: <006a01c1d9e3$2e1b01d0$0100a8c0@zy> Dear users: I used the below code to contour a delaunay2D: this->points=vtkPoints::New(); for(int i=0;i<100;i++) { this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0); } this->profile=vtkPolyData::New(); this->profile->SetPoints(points); this->del=vtkDelaunay2D::New(); this->del->SetInput(profile); this->del->BoundingTriangulationOn(); this->del->SetTolerance(0.00001); this->del->SetAlpha(0.1); this->del->Update(); this->shrink=vtkShrinkPolyData::New(); shrink->SetInput(del->GetOutput()); this->contours=vtkContourFilter::New(); contours->SetInput(shrink->GetOutput()); float range[1]; range[0]=0.0;range[1]=10; contours->GenerateValues(5,range); this->Contourmap=vtkPolyDataMapper::New(); Contourmap->SetInput(contours->GetOutput()); Contourmap->SetScalarRange(0.0,1.2); this->dgx=vtkActor::New(); dgx->SetMapper(Contourmap); But the vtkContourfilter reported:"no data to contour". How can I use the vtkCountourFilter to do it? Thanks any help! zhangyu From zhangyutin at sina.com Mon Apr 1 20:09:16 2002 From: zhangyutin at sina.com (zhangyu) Date: Tue, 2 Apr 2002 09:09:16 +0800 Subject: [vtkusers] How can I contour a delaunay2D? Message-ID: <006a01c1d9e3$2e1b01d0$0100a8c0@zy> Dear users: I used the below code to contour a delaunay2D: this->points=vtkPoints::New(); for(int i=0;i<100;i++) { this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0); } this->profile=vtkPolyData::New(); this->profile->SetPoints(points); this->del=vtkDelaunay2D::New(); this->del->SetInput(profile); this->del->BoundingTriangulationOn(); this->del->SetTolerance(0.00001); this->del->SetAlpha(0.1); this->del->Update(); this->shrink=vtkShrinkPolyData::New(); shrink->SetInput(del->GetOutput()); this->contours=vtkContourFilter::New(); contours->SetInput(shrink->GetOutput()); float range[1]; range[0]=0.0;range[1]=10; contours->GenerateValues(5,range); this->Contourmap=vtkPolyDataMapper::New(); Contourmap->SetInput(contours->GetOutput()); Contourmap->SetScalarRange(0.0,1.2); this->dgx=vtkActor::New(); dgx->SetMapper(Contourmap); But the vtkContourfilter reported:"no data to contour". How can I use the vtkCountourFilter to do it? Thanks any help! zhangyu From zhangyutin at sina.com Mon Apr 1 20:54:27 2002 From: zhangyutin at sina.com (zhangyu) Date: Tue, 2 Apr 2002 9:54:27 +0800 Subject: [vtkusers] How can I contour a delaunay2D? Message-ID: <20020402015305.9569376346@public.kitware.com> Dear users: I used the below code to contour a delaunay2D: this->points=vtkPoints::New(); for(int i=0;i<100;i++) { this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0); } this->profile=vtkPolyData::New(); this->profile->SetPoints(points); this->del=vtkDelaunay2D::New(); this->del->SetInput(profile); this->del->BoundingTriangulationOn(); this->del->SetTolerance(0.00001); this->del->SetAlpha(0.1); this->del->Update(); this->shrink=vtkShrinkPolyData::New(); shrink->SetInput(del->GetOutput()); this->contours=vtkContourFilter::New(); contours->SetInput(shrink->GetOutput()); float range[1]; range[0]=0.0;range[1]=10; contours->GenerateValues(5,range); this->Contourmap=vtkPolyDataMapper::New(); Contourmap->SetInput(contours->GetOutput()); Contourmap->SetScalarRange(0.0,1.2); this->dgx=vtkActor::New(); dgx->SetMapper(Contourmap); But the vtkContourfilter reported:"no data to contour". How can I use the vtkCountourFilter to do it? Thanks any help! zhangyu From clyao at cugb.edu.cn Mon Apr 1 21:25:52 2002 From: clyao at cugb.edu.cn (cly) Date: Tue, 2 Apr 2002 10:25:52 +0800 Subject: [vtkusers] Re: I have a question References: <20020402011931.65141.qmail@web20204.mail.yahoo.com> Message-ID: <000f01c1d9ed$b635f2f0$3a61ccca@CUGBYCL> Hi, Denny, You should set some parameters in VC++ environment. Such as setting the directories in 'Options...' menu under 'Tools', and linking the vtk*.libs at project settings. Hope this help you. cly ----- Original Message ----- From: "he j" To: Sent: Tuesday, April 02, 2002 9:19 AM Subject: I have a question > hi cly: > I saw your email about MC in vtk email lists. I 'm a > newbie in vtk and very intersting in vtk. I copy your > code and paste it in VC++6.0. But I got the following > errors when I compiled the code: > > jkl.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: void __thiscall > vtkMarchingCubes::SetValue(int,float)" > (__imp_?SetValue at vtkMarchingCubes@@QAEXHM at Z) > jkl.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: static class > vtkMarchingCubes * __cdecl > vtkMarchingCubes::New(void)" > (__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ) > jkl.obj : error LNK2001: unresolved external symbol > "__declspec(dllimport) public: static class > vtkVolume16Reader * __cdecl > vtkVolume16Reader::New(void)" > (__imp_?New at vtkVolume16Reader@@SAPAV1 at XZ) > > I guess it was because some libs was not included in > my project,right? How can I solve this problem? > > sincerely Denny he > > __________________________________________________ > Do You Yahoo!? > Yahoo! Greetings - send holiday greetings for Easter, Passover > http://greetings.yahoo.com/ > From dai_shuo at hotmail.com Mon Apr 1 21:28:56 2002 From: dai_shuo at hotmail.com (=?gb2312?B?tPcgy7Y=?=) Date: Tue, 02 Apr 2002 10:28:56 +0800 Subject: [vtkusers] a problem about vtkPolyDataConnectivityFilter Message-ID: hi, everybody I'm using vtkPolyDataConnectivityFilter to extract connective regions out of an isosurface (thanks for alex's great help). But i can't obtain the number of connective regions with GetNumberOfExtractedRegions(). Everytime, it returns 0. my poly data set involves 24 connective regions (i wrote another program to get this number), how can I use vtkPolyDataConnectivityFilter to get it directly?plz give me a hand! thx a lot! Daishuo _________________________________________________________________ ???? MSN Explorer?http://explorer.msn.com/lccn/intl.asp? From bill.hoffman at kitware.com Wed Apr 3 13:20:36 2002 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Wed, 03 Apr 2002 13:20:36 -0500 Subject: [vtkusers] test Message-ID: <5.0.2.1.0.20020403132031.05df3820@pop.nycap.rr.com> From kteich at cortechs.net Wed Apr 3 14:13:56 2002 From: kteich at cortechs.net (Kevin Teich) Date: Wed, 3 Apr 2002 14:13:56 -0500 (EST) Subject: [vtkusers] Best way to compute non-visual 'histogram'? Message-ID: I would like to get a simple count of the number of times voxel values show up in an image/volume. I can do it in straight Tcl, but it is very slow to access each voxel individually. vtkImageAccumulate does this, but its output is visual. I am more interested getting the raw numbers for generating a text table or other statistical use. Is there any way to use vtkImageAccumulate to do this, or is it strictly a visual filter? I can easily write a filter class to compute this information and then write an access function to get it from within Tcl, but I'm wondering if there is an existing way to get this kind of functionality. Thanks. -- Kevin Teich From heiland at ncsa.uiuc.edu Wed Apr 3 14:13:20 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Wed, 3 Apr 2002 13:13:20 -0600 Subject: [vtkusers] scalars in PolyDataWriter Message-ID: <1020403131320.ZM19906@kelgia.ncsa.uiuc.edu> Simple question (vtk 4.0) - I have an ascii polydata file with multiple sets of (pointdata) scalars and I want to read it in and write it out as a binary polydata file. When I do so, I don't get the scalars. What am I missing? I blindly tried this (actually just writing back out in ascii here to see results): pdatRead = vtkPolyDataReader() pdatRead.SetFileName(infname) pdatRead.GetOutput().GetCellData().CopyScalarsOff() pdatRead.GetOutput().GetPointData().CopyScalarsOn() pdatRead.SetScalarsName("species2") pdatRead.Update() writer = vtkPolyDataWriter() writer.SetFileName(outfname) #writer.SetFileTypeToBinary() writer.SetInput(pdatRead.GetOutput()) writer.Write() thanks! --Randy From lists at carlh.net Wed Apr 3 05:15:50 2002 From: lists at carlh.net (Carl Hetherington) Date: Wed, 3 Apr 2002 11:15:50 +0100 (GMT) Subject: [vtkusers] vtkWin32RenderWindowInteractor problems Message-ID: Hi, I am writing a Win32 task and there is one window that I want VTK to plot. The relevant bits of the setup code are: render = vtkRenderer::New(); vtkw = vtkRenderWindow::New(); /* window is the HWND of my task's window */ vtkw->SetWindowId(reinterpret_cast(window); vtkw->AddRenderer(render); render->AddActor(act); render->SetActiveCamera(camera); render->ResetCamera(); interact = vtkWin32RenderWindowInteractor::New(); interact->SetRenderWindow(vtkw); interact->SetInstallMessageProc(false); interact->Initialize(); Now I also respond to some window events as follows: case WM_LBUTTONDOWN: interact->OnLButtonDown(window, 0, LOWORD(lparam), HIWORD(lparam)); break; case WM_LBUTTONUP: interact->OnLButtonUp(window, 0, LOWORD(lparam), HIWORD(lparam)); break; case WM_MOUSEMOVE: interact->OnMouseMove(window, 0, LOWORD(lparam), HIWORD(lparam)); break; The scene plots fine but mouse rotation doesn't work. Strangely, though, the window responds correctly to being re-sized, even though I don't explicitly pass the WM_SIZE event back to VTK. Am I going about this the wrong way? Can anyone help? Thanks Carl From mueller at cg.nrcan.gc.ca Wed Apr 3 17:49:32 2002 From: mueller at cg.nrcan.gc.ca (Christof Mueller) Date: Wed, 03 Apr 2002 17:49:32 -0500 Subject: [vtkusers] Representing Points in 3D Message-ID: <3CAB86FC.2FCAA253@cg.nrcan.gc.ca> I've been trying to represent a number of points in space, but without success: I tried to use vtkAssembly to represent each point by a sphere: vtkAssembly *actors=vtkAssembly::New(); vtkSphereSource *sphere=vtkSphereSource::New(); vtkActor *srcactor = vtkActor::New(); vtkPolyDataMapper *spheremapper = vtkPolyDataMapper::New(); while(fscanf(srcfp,"%f %f %f",&x,&y,&z)!=EOF){ sphere->SetCenter(x,y,z); sphere->SetRadius(3.0); spheremapper->SetInput(sphere->GetOutput()); srcactor->SetMapper(spheremapper); actors->AddPart(srcactor); } ren1->AddActor(actors); The result shows only the last srcactor. I assume that I would have to represent each point by it's own actor. There must be a simpler way to do this ... Any suggestions ? Even a completely different approach would be fine, since I belive that mine is probably not very smart ... Cheers, Christof From volpecr at crd.ge.com Wed Apr 3 17:58:03 2002 From: volpecr at crd.ge.com (Volpe, Christopher R (CRD)) Date: Wed, 3 Apr 2002 17:58:03 -0500 Subject: [vtkusers] Contrib directory Message-ID: At one point I remember there was a "contrib" folder in the repository to share random contributed classes that might not naturally belong in one of the standard places (rendering, imaging, etc) or might not be ready for prime time yet (i.e. not have test scripts that cover every method, etc). Is there no longer an extablished mechanism for this? Chris > GE Global Research Center > ___________________________________________________________________________________________________ > _______________________________________________ > Dr. Christopher R. Volpe, Ph.D. Computer Scientist Visualization and Computer Vision Lab Imaging Technologies Bldg KW, Room C215 P.O. Box 8, Schenectady, NY 12301 (518) 387-7766, Dial Comm: 8*833-7766, Fax: (518) 387-6981 e-mail: volpecr at crd.ge.com web: http://www.crd.ge.com/~volpecr begin 600 winmail.dat M>)\^(@D6`0:0"``$```````!``$``0>0!@`(````Y`0```````#H``$(@`<` M&````$E032Y-:6-R;W-O9G0 at 36%I;"Y.;W1E`#$(`06``P`.````T@<$``,` M$0`Z``,``P`Q`0$@@`,`#@```-('!``#`!$`.@`'``,`-0$!"8`!`"$````P M,CDQ,S)$,3DW0C4W1C0Q.#4P04,S,3`S141"-D9&-``8!P$$@`$`$@```$-O M;G1R:6(@9&ER96-T;W)Y`,8&`0V`!``"`````@`"``$#D`8`"`D``"\````# M``E9`P````(!<0`!````%@````'!VV,%5Z$//0:SN$&$ND.\3)/A/T\```,` MWC^O;P```P`!;B`````#`#V`""`&``````#`````````1@````!2A0``?6X! M`!X`/H`((`8``````,````````!&`````%2%```!````!````#DN,``+`.J! M""`&``````#`````````1@`````&A0````````,`/X`((`8``````,`````` M``!&``````&%````````"P`[@`@@!@``````P````````$8``````X4````` M```+`$"`""`&``````#`````````1@`````.A0````````,`/(`((`8````` M`,````````!&`````!"%`````````P!!@`@@!@``````P````````$8````` M$84````````#`$*`""`&``````#`````````1@`````8A0````````(!"1`! M````CP,``(L#``"=!0``3%I&=:-T[.@#``H`2-P;R"N`&$$#`',G4/8P!!`*`2 M`PY`($-H_P40$+`WY#CP#E`,,!+`*7#/!9`2D12"(=%'13KF`M'<,R`#,3O1 M"0!B!T`\H[92!Y`O0'(80#SC0PGPO2?P!@(%_7+W[_7T5*XV%` M*6`B0%WY"\4W[PME(QKQ`&;``!X`<``!````$@```$-O;G1R:6(@9&ER96-T M;W)Y````"P`"``$````#`/T_Y`0``$``.0#PJK4"8]O!`0,`\3\)!```'@`Q M0`$````2````0TA225-43U!(15(N5D],4$4````#`!I``````!X`,$`!```` M$@```$-(4DE35$]02$52+E9/3%!%`````P`90``````#`"8```````,`-@`` M`````P"`$/____\+`/(0`0````(!1P`!````-@```&,]55,[83U-05)+-#`P M.W`]1T4[;#U834(P,D-21$=%+3`R,#0P,S(R-3 at P,UHM,38Q.#$X`````@'Y M/P$```!U`````````-RG0,C`0A`:M+D(`"LOX8(!`````````"]//4=%+T]5 M/4-21$Y)4TM!655.02]#3CU214-)4$E%3E13+T-./4580TA!3D=%($-,245. M5"`H15A#,#%#4D1'12DO0TX]0TA225-43U!(15(N5D],4$4`````'@#X/P$` M```;````5F]L<&4L($-H&UB,#)C``@0`0```&4```!!5$].15!/24Y425)%345-0D525$A%4D57 M05-!(D-/3E1224(B1D],1$5224Y42$5215!/4TE43U)95$]32$%215)!3D1/ M34-/3E1224)55$5$0TQ!4U-%4U1(051-24=(5$Y/``````(!?P`!````-@`` M`#Q&0D4Y,$1&0S(T,$)!-30Q0C,X030S1C,Y.3$S03$V1#`R14$R.44R0'AM .8C`R8W)D9V4^````DAT= ` end From mmalat at irus.rri.ca Wed Apr 3 19:26:08 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Wed, 03 Apr 2002 19:26:08 -0500 Subject: [vtkusers] newbie problems with vtk4.0/python on Linux Message-ID: <3CAB9DA0.A56DDE74@irus.rri.ca> Hi, I am having trouble started with VTK 4.0 & PYTHON (vtk 3.2 was working fine). After compiling vtk4, I tried to use python (via vtkpython), but I get this [mmalat at shalom VTK]$ python Python 2.2 (#1, Feb 7 2002, 17:18:50) [GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import vtkpython Traceback (most recent call last): File "", line 1, in ? File "/shalom/data/mmalat/VTK/Wrapping/Python/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: /shalom/data/mmalat/VTK/bin/libvtkIOPython.so: undefined symbol: jpeg_std_error >>> Does anyone have any idea what I am doing wrong? many thanks, Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From frog at creatis.insa-lyon.fr Tue Apr 2 04:20:50 2002 From: frog at creatis.insa-lyon.fr (Eric Boix) Date: Tue, 2 Apr 2002 11:20:50 +0200 Subject: [vtkusers] [Python] Two Init-level class wrappers Message-ID: <20020402112050.A6664@tux.creatis.insa-lyon.fr> Dear Vtk.4.x + Python users, As I understand it, building the Python wrapers of some VTK custom classes is a two stage process: 1/ invoke vtkWrapPython on each of the vtk classes include files (as many invocations as they classes). 2/ generate the initialisation function of the dynamic library i.e. the function that is called by Python when importing, and that shall populate the dictionnary with new avalaible classes. There seems to be two different versions of the code taking care of this second stage: * the first one comes with VTK is located in VTK/Wrapping/vtkWrapPythonInit.c. This was the code used by vtk.3.2. * the second one, suprisingly enough, comes with CMake as you can find it in CMake/Source/cmVTKWrapPythonCommand.cxx (see the function cmVTKWrapPythonCommand::FinalPass). As I understand it, this is the way of doing it in vtk.4.x, meaning CMake does the job (I wouldn't dare discussing the opportunity of putting some VTK related code within CMake. I believe this code is generic enough and the remaining VTK reference in the labels/names are only due to history). Now, if ones looks at the nice frameset for wrapping custom classes that VTK.4.x provides (see VTK/Examples/Build/vtkMy thanks to Sebastien Barre), it uses CMake to build the Python library header. My question is: how long will this duplication of the second stage wrapper code remain ? Can one hope that the simple version that comes with VTK (in vtkWrapPythonInit.c) will continue to evolve with Python ? Can I rely on this vtkWrapPythonInit.c code to maintain my own Makefiles ? [I know, I know I should move to CMake, but I have so many custom classes that I wrap with Makefiles...]. AtDhVaAnNkCsE, Yours, Eric Boix. From dai_shuo at hotmail.com Wed Apr 3 19:16:09 2002 From: dai_shuo at hotmail.com (Dai Shuo) Date: Thu, 04 Apr 2002 08:16:09 +0800 Subject: [vtkusers] how to display and control a sphere? Message-ID: hi, i want to cut a poly-data with a vtkSphere. but how to display the sphere on the screen and how to control its center and size with my mouse or keyboard? thanks for any helps! Daishuo _________________________________________________________________ ???? MSN Explorer?http://explorer.msn.com/lccn/intl.asp? From elwo73 at hotmail.com Wed Apr 3 19:27:56 2002 From: elwo73 at hotmail.com (jon n) Date: Wed, 03 Apr 2002 16:27:56 -0800 Subject: [vtkusers] newbie problems with vtk4.0/python on Linux Message-ID: run 'ldd libVTKIOPython.so' to see if the JPEG shared library libvtkjpeg.so is being linked in correctly. >From: Mathieu Malaterre >To: vtkusers at public.kitware.com >Subject: [vtkusers] newbie problems with vtk4.0/python on Linux >Date: Wed, 03 Apr 2002 19:26:08 -0500 > >Hi, > > I am having trouble started with VTK 4.0 & PYTHON (vtk 3.2 was working >fine). > >After compiling vtk4, I tried to use python (via vtkpython), but I get >this > >[mmalat at shalom VTK]$ python >Python 2.2 (#1, Feb 7 2002, 17:18:50) >[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2 >Type "help", "copyright", "credits" or "license" for more information. > >>> import vtkpython >Traceback (most recent call last): > File "", line 1, in ? > File "/shalom/data/mmalat/VTK/Wrapping/Python/vtkpython.py", line 29, >in ? > exec "from "+kit_name+" import *" > File "", line 1, in ? >ImportError: /shalom/data/mmalat/VTK/bin/libvtkIOPython.so: undefined >symbol: jpeg_std_error > >>> > > >Does anyone have any idea what I am doing wrong? > >many thanks, > >Mathieu ><< mmalat.vcf >> _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From roland.schwarz at chello.at Thu Apr 4 00:17:24 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Thu, 4 Apr 2002 07:17:24 +0200 Subject: [vtkusers] vtkWin32RenderWindowInteractor problems References: Message-ID: <001001c1db98$0460cfd0$133da8c0@zoo> Hi Carl, >From your listing I can see the following: 1) It seems as if you are trying to embedd a window that is beeing managed by you. Are you? The vtkWin32RenderWindow may be operated in two different scenarios. If you already have a window, and just want your messages beeing handled by vtkWin32RenderWindow you need to call SetWindowId. If you don't, or if the result of reinterpret_cast(window) evaluates to NULL, the vtkWin32renderWindow will create a window on its own (and manage it). 2) > vtkw->SetWindowId(reinterpret_cast(window); You need to pass a HWND Windows Window handle here. What type is your Window? reinterpret_cast does a bit level reinterpret. This is most likely not what you want here. If your class has a conversion operator that will convert a calss pointer to its embedded HWND you may use a cast. but most likely it does not have one. 2) After having set the Window Id you should call vtkw->Initialize(). Also first set the parent Window Id using vtkw->SetParentId(...) 3) Do not call interact->SetInstallMessageProc(false); 4) To get your messages handled properly you should not > case WM_LBUTTONUP: > interact->OnLButtonUp(window, 0, LOWORD(lparam), HIWORD(lparam)); > break; and the like. vtkHandleMessage2(....); instead. To summarize: You either can delegate from your window to a second window, then do not call SetWindowId and use Use interact->OnLButtonUp, or you can subclass your window, the use SetWindowID with a proper HWND and call vtkHandleMessage2 . To give you more help I would need to know more about your window. If you are compiling for MFC I have an example for you if you like. Roland ----- Original Message ----- From: "Carl Hetherington" To: "VTK Mailing list" Sent: Wednesday, April 03, 2002 12:15 PM Subject: [vtkusers] vtkWin32RenderWindowInteractor problems > Hi, > > I am writing a Win32 task and there is one window that I want VTK to > plot. > > The relevant bits of the setup code are: > > render = vtkRenderer::New(); > vtkw = vtkRenderWindow::New(); > /* window is the HWND of my task's window */ > vtkw->SetWindowId(reinterpret_cast(window); > vtkw->AddRenderer(render); > > render->AddActor(act); > render->SetActiveCamera(camera); > render->ResetCamera(); > > interact = vtkWin32RenderWindowInteractor::New(); > interact->SetRenderWindow(vtkw); > interact->SetInstallMessageProc(false); > interact->Initialize(); > > Now I also respond to some window events as follows: > > case WM_LBUTTONDOWN: > interact->OnLButtonDown(window, 0, LOWORD(lparam), HIWORD(lparam)); > break; > > case WM_LBUTTONUP: > interact->OnLButtonUp(window, 0, LOWORD(lparam), HIWORD(lparam)); > break; > > case WM_MOUSEMOVE: > interact->OnMouseMove(window, 0, LOWORD(lparam), HIWORD(lparam)); > break; > > The scene plots fine but mouse rotation doesn't work. Strangely, though, > the window responds correctly to being re-sized, even though I don't > explicitly pass the WM_SIZE event back to VTK. > > Am I going about this the wrong way? Can anyone help? > > Thanks > Carl > > > > > _______________________________________________ > 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 Thu Apr 4 00:22:37 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 4 Apr 2002 10:52:37 +0530 Subject: [vtkusers] Representing Points in 3D In-Reply-To: <3CAB86FC.2FCAA253@cg.nrcan.gc.ca> References: <3CAB86FC.2FCAA253@cg.nrcan.gc.ca> Message-ID: <15531.58141.763863.445701@monster.linux.in> >>>>> "CM" == Christof Mueller writes: CM> I've been trying to represent a number of points in space, but CM> without success: CM> I tried to use vtkAssembly to represent each point by a CM> sphere: [snip] CM> I assume that I would have to represent each point by it's own CM> actor. There must be a simpler way to do this ... Yes, if you are using the assembly you need to create multiple actors and append them. A possibly simpler way to do it might be to use the vtkGlyph3D class. There are many examples that use this class in both VTK 3.2 and 4.x. Take a look and read the class docs. prabhu From roland.schwarz at chello.at Thu Apr 4 00:28:12 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Thu, 4 Apr 2002 07:28:12 +0200 Subject: [vtkusers] Representing Points in 3D References: <3CAB86FC.2FCAA253@cg.nrcan.gc.ca> Message-ID: <001601c1db99$87e203a0$133da8c0@zoo> Hi Christof, Points are best represented by a vtkPolyData object that has exacatly one cell of type VTK_VERTEX. This Vertex Cell is simply a list of Id's that are indices to your data. You should read about writing a reader class. I recommend to derive from class vtkPolyDataSource then. I.e.: class VTK_IO_EXPORT vtkMyReader : public vtkPolyDataSource { .... your class definitions } This reader will become the starting point of your pipeline. You will then connect this reader to a mapper and so on. Tip.: Have a look on the available reader classes in the library to see how it is done. Roland ----- Original Message ----- From: "Christof Mueller" To: Sent: Thursday, April 04, 2002 12:49 AM Subject: [vtkusers] Representing Points in 3D > I've been trying to represent a number of points in space, but without > success: > > I tried to use vtkAssembly to represent each point by a sphere: > > vtkAssembly *actors=vtkAssembly::New(); > vtkSphereSource *sphere=vtkSphereSource::New(); > vtkActor *srcactor = vtkActor::New(); > vtkPolyDataMapper *spheremapper = vtkPolyDataMapper::New(); > > while(fscanf(srcfp,"%f %f %f",&x,&y,&z)!=EOF){ > sphere->SetCenter(x,y,z); > sphere->SetRadius(3.0); > spheremapper->SetInput(sphere->GetOutput()); > srcactor->SetMapper(spheremapper); > actors->AddPart(srcactor); > > } > ren1->AddActor(actors); > > The result shows only the last srcactor. > > I assume that I would have to represent each point by it's own actor. > There must be a simpler way to do this ... > > Any suggestions ? Even a completely different approach would be fine, > since I belive that mine is probably not very smart ... > > Cheers, > > Christof > > _______________________________________________ > 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 platogao at sina.com Thu Apr 4 01:28:03 2002 From: platogao at sina.com (platogao) Date: Thu, 4 Apr 2002 14:28:03 +0800 Subject: [vtkusers] Help! How to slice a volume data arbitrary? Message-ID: <006501c1dba1$dffe3100$c46fa8c0@platogao> Hi, I have a volume data set. I want to get the arbitrary slice of the volume. That is: you can define your our plane function to cut or slice the volume, and then get the slice image. I know this is very easy if use vtkCutter or vtkProbe or vtkImageReslice. But they are 'black box' to me. I cannot control every step of the operation. I need to do this operation use C++ and OpenGL. My idea is that: use a point and a normal to define the plane. Then convert every points in the plane(use 2d coordinate,say image[i,j]) to 3d coordinate(x,y,z). Then see if (x,y,z) is in the volume. If it is in, use linear interplation to get the Value(x,y,z). My idea seems straight forword, but I think it is also very slow. I wonder if anyone can give me some advise on this operation, or how to convert (i,j) from a plane to world coordiante (x,y,z). Thank you very much! Plato Gao -------------- next part -------------- An HTML attachment was scrubbed... URL: From platogao at sina.com Thu Apr 4 02:14:08 2002 From: platogao at sina.com (platogao) Date: Thu, 4 Apr 2002 15:14:08 +0800 Subject: [vtkusers] Help! How to slice a volume data arbitrary? Message-ID: <019f01c1dba8$52f8cbb0$c46fa8c0@platogao> Hi, I have a volume data set. I want to get the arbitrary slice of the volume. That is: you can define your our plane function to cut or slice the volume, and then get the slice image. I know this is very easy if use vtkCutter or vtkProbe or vtkImageReslice. But they are 'black box' to me. I cannot control every step of the operation. I need to do this operation use C++ and OpenGL. My idea is that: use a point and a normal to define the plane. Then convert every points in the plane(use 2d coordinate,say image[i,j]) to 3d coordinate(x,y,z). Then see if (x,y,z) is in the volume. If it is in, use linear interplation to get the Value(x,y,z). My idea seems straight forword, but I think it is also very slow. I wonder if anyone can give me some advise on this operation, or how to convert (i,j) from a plane to world coordiante (x,y,z). Thank you very much! Plato Gao -------------- next part -------------- An HTML attachment was scrubbed... URL: From roland.schwarz at chello.at Thu Apr 4 02:34:07 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Thu, 4 Apr 2002 09:34:07 +0200 Subject: [vtkusers] Help! How to slice a volume data arbitrary? References: <019f01c1dba8$52f8cbb0$c46fa8c0@platogao> Message-ID: <040e01c1dbab$1d8aa2c0$133da8c0@zoo> Hi Plato, I am not sure what you want, but cutting points in 3-d basically is a dot-product of a plane vector with the respective point. Say, you have a plane defined by its homogenous coordinates: (a,b,c,d) then have your point defined in its homeogenous coordinates (x,y,z,1). Then calculate d = a*x + b*y + c*z +d*1. If d > 0 the point is on one side of the plane, if not it is on the other. Also have a look what is called (Hessesche-) Normal-Form of the plane equation. Again I am not sure what you really need. Roland ----- Original Message ----- From: platogao To: vtkusers at public.kitware.com Sent: Thursday, April 04, 2002 9:14 AM Subject: [vtkusers] Help! How to slice a volume data arbitrary? Hi, I have a volume data set. I want to get the arbitrary slice of the volume. That is: you can define your our plane function to cut or slice the volume, and then get the slice image. I know this is very easy if use vtkCutter or vtkProbe or vtkImageReslice. But they are 'black box' to me. I cannot control every step of the operation. I need to do this operation use C++ and OpenGL. My idea is that: use a point and a normal to define the plane. Then convert every points in the plane(use 2d coordinate,say image[i,j]) to 3d coordinate(x,y,z). Then see if (x,y,z) is in the volume. If it is in, use linear interplation to get the Value(x,y,z). My idea seems straight forword, but I think it is also very slow. I wonder if anyone can give me some advise on this operation, or how to convert (i,j) from a plane to world coordiante (x,y,z). Thank you very much! Plato Gao From hanssen at caesar.de Thu Apr 4 02:49:56 2002 From: hanssen at caesar.de (Nils Hanssen) Date: Thu, 4 Apr 2002 09:49:56 +0200 Subject: [vtkusers] Changing the size of the vtkOutputWindow Message-ID: <000b01c1dbad$50a21830$0607010a@ssn4006> Hi all, is there a possibility to change the size of the debug window within the own code (not with the mouse)? I want to print some debug information but i can't see them all because the width of the window is too small and the window is freezed :( Thanks for any suggestions! Regards, Nils ------------------------- Nils Hanssen Surgical Systems Lab research center c ae sa r Friedensplatz 16 53111 Bonn fon: +49-228-9656-249 fax: +49-228-9656-111 http://www.caesar.de/ssl From amati at ira.cnr.it Thu Apr 4 03:57:20 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Thu, 4 Apr 2002 10:57:20 +0200 (CEST) Subject: [vtkusers] Light on volums Message-ID: Hello everybody, I have the following problems with lighting: when I render my dataset as points, and I will move my camera position around the dataset (to simulate rotation, rolling and dolly) my points don't change color according to the light position (default light). After that I visualize my poits as sphere glyph3d and when I move around my dataset, my sphere are colored in front of me, but they are black when I move behind them. I think that the reason is that exist a default light positioned at the original position camera, but how can I change that, I would like to see also the backface of my sphere. Hoping to be clear, have a nice day!. Giancarl -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From roland.schwarz at chello.at Thu Apr 4 03:00:58 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Thu, 4 Apr 2002 10:00:58 +0200 Subject: Fw: [vtkusers] Help! How to slice a volume data arbitrary? Message-ID: <041601c1dbae$dcfe72a0$133da8c0@zoo> ----- Original Message ----- From: "Giancarlo Amati" To: "Roland Schwarz" Sent: Thursday, April 04, 2002 10:43 AM Subject: Re: [vtkusers] Help! How to slice a volume data arbitrary? > > Hi plato, > > try to use a combination between vktPlane that is a class that define the > plane and a vtkCutter (or vtkCutting I do not remember) which take in > input the implicit function vtkPlane defined before and the input dataset, > I found some example in the following site: > http://www.rug.nl/hpc/VTK/vtk/man.html > > Best regards, > Giancarlo Amati > > > On Thu, 4 Apr 2002, Roland Schwarz wrote: > > > Hi Plato, > > > > I am not sure what you want, but cutting points in 3-d basically is a > > dot-product of a plane vector with the respective point. > > Say, you have a plane defined by its homogenous coordinates: (a,b,c,d) then > > have your point defined in its homeogenous coordinates (x,y,z,1). > > > > Then calculate d = a*x + b*y + c*z +d*1. If d > 0 the point is on one side > > of the plane, if not it is on the other. > > Also have a look what is called (Hessesche-) Normal-Form of the plane > > equation. > > > > Again I am not sure what you really need. > > > > Roland > > > > ----- Original Message ----- > > From: platogao > > To: vtkusers at public.kitware.com > > Sent: Thursday, April 04, 2002 9:14 AM > > Subject: [vtkusers] Help! How to slice a volume data arbitrary? > > > > > > Hi, > > I have a volume data set. I want to get the arbitrary slice of the volume. > > That is: you can define your our plane function to cut or slice the volume, > > and then get the slice image. > > I know this is very easy if use vtkCutter or vtkProbe or vtkImageReslice. > > But they are 'black box' to me. I cannot control every step of the > > operation. I need to do this operation use C++ and OpenGL. > > My idea is that: use a point and a normal to define the plane. Then > > convert every points in the plane(use 2d coordinate,say image[i,j]) to 3d > > coordinate(x,y,z). Then see if (x,y,z) is in the volume. If it is in, use > > linear interplation to get the Value(x,y,z). > > My idea seems straight forword, but I think it is also very slow. I wonder > > if anyone can give me some advise on this operation, or how to convert (i,j) > > from a plane to world coordiante (x,y,z). > > Thank you very much! > > Plato Gao > > > > > > > > _______________________________________________ > > 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 > > > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > From rrp at imm.dtu.dk Thu Apr 4 03:16:43 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Thu, 4 Apr 2002 10:16:43 +0200 (METDST) Subject: [vtkusers] Changing the size of the vtkOutputWindow In-Reply-To: <000b01c1dbad$50a21830$0607010a@ssn4006> Message-ID: Hi Nils, I use the following code in the start of the program to dump log messages to a file instead of the window: // Avoid silly debug window and dump messages to a file std::string logname = "c:\\temp\\vkt_log.txt"; vtkFileOutputWindow *outwin = vtkFileOutputWindow::New(); outwin->SetFileName(logname.c_str()); outwin->SetInstance(outwin); Regards, Rasmus On Thu, 4 Apr 2002, Nils Hanssen wrote: > is there a possibility to change the size of the debug window within the own > code (not with the mouse)? > I want to print some debug information but i can't see them all because the > width of the window is too small and the window is freezed :( From j.robinson at kepler.ie Thu Apr 4 03:57:16 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Thu, 4 Apr 2002 09:57:16 +0100 Subject: [vtkusers] RE: FEM-VTK? In-Reply-To: <001a01c1db34$39145260$ceccdc3e@mpt.com.mk> Message-ID: Dear Vladan, I am trying to use VTK for post processing of 3D FEM for a scalar field (pressure in a reservoir). Thus far I am doing it by creating a *.vtk file of the data that I want to visualise and reading it in using a vtkUnstructuredGridReader. The details of this are given in The VTK User?s Guide (essential reading) in a TCL example on p.93. I am writing in Visual C++, but the translation of the TCL script to C++ is straight forward. I hope that this is of some help. Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -----Original Message----- From: Andonovic Vladan [mailto:vladan at mt.net.mk] Sent: 03 April 2002 18:22 To: j.robinson at kepler.ie Subject: FEM-VTK? Dear James I have read your post to kitware.. (28/3/02) about FEM visualization. My question is: What is your field of interest in FEM visualization? I am also interested in that field but I am an absolutelly beginner in VTK so your explanation will help me. I have to make pre and post processing in FEM (3D solid modeling) by means of VTK. Best regards Vladan Andonovic, Mech.Eng. PhD student R. Macedonia vladan at mt.net.mk -------------- next part -------------- An HTML attachment was scrubbed... URL: From moitinho at civil.ist.utl.pt Thu Apr 4 04:21:01 2002 From: moitinho at civil.ist.utl.pt (Jose Paulo Moitinho de Almeida) Date: Thu, 4 Apr 2002 10:21:01 +0100 Subject: [vtkusers] RE: FEM-VTK? In-Reply-To: References: Message-ID: <200204040921.g349L1g5025792@lmoit.civil.ist.utl.pt> On Thursday 04 April 2002 09:57, James C. Robinson wrote: > Dear Vladan, > > I am trying to use VTK for post processing of 3D FEM for a scalar field > (pressure in a reservoir). Thus far I am doing it by creating a *.vtk file > of the data that I want to visualise and reading it in using a > vtkUnstructuredGridReader. The details of this are given in The VTK User?s > Guide (essential reading) in a TCL example on p.93. I am writing in Visual > C++, but the translation of the TCL script to C++ is straight forward. > When you have a *.vtk file with your fem results the simplest way to view it is (probably) to use mayavi, http://mayavi.sourceforge.net/. It will show scalars, vectors (and deformed shapes), tensors (as ellipsoids), etc. Regards Ze Paulo From marcio.mathias at edb.ericsson.se Thu Apr 4 05:06:05 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Thu, 4 Apr 2002 07:06:05 -0300 Subject: [vtkusers] VTK-Tcl/Tk wrapping Message-ID: Hi, Does someone know where I can find a good "how-to" for wrapping a VTK-Tcl application? Regards, Marcio. -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.robinson at kepler.ie Thu Apr 4 06:29:34 2002 From: j.robinson at kepler.ie (James C. Robinson) Date: Thu, 4 Apr 2002 12:29:34 +0100 Subject: [vtkusers] RE: FEM-VTK? In-Reply-To: <000f01c1dbbd$e37e6d60$cecadc3e@mpt.com.mk> Message-ID: Dear Vladan, I?m afraid I haven?t used vtk in the pre-processing stage so I can?t comment. If you are talking about visualisation during ?solid modelling? etc, then it might be better to just use OpenGL directly. Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -----Original Message----- From: Andonovic Vladan [mailto:vladan at mt.net.mk] Sent: 04 April 2002 10:47 To: j.robinson at kepler.ie Subject: Re: [vtkusers] RE: FEM-VTK? Dear Jim, Thank you very much for your answer. By your experience, is VTK good tool for pre-processing stage in FEM? Is it possible to draw input model (mesh generated model) in VTK and after that to read point ( i.e. nodes) coordinates in processing stage? I am interested in that because I have developed FEM processing stage (C++ classes for 8 and 20 node element). Best regards Vladan vladan at mt.net.mk ----- Original Message ----- From: James C. Robinson To: Andonovic Vladan ; vtkusers at public.kitware.com Sent: Thursday, April 04, 2002 10:57 AM Subject: [vtkusers] RE: FEM-VTK? Dear Vladan, I am trying to use VTK for post processing of 3D FEM for a scalar field (pressure in a reservoir). Thus far I am doing it by creating a *.vtk file of the data that I want to visualise and reading it in using a vtkUnstructuredGridReader. The details of this are given in The VTK User?s Guide (essential reading) in a TCL example on p.93. I am writing in Visual C++, but the translation of the TCL script to C++ is straight forward. I hope that this is of some help. Regards, Jim ______________________ Dr. James C. Robinson, BE,MEngSc,PhD,MIEI, Kepler Engineering Software Ltd., 42 Rivergrove, Glanmire, Co. Cork, Eire Tel: +353-21-4822028 Tel: +353-87-2393010 Fax: +353-21-4822721 E-mail: j.robinson at kepler.ie ______________________ -----Original Message----- From: Andonovic Vladan [mailto:vladan at mt.net.mk] Sent: 03 April 2002 18:22 To: j.robinson at kepler.ie Subject: FEM-VTK? Dear James I have read your post to kitware.. (28/3/02) about FEM visualization. My question is: What is your field of interest in FEM visualization? I am also interested in that field but I am an absolutelly beginner in VTK so your explanation will help me. I have to make pre and post processing in FEM (3D solid modeling) by means of VTK. Best regards Vladan Andonovic, Mech.Eng. PhD student R. Macedonia vladan at mt.net.mk -------------- next part -------------- An HTML attachment was scrubbed... URL: From dai_shuo at hotmail.com Thu Apr 4 06:39:43 2002 From: dai_shuo at hotmail.com (Dai Shuo) Date: Thu, 04 Apr 2002 19:39:43 +0800 Subject: [vtkusers] how to perform collision detection? Message-ID: hi, everyone I'm working on a virtual surgery operation system. The collision detection will be frequently used in my program. Are thery any vtk classes can help me? Thank you for any helps or suggestions. Daishuo _________________________________________________________________ ???? MSN Explorer?http://explorer.msn.com/lccn/intl.asp? From eplanung at t-online.de Thu Apr 4 07:15:05 2002 From: eplanung at t-online.de (Franz Th. Langer) Date: Thu, 04 Apr 2002 14:15:05 +0200 Subject: [vtkusers] Texture a vtk-file Message-ID: <3CAC43C9.46E18C54@t-online.de> Hi, I want to to Texture the file test.vtk in C++, but the programm works as if there is no Texture at all! what's wrong? I am using the following code. ... //read vtk-file this->Reader->SetFileName("Test.vtk"); vtkPolyData* poly=vtkPolyData::New(); //establish structure poly=this->Reader->GetPolyDataOutput(); //texture bitmap vtkBMPReader* imageIn=vtkBMPReader::New(); imageIn->SetFileName ("g:\\vtkdata\\beach.bmp"); vtkTexture *atext = vtkTexture::New(); atext->SetInput(imageIn->GetOutput()); atext->InterpolateOn(); imageIn->Delete(); //get number of points long n=poly->GetNumberOfPoints(); //create min,max coors float bds[6]; poly->ComputeBounds(); poly->GetBounds(bds); vtkPoints*points=vtkPoints::New(); points=poly->GetPoints(); //create texture coordinates vtkTCoords* tcoor=vtkTCoords::New(); tcoor->SetNumberOfComponents(2); tcoor->SetNumberOfTCoords(n); float xmin=bds[0], xmax=bds[1]; float ymin=bds[2], ymax=bds[3]; float zmin=bds[4], zmax=bds[5]; float dx=xmax-xmin, dy=ymax-ymin, dz=zmax-zmin; float v[3]; for(long i=0; iGetPoint(i,v); v[0]=(v[0]-xmin)/dx;//between 0 and 1 v[1]=(v[1]-ymin)/dy;//between 0 and 1 v[2]=(v[2]-zmin)/dz;//between 0 and 1 tcoor->SetTCoord(i,v); } poly->GetPointData()->SetTCoords(tcoor); tcoor->Delete(); //end texture coors this->Mapper->SetInput(poly); this->Actor->SetTexture(atext); atext->Delete(); this->Actor->VisibilityOn(); .... when I put the Textureinformation in the Test.vtk file everything is ok! Thanks for any help! Franz From vincent.nicolas at tele.ucl.ac.be Thu Apr 4 07:27:35 2002 From: vincent.nicolas at tele.ucl.ac.be (Vincent Nicolas) Date: Thu, 4 Apr 2002 14:27:35 +0200 Subject: [vtkusers] Destroying TK Widget ... Message-ID: <20020404142735.1aab7283.vincent.nicolas@tele.ucl.ac.be> Hi all, When I'm destroying a tkwidget (vtkTkImageViewerWidget, vtkTkImageWindowWidget or vtkTkRenderWidget) a got XWindow error and the program exit. I don't see where is the problem as I delete all the VTK objects before destroying these tkwidgets. I've tried many different manners and this error only appears if I create more than one tkwidget (of any type). I need to destroy these tkwidget on runtime to be able to change the interface of the program on runtime. I'm using VTK 4.0 with a GForce 3 graphic card (with NVidia's drivers) Here is the error : X Error of failed request: BadMatch (invalid parameter attributes) Major opcode of failed request: 142 (GLX) Minor opcode of failed request: 5 (X_GLXMakeCurrent) Serial number of failed request: 1874 Current serial number in output stream: 1874 Thanks for your help. Vincent Nicolas. Tele.ucl.ac.be From amati at ira.cnr.it Thu Apr 4 08:31:22 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Thu, 4 Apr 2002 15:31:22 +0200 (CEST) Subject: [vtkusers] PolyData and IsoLines Message-ID: Hello everybody, I need some help, I would like to generate and visualize isolines from a Polydata dataset organized in points. What can I use? I tryed with vtkMarchingSquare or vtkContourGrid but I suppose that they want a StrucutredGrid in input, can I transform a Polydata in StructuredGrid, if yes how? Thank you very much for your help. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From Odile.Lemay at nrc.ca Thu Apr 4 08:09:29 2002 From: Odile.Lemay at nrc.ca (Lemay, Odile) Date: Thu, 4 Apr 2002 08:09:29 -0500 Subject: [vtkusers] Wrap Java using JBuilder 6, SetSizeInternal, RenderCreate, Render Internal missing. Message-ID: I am trying to wrap Java and vtk4.0 on pc using JBuilder 6. I recompile the vtk4.0 dll libraries with Microsoft Visual C++ 6. I was able to compile the vtkPanel and the example provide with vtk4.0 package with some modifications. But there are 3 subroutines missing into the libraries. I did a search on all the source code. I even tried to recompile the libraries with the option -DVTK_USE_JAWT. Where those 3 subroutines are hidden: RenderCreate RenderInternal SetSizeInternal. I find out 3 other subroutines looking alike : Java_vtkPanel_SetSizeInternal Java_vtkPanel_RenderCreate Java_vtkPanel_RenderInternal. Should I used them instead ? Does somebody can help me ? Is it possible to wrap Java and vtk4.0 on pc with JBuilder ? Odile Lemay Syst?mes informatiques / Computer systems Mod?lisation et Instrumentation de proc?d?s Process Modelling and Instrumentation CNRC / NRC 75 boul. de Mortagne Boucherville (Qu?) CANADA J4B 6Y4 T?l. : (450) 641-5136 Fax : (450) 641-5104 From poecher at icom-consulting.de Thu Apr 4 08:22:15 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Thu, 04 Apr 2002 15:22:15 +0200 Subject: [vtkusers] Destroying TK Widget ... References: <20020404142735.1aab7283.vincent.nicolas@tele.ucl.ac.be> Message-ID: <3CAC5387.89F427A5@icom-consulting.de> Vincent Nicolas schrieb: > I need to destroy these tkwidget on runtime to be able to change the interface of the program on runtime Can't you use wm deiconify .awindow and wm withdraw .awindow to change the interface? chris -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From tokalak at web.de Thu Apr 4 08:43:08 2002 From: tokalak at web.de (ahmed Tokalak) Date: Thu, 4 Apr 2002 15:43:08 +0200 Subject: [vtkusers] Xlib: unexpected async reply (sequence 0xceb)! Message-ID: <200204041343.g34Dh8v23349@mailgate5.cinetic.de> Hello vtk-lovers, While trying to save the scene as an image the following error occured: Xlib: unexpected async reply (sequence 0xceb)! I'm using vtk4.0 + java + linux Here is my code: public void saveScene(vtkRenderWindow window, String file){ vtkWindowToImageFilter wtif = new vtkWindowToImageFilter(); wtif.SetInput(window); wtif.Update(); vtkJPEGWriter jpeg = new vtkJPEGWriter(); jpeg.SetFileName(file + ".jpg"); jpeg.SetInput(wtif.GetOutput()); jpeg.SetQuality(95); jpeg.Write(); } ________________________________________________________________ Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 From rrp at imm.dtu.dk Thu Apr 4 09:57:07 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Thu, 4 Apr 2002 16:57:07 +0200 (METDST) Subject: [vtkusers] Single source shortest path class published Message-ID: Hi All, I have developed a single source shortest path class based on Dijkstras algorithm. It works with vtkPolyData meshes. It needs testing before I will add it to the VTK repository so I have placed it together with a test program on my homepage: www.imm.dtu.dk/~rrp/VTK Comments and suggestions are most welcome! Regards, Rasmus --------------------------------------------------- Rasmus Paulsen, Industrial Ph.D. Student (Oticon) Image Analysis and Computer Graphics Informatics and Mathematical Modelling Technical University of Denmark Building 321, DK-2800 Kgs. Lyngby, Denmark http://www.imm.dtu.dk/~rrp --------------------------------------------------- From prabhu at aero.iitm.ernet.in Thu Apr 4 10:07:38 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 4 Apr 2002 20:37:38 +0530 Subject: [vtkusers] PolyData and IsoLines In-Reply-To: References: Message-ID: <15532.27706.275574.20987@monster.linux.in> >>>>> "GA" == Giancarlo Amati writes: GA> Hello everybody, I need some help, I would like to generate GA> and visualize isolines from a Polydata dataset organized in GA> points. What can I use? I tryed with vtkMarchingSquare or GA> vtkContourGrid but I suppose that they want a StrucutredGrid GA> in input, can I transform a Polydata in StructuredGrid, if yes GA> how? vtkContourFilter should work. prabhu From brownr at ucalgary.ca Thu Apr 4 11:45:23 2002 From: brownr at ucalgary.ca (Robb Brown) Date: Thu, 4 Apr 2002 09:45:23 -0700 Subject: [vtkusers] Changing vtkStructuredPoints scalar type Message-ID: I have a vtkStructuredPoints file with ScalarType set to unsigned char. I want to convert this file so that ScalarType is short. How would I do this? I tried reading it, using SetScalarTypeToShort() then writing it and I do get a larger file but upon reading the file again GetScalarTypeAsString still reports unsigned char. Thanks, Robb -- ______________________________ Robb Brown Seaman Family MR Research Centre Calgary, Alberta, Canada From maraux at ondim.fr Thu Apr 4 12:04:44 2002 From: maraux at ondim.fr (=?iso-8859-1?Q?S=E9bastien_MARAUX?=) Date: Thu, 4 Apr 2002 19:04:44 +0200 Subject: [vtkusers] vtkDecimatePro decimation leads to holes Message-ID: <001a01c1dbfa$d2c18790$c000a8c0@ouessant> Hello, I got some issues using vtkdecimate Pro : 1. Why do some holes appear when I decimate a regular surface (obtained from delaunay2D) ? 2. Why does a "steps effect" appear in the same conditions, when the base surface is smooth ? Thanks in advance for any advice, answer or compassion. Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Thu Apr 4 12:09:24 2002 From: maraux at ondim.fr (=?iso-8859-1?Q?S=E9bastien_MARAUX?=) Date: Thu, 4 Apr 2002 19:09:24 +0200 Subject: [vtkusers] using vtkQuadricClustering and vtkQuadricDecimation Message-ID: <001e01c1dbfb$79a36470$c000a8c0@ouessant> hello, 1. is there a person kind enough for explaining what are vtkQuadricClustering and vtkQuadricDecimation for? These functions are not widely explained in the manpages. I want to use decimation in order to decimate a DEM surface obtained via vtkDelaunay2D on a points set. 2. especially, I do not understand what means "cost" ? 3. Is there a simple rule to deduce a decimation ratio from cost ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sonia_specher at yahoo.fr Thu Apr 4 12:20:46 2002 From: sonia_specher at yahoo.fr (=?iso-8859-1?q?sonia=20specher?=) Date: Thu, 4 Apr 2002 19:20:46 +0200 (CEST) Subject: [vtkusers] colour a point with a specified color Message-ID: <20020404172046.43361.qmail@web20405.mail.yahoo.com> Hi, i have a polygon contained on a vtkPolyData and i want to colour some points of this poygon with a specified color. How can i do ? Thanks for your answer and have a nice day ! Sonia. ___________________________________________________________ Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! Yahoo! Mail : http://fr.mail.yahoo.com From koster at iam.uni-bonn.de Thu Apr 4 12:43:02 2002 From: koster at iam.uni-bonn.de (Frank Koster) Date: Thu, 04 Apr 2002 19:43:02 +0200 Subject: [vtkusers] CountourFilter + RectilinearGrid Message-ID: <3CAC90A6.C4D4DFDF@iam.uni-bonn.de> Hi, to learn a little bit about vtk, I modified the very simple Vol.cxx example which initializes a vtkStructuredPoints data set by setting the origin, the spacings and the scalars like vtkStructuredPoints *vol = vtkStructuredPoints::New(); vol->SetDimensions(26,26,26); vol->SetOrigin(-0.5,-0.5,-0.5); sp = 1.0/25.0; vol->SetSpacing(sp, sp, sp); vtkScalars *scalars = vtkScalars::New(); : vol->GetPointData()->SetScalars(scalars); scalars->Delete(); Then a contour is extracted and a nice isosurface is drawn on the screen. Now, i just switched from StructuredPoints to RectilinearGrid, and left everything else as it was: vtkRectilinearGrid *vol = vtkRectilinearGrid::New(); vtkScalars *xx=vtkScalars::New() ; for (i=0; i<26; i++) xx->InsertScalar(i, ((float)i)/25 ); vol->SetXCoordinates(xx); vol->SetYCoordinates(xx); vol->SetZCoordinates(xx); vtkScalars *scalars = vtkScalars::New(); : vol->GetPointData()->SetScalars(scalars); scalars->Delete(); In this case, NO ISOSURFACE was drawn on the screen. Has anybody an idea what went wrong ? I suppose i missed something in the initialization of a RectilinearGrid. regards Frank -------------- next part -------------- An HTML attachment was scrubbed... URL: From vnic at gmx.fr Thu Apr 4 13:20:47 2002 From: vnic at gmx.fr (Vincent Nicolas) Date: Thu, 04 Apr 2002 20:20:47 +0200 Subject: [vtkusers] Fwd: Returned mail: see transcript for details Message-ID: <5.1.0.14.0.20020404201730.00b31000@pop.gmx.fr> I can't use these commands cause I need to change the number of Views dynamicaly . If I withdraw/deiconify, I'll need to create a new frame each time I change the interface. The problem is not destroying tcl frame, but only tcl frame that have been used to build vtkTkImageViewerWidget (or other vtk***TkWidget). When I need to delete a viewer, I also would like to destroy the widget which contained it, to free memory. In any case, the error code when I exit the program isn't normal. I've attached to this mail a simple code which produce the error when exiting. If someone could try it to see if it produce the same error. We could find if it's a VTK or NVidia's driver error. Thanks, Vincent Nicolas tele.ucl.ac.be >On Thu, 04 Apr 2002 15:22:15 +0200 >Christian Poecher wrote: > > > > > > > Vincent Nicolas schrieb: > > > > > I need to destroy these tkwidget on runtime to be able to change the > interface of the program on runtimed:\eudora\userdata\attach\test1.tcl > > > > Can't you use > > wm deiconify .awindow > > and > > wm withdraw .awindow > > to change the interface? > > > > chris > > -- -------------- next part -------------- A non-text attachment was scrubbed... Name: test1.tcl Type: application/octet-stream Size: 1155 bytes Desc: not available URL: From elwo73 at hotmail.com Thu Apr 4 14:20:27 2002 From: elwo73 at hotmail.com (jon n) Date: Thu, 04 Apr 2002 11:20:27 -0800 Subject: [vtkusers] vtkLookupTable weirdness Message-ID: hi, i had been using a vtkColorTransferFunction for an isocontour and it was working perfectly. but now i'd like to have different alpha values for the different isolevels so i'm attempting to use a vtkLookupTable. but i have found that when I have 2 isolevels, one red and one blue, that sometimes the first isolevel gets red and sometimes it gets blue, and it seems like i'm not assured which will get which. for example, i move the blue's scalar up a bit and suddenly the red area becomes bigger, even though the red level hasn't been touched. is there any way to guarantee the order that colors are taken from a lookup table and assigned to isolevels? _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From amati at cenpra.gov.br Thu Apr 4 15:00:09 2002 From: amati at cenpra.gov.br (Marcelo de Pierre Amati) Date: Thu, 04 Apr 2002 17:00:09 -0300 Subject: [vtkusers] HELP! A vtkRenderWindowInteractor problem..... Message-ID: <3CACB0C9.3292EDDA@cenpra.gov.br> Hi, I built a main python window that calls a VTK-python program; it works with the vtkRenderWindowInteractor class. After I close the VTK window, the main program crashes. I know about vtkRenderWidget, but I need some keyboard events that aren't there. I've read something about X python (Xttoolkit). Is it a possible way to solve my problem??? How can I to derive python classes from vtk classes?? Is it possible from vtkRenderWidget to inherity vtkRenderWindowInteractor or vtkInteractorStyle class directly ? How can I do that? Thanks... Marcelo From jbiddiscombe at skippingmouse.co.uk Thu Apr 4 16:15:56 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 22:15:56 +0100 Subject: [vtkusers] Single source shortest path class published References: Message-ID: <002901c1dc1d$e99eb820$0100a8c0@tigger> Rasmus, I haven't tested the code, but did flip through it casually. Would it require a lot of work to alter the distance measure from physical {x,y,x} Euclidian to some function of the scalar value at a point - ie a sphere as in the example, but with different scalar values at each point rather than a distortion of shape. I don't need this, but it would be interesting to play with assigning random scalars to surfaces and making it traverse them in scalar space. (I say function of scalar value as there may be a vector quantity) ttfn JB ----- Original Message ----- From: "Rasmus Reinhold Paulsen" To: Sent: Thursday, April 04, 2002 3:57 PM Subject: [vtkusers] Single source shortest path class published > Hi All, > > I have developed a single source shortest path class based on Dijkstras > algorithm. It works with vtkPolyData meshes. > > It needs testing before I will add it to the VTK repository so I have > placed it together with a test program on my homepage: > > www.imm.dtu.dk/~rrp/VTK > > Comments and suggestions are most welcome! > > Regards, > Rasmus > > --------------------------------------------------- > Rasmus Paulsen, Industrial Ph.D. Student (Oticon) > Image Analysis and Computer Graphics > Informatics and Mathematical Modelling > Technical University of Denmark > Building 321, DK-2800 Kgs. Lyngby, Denmark > http://www.imm.dtu.dk/~rrp > --------------------------------------------------- > > _______________________________________________ > 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 Apr 4 16:16:08 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 22:16:08 +0100 Subject: [vtkusers] Changing vtkStructuredPoints scalar type References: Message-ID: <002f01c1dc1d$f0d02660$0100a8c0@tigger> vtkImageCast ? ----- Original Message ----- From: "Robb Brown" To: "VTK Mailing list" Sent: Thursday, April 04, 2002 5:45 PM Subject: [vtkusers] Changing vtkStructuredPoints scalar type > > I have a vtkStructuredPoints file with ScalarType set to unsigned > char. I want to convert this file so that ScalarType is short. How > would I do this? I tried reading it, using SetScalarTypeToShort() > then writing it and I do get a larger file but upon reading the file > again GetScalarTypeAsString still reports unsigned char. > > Thanks, > > Robb > -- > ______________________________ > Robb Brown > Seaman Family MR Research Centre > Calgary, Alberta, Canada > _______________________________________________ > 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 Apr 4 16:17:17 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 22:17:17 +0100 Subject: [vtkusers] colour a point with a specified color References: <20020404172046.43361.qmail@web20405.mail.yahoo.com> Message-ID: <003501c1dc1e$1a4abdc0$0100a8c0@tigger> Assing PointData to each point. (like zero for most and 1 for some), then use PointData in the mapper and a lookup table with a rage of {0,1} and red at one end, blue at the other (eg). JB ----- Original Message ----- From: "sonia specher" To: Sent: Thursday, April 04, 2002 6:20 PM Subject: [vtkusers] colour a point with a specified color > Hi, > i have a polygon contained on a vtkPolyData and i want > to colour some points of this poygon with a specified > color. How can i do ? > Thanks for your answer and have a nice day ! > Sonia. > > > ___________________________________________________________ > Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en fran?ais ! > Yahoo! Mail : http://fr.mail.yahoo.com > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From jbiddiscombe at skippingmouse.co.uk Thu Apr 4 16:28:38 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 22:28:38 +0100 Subject: [vtkusers] CountourFilter + RectilinearGrid References: <3CAC90A6.C4D4DFDF@iam.uni-bonn.de> Message-ID: <003e01c1dc1f$b900d160$0100a8c0@tigger> I don't see a vol->SetDimensions(26,26,26) in there anywhere. (I don't use Rectiliear grids much, so it's probably not the answer). JB ----- Original Message ----- From: "Frank Koster" To: Sent: Thursday, April 04, 2002 6:43 PM Subject: [vtkusers] CountourFilter + RectilinearGrid > Hi, > > to learn a little bit about vtk, I modified the very simple Vol.cxx > example which initializes > a vtkStructuredPoints data set by setting the origin, the spacings > and the scalars like > > vtkStructuredPoints *vol = vtkStructuredPoints::New(); > vol->SetDimensions(26,26,26); > vol->SetOrigin(-0.5,-0.5,-0.5); > sp = 1.0/25.0; > vol->SetSpacing(sp, sp, sp); > vtkScalars *scalars = vtkScalars::New(); > : > vol->GetPointData()->SetScalars(scalars); > scalars->Delete(); > > Then a contour is extracted and a nice isosurface is drawn on the > screen. > > Now, i just switched from StructuredPoints to RectilinearGrid, and > left everything else as it was: > > vtkRectilinearGrid *vol = vtkRectilinearGrid::New(); > vtkScalars *xx=vtkScalars::New() ; > for (i=0; i<26; i++) xx->InsertScalar(i, ((float)i)/25 ); > vol->SetXCoordinates(xx); > vol->SetYCoordinates(xx); > vol->SetZCoordinates(xx); > vtkScalars *scalars = vtkScalars::New(); > : > vol->GetPointData()->SetScalars(scalars); > scalars->Delete(); > > In this case, NO ISOSURFACE was drawn on the screen. > Has anybody an idea what went wrong ? > > I suppose i missed something in the initialization of a > RectilinearGrid. > > regards > Frank > > > From jbiddiscombe at skippingmouse.co.uk Thu Apr 4 16:30:25 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 22:30:25 +0100 Subject: [vtkusers] vtkLookupTable weirdness References: Message-ID: <004801c1dc1f$efe82570$0100a8c0@tigger> > is there any way to guarantee the order that colors are taken from a lookup > table and assigned to isolevels? It should work fine, Have you checked the scalar ranges of the lookuptable and the mapper (and the isolines)? JB From millerjv at crd.ge.com Thu Apr 4 16:44:28 2002 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Thu, 4 Apr 2002 16:44:28 -0500 Subject: [vtkusers] Single source shortest path class published Message-ID: This is really nice. Of course, I have a request. :) It would be cool if there was a mode such the shortest path was not constrained to walk from vertex to vertex along the polydata. I would love to have an implementation that allowed me to give two points on the surface of a polydata (not necessarily vertices but points within a polygon) and have the path walk long the surface crossing edges (but not necessarily crossing an edge at a vertex). I suppose you could start with the path that you calculate now and then run a relaxation step that will move the points from the vertex positions along the edges to further reduce the cost. -----Original Message----- From: Rasmus Reinhold Paulsen [mailto:rrp at imm.dtu.dk] Sent: Thursday, April 04, 2002 9:57 AM To: vtkusers at public.kitware.com Subject: [vtkusers] Single source shortest path class published Hi All, I have developed a single source shortest path class based on Dijkstras algorithm. It works with vtkPolyData meshes. It needs testing before I will add it to the VTK repository so I have placed it together with a test program on my homepage: www.imm.dtu.dk/~rrp/VTK Comments and suggestions are most welcome! Regards, Rasmus --------------------------------------------------- Rasmus Paulsen, Industrial Ph.D. Student (Oticon) Image Analysis and Computer Graphics Informatics and Mathematical Modelling Technical University of Denmark Building 321, DK-2800 Kgs. Lyngby, Denmark http://www.imm.dtu.dk/~rrp --------------------------------------------------- _______________________________________________ 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 elwo73 at hotmail.com Thu Apr 4 17:14:44 2002 From: elwo73 at hotmail.com (jon n) Date: Thu, 04 Apr 2002 14:14:44 -0800 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces Message-ID: hi, i have a cloud data being viewed with isocontours. if we select certain isolevels, it shows two sections, the top and the bottom of the cloud. i'm supposed to find the average distance between the two sections. unfortunately the top and the bottom don't have quite reasonable geometry for this to work, as there's loops and holes around. using smoothing and connectivity filters helped a bit, but there's still some loops and holes. is there a way (decimation?) to make the geometry (topology?) look better? and does anyone have any suggestions on how to get distances between two surfaces? thanks _________________________________________________________________ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx From jbiddiscombe at skippingmouse.co.uk Thu Apr 4 17:32:59 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Thu, 4 Apr 2002 23:32:59 +0100 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces References: Message-ID: <002601c1dc28$ad25c220$0100a8c0@tigger> > and does anyone have any suggestions on how to get distances between two > surfaces? if the surfaces are simple, Shoot a ray from one to the other, normal vector launching. if the surfaces are complex, like unsmoothed cloud bases and tops try (bone thickness analysis paper) Hildebrand, T. and Ruegsegger, P. A new method for the model independent assessment of thickness in three-dimensional images. J Microsc 185:67-75; 1997. The addresses some of the problems related to surfaces which are not at a constant separation and are not parallel. A maximal sphere fitting algorithm is discussed. JB From elwo73 at hotmail.com Thu Apr 4 17:43:18 2002 From: elwo73 at hotmail.com (jon n) Date: Thu, 04 Apr 2002 14:43:18 -0800 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces Message-ID: thanks for the suggestions, also, i was thinking maybe raycasting from the top and then the bottom might work? like by marking the first point it hits at a certain level... but it seems that all the ray casting functionality is now Volume specific. maybe vtkVolumeRayCastIsosurfaceFunction might be useful somehow? >From: "John Biddiscombe" >Reply-To: "John Biddiscombe" >To: "jon n" , >Subject: Re: [vtkusers] smoothing / decimation / isocontours / distance >between surfaces >Date: Thu, 4 Apr 2002 23:32:59 +0100 > > > > and does anyone have any suggestions on how to get distances between two > > surfaces? > >if the surfaces are simple, Shoot a ray from one to the other, normal >vector >launching. > >if the surfaces are complex, like unsmoothed cloud bases and tops > >try (bone thickness analysis paper) > >Hildebrand, T. and Ruegsegger, P. A new method for the model independent >assessment of thickness in three-dimensional images. J Microsc 185:67-75; >1997. > >The addresses some of the problems related to surfaces which are not at a >constant separation and are not parallel. A maximal sphere fitting >algorithm >is discussed. > >JB > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From mueller at cg.nrcan.gc.ca Thu Apr 4 18:20:31 2002 From: mueller at cg.nrcan.gc.ca (Christof Mueller) Date: Thu, 04 Apr 2002 18:20:31 -0500 Subject: [vtkusers] Representing Points in 3D References: <3CAB86FC.2FCAA253@cg.nrcan.gc.ca> <001601c1db99$87e203a0$133da8c0@zoo> Message-ID: <3CACDFBF.8B5AAB74@cg.nrcan.gc.ca> Thanks for all the 'input'. Here is what finally worked for me, maybe a bit clumsy ... Thought it might serve as an example to somebody else: vtkPoints *polyVertexPoints=vtkPoints::New(); polyVertexPoints->SetNumberOfPoints(MAXPOINTS); vtkPolyVertex *aPolyVertex=vtkPolyVertex::New(); aPolyVertex->GetPointIds()->SetNumberOfIds(MAXPOINTS); vtkUnstructuredGrid *aPolyVertexGrid=vtkUnstructuredGrid::New(); aPolyVertexGrid->Allocate(1,1); vtkDataSetMapper *aPolyVertexMapper=vtkDataSetMapper::New(); vtkGlyph3D *cloud = vtkGlyph3D::New(); vtkPolyDataMapper *cloudMapper = vtkPolyDataMapper::New(); vtkSphereSource *sphere=vtkSphereSource::New(); sphere->SetRadius(5.0); vtkActor *srcActor = vtkActor::New(); i=0; while(fscanf(srcfp,"%f%f%f",&x,&y,&z)!=EOF){ polyVertexPoints->InsertPoint(i,x,y,z); aPolyVertex->GetPointIds()->SetId(i,i); i++; } aPolyVertexGrid->InsertNextCell(aPolyVertex->GetCellType(),aPolyVertex->GetPointIds()); aPolyVertexGrid->SetPoints(polyVertexPoints); aPolyVertexMapper->SetInput(aPolyVertexGrid); cloud->SetScaleModeToDataScalingOff(); cloud->SetInput(aPolyVertexMapper->GetInput()); cloud->SetSource(sphere->GetOutput()); cloudMapper->SetInput(cloud->GetOutput()); srcActor->SetMapper(cloudMapper); srcActor->AddPosition(0,0,6); srcActor->GetProperty()->SetDiffuseColor(1.0,0.0,0.5); ren1->AddActor(srcActor); Christof Roland Schwarz wrote: > Hi Christof, > > Points are best represented by a vtkPolyData object that has exacatly one > cell of type VTK_VERTEX. This Vertex Cell is simply a list of Id's that are > indices to your data. > > You should read about writing a reader class. I recommend to derive from > class vtkPolyDataSource then. > I.e.: > class VTK_IO_EXPORT vtkMyReader : public vtkPolyDataSource > { > .... your class definitions > } > > This reader will become the starting point of your pipeline. You will then > connect this reader to a mapper and so on. > > Tip.: Have a look on the available reader classes in the library to see how > it is done. > > Roland > > ----- Original Message ----- > From: "Christof Mueller" > To: > Sent: Thursday, April 04, 2002 12:49 AM > Subject: [vtkusers] Representing Points in 3D > > > I've been trying to represent a number of points in space, but without > > success: > > > > I tried to use vtkAssembly to represent each point by a sphere: > > > > vtkAssembly *actors=vtkAssembly::New(); > > vtkSphereSource *sphere=vtkSphereSource::New(); > > vtkActor *srcactor = vtkActor::New(); > > vtkPolyDataMapper *spheremapper = vtkPolyDataMapper::New(); > > > > while(fscanf(srcfp,"%f %f %f",&x,&y,&z)!=EOF){ > > sphere->SetCenter(x,y,z); > > sphere->SetRadius(3.0); > > spheremapper->SetInput(sphere->GetOutput()); > > srcactor->SetMapper(spheremapper); > > actors->AddPart(srcactor); > > > > } > > ren1->AddActor(actors); > > > > The result shows only the last srcactor. > > > > I assume that I would have to represent each point by it's own actor. > > There must be a simpler way to do this ... > > > > Any suggestions ? Even a completely different approach would be fine, > > since I belive that mine is probably not very smart ... > > > > Cheers, > > > > Christof > > > > _______________________________________________ > > 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 Apr 4 19:06:09 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 5 Apr 2002 01:06:09 +0100 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces References: Message-ID: <001501c1dc35$b14a79b0$0100a8c0@tigger> > also, i was thinking maybe raycasting from the top and then the bottom might > work? like by marking the first point it hits at a certain level... but it > seems that all the ray casting functionality is now Volume specific. maybe > vtkVolumeRayCastIsosurfaceFunction might be useful somehow? Usually with raycasting in this type of problem, the question is "in which direction do I fire the ray", if the surface is not flat, the opposite side may not be obvious. Since the cloud base and top "ought" to be at least vaguely horizontally aligned, you may get away with vertical rays to get an estimate rather than rays along the surface normal. JB From mmalat at irus.rri.ca Thu Apr 4 22:37:34 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Thu, 04 Apr 2002 22:37:34 -0500 Subject: [vtkusers] core dump with vtk4.0/python on Linux References: Message-ID: <3CAD1BFE.62403A49@irus.rri.ca> Hi jon, I had already done a 'make clean' and rebuild with g++ instead of c++ and now I don't have anymore this problem (it's obviously not related, but I really don't know what was wrong). But I have now a problem with vtkTkRenderWidget.py I went on vtk website download the nightly source, rebuilt from scratch. Then I went into VTK/Wrapping/Python and try: python vtkRenderWidget.py ..But I get a core dump. Here is what I have with gdb : [mmalat at shalom Python]$ gdb python GNU gdb 5.0rh-5 Red Hat Linux 7.1 Copyright 2001 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-redhat-linux"... (gdb) run vtkTkRenderWidget.py Starting program: /usr/local/bin/python vtkTkRenderWidget.py [New Thread 1024 (LWP 32400)] Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 32400)] __pthread_mutex_lock (mutex=0xff18c19d) at mutex.c:99 99 mutex.c: No such file or directory. in mutex.c (gdb) bt #0 __pthread_mutex_lock (mutex=0xff18c19d) at mutex.c:99 #1 0x400e8d4d in __libc_free (mem=0x402d9114) at malloc.c:3052 #2 0x420b766b in TclpFree () from /usr/lib/libtcl.so #3 0x420bc91b in Tcl_Free () from /usr/lib/libtcl.so #4 0x420fcbba in ResetObjResult () from /usr/lib/libtcl.so #5 0x4215d7fc in Tk_MainWindow () from /usr/lib/libtk.so #6 0x41ba8d76 in Vtkrenderingpythontkwidgets_Init (interp=0x8158410) at /shalom/data/mmalat/VTK/Rendering/vtkTkWidgetsInit.cxx:42 #7 0x402a3c0d in Tcl_LoadObjCmd () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #8 0x4028bf19 in TclExecuteByteCode () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #9 0x40270455 in Tcl_EvalObjEx () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #10 0x40274310 in Tcl_CatchObjCmd () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #11 0x402aa0ad in EvalObjv () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #12 0x402aa7ab in Tcl_EvalEx () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #13 0x402aaa25 in Tcl_Eval () from /irus/rri/steinman/tkDDC/lib/libtcl8.3.so #14 0x4001c964 in Tkapp_Eval () at eval.c:41 #15 0x080c6550 in PyCFunction_Call (func=0x8158130, arg=0x8158154, kw=0x0) at Objects/methodobject.c:101 #16 0x080770b0 in eval_frame (f=0x812c0dc) at Python/ceval.c:1993 #17 0x0807816b in PyEval_EvalCodeEx (co=0x825e9b0, globals=0x81751ec, locals=0x0, args=0x8158078, argcount=1, kws=0x815807c, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #18 0x0807a293 in fast_function (func=0x8156894, pp_stack=0xbfffed74, n=1, na=1, nk=0) at Python/ceval.c:3153 #19 0x0807714d in eval_frame (f=0x8157f14) at Python/ceval.c:2013 #20 0x0807816b in PyEval_EvalCodeEx (co=0x81b2870, globals=0x810e2d4, locals=0x0, args=0x82cab88, argcount=2, kws=0x82d2170, kwcount=2, defs=0x8175188, defcount=1, closure=0x0) at Python/ceval.c:2574 #21 0x080b9bb7 in function_call (func=0x81573fc, arg=0x82cab7c, kw=0x82cb254) at Objects/funcobject.c:374 #22 0x080a7808 in PyObject_Call (func=0x81573fc, arg=0x82cab7c, kw=0x82cb254) at Objects/abstract.c:1665 #23 0x080ae8fb in instancemethod_call (func=0x81573fc, arg=0x8157ef4, kw=0x82cb254) at Objects/classobject.c:2276 #24 0x080a7808 in PyObject_Call (func=0x825e6a4, arg=0x8157ef4, kw=0x82cb254) at Objects/abstract.c:1665 #25 0x08079bab in PyEval_CallObjectWithKeywords (func=0x825e6a4, arg=0x8157ef4, kw=0x82cb254) at Python/ceval.c:3038 #26 0x080ab0eb in PyInstance_New (klass=0x8157c7c, arg=0x8157ef4, kw=0x82cb254) at Objects/classobject.c:557 #27 0x080a7808 in PyObject_Call (func=0x8157c7c, arg=0x8157ef4, kw=0x82cb254) at Objects/abstract.c:1665 #28 0x0807a31c in do_call (func=0x8157c7c, pp_stack=0xbffff014, na=1, nk=2) at Python/ceval.c:3251 #29 0x08077168 in eval_frame (f=0x8157cac) at Python/ceval.c:2016 #30 0x0807816b in PyEval_EvalCodeEx (co=0x81bded0, globals=0x810e2d4, locals=0x0, args=0x81153ac, argcount=0, kws=0x81153ac, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #31 0x0807a293 in fast_function (func=0x8267c4c, pp_stack=0xbffff174, n=0, na=0, nk=0) at Python/ceval.c:3153 #32 0x0807714d in eval_frame (f=0x811525c) at Python/ceval.c:2013 #33 0x0807816b in PyEval_EvalCodeEx (co=0x81b3cc8, globals=0x810e2d4, locals=0x810e2d4, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #34 0x0807a232 in PyEval_EvalCode (co=0x81b3cc8, globals=0x810e2d4, locals=0x810e2d4) at Python/ceval.c:488 #35 0x08093f69 in run_node (n=0x811c160, filename=0xbffff531 "vtkTkRenderWidget.py", globals=0x810e2d4, locals=0x810e2d4, ---Type to continue, or q to quit--- And here is a part of my .cshrc file: setenv LD_LIBRARY_PATH $LD_LIBRARY_PATH":/shalom/data/mmalat/VTK/bin/" setenv PYTHONPATH /shalom/data/mmalat/VTK/Wrapping/Python:/shalom/data/mmalat/VTK/bin I really don't know what I did wrong. Any idea would be really helpfull Mathieu Ps: It is related only to Python because tcl work fine. jon n wrote: > run 'ldd libVTKIOPython.so' to see if the JPEG shared library libvtkjpeg.so > is being linked in correctly. > > >From: Mathieu Malaterre > >To: vtkusers at public.kitware.com > >Subject: [vtkusers] newbie problems with vtk4.0/python on Linux > >Date: Wed, 03 Apr 2002 19:26:08 -0500 > > > >Hi, > > > > I am having trouble started with VTK 4.0 & PYTHON (vtk 3.2 was working > >fine). > > > >After compiling vtk4, I tried to use python (via vtkpython), but I get > >this > > > >[mmalat at shalom VTK]$ python > >Python 2.2 (#1, Feb 7 2002, 17:18:50) > >[GCC 2.96 20000731 (Red Hat Linux 7.1 2.96-85)] on linux2 > >Type "help", "copyright", "credits" or "license" for more information. > > >>> import vtkpython > >Traceback (most recent call last): > > File "", line 1, in ? > > File "/shalom/data/mmalat/VTK/Wrapping/Python/vtkpython.py", line 29, > >in ? > > exec "from "+kit_name+" import *" > > File "", line 1, in ? > >ImportError: /shalom/data/mmalat/VTK/bin/libvtkIOPython.so: undefined > >symbol: jpeg_std_error > > >>> > > > > > >Does anyone have any idea what I am doing wrong? > > > >many thanks, > > > >Mathieu > ><< mmalat.vcf >> > > _________________________________________________________________ > Join the world?s largest e-mail service with MSN Hotmail. > http://www.hotmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From burgert at ira.uka.de Fri Apr 5 02:04:48 2002 From: burgert at ira.uka.de (Oliver Burgert) Date: Fri, 5 Apr 2002 09:04:48 +0200 Subject: AW: [vtkusers] Changing vtkStructuredPoints scalar type Message-ID: <01734FCC8274D51199C50050DA20ACBC0AA168@i61p2.ira.uka.de> vtkImageCast ! ;-) short example... HTH Oliver //The Data which will be rendered vtkImageData *RenderImage = vtkImageData::New(); //if volume data is not UNSIGNED_CHAR or UNSIGNED_SHORT //volume has to be casted to the desired range if ((p_Image->GetScalarType() != VTK_UNSIGNED_CHAR ) && (p_Image->GetScalarType() != VTK_UNSIGNED_SHORT )) { GfxPrint("Resampling volume"); vtkImageCast* pImageCast = vtkImageCast::New(); pImageCast->SetOutputScalarTypeToUnsignedShort(); pImageCast->ClampOverflowOn(); pImageCast->SetInput(p_Image); RenderImage=(pImageCast->GetOutput()); RenderImage->Update(); GfxPrint("Resampling done"); } //resampling else { RenderImage = p_Image; } > -----Urspr?ngliche Nachricht----- > Von: John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk] > Gesendet: Donnerstag, 4. April 2002 23:16 > An: VTK Mailing list; Robb Brown > Betreff: Re: [vtkusers] Changing vtkStructuredPoints scalar type > > > vtkImageCast ? > > ----- Original Message ----- > From: "Robb Brown" > To: "VTK Mailing list" > Sent: Thursday, April 04, 2002 5:45 PM > Subject: [vtkusers] Changing vtkStructuredPoints scalar type > > > > > > I have a vtkStructuredPoints file with ScalarType set to unsigned > > char. I want to convert this file so that ScalarType is short. How > > would I do this? I tried reading it, using SetScalarTypeToShort() > > then writing it and I do get a larger file but upon reading the file > > again GetScalarTypeAsString still reports unsigned char. > > > > Thanks, > > > > Robb > > -- > > ______________________________ > > Robb Brown > > Seaman Family MR Research Centre > > Calgary, Alberta, Canada > > _______________________________________________ > > 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 marcio.mathias at edb.ericsson.se Fri Apr 5 05:14:18 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Fri, 5 Apr 2002 07:14:18 -0300 Subject: [vtkusers] VTK-Tcl/Tk users Message-ID: Hi VTK-Tcl/Tk users: I would like to convert my VTK application in a executable file for computers without a Tcl/Tk interpreter. I am facing some dificults (lack of information). Is it possible to send me an example of the convertion or point where the "how-to-do-it" lives? Thanks, Marcio. -------------- next part -------------- An HTML attachment was scrubbed... URL: From poecher at icom-consulting.de Fri Apr 5 05:30:26 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Fri, 05 Apr 2002 12:30:26 +0200 Subject: [vtkusers] VTK-Tcl/Tk users References: Message-ID: <3CAD7CC2.1A758344@icom-consulting.de> We are using a free tool called tcl2exe (for windows). It generates C code which can be compiled using a normal C-Compiler. The C code contains a Tcl-Runtime and all scripts you wish to include. You can also hide your Tcl-Code by scrambling it, so it will be harder to extract. I believe there is a similar tool in TclPro, which is also free, but I havn't tested this. chris > "Marcio Antonio Mathias (EDB)" schrieb: > I would like to convert my VTK application in a executable file for > computers without a Tcl/Tk interpreter. I am facing some dificults > (lack of information). > > Is it possible to send me an example of the convertion or point where > the "how-to-do-it" lives? -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From vincent.nicolas at tele.ucl.ac.be Fri Apr 5 05:27:42 2002 From: vincent.nicolas at tele.ucl.ac.be (Vincent Nicolas) Date: Fri, 5 Apr 2002 12:27:42 +0200 Subject: [vtkusers] Help ! Bugs in VTK when using TCL ??? Message-ID: <20020405122742.11f829eb.vincent.nicolas@tele.ucl.ac.be> Hello everybody, I'm using VTK for 3 months now, and never arrived to get this bug out. It arrives when I would like to destroy a tcl widget created by vtk. It makes the program exit. I've written this small tcl code which only create two tcl viewer widget. When I close it by clicking on the button, it delete and destroy each vtk object and then should exit without any problem, but it lead to an X (GLX) error. I'm using VTK 4.0, with Linux Debian, GForce 3 and the Nvidia's driver. Could some poeple look at it and say me what is wrong ?? And if nothing seems to be wrong test it and say me if the error appear ? Thanks for your help, Vincent Nicolas. tele.ucl.ac.be -------------- next part -------------- A non-text attachment was scrubbed... Name: test.tcl Type: text/x-tcl Size: 1212 bytes Desc: not available URL: From simon.chatelain at epfl.ch Fri Apr 5 06:20:31 2002 From: simon.chatelain at epfl.ch (Simon Chatelain) Date: Fri, 5 Apr 2002 13:20:31 +0200 Subject: [vtkusers] Java Internal Frame and superposition Message-ID: <00a401c1dc93$e60f9a50$5079b280@ltspc70> Hello, I have two questions : First : Did someone know if it is possible to use JInternalFrame with a vtkPanel. If yes how ? In my case, the JInternalFrame is display correctly at startup but when i select it, the image (only a simple sphere) in the vtkPanel disappear. Second : Even in a simple configuration the menus are display under the vtk panel, so we cannot see the them. How can i display the menus in forground ? Thanks Simon Chatelain From rrp at imm.dtu.dk Fri Apr 5 06:21:43 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 5 Apr 2002 13:21:43 +0200 Subject: [vtkusers] Single source shortest path class published In-Reply-To: Message-ID: > -----Original Message----- > From: Miller, James V (CRD) [mailto:millerjv at crd.ge.com] > Sent: 4. april 2002 23:44 > > It would be cool if there was a mode such the shortest path > was not constrained to walk from vertex to vertex along the > polydata. I would love to have an implementation that allowed > me to give two points on the surface of a polydata (not necessarily > vertices but points within a polygon) and have the path > walk long the surface crossing edges (but not necessarily > crossing an edge at a vertex). > > I suppose you could start with the path that you calculate now > and then run a relaxation step that will move the points from > the vertex positions along the edges to further reduce the cost. Thanks for the swift feedback. That is a very good idea to postprocess the solution. Using a smoothness constraint and allow the path vertices to move on the mesh edges could be useable, but I see it a seperate processing step. The Dijkstra is a (non-unique) exact solution but I see the other as an approximation with no guarentees. If it is the "resolution" of the solution that is the problem a quick hack would be to preprocess the mesh with a subdivision filter, thus generating more "ways" for the shortest path. Keep 'em coming! Rasmus From prabhu at aero.iitm.ernet.in Fri Apr 5 06:34:45 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 5 Apr 2002 17:04:45 +0530 Subject: [vtkusers] core dump with vtk4.0/python on Linux In-Reply-To: <3CAD1BFE.62403A49@irus.rri.ca> References: <3CAD1BFE.62403A49@irus.rri.ca> Message-ID: <15533.35797.521297.105164@monster.linux.in> >>>>> "MM" == Mathieu Malaterre writes: MM> I went on vtk website download the nightly source, rebuilt MM> from scratch. Then I went into VTK/Wrapping/Python and try: MM> python vtkRenderWidget.py MM> ..But I get a core dump. Make sure that you are compiling with the same Tcl/Tk libraries that Tkinter is using. I've found that this can cause core dumps. Specifically look at the _tkinter.so that is available in your Tkinter install. prabhu From rrp at imm.dtu.dk Fri Apr 5 06:34:35 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 5 Apr 2002 13:34:35 +0200 Subject: [vtkusers] Single source shortest path class published In-Reply-To: <002901c1dc1d$e99eb820$0100a8c0@tigger> Message-ID: > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of John Biddiscombe > Sent: 4. april 2002 23:16 > I haven't tested the code, but did flip through it casually. Would it > require a lot of work to alter the distance measure from physical {x,y,x} > Euclidian to some function of the scalar value at a point - ie a sphere as > in the example, but with different scalar values at each point > rather than a > distortion of shape. I don't need this, but it would be > interesting to play > with assigning random scalars to surfaces and making it traverse them in > scalar space. (I say function of scalar value as there may be a vector > quantity) That will not require a lot of work and I have incorporated an experimental switch in the code that does something of what you ask. I think the best way to do it is to let the user supply an edge cost callback function that based on the two vertice indeces returns a weight that can be based on the vertex positions, the scalar values or both. I just have to figure out have to make this funky callback mechanism behave like I want. Thanks for the comments! Rasmus From nick.brealey at culham.com Fri Apr 5 07:09:39 2002 From: nick.brealey at culham.com (Nicholas Brealey) Date: Fri, 05 Apr 2002 13:09:39 +0100 Subject: [vtkusers] Patch to fix vtkExtractVectorComponents.cxx bugs Message-ID: <3CAD9403.D39EBB49@culham.com> Hi Here is a patch which fixes 3 bugs in vtkExtractVectorComponents.cxx: 1) Execute() crashes if there are no point data vectors. 2) Cell data scalars given 3 components instead of 1. 3) z component of cell data vector not set correctly. Regards Nick -------------- next part -------------- --- vtkExtractVectorComponents.cxx.orig Thu Mar 21 21:25:32 2002 +++ vtkExtractVectorComponents.cxx Wed Apr 3 10:53:41 2002 @@ -230,7 +230,21 @@ return; } - const char* name = vectors->GetName(); + + const char* name; + if ( vectors ) + { + name = vectors->GetName(); + } + else if ( vectorsc ) + { + name = vectorsc->GetName(); + } + else + { + name = 0; + } + char* newName=0; if (name) { @@ -293,18 +307,15 @@ if (vectorsc) { vxc = vtkDataArray::CreateDataArray(vectorsc->GetDataType()); - vxc->SetNumberOfComponents(3); vxc->SetNumberOfTuples(numVectorsc); sprintf(newName, "%s-x", name); vxc->SetName(newName); vyc = vtkDataArray::CreateDataArray(vectorsc->GetDataType()); - vyc->SetNumberOfComponents(3); vyc->SetNumberOfTuples(numVectorsc); sprintf(newName, "%s-y", name); vyc->SetName(newName); vzc = vtkDataArray::CreateDataArray(vectorsc->GetDataType()); - vzc->SetNumberOfComponents(3); - vzc->SetNumberOfTuples(numVectors); + vzc->SetNumberOfTuples(numVectorsc); sprintf(newName, "%s-z", name); vzc->SetName(newName); -------------- next part -------------- A non-text attachment was scrubbed... Name: nick.brealey.vcf Type: text/x-vcard Size: 364 bytes Desc: Card for Nicholas Brealey URL: From glawlor at pop3.ucd.ie Fri Apr 5 06:16:16 2002 From: glawlor at pop3.ucd.ie (glawlor at pop3.ucd.ie) Date: Fri, 5 Apr 2002 06:16:16 -0500 Subject: [vtkusers] VTK-Tcl/Tk users Message-ID: Here's a snippet from the tclpro user's guide: "TclPro Wrapper is a tool that collects all of the files needed to run a Tcl application?such as Tcl scripts, graphics and other data files, Tcl extensions, a Tcl interpreter, and the standard Tcl and Tk libraries?into a single executable file, which is called a wrapped application." I tried it on decimate.tcl (a small tcl example app from vtk3.2) and it worked perfectly - you need to use the "wish-dynamic" option, because of the "load vtkXXXXXTcl.dll" commands. You can get tclpro from www.scriptics.com HTH Goodwin Original Message: ----------------- From: Christian Poecher poecher at icom-consulting.de Date: Fri, 05 Apr 2002 12:30:26 +0200 To: marcio.mathias at edb.ericsson.se, vtkusers at public.kitware.com Subject: Re: [vtkusers] VTK-Tcl/Tk users We are using a free tool called tcl2exe (for windows). It generates C code which can be compiled using a normal C-Compiler. The C code contains a Tcl-Runtime and all scripts you wish to include. You can also hide your Tcl-Code by scrambling it, so it will be harder to extract. I believe there is a similar tool in TclPro, which is also free, but I havn't tested this. chris > "Marcio Antonio Mathias (EDB)" schrieb: > I would like to convert my VTK application in a executable file for > computers without a Tcl/Tk interpreter. I am facing some dificults > (lack of information). > > Is it possible to send me an example of the convertion or point where > the "how-to-do-it" lives? -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ _______________________________________________ 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 -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ . From blezek at crd.ge.com Fri Apr 5 08:56:37 2002 From: blezek at crd.ge.com (Blezek, Daniel J (Research)) Date: Fri, 5 Apr 2002 08:56:37 -0500 Subject: [vtkusers] Explicit template instanciation Message-ID: Hi all, I'm trying to compile VTK using the Sun 6.0 compiler. Everything looks fine, but the vtkImageIterator templates do not get explicitly instanciated and thus produce link errors. I tracked things down to a CMake variable regarding the compiler's capabilities. Can someone tell me how to change this behavior? Thanks, -dan -- Daniel Blezek, Ph.D. blezek at crd.ge.com Visualization and Computer Vision Lab, Imaging Technologies GE Corporate Research & Development From hhiraki at lab.nig.ac.jp Fri Apr 5 10:03:35 2002 From: hhiraki at lab.nig.ac.jp (hhiraki at lab.nig.ac.jp) Date: Sat, 06 Apr 2002 00:03:35 +0900 Subject: [vtkusers] Fwd: Returned mail: see transcript for details In-Reply-To: <5.1.0.14.0.20020404201730.00b31000@pop.gmx.fr> References: <5.1.0.14.0.20020404201730.00b31000@pop.gmx.fr> Message-ID: <20020406000335Z.hhiraki@lab.nig.ac.jp> Vincent Nicolas, You can use "pack forget" in place of "wm withdraw" and pack again on demand. Without destroying, the error would not be produced until the program termination. I found a misleading behavior of configure of vtk***TkWidgets that seems to be related to the problem you described. I reported it on the vtkusers list and have got no response for more than a year. I was afraid that some tricks in freeing the widgets' resources might make them too hard to be fixed. Regards Hideaki Hiraki From: Vincent Nicolas Subject: [vtkusers] Fwd: Returned mail: see transcript for details Date: Thu, 04 Apr 2002 20:20:47 +0200 > I can't use these commands cause I need to change the number of Views > dynamicaly . If I withdraw/deiconify, I'll need to create a new frame each > time I change the interface. > The problem is not destroying tcl frame, but only tcl frame that have been > used to build vtkTkImageViewerWidget (or other vtk***TkWidget). When I need > to delete a viewer, I also would like to destroy the widget which contained > it, to free memory. > > In any case, the error code when I exit the program isn't normal. > I've attached to this mail a simple code which produce the error when exiting. > If someone could try it to see if it produce the same error. We could find > if it's a VTK or NVidia's driver error. > > Thanks, > Vincent Nicolas > tele.ucl.ac.be > > >On Thu, 04 Apr 2002 15:22:15 +0200 > >Christian Poecher wrote: > > > > > > > > > > > Vincent Nicolas schrieb: > > > > > > > I need to destroy these tkwidget on runtime to be able to change the > > interface of the program on runtimed:\eudora\userdata\attach\test1.tcl > > > > > > Can't you use > > > wm deiconify .awindow > > > and > > > wm withdraw .awindow > > > to change the interface? > > > > > > chris > > > -- From ib at saltmail.thesalt.com Fri Apr 5 10:01:17 2002 From: ib at saltmail.thesalt.com (Isaac Ben) Date: Fri, 05 Apr 2002 08:01:17 -0700 Subject: [vtkusers] n-dimensional Dataset Message-ID: Greetings all, I need any and all feed back I can get regarding wether to use an exisiting dataset type or create a custom one for n-dimensional data. For each row in the n-d dataset I compute a NOSP (Non-orthogonal single end point) using a proprietary alogorithm (SBP*) that is represented by a standard 3 element vertex, associated with this point is the orignal row from the n-d dataset that are used throughout the visualization process. For each dataset object I need to keep track of the number of dimensions (columns), angle, initial row order, etc... The problem I run into in deciding wether the UnstructuredGrid dataset object is approriate is in the association of a vertex with it's source data. Since this source is what would be used to do topographic computation I'm not sure if it is a good idea to use the "attributes" elements of the cell to store this information. Basically my question is: Am I misunderstanding vtk's dataset object or do I really need to develop a custom dataset class? Thanks in advance IB Isaac Ben n-D.V. L.L.C. *For more information about SBP see http://www.thesalt.com/ndv The Salt... a local element @ http://www.thesalt.com From marcio.mathias at edb.ericsson.se Fri Apr 5 11:27:53 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Fri, 5 Apr 2002 13:27:53 -0300 Subject: [vtkusers] VTK-Tcl/Tk users Message-ID: Thanks for the hint. I will check both, TclPro and tcl2exe. /Marcio. -----Original Message----- From: Christian Poecher To: Marcio Antonio Mathias (EDB) Cc: 'vtkusers at public.kitware.com' Sent: 4/5/02 7:30 AM Subject: Re: [vtkusers] VTK-Tcl/Tk users We are using a free tool called tcl2exe (for windows). It generates C code which can be compiled using a normal C-Compiler. The C code contains a Tcl-Runtime and all scripts you wish to include. You can also hide your Tcl-Code by scrambling it, so it will be harder to extract. I believe there is a similar tool in TclPro, which is also free, but I havn't tested this. chris > "Marcio Antonio Mathias (EDB)" schrieb: > I would like to convert my VTK application in a executable file for > computers without a Tcl/Tk interpreter. I am facing some dificults > (lack of information). > > Is it possible to send me an example of the convertion or point where > the "how-to-do-it" lives? -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From krw at viz-solutions.com Fri Apr 5 12:02:34 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Fri, 05 Apr 2002 09:02:34 -0800 Subject: [vtkusers] VTK-Tcl/Tk users In-Reply-To: Message-ID: <5.1.0.14.0.20020405090031.0240ce70@127.0.0.1> >I would like to convert my VTK application in a executable file for >computers without a Tcl/Tk interpreter. I am facing some dificults (lack >of information). If you download TclPro from scriptics or sourceforge, it comes with a wrapper and a full manual on how to use it including how to create a wrapped application which can load dynamic packages (if you created vtk dll's instead of static libs). Kevin From vnic at gmx.fr Fri Apr 5 12:03:50 2002 From: vnic at gmx.fr (Vincent Nicolas) Date: Fri, 05 Apr 2002 19:03:50 +0200 Subject: [vtkusers] Fwd: Returned mail: see transcript for details In-Reply-To: <20020406000335Z.hhiraki@lab.nig.ac.jp> References: <5.1.0.14.0.20020404201730.00b31000@pop.gmx.fr> <5.1.0.14.0.20020404201730.00b31000@pop.gmx.fr> Message-ID: <5.1.0.14.0.20020405185558.00ad6568@pop.tele.ucl.ac.be> Thanks for your replies, The problem with "forget" is the same than with "withdraw", the objects will always remain in memory.... And I cannot use them again to create a new vtkTkImageViewerWidget ... I think I'll keep a list of all the viewers I've created and use them later if needed in place of destroying an creating new one.... It's not a good way of programming, but I don't have the time to start debuging the Tk classes. Vincent Nicolas. Tele.ucl.ac.be At 00:03 6/04/2002 +0900, you wrote: >Vincent Nicolas, > >You can use "pack forget" in place of "wm withdraw" and pack again >on demand. Without destroying, the error would not be produced until >the program termination. > >I found a misleading behavior of configure of vtk***TkWidgets that >seems to be related to the problem you described. I reported it on >the vtkusers list and have got no response for more than a year. >I was afraid that some tricks in freeing the widgets' resources >might make them too hard to be fixed. > >Regards > >Hideaki Hiraki > > >From: Vincent Nicolas >Subject: [vtkusers] Fwd: Returned mail: see transcript for details >Date: Thu, 04 Apr 2002 20:20:47 +0200 > > I can't use these commands cause I need to change the number of Views > > dynamicaly . If I withdraw/deiconify, I'll need to create a new frame each > > time I change the interface. > > The problem is not destroying tcl frame, but only tcl frame that have been > > used to build vtkTkImageViewerWidget (or other vtk***TkWidget). When I > need > > to delete a viewer, I also would like to destroy the widget which > contained > > it, to free memory. > > > > In any case, the error code when I exit the program isn't normal. > > I've attached to this mail a simple code which produce the error when > exiting. > > If someone could try it to see if it produce the same error. We could find > > if it's a VTK or NVidia's driver error. > > > > Thanks, > > Vincent Nicolas > > tele.ucl.ac.be > > > > >On Thu, 04 Apr 2002 15:22:15 +0200 > > >Christian Poecher wrote: > > > > > > > > > > > > > > > Vincent Nicolas schrieb: > > > > > > > > > I need to destroy these tkwidget on runtime to be able to change the > > > interface of the program on runtimed:\eudora\userdata\attach\test1.tcl > > > > > > > > Can't you use > > > > wm deiconify .awindow > > > > and > > > > wm withdraw .awindow > > > > to change the interface? > > > > > > > > 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 ainut1 at telocity.com Fri Apr 5 12:26:37 2002 From: ainut1 at telocity.com (AINut) Date: Fri, 05 Apr 2002 11:26:37 -0600 Subject: [vtkusers] VTK new user, LabView Message-ID: <3CADDE4C.3701767F@telocity.com> Hi all! Just found out about VTK and it sounds very promising so far. What I'm hoping for: a user interface similar to or better than LabView. Is this true? My application: monitor and display engine sensors (including some I'm adding) real time in my homebuilt airplane with automobile engine. At the same time, I'll be using a GPS to feed a topo and navaid display system, all on an onboard AMD Athlon (for now.) Any suggestions? Is this possible? Is it even practical? Thanks, AI Nut From ainut1 at telocity.com Fri Apr 5 12:31:02 2002 From: ainut1 at telocity.com (AINut) Date: Fri, 05 Apr 2002 11:31:02 -0600 Subject: [vtkusers] New user again Message-ID: <3CADDF56.6567669A@telocity.com> I forgot to mention that I wish to run in Linux using OpenGL, but will move to Windoze if I'm dragged kicking and screaming. The A/D unit that looks very promising for my purposes is 3 Labjack U12's, a USB device with 8 single ended or 4 differential -10v to +10v input ports, along with 2 analog output ports. Additionally, there are 16(?) digital I/O lines and a timer or two. Best part is that it's only $99 US. Is USB support mature enough in Linux for this yet? I'm about halfway through the FAQ. Thanks, AI Nut From svong at email.arc.nasa.gov Fri Apr 5 13:56:04 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Fri, 05 Apr 2002 10:56:04 -0800 Subject: [vtkusers] which class to use for color bar, legend and axes Message-ID: <3CADF344.96A834FA@email.arc.nasa.gov> Hi everyone, I need some help here. On my contour map, I would like to add x,y axis and color bars( legend), but I don't know which class to use? Could anyone give me some ideas? Thank you in advance, Shwuping Vong From cavallo at kip.uni-heidelberg.de Fri Apr 5 14:11:11 2002 From: cavallo at kip.uni-heidelberg.de (cavallo at kip.uni-heidelberg.de) Date: Fri, 5 Apr 2002 21:11:11 +0200 (CEST) Subject: [vtkusers] core dump with vtk4.0/python on Linux In-Reply-To: <3CAD1BFE.62403A49@irus.rri.ca> Message-ID: On Thu, 4 Apr 2002, Mathieu Malaterre wrote: > Hi jon, > I had already done a 'make clean' and rebuild with g++ instead of c++ > and > now I don't have anymore this problem (it's obviously not related, but I > really don't know what was wrong). > But I have now a problem with vtkTkRenderWidget.py > > I went on vtk website download the nightly source, rebuilt from scratch. > Then I went into VTK/Wrapping/Python > and try: > python vtkRenderWidget.py > > ..But I get a core dump. > > Here is what I have with gdb : > > I really don't know what I did wrong. Any idea would be really helpfull > Mathieu > Ps: It is related only to Python because tcl work fine. > I heard that on some redhat versions there is a gcc version unstable: it was the 2.96.xx series. best regards, antonio cavallo. From prabhu at aero.iitm.ernet.in Fri Apr 5 15:27:27 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 6 Apr 2002 01:57:27 +0530 Subject: [vtkusers] which class to use for color bar, legend and axes In-Reply-To: <3CADF344.96A834FA@email.arc.nasa.gov> References: <3CADF344.96A834FA@email.arc.nasa.gov> Message-ID: <15534.2223.64062.150962@monster.linux.in> >>>>> "SPV" == Shwu Ping Vong writes: SPV> Hi everyone, I need some help here. On my contour map, I SPV> would like to add x,y axis and color bars( legend), but I SPV> don't know which class to use? Could anyone give me some SPV> ideas? Look at vtkScalarBarActor and vtkCubeAxesActor2D. prabhu From hardstone at hotmail.com Fri Apr 5 15:55:41 2002 From: hardstone at hotmail.com (Red Diamond) Date: Fri, 05 Apr 2002 12:55:41 -0800 Subject: [vtkusers] vtkWrapTcl Message-ID: VTK4.0 on Solaris 5.8 installs fine without the WRAP TCL option. However, with that option on, 'make' fails with the errors below. Any suggestions would be greatly appreciated. `cmake.depends' is up to date. `cmake.check_depends' is up to date. cmake.depends is up-to-date Building default_target in directory /srutility/guys2/VTK/Wrapping `cmake.depends' is up to date. `cmake.check_depends' is up to date. `cmake.depends' is up to date. /opt/sfw/bin/g++ -g -O2 vtkWrapTcl.o vtkParse.tab.o -L/srutility/guys2/VTK/bin/ -lpthread -ldl -lm -lpthread -ldl -lm -R/srutility/guys2/VTK/bin/ -o /srutility/guys2/VTK/bin/vtkWrapTcl *** Error code 1 The following command caused the error: /opt/sfw/bin/g++ -g -O2 vtkWrapTcl.o vtkParse.tab.o -L/srutility/guys2/VTK/bin/ -lpthread -ldl -lm -lpthread -ldl -lm -R/srutility/guys2/VTK/bin/ -o /srutility/guys2/VTK/bin/vtkWrapTcl *** Error code 1 The following command caused the error: make - all *** Error code 1 The following command caused the error: cd /srutility/guys2/VTK/Wrapping; make - default_target *** Error code 1 The following command caused the error: make - all _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From ygis at hotmail.com Fri Apr 5 20:30:17 2002 From: ygis at hotmail.com (victor zhang) Date: Sat, 06 Apr 2002 01:30:17 +0000 Subject: [vtkusers] Help!A question about contouring a delaunay2D? Message-ID: Dear users: I used the below code to contour a delaunay2D: this->points=vtkPoints::New(); for(int i=0;i<100;i++) { this->points->InsertPoint(i,this->math->Random(0,1),this->math->Random(0,1),0.0); } this->profile=vtkPolyData::New(); this->profile->SetPoints(points); this->del=vtkDelaunay2D::New(); this->del->SetInput(profile); this->del->BoundingTriangulationOn(); this->del->SetTolerance(0.00001); this->del->SetAlpha(0.1); this->del->Update(); this->shrink=vtkShrinkPolyData::New(); shrink->SetInput(del->GetOutput()); this->contours=vtkContourFilter::New(); contours->SetInput(shrink->GetOutput()); float range[1]; range[0]=0.0;range[1]=10; contours->GenerateValues(5,range); this->Contourmap=vtkPolyDataMapper::New(); Contourmap->SetInput(contours->GetOutput()); Contourmap->SetScalarRange(0.0,1.2); this->dgx=vtkActor::New(); dgx->SetMapper(Contourmap); But the vtkContourfilter reported:"no data to contour". How can I use the vtkCountourFilter to do it? Thanks any help! victor _________________________________________________________________ ???? MSN Explorer?http://explorer.msn.com/lccn/intl.asp? From prabhu at aero.iitm.ernet.in Fri Apr 5 22:53:40 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 6 Apr 2002 09:23:40 +0530 Subject: [vtkusers] Help!A question about contouring a delaunay2D? In-Reply-To: References: Message-ID: <15534.28996.140634.725917@monster.linux.in> >>>>> "VZ" == victor zhang writes: VZ> Dear users: I used the below code to contour a delaunay2D: VZ> But the vtkContourfilter reported:"no data to contour". How VZ> can I use the vtkCountourFilter to do it? Thanks any help! Looks like you didnt create any scalars for the filter to contour. prabhu From szenderb at bu.edu Sat Apr 6 14:44:28 2002 From: szenderb at bu.edu (Brian Szender) Date: Sat, 6 Apr 2002 14:44:28 -0500 Subject: [vtkusers] Converting TCL to C++ Message-ID: I have a line of code that is in TCL and I am trying to convert it to C++. TCL: writer SetFileName "frame.bmp" writer is of type vtkBMPWriter. If anyone could help me with this translation, it would really be appreciated. Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From wlorens1 at nycap.rr.com Sat Apr 6 14:58:08 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 06 Apr 2002 14:58:08 -0500 Subject: [vtkusers] Converting TCL to C++ In-Reply-To: Message-ID: <5.1.0.14.2.20020406145711.02142ba0@pop.nycap.rr.com> #include "vtkBMPWriter.h" writer->SetFileName("frame.bmp"); At 02:44 PM 4/6/02 -0500, Brian Szender wrote: >I have a line of code that is in TCL and I am trying to convert it to C++. > > > >TCL: > > > >writer SetFileName "frame.bmp" > > > >writer is of type vtkBMPWriter. If anyone could help me with this translation, it would really be appreciated. > > > >Thanks, > > > >Brian From wlorens1 at nycap.rr.com Sat Apr 6 14:58:08 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 06 Apr 2002 14:58:08 -0500 Subject: [vtkusers] Converting TCL to C++ In-Reply-To: Message-ID: <5.1.0.14.2.20020406145711.02142ba0@pop.nycap.rr.com> #include "vtkBMPWriter.h" writer->SetFileName("frame.bmp"); At 02:44 PM 4/6/02 -0500, Brian Szender wrote: >I have a line of code that is in TCL and I am trying to convert it to C++. > > > >TCL: > > > >writer SetFileName "frame.bmp" > > > >writer is of type vtkBMPWriter. If anyone could help me with this translation, it would really be appreciated. > > > >Thanks, > > > >Brian From chrisj at epcc.ed.ac.uk Sat Apr 6 15:08:00 2002 From: chrisj at epcc.ed.ac.uk (Chris Johnson) Date: Sat, 6 Apr 2002 21:08:00 +0100 (BST) Subject: [vtkusers] Hybrid directory with tcl on solaris 8 Message-ID: Hi, In the absence of any working java examples, we are using tcl to show some `working' examples of vtk with IO. However, I am unable to find many examples in any of our installations that fall into this category! I keep encountering errors of the type: chrisj at lomond$ vtk hello.tcl Error in startup script: invalid command name "vtkImplicitModeller" while executing "vtkImplicitModeller imp" (file "hello.tcl" line 24) chrisj at lomond$ Usually involving a file from the Hybrid directory. My investigations into this directory show only .cxx and .h files. E.g. chrisj at talc$ ll *vtkImplicitModeller* -rw-r--r-- 1 vtk 34404 9296 Jan 22 15:30 vtkImplicitModeller.h -rw-r--r-- 1 vtk 34404 27598 Jan 22 15:30 vtkImplicitModeller.cxx chrisj at talc$ There are no .o files as in the Graphics directory for example. I can only assume there is something missing here! The makefile contains things like: # Variable for making default_target in subdirectories. SUBDIR_BUILD = \ default_target_Wrapping \ default_target_Utilities \ default_target_Common \ default_target_Filtering \ default_target_Imaging \ default_target_Graphics \ default_target_IO \ default_target_Rendering \ default_target_Wrapping_Tcl \ default_target_Common_Testing \ default_target_Filtering_Testing \ default_target_Graphics_Testing \ default_target_Imaging_Testing \ default_target_IO_Testing \ default_target_Rendering_Testing with no mention of Hybrid. My bin directory has .so files relating to the files above, but no mention of anything `Hybrid'. What is it that I'm likely to be missing? Just a couple of .so files, or anything else. I'm not sure I understand what vtk requires when I type vtk hello.tcl I have had a look at previous installations and have found the same thing. I am extremely loathed to do yet another installation! Does anyone have any ideas? Any help would be appreciated. Cheers, Chris \-----------------------------------------------------------------------/ -Dr Chris Johnson (Applications Consultant) +44 (0)131 650 5201 (phone)- -chrisj at epcc.ed.ac.uk +44 (0)131 650 6555 (fax) - -http://www.epcc.ed.ac.uk/~chrisj/ - -Rm 3406, EPCC, JCMB, Edinburgh University, - -Mayfield Road, Edinburgh, EH9 3JZ, UK - /-----------------------------------------------------------------------\ From chrisj at epcc.ed.ac.uk Sat Apr 6 15:32:51 2002 From: chrisj at epcc.ed.ac.uk (Chris Johnson) Date: Sat, 6 Apr 2002 21:32:51 +0100 (BST) Subject: [vtkusers] Hybrid directory with tcl on solaris 8 In-Reply-To: Message-ID: Hi, Actually, I think I have already found the problem. It seems we `choose' not to build the Hybrid files: //Build the hybrid directory classes VTK_USE_HYBRID:BOOL=OFF Unfortunately, this is the problem when you have to guess what all of the options are for... I suppose I have to re-install again now :( Cheers, Chris On Sat, 6 Apr 2002, Chris Johnson wrote: > Hi, > > In the absence of any working java examples, we are using tcl to show some > `working' examples of vtk with IO. However, I am unable to find many > examples in any of our installations that fall into this category! I keep > encountering errors of the type: > > chrisj at lomond$ vtk hello.tcl > Error in startup script: invalid command name "vtkImplicitModeller" > while executing > "vtkImplicitModeller imp" > (file "hello.tcl" line 24) > chrisj at lomond$ > > Usually involving a file from the Hybrid directory. My investigations into > this directory show only .cxx and .h files. E.g. > > chrisj at talc$ ll *vtkImplicitModeller* > -rw-r--r-- 1 vtk 34404 9296 Jan 22 15:30 vtkImplicitModeller.h > -rw-r--r-- 1 vtk 34404 27598 Jan 22 15:30 vtkImplicitModeller.cxx > chrisj at talc$ >. >. >. > I have had a look at previous installations and have found the same > thing. I am extremely loathed to do yet another installation! > > Does anyone have any ideas? Any help would be appreciated. > > Cheers, > > Chris \-----------------------------------------------------------------------/ -Dr Chris Johnson (Applications Consultant) +44 (0)131 650 5201 (phone)- -chrisj at epcc.ed.ac.uk +44 (0)131 650 6555 (fax) - -http://www.epcc.ed.ac.uk/~chrisj/ - -Rm 3406, EPCC, JCMB, Edinburgh University, - -Mayfield Road, Edinburgh, EH9 3JZ, UK - /-----------------------------------------------------------------------\ From szenderb at bu.edu Sat Apr 6 15:37:40 2002 From: szenderb at bu.edu (Brian Szender) Date: Sat, 6 Apr 2002 15:37:40 -0500 Subject: [vtkusers] Build Errors Message-ID: When I build my program, I get these two errors: LINK : warning LNK4098: defaultlib "LIBCMT" conflicts with use of other libs; use /NODEFAULTLIB:library VLMvisualizer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkImageWriter::SetFileName(char const *)" (__imp_?SetFileName at vtkImageWriter@@QAEXPBD at Z) VLMvisualizer.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkBMPWriter * __cdecl vtkBMPWriter::New(void)" (__imp_?New at vtkBMPWriter@@SAPAV1 at XZ) Debug/fxvtkwindow.exe : fatal error LNK1120: 2 unresolved externals Error executing link.exe. fxvtkwindow.exe - 3 error(s), 1 warning(s) Does anyone know what to do with these? Thanks, Brian -------------- next part -------------- An HTML attachment was scrubbed... URL: From bthomas at engineering.uiowa.edu Sat Apr 6 16:39:03 2002 From: bthomas at engineering.uiowa.edu (Benj Thomas) Date: Sat, 06 Apr 2002 15:39:03 -0600 Subject: [vtkusers] speed up Message-ID: <3CAF6AF7.21491FE1@engineering.uiowa.edu> I am working on an application written in python. The rendering of large files is very slow. I am using a stripper and have tryed all of the other methods to speed it up(releasedataflag(), ect.). So I am wondering if there is a way to render a smaller number of the triangles during movement and color changes and then redraw all of them again after movement/color change has stopped. I have tried switching to point representation but this is not much help either because there are so many points and color changes aren't as easy to see. I would like to have it just render a rough skeleton so it clear what the orientation and color will be once the user has stopped moving the slider. Thanks. Benjamin Thomas From prabhu at aero.iitm.ernet.in Sat Apr 6 22:07:33 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sun, 7 Apr 2002 08:37:33 +0530 Subject: [vtkusers] speed up In-Reply-To: <3CAF6AF7.21491FE1@engineering.uiowa.edu> References: <3CAF6AF7.21491FE1@engineering.uiowa.edu> Message-ID: <15535.47093.30517.884647@monster.linux.in> >>>>> "BT" == Benj Thomas writes: BT> I am working on an application written in python. The BT> rendering of large files is very slow. I am using a stripper BT> and have tryed all of the other methods to speed it [snip] BT> aren't as easy to see. I would like to have it just render a BT> rough skeleton so it clear what the orientation and color will BT> be once the user has stopped moving the slider. Thanks. You might want to try using a vtkLODActor instead of a vtkActor. Read the source/docs for more information. If you are using the vtkTkRenderWidget or wxVTKRenderWindow or one of the other widgets please check out a recent CVS/nightly. Support for changing the desired update rate and still update rate was added to the widgets (the vtkLODActor has details on what that means). prabhu From robbel at science.uva.nl Sun Apr 7 07:14:49 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Sun, 7 Apr 2002 13:14:49 +0200 Subject: [vtkusers] vtkLineWidget In-Reply-To: <5.1.0.14.0.20020327134829.02867bd8@pop.nycap.rr.com>; from will.schroeder@kitware.com on Wed, Mar 27, 2002 at 01:53:01PM -0500 References: <5.1.0.14.0.20020327134829.02867bd8@pop.nycap.rr.com> Message-ID: <20020407131449.A11367@carol.wins.uva.nl> (I'm resending this since it seems to have been lost) Hi Will, Great widget! There is however a slight problem with the Tcl wrapping of the GetPoint1/2 methods; these use the vtkLineSource's GetPoint1/2, which are vtkGetVectorMacro's, but the wrapper "neglects" these: $ vtk % vtkLineWidget l % l ListMethods [...] Methods from vtkLineWidget: [...] GetPoint1 with 3 args [...] GetPoint2 with 3 args [...] Any ideas how this can be solved? This currently prevents me from creating a multi-segment line widget... Best, -- Rob -- [] Robert Belleman X Section Computational Science [] [] robbel at science.uva.nl |X| University of Amsterdam, the Netherlands [] [] tel: (+31) 20 525 7510 X http://www.science.uva.nl/~robbel/ [] On Wed, Mar 27, 2002 at 01:53:01PM -0500, Will Schroeder wrote: > Hi Folks- > > I just added a vtkLineWidget. There is an example in > VTK/Examples/GUI/Tcl/StreamlinesWithLineWidget.tcl. > > I'm starting to accumulate some suggestions for improvement. I'm going to > let the code marinade a bit before getting back to it. One thing for sure > is that these GUI type things take no end of fussing to get right :-) > > Will From scott_01 at hotmail.com Sun Apr 7 21:45:05 2002 From: scott_01 at hotmail.com (Scott X) Date: Sun, 07 Apr 2002 21:45:05 Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: method requires a VTK object" Message-ID: I've built VTK4.x on a redhat 7.2 machine with python2.2 and I get this error when I run CSpline.py from the old vtk31 release demos. CSpline.tcl in the new Examples directory runs just fine and it seems to be a parallel of the python version. Here's the error in its full glory: Traceback (most recent call last): File "CSpline.py", line 41, in ? glyphPoints.SetInput(inputData) Here's the offending code, although I'm sure most people on the list have a copy. inputData = vtkPolyData() inputData.SetPoints(inputPoints) balls = vtkSphereSource() balls.SetRadius(.01) balls.SetPhiResolution(10) balls.SetThetaResolution(10) glyphPoints = vtkGlyph3D() glyphPoints.SetInput(inputData) <- I get the error here glyphPoints.SetSource(balls.GetOutput()) glyphMapper = vtkPolyDataMapper() glyphMapper.SetInput(glyphPoints.GetOutput()) I also get this similar error from the bottle.py demo: File "mybottle.py", line 58, in mylens extrude.SetInput(profile) ValueError: method requires a VTK object Where I'm trying to send a vtkPolyData() object to vtkRotationalExtrusionFilter using the SetInput method. Is this a bug, or am I missing something new in VTK4.0. Thanks for the help/advice in advance! -Scott Scott Harris scott_01 at hotmail.com _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From david_pont at hotmail.com Sun Apr 7 20:28:15 2002 From: david_pont at hotmail.com (David Pont) Date: Mon, 08 Apr 2002 12:28:15 +1200 Subject: [vtkusers] Implicit polydata Message-ID: An HTML attachment was scrubbed... URL: From david_pont at hotmail.com Sun Apr 7 19:56:04 2002 From: david_pont at hotmail.com (David Pont) Date: Mon, 08 Apr 2002 11:56:04 +1200 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces Message-ID: An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Sun Apr 7 20:41:10 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 8 Apr 2002 06:11:10 +0530 Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: method requires a VTK object" In-Reply-To: References: Message-ID: <15536.59174.891845.885346@monster.linux.in> >>>>> "SX" == Scott X writes: SX> I've built VTK4.x on a redhat 7.2 machine with python2.2 and I SX> get this error when I run CSpline.py from the old vtk31 SX> release demos. CSpline.tcl in the new Examples directory runs SX> just fine and it seems to be a parallel of the python SX> version. Here's the error in its full glory: [snip] SX> File "mybottle.py", line 58, in mylens SX> extrude.SetInput(profile) ValueError: method requires a VTK SX> object This can happen when you have different versions of the VTK python libraries. Look here: http://public.kitware.com/pipermail/vtkusers/2002-January/009018.html You might want to read the whole thread. prabhu From guimond at bwh.harvard.edu Sun Apr 7 23:00:48 2002 From: guimond at bwh.harvard.edu (Alexandre Guimond) Date: 07 Apr 2002 23:00:48 -0400 Subject: [vtkusers] Re: compiling vtk4.0 with gcc3.0.3 & tcl8.3 on solaris 7 References: <3C9074AB.7054FD53@canarias-digital.org> Message-ID: On Thu, 14 Mar 2002 10:00:11 +0000 Ruben Cardenes writes: > Hi Alex, > > I'ts really strange, we have compiled vtk4.0 with tcl8.3 but under > Solaris 8 and gcc 2.95.3, and it works fine. I would try to change the > compiler... That seems to be the problem. compiling with gcc 2.95.3 works fine. with gcc 3.0.3 I get the bus error thing. those damn .0 releases... :) > > Alexandre Guimond wrote: > > > > Hi All. I compiled vtk4.0 from the vtk40Src.tar.gz source I got from > > the "official" 4.0 relase on the kitware website. Applications such > > as TimeRenderer seem to work fine, but the tcl interface seems to be > > broken. From the VTK/bin directory I get a Bus Error when I run vtk: > > > > [guimond at cni04 bin]$ ./vtk > > Bus Error > > > > That seems very strange since I'm not trying to do anything special. > > I'm compiling with gcc3.0.3 & tcl/tk8.3 on solaris 7. Did anyone ever > > ran into that kind of problem, or was succesful compiling with the > > same components? Could it be a bad verion of gcc or of tcl/tk? I've > > had the same problem compiling under solaris 8 or from the yesterday's > > CVS version. > > -- > > Alexandre Guimond, Ph.D. Phone: 617.278.0800 > > Instructor in Radiology, Harvard Medical School Fax : 617.264.5154 > > Brigham and Women's Hospital, Department of Radiology > > Center for Neurological Imaging, 221 Longwood Av, Boston, MA 02115 > > _______________________________________________ > > 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 -- Alexandre Guimond, Ph.D. Phone: 617.278.0800 Instructor in Radiology, Harvard Medical School Fax : 617.264.5154 Brigham and Women's Hospital, Department of Radiology Center for Neurological Imaging, 221 Longwood Av, Boston, MA 02115 From husthj at yahoo.com Sun Apr 7 23:37:47 2002 From: husthj at yahoo.com (Denny) Date: Sun, 7 Apr 2002 20:37:47 -0700 (PDT) Subject: [vtkusers] A newbie's simple question Message-ID: <20020408033747.88391.qmail@web20203.mail.yahoo.com> when I try to execute the example file "mcubes.tcl" in subfolder Patented\Testing\Tcl, I got the error message "invalid command name "vtkMarchingContourFilter" while executing "vtkMarchingContourFilter iso"(file mcubes.tcl" line 27). What can I do with it. best regards __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From c.p.botha at its.tudelft.nl Mon Apr 8 03:31:53 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 8 Apr 2002 09:31:53 +0200 Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: method requires a VTK object" In-Reply-To: <15536.59174.891845.885346@monster.linux.in> References: <15536.59174.891845.885346@monster.linux.in> Message-ID: <20020408073152.GA9290@dutidad.twi.tudelft.nl> On Mon, Apr 08, 2002 at 06:11:10AM +0530, Prabhu Ramachandran wrote: > >>>>> "SX" == Scott X writes: > SX> File "mybottle.py", line 58, in mylens > SX> extrude.SetInput(profile) ValueError: method requires a VTK > SX> object > > This can happen when you have different versions of the VTK python > libraries. Look here: > > http://public.kitware.com/pipermail/vtkusers/2002-January/009018.html It can also happen when one isn't importing the necessary VTK modules. I.e. some of the older examples have: from libVTKCommonPython import * from libVTKGraphicsPython import * whereas: from vtkpython import * would be safer, seeing that classes have been moved around since 3.2. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From David.Annetts at csiro.au Mon Apr 8 03:36:15 2002 From: David.Annetts at csiro.au (David.Annetts at csiro.au) Date: Mon, 8 Apr 2002 17:36:15 +1000 Subject: [vtkusers] File format documentation ... Message-ID: <0504018E9DCAD1119FE900A0C9A39AF8056041C5@anaconda> Hi, I'm attempting to put together a C++ application based on VTK. Can anyone point me to current documentation on file formats? References on Kitware's web site appear to be for 2.3 rather than 4.0. Many thanks, Dave. -------------------------------------------------------- Dr. David Annetts EM Modelling Analyst Tel: (+612) 9490 5416 CSIRO DEM, North Ryde Fax: (+612) 9490 5467 David.Annetts at csiro.au Include "usual_disclaimers" -------------------------------------------------------- From scj90 at dvis.cs.ccu.edu.tw Mon Apr 8 04:04:59 2002 From: scj90 at dvis.cs.ccu.edu.tw (Poyo) Date: Mon, 8 Apr 2002 16:04:59 +0800 Subject: [vtkusers] RMI in vtk visualization pipeline Message-ID: <014001c1ded4$94edf3e0$46657b8c@poyo> Hi all: in the vtk visualization pipeline, can we invocate the remote method on RMI server and pass a vtk object like vtkpolydatamapper or vtkcontourfilter as a parameter? or can we make a vtk object as a return type for a remote method? Tke plot3d reader for example.... we invocate a remote funcation r_function( ) in RMI server doing vtkPLOT3DReader and vtkContourFilter, and then return the vtkContourFilter object to rmi client. When rmi client receives the vtkContourFilter object, it takes the object as a input parameter for vtkPolyDataMapper and contiune the vtk pipeline. In our opinion, can server do the filter stage and export the .vtk file. Pass the .vtk file to clinet(or other file format), then client import the .vtk file and contiune the pipeline? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From baudet at ondim.fr Mon Apr 8 04:39:44 2002 From: baudet at ondim.fr (=?iso-8859-1?Q?R=E9my_Baudet?=) Date: Mon, 8 Apr 2002 10:39:44 +0200 Subject: [vtkusers] Release Link Error on vtkViewport::RemoveProp() Message-ID: <004001c1ded8$ef12e660$1c00a8c0@muscles> Hi all, I've got a link error on vtkRenderer::RemoveActor() only when I'm performing a Release build... (whereas RemoveActor2D() works) Code: _pRenderer->RemoveActor(_pOutlineActor); Output build message: TYElementPicker.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkViewport::RemovePropW(class vtkProp *)" ( __imp_?RemovePropW at vtkViewport@@QAEXPAVvtkProp@@@Z) Maybe I make something wrong in my project settings? Thanks for your help! R?my Baudet ONDIM - Signal | Image | Multim?dia Email : baudet at ondim.fr ICQ# : 138748553 T?l. : +33.1.40.33.88.08 Fax : +33.1.40.33.65.54 Adresse : 14, rue du Soleillet - 75020 Paris -------------- next part -------------- An HTML attachment was scrubbed... URL: From poecher at icom-consulting.de Mon Apr 8 06:04:13 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Mon, 08 Apr 2002 12:04:13 +0200 Subject: [vtkusers] Interpolating vector data Message-ID: <3CB16B1D.72DF0F0B@icom-consulting.de> Hi, I would like to interpolate vector data with a RectilinearGrid topology and map the vectors on gylphs.For example: If there is a rectilinear grid with points at (x y z) 1 1 1 and 2 1 1, I want a vector data of the point 1.5 1 1. I thought vtkProbeFilter would do it, but I don't see how. Does anyone know, if vtk can do this or which class I must use? Maybe someone knows an example? TIA chris -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From chrisj at epcc.ed.ac.uk Mon Apr 8 06:28:38 2002 From: chrisj at epcc.ed.ac.uk (Chris Johnson) Date: Mon, 8 Apr 2002 11:28:38 +0100 (BST) Subject: [vtkusers] vtk and ?java? Message-ID: Hi Jeff, Phil, etc., I have now rebuilt vtk4.0 with java, shared libraries enabled, etc. on a solaris 8 platform using the Nightly_20020305 according to Phil Varner's instructions for Linux. Thanks Phil :) - this has definitely filled in some gaps. Unfortunately, this still does not appear to work for solaris. chrisj at lomond$ java Cone Exception in thread "main" java.lang.UnsatisfiedLinkError: /home/vtk/VTK41_Nightly_20020305_2/bin/libvtkCommonJava.so: ld.so.1: /home/javag/jdk/j2sdk1_3_1/bin/../bin/sparc/native_threads/java: fatal: relocation error: file /home/vtk/VTK41_Nightly_20020305_2/bin/libvtkCommon.so: symbol __1cDstdDcin_: referenced symbol not found 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 Cone.(Cone.java:17) chrisj at lomond$ I have no idea what symbol __1cDstdDcin_ is. Does anybody have any idea which .so file we are now missing? I have the following: chrisj at lomond$ ls /home/vtk/VTK41_Nightly_20020305_2/bin/*.so |cut -c40- libvtkCommon.so libvtkCommonJava.so libvtkCommonTCL.so libvtkFiltering.so libvtkFilteringJava.so libvtkFilteringTCL.so libvtkGraphics.so libvtkGraphicsJava.so libvtkGraphicsTCL.so libvtkHybrid.so libvtkHybridJava.so libvtkHybridTCL.so libvtkIO.so libvtkIOJava.so libvtkIOTCL.so libvtkImaging.so libvtkImagingJava.so libvtkImagingTCL.so libvtkRendering.so libvtkRenderingJava.so libvtkRenderingTCL.so libvtkexpat.so libvtkjpeg.so libvtkpng.so libvtktiff.so libvtkzlib.so chrisj at lomond$ The LD_LIBRARY_PATH, CLASSPATH, PATH, etc. I believe to be correct. A number of different people here have installed on several different machines here, and we are running out of compile/run options to try. Any ideas, or is it better just to stick with tcl, which appears to be very nice and working without problems? Ideally we would like to show some examples other than tcl for our MSc course in a few weeks. Cheers, Chris \-----------------------------------------------------------------------/ -Dr Chris Johnson (Applications Consultant) +44 (0)131 650 5201 (phone)- -chrisj at epcc.ed.ac.uk +44 (0)131 650 6555 (fax) - -http://www.epcc.ed.ac.uk/~chrisj/ - -Rm 3406, EPCC, JCMB, Edinburgh University, - -Mayfield Road, Edinburgh, EH9 3JZ, UK - /-----------------------------------------------------------------------\ From amati at ira.cnr.it Mon Apr 8 08:36:21 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Mon, 8 Apr 2002 14:36:21 +0200 (CEST) Subject: [vtkusers] Define Spherical Coordinate System Message-ID: Hello Everybody, my question is: I would like to represent points in their spherical coordinates instead of transforming them in x,y and z coordinate using known relations. Is it possible to define a sperical coordinate system using vtk? Thank you very much. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From Scott.Harris at wpafb.af.mil Mon Apr 8 10:23:35 2002 From: Scott.Harris at wpafb.af.mil (Harris Scott R CIV AFRL/SNJM) Date: Mon, 8 Apr 2002 10:23:35 -0400 Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: meth od requires a VTK object" Message-ID: <67348AAF0635D511866A00508BDF0CC802819B01@fszhtv11.wpafb.af.mil> I did a search for python and VTK4.0 but I didn't find that thread. Thanks! I tried to install the Wrapping/Python stuff in my site-packages directory under python2.2 and I put the libs in /usr/local/lib/ I blew that stuff away and just set up my paths to point into the VTK4.0 directory and it worked. I'll have to go back and understand where it was getting confused. Where do folks normally install VTK4.0? Do they just leave it where it was built, or do they move it someplace else? I guess leaving it in the build directory is cleaner and safer. -Scott -----Original Message----- From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] Sent: Sunday, April 07, 2002 8:41 PM To: Scott X; VTK users list Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: method requires a VTK object" >>>>> "SX" == Scott X writes: SX> I've built VTK4.x on a redhat 7.2 machine with python2.2 and I SX> get this error when I run CSpline.py from the old vtk31 SX> release demos. CSpline.tcl in the new Examples directory runs SX> just fine and it seems to be a parallel of the python SX> version. Here's the error in its full glory: [snip] SX> File "mybottle.py", line 58, in mylens SX> extrude.SetInput(profile) ValueError: method requires a VTK SX> object This can happen when you have different versions of the VTK python libraries. Look here: http://public.kitware.com/pipermail/vtkusers/2002-January/009018.html You might want to read the whole thread. 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 bsapp at lanl.gov Mon Apr 8 11:21:21 2002 From: bsapp at lanl.gov (Ben Sapp) Date: Mon, 8 Apr 2002 08:21:21 -0700 Subject: [vtkusers] finance example. Message-ID: <200204081521.JAA23391@p25hp.lanl.gov> Hi, I recently downloaded VTK 4.0. All work wonderfully except for Examples/Modelling/Cxx/finance.cxx would not compile. If I changed the line: #include "vtkScalars.h" to #include "vtkFloatArray.h" It worked like a charm. Just thought I'd let you know. Cheers, Ben. -- Ben Sapp Los Alamos National Laboratory email: Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/ -- From mache at abcpages.com Mon Apr 8 11:25:34 2002 From: mache at abcpages.com (Nicolae Mihalache) Date: Mon, 08 Apr 2002 17:25:34 +0200 Subject: [vtkusers] vtk linux and nvidia Message-ID: <3CB1B66E.2040005@abcpages.com> Hi! I'm tring to use vtk on a SuSE 7.1, kernel 2.4.18 with a NVidia Riva TNT2 M64TNT video card. I've compiled vtk 3.1.2 but unfortunately it does not work very well when using accelerated drivers from nvidia. The application I try to run (not written by me) does not display what is suppose to display, it presents me with a blank screen. I tested the programs from examplesTcl directory in vtk distribution and it seems that they start correctly but if I resize the window, the image is lost, it displays garbage. If I use the mesa unacelerated OpenGL everything works fine (but is much slower). The demos shiped with mesa run very well using the Nvidia OpenGL. Is there any known problem with vtk 3.1.2 and nvidia openGL implementation? Unfortunately I can not upgrade to vtk 4.0, my application will not work anymore. Is vtk 3.2 compatible with vtk 3.1? Should I try this one? Thank you, Nicolae From c.p.botha at its.tudelft.nl Mon Apr 8 11:39:33 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 8 Apr 2002 17:39:33 +0200 Subject: [vtkusers] vtk linux and nvidia In-Reply-To: <3CB1B66E.2040005@abcpages.com> References: <3CB1B66E.2040005@abcpages.com> Message-ID: <20020408153933.GB9973@dutidad.twi.tudelft.nl> On Mon, Apr 08, 2002 at 05:25:34PM +0200, Nicolae Mihalache wrote: > Is there any known problem with vtk 3.1.2 and nvidia openGL > implementation? Unfortunately I can not upgrade to vtk 4.0, my > application will not work anymore. Is vtk 3.2 compatible with vtk 3.1? > Should I try this one? Which version of the NVidia drivers are you using? -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From c.p.botha at its.tudelft.nl Mon Apr 8 12:00:33 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 8 Apr 2002 18:00:33 +0200 Subject: [vtkusers] vtk linux and nvidia In-Reply-To: <3CB1BD98.9080009@abcpages.com> References: <3CB1B66E.2040005@abcpages.com> <20020408153933.GB9973@dutidad.twi.tudelft.nl> <3CB1BD98.9080009@abcpages.com> Message-ID: <20020408160033.GC9973@dutidad.twi.tudelft.nl> On Mon, Apr 08, 2002 at 05:56:08PM +0200, Nicolae Mihalache wrote: > Charl P. Botha wrote: > >>application will not work anymore. Is vtk 3.2 compatible with vtk 3.1? > >>Should I try this one? > > > >Which version of the NVidia drivers are you using? > > > 1.0.2880, I've downloaded last week from nvidia site. > I've also upgraded XFree86 to 4.2.0 with no luck. I (and one or two other users) did see some weird behaviour since 1.0-2802. If you downgrade to 1.0.2314 these problems should go away. We have reported (with an exact recipe on how to reproduce it, even offering binaries of VTK to reproduce it with) it to NVidia and have gotten absolutely no response. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From amati at ira.cnr.it Mon Apr 8 13:14:52 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Mon, 8 Apr 2002 19:14:52 +0200 (CEST) Subject: [vtkusers] MORE SCALARS Message-ID: Hello everybody, how can I associate more then one scalar into a POLY_DATA structure? Giancarl -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From mache at abcpages.com Mon Apr 8 12:27:14 2002 From: mache at abcpages.com (mache at abcpages.com) Date: Mon, 8 Apr 2002 12:27:14 -0400 (EDT) Subject: [vtkusers] vtk linux and nvidia In-Reply-To: <20020408160033.GC9973@dutidad.twi.tudelft.nl> Message-ID: On Mon, 8 Apr 2002, Charl P. Botha wrote: > > I (and one or two other users) did see some weird behaviour since 1.0-2802. > If you downgrade to 1.0.2314 these problems should go away. We have > reported (with an exact recipe on how to reproduce it, even offering > binaries of VTK to reproduce it with) it to NVidia and have gotten > absolutely no response. > You are perfectly right, I downgraded and it works like a charm now. Thank you very much. Nicolae From c.p.botha at its.tudelft.nl Mon Apr 8 12:29:03 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 8 Apr 2002 18:29:03 +0200 Subject: [vtkusers] vtk linux and nvidia In-Reply-To: References: <20020408160033.GC9973@dutidad.twi.tudelft.nl> Message-ID: <20020408162903.GD9973@dutidad.twi.tudelft.nl> On Mon, Apr 08, 2002 at 12:27:14PM -0400, mache at abcpages.com wrote: > On Mon, 8 Apr 2002, Charl P. Botha wrote: > > I (and one or two other users) did see some weird behaviour since 1.0-2802. > > If you downgrade to 1.0.2314 these problems should go away. We have > > > You are perfectly right, I downgraded and it works like a charm now. Thank > you very much. I'm glad it works for you now! I just wish NVidia would fix this... -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From heiland at ncsa.uiuc.edu Mon Apr 8 12:45:53 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Mon, 8 Apr 2002 11:45:53 -0500 Subject: [vtkusers] SetScalars of SG from Field Message-ID: <1020408114553.ZM29173@kelgia.ncsa.uiuc.edu> I'm trying to update scalars in a struct grid from a FIELD file, but the results don't get re-rendered properly. What am I missing? Here's some Python code & files to demonstrate (using VTK 4.0): from vtk import * ren1 = vtkRenderer() renWin = vtkRenderWindow() renWin.AddRenderer(ren1) iren= vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) #-------------------------------------------------- sgr = vtkStructuredGridReader() sgr.SetFileName("sg.vtk") sgr.Update() sg = sgr.GetOutput() srange= sg.GetPointData().GetScalars().GetRange() print 'srange = ',srange #---------------------- mapper = vtkDataSetMapper() mapper.SetInput(sg) #mapper.SetScalarRange(0.,1.) #mapper.SetLookupTable(lutBlueRed) actor = vtkActor() actor.SetMapper(mapper) ren1.AddActor(actor) #ren1.GetActiveCamera().Elevation(-90) #ren1.GetActiveCamera().Roll(-90) renWin.Render() w2if = vtkWindowToImageFilter() w2if.SetInput( renWin ) pnmWriter = vtkPNMWriter() pnmWriter.SetInput(w2if.GetOutput()) pnmWriter.SetFileName("sg1.pnm") pnmWriter.Write() #-------------------------------- # Now try to update scalars from a Field file dor = vtkDataObjectReader() dor.DebugOn() dor.SetFileName('field.vtk') dor.Update() so = vtkFloatArray() so = dor.GetOutput().GetFieldData().GetArray(0) sg.GetPointData().SetScalars(so) # does this help? sg.GetPointData().Modified() sg.Update() srange= sg.GetPointData().GetScalars().GetRange() print 'srange = ',srange actor.Modified() renWin.Render() pnmWriter.SetFileName("sg2.pnm") pnmWriter.Write() iren.Start() ------------ sg.vtk: # vtk DataFile Version 1.0 title line ASCII DATASET STRUCTURED_GRID DIMENSIONS 3 2 1 POINTS 6 float 0.0 0.0 0.0 1.0 0.0 0.0 2.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0 0.0 2.0 1.0 0.0 POINT_DATA 6 SCALARS foo float LOOKUP_TABLE default 0.0 1.0 2.0 0.0 1.0 2.0 ----------- field.vtk # vtk DataFile Version 1.0 dummy field data ASCII FIELD all 1 temp 1 6 float 0 0 0 1 1 1 From krw at viz-solutions.com Mon Apr 8 12:47:50 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon, 08 Apr 2002 09:47:50 -0700 Subject: [vtkusers] A newbie's simple question In-Reply-To: <20020408033747.88391.qmail@web20203.mail.yahoo.com> Message-ID: <5.1.0.14.0.20020408094641.023d80f0@127.0.0.1> >when I try to execute the example file "mcubes.tcl" in >subfolder Patented\Testing\Tcl, I got the error >message >"invalid command name "vtkMarchingContourFilter" while >executing "vtkMarchingContourFilter iso"(file >mcubes.tcl" line 27). What can I do with it. You have to include the patented algorithms to get Marching Cubes. I believe the pre-compiled libraries do not have patented algorithms in them, so you'll have to build them yourself to run this example. Kevin. From bsapp at lanl.gov Mon Apr 8 13:04:36 2002 From: bsapp at lanl.gov (Ben Sapp) Date: Mon, 8 Apr 2002 10:04:36 -0700 Subject: [vtkusers] xyPlot, xyzPlot? Message-ID: <200204081704.LAA24306@p25hp.lanl.gov> Hi, As a learning exercise I converted xyPlot.tcl to C++. I have attached the source code for any one that is interested. The real reason I am writing this is to find out if there is a class similar to vtkXYPlotActor that plots 3 variables instead of two? For example, I have a differential equation with three states and I want to plot a trajectory with the axes labeled appropriately. Thanks. -- Ben Sapp Los Alamos National Laboratory email: Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/ -- -------------- next part -------------- A non-text attachment was scrubbed... Name: xyPlot.cxx Type: text/x-c Size: 7812 bytes Desc: not available URL: From berk.geveci at kitware.com Mon Apr 8 13:14:02 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 08 Apr 2002 13:14:02 -0400 Subject: [vtkusers] MORE SCALARS In-Reply-To: References: Message-ID: <1018286043.27700.14.camel@caemlyn.kitwarein.com> In VTK 4.0, you can associate as many arrays as you want with point and cell data. Only one of them will be currently active. There are filters to change the active attributes. See Examples/DataManipulation/Tcl/Arrays.tcl or Examples/DataManipulation/Cxx/Arrays.cxx for example. Also see the documentation for vtkAssignAttribute. There are more examples in the current user's guide. -Berk On Mon, 2002-04-08 at 13:14, Giancarlo Amati wrote: > Hello everybody, > > how can I associate more then one scalar into a POLY_DATA structure? > > Giancarl > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 mmalat at irus.rri.ca Mon Apr 8 16:49:26 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Mon, 08 Apr 2002 16:49:26 -0400 Subject: [vtkusers] Active Contour + Edge Detector References: <3CAD1BFE.62403A49@irus.rri.ca> <15533.35797.521297.105164@monster.linux.in> Message-ID: <3CB20256.7492545A@irus.rri.ca> Hi all, Is there any available methods of implementation of active contour(snakes) algorithm and/or edge detector? I will be grateful if someone can provide links to the implementation of these algorithms in vtk. Thanks in advance for the help Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From elwo73 at hotmail.com Mon Apr 8 15:53:04 2002 From: elwo73 at hotmail.com (jon n) Date: Mon, 08 Apr 2002 12:53:04 -0700 Subject: [vtkusers] Trouble with Compiling Java Extensions Message-ID: Hi, I'm attempting to compile the Java stuff and having a little trouble. First, it couldn't find jni.h because our Java is installed in a weird location, so I added the write paths to the list of paths in Find-JNI in CMake. So that worked, but now when the make begins creating the actual .java files its failing without really giving a reason. Is there another thing which needs to be set somewhere about Java compiling? /home/datatmp/VTK_CVS/VTK/bin/./vtkParseJava /home/datatmp/VTK_CVS/VTK/Common/vt kAbstractMapper.h /home/datatmp/VTK_CVS/VTK/Wrapping/hints 0 /home/datatmp/VTK_C VS/VTK/java/vtk/vtkAbstractMapper.java Parsed func PrintSelf Parsed func GetMTime Parsed func ReleaseGraphicsResources Parsed func AddClippingPlane Parsed func RemoveClippingPlane Parsed func RemoveAllClippingPlanes Parsed func SetClippingPlanes Parsed func ShallowCopy Parsed func GetScalars Parsed func AddConsumer Parsed func RemoveConsumer Parsed func GetConsumer Parsed func IsConsumer Parsed func vtkAbstractMapper Parsed func vtkAbstractMapper Parsed func vtkAbstractMapper Converted operator Error opening output file 0 make[3]: *** [/home/datatmp/VTK_CVS/VTK/java/vtk/vtkAbstractMapper.java] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From elwo73 at hotmail.com Mon Apr 8 15:54:48 2002 From: elwo73 at hotmail.com (jon n) Date: Mon, 08 Apr 2002 12:54:48 -0700 Subject: [vtkusers] smoothing / decimation / isocontours / distance between surfaces Message-ID: ya i think i can use that... i figured out how to split the surfaces so hopefully using the locator in python won't be too slow. thanks for the help, all. >From: "David Pont" >To: jbiddiscombe at skippingmouse.co.uk, elwo73 at hotmail.com >CC: vtkusers at public.kitware.com >Subject: Re: [vtkusers] smoothing / decimation / isocontours / distance >between surfaces >Date: Mon, 08 Apr 2002 11:56:04 +1200 > _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. -------------- next part -------------- An embedded message was scrubbed... From: "David Pont" Subject: Re: [vtkusers] smoothing / decimation / isocontours / distance between surfaces Date: Mon, 08 Apr 2002 11:56:04 +1200 Size: 3006 URL: From ovidovic at medipattern.com Mon Apr 8 16:04:33 2002 From: ovidovic at medipattern.com (Oliver Vidovic) Date: Mon, 8 Apr 2002 16:04:33 -0400 Subject: [vtkusers] creating vtkImageData from byte array in Java In-Reply-To: <20020404182454.A70DA1AB9D@public.kitware.com> Message-ID: Hi vtkusers, How can I create vtkImageData from a byte array? I know this works: -- begin code public void createImageDataFromByteArray( byte[] data ) { vtkImageData image = new vtkImageData(); image.SetDimensions( xsize, ysize, zsize ); image.SetExtent( xmin, xmax, ymin, ymax, zmin, zmax ); image.SetNumberOfScalarComponents( 1 ); image.SetOrigin( xorigin, yorigin, zorigin ); image.SetSpacing( xspacing, yspacing, zspacing ); image.SetScalarType( 3 ); // VTK_UNSIGNED_CHAR // set values vtkScalars scalars = new vtkScalars(); scalars.SetNumberOfComponents( 1 ); scalars.SetDataTypeToUnsignedChar(); int index = 0; for ( int x = 0; x < xsize; x++ ) { for ( int y = 0; y < ysize; y++ ) { for ( int z = 0; z < zsize; z++ ) { scalars.InsertNextScalar( data[ index ] ); index++; } } } image.GetPointData().SetScalars( scalars ); return image; } // end method -- end code However, with this approach I have to loop through all the data in the byte array and assign it to vtkScalars. Since I am working with 25 - 50 MB byte arrays, is there a faster/better/smarter way to do this? In C++ there is a class vtkImageImport and methods that can take void* to the data, but those methods are not exposed in Java. Any reason why they are not exposed? Can I expose them using JNI? Will there be any known problems? Has anyone done it before? Note: I am using vtk 3.2 and Java 1.3. thanks oliver From joey at phobos.space.swri.edu Mon Apr 8 16:29:15 2002 From: joey at phobos.space.swri.edu (Joey Mukherjee) Date: Mon, 8 Apr 2002 15:29:15 -0500 (CDT) Subject: [vtkusers] VTK and QT Message-ID: <200204082032.g38KW4J19031@phobos.space.swri.edu> I notice there are three versions of mixing VTK and QT. Is there a consensus on which is the better of the three? Are their advantages/disadvantages of any of them? Has anyone tried any of them on Mac OS X? Thanks for your insight! Joey +--------------------------------------------------------------------------+ + + + Joey Mukherjee "The price of freedom is eternal + + joey at swri.org vigilance, or $12.50 as seen on + + E-Bay... + + + +--------------------------------------------------------------------------+ From elwo73 at hotmail.com Mon Apr 8 16:28:39 2002 From: elwo73 at hotmail.com (jon n) Date: Mon, 08 Apr 2002 13:28:39 -0700 Subject: [vtkusers] Trouble with Compiling Java Extensions Message-ID: Mandrake Linux 8.1 / GCC 2.96 >From: "Lemay, Odile" >To: 'jon n' >Subject: RE: [vtkusers] Trouble with Compiling Java Extensions >Date: Mon, 8 Apr 2002 16:05:44 -0400 > > >Which platform you work on ? > >I work on pc with Microsoft C++ 6 for compiling the >libraries and JBuilder 6 to make the connection >between Java and the .dll. > >I was not so simple. > >Odile > >-----Original Message----- >From: jon n [mailto:elwo73 at hotmail.com] >Sent: Monday, April 08, 2002 3:53 PM >To: vtkusers at public.kitware.com >Subject: [vtkusers] Trouble with Compiling Java Extensions > > >Hi, I'm attempting to compile the Java stuff and having a little trouble. >First, it couldn't find jni.h because our Java is installed in a weird >location, so I added the write paths to the list of paths in Find-JNI in >CMake. So that worked, but now when the make begins creating the actual >.java files its failing without really giving a reason. Is there another >thing which needs to be set somewhere about Java compiling? > >/home/datatmp/VTK_CVS/VTK/bin/./vtkParseJava >/home/datatmp/VTK_CVS/VTK/Common/vt >kAbstractMapper.h /home/datatmp/VTK_CVS/VTK/Wrapping/hints 0 >/home/datatmp/VTK_C >VS/VTK/java/vtk/vtkAbstractMapper.java > Parsed func PrintSelf > Parsed func GetMTime > Parsed func ReleaseGraphicsResources > Parsed func AddClippingPlane > Parsed func RemoveClippingPlane > Parsed func RemoveAllClippingPlanes > Parsed func SetClippingPlanes > Parsed func ShallowCopy > Parsed func GetScalars > Parsed func AddConsumer > Parsed func RemoveConsumer > Parsed func GetConsumer > Parsed func IsConsumer > Parsed func vtkAbstractMapper > Parsed func vtkAbstractMapper > Parsed func vtkAbstractMapper > Converted operator >Error opening output file 0 >make[3]: *** [/home/datatmp/VTK_CVS/VTK/java/vtk/vtkAbstractMapper.java] >Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Common] Error 2 >make: *** [default_target] Error 2 > >_________________________________________________________________ >Chat with friends online, try MSN Messenger: http://messenger.msn.com > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From elwo73 at hotmail.com Mon Apr 8 16:44:56 2002 From: elwo73 at hotmail.com (jon n) Date: Mon, 08 Apr 2002 13:44:56 -0700 Subject: [vtkusers] Trouble with Compiling Java Extensions Message-ID: i've had lots of trouble with shared libraries in 3.03, 2.96 has worked fine for the rest of vtk... >From: "Lemay, Odile" >To: 'jon n' >Subject: RE: [vtkusers] Trouble with Compiling Java Extensions >Date: Mon, 8 Apr 2002 16:35:14 -0400 > > >2.96 is not the latest version of gcc. >There is a 3.0.3 version. > >I didn't know Mandrake Linux 8.1. > > > >Odile > >-----Original Message----- >From: jon n [mailto:elwo73 at hotmail.com] >Sent: Monday, April 08, 2002 4:29 PM >To: Odile.Lemay at nrc.ca >Cc: vtkusers at public.kitware.com >Subject: RE: [vtkusers] Trouble with Compiling Java Extensions > > >Mandrake Linux 8.1 / GCC 2.96 > > > >From: "Lemay, Odile" > >To: 'jon n' > >Subject: RE: [vtkusers] Trouble with Compiling Java Extensions > >Date: Mon, 8 Apr 2002 16:05:44 -0400 > > > > > >Which platform you work on ? > > > >I work on pc with Microsoft C++ 6 for compiling the > >libraries and JBuilder 6 to make the connection > >between Java and the .dll. > > > >I was not so simple. > > > >Odile > > > >-----Original Message----- > >From: jon n [mailto:elwo73 at hotmail.com] > >Sent: Monday, April 08, 2002 3:53 PM > >To: vtkusers at public.kitware.com > >Subject: [vtkusers] Trouble with Compiling Java Extensions > > > > > >Hi, I'm attempting to compile the Java stuff and having a little trouble. > >First, it couldn't find jni.h because our Java is installed in a weird > >location, so I added the write paths to the list of paths in Find-JNI in > >CMake. So that worked, but now when the make begins creating the actual > >.java files its failing without really giving a reason. Is there another > >thing which needs to be set somewhere about Java compiling? > > > >/home/datatmp/VTK_CVS/VTK/bin/./vtkParseJava > >/home/datatmp/VTK_CVS/VTK/Common/vt > >kAbstractMapper.h /home/datatmp/VTK_CVS/VTK/Wrapping/hints 0 > >/home/datatmp/VTK_C > >VS/VTK/java/vtk/vtkAbstractMapper.java > > Parsed func PrintSelf > > Parsed func GetMTime > > Parsed func ReleaseGraphicsResources > > Parsed func AddClippingPlane > > Parsed func RemoveClippingPlane > > Parsed func RemoveAllClippingPlanes > > Parsed func SetClippingPlanes > > Parsed func ShallowCopy > > Parsed func GetScalars > > Parsed func AddConsumer > > Parsed func RemoveConsumer > > Parsed func GetConsumer > > Parsed func IsConsumer > > Parsed func vtkAbstractMapper > > Parsed func vtkAbstractMapper > > Parsed func vtkAbstractMapper > > Converted operator > >Error opening output file 0 > >make[3]: *** [/home/datatmp/VTK_CVS/VTK/java/vtk/vtkAbstractMapper.java] > >Error 1 > >make[2]: *** [default_target] Error 2 > >make[1]: *** [default_target_Common] Error 2 > >make: *** [default_target] Error 2 > > > >_________________________________________________________________ > >Chat with friends online, try MSN Messenger: http://messenger.msn.com > > > >_______________________________________________ > >This is the private VTK discussion list. > >Please keep messages on-topic. Check the FAQ at: > > > >Follow this link to subscribe/unsubscribe: > >http://public.kitware.com/mailman/listinfo/vtkusers > > > > >_________________________________________________________________ >Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From heiland at ncsa.uiuc.edu Mon Apr 8 17:28:22 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Mon, 8 Apr 2002 16:28:22 -0500 Subject: [vtkusers] SetScalars of SG from Field In-Reply-To: "Randy Heiland" "[vtkusers] SetScalars of SG from Field" (Apr 8, 11:45am) References: <1020408114553.ZM29173@kelgia.ncsa.uiuc.edu> Message-ID: <1020408162822.ZM6482@kelgia.ncsa.uiuc.edu> On Apr 8, 11:45am, Randy Heiland wrote: > Subject: [vtkusers] SetScalars of SG from Field > I'm trying to update scalars in a struct grid from a FIELD file, but the > results don't get re-rendered properly. What am I missing? > Sorry to be a pest, but I'm feeling some pressure to figure out why this doesn't work as I expect. To better explain what I meant above -- by not getting "re-rendered properly", I mean it simply doesn't change (in spite of the fact that the scalar range changes). The rectangle is colored red->blue, left->right. However, replacing the scalars with the field array should re-render it blue->red, bottom->top -- but it doesn't. This time I'll send the corresponding Tcl script. Can someone confirm/deny my results? thanks, Randy ----------------------------------------- package require vtk package require vtkinteraction vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin #-------------------------------------------------- vtkStructuredGridReader sgr sgr SetFileName "sg.vtk" sgr Update set sg [sgr GetOutput] #srange sgr GetOutput GetPointData GetScalars GetRange #put 'srange = ', [sgr GetOutput] GetPointData GetScalars GetRange #puts 'srange = ', sg GetPointData GetScalars GetRange #---------------------- vtkDataSetMapper mapper mapper SetInput [sgr GetOutput] vtkActor actor actor SetMapper mapper ren1 AddActor actor renWin Render vtkWindowToImageFilter w2if w2if SetInput renWin vtkPNMWriter pnmWriter pnmWriter SetInput [w2if GetOutput] pnmWriter SetFileName "sg1.pnm" pnmWriter Write #------------------------------- vtkDataObjectReader dor dor DebugOn dor SetFileName "field.vtk" dor Update vtkFloatArray so #set max [lindex [[[[rf GetOutput] GetPointData] GetArray $scalar] GetRange 0] 1] set so [[[dor GetOutput] GetFieldData] GetArray 0] # eval ?? [$sg GetPointData] SetScalars so # does this help? [$sg GetPointData] Modified $sg Update #set srange sg GetPointData GetScalars GetRange #puts 'srange = ' srange actor Modified renWin Render pnmWriter SetFileName "sg2.pnm" pnmWriter Write iren Initialize iren AddObserver UserEvent {wm deiconify .vtkInteract} # prevent the tk window from showing up then start the event loop wm withdraw . ------------- sg.vtk: # vtk DataFile Version 1.0 title line ASCII DATASET STRUCTURED_GRID DIMENSIONS 3 2 1 POINTS 6 float 0.0 0.0 0.0 1.0 0.0 0.0 2.0 0.0 0.0 0.0 1.0 0.0 1.0 1.0 0.0 2.0 1.0 0.0 POINT_DATA 6 SCALARS foo float LOOKUP_TABLE default 0.0 1.0 2.0 0.0 1.0 2.0 ----------- field.vtk: # vtk DataFile Version 1.0 dummy field data ASCII FIELD all 1 temp 1 6 float 0 0 0 1 1 1 From svong at email.arc.nasa.gov Mon Apr 8 19:16:55 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Mon, 08 Apr 2002 16:16:55 -0700 Subject: [vtkusers] fuzziness on contour plot Message-ID: <3CB224E7.D234124C@email.arc.nasa.gov> Hi everyone, I used the following example code that comes with vtk to test on my data file. (see attachment. I'm not sure if I will attach it correctly. So if not, those who have matlab and could help me, my data file just came from running the following in matlab: x=[0.0:0.1:6.28]; y1=sin(x); y2=cos(x); z=y1'*y2;) The data in variable z forms the data of my 'zdata.vtk' that gets passed to vtkStructuredPointsReader. == This is the header added to the front of the data to make it a vtk file:=== # vtk DataFile Version 2.0 2D scalar data ASCII DATASET STRUCTURED_POINTS DIMENSIONS 63 63 1 ORIGIN 0.000 0.000 0.000 SPACING 1.000 1.000 1.000 POINT_DATA 3969 SCALARS scalars float LOOKUP_TABLE default ========================================================================== == The example code:========================================================= #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkLookupTable.h" #include "vtkStructuredPointsReader.h" #include "vtkImageDataGeometryFilter.h" #include "vtkWarpScalar.h" #include "vtkCastToConcrete.h" #include "vtkPolyDataNormals.h" #include "vtkPolyDataMapper.h" #include "vtkActor.h" main() { vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin-> AddRenderer( ren1); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren-> SetRenderWindow (renWin); vtkLookupTable *lut = vtkLookupTable::New(); lut-> SetHueRange ( 0.66667, 0.0); lut-> Build(); vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New(); reader-> SetFileName ("zdata.vtk"); reader-> Update(); vtkImageDataGeometryFilter *plane = vtkImageDataGeometryFilter::New(); plane-> SetInput (reader-> GetOutput()); vtkWarpScalar *warp = vtkWarpScalar::New(); warp ->SetInput (plane-> GetOutput()); warp-> UseNormalOn(); warp-> SetNormal (0.0, 0.0, 1); warp-> SetScaleFactor( 1); vtkCastToConcrete *caster = vtkCastToConcrete::New(); caster-> SetInput (warp-> GetOutput()); vtkPolyDataNormals *normals = vtkPolyDataNormals::New(); normals-> SetInput (caster-> GetPolyDataOutput()); normals-> SetFeatureAngle( 60); vtkPolyDataMapper *planeMapper = vtkPolyDataMapper::New(); planeMapper-> SetInput (normals ->GetOutput()); planeMapper-> SetLookupTable (lut); planeMapper-> SetScalarRange (reader-> GetOutput()->GetScalarRange()); vtkActor *dataActor = vtkActor::New(); dataActor-> SetMapper( planeMapper); ren1-> AddActor (dataActor); ren1-> SetBackground( 1, 1, 1); renWin-> SetSize( 500, 500); iren->Start(); } ========================================================================== My question is: If you run matlab using surf(z) or contourf(z), you can see clear gradation of colors for the contour plot. But when I run the vtk codes, the contour plot comes out blurry. Is there a way to achieve the same kind of gradation of colors as in matlab? Thanks in advance, Shwuping Vong -------------- next part -------------- # vtk DataFile Version 2.0 2D scalar data ASCII DATASET STRUCTURED_POINTS DIMENSIONS 63 63 1 ORIGIN 0.000 0.000 0.000 SPACING 1.000 1.000 1.000 POINT_DATA 3969 SCALARS scalars float LOOKUP_TABLE default 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 0.0000000e+00 9.9833417e-02 9.9334665e-02 9.7843395e-02 9.5374506e-02 9.1952666e-02 8.7612066e-02 8.2396074e-02 7.6356809e-02 6.9554611e-02 6.2057447e-02 5.3940225e-02 4.5284051e-02 3.6175413e-02 2.6705322e-02 1.6968401e-02 7.0619365e-03 -2.9150881e-03 -1.2862986e-02 -2.2682361e-02 -3.2275102e-02 -4.1545361e-02 -5.0400512e-02 -5.8752077e-02 -6.6516612e-02 -7.3616534e-02 -7.9980904e-02 -8.5546132e-02 -9.0256611e-02 -9.4065276e-02 -9.6934071e-02 -9.8834333e-02 -9.9747076e-02 -9.9663178e-02 -9.8583479e-02 -9.6518767e-02 -9.3489671e-02 -8.9526457e-02 -8.4668724e-02 -7.8965009e-02 -7.2472302e-02 -6.5255476e-02 -5.7386639e-02 -4.8944413e-02 -4.0013151e-02 -3.0682090e-02 -2.1044465e-02 -1.1196570e-02 -1.2368026e-03 8.7353225e-03 1.8620167e-02 2.8318965e-02 3.7734809e-02 4.6773620e-02 5.5345084e-02 6.3363558e-02 7.0748925e-02 7.7427391e-02 8.3332229e-02 8.8404439e-02 9.2593341e-02 9.5857080e-02 9.8163048e-02 9.9488202e-02 1.9866933e-01 1.9767681e-01 1.9470917e-01 1.8979606e-01 1.8298657e-01 1.7434874e-01 1.6396887e-01 1.5195069e-01 1.3841426e-01 1.2349484e-01 1.0734150e-01 9.0115638e-02 7.1989373e-02 5.3143813e-02 3.3767259e-02 1.4053313e-02 -5.8010496e-03 -2.5597449e-02 -4.5138088e-02 -6.4227722e-02 -8.2675614e-02 -1.0029744e-01 -1.1691712e-01 -1.3236861e-01 -1.4649752e-01 -1.5916267e-01 -1.7023752e-01 -1.7961141e-01 -1.8719068e-01 -1.9289961e-01 -1.9668115e-01 -1.9849751e-01 -1.9833056e-01 -1.9618195e-01 -1.9207315e-01 -1.8604522e-01 -1.7815839e-01 -1.6849147e-01 -1.5714103e-01 -1.4422049e-01 -1.2985894e-01 -1.1419989e-01 -9.7399789e-02 -7.9626503e-02 -6.1057616e-02 -4.1878660e-02 -2.2281267e-02 -2.4612475e-03 1.7383364e-02 3.7054288e-02 5.6354977e-02 7.5092585e-02 9.3079894e-02 1.1013718e-01 1.2609401e-01 1.4079095e-01 1.5408115e-01 1.6583183e-01 1.7592557e-01 1.8426152e-01 1.9075639e-01 1.9534528e-01 1.9798235e-01 2.9552021e-01 2.9404384e-01 2.8962948e-01 2.8232124e-01 2.7219214e-01 2.5934338e-01 2.4390335e-01 2.2602632e-01 2.0589091e-01 1.8369831e-01 1.5967025e-01 1.3404682e-01 1.0708404e-01 7.9051309e-02 5.0228725e-02 2.0904272e-02 -8.6290489e-03 -3.8076152e-02 -6.7142810e-02 -9.5538600e-02 -1.2297980e-01 -1.4919223e-01 -1.7391397e-01 -1.9689803e-01 -2.1791474e-01 -2.3675413e-01 -2.5322794e-01 -2.6717159e-01 -2.7844574e-01 -2.8693776e-01 -2.9256279e-01 -2.9526463e-01 -2.9501628e-01 -2.9182023e-01 -2.8570840e-01 -2.7674187e-01 -2.6501023e-01 -2.5063070e-01 -2.3374694e-01 -2.1452766e-01 -1.9316490e-01 -1.6987209e-01 -1.4488198e-01 -1.1844425e-01 -9.0823073e-02 -6.2294418e-02 -3.3143338e-02 -3.6611004e-03 2.5857718e-02 5.5118174e-02 8.3827908e-02 1.1170006e-01 1.3845614e-01 1.6382882e-01 1.8756457e-01 2.0942624e-01 2.2919539e-01 2.4667449e-01 2.6168891e-01 2.7408862e-01 2.8374972e-01 2.9057569e-01 2.9449833e-01 3.8941834e-01 3.8747287e-01 3.8165590e-01 3.7202555e-01 3.5867805e-01 3.4174675e-01 3.2140083e-01 2.9784358e-01 2.7131037e-01 2.4206632e-01 2.1040363e-01 1.7663865e-01 1.4110876e-01 1.0416895e-01 6.6188323e-02 2.7546364e-02 -1.1370830e-02 -5.0174409e-02 -8.8476663e-02 -1.2589489e-01 -1.6205521e-01 -1.9659633e-01 -2.2917313e-01 -2.5946010e-01 -2.8715464e-01 -3.1198002e-01 -3.3368820e-01 -3.5206227e-01 -3.6691866e-01 -3.7810892e-01 -3.8552124e-01 -3.8908155e-01 -3.8875430e-01 -3.8454274e-01 -3.7648895e-01 -3.6467341e-01 -3.4921418e-01 -3.3026571e-01 -3.0801734e-01 -2.8269135e-01 -2.5454082e-01 -2.2384699e-01 -1.9091656e-01 -1.5607855e-01 -1.1968106e-01 -8.2087751e-02 -4.3674251e-02 -4.8243728e-03 3.4073709e-02 7.2631338e-02 1.1046326e-01 1.4719147e-01 1.8244899e-01 2.1588354e-01 2.4716105e-01 2.7596901e-01 3.0201958e-01 3.2505247e-01 3.4483754e-01 3.6117711e-01 3.7390792e-01 3.8290277e-01 3.8807177e-01 4.7942554e-01 4.7703041e-01 4.6986895e-01 4.5801271e-01 4.4158016e-01 4.2073549e-01 3.9568697e-01 3.6668488e-01 3.3401899e-01 2.9801569e-01 2.5903472e-01 2.1746556e-01 1.7372356e-01 1.2824577e-01 8.1486589e-02 3.3913221e-02 -1.3998997e-02 -6.1771341e-02 -1.0892649e-01 -1.5499327e-01 -1.9951142e-01 -2.4203612e-01 -2.8214247e-01 -3.1942974e-01 -3.5352538e-01 -3.8408871e-01 -4.1081435e-01 -4.3343527e-01 -4.5172545e-01 -4.6550214e-01 -4.7462769e-01 -4.7901091e-01 -4.7860801e-01 -4.7342302e-01 -4.6350774e-01 -4.4896125e-01 -4.2992889e-01 -4.0660081e-01 -3.7921012e-01 -3.4803049e-01 -3.1337344e-01 -2.7558528e-01 -2.3504356e-01 -1.9215336e-01 -1.4734323e-01 -1.0106089e-01 -5.3768786e-02 -5.9394417e-03 4.1949247e-02 8.9418793e-02 1.3599490e-01 1.8121218e-01 2.2461886e-01 2.6578121e-01 3.0428797e-01 3.3975439e-01 3.7182609e-01 4.0018263e-01 4.2454067e-01 4.4465685e-01 4.6033016e-01 4.7140400e-01 4.7776773e-01 5.6464247e-01 5.6182161e-01 5.5338722e-01 5.3942356e-01 5.2007016e-01 4.9552039e-01 4.6601954e-01 4.3186238e-01 3.9339020e-01 3.5098739e-01 3.0507763e-01 2.5611964e-01 2.0460258e-01 1.5104120e-01 9.5970668e-02 3.9941229e-02 -1.6487290e-02 -7.2751074e-02 -1.2828795e-01 -1.8254302e-01 -2.3497418e-01 -2.8505755e-01 -3.3229273e-01 -3.7620774e-01 -4.1636381e-01 -4.5235971e-01 -4.8383579e-01 -5.1047753e-01 -5.3201875e-01 -5.4824422e-01 -5.5899181e-01 -5.6415414e-01 -5.6367963e-01 -5.5757302e-01 -5.4589532e-01 -5.2876322e-01 -5.0634789e-01 -4.7887330e-01 -4.4661397e-01 -4.0989221e-01 -3.6907495e-01 -3.2457001e-01 -2.7682208e-01 -2.2630824e-01 -1.7353319e-01 -1.1902426e-01 -6.3326080e-02 -6.9951656e-03 4.9405642e-02 1.0531281e-01 1.6016772e-01 2.1342229e-01 2.6454441e-01 3.1302330e-01 3.5837456e-01 4.0014505e-01 4.3791744e-01 4.7131429e-01 5.0000193e-01 5.2369372e-01 5.4215293e-01 5.5519512e-01 5.6268999e-01 6.4421769e-01 6.4099928e-01 6.3137622e-01 6.1544466e-01 5.9336378e-01 5.6535421e-01 5.3169580e-01 4.9272486e-01 4.4883078e-01 4.0045214e-01 3.4807230e-01 2.9221464e-01 2.3343727e-01 1.7232748e-01 1.0949584e-01 4.5570156e-02 -1.8810849e-02 -8.3003902e-02 -1.4636761e-01 -2.0826886e-01 -2.6808915e-01 -3.2523079e-01 -3.7912283e-01 -4.2922680e-01 -4.7504207e-01 -5.1611089e-01 -5.5202289e-01 -5.8241926e-01 -6.0699630e-01 -6.2550842e-01 -6.3777068e-01 -6.4366054e-01 -6.4311915e-01 -6.3615193e-01 -6.2282850e-01 -6.0328196e-01 -5.7770763e-01 -5.4636104e-01 -5.0955539e-01 -4.6765843e-01 -4.2108878e-01 -3.7031175e-01 -3.1583469e-01 -2.5820192e-01 -1.9798927e-01 -1.3579838e-01 -7.2250642e-02 -7.9809961e-03 5.6368393e-02 1.2015457e-01 1.8274020e-01 2.4349995e-01 3.0182673e-01 3.5713775e-01 4.0888038e-01 4.5653760e-01 4.9963326e-01 5.3773674e-01 5.7046734e-01 5.9749801e-01 6.1855868e-01 6.3343892e-01 6.4199004e-01 7.1735609e-01 7.1377230e-01 7.0305673e-01 6.8531645e-01 6.6072871e-01 6.2953920e-01 5.9205953e-01 5.4866420e-01 4.9978680e-01 4.4591570e-01 3.8758915e-01 3.2538994e-01 2.5993954e-01 1.9189191e-01 1.2192697e-01 5.0743762e-02 -2.0946455e-02 -9.2427383e-02 -1.6298481e-01 -2.3191374e-01 -2.9852547e-01 -3.6215443e-01 -4.2216486e-01 -4.7795716e-01 -5.2897387e-01 -5.7470525e-01 -6.1469437e-01 -6.4854166e-01 -6.7590894e-01 -6.9652275e-01 -7.1017715e-01 -7.1673569e-01 -7.1613284e-01 -7.0837463e-01 -6.9353857e-01 -6.7177291e-01 -6.4329511e-01 -6.0838972e-01 -5.6740551e-01 -5.2075196e-01 -4.6889523e-01 -4.1235346e-01 -3.5169159e-01 -2.8751573e-01 -2.2046711e-01 -1.5121565e-01 -8.0453298e-02 -8.8870832e-03 6.2767929e-02 1.3379578e-01 2.0348680e-01 2.7114464e-01 3.3609329e-01 3.9768381e-01 4.5530080e-01 5.0836858e-01 5.5635691e-01 5.9878630e-01 6.3523282e-01 6.6533230e-01 6.8878400e-01 7.0535360e-01 7.1487554e-01 7.8332691e-01 7.7941354e-01 7.6771252e-01 7.4834078e-01 7.2149186e-01 6.8743404e-01 6.4650760e-01 5.9912147e-01 5.4574911e-01 4.8692382e-01 4.2323334e-01 3.5531405e-01 2.8384458e-01 2.0953903e-01 1.3313984e-01 5.5410354e-02 -2.2872772e-02 -1.0092736e-01 -1.7797351e-01 -2.5324142e-01 -3.2597902e-01 -3.9545954e-01 -4.6098876e-01 -5.2191194e-01 -5.7762034e-01 -6.2755735e-01 -6.7122402e-01 -7.0818404e-01 -7.3806811e-01 -7.6057766e-01 -7.7548776e-01 -7.8264945e-01 -7.8199116e-01 -7.7351948e-01 -7.5731904e-01 -7.3355172e-01 -7.0245500e-01 -6.6433958e-01 -6.1958629e-01 -5.6864231e-01 -5.1201664e-01 -4.5027507e-01 -3.8403449e-01 -3.1395678e-01 -2.4074211e-01 -1.6512202e-01 -8.7852092e-02 -9.7043735e-03 6.8540308e-02 1.4610016e-01 2.2220022e-01 2.9608014e-01 3.6700172e-01 4.3425634e-01 4.9717201e-01 5.5512010e-01 6.0752162e-01 6.5385299e-01 6.9365127e-01 7.2651881e-01 7.5212722e-01 7.7022063e-01 7.8061824e-01 8.4147098e-01 8.3726713e-01 8.2469759e-01 8.0388794e-01 7.7504610e-01 7.3846026e-01 6.9449597e-01 6.4359251e-01 5.8625848e-01 5.2306675e-01 4.5464871e-01 3.8168798e-01 3.0491354e-01 2.2509250e-01 1.4302242e-01 5.9523303e-02 -2.4570551e-02 -1.0841890e-01 -1.9118397e-01 -2.7203879e-01 -3.5017549e-01 -4.2481335e-01 -4.9520661e-01 -5.6065194e-01 -6.2049542e-01 -6.7413911e-01 -7.2104702e-01 -7.6075048e-01 -7.9285276e-01 -8.1703312e-01 -8.3304996e-01 -8.4074324e-01 -8.4003609e-01 -8.3093557e-01 -8.1353263e-01 -7.8800113e-01 -7.5459619e-01 -7.1365157e-01 -6.6557638e-01 -6.1085097e-01 -5.5002214e-01 -4.8369767e-01 -4.1254026e-01 -3.3726087e-01 -2.5861169e-01 -1.7737855e-01 -9.4373097e-02 -1.0424701e-02 7.3627856e-02 1.5694475e-01 2.3869350e-01 3.1805730e-01 3.9424318e-01 4.6648992e-01 5.3407564e-01 5.9632505e-01 6.5261618e-01 7.0238659e-01 7.4513898e-01 7.8044619e-01 8.0795544e-01 8.2739186e-01 8.3856126e-01 8.9120736e-01 8.8675504e-01 8.7344255e-01 8.5140291e-01 8.2085634e-01 7.8210804e-01 7.3554517e-01 6.8163299e-01 6.2091015e-01 5.5398338e-01 4.8152139e-01 4.0424820e-01 3.2293590e-01 2.3839692e-01 1.5147597e-01 6.3041515e-02 -2.6022829e-02 -1.1482716e-01 -2.0248418e-01 -2.8811804e-01 -3.7087312e-01 -4.4992256e-01 -5.2447653e-01 -5.9379009e-01 -6.5717071e-01 -7.1398509e-01 -7.6366556e-01 -8.0571575e-01 -8.3971548e-01 -8.6532506e-01 -8.8228860e-01 -8.9043660e-01 -8.8968765e-01 -8.8004924e-01 -8.6161766e-01 -8.3457709e-01 -7.9919770e-01 -7.5583299e-01 -7.0491625e-01 -6.4695621e-01 -5.8253201e-01 -5.1228733e-01 -4.3692405e-01 -3.5719517e-01 -2.7389732e-01 -1.8786277e-01 -9.9951157e-02 -1.1040868e-02 7.7979738e-02 1.6622120e-01 2.5280183e-01 3.3685655e-01 4.1754551e-01 4.9406249e-01 5.6564296e-01 6.3157172e-01 6.9119002e-01 7.4390218e-01 7.8918151e-01 8.2657560e-01 8.5571083e-01 8.7629607e-01 8.8812565e-01 9.3203909e-01 9.2738277e-01 9.1346036e-01 8.9041095e-01 8.5846485e-01 8.1794125e-01 7.6924505e-01 7.1286281e-01 6.4935788e-01 5.7936479e-01 5.0358287e-01 4.2276931e-01 3.3773159e-01 2.4931936e-01 1.5841602e-01 6.5929837e-02 -2.7215096e-02 -1.2008810e-01 -2.1176123e-01 -3.0131851e-01 -3.8786512e-01 -4.7053630e-01 -5.4850604e-01 -6.2099529e-01 -6.8727976e-01 -7.4669716e-01 -7.9865381e-01 -8.4263057e-01 -8.7818805e-01 -9.0497096e-01 -9.2271170e-01 -9.3123301e-01 -9.3044975e-01 -9.2036974e-01 -9.0109370e-01 -8.7281423e-01 -8.3581389e-01 -7.9046238e-01 -7.3721282e-01 -6.7659728e-01 -6.0922140e-01 -5.3575839e-01 -4.5694225e-01 -3.7356049e-01 -2.8644625e-01 -1.9646992e-01 -1.0453054e-01 -1.1546719e-02 8.1552473e-02 1.7383682e-01 2.6438424e-01 3.5229003e-01 4.3667585e-01 5.1669855e-01 5.9155857e-01 6.6050793e-01 7.2285771e-01 7.7798494e-01 8.2533880e-01 8.6444615e-01 8.9491624e-01 9.1644462e-01 9.2881619e-01 9.6355819e-01 9.5874441e-01 9.4435117e-01 9.2052229e-01 8.8749586e-01 8.4560186e-01 7.9525889e-01 7.3696995e-01 6.7131745e-01 5.9895737e-01 5.2061271e-01 4.3706626e-01 3.4915278e-01 2.5775069e-01 1.6377323e-01 6.8159410e-02 -2.8135439e-02 -1.2414917e-01 -2.1892244e-01 -3.1150831e-01 -4.0098169e-01 -4.8644860e-01 -5.6705507e-01 -6.4199571e-01 -7.1052175e-01 -7.7194849e-01 -8.2566217e-01 -8.7112611e-01 -9.0788605e-01 -9.3557469e-01 -9.5391537e-01 -9.6272485e-01 -9.6191510e-01 -9.5149422e-01 -9.3156631e-01 -9.0233051e-01 -8.6407891e-01 -8.1719373e-01 -7.6214341e-01 -6.9947801e-01 -6.2982366e-01 -5.5387632e-01 -4.7239483e-01 -3.8619332e-01 -2.9613310e-01 -2.0311402e-01 -1.0806549e-01 -1.1937198e-02 8.4310362e-02 1.7971552e-01 2.7332502e-01 3.6420355e-01 4.5144307e-01 5.3417193e-01 6.1156352e-01 6.8284456e-01 7.4730285e-01 8.0429434e-01 8.5324958e-01 8.9367943e-01 9.2517994e-01 9.4743635e-01 9.6022629e-01 9.8544973e-01 9.8052659e-01 9.6580634e-01 9.4143609e-01 9.0765931e-01 8.6481350e-01 8.1332676e-01 7.5371353e-01 6.8656944e-01 6.1256538e-01 5.3244076e-01 4.4699618e-01 3.5708535e-01 2.6360665e-01 1.6749408e-01 6.9707956e-02 -2.8774661e-02 -1.2696977e-01 -2.2389624e-01 -3.1858562e-01 -4.1009179e-01 -4.9750046e-01 -5.7993827e-01 -6.5658153e-01 -7.2666444e-01 -7.8948676e-01 -8.4442079e-01 -8.9091765e-01 -9.2851275e-01 -9.5683046e-01 -9.7558784e-01 -9.8459746e-01 -9.8376932e-01 -9.7311167e-01 -9.5273102e-01 -9.2283099e-01 -8.8371034e-01 -8.3575995e-01 -7.7945892e-01 -7.1536979e-01 -6.4413293e-01 -5.6646010e-01 -4.8312739e-01 -3.9496744e-01 -3.0286109e-01 -2.0772866e-01 -1.1052068e-01 -1.2208405e-02 8.6225850e-02 1.8379856e-01 2.7953482e-01 3.7247806e-01 4.6169963e-01 5.4630804e-01 6.2545792e-01 6.9835844e-01 7.6428119e-01 8.2256749e-01 8.7263497e-01 9.1398337e-01 9.4619955e-01 9.6896162e-01 9.8204214e-01 9.9749499e-01 9.9251167e-01 9.7761150e-01 9.5294336e-01 9.1875372e-01 8.7538421e-01 8.2326814e-01 7.6292625e-01 6.9496145e-01 6.2005283e-01 5.3894884e-01 4.5245986e-01 3.6145004e-01 2.6682874e-01 1.6954137e-01 7.0560004e-02 -2.9126377e-02 -1.2852174e-01 -2.2663295e-01 -3.2247972e-01 -4.1510438e-01 -5.0358146e-01 -5.8702691e-01 -6.6460699e-01 -7.3554653e-01 -7.9913674e-01 -8.5474224e-01 -9.0180743e-01 -9.3986206e-01 -9.6852590e-01 -9.8751255e-01 -9.9663230e-01 -9.9579403e-01 -9.8500612e-01 -9.6437635e-01 -9.3411085e-01 -8.9451202e-01 -8.4597553e-01 -7.8898633e-01 -7.2411383e-01 -6.5200623e-01 -5.7338400e-01 -4.8903271e-01 -3.9979516e-01 -3.0656300e-01 -2.1026775e-01 -1.1187158e-01 -1.2357630e-02 8.7279797e-02 1.8604515e-01 2.8295161e-01 3.7703090e-01 4.6734303e-01 5.5298562e-01 6.3310296e-01 7.0689455e-01 7.7362308e-01 8.3262182e-01 8.8330128e-01 9.2515508e-01 9.5776505e-01 9.8080534e-01 9.9404575e-01 9.9957360e-01 9.9457990e-01 9.7964868e-01 9.5492914e-01 9.2066826e-01 8.7720836e-01 8.2498369e-01 7.6451606e-01 6.9640964e-01 6.2134492e-01 5.4007192e-01 4.5340271e-01 3.6220325e-01 2.6738477e-01 1.6989467e-01 7.0707040e-02 -2.9187072e-02 -1.2878956e-01 -2.2710522e-01 -3.2315172e-01 -4.1596939e-01 -5.0463084e-01 -5.8825018e-01 -6.6599192e-01 -7.3707929e-01 -8.0080201e-01 -8.5652338e-01 -9.0368665e-01 -9.4182058e-01 -9.7054415e-01 -9.8957037e-01 -9.9870912e-01 -9.9786911e-01 -9.8705871e-01 -9.6638595e-01 -9.3605739e-01 -8.9637604e-01 -8.4773840e-01 -7.9063045e-01 -7.2562277e-01 -6.5336491e-01 -5.7457884e-01 -4.9005178e-01 -4.0062827e-01 -3.0720182e-01 -2.1070592e-01 -1.1210471e-01 -1.2383381e-02 8.7461674e-02 1.8643284e-01 2.8354123e-01 3.7781657e-01 4.6831690e-01 5.5413795e-01 6.3442224e-01 7.0836760e-01 7.7523518e-01 8.3435687e-01 8.8514193e-01 9.2708296e-01 9.5976087e-01 9.8284918e-01 9.9611717e-01 9.9166481e-01 9.8671062e-01 9.7189754e-01 9.4737358e-01 9.1338378e-01 8.7026774e-01 8.1845629e-01 7.5846708e-01 6.9089953e-01 6.1642873e-01 5.3579878e-01 4.4981531e-01 3.5933743e-01 2.6526918e-01 1.6855043e-01 7.0147594e-02 -2.8956139e-02 -1.2777055e-01 -2.2530832e-01 -3.2059489e-01 -4.1267817e-01 -5.0063812e-01 -5.8359585e-01 -6.6072248e-01 -7.3124740e-01 -7.9446593e-01 -8.4974642e-01 -8.9653653e-01 -9.3436874e-01 -9.6286504e-01 -9.8174072e-01 -9.9080717e-01 -9.8997380e-01 -9.7924894e-01 -9.5873975e-01 -9.2865114e-01 -8.8928376e-01 -8.4103096e-01 -7.8437485e-01 -7.1988152e-01 -6.4819538e-01 -5.7003268e-01 -4.8617440e-01 -3.9745844e-01 -3.0477119e-01 -2.0903878e-01 -1.1121771e-01 -1.2285402e-02 8.6769663e-02 1.8495775e-01 2.8129781e-01 3.7482723e-01 4.6461150e-01 5.4975352e-01 6.2940259e-01 7.0276288e-01 7.6910139e-01 8.2775530e-01 8.7813854e-01 9.1974772e-01 9.5216709e-01 9.7507271e-01 9.8823573e-01 9.7384763e-01 9.6898245e-01 9.5443551e-01 9.3035218e-01 8.9697307e-01 8.5463170e-01 8.0375113e-01 7.4483975e-01 6.7848618e-01 6.0535339e-01 5.2617212e-01 4.4173351e-01 3.5288124e-01 2.6050310e-01 1.6552210e-01 6.8887256e-02 -2.8435886e-02 -1.2547491e-01 -2.2126022e-01 -3.1483478e-01 -4.0526361e-01 -4.9164318e-01 -5.7311042e-01 -6.4885132e-01 -7.1810912e-01 -7.8019181e-01 -8.3447908e-01 -8.8042851e-01 -9.1758099e-01 -9.4556531e-01 -9.6410185e-01 -9.7300540e-01 -9.7218700e-01 -9.6165483e-01 -9.4151413e-01 -9.1196613e-01 -8.7330606e-01 -8.2592021e-01 -7.7028203e-01 -7.0694745e-01 -6.3654929e-01 -5.5979094e-01 -4.7743934e-01 -3.9031732e-01 -2.9929539e-01 -2.0528299e-01 -1.0921947e-01 -1.2064671e-02 8.5210678e-02 1.8163463e-01 2.7624375e-01 3.6809273e-01 4.5626385e-01 5.3987613e-01 6.1809415e-01 6.9013638e-01 7.5528299e-01 8.1288307e-01 8.6236108e-01 9.0322267e-01 9.3505956e-01 9.5755364e-01 9.7048016e-01 9.4630009e-01 9.4157253e-01 9.2743709e-01 9.0403500e-01 8.7160010e-01 8.3045646e-01 7.8101516e-01 7.2377023e-01 6.5929362e-01 5.8822957e-01 5.1128812e-01 4.2923805e-01 3.4289917e-01 2.5313416e-01 1.6083992e-01 6.6938620e-02 -2.7631511e-02 -1.2192556e-01 -2.1500136e-01 -3.0592895e-01 -3.9379979e-01 -4.7773591e-01 -5.5689866e-01 -6.3049706e-01 -6.9779574e-01 -7.5812227e-01 -8.1087390e-01 -8.5552355e-01 -8.9162508e-01 -9.1881780e-01 -9.3682999e-01 -9.4548168e-01 -9.4468643e-01 -9.3445219e-01 -9.1488121e-01 -8.8616905e-01 -8.4860257e-01 -8.0255713e-01 -7.4849282e-01 -6.8694980e-01 -6.1854302e-01 -5.4395595e-01 -4.6393386e-01 -3.7927629e-01 -2.9082912e-01 -1.9947608e-01 -1.0612995e-01 -1.1723393e-02 8.2800296e-02 1.7649667e-01 2.6842955e-01 3.5768037e-01 4.4335737e-01 5.2460448e-01 6.0060992e-01 6.7061427e-01 7.3391806e-01 7.8988878e-01 8.3796720e-01 8.7767292e-01 9.0860923e-01 9.3046701e-01 9.4302787e-01 9.0929743e-01 9.0475473e-01 8.9117202e-01 8.6868501e-01 8.3751839e-01 7.9798357e-01 7.5047555e-01 6.9546903e-01 6.3351362e-01 5.6522834e-01 4.9129550e-01 4.1245379e-01 3.2949097e-01 2.4323600e-01 1.5455069e-01 6.4321155e-02 -2.6551050e-02 -1.1715797e-01 -2.0659428e-01 -2.9396637e-01 -3.7840125e-01 -4.5905526e-01 -5.3512255e-01 -6.0584307e-01 -6.7051021e-01 -7.2847783e-01 -7.7916674e-01 -8.2207047e-01 -8.5676035e-01 -8.8288976e-01 -9.0019763e-01 -9.0851102e-01 -9.0774687e-01 -8.9791281e-01 -8.7910711e-01 -8.5151766e-01 -8.1542012e-01 -7.7117518e-01 -7.1922491e-01 -6.6008838e-01 -5.9435646e-01 -5.2268594e-01 -4.4579290e-01 -3.6444566e-01 -2.7945699e-01 -1.9167608e-01 -1.0198000e-01 -1.1264980e-02 7.9562600e-02 1.6959522e-01 2.5793330e-01 3.4369419e-01 4.2602100e-01 5.0409116e-01 5.7712460e-01 6.4439160e-01 7.0522006e-01 7.5900219e-01 8.0520062e-01 8.4335375e-01 8.7308037e-01 8.9408346e-01 9.0615316e-01 8.6320937e-01 8.5889692e-01 8.4600265e-01 8.2465541e-01 7.9506848e-01 7.5753749e-01 7.1243743e-01 6.6021894e-01 6.0140376e-01 5.3657955e-01 4.6639401e-01 3.9154842e-01 3.1279061e-01 2.3090749e-01 1.4671723e-01 6.1061015e-02 -2.5205301e-02 -1.1121977e-01 -1.9612298e-01 -2.7906658e-01 -3.5922185e-01 -4.3578789e-01 -5.0799968e-01 -5.7513570e-01 -6.3652516e-01 -6.9155467e-01 -7.3967440e-01 -7.8040354e-01 -8.1333515e-01 -8.3814018e-01 -8.5457080e-01 -8.6246282e-01 -8.6173740e-01 -8.5240179e-01 -8.3454926e-01 -8.0835818e-01 -7.7409026e-01 -7.3208789e-01 -6.8277074e-01 -6.2663156e-01 -5.6423130e-01 -4.9619341e-01 -4.2319773e-01 -3.4597360e-01 -2.6529261e-01 -1.8196091e-01 -9.6811112e-02 -1.0694010e-02 7.5529942e-02 1.6099922e-01 2.4485986e-01 3.2627393e-01 4.0442798e-01 4.7854112e-01 5.4787284e-01 6.1173039e-01 6.6947573e-01 7.2053189e-01 7.6438874e-01 8.0060807e-01 8.2882799e-01 8.4876653e-01 8.6022447e-01 8.0849640e-01 8.0445729e-01 7.9238030e-01 7.7238612e-01 7.4467450e-01 7.0952235e-01 6.6728088e-01 6.1837216e-01 5.6328487e-01 5.0256942e-01 4.3683247e-01 3.6673083e-01 2.9296494e-01 2.1627184e-01 1.3741782e-01 5.7190773e-02 -2.3607709e-02 -1.0417031e-01 -1.8369208e-01 -2.6137845e-01 -3.3645322e-01 -4.0816626e-01 -4.7580104e-01 -5.3868177e-01 -5.9618017e-01 -6.4772173e-01 -6.9279148e-01 -7.3093908e-01 -7.6178337e-01 -7.8501618e-01 -8.0040537e-01 -8.0779718e-01 -8.0711774e-01 -7.9837384e-01 -7.8165286e-01 -7.5712186e-01 -7.2502595e-01 -6.8568583e-01 -6.3949455e-01 -5.8691366e-01 -5.2846852e-01 -4.6474309e-01 -3.9637411e-01 -3.2404469e-01 -2.4847752e-01 -1.7042765e-01 -9.0674915e-02 -1.0016190e-02 7.0742613e-02 1.5079458e-01 2.2933986e-01 3.0559365e-01 3.7879404e-01 4.4820966e-01 5.1314691e-01 5.7295696e-01 6.2704222e-01 6.7486228e-01 7.1593934e-01 7.4986298e-01 7.7629422e-01 7.9496900e-01 8.0570070e-01 7.4570521e-01 7.4197979e-01 7.3084076e-01 7.1239940e-01 6.8683998e-01 6.5441789e-01 6.1545707e-01 5.7034681e-01 5.1953782e-01 4.6353779e-01 4.0290625e-01 3.3824899e-01 2.7021207e-01 1.9947527e-01 1.2674538e-01 5.2749100e-02 -2.1774236e-02 -9.6080011e-02 -1.6942579e-01 -2.4107872e-01 -3.1032287e-01 -3.7646637e-01 -4.3884835e-01 -4.9684550e-01 -5.4987834e-01 -5.9741697e-01 -6.3898641e-01 -6.7417131e-01 -7.0262011e-01 -7.2404856e-01 -7.3824256e-01 -7.4506029e-01 -7.4443362e-01 -7.3636881e-01 -7.2094645e-01 -6.9832063e-01 -6.6871743e-01 -6.3243261e-01 -5.8982875e-01 -5.4133150e-01 -4.8742545e-01 -4.2864921e-01 -3.6559005e-01 -2.9887803e-01 -2.2917972e-01 -1.5719153e-01 -8.3632724e-02 -9.2382909e-03 6.5248448e-02 1.3908325e-01 2.1152837e-01 2.8185997e-01 3.4937532e-01 4.1339983e-01 4.7329379e-01 5.2845874e-01 5.7834352e-01 6.2244967e-01 6.6033652e-01 6.9162550e-01 7.1600399e-01 7.3322840e-01 7.4312664e-01 6.7546318e-01 6.7208868e-01 6.6199889e-01 6.4529462e-01 6.2214279e-01 5.9277471e-01 5.5748382e-01 5.1662274e-01 4.7059973e-01 4.1987465e-01 3.6495431e-01 3.0638748e-01 2.4475932e-01 1.8068561e-01 1.1480655e-01 4.7780375e-02 -1.9723202e-02 -8.7029712e-02 -1.5346665e-01 -2.1837020e-01 -2.8109187e-01 -3.4100496e-01 -3.9751084e-01 -4.5004492e-01 -4.9808230e-01 -5.4114301e-01 -5.7879680e-01 -6.1066744e-01 -6.3643650e-01 -6.5584649e-01 -6.6870348e-01 -6.7487901e-01 -6.7431136e-01 -6.6700623e-01 -6.5303658e-01 -6.3254201e-01 -6.0572729e-01 -5.7286034e-01 -5.3426957e-01 -4.9034054e-01 -4.4151220e-01 -3.8827241e-01 -3.3115313e-01 -2.7072508e-01 -2.0759204e-01 -1.4238480e-01 -7.5754903e-02 -8.3680860e-03 5.9102342e-02 1.2598224e-01 1.9160336e-01 2.5531005e-01 3.1646576e-01 3.7445945e-01 4.2871167e-01 4.7868034e-01 5.2386620e-01 5.6381775e-01 5.9813583e-01 6.2647753e-01 6.4855968e-01 6.6416163e-01 6.7312749e-01 5.9847214e-01 5.9548228e-01 5.8654255e-01 5.7174228e-01 5.5122935e-01 5.2520872e-01 4.9394038e-01 4.5773674e-01 4.1695956e-01 3.7201625e-01 3.2335588e-01 2.7146464e-01 2.1686102e-01 1.6009060e-01 1.0172060e-01 4.2334245e-02 -1.7475101e-02 -7.7109841e-02 -1.3597412e-01 -1.9347980e-01 -2.4905229e-01 -3.0213633e-01 -3.5220153e-01 -3.9874764e-01 -4.4130960e-01 -4.7946214e-01 -5.1282405e-01 -5.4106199e-01 -5.6389382e-01 -5.8109141e-01 -5.9248293e-01 -5.9795456e-01 -5.9745161e-01 -5.9097914e-01 -5.7860179e-01 -5.6044324e-01 -5.3668493e-01 -5.0756424e-01 -4.7337214e-01 -4.3445026e-01 -3.9118750e-01 -3.4401612e-01 -2.9340744e-01 -2.3986714e-01 -1.8393016e-01 -1.2615541e-01 -6.7120163e-02 -7.4142700e-03 5.2365704e-02 1.1162246e-01 1.6976392e-01 2.2620915e-01 2.8039418e-01 3.3177760e-01 3.7984601e-01 4.2411912e-01 4.6415457e-01 4.9955235e-01 5.2995876e-01 5.5507001e-01 5.7463517e-01 5.8845877e-01 5.9640269e-01 5.1550137e-01 5.1292601e-01 5.0522567e-01 4.9247727e-01 4.7480821e-01 4.5239501e-01 4.2546164e-01 3.9427720e-01 3.5915326e-01 3.2044079e-01 2.7852658e-01 2.3382942e-01 1.8679592e-01 1.3789601e-01 8.7618295e-02 3.6465124e-02 -1.5052394e-02 -6.6419514e-02 -1.1712299e-01 -1.6665622e-01 -2.1452427e-01 -2.6024886e-01 -3.0337313e-01 -3.4346620e-01 -3.8012747e-01 -4.1299063e-01 -4.4172733e-01 -4.6605043e-01 -4.8571691e-01 -5.0053027e-01 -5.1034249e-01 -5.1505554e-01 -5.1462233e-01 -5.0904718e-01 -4.9838579e-01 -4.8274471e-01 -4.6228019e-01 -4.3719673e-01 -4.0774494e-01 -3.7421910e-01 -3.3695418e-01 -2.9632253e-01 -2.5273013e-01 -2.0661252e-01 -1.5843052e-01 -1.0866552e-01 -5.7814781e-02 -6.3863730e-03 4.5105846e-02 9.6147382e-02 1.4622825e-01 1.9484804e-01 2.4152099e-01 2.8578073e-01 3.2718505e-01 3.6532024e-01 3.9980527e-01 4.3029559e-01 4.5648653e-01 4.7811640e-01 4.9496910e-01 5.0687623e-01 5.1371882e-01 4.2737988e-01 4.2524476e-01 4.1886074e-01 4.0829159e-01 3.9364294e-01 3.7506113e-01 3.5273184e-01 3.2687816e-01 2.9775843e-01 2.6566359e-01 2.3091433e-01 1.9385786e-01 1.5486441e-01 1.1432362e-01 7.2640537e-02 3.0231657e-02 -1.2479288e-02 -5.5065545e-02 -9.7101604e-02 -1.3816746e-01 -1.7785279e-01 -2.1576107e-01 -2.5151354e-01 -2.8475297e-01 -3.1514724e-01 -3.4239266e-01 -3.6621701e-01 -3.8638224e-01 -4.0268687e-01 -4.1496798e-01 -4.2310287e-01 -4.2701026e-01 -4.2665110e-01 -4.2202899e-01 -4.1319010e-01 -4.0022275e-01 -3.8325650e-01 -3.6246089e-01 -3.3804369e-01 -3.1024886e-01 -2.7935413e-01 -2.4566819e-01 -2.0952761e-01 -1.7129350e-01 -1.3134789e-01 -9.0089884e-02 -4.7931734e-02 -5.2946655e-03 3.7395305e-02 7.9711634e-02 1.2123151e-01 1.6154008e-01 2.0023460e-01 2.3692844e-01 2.7125497e-01 3.0287120e-01 3.3146125e-01 3.5673945e-01 3.7845323e-01 3.9638562e-01 4.1035746e-01 4.2022915e-01 4.2590204e-01 3.3498815e-01 3.3331460e-01 3.2831069e-01 3.2002640e-01 3.0854452e-01 2.9397976e-01 2.7647765e-01 2.5621307e-01 2.3338849e-01 2.0823197e-01 1.8099487e-01 1.5194933e-01 1.2138555e-01 8.9608938e-02 5.6936979e-02 2.3696124e-02 -9.7814940e-03 -4.3161379e-02 -7.6110009e-02 -1.0829817e-01 -1.3940426e-01 -1.6911746e-01 -1.9714090e-01 -2.2319457e-01 -2.4701816e-01 -2.6837362e-01 -2.8704758e-01 -3.0285345e-01 -3.1563332e-01 -3.2525948e-01 -3.3163576e-01 -3.3469844e-01 -3.3441692e-01 -3.3079402e-01 -3.2386594e-01 -3.1370189e-01 -3.0040344e-01 -2.8410346e-01 -2.6496481e-01 -2.4317872e-01 -2.1896287e-01 -1.9255921e-01 -1.6423157e-01 -1.3426297e-01 -1.0295287e-01 -7.0614095e-02 -3.7569768e-02 -4.1500555e-03 2.9311123e-02 6.2479434e-02 9.5023471e-02 1.2661806e-01 1.5694753e-01 1.8570883e-01 2.1261459e-01 2.3739598e-01 2.5980538e-01 2.7961889e-01 2.9663854e-01 3.1069428e-01 3.2164567e-01 3.2938328e-01 3.3382979e-01 2.3924933e-01 2.3805408e-01 2.3448027e-01 2.2856361e-01 2.2036322e-01 2.0996104e-01 1.9746099e-01 1.8298798e-01 1.6668661e-01 1.4871977e-01 1.2926696e-01 1.0852257e-01 8.6693850e-02 6.3998915e-02 4.0664525e-02 1.6923828e-02 -6.9859661e-03 -3.0825959e-02 -5.4357949e-02 -7.7346812e-02 -9.9562851e-02 -1.2078409e-01 -1.4079850e-01 -1.5940609e-01 -1.7642095e-01 -1.9167307e-01 -2.0501006e-01 -2.1629865e-01 -2.2542606e-01 -2.3230109e-01 -2.3685504e-01 -2.3904241e-01 -2.3884136e-01 -2.3625387e-01 -2.3130582e-01 -2.2404663e-01 -2.1454885e-01 -2.0290736e-01 -1.8923849e-01 -1.7367882e-01 -1.5638380e-01 -1.3752624e-01 -1.1729457e-01 -9.5890933e-02 -7.3529183e-02 -5.0432754e-02 -2.6832417e-02 -2.9639794e-03 2.0934073e-02 4.4622959e-02 6.7865988e-02 9.0430921e-02 1.1209230e-01 1.3263369e-01 1.5184984e-01 1.6954877e-01 1.8555362e-01 1.9970447e-01 2.1185995e-01 2.2189859e-01 2.2972010e-01 2.3524631e-01 2.3842203e-01 1.4112001e-01 1.4041500e-01 1.3830700e-01 1.3481709e-01 1.2998013e-01 1.2384446e-01 1.1647137e-01 1.0793454e-01 9.8319256e-02 8.7721604e-02 7.6247466e-02 6.4011488e-02 5.1135929e-02 3.7749437e-02 2.3985765e-02 9.9824345e-03 -4.1206368e-03 -1.8182536e-02 -3.2062761e-02 -4.5622626e-02 -5.8726645e-02 -7.1243886e-02 -8.3049282e-02 -9.4024877e-02 -1.0406101e-01 -1.1305739e-01 -1.2092415e-01 -1.2758267e-01 -1.3296642e-01 -1.3702162e-01 -1.3970775e-01 -1.4099796e-01 -1.4087937e-01 -1.3935315e-01 -1.3643457e-01 -1.3215278e-01 -1.2655055e-01 -1.1968388e-01 -1.1162137e-01 -1.0244357e-01 -9.2242193e-02 -8.1119160e-02 -6.9185611e-02 -5.6560782e-02 -4.3370817e-02 -2.9747505e-02 -1.5826966e-02 -1.7482883e-03 1.2347857e-02 2.6320627e-02 4.0030410e-02 5.3340222e-02 6.6117076e-02 7.8233311e-02 8.9567864e-02 1.0000748e-01 1.0944786e-01 1.1779467e-01 1.2496452e-01 1.3088576e-01 1.3549924e-01 1.3875885e-01 1.4063203e-01 4.1580662e-02 4.1372932e-02 4.0751818e-02 3.9723524e-02 3.8298326e-02 3.6490464e-02 3.4318002e-02 3.1802645e-02 2.8969526e-02 2.5846954e-02 2.2466128e-02 1.8860827e-02 1.5067075e-02 1.1122778e-02 7.0673464e-03 2.9412997e-03 -1.2141355e-03 -5.3574394e-03 -9.4472136e-03 -1.3442594e-02 -1.7303661e-02 -2.0991835e-02 -2.4470266e-02 -2.7704198e-02 -3.0661319e-02 -3.3312082e-02 -3.5630002e-02 -3.7591919e-02 -3.9178229e-02 -4.0373084e-02 -4.1164544e-02 -4.1544701e-02 -4.1509758e-02 -4.1060063e-02 -4.0200109e-02 -3.8938489e-02 -3.7287809e-02 -3.5264561e-02 -3.2888961e-02 -3.0184746e-02 -2.7178935e-02 -2.3901560e-02 -2.0385370e-02 -1.6665495e-02 -1.2779104e-02 -8.7650290e-03 -4.6633764e-03 -5.1512883e-04 3.6382657e-03 7.7553079e-03 1.1794862e-02 1.5716565e-02 1.9481234e-02 2.3051252e-02 2.6390950e-02 2.9466959e-02 3.2248543e-02 3.4707911e-02 3.6820488e-02 3.8565168e-02 3.9924517e-02 4.0884953e-02 4.1436881e-02 -5.8374143e-02 -5.8082516e-02 -5.7210547e-02 -5.5766949e-02 -5.3766147e-02 -5.1228130e-02 -4.8178260e-02 -4.4647008e-02 -4.0669657e-02 -3.6285949e-02 -3.1539684e-02 -2.6478285e-02 -2.1152324e-02 -1.5615015e-02 -9.9216864e-03 -4.1292236e-03 1.7044971e-03 7.5211870e-03 1.3262728e-02 1.8871752e-02 2.4292215e-02 2.9469959e-02 3.4353249e-02 3.8893292e-02 4.3044727e-02 4.6766072e-02 5.0020147e-02 5.2774437e-02 5.5001422e-02 5.6678851e-02 5.7789964e-02 5.8323659e-02 5.8274602e-02 5.7643286e-02 5.6436016e-02 5.4664857e-02 5.2347504e-02 4.9507113e-02 4.6172063e-02 4.2375676e-02 3.8155886e-02 3.3554856e-02 2.8618556e-02 2.3396308e-02 1.7940293e-02 1.2305024e-02 6.5468077e-03 7.2317762e-04 -5.1076782e-03 -1.0887500e-02 -1.6558537e-02 -2.2064127e-02 -2.7349259e-02 -3.2361127e-02 -3.7049653e-02 -4.1367991e-02 -4.5272994e-02 -4.8725644e-02 -5.1691443e-02 -5.4140759e-02 -5.6049118e-02 -5.7397453e-02 -5.8172291e-02 -1.5774569e-01 -1.5695762e-01 -1.5460128e-01 -1.5070022e-01 -1.4529341e-01 -1.3843487e-01 -1.3019314e-01 -1.2065056e-01 -1.0990248e-01 -9.8056296e-02 -8.5230362e-02 -7.1552835e-02 -5.7160376e-02 -4.2196788e-02 -2.6811585e-02 -1.1158489e-02 4.6060989e-03 2.0324664e-02 3.5840152e-02 5.0997537e-02 6.5645372e-02 7.9637299e-02 9.2833517e-02 1.0510217e-01 1.1632068e-01 1.2637696e-01 1.3517051e-01 1.4261349e-01 1.4863152e-01 1.5316447e-01 1.5616705e-01 1.5760927e-01 1.5747670e-01 1.5577068e-01 1.5250825e-01 1.4772201e-01 1.4145978e-01 1.3378413e-01 1.2477175e-01 1.1451270e-01 1.0310947e-01 9.0676002e-02 7.7336534e-02 6.3224344e-02 4.8480437e-02 3.3252130e-02 1.7691578e-02 1.9542583e-03 -1.3802588e-02 -2.9421523e-02 -4.4746488e-02 -5.9624361e-02 -7.3906488e-02 -8.7450164e-02 -1.0012007e-01 -1.1178961e-01 -1.2234218e-01 -1.3167235e-01 -1.3968689e-01 -1.4630573e-01 -1.5146273e-01 -1.5510636e-01 -1.5720022e-01 -2.5554110e-01 -2.5426446e-01 -2.5044729e-01 -2.4412774e-01 -2.3536894e-01 -2.2425841e-01 -2.1090717e-01 -1.9544862e-01 -1.7803720e-01 -1.5884690e-01 -1.3806945e-01 -1.1591245e-01 -9.2597300e-02 -6.8356945e-02 -4.3433591e-02 -1.8076262e-02 7.4616781e-03 3.2925064e-02 5.8059474e-02 8.2613772e-02 1.0634262e-01 1.2900893e-01 1.5038622e-01 1.7026091e-01 1.8843440e-01 2.0472512e-01 2.1897030e-01 2.3102759e-01 2.4077654e-01 2.4811972e-01 2.5298377e-01 2.5532010e-01 2.5510535e-01 2.5234167e-01 2.4705668e-01 2.3930317e-01 2.2915863e-01 2.1672442e-01 2.0212476e-01 1.8550554e-01 1.6703281e-01 1.4689114e-01 1.2528179e-01 1.0242066e-01 7.8536180e-02 5.3866991e-02 2.8659580e-02 3.1658127e-03 -2.2359587e-02 -4.7661576e-02 -7.2487347e-02 -9.6588849e-02 -1.1972527e-01 -1.4166543e-01 -1.6219012e-01 -1.8109426e-01 -1.9818896e-01 -2.1330342e-01 -2.2628663e-01 -2.3700886e-01 -2.4536297e-01 -2.5126550e-01 -2.5465747e-01 -3.5078323e-01 -3.4903077e-01 -3.4379092e-01 -3.3511602e-01 -3.2309275e-01 -3.0784124e-01 -2.8951389e-01 -2.6829381e-01 -2.4439303e-01 -2.1805035e-01 -1.8952899e-01 -1.5911391e-01 -1.2710902e-01 -9.3834103e-02 -5.9621623e-02 -2.4813424e-02 1.0242703e-02 4.5196488e-02 7.9698684e-02 1.1340456e-01 1.4597733e-01 1.7709155e-01 2.0643632e-01 2.3371845e-01 2.5866535e-01 2.8102774e-01 3.0058220e-01 3.1713334e-01 3.3051579e-01 3.4059584e-01 3.4727276e-01 3.5047985e-01 3.5018506e-01 3.4639134e-01 3.3913659e-01 3.2849330e-01 3.1456781e-01 2.9749927e-01 2.7745821e-01 2.5464488e-01 2.2928722e-01 2.0163860e-01 1.7197527e-01 1.4059363e-01 1.0780722e-01 7.3943631e-02 3.9341225e-02 4.3457354e-03 -3.0693176e-02 -6.5425411e-02 -9.9503937e-02 -1.3258825e-01 -1.6434779e-01 -1.9446522e-01 -2.2263962e-01 -2.4858947e-01 -2.7205550e-01 -2.9280324e-01 -3.1062539e-01 -3.2534388e-01 -3.3681163e-01 -3.4491408e-01 -3.4957025e-01 -4.4252044e-01 -4.4030968e-01 -4.3369950e-01 -4.2275593e-01 -4.0758832e-01 -3.8834822e-01 -3.6522788e-01 -3.3845830e-01 -3.0830696e-01 -2.7507512e-01 -2.3909482e-01 -2.0072556e-01 -1.6035071e-01 -1.1837370e-01 -7.5213935e-02 -3.1302658e-02 1.2921386e-02 5.7016323e-02 1.0054157e-01 1.4306224e-01 1.8415348e-01 2.2340472e-01 2.6042378e-01 2.9484076e-01 3.2631179e-01 3.5452243e-01 3.7919079e-01 4.0007041e-01 4.1695265e-01 4.2966884e-01 4.3809192e-01 4.4213773e-01 4.4176585e-01 4.3697999e-01 4.2782796e-01 4.1440123e-01 3.9683393e-01 3.7530160e-01 3.5001938e-01 3.2123989e-01 2.8925066e-01 2.5437135e-01 2.1695044e-01 1.7736183e-01 1.3600108e-01 9.3281451e-02 4.9629786e-02 5.4822368e-03 -3.8720089e-02 -8.2535536e-02 -1.2552632e-01 -1.6726288e-01 -2.0732821e-01 -2.4532198e-01 -2.8086457e-01 -3.1360086e-01 -3.4320376e-01 -3.6937747e-01 -3.9186049e-01 -4.1042817e-01 -4.2489498e-01 -4.3511639e-01 -4.4099025e-01 -5.2983614e-01 -5.2718917e-01 -5.1927469e-01 -5.0617180e-01 -4.8801140e-01 -4.6497496e-01 -4.3729264e-01 -4.0524103e-01 -3.6914039e-01 -3.2935143e-01 -2.8627169e-01 -2.4033162e-01 -1.9199023e-01 -1.4173055e-01 -9.0054735e-02 -3.7479126e-02 1.5470962e-02 6.8266470e-02 1.2037988e-01 1.7129050e-01 2.2048963e-01 2.6748571e-01 3.1180916e-01 3.5301712e-01 3.9069784e-01 4.2447484e-01 4.5401063e-01 4.7901009e-01 4.9922345e-01 5.1444873e-01 5.2453380e-01 5.2937791e-01 5.2893265e-01 5.2320247e-01 5.1224462e-01 4.9616860e-01 4.7513502e-01 4.4935405e-01 4.1908328e-01 3.8462517e-01 3.4632401e-01 3.0456250e-01 2.5975790e-01 2.1235789e-01 1.6283606e-01 1.1168723e-01 5.9422462e-02 6.5639616e-03 -4.6360124e-02 -9.8820994e-02 -1.5029448e-01 -2.0026627e-01 -2.4823707e-01 -2.9372756e-01 -3.3628322e-01 -3.7547886e-01 -4.1092283e-01 -4.4226100e-01 -4.6918024e-01 -4.9141159e-01 -5.0873292e-01 -5.2097115e-01 -5.2800402e-01 -6.1185789e-01 -6.0880115e-01 -5.9966147e-01 -5.8453017e-01 -5.6355844e-01 -5.3695582e-01 -5.0498811e-01 -4.6797473e-01 -4.2628550e-01 -3.8033696e-01 -3.3058823e-01 -2.7753637e-01 -2.2171145e-01 -1.6367127e-01 -1.0399574e-01 -4.3281115e-02 1.7865958e-02 7.8834521e-02 1.3901539e-01 1.9780727e-01 2.5462273e-01 3.0889407e-01 3.6007905e-01 4.0766624e-01 4.5118016e-01 4.9018604e-01 5.2429415e-01 5.5316367e-01 5.7650617e-01 5.9408842e-01 6.0573472e-01 6.1132873e-01 6.1081454e-01 6.0419729e-01 5.9154310e-01 5.7297841e-01 5.4868871e-01 5.1891670e-01 4.8395984e-01 4.4416741e-01 3.9993701e-01 3.5171057e-01 2.9996995e-01 2.4523214e-01 1.8804404e-01 1.2897707e-01 6.8621409e-02 7.5801015e-03 -5.3536943e-02 -1.1411906e-01 -1.7356095e-01 -2.3126866e-01 -2.8666562e-01 -3.3919831e-01 -3.8834184e-01 -4.3360519e-01 -4.7453610e-01 -5.1072560e-01 -5.4181210e-01 -5.6748500e-01 -5.8748777e-01 -6.0162055e-01 -6.0974215e-01 -6.8776616e-01 -6.8433019e-01 -6.7405663e-01 -6.5704811e-01 -6.3347458e-01 -6.0357159e-01 -5.6763791e-01 -5.2603257e-01 -4.7917130e-01 -4.2752230e-01 -3.7160164e-01 -3.1196806e-01 -2.4921740e-01 -1.8397664e-01 -1.1689765e-01 -4.8650654e-02 2.0082443e-02 8.8614883e-02 1.5626191e-01 2.2234762e-01 2.8621171e-01 3.4721607e-01 4.0475115e-01 4.5824210e-01 5.0715444e-01 5.5099947e-01 5.8933909e-01 6.2179022e-01 6.4802864e-01 6.6779217e-01 6.8088334e-01 6.8717134e-01 6.8659336e-01 6.7915517e-01 6.6493108e-01 6.4406322e-01 6.1676009e-01 5.8329450e-01 5.4400083e-01 4.9927167e-01 4.4955396e-01 3.9534446e-01 3.3718480e-01 2.7565611e-01 2.1137315e-01 1.4497822e-01 7.7134713e-02 8.5205035e-03 -6.0178840e-02 -1.2827690e-01 -1.9509325e-01 -2.5996030e-01 -3.2222991e-01 -3.8127991e-01 -4.3652028e-01 -4.8739909e-01 -5.3340797e-01 -5.7408721e-01 -6.0903036e-01 -6.3788828e-01 -6.6037263e-01 -6.7625876e-01 -6.8538793e-01 -7.5680250e-01 -7.5302164e-01 -7.4171683e-01 -7.2300104e-01 -6.9706126e-01 -6.6415667e-01 -6.2461605e-01 -5.7883448e-01 -5.2726938e-01 -4.7043598e-01 -4.0890213e-01 -3.4328268e-01 -2.7423325e-01 -2.0244378e-01 -1.2863156e-01 -5.3534091e-02 2.2098271e-02 9.7509835e-02 1.7194711e-01 2.4466635e-01 3.1494096e-01 3.8206879e-01 4.4537911e-01 5.0423936e-01 5.5806140e-01 6.0630749e-01 6.4849555e-01 6.8420405e-01 7.1307622e-01 7.3482356e-01 7.4922879e-01 7.5614797e-01 7.5551198e-01 7.4732715e-01 7.3167528e-01 7.0871276e-01 6.7866901e-01 6.4184422e-01 5.9860634e-01 5.4938738e-01 4.9467912e-01 4.3502820e-01 3.7103061e-01 3.0332581e-01 2.3259028e-01 1.5953079e-01 8.4877312e-02 9.3757714e-03 -6.6219449e-02 -1.4115303e-01 -2.1467625e-01 -2.8605450e-01 -3.5457459e-01 -4.1955188e-01 -4.8033715e-01 -5.3632305e-01 -5.8695019e-01 -6.3171272e-01 -6.7016338e-01 -7.0191799e-01 -7.2665927e-01 -7.4414001e-01 -7.5418555e-01 -8.1827711e-01 -8.1418913e-01 -8.0196605e-01 -7.8172998e-01 -7.5368313e-01 -7.1810572e-01 -6.7535324e-01 -6.2585286e-01 -5.7009915e-01 -5.0864921e-01 -4.4211701e-01 -3.7116732e-01 -2.9650906e-01 -2.1888817e-01 -1.3908022e-01 -5.7882633e-02 2.3893301e-02 1.0543050e-01 1.8591427e-01 2.6454045e-01 3.4052343e-01 4.1310401e-01 4.8155699e-01 5.4519842e-01 6.0339240e-01 6.5555748e-01 7.0117245e-01 7.3978154e-01 7.7099897e-01 7.9451284e-01 8.1008820e-01 8.1756942e-01 8.1688177e-01 8.0803209e-01 7.9110883e-01 7.6628107e-01 7.3379689e-01 6.9398084e-01 6.4723077e-01 5.9401379e-01 5.3486161e-01 4.7036528e-01 4.0116921e-01 3.2796479e-01 2.5148345e-01 1.7248938e-01 9.1771846e-02 1.0137360e-02 -7.1598415e-02 -1.5261880e-01 -2.3211427e-01 -3.0929054e-01 -3.8337647e-01 -4.5363183e-01 -5.1935465e-01 -5.7988826e-01 -6.3462781e-01 -6.8302637e-01 -7.2460035e-01 -7.5893437e-01 -7.8568537e-01 -8.0458606e-01 -8.1544759e-01 -8.7157577e-01 -8.6722152e-01 -8.5420228e-01 -8.3264814e-01 -8.0277445e-01 -7.6487970e-01 -7.1934253e-01 -6.6661792e-01 -6.0723269e-01 -5.4178019e-01 -4.7091440e-01 -3.9534339e-01 -3.1582224e-01 -2.3314550e-01 -1.4813924e-01 -6.1652831e-02 2.5449596e-02 1.1229774e-01 1.9802384e-01 2.8177135e-01 3.6270350e-01 4.4001163e-01 5.1292332e-01 5.8071004e-01 6.4269450e-01 6.9825737e-01 7.4684348e-01 7.8796738e-01 8.2121816e-01 8.4626361e-01 8.6285347e-01 8.7082199e-01 8.7008954e-01 8.6066344e-01 8.4263788e-01 8.1619296e-01 7.8159291e-01 7.3918344e-01 6.8938829e-01 6.3270501e-01 5.6969994e-01 5.0100263e-01 4.2729945e-01 3.4932685e-01 2.6786388e-01 1.8372451e-01 9.7749425e-02 1.0797659e-02 -7.6261994e-02 -1.6255966e-01 -2.4723309e-01 -3.2943624e-01 -4.0834778e-01 -4.8317924e-01 -5.5318293e-01 -6.1765941e-01 -6.7596443e-01 -7.2751544e-01 -7.7179736e-01 -8.0836773e-01 -8.3686116e-01 -8.5699295e-01 -8.6856195e-01 -9.1616594e-01 -9.1158892e-01 -8.9790361e-01 -8.7524675e-01 -8.4384471e-01 -8.0401125e-01 -7.5614438e-01 -7.0072236e-01 -6.3829896e-01 -5.6949788e-01 -4.9500657e-01 -4.1556932e-01 -3.3197983e-01 -2.4507331e-01 -1.5571811e-01 -6.4807015e-02 2.6751608e-02 1.1804294e-01 2.0815482e-01 2.9618689e-01 3.8125956e-01 4.6252280e-01 5.3916468e-01 6.1041940e-01 6.7557500e-01 7.3398049e-01 7.8505229e-01 8.2828010e-01 8.6323201e-01 8.8955880e-01 9.0699740e-01 9.1537359e-01 9.1460367e-01 9.0469533e-01 8.8574757e-01 8.5794972e-01 8.2157951e-01 7.7700036e-01 7.2465767e-01 6.6507445e-01 5.9884602e-01 5.2663412e-01 4.4916026e-01 3.6719855e-01 2.8156791e-01 1.9312393e-01 1.0275032e-01 1.1350071e-02 -8.0163588e-02 -1.7087628e-01 -2.5988163e-01 -3.4629033e-01 -4.2923902e-01 -5.0789888e-01 -5.8148399e-01 -6.4925911e-01 -7.1054704e-01 -7.6473542e-01 -8.1128282e-01 -8.4972415e-01 -8.7967531e-01 -9.0083705e-01 -9.1299792e-01 -9.5160207e-01 -9.4684803e-01 -9.3263339e-01 -9.0910018e-01 -8.7648355e-01 -8.3510939e-01 -7.8539108e-01 -7.2782541e-01 -6.6298755e-01 -5.9152533e-01 -5.1415279e-01 -4.3164301e-01 -3.4482039e-01 -2.5455244e-01 -1.6174109e-01 -6.7313668e-02 2.7786326e-02 1.2260869e-01 2.1620598e-01 3.0764302e-01 3.9600619e-01 4.8041260e-01 5.6001888e-01 6.3402964e-01 7.0170539e-01 7.6236993e-01 8.1541711e-01 8.6031693e-01 8.9662073e-01 9.2396580e-01 9.4207891e-01 9.5077908e-01 9.4997938e-01 9.3968780e-01 9.2000717e-01 8.9113413e-01 8.5335717e-01 8.0705375e-01 7.5268652e-01 6.9079869e-01 6.2200863e-01 5.4700366e-01 4.6653321e-01 3.8140132e-01 2.9245860e-01 2.0059372e-01 1.0672458e-01 1.1789078e-02 -8.3264214e-02 -1.7748556e-01 -2.6993352e-01 -3.5968440e-01 -4.4584144e-01 -5.2754377e-01 -6.0397506e-01 -6.7437163e-01 -7.3803010e-01 -7.9431442e-01 -8.4266221e-01 -8.8259040e-01 -9.1370004e-01 -9.3568029e-01 -9.4831153e-01 -9.7753012e-01 -9.7264654e-01 -9.5804460e-01 -9.3387019e-01 -9.0036486e-01 -8.5786338e-01 -8.0679042e-01 -7.4765627e-01 -6.8105179e-01 -6.0764247e-01 -5.2816178e-01 -4.4340387e-01 -3.5421562e-01 -2.6148816e-01 -1.6614800e-01 -6.9147745e-02 2.8543412e-02 1.2594937e-01 2.2209689e-01 3.1602529e-01 4.0679607e-01 4.9350227e-01 5.7527757e-01 6.5130488e-01 7.2082457e-01 7.8314201e-01 8.3763456e-01 8.8375775e-01 9.2105072e-01 9.4914085e-01 9.6774748e-01 9.7668470e-01 9.7586321e-01 9.6529122e-01 9.4507435e-01 9.1541462e-01 8.7660836e-01 8.2904332e-01 7.7319476e-01 7.0962069e-01 6.3895633e-01 5.6190772e-01 4.7924472e-01 3.9179326e-01 3.0042714e-01 2.0605924e-01 1.0963247e-01 1.2110292e-02 -8.5532892e-02 -1.8232146e-01 -2.7728833e-01 -3.6948463e-01 -4.5798916e-01 -5.4191761e-01 -6.2043140e-01 -6.9274605e-01 -7.5813900e-01 -8.1595689e-01 -8.6562200e-01 -9.0663810e-01 -9.3859537e-01 -9.6117451e-01 -9.7414991e-01 -9.9369100e-01 -9.8872669e-01 -9.7388334e-01 -9.4930927e-01 -9.1525002e-01 -8.7204590e-01 -8.2012858e-01 -7.6001680e-01 -6.9231119e-01 -6.1768823e-01 -5.3689354e-01 -4.5073439e-01 -3.6007164e-01 -2.6581118e-01 -1.6889482e-01 -7.0290921e-02 2.9015303e-02 1.2803161e-01 2.2576868e-01 3.2124993e-01 4.1352137e-01 5.0166103e-01 5.8478827e-01 6.6207249e-01 7.3274150e-01 7.9608920e-01 8.5148265e-01 8.9836835e-01 9.3627786e-01 9.6483239e-01 9.8374664e-01 9.9283161e-01 9.9199654e-01 9.8124976e-01 9.6069867e-01 9.3054859e-01 8.9110077e-01 8.4274937e-01 7.8597750e-01 7.2135240e-01 6.4951979e-01 5.7119738e-01 4.8716777e-01 3.9827053e-01 3.0539391e-01 2.0946589e-01 1.1144496e-01 1.2310503e-02 -8.6946953e-02 -1.8533566e-01 -2.8187256e-01 -3.7559308e-01 -4.6556080e-01 -5.5087679e-01 -6.3068860e-01 -7.0419878e-01 -7.7067284e-01 -8.2944658e-01 -8.7993278e-01 -9.2162697e-01 -9.5411258e-01 -9.7706500e-01 -9.9025492e-01 -9.9992326e-01 -9.9492781e-01 -9.7999137e-01 -9.5526317e-01 -9.2099031e-01 -8.7751521e-01 -8.2527228e-01 -7.6478349e-01 -6.9665324e-01 -6.2156226e-01 -5.4026084e-01 -4.5356131e-01 -3.6232995e-01 -2.6747830e-01 -1.6995410e-01 -7.0731773e-02 2.9197281e-02 1.2883461e-01 2.2718466e-01 3.2326476e-01 4.1611490e-01 5.0480736e-01 5.8845595e-01 6.6622489e-01 7.3733713e-01 8.0108213e-01 8.5682299e-01 9.0400276e-01 9.4215003e-01 9.7088365e-01 9.8991652e-01 9.9905847e-01 9.9821816e-01 9.8740399e-01 9.6672400e-01 9.3638482e-01 8.9668960e-01 8.4803495e-01 7.9090701e-01 7.2587659e-01 6.5359346e-01 5.7477983e-01 4.9022320e-01 4.0076841e-01 3.0730928e-01 2.1077962e-01 1.1214392e-01 1.2387713e-02 -8.7492269e-02 -1.8649806e-01 -2.8364042e-01 -3.7794874e-01 -4.6848072e-01 -5.5433179e-01 -6.3464417e-01 -7.0861539e-01 -7.7550636e-01 -8.3464873e-01 -8.8545156e-01 -9.2740725e-01 -9.6009660e-01 -9.8319298e-01 -9.9646562e-01 -9.9616461e-01 -9.9118794e-01 -9.7630764e-01 -9.5167240e-01 -9.1752836e-01 -8.7421669e-01 -8.2217013e-01 -7.6190872e-01 -6.9403457e-01 -6.1922585e-01 -5.3823004e-01 -4.5185640e-01 -3.6096797e-01 -2.6647287e-01 -1.6931525e-01 -7.0465897e-02 2.9087531e-02 1.2835033e-01 2.2633069e-01 3.2204962e-01 4.1455075e-01 5.0290982e-01 5.8624399e-01 6.6372059e-01 7.3456552e-01 7.9807092e-01 8.5360225e-01 9.0060467e-01 9.3860855e-01 9.6723416e-01 9.8619549e-01 9.9530308e-01 9.9446592e-01 9.8369240e-01 9.6309014e-01 9.3286501e-01 8.9331900e-01 8.4484724e-01 7.8793404e-01 7.2314807e-01 6.5113664e-01 5.7261927e-01 4.8838048e-01 3.9926195e-01 3.0615413e-01 2.0998732e-01 1.1172238e-01 1.2341148e-02 -8.7163391e-02 -1.8579702e-01 -2.8257423e-01 -3.7652805e-01 -4.6671973e-01 -5.5224809e-01 -6.3225858e-01 -7.0595175e-01 -7.7259128e-01 -8.3151133e-01 -8.8212320e-01 -9.2392119e-01 -9.5648766e-01 -9.7949722e-01 -9.9271997e-01 -9.8245261e-01 -9.7754444e-01 -9.6286897e-01 -9.3857283e-01 -9.0489878e-01 -8.6218328e-01 -8.1085313e-01 -7.5142121e-01 -6.8448133e-01 -6.1070234e-01 -5.3082141e-01 -4.4563669e-01 -3.5599932e-01 -2.6280492e-01 -1.6698466e-01 -6.9495949e-02 2.8687147e-02 1.2658361e-01 2.2321529e-01 3.1761668e-01 4.0884455e-01 4.9598737e-01 5.7817446e-01 6.5458462e-01 7.2445438e-01 7.8708564e-01 8.4185259e-01 8.8820804e-01 9.2568880e-01 9.5392039e-01 9.7262071e-01 9.8160294e-01 9.8077731e-01 9.7015208e-01 9.4983341e-01 9.2002432e-01 8.8102265e-01 8.3321809e-01 7.7708830e-01 7.1319409e-01 6.4217388e-01 5.6473729e-01 4.8165802e-01 3.9376619e-01 3.0193998e-01 2.0709688e-01 1.1018454e-01 1.2171275e-02 -8.5963605e-02 -1.8323956e-01 -2.7868466e-01 -3.7134522e-01 -4.6029543e-01 -5.4464651e-01 -6.2355567e-01 -6.9623447e-01 -7.6195672e-01 -8.2006576e-01 -8.6998096e-01 -9.1120361e-01 -9.4332181e-01 -9.6601465e-01 -9.7905539e-01 -9.5892427e-01 -9.5413365e-01 -9.3980963e-01 -9.1609535e-01 -8.8322775e-01 -8.4153522e-01 -7.9143436e-01 -7.3342574e-01 -6.6808898e-01 -5.9607689e-01 -5.1810900e-01 -4.3496433e-01 -3.4747365e-01 -2.5651112e-01 -1.6298562e-01 -6.7831620e-02 2.8000131e-02 1.2355211e-01 2.1786960e-01 3.1001021e-01 3.9905330e-01 4.8410918e-01 5.6432801e-01 6.3890825e-01 7.0710473e-01 7.6823606e-01 8.2169143e-01 8.6693672e-01 9.0351987e-01 9.3107535e-01 9.4932784e-01 9.5809495e-01 9.5728909e-01 9.4691832e-01 9.2708626e-01 8.9799105e-01 8.5992341e-01 8.1326371e-01 7.5847814e-01 6.9611411e-01 6.2679474e-01 5.5121264e-01 4.7012300e-01 3.8433606e-01 2.9470895e-01 2.0213721e-01 1.0754578e-01 1.1879790e-02 -8.3904899e-02 -1.7885124e-01 -2.7201056e-01 -3.6245203e-01 -4.4927201e-01 -5.3160301e-01 -6.0862241e-01 -6.7956065e-01 -7.4370895e-01 -8.0042635e-01 -8.4914616e-01 -8.8938158e-01 -9.2073060e-01 -9.4287997e-01 -9.5560841e-01 -9.2581468e-01 -9.2118947e-01 -9.0736003e-01 -8.8446455e-01 -8.5273179e-01 -8.1247882e-01 -7.6410783e-01 -7.0810213e-01 -6.4502130e-01 -5.7549564e-01 -5.0021981e-01 -4.1994595e-01 -3.3547613e-01 -2.4765434e-01 -1.5735808e-01 -6.5489540e-02 2.7033346e-02 1.1928612e-01 2.1034704e-01 2.9930623e-01 3.8527485e-01 4.6739394e-01 5.4484297e-01 6.1684812e-01 6.8268993e-01 7.4171052e-01 7.9332019e-01 8.3700326e-01 8.7232328e-01 8.9892733e-01 9.1654959e-01 9.2501399e-01 9.2423596e-01 9.1422327e-01 8.9507596e-01 8.6698535e-01 8.3023211e-01 7.8518346e-01 7.3228952e-01 6.7207879e-01 6.0515286e-01 5.3218045e-01 4.5389067e-01 3.7106576e-01 2.8453328e-01 1.9515785e-01 1.0383246e-01 1.1469607e-02 -8.1007844e-02 -1.7267589e-01 -2.6261862e-01 -3.4993734e-01 -4.3375961e-01 -5.1324790e-01 -5.8760798e-01 -6.5609688e-01 -7.1803028e-01 -7.7278935e-01 -8.1982697e-01 -8.5867315e-01 -8.8893975e-01 -9.1032436e-01 -9.2261330e-01 -8.8345466e-01 -8.7904106e-01 -8.6584438e-01 -8.4399647e-01 -8.1371562e-01 -7.7530440e-01 -7.2914659e-01 -6.7570339e-01 -6.1550879e-01 -5.4916422e-01 -4.7733259e-01 -4.0073161e-01 -3.2012665e-01 -2.3632309e-01 -1.5015826e-01 -6.2493110e-02 2.5796454e-02 1.1382827e-01 2.0072275e-01 2.8561167e-01 3.6764686e-01 4.4600864e-01 5.1991405e-01 5.8862465e-01 6.5145391e-01 7.0777406e-01 7.5702236e-01 7.9870674e-01 8.3241071e-01 8.5779751e-01 8.7461348e-01 8.8269060e-01 8.8194817e-01 8.7239360e-01 8.5412236e-01 8.2731702e-01 7.9224540e-01 7.4925792e-01 6.9878411e-01 6.4132827e-01 5.7746450e-01 5.0783089e-01 4.3312321e-01 3.5408789e-01 2.7151465e-01 1.8622853e-01 9.9081672e-02 1.0944822e-02 -7.7301384e-02 -1.6477522e-01 -2.5060268e-01 -3.3392620e-01 -4.1391323e-01 -4.8976459e-01 -5.6072238e-01 -6.2607761e-01 -6.8517729e-01 -7.3743090e-01 -7.8231634e-01 -8.1938514e-01 -8.4826691e-01 -8.6867308e-01 -8.8039976e-01 -8.3226744e-01 -8.2810957e-01 -8.1567750e-01 -7.9509546e-01 -7.6656908e-01 -7.3038339e-01 -6.8689996e-01 -6.3655325e-01 -5.7984631e-01 -5.1734574e-01 -4.4967602e-01 -3.7751328e-01 -3.0157856e-01 -2.2263057e-01 -1.4145812e-01 -5.8872270e-02 2.4301812e-02 1.0723308e-01 1.8909291e-01 2.6906338e-01 3.4634546e-01 4.2016698e-01 4.8979032e-01 5.5451984e-01 6.1370878e-01 6.6676575e-01 7.1316061e-01 7.5242981e-01 7.8418098e-01 8.0809687e-01 8.2393852e-01 8.3154766e-01 8.3084824e-01 8.2184726e-01 8.0463466e-01 7.7938241e-01 7.4634283e-01 7.0584604e-01 6.5829667e-01 6.0416982e-01 5.4400630e-01 4.7840726e-01 4.0802812e-01 3.3357210e-01 2.5578314e-01 1.7543848e-01 9.3340897e-02 1.0310681e-02 -7.2822555e-02 -1.5522817e-01 -2.3608280e-01 -3.1457857e-01 -3.8993117e-01 -4.6138771e-01 -5.2823422e-01 -5.8980278e-01 -6.4547823e-01 -6.9470427e-01 -7.3698906e-01 -7.7191010e-01 -7.9911847e-01 -8.1834231e-01 -8.2938954e-01 -7.7276449e-01 -7.6890388e-01 -7.5736065e-01 -7.3825011e-01 -7.1176323e-01 -6.7816464e-01 -6.3779005e-01 -5.9104288e-01 -5.3839020e-01 -4.8035811e-01 -4.1752643e-01 -3.5052297e-01 -2.8001720e-01 -2.0671360e-01 -1.3134457e-01 -5.4663197e-02 2.2564354e-02 9.9566450e-02 1.7557371e-01 2.4982670e-01 3.2158350e-01 3.9012714e-01 4.5477276e-01 5.1487445e-01 5.6983168e-01 6.1909534e-01 6.6217320e-01 6.9863485e-01 7.2811596e-01 7.5032199e-01 7.6503104e-01 7.7209616e-01 7.7144675e-01 7.6308930e-01 7.4710731e-01 7.2366047e-01 6.9298306e-01 6.5538159e-01 6.1123176e-01 5.6097471e-01 5.0511258e-01 4.4420353e-01 3.7885615e-01 3.0972337e-01 2.3749593e-01 1.6289551e-01 8.6667490e-02 9.5735192e-03 -6.7616107e-02 -1.4413014e-01 -2.1920406e-01 -2.9208778e-01 -3.6205305e-01 -4.2840080e-01 -4.9046812e-01 -5.4763483e-01 -5.9932977e-01 -6.4503640e-01 -6.8429804e-01 -7.1672239e-01 -7.4198550e-01 -7.5983493e-01 -7.7009234e-01 -7.0554033e-01 -7.0201556e-01 -6.9147649e-01 -6.7402842e-01 -6.4984567e-01 -6.1916989e-01 -5.8230756e-01 -5.3962701e-01 -4.9155468e-01 -4.3857090e-01 -3.8120506e-01 -3.2003036e-01 -2.5565801e-01 -1.8873121e-01 -1.1991867e-01 -4.9907948e-02 2.0601440e-02 9.0904986e-02 1.6030024e-01 2.2809383e-01 2.9360837e-01 3.5618929e-01 4.1521127e-01 4.7008460e-01 5.2026100e-01 5.6523913e-01 6.0456957e-01 6.3785935e-01 6.6477586e-01 6.8505014e-01 6.9847963e-01 7.0493014e-01 7.0433722e-01 6.9670680e-01 6.8211511e-01 6.6070796e-01 6.3269923e-01 5.9836877e-01 5.5805962e-01 5.1217451e-01 4.6117193e-01 4.0556147e-01 3.4589878e-01 2.8277998e-01 2.1683573e-01 1.4872494e-01 7.9128130e-02 8.7407017e-03 -6.1734061e-02 -1.3159200e-01 -2.0013511e-01 -2.6667854e-01 -3.3055740e-01 -3.9113345e-01 -4.4780142e-01 -4.9999510e-01 -5.4719300e-01 -5.8892353e-01 -6.2476973e-01 -6.5437343e-01 -6.7743886e-01 -6.9373553e-01 -7.0310064e-01 -6.3126664e-01 -6.2811293e-01 -6.1868333e-01 -6.0307205e-01 -5.8143508e-01 -5.5398859e-01 -5.2100684e-01 -4.8281936e-01 -4.3980770e-01 -3.9240163e-01 -3.4107482e-01 -2.8634010e-01 -2.2874436e-01 -1.6886309e-01 -1.0729459e-01 -4.4654035e-02 1.8432684e-02 8.1335231e-02 1.4342510e-01 2.0408192e-01 2.6269961e-01 3.1869250e-01 3.7150112e-01 4.2059782e-01 4.6549205e-01 5.0573524e-01 5.4092528e-01 5.7071058e-01 5.9479353e-01 6.1293350e-01 6.2494923e-01 6.3072069e-01 6.3019019e-01 6.2336303e-01 6.1030744e-01 5.9115386e-01 5.6609367e-01 5.3537726e-01 4.9931153e-01 4.5825684e-01 4.1262341e-01 3.6286718e-01 3.0948530e-01 2.5301115e-01 1.9400899e-01 1.3306836e-01 7.0798149e-02 7.8205499e-03 -5.5235189e-02 -1.1773904e-01 -1.7906647e-01 -2.3860474e-01 -2.9575894e-01 -3.4995802e-01 -4.0066044e-01 -4.4735959e-01 -4.8958886e-01 -5.2692633e-01 -5.5899893e-01 -5.8548619e-01 -6.0612347e-01 -6.2070456e-01 -6.2908378e-01 -5.5068554e-01 -5.4793441e-01 -5.3970850e-01 -5.2608999e-01 -5.0721497e-01 -4.8327203e-01 -4.5450039e-01 -4.2118753e-01 -3.8366631e-01 -3.4231162e-01 -2.9753667e-01 -2.4978883e-01 -1.9954518e-01 -1.4730774e-01 -9.3598448e-02 -3.8953954e-02 1.6079755e-02 7.0952800e-02 1.2511691e-01 1.7803089e-01 2.2916605e-01 2.7801145e-01 3.2407906e-01 3.6690857e-01 4.0607206e-01 4.4117821e-01 4.7187625e-01 4.9785946e-01 5.1886822e-01 5.3469262e-01 5.4517456e-01 5.5020928e-01 5.4974650e-01 5.4379083e-01 5.3240179e-01 5.1569316e-01 4.9383190e-01 4.6703643e-01 4.3557448e-01 3.9976042e-01 3.5995209e-01 3.1654724e-01 2.6997955e-01 2.2071431e-01 1.6924377e-01 1.1608220e-01 6.1760775e-02 6.8222579e-03 -4.8184425e-02 -1.0270967e-01 -1.5620866e-01 -2.0814688e-01 -2.5800536e-01 -3.0528593e-01 -3.4951619e-01 -3.9025420e-01 -4.2709292e-01 -4.5966426e-01 -4.8764280e-01 -5.1074896e-01 -5.2875190e-01 -5.4147171e-01 -5.4878133e-01 -4.6460218e-01 -4.6228110e-01 -4.5534107e-01 -4.4385141e-01 -4.2792695e-01 -4.0772677e-01 -3.8345273e-01 -3.5534735e-01 -3.2369146e-01 -2.8880135e-01 -2.5102563e-01 -2.1074175e-01 -1.6835220e-01 -1.2428054e-01 -7.8967105e-02 -3.2864658e-02 1.3566162e-02 5.9861433e-02 1.0555859e-01 1.5020104e-01 1.9334273e-01 2.3455260e-01 2.7341890e-01 3.0955329e-01 3.4259473e-01 3.7221307e-01 3.9811238e-01 4.2003389e-01 4.3775855e-01 4.5110928e-01 4.5995267e-01 4.6420037e-01 4.6380993e-01 4.5878525e-01 4.4917655e-01 4.3507982e-01 4.1663591e-01 3.9402912e-01 3.6748532e-01 3.3726973e-01 3.0368425e-01 2.6706446e-01 2.2777625e-01 1.8621217e-01 1.4278752e-01 9.7936188e-02 5.2106308e-02 5.7558000e-03 -4.0652218e-02 -8.6654053e-02 -1.3179007e-01 -1.7560928e-01 -2.1767387e-01 -2.5756352e-01 -2.9487969e-01 -3.2924952e-01 -3.6032960e-01 -3.8780938e-01 -4.1141430e-01 -4.3090850e-01 -4.4609721e-01 -4.5682866e-01 -4.6299563e-01 -3.7387666e-01 -3.7200884e-01 -3.6642402e-01 -3.5717802e-01 -3.4436321e-01 -3.2810764e-01 -3.0857373e-01 -2.8595665e-01 -2.6048238e-01 -2.3240546e-01 -2.0200642e-01 -1.6958901e-01 -1.3547711e-01 -1.0001157e-01 -6.3546749e-02 -2.6446989e-02 1.0917020e-02 4.8171950e-02 8.4945561e-02 1.2087043e-01 1.5558759e-01 1.8875018e-01 2.2002683e-01 2.4910506e-01 2.7569430e-01 2.9952890e-01 3.2037071e-01 3.3801148e-01 3.5227495e-01 3.6301860e-01 3.7013509e-01 3.7355332e-01 3.7323912e-01 3.6919564e-01 3.6146328e-01 3.5011930e-01 3.3527705e-01 3.1708481e-01 2.9572437e-01 2.7140915e-01 2.4438210e-01 2.1491326e-01 1.8329708e-01 1.4984946e-01 1.1490459e-01 7.8811630e-02 4.1931213e-02 4.6318322e-03 -3.2713828e-02 -6.9732623e-02 -1.0605467e-01 -1.4131706e-01 -1.7516745e-01 -2.0726763e-01 -2.3729686e-01 -2.6495509e-01 -2.8996598e-01 -3.1207963e-01 -3.3107508e-01 -3.4676254e-01 -3.5898526e-01 -3.6762112e-01 -3.7258384e-01 -2.7941550e-01 -2.7801958e-01 -2.7384579e-01 -2.6693582e-01 -2.5735872e-01 -2.4521017e-01 -2.3061156e-01 -2.1370876e-01 -1.9467065e-01 -1.7368746e-01 -1.5096884e-01 -1.2674179e-01 -1.0124837e-01 -7.4743318e-02 -4.7491454e-02 -1.9765070e-02 8.1587991e-03 3.6001149e-02 6.3483786e-02 9.0332115e-02 1.1627788e-01 1.4106183e-01 1.6443633e-01 1.8616785e-01 2.0603923e-01 2.2385194e-01 2.3942800e-01 2.5261177e-01 2.6327152e-01 2.7130076e-01 2.7661925e-01 2.7917385e-01 2.7893903e-01 2.7591715e-01 2.7013840e-01 2.6166051e-01 2.5056820e-01 2.3697229e-01 2.2100864e-01 2.0283674e-01 1.8263816e-01 1.6061472e-01 1.3698647e-01 1.1198950e-01 8.5873567e-02 5.8899613e-02 3.1337154e-02 3.4615846e-03 -2.4448572e-02 -5.2114447e-02 -7.9259611e-02 -1.0561284e-01 -1.3091082e-01 -1.5490078e-01 -1.7734303e-01 -1.9801332e-01 -2.1670513e-01 -2.3323169e-01 -2.4742788e-01 -2.5915185e-01 -2.6828646e-01 -2.7474044e-01 -2.7844931e-01 -1.8216250e-01 -1.8125245e-01 -1.7853138e-01 -1.7402649e-01 -1.6778278e-01 -1.5986264e-01 -1.5034520e-01 -1.3932557e-01 -1.2691384e-01 -1.1323403e-01 -9.8422821e-02 -8.2628205e-02 -6.6007996e-02 -4.8728257e-02 -3.0961640e-02 -1.2885666e-02 5.3190581e-03 2.3470636e-02 4.1387703e-02 5.8891237e-02 7.5806350e-02 9.1964031e-02 1.0720284e-01 1.2137051e-01 1.3432549e-01 1.4593833e-01 1.5609300e-01 1.6468805e-01 1.7163758e-01 1.7687217e-01 1.8033951e-01 1.8200496e-01 1.8185188e-01 1.7988179e-01 1.7611438e-01 1.7058730e-01 1.6335576e-01 1.5449203e-01 1.4408466e-01 1.3223765e-01 1.1906936e-01 1.0471137e-01 8.9307139e-02 7.3010581e-02 5.5984525e-02 3.8399091e-02 2.0429985e-02 2.2567500e-03 -1.5939034e-02 -3.3975560e-02 -5.1672614e-02 -6.8853372e-02 -8.5346170e-02 -1.0098622e-01 -1.1561724e-01 -1.2909306e-01 -1.4127902e-01 -1.5205337e-01 -1.6130845e-01 -1.6895179e-01 -1.7490702e-01 -1.7911464e-01 -1.8153260e-01 -8.3089403e-02 -8.2674302e-02 -8.1433147e-02 -7.9378338e-02 -7.6530408e-02 -7.2917811e-02 -6.8576643e-02 -6.3550281e-02 -5.7888944e-02 -5.1649201e-02 -4.4893396e-02 -3.7689031e-02 -3.0108089e-02 -2.2226318e-02 -1.4122468e-02 -5.8775118e-03 2.4261709e-03 1.0705612e-02 1.8878086e-02 2.6861937e-02 3.4577392e-02 4.1947361e-02 4.8898206e-02 5.5360477e-02 6.1269603e-02 6.6566545e-02 7.1198375e-02 7.5118814e-02 7.8288692e-02 8.0676334e-02 8.2257885e-02 8.3017543e-02 8.2947717e-02 8.2049104e-02 8.0330684e-02 7.7809627e-02 7.4511121e-02 7.0468125e-02 6.5721035e-02 6.0317282e-02 5.4310858e-02 4.7761778e-02 4.0735479e-02 3.3302164e-02 2.5536105e-02 1.7514897e-02 9.3186865e-03 1.0293666e-03 -7.2702383e-03 -1.5497201e-02 -2.3569322e-02 -3.1405945e-02 -3.8928770e-02 -4.6062633e-02 -5.2736252e-02 -5.8882948e-02 -6.4441306e-02 -6.9355787e-02 -7.3577288e-02 -7.7063629e-02 -7.9779976e-02 -8.1699187e-02 -8.2802088e-02 From dai_shuo at hotmail.com Mon Apr 8 21:13:09 2002 From: dai_shuo at hotmail.com (Dai Shuo) Date: Tue, 09 Apr 2002 09:13:09 +0800 Subject: [vtkusers] a question about vtk file format Message-ID: hi, everyone I want to save several vtkPolyData objects into the same .vtk file. How to do that? I studied the document about vtk format, but didn't find the way. Daishuo _________________________________________________________________ ?????????????? MSN Messenger? http://messenger.microsoft.com/cn From heitkamp at ameritech.net Mon Apr 8 21:26:29 2002 From: heitkamp at ameritech.net (F. Heitkamp) Date: Mon, 8 Apr 2002 21:26:29 -0400 Subject: [vtkusers] CVS problem Message-ID: <20020409012629.GA18189@pc1.ameritech.net> I tried to pull the sources from CVS and got this error. I don't think the problem is at my end. I have about 600MB free on the drives in question. Logging in to :pserver:anonymous at public.kitware.com:2401/cvsroot/VTK CVS password: cannot mkdir /mounts/ram/cvs-serv3619/VTK/Graphics/Testing No space left on device -- Fred From husthj at yahoo.com Mon Apr 8 23:40:58 2002 From: husthj at yahoo.com (Denny) Date: Mon, 8 Apr 2002 20:40:58 -0700 (PDT) Subject: [vtkusers] C++ link error about vtkMarchingCubes Message-ID: <20020409034058.86517.qmail@web20203.mail.yahoo.com> Hi,all Here is a section code of my programe: vtkMarchingCubes *skin = vtkMarchingCubes::New(); skin->SetInput(v16->GetOutput()); int contourNum=10; skin->GenerateValues(contourNum,900,1100); I have compiled vtkPented myself and put vtkPatented.lib of debug version in the lib folder. Project settings have been set correctly.But when I complie with this code, a error message popup Linking... jkl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkMarchingCubes::GenerateValues(int,float,float)" (__imp_?GenerateValues at vtkMarchingCubes@@QAEXHMM at Z) jkl.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkMarchingCubes * __cdecl vtkMarchingCubes::New(void)" (__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ) Debug/jkl.exe : fatal error LNK1120: 2 unresolved externals. Why this could happen? __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From a.trum at teraport.de Tue Apr 9 02:30:44 2002 From: a.trum at teraport.de (Alexander Trum) Date: Tue, 09 Apr 2002 08:30:44 +0200 Subject: [vtkusers] CVS problem References: <20020409012629.GA18189@pc1.ameritech.net> Message-ID: <3CB28A94.E0912ED6@teraport.de> Hello As far as i know CVS writes some temporary files in /tmp or /var/tmp or something like that. So please check this directories if there is free diskspace. Bye, Alex "F. Heitkamp" schrieb: > > I tried to pull the sources from CVS and got this error. > I don't think the problem is at my end. I have about 600MB > free on the drives in question. > > Logging in to :pserver:anonymous at public.kitware.com:2401/cvsroot/VTK > CVS password: > cannot mkdir /mounts/ram/cvs-serv3619/VTK/Graphics/Testing > No space left on device > > -- > Fred > _______________________________________________ > 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: a.trum.vcf Type: text/x-vcard Size: 409 bytes Desc: Karte f?r Alexander Trum URL: From husthj at yahoo.com Tue Apr 9 03:26:21 2002 From: husthj at yahoo.com (Denny) Date: Tue, 9 Apr 2002 00:26:21 -0700 (PDT) Subject: [vtkusers] How to set enviroment variable VTK_DATA_ROOT Message-ID: <20020409072621.17281.qmail@web20201.mail.yahoo.com> I run the finance example and it give me an error message:"Please set enviroment variable VTK_DATA_ROOT". Then I add a system variable named VTK_DATA_ROOT with value "c:/program files/vtk40/vtkData" but it seemed not work. How can I set this variable? __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From nick.brealey at culham.com Tue Apr 9 03:29:34 2002 From: nick.brealey at culham.com (Nicholas Brealey) Date: Tue, 09 Apr 2002 08:29:34 +0100 Subject: [vtkusers] VTK and QT References: <200204082032.g38KW4J19031@phobos.space.swri.edu> Message-ID: <3CB2985E.FDC13C5C@culham.com> Joey Mukherjee wrote: > > I notice there are three versions of mixing VTK and QT. Is there a consensus on > which is the better of the three? Are their advantages/disadvantages of any of > them? Has anyone tried any of them on Mac OS X? Could you post the links to the three versions. I just converted my application from VTK 2.2 + Qt 1.42 to VTK 4.0 + Qt 1.4.2 and the VTK widget I had from 4 years ago stopped working so I used the Qt Xt/Motif Extension and followed the examples for integrating VTK with Motif. Regards Nick From lucantiga at hotmail.com Tue Apr 9 03:30:23 2002 From: lucantiga at hotmail.com (Luca Antiga) Date: Tue, 09 Apr 2002 09:30:23 +0200 Subject: [vtkusers] Active Contour + Edge Detector Message-ID: Why don't you take a look at the Insight toolkit (ITK)? It provides what you need and it can easily communicate with VTK. Luca >From: Mathieu Malaterre >To: VTK users list >Subject: [vtkusers] Active Contour + Edge Detector >Date: Mon, 08 Apr 2002 16:49:26 -0400 > >Hi all, >Is there any available methods of implementation of active >contour(snakes) algorithm and/or edge detector? >I will be >grateful if someone can provide links to the implementation of these >algorithms in vtk. >Thanks in advance for the help > >Mathieu ><< mmalat.vcf >> _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From prabhu at aero.iitm.ernet.in Tue Apr 9 04:10:39 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 9 Apr 2002 13:40:39 +0530 Subject: [vtkusers] Error with VTK4.0 and python2.2: "ValueError: meth od requires a VTK object" In-Reply-To: <67348AAF0635D511866A00508BDF0CC802819B01@fszhtv11.wpafb.af.mil> References: <67348AAF0635D511866A00508BDF0CC802819B01@fszhtv11.wpafb.af.mil> Message-ID: <15538.41471.712988.381963@monster.linux.in> >>>>> "HS" == Harris Scott R writes: HS> Where do folks normally install VTK4.0? Do they just leave it HS> where it was built, or do they move it someplace else? I guess HS> leaving it in the build directory is cleaner and safer. I usually leave it installed in the build dir and simply set my LD_LIBRARY_PATH and PYTHONPATH appropriately. prabhu From prabhu at aero.iitm.ernet.in Tue Apr 9 04:09:40 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 9 Apr 2002 13:39:40 +0530 Subject: [vtkusers] Interpolating vector data In-Reply-To: <3CB16B1D.72DF0F0B@icom-consulting.de> References: <3CB16B1D.72DF0F0B@icom-consulting.de> Message-ID: <15538.41412.403244.190033@monster.linux.in> >>>>> "CP" == Christian Poecher writes: CP> Hi, I would like to interpolate vector data with a CP> RectilinearGrid topology and map the vectors on gylphs.For CP> example: If there is a rectilinear grid with points at (x y z) CP> 1 1 1 and 2 1 1, I want a vector data of the point 1.5 1 1. I CP> thought vtkProbeFilter would do it, but I don't see how. CP> Does anyone know, if vtk can do this or which class I must CP> use? Maybe someone knows an example? rgrep on the Examples directory in the VTK 4.x sources and you should get a few examples. Similarly look at the examples in the 3.2 graphics directory. There is a probe.tcl and probe.py. The idea is that you set the probe's input (via SetInput) to the polydata (actually any subclass of vtkDataSet) where you want the interpolated values and then set the source of the filter to the data that you want interpolated. The output of the filter will contain the values of the probed data at the specified locations. prabhu From chrisj at epcc.ed.ac.uk Tue Apr 9 04:39:03 2002 From: chrisj at epcc.ed.ac.uk (Chris Johnson) Date: Tue, 9 Apr 2002 09:39:03 +0100 (BST) Subject: [vtkusers] Trouble with Compiling Java Extensions In-Reply-To: Message-ID: Hi Jon, Before the compilation, you will need to create the VTK_HOME/java directory and VTK_HOME/java/vtk directory, if you haven't already. I don't know if this is the problem you are encountering. These directories are not created automatically. A previous email to the list from Phil Varner has some useful information, if you haven't already come across it: Date: Tue, 5 Mar 2002 23:33:32 -0500 (EST) From: Phil Varner Let me know how you get on. We have installed vtk & java here many times (on Solaris) and it has apparently been successful in compilation, but never in running with java due to problems with shared libraries. The tcl examples work well though. Cheers, Chris On Mon, 8 Apr 2002, jon n wrote: > Hi, I'm attempting to compile the Java stuff and having a little trouble. > First, it couldn't find jni.h because our Java is installed in a weird > location, so I added the write paths to the list of paths in Find-JNI in > CMake. So that worked, but now when the make begins creating the actual > .java files its failing without really giving a reason. Is there another > thing which needs to be set somewhere about Java compiling? > Error opening output file 0 > make[3]: *** [/home/datatmp/VTK_CVS/VTK/java/vtk/vtkAbstractMapper.java] > Error 1 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Common] Error 2 > make: *** [default_target] Error 2 \-----------------------------------------------------------------------/ -Dr Chris Johnson (Applications Consultant) +44 (0)131 650 5201 (phone)- -chrisj at epcc.ed.ac.uk +44 (0)131 650 6555 (fax) - -http://www.epcc.ed.ac.uk/~chrisj/ - -Rm 3406, EPCC, JCMB, Edinburgh University, - -Mayfield Road, Edinburgh, EH9 3JZ, UK - /-----------------------------------------------------------------------\ From prabhu at aero.iitm.ernet.in Tue Apr 9 04:55:51 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 9 Apr 2002 14:25:51 +0530 Subject: [vtkusers] SetScalars of SG from Field In-Reply-To: <1020408114553.ZM29173@kelgia.ncsa.uiuc.edu> References: <1020408114553.ZM29173@kelgia.ncsa.uiuc.edu> Message-ID: <15538.44183.863336.604073@monster.linux.in> >>>>> "RH" == Randy Heiland writes: RH> I'm trying to update scalars in a struct grid from a FIELD RH> file, but the results don't get re-rendered properly. What am RH> I missing? Your code gives me the same results. After trying many things I got around the problem by doing the following: sg1 = vtkStructuredGrid() sg1.DeepCopy(sg) sg1.GetPointData().SetScalars(so) mapper.SetInput(sg1) I then tried this: m = vtkDataSetMapper() m.SetInput(sg) actor.SetMapper(m) Both approaches work fine. This looks like a bug somewhere in vtkDataSetMapper? I believe there is also a similar problem with the pnmwriter. Even tho the rendered image shows up correctly it does not dump the new image. FYI, I'm using 'vtk version 4.1.1, vtk source $Revision: 1.1200 $, $Date: 2002/04/07 03:45:13 $ (GMT)' prabhu From popescu at tecno.ior.it Tue Apr 9 05:00:44 2002 From: popescu at tecno.ior.it (Florin Popescu) Date: Tue, 09 Apr 2002 11:00:44 +0200 Subject: [vtkusers] MATLAB VTK and JAVA set-up? Message-ID: <5.1.0.14.0.20020409105911.00b11bd0@tecno.ior.it> Hi wise users, I am trying to set up .vtk 4.0 support in Matlab Release 12.1 (6.2). Craig Johnson had set up .vtk 3.x with Matlab 12.0 http://public.kitware.com/pipermail/vtkusers/2001-February/005624.html but things have changed since. For one thing I have Win2000 Pro. and I installed the pre-compiled binary with java wrapper 4.0. Problem so far: Too long to explain all the various games I played with classpath.txt but the best I can do is to see vtk classes and import all vtk dlls except java.lang.System.load('C:/Programsi/vtk40/bin/vtkHybridJava.dll') java.lang.System.load('C:/Programs/vtk40/bin/vtkRenderingJava.dll') which throw java.lang.UnsatisfiedLinkError creating vtk java objects currently will create segmentation errors. I placed a copy of all vtk*.dlls in winnt/system, added a classpath variable in system etc. Do I have to recompile vtk with 'contrib' turned on? Why? Thanks, Florin Popescu, Bologna, Italy. From prabhu at aero.iitm.ernet.in Tue Apr 9 05:04:52 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 9 Apr 2002 14:34:52 +0530 Subject: [vtkusers] fuzziness on contour plot In-Reply-To: <3CB224E7.D234124C@email.arc.nasa.gov> References: <3CB224E7.D234124C@email.arc.nasa.gov> Message-ID: <15538.44724.285856.926128@monster.linux.in> >>>>> "SPV" == Shwu Ping Vong writes: SPV> Hi everyone, I used the following example code that comes SPV> with vtk to test on my data file. (see attachment. I'm not SPV> sure if I will attach it correctly. So if not, those who SPV> have matlab and could help me, my data file just came from SPV> running the following in matlab: x=[0.0:0.1:6.28]; y1=sin(x); SPV> y2=cos(x); z=y1'*y2;) The data in variable z forms the data SPV> of my 'zdata.vtk' that gets passed to SPV> vtkStructuredPointsReader. SPV> My question is: If you run matlab using surf(z) or SPV> contourf(z), you can see clear gradation of colors for the SPV> contour plot. But when I run the vtk codes, the contour plot SPV> comes out blurry. Is there a way to achieve the same kind of SPV> gradation of colors as in matlab? You could try to reduce the number of colors in the lookup table but that will make your results look worse. Actually, the values on your surface are really continuous so matlab is really fooling you if it creates discrete jumps in the color because the color represents the local value of your scalar. prabhu From prabhu at aero.iitm.ernet.in Tue Apr 9 05:06:21 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 9 Apr 2002 14:36:21 +0530 Subject: [vtkusers] a question about vtk file format In-Reply-To: References: Message-ID: <15538.44813.861832.57991@monster.linux.in> >>>>> "DS" == Dai Shuo writes: DS> hi, everyone I want to save several vtkPolyData objects into DS> the same .vtk file. How to do that? I studied the document DS> about vtk format, but didn't find the way. Use vtkAppendPolyData along with a vtkPolyDataWriter to do the job. prabhu From amati at ira.cnr.it Tue Apr 9 05:43:30 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 9 Apr 2002 11:43:30 +0200 (MET DST) Subject: [vtkusers] tlcTK problems Message-ID: Hi everybody, I know that this is a Vtk mailing list, but I will disturb you for a tcl problem that concerning execution of tcl procedure; I have the following code: proc crea {} { global a set a 4 } proc scrivi {} { puts stdout $a } wm withdraw . crea scrivi the tcl interpreter give me the followind error: Error in startup script: can't read "a": no such variable while executing "puts stdout $a" (procedure "scrivi" line 2) invoked from within "scrivi" (file "scrivi.tcl" line 13) it seems that tcl interpreter executes scrivi procedure before crea procedure. Why? isn't tcl a sequential iterpreter? Any idea how to executer crea procedure before the second one? Thank you very much. Best regards, Giancarlo ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From poecher at icom-consulting.de Tue Apr 9 06:40:33 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Tue, 09 Apr 2002 12:40:33 +0200 Subject: [vtkusers] tlcTK problems References: Message-ID: <3CB2C521.F5411D86@icom-consulting.de> For Tcl questions you'd better try the newsgroup comp.lang.tcl. The problem with your code is, that the scope of variable a is just crea. the line "global a" does exactly nothing. You must declare a outside of the vars, if you want to work with globals. The second error is, that you need a line "global a" in scrivi, to access the var a. I'd recommend reading the tcl-man entry for global for details on scope of variables. The corrected code is: proc crea {} { global a set a 4 } proc scrivi {} { global a puts stdout $a } wm withdraw . set a init crea scrivi Giancarlo Amati schrieb: > > Hi everybody, I know that this is a Vtk mailing list, but I will disturb > you for a tcl problem that concerning execution of tcl procedure; I have > the following code: > > proc crea {} { > global a > set a 4 > } > > proc scrivi {} { > puts stdout $a > } > > wm withdraw . > > crea > scrivi > > the tcl interpreter give me the followind error: > > Error in startup script: can't read "a": no such variable > while executing > "puts stdout $a" > (procedure "scrivi" line 2) > invoked from within > "scrivi" > (file "scrivi.tcl" line 13) > > it seems that tcl interpreter executes scrivi procedure before crea > procedure. Why? isn't tcl a sequential iterpreter? > Any idea how to executer crea procedure before the second one? > > Thank you very much. > > Best regards, > Giancarlo > > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From andy.cedilnik at kitware.com Tue Apr 9 07:20:16 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 09 Apr 2002 07:20:16 -0400 Subject: [vtkusers] CVS problem In-Reply-To: <20020409012629.GA18189@pc1.ameritech.net> References: <20020409012629.GA18189@pc1.ameritech.net> Message-ID: <1018351219.784.3.camel@xanth.kitwarein.com> On Mon, 2002-04-08 at 21:26, F. Heitkamp wrote: > I tried to pull the sources from CVS and got this error. > I don't think the problem is at my end. I have about 600MB > free on the drives in question. > > Logging in to :pserver:anonymous at public.kitware.com:2401/cvsroot/VTK > CVS password: > cannot mkdir /mounts/ram/cvs-serv3619/VTK/Graphics/Testing > No space left on device Well, what happened was that to make CVS faster we user tmpfs for storing cvs temporary files. TMPFS for non-linux people is a file system that resides in the memory. It resizes dynamically and is being paged and everything. Initially we setup the size of this disk to be up to 1g, which turned out not to be enough. I resized tmpfs partition to be 2g, but I will potentially change it to 3g. Please let me know if there are any more problems. Andy Cedilnik Kitware Inc. From heitkamp at ameritech.net Tue Apr 9 08:09:40 2002 From: heitkamp at ameritech.net (Fred Heitkamp) Date: Tue, 9 Apr 2002 08:09:40 -0400 (EDT) Subject: [vtkusers] CVS problem In-Reply-To: <1018351219.784.3.camel@xanth.kitwarein.com> Message-ID: On 9 Apr 2002, Andy Cedilnik wrote: Thanks. I was able to pull the sources, though I did get one error about unexpected end of file (or something like that). Restarting the pull again resulted in finishing without error. Fred > On Mon, 2002-04-08 at 21:26, F. Heitkamp wrote: > > I tried to pull the sources from CVS and got this error. > > I don't think the problem is at my end. I have about 600MB > > free on the drives in question. > > > > Logging in to :pserver:anonymous at public.kitware.com:2401/cvsroot/VTK > > CVS password: > > cannot mkdir /mounts/ram/cvs-serv3619/VTK/Graphics/Testing > > No space left on device > > Well, what happened was that to make CVS faster we user tmpfs for > storing cvs temporary files. TMPFS for non-linux people is a file > system that resides in the memory. It resizes dynamically and is > being paged and everything. Initially we setup the size of this > disk to be up to 1g, which turned out not to be enough. I resized > tmpfs partition to be 2g, but I will potentially change it to 3g. > Please let me know if there are any more problems. > > Andy Cedilnik > Kitware Inc. > From rdybowski at btinternet.com Tue Apr 9 08:59:57 2002 From: rdybowski at btinternet.com (Richard Dybowski) Date: Tue, 09 Apr 2002 13:59:57 +0100 Subject: [vtkusers] Problem with using CMake for VTK for Borland C++ Builder 5 Message-ID: <5.1.0.14.2.20020409132342.03913d40@mail.btinternet.com> I am new to CMake (and to C++), and I am trying to use it to build VTK for use with Borland C++, but I have run into some problems. To test out VTK, I am using the C++ example code for a sphere that is given in http://public.kitware.com/VTK/example-code.php , but when I try to link the corresponding object file (with Borland C++ Builder 5), I get linker error messages such as "[Linker Error] Unresolved external 'vtkSphereSource::New()' referenced from ....." even though I have set the library path to point to both the subdirectory containing the VTK lib files and the subdirectory containing vtkSphereSource.obj I am not sure that VTK was built correctly. The reason for my suspicion is that, whilst the Borland make file was running on the Makefile produced by CMake, the error message "Bad command or file name" appeared many times during the attempted build. In the CMake GUI, I used the default values associated with "Build for: Borland Makefile". For "Where is the source code:" I used the subdirectory where the contents of vtk40Src.zip were unpacked. The Makefile produced by CMake is attached. I would be grateful for any help with these problems. Richard ------------------------------- Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK Tel (mobile): 079 76 25 00 92 -------------- next part -------------- # CMAKE generated Makefile, DO NOT EDIT! # Generated by "Borland Makefiles" Generator, CMake Version 1.2 # Generated from the following files: # C:/Kitware/build/vtk40/CMakeCache.txt # C:/Kitware/src/vtk40/VTK/CMakeLists.txt # C:/Kitware/src/vtk40/VTK/UseVTK.cmake.in # C:/Kitware/src/vtk40/VTK/vtkCMakeOptions.cmake # C:/Kitware/src/vtk40/VTK/vtkConfigure.h.in # C:/Kitware/src/vtk40/VTK/vtkToolkits.h.in # C:/PROGRA~1/CMAKE/Modules/Dart.cmake # C:/PROGRA~1/CMAKE/Modules/FindDart.cmake # C:/PROGRA~1/CMAKE/Modules/FindOpenGL.cmake # C:/PROGRA~1/CMAKE/Templates/CMakeBorlandWindowsSystemConfig.cmake # Suppresses display of executed commands .SILENT: CMAKE_MAKEFILE_SOURCES = C:\Kitware\src\vtk40\VTK\CMakeLists.txt C:\Kitware\src\vtk40\VTK\UseVTK.cmake.in C:\Kitware\src\vtk40\VTK\vtkCMakeOptions.cmake C:\Kitware\src\vtk40\VTK\vtkConfigure.h.in C:\Kitware\src\vtk40\VTK\vtkToolkits.h.in C:\PROGRA~1\CMAKE\Modules\Dart.cmake C:\PROGRA~1\CMAKE\Modules\FindDart.cmake C:\PROGRA~1\CMAKE\Modules\FindOpenGL.cmake C:\PROGRA~1\CMAKE\Templates\CMakeBorlandWindowsSystemConfig.cmake C:\Kitware\build\vtk40\CMakeCache.txt # NMake Makefile generated by cmake CMAKE_C_COMPILER = "C:\Program Files\Borland\CBuilder5\Bin\\bcc32" CMAKE_CXX_COMPILER = "C:\Program Files\Borland\CBuilder5\Bin\\bcc32" CMAKE_COMMAND = C:\PROGRA~1\CMAKE\BIN\CMAKE.EXE # general varibles used in the makefile CMAKE_STANDARD_WINDOWS_LIBRARIES = import32.lib CMAKE_C_FLAGS = -w- -whid -waus -tWM ${CMAKE_ANSI_CFLAGS} -Od -v CMAKE_OBJECT_FILE_SUFFIX = .obj CMAKE_EXECUTABLE_SUFFIX = .exe CMAKE_STATICLIB_SUFFIX = .lib CMAKE_SHLIB_SUFFIX = .dll CMAKE_SHLIB_CFLAGS = -tWR CMAKE_LINKER_FLAGS = -tWM -v CMAKE_CXX_FLAGS = -P -w- -whid -waus -wpar -tWM -Od -v !IF "$(OS)" == "Windows_NT" NULL= !ELSE NULL=nul !ENDIF RM = del CMAKE_CURRENT_SOURCE = C:\Kitware\src\vtk40\VTK CMAKE_CURRENT_BINARY = C:\Kitware\build\vtk40 CMAKE_SOURCE_DIR = C:\Kitware\src\vtk40\VTK CMAKE_BINARY_DIR = C:\Kitware\build\vtk40 INCLUDE_FLAGS = -IC:/Kitware/src/vtk40/VTK -IC:/Kitware/src/vtk40/VTK/Rendering -IC:/Kitware/build/vtk40 -IC:/Kitware/src/vtk40/VTK/Common -IC:/Kitware/src/vtk40/VTK/Filtering -IC:/Kitware/src/vtk40/VTK/Imaging -IC:/Kitware/src/vtk40/VTK/Graphics -IC:/Kitware/src/vtk40/VTK/IO -IC:/Kitware/src/vtk40/VTK/Utilities/zlib -IC:/Kitware/src/vtk40/VTK/Utilities/png -IC:/Kitware/src/vtk40/VTK/Utilities/jpeg -IC:/Kitware/src/vtk40/VTK/Common/Testing/Cxx #--------------------------------------------------------- # Default target executed when no arguments are given to make, first make sure cmake.depends exists, cmake.check_depends is up-to-date, check the sources, then build the all target # default_target: $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.depends $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) cmake.check_depends $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) -f cmake.check_depends $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) all TARGETS = CLEAN_OBJECT_FILES = # Variable for making default_target in subdirectories. SUBDIR_BUILD = \ default_target_Wrapping \ default_target_Utilities \ default_target_Common \ default_target_Filtering \ default_target_Imaging \ default_target_Graphics \ default_target_IO \ default_target_Rendering \ default_target_Common_Testing \ default_target_Filtering_Testing \ default_target_Graphics_Testing \ default_target_Imaging_Testing \ default_target_IO_Testing \ default_target_Rendering_Testing # Targets for making default_target in subdirectories. default_target_Wrapping: if not exist "C:\Kitware\build\vtk40\Wrapping\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Wrapping cd C:\Kitware\build\vtk40\Wrapping $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Utilities: default_target_Wrapping if not exist "C:\Kitware\build\vtk40\Utilities\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Utilities cd C:\Kitware\build\vtk40\Utilities $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Common: default_target_Utilities if not exist "C:\Kitware\build\vtk40\Common\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Common cd C:\Kitware\build\vtk40\Common $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Filtering: default_target_Common if not exist "C:\Kitware\build\vtk40\Filtering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Filtering cd C:\Kitware\build\vtk40\Filtering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Imaging: default_target_Filtering if not exist "C:\Kitware\build\vtk40\Imaging\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Imaging cd C:\Kitware\build\vtk40\Imaging $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Graphics: default_target_Imaging if not exist "C:\Kitware\build\vtk40\Graphics\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Graphics cd C:\Kitware\build\vtk40\Graphics $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_IO: default_target_Graphics if not exist "C:\Kitware\build\vtk40\IO\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/IO cd C:\Kitware\build\vtk40\IO $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Rendering: default_target_IO if not exist "C:\Kitware\build\vtk40\Rendering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Rendering cd C:\Kitware\build\vtk40\Rendering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Common_Testing: default_target_Rendering if not exist "C:\Kitware\build\vtk40\Common\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Common/Testing cd C:\Kitware\build\vtk40\Common\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Filtering_Testing: default_target_Common_Testing if not exist "C:\Kitware\build\vtk40\Filtering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Filtering/Testing cd C:\Kitware\build\vtk40\Filtering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Graphics_Testing: default_target_Filtering_Testing if not exist "C:\Kitware\build\vtk40\Graphics\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Graphics/Testing cd C:\Kitware\build\vtk40\Graphics\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Imaging_Testing: default_target_Graphics_Testing if not exist "C:\Kitware\build\vtk40\Imaging\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Imaging/Testing cd C:\Kitware\build\vtk40\Imaging\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_IO_Testing: default_target_Imaging_Testing if not exist "C:\Kitware\build\vtk40\IO\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/IO/Testing cd C:\Kitware\build\vtk40\IO\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 default_target_Rendering_Testing: default_target_IO_Testing if not exist "C:\Kitware\build\vtk40\Rendering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building default_target in directory C:/Kitware/build/vtk40/Rendering/Testing cd C:\Kitware\build\vtk40\Rendering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) default_target cd C:\Kitware\build\vtk40 # Variable for making clean in subdirectories. SUBDIR_CLEAN = \ clean_Wrapping \ clean_Utilities \ clean_Common \ clean_Filtering \ clean_Imaging \ clean_Graphics \ clean_IO \ clean_Rendering \ clean_Common_Testing \ clean_Filtering_Testing \ clean_Graphics_Testing \ clean_Imaging_Testing \ clean_IO_Testing \ clean_Rendering_Testing # Targets for making clean in subdirectories. clean_Wrapping: if not exist "C:\Kitware\build\vtk40\Wrapping\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Wrapping cd C:\Kitware\build\vtk40\Wrapping $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Utilities: clean_Wrapping if not exist "C:\Kitware\build\vtk40\Utilities\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Utilities cd C:\Kitware\build\vtk40\Utilities $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Common: clean_Utilities if not exist "C:\Kitware\build\vtk40\Common\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Common cd C:\Kitware\build\vtk40\Common $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Filtering: clean_Common if not exist "C:\Kitware\build\vtk40\Filtering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Filtering cd C:\Kitware\build\vtk40\Filtering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Imaging: clean_Filtering if not exist "C:\Kitware\build\vtk40\Imaging\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Imaging cd C:\Kitware\build\vtk40\Imaging $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Graphics: clean_Imaging if not exist "C:\Kitware\build\vtk40\Graphics\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Graphics cd C:\Kitware\build\vtk40\Graphics $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_IO: clean_Graphics if not exist "C:\Kitware\build\vtk40\IO\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/IO cd C:\Kitware\build\vtk40\IO $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Rendering: clean_IO if not exist "C:\Kitware\build\vtk40\Rendering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Rendering cd C:\Kitware\build\vtk40\Rendering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Common_Testing: clean_Rendering if not exist "C:\Kitware\build\vtk40\Common\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Common/Testing cd C:\Kitware\build\vtk40\Common\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Filtering_Testing: clean_Common_Testing if not exist "C:\Kitware\build\vtk40\Filtering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Filtering/Testing cd C:\Kitware\build\vtk40\Filtering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Graphics_Testing: clean_Filtering_Testing if not exist "C:\Kitware\build\vtk40\Graphics\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Graphics/Testing cd C:\Kitware\build\vtk40\Graphics\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Imaging_Testing: clean_Graphics_Testing if not exist "C:\Kitware\build\vtk40\Imaging\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Imaging/Testing cd C:\Kitware\build\vtk40\Imaging\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_IO_Testing: clean_Imaging_Testing if not exist "C:\Kitware\build\vtk40\IO\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/IO/Testing cd C:\Kitware\build\vtk40\IO\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 clean_Rendering_Testing: clean_IO_Testing if not exist "C:\Kitware\build\vtk40\Rendering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building clean in directory C:/Kitware/build/vtk40/Rendering/Testing cd C:\Kitware\build\vtk40\Rendering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) clean cd C:\Kitware\build\vtk40 # Variable for making depend in subdirectories. SUBDIR_DEPEND = \ depend_Wrapping \ depend_Utilities \ depend_Common \ depend_Filtering \ depend_Imaging \ depend_Graphics \ depend_IO \ depend_Rendering \ depend_Common_Testing \ depend_Filtering_Testing \ depend_Graphics_Testing \ depend_Imaging_Testing \ depend_IO_Testing \ depend_Rendering_Testing # Targets for making depend in subdirectories. depend_Wrapping: if not exist "C:\Kitware\build\vtk40\Wrapping\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Wrapping cd C:\Kitware\build\vtk40\Wrapping $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Utilities: depend_Wrapping if not exist "C:\Kitware\build\vtk40\Utilities\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Utilities cd C:\Kitware\build\vtk40\Utilities $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Common: depend_Utilities if not exist "C:\Kitware\build\vtk40\Common\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Common cd C:\Kitware\build\vtk40\Common $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Filtering: depend_Common if not exist "C:\Kitware\build\vtk40\Filtering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Filtering cd C:\Kitware\build\vtk40\Filtering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Imaging: depend_Filtering if not exist "C:\Kitware\build\vtk40\Imaging\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Imaging cd C:\Kitware\build\vtk40\Imaging $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Graphics: depend_Imaging if not exist "C:\Kitware\build\vtk40\Graphics\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Graphics cd C:\Kitware\build\vtk40\Graphics $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_IO: depend_Graphics if not exist "C:\Kitware\build\vtk40\IO\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/IO cd C:\Kitware\build\vtk40\IO $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Rendering: depend_IO if not exist "C:\Kitware\build\vtk40\Rendering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Rendering cd C:\Kitware\build\vtk40\Rendering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Common_Testing: depend_Rendering if not exist "C:\Kitware\build\vtk40\Common\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Common/Testing cd C:\Kitware\build\vtk40\Common\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Filtering_Testing: depend_Common_Testing if not exist "C:\Kitware\build\vtk40\Filtering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Filtering/Testing cd C:\Kitware\build\vtk40\Filtering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Graphics_Testing: depend_Filtering_Testing if not exist "C:\Kitware\build\vtk40\Graphics\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Graphics/Testing cd C:\Kitware\build\vtk40\Graphics\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Imaging_Testing: depend_Graphics_Testing if not exist "C:\Kitware\build\vtk40\Imaging\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Imaging/Testing cd C:\Kitware\build\vtk40\Imaging\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_IO_Testing: depend_Imaging_Testing if not exist "C:\Kitware\build\vtk40\IO\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/IO/Testing cd C:\Kitware\build\vtk40\IO\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 depend_Rendering_Testing: depend_IO_Testing if not exist "C:\Kitware\build\vtk40\Rendering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building depend in directory C:/Kitware/build/vtk40/Rendering/Testing cd C:\Kitware\build\vtk40\Rendering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) depend cd C:\Kitware\build\vtk40 # Variable for making install in subdirectories. SUBDIR_INSTALL = \ install_Wrapping \ install_Utilities \ install_Common \ install_Filtering \ install_Imaging \ install_Graphics \ install_IO \ install_Rendering \ install_Common_Testing \ install_Filtering_Testing \ install_Graphics_Testing \ install_Imaging_Testing \ install_IO_Testing \ install_Rendering_Testing # Targets for making install in subdirectories. install_Wrapping: if not exist "C:\Kitware\build\vtk40\Wrapping\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Wrapping cd C:\Kitware\build\vtk40\Wrapping $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Utilities: install_Wrapping if not exist "C:\Kitware\build\vtk40\Utilities\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Utilities cd C:\Kitware\build\vtk40\Utilities $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Common: install_Utilities if not exist "C:\Kitware\build\vtk40\Common\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Common cd C:\Kitware\build\vtk40\Common $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Filtering: install_Common if not exist "C:\Kitware\build\vtk40\Filtering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Filtering cd C:\Kitware\build\vtk40\Filtering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Imaging: install_Filtering if not exist "C:\Kitware\build\vtk40\Imaging\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Imaging cd C:\Kitware\build\vtk40\Imaging $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Graphics: install_Imaging if not exist "C:\Kitware\build\vtk40\Graphics\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Graphics cd C:\Kitware\build\vtk40\Graphics $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_IO: install_Graphics if not exist "C:\Kitware\build\vtk40\IO\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/IO cd C:\Kitware\build\vtk40\IO $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Rendering: install_IO if not exist "C:\Kitware\build\vtk40\Rendering\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Rendering cd C:\Kitware\build\vtk40\Rendering $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Common_Testing: install_Rendering if not exist "C:\Kitware\build\vtk40\Common\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Common/Testing cd C:\Kitware\build\vtk40\Common\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Filtering_Testing: install_Common_Testing if not exist "C:\Kitware\build\vtk40\Filtering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Filtering/Testing cd C:\Kitware\build\vtk40\Filtering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Graphics_Testing: install_Filtering_Testing if not exist "C:\Kitware\build\vtk40\Graphics\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Graphics/Testing cd C:\Kitware\build\vtk40\Graphics\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Imaging_Testing: install_Graphics_Testing if not exist "C:\Kitware\build\vtk40\Imaging\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Imaging/Testing cd C:\Kitware\build\vtk40\Imaging\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_IO_Testing: install_Imaging_Testing if not exist "C:\Kitware\build\vtk40\IO\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/IO/Testing cd C:\Kitware\build\vtk40\IO\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 install_Rendering_Testing: install_IO_Testing if not exist "C:\Kitware\build\vtk40\Rendering\Testing\$(NULL)" $(MAKE) $(MAKESILENT) rebuild_cache echo Building install in directory C:/Kitware/build/vtk40/Rendering/Testing cd C:\Kitware\build\vtk40\Rendering\Testing $(MAKE) -$(MAKEFLAGS) $(MAKESILENT) install cd C:\Kitware\build\vtk40 #--------------------------------------------------------- # Default build rule # all: cmake.depends $(TARGETS) $(SUBDIR_BUILD) #--------------------------------------------------------- # remove generated files # clean: $(SUBDIR_CLEAN) -@ $(RM) $(CLEAN_OBJECT_FILES) $(EXECUTABLES) $(TARGETS) $(GENERATED_QT_FILES) $(GENERATED_FLTK_FILES) #--------------------------------------------------------- # Rule to build the cmake.depends and Makefile as side effect, if a source cmakelist file is out of date. # cmake.depends: $(CMAKE_MAKEFILE_SOURCES) echo $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Rule to build the cmake.check_depends and Makefile as side effect, if any source file has changed. # cmake.check_depends: echo $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Rule to force the build of cmake.depends # depend: $(SUBDIR_DEPEND) echo $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Rule to force the build of cmake.depends in the current directory only. # dependlocal: echo $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -S$(CMAKE_CURRENT_SOURCE) -O$(CMAKE_CURRENT_BINARY) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Rebuild CMakeCache.txt file # rebuild_cache: $(CMAKE_BINARY_DIR)/CMakeCache.txt echo $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Create CMakeCache.txt file # $(CMAKE_BINARY_DIR)/CMakeCache.txt: echo $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) #--------------------------------------------------------- # Rule to keep make from removing Makefiles if control-C is hit during a run of cmake. # .PRECIOUS: Makefile cmake.depends # Rules to build $(CMAKE_OBJECT_FILE_SUFFIX) files from their sources: #--------------------------------------------------------- # run any tests # test: echo C:/PROGRA~1/CMAKE/BIN/ctest.exe C:/PROGRA~1/CMAKE/BIN/ctest.exe INSTALL = C:/PROGRA~1/CMAKE/Templates/install-sh -c INSTALL_PROGRAM = $(INSTALL) INSTALL_DATA = $(INSTALL) -m 644 install: $(SUBDIR_INSTALL) @echo "Installing ..." @if [ ! -d $(DESTDIR)/usr/local/include/vtk ] ; then \ echo "Making directory $(DESTDIR)/usr/local/include/vtk "; \ mkdir -p $(DESTDIR)/usr/local/include/vtk; \ chmod 755 $(DESTDIR)/usr/local/include/vtk; \ else true; \ fi @ echo "Installing vtkConfigure.h " @if [ -f vtkConfigure.h ] ; then \ $(INSTALL_DATA) vtkConfigure.h $(DESTDIR)/usr/local/include/vtk; \ elif [ -f $(CMAKE_CURRENT_SOURCE)/vtkConfigure.h ] ; then \ $(INSTALL_DATA) $(CMAKE_CURRENT_SOURCE)/vtkConfigure.h $(DESTDIR)/usr/local/include/vtk; \ else \ echo " ERROR!!! Unable to find: vtkConfigure.h "; \ fi @ echo "Installing vtkToolkits.h " @if [ -f vtkToolkits.h ] ; then \ $(INSTALL_DATA) vtkToolkits.h $(DESTDIR)/usr/local/include/vtk; \ elif [ -f $(CMAKE_CURRENT_SOURCE)/vtkToolkits.h ] ; then \ $(INSTALL_DATA) $(CMAKE_CURRENT_SOURCE)/vtkToolkits.h $(DESTDIR)/usr/local/include/vtk; \ else \ echo " ERROR!!! Unable to find: vtkToolkits.h "; \ fi @ echo "Installing UseVTK.cmake " @if [ -f UseVTK.cmake ] ; then \ $(INSTALL_DATA) UseVTK.cmake $(DESTDIR)/usr/local/include/vtk; \ elif [ -f $(CMAKE_CURRENT_SOURCE)/UseVTK.cmake ] ; then \ $(INSTALL_DATA) $(CMAKE_CURRENT_SOURCE)/UseVTK.cmake $(DESTDIR)/usr/local/include/vtk; \ else \ echo " ERROR!!! Unable to find: UseVTK.cmake "; \ fi @ echo "Installing CMakeCache.txt " @if [ -f CMakeCache.txt ] ; then \ $(INSTALL_DATA) CMakeCache.txt $(DESTDIR)/usr/local/include/vtk; \ elif [ -f $(CMAKE_CURRENT_SOURCE)/CMakeCache.txt ] ; then \ $(INSTALL_DATA) $(CMAKE_CURRENT_SOURCE)/CMakeCache.txt $(DESTDIR)/usr/local/include/vtk; \ else \ echo " ERROR!!! Unable to find: CMakeCache.txt "; \ fi !include cmake.depends From Matthieu.Chabanas at imag.fr Tue Apr 9 09:06:12 2002 From: Matthieu.Chabanas at imag.fr (Matthieu Chabanas) Date: Tue, 09 Apr 2002 15:06:12 +0200 Subject: [vtkusers] pb displaying vertex and vertices Message-ID: <3CB2E744.887ED4BE@imag.fr> I have a (stupid) problem to display first a single 3D point, then a set of points. I have tried to port the example given in Examples/DataManipulation/Tcl/BuildUGrid.tcl to c++, but I can't see anything displayed... I use vtk4.0 + Qt2.3 + vtkQGL. For this particular example, I have tried with Visual C++ also, but same results. Am I missing something completely silly? Thanks for any help. Matt --- //--- A SINGLE POINT: vtkPoints * vertexPoints = vtkPoints::New(); vertexPoints->SetNumberOfPoints(1); vertexPoints->InsertPoint(0, 1.0, 1.0, 1.0); vtkVertex * aVertex = vtkVertex::New(); aVertex->GetPointIds()->SetId(0,0); vtkUnstructuredGrid * aVertexGrid = vtkUnstructuredGrid::New(); aVertexGrid->Allocate(1, 1); aVertexGrid->InsertNextCell(aVertex->GetCellType(), aVertex->GetPointIds()); aVertexGrid->SetPoints(vertexPoints); vtkDataSetMapper * aVertexMapper = vtkDataSetMapper::New(); aVertexMapper->SetInput(aVertexGrid); vtkActor * aVertexActor = vtkActor::New(); aVertexActor->SetMapper(aVertexMapper); aVertexActor->AddPosition(0, 0, 6); aVertexActor->GetProperty()->SetDiffuseColor(1, 1, 1); // A SET OF POINTS vtkPoints * polyVertexPoints = vtkPoints::New(); polyVertexPoints->SetNumberOfPoints(3); polyVertexPoints->InsertPoint(0, 0, 0, 0); polyVertexPoints->InsertPoint(1, 1, 0, 0); polyVertexPoints->InsertPoint(2, 1, 1, 0); vtkPolyVertex * aPolyVertex = vtkPolyVertex::New(); aPolyVertex->GetPointIds()->SetNumberOfIds(3); aPolyVertex->GetPointIds()->SetId(0, 0); aPolyVertex->GetPointIds()->SetId(1, 1); aPolyVertex->GetPointIds()->SetId(2, 2); vtkUnstructuredGrid * aPolyVertexGrid = vtkUnstructuredGrid::New(); aPolyVertexGrid->Allocate(1, 1); aPolyVertexGrid->InsertNextCell( aPolyVertex->GetCellType(), aPolyVertex->GetPointIds()); aPolyVertexGrid->SetPoints(polyVertexPoints); vtkDataSetMapper * aPolyVertexMapper = vtkDataSetMapper::New(); aPolyVertexMapper->SetInput(aPolyVertexGrid); vtkActor * aPolyVertexActor = vtkActor::New(); aPolyVertexActor->SetMapper(aPolyVertexMapper); aPolyVertexActor->AddPosition(2, 0, 6); aPolyVertexActor->GetProperty()->SetDiffuseColor(1, 1, 1); // The usual rendering stuff. vtkCamera *camera = vtkCamera::New(); camera->SetPosition(0,0,6); camera->SetFocalPoint(0,0,0); vtkRenderer *renderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); renderer->AddActor(aVertexActor); renderer->AddActor(aPolyVertexActor); renderer->SetActiveCamera(camera); renderer->ResetCamera(); renderer->SetBackground(1,1,1); renWin->SetSize(300,300); // interact with data renWin->Render(); iren->Start(); From Matthieu.Chabanas at imag.fr Tue Apr 9 09:06:15 2002 From: Matthieu.Chabanas at imag.fr (Matthieu Chabanas) Date: Tue, 09 Apr 2002 15:06:15 +0200 Subject: [vtkusers] VTK and QT References: <200204082032.g38KW4J19031@phobos.space.swri.edu> Message-ID: <3CB2E747.A2EEA493@imag.fr> Joey Mukherjee wrote: > > I notice there are three versions of mixing VTK and QT. Is there a consensus on > which is the better of the three? Are their advantages/disadvantages of any of > them? Has anyone tried any of them on Mac OS X? > I have been using VTK and Qt since a year now. - I first tried the "vtkandqt" library developped by Jan Stifter: no particular problem if you just need a renderer. - I then switched to vtkQGL (Jan Ehrhardt), which I found a little bit more convenient (all interactors are supported, you can pick actors, ...). Some classes are provided to display images (like vtkQGLImageViewer), but they did not correspond to my needs and did not work with vtk4.0 (problem with vtkImageReslice, mostly). I therefore developed my own SliveViewer class, which is pretty close to vtkImageViewer2 (you can zoom, pad, pick, ...) I am using Qt2.3.0 and vtk4.0, on windows w2k, linux and unix-true64 (alpha station). No Mac Os, sorry! All the mentionned packages are accessible via S?bastien's VTK links: http://www.barre.nom.fr/vtk/links-classes.html However, I am not sure Jan Ehrhardt web page (http://passat.mesh.de/~ehrhardt/vtkQGL/ ) is still responding ... Hope it helps, Matt From hardstone at hotmail.com Tue Apr 9 10:37:15 2002 From: hardstone at hotmail.com (Red Diamond) Date: Tue, 09 Apr 2002 07:37:15 -0700 Subject: [vtkusers] SUN installation Message-ID: We are trying to install VTK4.0 on SunOS 5.8. The problems begin when TCL_WRAP is set, otherwise there are no installation problems. Has anyone had similar problems with installation on Sun? *** Error code 1 The following command caused the error: /opt/sfw/bin/g++ -g -O2 vtkWrapTcl.o vtkParse.tab.o -L/srutility/guys2/VTK/bin/ -lpthread -ldl -lm -lpthread -ldl -lm -R/srutility/guys2/VTK/bin/ -o /srutility/guys2/VTK/bin/vtkWrapTcl Many thanks, R. _________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com From krw at viz-solutions.com Tue Apr 9 12:52:14 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Tue, 09 Apr 2002 09:52:14 -0700 Subject: [vtkusers] tlcTK problems In-Reply-To: <3CB2C521.F5411D86@icom-consulting.de> References: Message-ID: <5.1.0.14.0.20020409094742.00a6be98@127.0.0.1> >For Tcl questions you'd better try the newsgroup comp.lang.tcl. >The problem with your code is, that the scope of variable a is just >crea. the line "global a" does exactly nothing. You must declare a >outside of the vars, if you want to work with globals. >The second error is, that you need a line "global a" in scrivi, to >access the var a. Mr. Amati is correct that this should be directed to the tcl user's group, however, just to complete the archive on this one, "global a" does not do exactly nothing. You can declare a global variable inside a function for the first time. The only problem with the code was the lack of global declaration on the second proc. Kevin. From ted at caept.com Tue Apr 9 12:58:41 2002 From: ted at caept.com (Ted Christiansen) Date: Tue, 09 Apr 2002 18:58:41 +0200 Subject: [vtkusers] FEA models - displaying element edges Message-ID: <3CB31DC1.1AFFCEE@caept.com> Hello, What is the best way to display element edges when displaying quad or tri polygons? I have seen some samples that use some kind of offset in X,Y,Z but this only works when the elements are all in one plane. Any ideas? Ted From ted at caept.com Tue Apr 9 13:02:18 2002 From: ted at caept.com (Ted Christiansen) Date: Tue, 09 Apr 2002 19:02:18 +0200 Subject: [vtkusers] vtkScalarBar - how to get the fonts to be a nice size Message-ID: <3CB31E99.4FE7A69C@caept.com> Hello, I am having trouble with the vtkScalarBar. How can I get the fonts to be the point size I specify (i.e. 10 or 12 pitch) and remain that size when the window is resized? Ted From roland.schwarz at chello.at Tue Apr 9 13:32:37 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Tue, 9 Apr 2002 19:32:37 +0200 Subject: [vtkusers] Define Spherical Coordinate System References: Message-ID: <000d01c1dfed$58b4ed60$133da8c0@zoo> Have a look on vtkSphericalTransform. This class is in VTK since about two weeks. You will need to get it from CVS. Roland ----- Original Message ----- From: "Giancarlo Amati" To: Sent: Monday, April 08, 2002 2:36 PM Subject: [vtkusers] Define Spherical Coordinate System > Hello Everybody, > > my question is: I would like to represent points in their spherical > coordinates instead of transforming them in x,y and z coordinate using > known relations. > Is it possible to define a sperical coordinate system using vtk? > > Thank you very much. > > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From heiland at ncsa.uiuc.edu Tue Apr 9 13:49:25 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Tue, 9 Apr 2002 12:49:25 -0500 Subject: [vtkusers] vtkScaledTextActor & offscreen Message-ID: <1020409124925.ZM7594@kelgia.ncsa.uiuc.edu> Can someone tell me why a vtkScaledTextActor doesn't appear in a (Mesa) offscreen rendering (but does for onscreen)? (VTK4.0, Mesa 4.0, RH7.2) Else, can someone confirm/deny? thanks, --Randy Here are simple Python & Tcl scripts: ------------------------------------- from vtk import * ren1 = vtkRenderer() renWin = vtkRenderWindow() renWin.AddRenderer(ren1) offscreen = 1 offscreen = 0 if offscreen > 0: renWin.SetOffScreenRendering(1) else: iren= vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) text1Actor = vtkScaledTextActor() text1Mapper = vtkTextMapper() text1Actor.SetMapper(text1Mapper) text1Mapper.SetInput('frame=') #text1Mapper.SetFontSize(14) text1Actor.GetProperty().SetColor(1.0,1.0,1.0) ren1.AddActor2D(text1Actor) renWin.Render() w2if = vtkWindowToImageFilter() w2if.SetInput( renWin ) pnmWriter = vtkPNMWriter() pnmWriter.SetInput(w2if.GetOutput()) pnmWriter.SetFileName("img1.pnm") pnmWriter.Write() if offscreen == 0: iren.Start() ---------------------------------------- package require vtk package require vtkinteraction vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren #iren SetRenderWindow renWin renWin SetOffScreenRendering 1 #renWin SetOffScreenRendering 0 vtkScaledTextActor text1Actor vtkTextMapper text1Mapper text1Actor SetMapper text1Mapper text1Mapper SetInput "this is a silly test" #text1Mapper SetFontSize(14) #[text1Actor GetProperty] SetColor(1.0,1.0,1.0) ren1 AddActor2D text1Actor renWin Render vtkWindowToImageFilter w2if w2if SetInput renWin vtkPNMWriter pnmWriter pnmWriter SetInput [w2if GetOutput] pnmWriter SetFileName "img1.pnm" pnmWriter Write #iren Initialize #iren AddObserver UserEvent {wm deiconify .vtkInteract} # prevent the tk window from showing up then start the event loop #wm withdraw . From kteich at cortechs.net Tue Apr 9 14:14:39 2002 From: kteich at cortechs.net (Kevin Teich) Date: Tue, 9 Apr 2002 14:14:39 -0400 (EDT) Subject: [vtkusers] Help with vtkImageReslice on non-uniform volume Message-ID: I have had great success with using vtkImageReslice to slice a 256^3 view in different orientations, however I am having trouble setting up the pipeline for a 256x256x34 volume. My pipeline looks like this: reader -> ImageReslice -> ImageMagnify -> ImageCursor3D -> ImageMapToColors -> ImageBlend -> ImageViewer (The latter end of the pipeline probably isn't relevant, but I want to include it in case it could affect the beginning of the pipeline.) Here is my slicer set up. window_size is 256, and volume_dimension_{x,y,z} is 256, 256, and 34, respectively. vtkImageReslice reslice reslice SetInput [reader GetOutput] reslice SetOutputOrigin 0 0 0 reslice SetOutputSpacing \ [expr $window_size / $volume_dimension_x] \ [expr $window_size / $volume_dimension_y] \ [expr $window_size / $volume_dimension_z] reslice SetOutputExtent \ 0 [expr $volume_dimension_x - 1] \ 0 [expr $volume_dimension_y - 1] \ 0 [expr $volume_dimension_z - 1] vtkTransform transform transform Identity transform Translate 0 [expr $volume_dimension_y - 1] 0 switch $axis { x { reslice SetResliceAxesDirectionCosines 0 0 1 0 -1 0 1 0 0 reslice SetResliceTransform transform } y { reslice SetResliceAxesDirectionCosines 1 0 0 0 0 1 0 1 0 } z { reslice SetResliceAxesDirectionCosines 1 0 0 0 -1 0 0 0 1 reslice SetResliceTransform transform } } ... I use the reslicer not only to grab the proper slice orientation, but also to do a y-flip. That extra transform is to translate the flip properly in the non-y slice views. I also call SetSize with $window_size on the image viewer. I use SetZSlice on the viewer to grab a slice out of the reslice output. That's all pretty standard. I do not set extent or spacing explicitly anywhere else in the slice view pipeline. The visual output on the Viewer is this: In the x slice view (in which the zslice corresponds to the x dimension in the volume), the volume is smushed up on the left side. All the data appears to be there, it's just not 'stretched' to fill the view. I assume this is a spacing problem. In the y slice view, it is smushed up on the bottom. In the z view, the image fills the entire 256x256 view, but of the 34 slices I should be able to view, only the first six or so show up. I figure I am doing something wrong with spacing and/or extent, and that is something stupid and easy to fix. However, I cannot see what it is. Any ideas? Thanks. -- Kevin Teich From ted at caept.com Tue Apr 9 15:02:15 2002 From: ted at caept.com (Ted Christiansen) Date: Tue, 09 Apr 2002 21:02:15 +0200 Subject: [vtkusers] saving and restoring views Message-ID: <3CB33AB7.A5F76FCE@caept.com> Hello, I am trying to save and restore a view. Everything works except for the zoom. Any suggestions? Ted Here is the code to save the view: vtkCamera *cam = view->Renderer->GetActiveCamera(); // save view cam->GetPosition(m_vtkposition[0], m_vtkposition[1], m_vtkposition[2]); cam->GetFocalPoint(m_vtkfocalpoint[0], m_vtkfocalpoint[1], m_vtkfocalpoint[2]); m_vtkviewangle = cam->GetViewAngle(); cam->GetViewUp(m_vtkviewup[0], m_vtkviewup[1], m_vtkviewup[2]); m_distance = cam->GetDistance(); Here is the code to show the previously saved view: vtkCamera *cam = view->Renderer->GetActiveCamera(); // show view cam->SetPosition(m_vtkposition[0], m_vtkposition[1], m_vtkposition[2]); cam->SetFocalPoint(m_vtkfocalpoint[0], m_vtkfocalpoint[1], m_vtkfocalpoint[2]); cam->SetViewAngle(m_vtkviewangle); cam->SetViewUp(m_vtkviewup[0], m_vtkviewup[1], m_vtkviewup[2]); cam->SetDistance(m_distance); From austrobaldo at bol.com.br Tue Apr 9 15:11:01 2002 From: austrobaldo at bol.com.br (Ricardo Czekster) Date: Tue, 9 Apr 2002 16:11:01 -0300 Subject: [vtkusers] Problem with using CMake for VTK for Borland C++ Builder 5 References: <5.1.0.14.2.20020409132342.03913d40@mail.btinternet.com> Message-ID: <003c01c1dffa$4a13bc70$6a07a8c0@vaio> You must add to the project the .lib files (Add to Project), And the dll's to the path Hope this will help you, RIcardo Czekster ----- Original Message ----- From: "Richard Dybowski" To: Sent: Tuesday, April 09, 2002 9:59 AM Subject: [vtkusers] Problem with using CMake for VTK for Borland C++ Builder 5 > Quer ter seu pr?prio endere?o na Internet? > Garanta j? o seu e ainda ganhe cinco e-mails personalizados. > Dom?niosBOL - http://dominios.bol.com.br > > > > > > > I am new to CMake (and to C++), and I am trying to use it to build VTK for > use with Borland C++, but I have run into some problems. To test out VTK, I > am using the C++ example code for a sphere that is given in > http://public.kitware.com/VTK/example-code.php , but when I try to link the > corresponding object file (with Borland C++ Builder 5), I get linker error > messages such as > "[Linker Error] Unresolved external 'vtkSphereSource::New()' referenced > from ....." > even though I have set the library path to point to both the subdirectory > containing the VTK lib files and the subdirectory containing > vtkSphereSource.obj > > I am not sure that VTK was built correctly. The reason for my suspicion is > that, whilst the Borland make file was running on the Makefile produced by > CMake, the error message "Bad command or file name" appeared many times > during the attempted build. In the CMake GUI, I used the default values > associated with "Build for: Borland Makefile". For "Where is the source > code:" I used the subdirectory where the contents of vtk40Src.zip were > unpacked. The Makefile produced by CMake is attached. > > I would be grateful for any help with these problems. > > Richard > > ------------------------------- > Richard Dybowski, 143 Village Way, Pinner, Middlesex HA5 5AA, UK > Tel (mobile): 079 76 25 00 92 > From berk.geveci at kitware.com Tue Apr 9 16:38:39 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 09 Apr 2002 16:38:39 -0400 Subject: [vtkusers] vtkScaledTextActor & offscreen In-Reply-To: <1020409124925.ZM7594@kelgia.ncsa.uiuc.edu> References: <1020409124925.ZM7594@kelgia.ncsa.uiuc.edu> Message-ID: <1018384723.15588.20.camel@caemlyn.kitwarein.com> I can confirm (with a similar linux machine). I can't explain why though. All the necessary offscreen code is in Rendering/vtkXOpenGLRenderWindow.{h|cxx}. Maybe someone who knows Mesa better can take a look at it ? -Berk On Tue, 2002-04-09 at 13:49, Randy Heiland wrote: > Can someone tell me why a vtkScaledTextActor doesn't appear in a (Mesa) > offscreen rendering (but does for onscreen)? (VTK4.0, Mesa 4.0, RH7.2) > > Else, can someone confirm/deny? > > thanks, > --Randy > > Here are simple Python & Tcl scripts: > > ------------------------------------- > from vtk import * > > ren1 = vtkRenderer() > > renWin = vtkRenderWindow() > renWin.AddRenderer(ren1) > > > offscreen = 1 > offscreen = 0 > if offscreen > 0: > renWin.SetOffScreenRendering(1) > else: > iren= vtkRenderWindowInteractor() > iren.SetRenderWindow(renWin) > > text1Actor = vtkScaledTextActor() > text1Mapper = vtkTextMapper() > text1Actor.SetMapper(text1Mapper) > text1Mapper.SetInput('frame=') > #text1Mapper.SetFontSize(14) > text1Actor.GetProperty().SetColor(1.0,1.0,1.0) > ren1.AddActor2D(text1Actor) > > renWin.Render() > > w2if = vtkWindowToImageFilter() > w2if.SetInput( renWin ) > pnmWriter = vtkPNMWriter() > pnmWriter.SetInput(w2if.GetOutput()) > pnmWriter.SetFileName("img1.pnm") > pnmWriter.Write() > > if offscreen == 0: > iren.Start() > > ---------------------------------------- > package require vtk > package require vtkinteraction > > vtkRenderer ren1 > vtkRenderWindow renWin > renWin AddRenderer ren1 > > vtkRenderWindowInteractor iren > #iren SetRenderWindow renWin > > renWin SetOffScreenRendering 1 > #renWin SetOffScreenRendering 0 > > vtkScaledTextActor text1Actor > vtkTextMapper text1Mapper > text1Actor SetMapper text1Mapper > text1Mapper SetInput "this is a silly test" > #text1Mapper SetFontSize(14) > #[text1Actor GetProperty] SetColor(1.0,1.0,1.0) > ren1 AddActor2D text1Actor > > renWin Render > > vtkWindowToImageFilter w2if > w2if SetInput renWin > vtkPNMWriter pnmWriter > pnmWriter SetInput [w2if GetOutput] > pnmWriter SetFileName "img1.pnm" > pnmWriter Write > > > #iren Initialize > #iren AddObserver UserEvent {wm deiconify .vtkInteract} > > # prevent the tk window from showing up then start the event loop > #wm withdraw . > _______________________________________________ > 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 eerkes at mailhost.cs.wwu.edu Tue Apr 9 16:44:57 2002 From: eerkes at mailhost.cs.wwu.edu (Gary Eerkes) Date: Tue, 9 Apr 2002 13:44:57 -0700 Subject: [vtkusers] Image not being displayed in window Message-ID: I have a vtk application that runs on a number of different Win boxes running a variety of OS (ME, NT, Win2000, etc.). The application runs fine on most all systems but on two systems that have Intel graphics cards (Intel? 815/815E chipset) on occasion the image comes up black or garbled. On another system that has a different graphics card the program will not display any image at all (all white). The application displays a colorscale inside the image window but does not use vtk to display this colorscale (draws directly on the window). The colorscale always gets displayed correctly even if the image doesn't. I am currently using a copy of vtk dated 10-02-2001. An earlier version of my application that was based on vtk dated 08-08-2000 displayed correctly on the machine that is now unable to display any images at all. My guess is that the incorrect Opengl frame buffer is getting mapped to the window in the above instances and that this might be a graphics card/driver issue. Have any of you encountered similar problems? From dgobbi at irus.rri.ca Tue Apr 9 16:57:30 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Tue, 9 Apr 2002 16:57:30 -0400 (EDT) Subject: [vtkusers] Help with vtkImageReslice on non-uniform volume In-Reply-To: Message-ID: Hi Kevin, On Tue, 9 Apr 2002, Kevin Teich wrote: > I have had great success with using vtkImageReslice to slice a 256^3 view > in different orientations, however I am having trouble setting up the > pipeline for a 256x256x34 volume. My pipeline looks like this: > > reader -> ImageReslice -> ImageMagnify -> ImageCursor3D -> > ImageMapToColors -> ImageBlend -> ImageViewer You should cut out the 'ImageMagnify' and include the magnification as part of the ImageReslice. To do this, use (where $mag_factor is the desired magnification) reslice SetOutputExtent 0 [expr $window_size - 1] \ 0 [expr $window_size - 1] \ 0 [expr $window_size - 1] reslice SetOutputSpacing [expr 1.0 / $mag_factor] \ [expr 1.0 / $mag_factor] \ [expr 1.0 / $mag_factor] You will also have to make sure that the 'Spacing' of the input to vtkImageReslice is set correctly, e.g. if you use vtkImageReader then use reader SetDataSpacing 1.0 1.0 8.0 or whatever the actual data spacing is. If the 'Spacing' of the input to vtkImageReslice is not set correctly, then nothing will work properly. The vtkImageChangeInformation filter can also be used to change the Spacing associated with a vtkImageData. - David > (The latter end of the pipeline probably isn't relevant, but I want to > include it in case it could affect the beginning of the pipeline.) Here is > my slicer set up. window_size is 256, and volume_dimension_{x,y,z} is 256, > 256, and 34, respectively. > > vtkImageReslice reslice > reslice SetInput [reader GetOutput] > reslice SetOutputOrigin 0 0 0 > reslice SetOutputSpacing \ > [expr $window_size / $volume_dimension_x] \ > [expr $window_size / $volume_dimension_y] \ > [expr $window_size / $volume_dimension_z] > reslice SetOutputExtent \ > 0 [expr $volume_dimension_x - 1] \ > 0 [expr $volume_dimension_y - 1] \ > 0 [expr $volume_dimension_z - 1] > > vtkTransform transform > transform Identity > transform Translate 0 [expr $volume_dimension_y - 1] 0 > > switch $axis { > x { reslice SetResliceAxesDirectionCosines 0 0 1 0 -1 0 1 0 0 > reslice SetResliceTransform transform } > y { reslice SetResliceAxesDirectionCosines 1 0 0 0 0 1 0 1 0 } > z { reslice SetResliceAxesDirectionCosines 1 0 0 0 -1 0 0 0 1 > reslice SetResliceTransform transform } > } > > ... > > I use the reslicer not only to grab the proper slice orientation, but also > to do a y-flip. That extra transform is to translate the flip properly in > the non-y slice views. > > I also call SetSize with $window_size on the image viewer. I use SetZSlice > on the viewer to grab a slice out of the reslice output. That's all pretty > standard. > > I do not set extent or spacing explicitly anywhere else in the slice view > pipeline. > > The visual output on the Viewer is this: In the x slice view (in which the > zslice corresponds to the x dimension in the volume), the volume is > smushed up on the left side. All the data appears to be there, it's just > not 'stretched' to fill the view. I assume this is a spacing problem. In > the y slice view, it is smushed up on the bottom. In the z view, the image > fills the entire 256x256 view, but of the 34 slices I should be able to > view, only the first six or so show up. > > I figure I am doing something wrong with spacing and/or extent, and that > is something stupid and easy to fix. However, I cannot see what it is. Any > ideas? Thanks. > > From malcolm at geovision.co.za Tue Apr 9 17:16:33 2002 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Tue, 9 Apr 2002 23:16:33 +0200 Subject: [vtkusers] saving and restoring views References: <3CB33AB7.A5F76FCE@caept.com> Message-ID: <005c01c1e00c$0d5e5580$cefefea9@bart> Hi The following procs work in a Tcl script I'm running under vtk 3.2. My guess would be that the call to SetDistance is unnecessary and causes re-computation - but I haven't looked at the source code, it might be a vtk 4.0 thing. (btw I agree it would be a nice feature to set font sizes, for any overlay objects, and not have them resize. Is anyone working on this?) proc app::GetCurrentView {} { set cam [ren GetActiveCamera] set cp [$cam GetPosition] set fp [$cam GetFocalPoint] set vu [$cam GetViewUp] set cr [$cam GetClippingRange] return "{$cp} {$fp} {$vu} {$cr}" } proc app::SetView {view} { set cam [ren GetActiveCamera] eval $cam SetPosition [lindex $view 0]; eval $cam SetFocalPoint [lindex $view 1]; eval $cam SetViewUp [lindex $view 2]; eval $cam SetClippingRange [lindex $view 3]; $cam ComputeViewPlaneNormal; set lights [ren GetLights]; $lights InitTraversal; set light [$lights GetNextItem]; eval $light SetPosition [lindex $view 0]; eval $light SetFocalPoint [lindex $view 1]; app::Render } ----- Original Message ----- From: Ted Christiansen To: Sent: Tuesday, April 09, 2002 9:02 PM Subject: [vtkusers] saving and restoring views > Hello, > > I am trying to save and restore a view. Everything works except for the > zoom. Any suggestions? > > Ted > > Here is the code to save the view: > > vtkCamera *cam = view->Renderer->GetActiveCamera(); > // save view > cam->GetPosition(m_vtkposition[0], m_vtkposition[1], m_vtkposition[2]); > cam->GetFocalPoint(m_vtkfocalpoint[0], m_vtkfocalpoint[1], > m_vtkfocalpoint[2]); > m_vtkviewangle = cam->GetViewAngle(); > cam->GetViewUp(m_vtkviewup[0], m_vtkviewup[1], m_vtkviewup[2]); > m_distance = cam->GetDistance(); > > > > Here is the code to show the previously saved view: > > vtkCamera *cam = view->Renderer->GetActiveCamera(); > > // show view > cam->SetPosition(m_vtkposition[0], m_vtkposition[1], m_vtkposition[2]); > cam->SetFocalPoint(m_vtkfocalpoint[0], m_vtkfocalpoint[1], > m_vtkfocalpoint[2]); > cam->SetViewAngle(m_vtkviewangle); > cam->SetViewUp(m_vtkviewup[0], m_vtkviewup[1], m_vtkviewup[2]); > cam->SetDistance(m_distance); > > > _______________________________________________ > 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 shade_cn at yahoo.com Tue Apr 9 21:25:42 2002 From: shade_cn at yahoo.com (Shade) Date: Wed, 10 Apr 2002 09:25:42 +0800 Subject: [vtkusers] Image not being displayed in window References: Message-ID: <003401c1e02e$a2d85ad0$4501a8c0@ccase.vicolab.dyndns.org> I think your problem is similar to mine. My application based on VTK3.2 runs well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, then my 3D image window display nothing. The 3D image view is attached to a child frame of the main frame, but if I attached the 3D image view to the main frame directly, then there is no problem. I can't solve this problem till now, so I still using VTK3.2. ----- Original Message ----- From: "Gary Eerkes" To: "Vtk Users" Sent: Wednesday, April 10, 2002 4:44 AM Subject: [vtkusers] Image not being displayed in window > I have a vtk application that runs on a number of different Win boxes > running a variety of OS (ME, NT, Win2000, etc.). The application runs fine > on most all systems but on two systems that have Intel graphics cards > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > On another system that has a different graphics card the program will not > display any image at all (all white). > > The application displays a colorscale inside the image window but does not > use vtk to display this colorscale (draws directly on the window). The > colorscale always gets displayed correctly even if the image doesn't. > > I am currently using a copy of vtk dated 10-02-2001. An earlier version of > my application that was based on vtk dated 08-08-2000 displayed correctly on > the machine that is now unable to display any images at all. > > My guess is that the incorrect Opengl frame buffer is getting mapped to the > window in the above instances and that this might be a graphics card/driver > issue. Have any of you encountered similar problems? > > _______________________________________________ > 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 shade_cn at yahoo.com Tue Apr 9 23:17:19 2002 From: shade_cn at yahoo.com (Shade) Date: Wed, 10 Apr 2002 11:17:19 +0800 Subject: [vtkusers] Image not being displayed in window References: Message-ID: <008901c1e03e$3a29d9e0$4501a8c0@ccase.vicolab.dyndns.org> I have tried to remove any other things but only leave a 3D image view which is attached to a child frame. It seems it also runs well, so I was confused with it. I want to migrate my application to this base, but I don't have time to do it, I have to still use the VTK3.2. My System is WindowsXP, and the Display Adapter is ATI Range 128 Pro. Maybe I need to try my application on other System and Display Adapter. ----- Original Message ----- From: "Gary Eerkes" To: "Shade" Sent: Wednesday, April 10, 2002 10:26 AM Subject: RE: [vtkusers] Image not being displayed in window > Thanks for the response. My application also attaches the 3-D view window > to a child frame. > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade > Sent: Tuesday, April 09, 2002 6:26 PM > To: Vtk Users > Subject: Re: [vtkusers] Image not being displayed in window > > > I think your problem is similar to mine. My application based on VTK3.2 runs > well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, > then my 3D image window display nothing. > The 3D image view is attached to a child frame of the main frame, but if I > attached the 3D image view to the main frame directly, then there is no > problem. > I can't solve this problem till now, so I still using VTK3.2. > ----- Original Message ----- > From: "Gary Eerkes" > To: "Vtk Users" > Sent: Wednesday, April 10, 2002 4:44 AM > Subject: [vtkusers] Image not being displayed in window > > > > I have a vtk application that runs on a number of different Win boxes > > running a variety of OS (ME, NT, Win2000, etc.). The application runs > fine > > on most all systems but on two systems that have Intel graphics cards > > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > > On another system that has a different graphics card the program will not > > display any image at all (all white). > > > > The application displays a colorscale inside the image window but does not > > use vtk to display this colorscale (draws directly on the window). The > > colorscale always gets displayed correctly even if the image doesn't. > > > > I am currently using a copy of vtk dated 10-02-2001. An earlier version > of > > my application that was based on vtk dated 08-08-2000 displayed correctly > on > > the machine that is now unable to display any images at all. > > > > My guess is that the incorrect Opengl frame buffer is getting mapped to > the > > window in the above instances and that this might be a graphics > card/driver > > issue. Have any of you encountered similar problems? > > > > _______________________________________________ > > 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 Robert.Day at health.wa.gov.au Tue Apr 9 23:40:12 2002 From: Robert.Day at health.wa.gov.au (Day, Robert) Date: Wed, 10 Apr 2002 11:40:12 +0800 Subject: [vtkusers] "best" way to represent an ellipsoid Message-ID: <9D3C4A95669BD5119EC80006293801E31ABF8A@NT001MESRP> A question, good people... I am fitting spheroids and ellipsoid to point data, and I want to show the fitted geometry along with the point data. What would be the "best" (or perhaps most correct or most vtk-ish) way to do this with vtk? I have been using a vtkSphereSource and passing that through a transform filter. I have also considered using a vtkTensor3DGlyph or an implicit function. The last (implicit function) obviously has the most generality; but I have to run it through a contour filter to get a surface. Is the tensor glyph the way to go? What do other people do? Thank you for your advice. Rob. Robert Day ph +61 8 9225 3227 Project Bioengineer fax +61 8 9225 1138 Royal Perth Hospital robert.day at health.wa.gov.au From amati at ira.cnr.it Wed Apr 10 05:35:58 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 10 Apr 2002 11:35:58 +0200 (CEST) Subject: [vtkusers] Producing Animation Message-ID: Hi everybody, a new question for you: I develped a visualization software in with I visualized Astronomical Object. I implemented a trackball by myself because I would like to track and save camera movement (Dolly, Elevetion, Rolling...) to reproduce after like a video sequence. Is there another possibility to produce a video sequence in VTK 3.2? Is there something similar to a vtkMPEGWriter... Or to reproduce the movement of a vtkIterator ? Thank you all Giancarlo Amati -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From jbrunen at datasolid.de Tue Apr 9 09:04:58 2002 From: jbrunen at datasolid.de (Brunen, Johannes) Date: Tue, 9 Apr 2002 15:04:58 +0200 Subject: [vtkusers] SampleMFC project Message-ID: <50171567376FD511B9DC00A0C9AF9A4806E401@MAILSERVER> Hi, I have downloaded the precompiled window dll files and libs from the nightly build section. After creation of a MS VC++ 6.0 Sp5 project for the SampleMFC example I was able to get an executable file. However, I was unable to start it because it tried to load vtktiff.dll which was not part of the core dll. What should I do in order to run the SampleMFC exe ? With best regards Johannes Brunen From affable at hd2.dot.net.in Wed Apr 10 08:37:54 2002 From: affable at hd2.dot.net.in (cspl) Date: Wed, 10 Apr 2002 18:07:54 +0530 Subject: [vtkusers] Help: How to Read DICOM files in vtk Message-ID: <006701c1e08c$89c1fe80$01000001@macinfo.net> Dear friends, I am a new user of vtk.I want to read slices of dicom like series of 50 images with extension of a slices.They purely raw data .I am trying to read the data using vtkVolume16Reader.But not solved.I wrote the code like following.Please help me anybody. vtkVolume16Reader *reader = vtkVolume16Reader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFilePrefix("C:\\DicomFiles\\ImageFiles\\04081219\\6554888"); reader->SetFilePattern("dcm"); reader->SetImageRange(6554888,6555788); reader->SetDataSpacing(1,1,1); reader->SetDataDimensions(256,256); Thanking you, Regards, Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From ady_roman at yahoo.com Wed Apr 10 09:26:57 2002 From: ady_roman at yahoo.com (ady roman) Date: Wed, 10 Apr 2002 06:26:57 -0700 (PDT) Subject: [vtkusers] C# Message-ID: <20020410132657.49046.qmail@web12508.mail.yahoo.com> Hi, Have anyone tried to use VTK with C# and .Net? If so, please let me know. Adrian Roman __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From srfpala at earthlink.com Wed Apr 10 10:05:30 2002 From: srfpala at earthlink.com (Bob Palank) Date: Wed, 10 Apr 2002 09:05:30 -0500 Subject: [vtkusers] C# In-Reply-To: <20020410132657.49046.qmail@web12508.mail.yahoo.com> Message-ID: I asked this same question about three weeks ago and got no reply. Let's hope you're more successful than I. Porting everything over from either C or Java to C# seems to be a daunting and enjoyable task..... provided the interest is there! Time will tell. Bob Palank -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of ady roman Sent: Wednesday, April 10, 2002 8:27 AM To: vtkusers at public.kitware.com Subject: [vtkusers] C# Hi, Have anyone tried to use VTK with C# and .Net? If so, please let me know. Adrian Roman __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From rrp at imm.dtu.dk Wed Apr 10 10:17:09 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Wed, 10 Apr 2002 16:17:09 +0200 Subject: [vtkusers] C# In-Reply-To: Message-ID: How is the cross platform support of C#? Can you use C# and .Net on SUN, SGI, Linux etc...? As a wrapper language I believe cross platform support is crucial. Perhaps C# can be used to write system specific programs using VTK in the same way as for example MFC is... Regards Rasmus > Sent: 10. april 2002 16:06 > Subject: RE: [vtkusers] C# > > > I asked this same question about three weeks ago and got no reply. Let's > hope you're more successful than I. Porting everything over from > either C or > Java to C# seems to be a daunting and enjoyable task..... provided the > interest is there! Time will tell. > Bob Palank > > Sent: Wednesday, April 10, 2002 8:27 AM > Subject: [vtkusers] C# > > > Hi, > > Have anyone tried to use VTK with C# and .Net? > > If so, please let me know. > > Adrian Roman From billlist at nycap.rr.com Wed Apr 10 11:29:13 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 10 Apr 2002 10:29:13 -0500 Subject: [vtkusers] C# In-Reply-To: References: Message-ID: <5.0.2.1.0.20020410102616.0622ef10@pop.nycap.rr.com> Currently, the Kitware product ActiViz/COM built on VTK 4.0 can be used from C# on windows. For more information and a 30 day free trial, see the kitware web page: http://www.kitware.com/products/activiz/activizCOM.html -Bill Hoffman At 04:17 PM 4/10/2002 +0200, Rasmus Reinhold Paulsen wrote: >How is the cross platform support of C#? Can you use C# and .Net on SUN, >SGI, Linux etc...? >As a wrapper language I believe cross platform support is crucial. Perhaps >C# can be used to write system specific programs using VTK in the same way >as for example MFC is... > >Regards >Rasmus > >> Sent: 10. april 2002 16:06 >> Subject: RE: [vtkusers] C# >> >> >> I asked this same question about three weeks ago and got no reply. Let's >> hope you're more successful than I. Porting everything over from >> either C or >> Java to C# seems to be a daunting and enjoyable task..... provided the >> interest is there! Time will tell. >> Bob Palank >> >> Sent: Wednesday, April 10, 2002 8:27 AM >> Subject: [vtkusers] C# >> >> >> Hi, >> >> Have anyone tried to use VTK with C# and .Net? >> >> If so, please let me know. >> >> Adrian Roman > >_______________________________________________ >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 eerkes at mailhost.cs.wwu.edu Wed Apr 10 10:50:44 2002 From: eerkes at mailhost.cs.wwu.edu (Gary Eerkes) Date: Wed, 10 Apr 2002 07:50:44 -0700 Subject: [vtkusers] Image not being displayed in window In-Reply-To: <008901c1e03e$3a29d9e0$4501a8c0@ccase.vicolab.dyndns.org> Message-ID: Your experience is very similar to mine. Although the image will display correctly on many systems there are two systems running XP and a third running NT where the image will not display. I plan to recompile my application using vtk 3.2 and see if the image will display correctly on these systems. I also plan to run a test using the sample application to see if it behaves in similar manner (displays correctly when compiled with 3.2 but does not display an image when compiled with 4.0). Again, it should be emphasized that this problem only occurs on some systems. -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade Sent: Tuesday, April 09, 2002 8:17 PM To: Vtk Users Subject: Re: [vtkusers] Image not being displayed in window I have tried to remove any other things but only leave a 3D image view which is attached to a child frame. It seems it also runs well, so I was confused with it. I want to migrate my application to this base, but I don't have time to do it, I have to still use the VTK3.2. My System is WindowsXP, and the Display Adapter is ATI Range 128 Pro. Maybe I need to try my application on other System and Display Adapter. ----- Original Message ----- From: "Gary Eerkes" To: "Shade" Sent: Wednesday, April 10, 2002 10:26 AM Subject: RE: [vtkusers] Image not being displayed in window > Thanks for the response. My application also attaches the 3-D view window > to a child frame. > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade > Sent: Tuesday, April 09, 2002 6:26 PM > To: Vtk Users > Subject: Re: [vtkusers] Image not being displayed in window > > > I think your problem is similar to mine. My application based on VTK3.2 runs > well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, > then my 3D image window display nothing. > The 3D image view is attached to a child frame of the main frame, but if I > attached the 3D image view to the main frame directly, then there is no > problem. > I can't solve this problem till now, so I still using VTK3.2. > ----- Original Message ----- > From: "Gary Eerkes" > To: "Vtk Users" > Sent: Wednesday, April 10, 2002 4:44 AM > Subject: [vtkusers] Image not being displayed in window > > > > I have a vtk application that runs on a number of different Win boxes > > running a variety of OS (ME, NT, Win2000, etc.). The application runs > fine > > on most all systems but on two systems that have Intel graphics cards > > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > > On another system that has a different graphics card the program will not > > display any image at all (all white). > > > > The application displays a colorscale inside the image window but does not > > use vtk to display this colorscale (draws directly on the window). The > > colorscale always gets displayed correctly even if the image doesn't. > > > > I am currently using a copy of vtk dated 10-02-2001. An earlier version > of > > my application that was based on vtk dated 08-08-2000 displayed correctly > on > > the machine that is now unable to display any images at all. > > > > My guess is that the incorrect Opengl frame buffer is getting mapped to > the > > window in the above instances and that this might be a graphics > card/driver > > issue. Have any of you encountered similar problems? > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From roland.schwarz at chello.at Wed Apr 10 11:22:16 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Wed, 10 Apr 2002 17:22:16 +0200 Subject: [vtkusers] SampleMFC project References: <50171567376FD511B9DC00A0C9AF9A4806E401@MAILSERVER> Message-ID: <008001c1e0a3$82ba67f0$133da8c0@zoo> This is strange, AFAIK the MFC sample does not use the tiff library. It seems as if it is not included in the nightly release. Have a look on the libraries that are on your linker page, and remove the tiff library if there is one. Roland ----- Original Message ----- From: "Brunen, Johannes" To: Sent: Tuesday, April 09, 2002 3:04 PM Subject: [vtkusers] SampleMFC project > Hi, > > I have downloaded the precompiled window dll files and libs from the > nightly build section. After creation of a MS VC++ 6.0 Sp5 project for > the SampleMFC example I was able to get an executable file. > > However, I was unable to start it because it tried to load vtktiff.dll which > > was not part of the core dll. > > What should I do in order to run the SampleMFC exe ? > > With best regards > > Johannes Brunen > > _______________________________________________ > 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 jfilipe at isr.uc.pt Wed Apr 10 13:06:57 2002 From: jfilipe at isr.uc.pt (=?iso-8859-1?Q?Jo=E3o_Filipe_de_Castro_Ferreira?=) Date: Wed, 10 Apr 2002 18:06:57 +0100 Subject: [vtkusers] "Destructive" filtering Message-ID: I have once posed this question (nobody answered... :(( ) to the list; having purchased the VTK Users Manual and not finding any answers to my worries, I must try again: I am trying to implement a VTK/MSVC++ app, whose partial goal is to apply filters to 3D objects *destructively*, i.e., collapse the visualisation pipeline so that only the PolyData containing the filter's output and the Mapper are present everytime the 3D object is processed (possibily allowing some levels of undo). Lets say that I would like to develop a kind of a simplified "3D Adobe Photoshop" type of app. I am having some trouble in understanding how this is done --- from the Tcl examples (namely the decimation example which is similar to what I am trying to acheive) I understand I need to copy and release the data from the filters, but I haven't been able to transpose this to C++. Please help!!! Cheers, Jo?o Ferreira -------------- next part -------------- An HTML attachment was scrubbed... URL: From svong at email.arc.nasa.gov Wed Apr 10 13:10:50 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Wed, 10 Apr 2002 10:10:50 -0700 Subject: [vtkusers] VTK and QT Message-ID: <3CB4721A.CBF73F86@email.arc.nasa.gov> Matt's right, Jan Ehrhardt's web page isn't responding. I emailed Jan Ehrhardt directly to request his package a while back. Here is his email address: ehrhardt at medinf.mu-luebeck.de Regards, Shwuping Vong Joey Mukherjee wrote: > > I notice there are three versions of mixing VTK and QT. Is there a consensus on > which is the better of the three? Are their advantages/disadvantages of any of > them? Has anyone tried any of them on Mac OS X? > I have been using VTK and Qt since a year now. - I first tried the "vtkandqt" library developped by Jan Stifter: no particular problem if you just need a renderer. - I then switched to vtkQGL (Jan Ehrhardt), which I found a little bit more convenient (all interactors are supported, you can pick actors, ...). Some classes are provided to display images (like vtkQGLImageViewer), but they did not correspond to my needs and did not work with vtk4.0 (problem with vtkImageReslice, mostly). I therefore developed my own SliveViewer class, which is pretty close to vtkImageViewer2 (you can zoom, pad, pick, ...) I am using Qt2.3.0 and vtk4.0, on windows w2k, linux and unix-true64 (alpha station). No Mac Os, sorry! All the mentionned packages are accessible via S?bastien's VTK links: http://www.barre.nom.fr/vtk/links-classes.html However, I am not sure Jan Ehrhardt web page (http://passat.mesh.de/~ehrhardt/vtkQGL/ ) is still responding ... Hope it helps, Matt From song.ahn at sheridanc.on.ca Wed Apr 10 16:16:43 2002 From: song.ahn at sheridanc.on.ca (Song Ho Ahn) Date: Wed, 10 Apr 2002 13:16:43 -0700 Subject: [vtkusers] prowrap usage Message-ID: <3CB49DAB.C18517E6@sheridanc.on.ca> Hi, I should read TclPro documentation, but I'd like have quick responses from VTK users. First, is "prowrap" program works with VTK tcl scripts (PC-platform)? Second, can prowrap encode VTK libraries into the output executable? So, client's computer does not need to install VTK and TCL/Tk packages in order to run the program. Thanks. ==song== From krw at viz-solutions.com Wed Apr 10 13:18:52 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Wed, 10 Apr 2002 10:18:52 -0700 Subject: [vtkusers] "Destructive" filtering In-Reply-To: Message-ID: <5.1.0.14.0.20020410101432.036fcd88@127.0.0.1> At 06:06 PM 4/10/2002 +0100, you wrote: >I am trying to implement a VTK/MSVC++ app, whose partial goal is to apply >filters to 3D objects *destructively*, i.e., collapse the visualisation >pipeline so that only the PolyData containing the filter's output and the >Mapper are present everytime the 3D object is processed (possibily >allowing some levels of undo). Lets say that I would like to develop a >kind of a simplified "3D Adobe Photoshop" type of app. I could be wrong, someone please correct me if I am, but if you create a pipeline, take the output of the last filter, Register it, then delete the entire pipeline, you should get what you're after (minus the ability to undo). Like... vtkSphereSource *sphere = vtkSphereSource::New(); vtkDecimatePro *decimate = vtkDecimatePro::New(); vtkPolyData *finalGeometry; decimate->SetInput(sphere->GetOutput()); decimate->Update(); finalGeometry = decimate->GetOutput(); finalGeometry->Register(0); decimate->Delete(); sphere->Delete(); ---------------------------- Kevin. From krw at viz-solutions.com Wed Apr 10 13:26:10 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Wed, 10 Apr 2002 10:26:10 -0700 Subject: [vtkusers] prowrap usage In-Reply-To: <3CB49DAB.C18517E6@sheridanc.on.ca> Message-ID: <5.1.0.14.0.20020410102420.036a2150@127.0.0.1> >First, is "prowrap" program works with VTK tcl scripts (PC-platform)? > >Second, can prowrap encode VTK libraries into the output executable? >So, client's computer does not need to install VTK and TCL/Tk packages >in order to run the program. You can create vtk/tcl applications using prowrap. You can also link the libraries in statically, but that would take more effort than just shipping the dll's with your application. Either way, the tclpro documentation tells you how to do both. Kevin. From amati at cenpra.gov.br Wed Apr 10 13:31:24 2002 From: amati at cenpra.gov.br (Ailton Santa Barbara) Date: Wed, 10 Apr 2002 14:31:24 -0300 Subject: [vtkusers] VtkTkRenderWidget and Python.... Message-ID: <3CB476EC.EC8E3F63@cenpra.gov.br> Hi all, We are using the vtkTkRenderWidget class to prevent the main program crash and It works. The problem is that the "a" key doesn't work in the interaction with mouse and keyboard - this key allows to move a plane. In this mail you can see a part of the vtkTkRenderWidget class. We put a new bind (for "a"-key) and we create the def "Animation". We believed that this def would do the same stuffs that the key-a implementation in the vtkInteractorStyle, whose code is here too, but only the entire cube is moved (we can't select the plane). Could anyone help me with this or with other solution??? Thank you. Marcelo ----------------------------------------------------------------------------------------------------- --------------------------------- A part of vtkTkRenderWidget file --------------------------------- def BindTkRenderWidget(self): """ Bind some default actions. """ self.bind("", lambda e,s=self: s.Exit()) self.bind("", lambda e,s=self: s.Animation()) self.bind("", lambda e,s=self: s.StartMotion(e.x,e.y)) self.bind("", lambda e,s=self: s.EndMotion(e.x,e.y)) self.bind("", lambda e,s=self: s.Rotate(e.x,e.y)) self.bind("", lambda e,s=self: s.Pan(e.x,e.y)) self.bind("", lambda e,s=self: s.Zoom(e.x,e.y)) self.bind("", lambda e,s=self: s.Pan(e.x,e.y)) self.bind("", lambda e,s=self: s.Reset(e.x,e.y)) self.bind("", lambda e,s=self: s.deiconify()) self.bind("", lambda e,s=self: s.Wireframe()) self.bind("", lambda e,s=self: s.Surface()) self.bind("", lambda e,s=self: s.PickActor(e.x,e.y)) self.bind("", lambda e,s=self: s.Enter(e.x,e.y)) self.bind("", lambda e,s=self: s.Leave(e.x,e.y)) self.bind("", lambda e,s=self: s.Expose()) def Animation(self): self._RenderWindow.SetDesiredUpdateRate(self._RenderWindow.GetDesiredUpdateRate()) self._RenderWindow.Render() --------------------------------------------------------------------------------------------------------- -------------------------------------- A part of vtkInteractorStyle.cxx code. -------------------------------------- void vtkInteractorStyle::OnChar(int ctrl, int shift, char keycode, int vtkNotUsed(repeatcount)) { this->CtrlKey = ctrl; this->ShiftKey = shift; vtkRenderWindowInteractor *rwi = this->Interactor; switch (keycode) { // JCP Animation control case 'a' : case 'A' : if (this->AnimState == VTKIS_ANIM_OFF) { this->StartAnimate(); } else { this->StopAnimate(); } break; // JCP Animation control //----- . . . . void vtkInteractorStyle::StartAnimate() { vtkRenderWindowInteractor *rwi = this->Interactor; vtkErrorMacro(<< "starting animation"); this->AnimState = VTKIS_ANIM_ON; if (this->State == VTKIS_START) { vtkErrorMacro(<< "Start state found"); rwi->GetRenderWindow()->SetDesiredUpdateRate(rwi->GetDesiredUpdateRate()); if ( !rwi->CreateTimer(VTKI_TIMER_FIRST) ) { vtkErrorMacro(<< "Timer start failed"); } } rwi->Render(); } From tdeschamps at lbl.gov Wed Apr 10 13:53:29 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Wed, 10 Apr 2002 10:53:29 -0700 Subject: [vtkusers] vtlVolumeReader Message-ID: <3CB47C19.C2C88C9B@lbl.gov> Hi, I still do not understand why there is no routine to read volumetric images contained in a single file? 3D datasets in slices in not so common. Ok, DICOM is often sliced, but there are frequently datasets contained in an unique file. It is often more convenient, especially for practical reasons (copying and transmission for example, compactness also). Does anyone try to incorporate it into vtk? Is it not more interesting to have a vtkVolumeReader class which is more general, thus allowing sliced and self-contained datasets? Maybe I did not notice that it exists somewhere. But I always use vtkImageReader + vtkImageToStructuredPoints. Thomas Deschamps TDeschamps at lbl.gov From oliver at afip.org Wed Apr 10 13:19:49 2002 From: oliver at afip.org (William Oliver) Date: Wed, 10 Apr 2002 13:19:49 -0400 Subject: [vtkusers] vtlVolumeReader In-Reply-To: <3CB47C19.C2C88C9B@lbl.gov> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I missed the first part of this discussion, so if someone has already said this, I apologize. There is a routine for reading 3D data in one file: vtkImageReader. I had this question some months ago for reading raw 3D MRI data, and someone was nice enough to answer it. For me to read a 256x256x256 dataset without a header, the code is (for Tcl): vtkImageReader reader reader SetFileName "/home/oliver/data/tst.dat" reader DebugOn reader SetFileDimensionality 3 reader SetDataExtent 0 255 0 255 0 255 reader SetDataOrigin 0 0 0 reader SetDataScalarTypeToUnsignedShort reader SetDataMask 0x7fff reader SetDataSpacing 1 1 1 reader SetDataByteOrderToBigEndian reader SeadHeaderSize 0 then, when you get ready to render: vtkVolumeRayCastMapper volumeMapper ...[stuff] volumeMapper SetInput [reader GetOutput] ...[stuff] It works great for me. William R Oliver, MD For PGP public key, send email to oliver at afip.org On Wed, 10 Apr 2002, Thomas Deschamps wrote: > Hi, > > I still do not understand why there is no routine to read volumetric > images contained in a single file? > 3D datasets in slices in not so common. Ok, DICOM is often sliced, but > there are frequently datasets contained in an unique file. It is often > more convenient, especially for practical reasons (copying and > transmission for example, compactness also). > Does anyone try to incorporate it into vtk? > Is it not more interesting to have a vtkVolumeReader class which is more > general, thus allowing sliced and self-contained datasets? > Maybe I did not notice that it exists somewhere. But I always use > vtkImageReader + vtkImageToStructuredPoints. > > Thomas Deschamps > TDeschamps at lbl.gov > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (IRIX64) Comment: Made with pgp4pine 1.76 iD8DBQE8tHQ7GyPMvQL2C60RAhTRAJ9nNoeI5s+vYBVawPu9WyISbAaTJQCeMnyM bdnVUVs/1N94IjnjtLKOuTw= =Yofn -----END PGP SIGNATURE----- From marcio.mathias at edb.ericsson.se Wed Apr 10 15:03:04 2002 From: marcio.mathias at edb.ericsson.se (Marcio Antonio Mathias (EDB)) Date: Wed, 10 Apr 2002 16:03:04 -0300 Subject: [vtkusers] prowrap usage Message-ID: Hi Kevin, I used tclpro to wrap my VTK information. I does not work wrapped statically. I just failed. Then I used it with the option "-wish-dynamic". But even copying the Tcl83.dll, Tk83.dll to the computer without Tcl/Tk and VTK, everytime I tried to run the executable file a new file in "necessary" file to run list was increased. The only thing that I got was a way to hide the source code. Do you have any other hint in this case? /Marcio. -----Original Message----- From: Kevin Wright To: vtkusers at public.kitware.com Sent: 4/10/02 2:26 PM Subject: Re: [vtkusers] prowrap usage >First, is "prowrap" program works with VTK tcl scripts (PC-platform)? > >Second, can prowrap encode VTK libraries into the output executable? >So, client's computer does not need to install VTK and TCL/Tk packages >in order to run the program. You can create vtk/tcl applications using prowrap. You can also link the libraries in statically, but that would take more effort than just shipping the dll's with your application. Either way, the tclpro documentation tells you how to do both. Kevin. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.ca Wed Apr 10 15:03:23 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Wed, 10 Apr 2002 15:03:23 -0400 (EDT) Subject: [vtkusers] VtkTkRenderWidget and Python.... In-Reply-To: <3CB476EC.EC8E3F63@cenpra.gov.br> Message-ID: Hi Marcelo, The python vtkTkRenderWidget only has code for moving the camera, it doesn't have any code for moving the individual actors like the RenderWindowInteractor does. If you want to move the plane around, you would have to add a fair bit of code to vtkTkRenderWidget.py. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 10 Apr 2002, Ailton Santa Barbara wrote: > Hi all, > > > We are using the vtkTkRenderWidget class to prevent the main program > crash and It works. The problem is that the "a" key > doesn't work in the interaction with mouse and keyboard - this key > allows to move a plane. > In this mail you can see a part of the vtkTkRenderWidget class. We put > a new bind (for "a"-key) and we create the def "Animation". > We believed that this def would do the same stuffs that the key-a > implementation in the vtkInteractorStyle, whose code is here too, > but only the entire cube is moved (we can't select the plane). > > > Could anyone help me with this or with other solution??? > > Thank you. > > Marcelo From nNunn at ausport.gov.au Wed Apr 10 15:14:18 2002 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Thu, 11 Apr 2002 05:14:18 +1000 Subject: [vtkusers] RE: Producing Animation Message-ID: <7AF3524792FFD511A17A0000F81E965E47291B@elmo.ausport.gov.au> Giancarlo Amati wrote: > I develped a visualization software in with I visualized > Astronomical Object. I implemented a trackball by myself > because I would like to track and save camera movement > (Dolly, Elevetion, Rolling...) to reproduce after like a > video sequence. Is there another possibility to produce a > video sequence in VTK 3.2? Is there something similar to a > vtkMPEGWriter... Or to reproduce the movement of a vtkIterator? Producing a video sequence can be platform-specific. For which platforms? Rendered in real time? Nigel From bill.hoffman at kitware.com Wed Apr 10 16:16:06 2002 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Wed, 10 Apr 2002 15:16:06 -0500 Subject: [vtkusers] VtkTkRenderWidget and Python.... In-Reply-To: References: <3CB476EC.EC8E3F63@cenpra.gov.br> Message-ID: <5.0.2.1.0.20020410151332.060bd120@pop.nycap.rr.com> I am working on a class called vtkGenericRenderWindowInteractor that will allow the styles to work from tcl/tk, python, or java. I should be able to check it in this week. -Bill At 03:03 PM 4/10/2002 -0400, David Gobbi wrote: >Hi Marcelo, > >The python vtkTkRenderWidget only has code for moving the camera, >it doesn't have any code for moving the individual actors like the >RenderWindowInteractor does. If you want to move the plane around, you >would have to add a fair bit of code to vtkTkRenderWidget.py. > > - David > >-- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > >On Wed, 10 Apr 2002, Ailton Santa Barbara wrote: > >> Hi all, >> >> >> We are using the vtkTkRenderWidget class to prevent the main program >> crash and It works. The problem is that the "a" key >> doesn't work in the interaction with mouse and keyboard - this key >> allows to move a plane. >> In this mail you can see a part of the vtkTkRenderWidget class. We put >> a new bind (for "a"-key) and we create the def "Animation". >> We believed that this def would do the same stuffs that the key-a >> implementation in the vtkInteractorStyle, whose code is here too, >> but only the entire cube is moved (we can't select the plane). >> >> >> Could anyone help me with this or with other solution??? >> >> Thank you. >> >> 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 dgobbi at irus.rri.ca Wed Apr 10 15:23:03 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Wed, 10 Apr 2002 15:23:03 -0400 (EDT) Subject: [vtkusers] VtkTkRenderWidget and Python.... In-Reply-To: <5.0.2.1.0.20020410151332.060bd120@pop.nycap.rr.com> Message-ID: Hi Bill, Will it play nice with the tk (or for python, the Tkinter) interaction loop? The problem with using the RenderWindowInteractors in the python right now is that can't be used alongside python/tk. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Wed, 10 Apr 2002, Bill Hoffman wrote: > I am working on a class called vtkGenericRenderWindowInteractor that will allow > the styles to work from tcl/tk, python, or java. I should be able to check it > in this week. > > -Bill > > > > At 03:03 PM 4/10/2002 -0400, David Gobbi wrote: > >Hi Marcelo, > > > >The python vtkTkRenderWidget only has code for moving the camera, > >it doesn't have any code for moving the individual actors like the > >RenderWindowInteractor does. If you want to move the plane around, you > >would have to add a fair bit of code to vtkTkRenderWidget.py. > > > > - David > > > >-- > > David Gobbi, MSc dgobbi at irus.rri.ca > > Advanced Imaging Research Group > > Robarts Research Institute, University of Western Ontario > > > >On Wed, 10 Apr 2002, Ailton Santa Barbara wrote: > > > >> Hi all, > >> > >> > >> We are using the vtkTkRenderWidget class to prevent the main program > >> crash and It works. The problem is that the "a" key > >> doesn't work in the interaction with mouse and keyboard - this key > >> allows to move a plane. > >> In this mail you can see a part of the vtkTkRenderWidget class. We put > >> a new bind (for "a"-key) and we create the def "Animation". > >> We believed that this def would do the same stuffs that the key-a > >> implementation in the vtkInteractorStyle, whose code is here too, > >> but only the entire cube is moved (we can't select the plane). > >> > >> > >> Could anyone help me with this or with other solution??? > >> > >> Thank you. > >> > >> 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 jeff at cdnorthamerica.com Wed Apr 10 15:30:36 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 10 Apr 2002 15:30:36 -0400 Subject: [vtkusers] Xlib: unexpected async reply (sequence 0xceb)! References: <200204041343.g34Dh8v23349@mailgate5.cinetic.de> Message-ID: <3CB492DC.1080705@cdnorthamerica.com> see cvs version of vtkPanel.java in Wrapping/Java/ -Jeff ahmed Tokalak wrote: >Hello vtk-lovers, > >While trying to save the scene as an image the following error occured: >Xlib: unexpected async reply (sequence 0xceb)! >I'm using vtk4.0 + java + linux > >Here is my code: > > > public void saveScene(vtkRenderWindow window, String file){ > vtkWindowToImageFilter wtif = new vtkWindowToImageFilter(); > wtif.SetInput(window); > wtif.Update(); > vtkJPEGWriter jpeg = new vtkJPEGWriter(); > jpeg.SetFileName(file + ".jpg"); > jpeg.SetInput(wtif.GetOutput()); > jpeg.SetQuality(95); > jpeg.Write(); > } >________________________________________________________________ >Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! >Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 > > >_______________________________________________ >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 feigee at hotmail.com Wed Apr 10 16:30:45 2002 From: feigee at hotmail.com (Alan Shih) Date: Wed, 10 Apr 2002 15:30:45 -0500 Subject: [vtkusers] scalar in head dataset Message-ID: Hi, I was trying out the head dataset that come with the vtkdata/, I am wondering what is the scalar in the dataset? How about the scalars in the frog dataset? Anywhere on kitware web site that these datasets are explained? Thanks. Alan _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com From prabhu at aero.iitm.ernet.in Wed Apr 10 16:53:00 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 11 Apr 2002 02:23:00 +0530 Subject: [vtkusers] Patch to fix vtkExtractVectorComponents.cxx bugs In-Reply-To: <3CAD9403.D39EBB49@culham.com> References: <3CAD9403.D39EBB49@culham.com> Message-ID: <15540.42540.809035.658878@monster.linux.in> >>>>> "NB" == Nicholas Brealey writes: NB> Hi Here is a patch which fixes 3 bugs in NB> vtkExtractVectorComponents.cxx: NB> 1) Execute() crashes if there are no point data vectors. NB> 2) Cell data scalars given 3 components instead of 1. NB> 3) z component of cell data vector not set correctly. Many thanks for the patch. I've checked in the changes into CVS. prabhu From jbiddiscombe at skippingmouse.co.uk Wed Apr 10 17:53:42 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 10 Apr 2002 22:53:42 +0100 Subject: [vtkusers] "Destructive" filtering References: <5.1.0.14.0.20020410101432.036fcd88@127.0.0.1> Message-ID: <001501c1e0da$2f3bdff0$0100a8c0@tigger> > I could be wrong, someone please correct me if I am, OK. >but if you create a > pipeline, take the output of the last filter, Register it, then delete the > entire pipeline, you should get what you're after (minus the ability to > undo). Like... Almost. But the last filter in the pipeline before you grab the output is registered by the output itself (Source). you need to mydata = lastfilter->GetOutput(); mydata->Register(NULL); lastfilter->UnregisterAllOutputs(); now delete all the filters and you can keep the data JB From tdeschamps at lbl.gov Wed Apr 10 17:58:49 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Wed, 10 Apr 2002 14:58:49 -0700 Subject: [vtkusers] simple Maximum Intensity Projection (MIP) Message-ID: <3CB4B599.68A8DC74@lbl.gov> Hi I'm trying to do a simple MIP but it do not work. Here is the code: ----------------------------------------------------------------------------------------- vtkImageReader reader reader SetFileName "$VTK_DATA/aortaFile3D.vtk" vtkPiecewiseFunction greyTransferFunction greyTransferFunction AddSegment 0 1. 255 1. vtkVolumeProperty volumeProperty volumeProperty SetColor greyTransferFunction volumeProperty SetInterpolationTypeToLinear vtkVolumeRayCastMIPFunction MIPFunction MIPFunction SetMaximizeMethodToScalarValue vtkVolumeRayCastMapper volumeMapper volumeMapper SetInput [reader GetOutput] volumeMapper SetVolumeRayCastFunction MIPFunction vtkVolume volume volume SetMapper volumeMapper volume SetProperty volumeProperty ren1 AddVolume volume ------------------------------------------------------------------------- My image is a 3D MR dataset of 8bits grey values that has already been used for other things. What did I forget? Thanks. Thomas From meschman at engima.com Wed Apr 10 20:57:57 2002 From: meschman at engima.com (mikee) Date: Wed, 10 Apr 2002 19:57:57 -0500 Subject: [vtkusers] Engima Technologies Corp. : new topological movies made with vtk Message-ID: http://www.engima.com/modules.php?name=Downloads&d_op=viewdownload&cid=1 From jaume at tele.ucl.ac.be Thu Apr 11 00:15:27 2002 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Thu, 11 Apr 2002 06:15:27 +0200 (MEST) Subject: [vtkusers] image to polydata Message-ID: Dear all, How to convert a 3D image to a polydata to visualize the 3D grid ? vtkImageDataGeometryFilter does a good job at converting a 2D image to a grid (points + connectivity). But when it comes to 3D, it outputs vertices without any connectivity. Is there another filter that will output the points, and a 'box' (a list of 8 point indices) to represent every voxel ? What about adding a functionality OutputConnectivityOn/Off to vtkImageDataGeometryFilter ? Thanks. Sylvain From mininel.ml at gnbts.univ.trieste.it Thu Apr 11 03:32:38 2002 From: mininel.ml at gnbts.univ.trieste.it (stefano mininel) Date: Thu, 11 Apr 2002 09:32:38 +0200 Subject: [vtkusers] Producing Animation References: Message-ID: <3CB53C16.122D77DF@gnbts.univ.trieste.it> Have a look at http://www.cs.utah.edu/~cs5630/intro/anim.html Stefano Mininel Giancarlo Amati wrote: > Hi everybody, > > a new question for you: I develped a visualization software in with I > visualized Astronomical Object. I implemented a trackball by myself > because I would like to track and save camera movement (Dolly, Elevetion, > Rolling...) to reproduce after like a video sequence. > Is there another possibility to produce a video sequence in VTK 3.2? Is > there something similar to a vtkMPEGWriter... Or to reproduce the movement > of a vtkIterator ? > > Thank you all > Giancarlo Amati From mininel.ml at gnbts.univ.trieste.it Thu Apr 11 03:45:39 2002 From: mininel.ml at gnbts.univ.trieste.it (stefano mininel) Date: Thu, 11 Apr 2002 09:45:39 +0200 Subject: [vtkusers] Help: How to Read DICOM files in vtk References: <006701c1e08c$89c1fe80$01000001@macinfo.net> Message-ID: <3CB53F23.9AC35075@gnbts.univ.trieste.it> As you probably know DICOM files are much more than a simple "image", with a long and complex "header" covering the "medical context" of the image. Before putting them in the graphics pipeline you should extract the pure "image data" from the files. 1) Either you first convert all the .dcm files into .raw using the freeware dicom2 by S. Barr? (see http://www.barre.nom.fr/medical/dicom2/ , of course this is a tip valid only if you are under Windows) 2) or the 3D Slicer application (freeware from the MIT, see http://www.slicer.org/ ) has several "vtkMRML..." VTK classes and if I well remember something in them should allow direct reading in the graphic pipeline of DICOM series. Probably there are other solutions as well. Hope this helps Stefano Mininel cspl wrote: > Dear friends, I am a new user of vtk.I want to read slices of dicom > like series of 50 images with extension of a slices.They purely raw > data .I am trying to read the data using vtkVolume16Reader.But not > solved.I wrote the code like following.Please help me > anybody. vtkVolume16Reader *reader = vtkVolume16Reader::New(); > reader->SetDataByteOrderToLittleEndian(); > > reader->SetFilePrefix("C:\\DicomFiles\\ImageFiles\\04081219\\6554888"); > > reader->SetFilePattern("dcm"); > reader->SetImageRange(6554888,6555788); > reader->SetDataSpacing(1,1,1); > reader->SetDataDimensions(256,256); Thanking > you, Regards,Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Thu Apr 11 03:52:20 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Thu, 11 Apr 2002 09:52:20 +0200 Subject: [vtkusers] using quadric clustering with dem : settings? Message-ID: <001001c1e12d$cfced0a0$c000a8c0@ouessant> Hello, I am using vtkQuadricClustering with DEM, (z component as a function of x,y). And I wonder what kind of settings could output the best visual quality : Is the best to set X,Y and Z divisions to the same value, or to set XY to a bigger value than Z(=2) ? I am interested in the best visual_quality/speed ratio. I guess that some of you have already met such issues. Thanks for any experience result or advice. Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: From c.p.botha at its.tudelft.nl Thu Apr 11 03:51:42 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Thu, 11 Apr 2002 09:51:42 +0200 Subject: [vtkusers] Producing Animation In-Reply-To: <3CB53C16.122D77DF@gnbts.univ.trieste.it> References: <3CB53C16.122D77DF@gnbts.univ.trieste.it> Message-ID: <20020411075142.GB28123@dutidad.twi.tudelft.nl> On Thu, Apr 11, 2002 at 09:32:38AM +0200, stefano mininel wrote: > Have a look at > http://www.cs.utah.edu/~cs5630/intro/anim.html > > Stefano Mininel > > Giancarlo Amati wrote: > > > Is there another possibility to produce a video sequence in VTK 3.2? Is > > there something similar to a vtkMPEGWriter... Or to reproduce the movement > > of a vtkIterator ? > > > > Thank you all > > Giancarlo Amati If you don't like to work on toy operating systems, you could use my http://cpbotha.net/im2avi.html to make AVI movies on fltk/avifile/imagemagick supporting *ix-like systems from arbitrary image frames. Regards, -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From maraux at ondim.fr Thu Apr 11 04:03:14 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Thu, 11 Apr 2002 10:03:14 +0200 Subject: [vtkusers] vtkImageDataGeometryFilter convenient for DEM Message-ID: <002101c1e12f$554cbed0$c000a8c0@ouessant> Hello again. Would vtkImageDataGeometryFilter be convenient for triangulating a DEM. (I am not interested in Delaunay triangulation, as it is far too slow for triangulating millions of points) ? I would just do a triangulation such as : *--------* | \ | / | | \ | / | *---*---* | / | \ | | / | \ | *---*---* alternating square diagonals direction (I am not sure it will be clear enough ...) will this function achieve this ? Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: From rrp at imm.dtu.dk Thu Apr 11 04:32:43 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Thu, 11 Apr 2002 10:32:43 +0200 Subject: [vtkusers] VTK nightly installation guide published Message-ID: I have written a step-by-step installation guide for VTK 4.1.x. It is very specific and it is aimed for people that want to install and use VTK with the following configuration: - VTK nightly release - PC with Windows (tested on 2000, XP and 98) - Visual C++ 6.0 - C++ support - TCL/TK support It is placed at: http://www.imm.dtu.dk/~rrp/ Comments and suggestions are welcome! For a general introduction to VTK my advice is to buy the books. Regards Rasmus From maraux at ondim.fr Thu Apr 11 05:46:01 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Thu, 11 Apr 2002 11:46:01 +0200 Subject: [vtkusers] lookuptable scalar range rounding Message-ID: <000e01c1e13d$b0fc6470$c000a8c0@ouessant> Hello again, again... When vtkLookupTable maps scalars to its entries, it usually takes the floor() value after aplying a simple ratio. Is it possible to tell vtkLookupTable to choose nearest value instead ?? I would like to use a even number of entries, and doing so it is not possible to keep the negative to positive change clear. (ie. mapping a -x to x scalars to a 256 entries colormap will lead to a mapping of positive values to the colorid 127, which is less than half of the colormap, but I want colorids <=127 for oceans (x<0) and colorids >127 for floor (x>0) ) I am currently using a 255 or 257 entries lookuptable. (then id 127 or 128 is exactly mapped to x=0) Seb -------------- next part -------------- An HTML attachment was scrubbed... URL: From el_basha_ems at hotmail.com Thu Apr 11 07:22:51 2002 From: el_basha_ems at hotmail.com (omda sobhy) Date: Thu, 11 Apr 2002 11:22:51 +0000 Subject: [vtkusers] carortid.vtk Message-ID: An HTML attachment was scrubbed... URL: From ko at nest.irfu.se Thu Apr 11 07:55:06 2002 From: ko at nest.irfu.se (Mykola Khotyaintsev) Date: Thu, 11 Apr 2002 13:55:06 +0200 (CEST) Subject: [vtkusers] vtk3.2 crashes on Windows 2000 Message-ID: <20020411135424.D14743-200000@nest.irfu.se> Dear vtkusers! I have a serious problem using java vtk on Windows 2000. The SimpleVTK works fine. I try to visualize a satellite in my programme. Everything works fine when I use vtkSphereSource, but when I try to create more complicated geometry (see attached file test.java) the programme works fine, when the actor is far away from the camera, but when I zoom in the programme crashes with the following message: ----------------------------------------------------------------------- An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0xed92f00 Function name=DrvValidateVersion Library=C:\WINNT\System32\mxicd.dll Current Java thread: at vtk.vtkRenderWindow.Render_6(Native Method) at vtk.vtkRenderWindow.Render(vtkRenderWindow.java:36) at vtk.vtkPanel.Render(vtkPanel.java:118) [skipped] ------------------------------------------------------------------------ I have tested my programme on different platforms including FreeBSD, Linux, Solaris, Win95, 98, NT and it works fine. Please help. Thanks in advance, Mykola Khotyaintsev [OVT Team] (http://ovt.irfu.se) -------------- next part -------------- /** This programme crashes on Windows 2000 */ import vtk.*; import java.awt.*; import java.awt.event.*; public class test { public static void main (String[] args) { Frame window = new Frame("Satellite"); window.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); window.addNotify(); vtkPanel renPanel = new vtkPanel(); renPanel.setSize(400,400); window.removeAll(); window.add(renPanel); // satellite size is 3m x 1.2m double cylinderHeight = 0.4; double cylinderRadius = 0.5; double coneHeight = 0.4; vtkPlane plane1 = new vtkPlane(); plane1.SetOrigin(0, 0, -cylinderHeight/2); plane1.SetNormal( 0, 0, -1); vtkPlane plane2 = new vtkPlane(); plane2.SetOrigin(0, 0, cylinderHeight/2); plane2.SetNormal( 0, 0, 1); // align cylinder along Z vtkTransform cylinderTransform = new vtkTransform(); cylinderTransform.RotateX(90); vtkCylinder cylinder = new vtkCylinder();//it's cymetry axis is Y cylinder.SetRadius(cylinderRadius); cylinder.SetTransform(cylinderTransform); // align cone along Z and shift it up. vtkTransform coneTransform = new vtkTransform(); coneTransform.RotateY(90); coneTransform.Translate(0, 0, cylinderHeight/2 + coneHeight); vtkCone cone = new vtkCone(); //it's cymetry axis is X cone.SetAngle(10); cone.SetTransform(coneTransform); vtkImplicitBoolean theCone = new vtkImplicitBoolean(); theCone.SetOperationTypeToIntersection(); theCone.AddFunction( cone ); theCone.AddFunction( plane2 ); vtkImplicitBoolean theCylinder = new vtkImplicitBoolean(); theCylinder.SetOperationTypeToIntersection(); theCylinder.AddFunction( cylinder ); theCylinder.AddFunction( plane1 ); theCylinder.AddFunction( plane2 ); vtkImplicitBoolean theSpacecraft = new vtkImplicitBoolean(); theSpacecraft.SetOperationTypeToUnion(); theSpacecraft.AddFunction( theCone ); theSpacecraft.AddFunction( theCylinder ); // iso-surface to create geometry vtkSampleFunction theSpacecraftSample = new vtkSampleFunction(); theSpacecraftSample.SetImplicitFunction( theSpacecraft ); theSpacecraftSample.SetModelBounds(-cylinderRadius, cylinderRadius, -cylinderRadius, cylinderRadius, -(cylinderHeight/2+coneHeight), cylinderHeight/2); theSpacecraftSample.SetSampleDimensions( 30, 30, 30); theSpacecraftSample.ComputeNormalsOff(); vtkContourFilter theSpacecraftSurface = new vtkContourFilter(); theSpacecraftSurface.SetInput( theSpacecraftSample.GetOutput() ); theSpacecraftSurface.SetValue( 0, 0); // map to graphics library vtkPolyDataMapper mapper = new vtkPolyDataMapper(); mapper.SetInput(theSpacecraftSurface.GetOutput()); mapper.ScalarVisibilityOff(); vtkActor actor = new vtkActor(); actor.SetMapper(mapper); vtkRenderer ren1 = renPanel.getRenderer(); ren1.AddActor(actor); ren1.SetBackground(1,1,1); // Background color white window.pack(); window.setVisible(true); } } From jluu at indy.rr.com Thu Apr 11 08:09:01 2002 From: jluu at indy.rr.com (Jimmy Luu) Date: Thu, 11 Apr 2002 07:09:01 -0500 Subject: [vtkusers] carortid.vtk References: Message-ID: <3CB57CDD.7E49D34C@indy.rr.com> Hi all, I am trying to configure vtk with java on redhat linux 7.2 I don't know what I did wrong. jdk1.3.1_03 and vtk40 were installed right. I could compile the file test.java. When I tried to run I kept getting the following errors: Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/jdk1.3.1_03/jre/lib/i386/libvtkRenderingJava.so: /usr/java/jdk1.3.1_03/jre/lib/i386/libvtkRenderingJava.so: undefined symbol: JAWT_GetAWT at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1330) at java.lang.Runtime.loadLibrary0(Runtime.java:744) at java.lang.System.loadLibrary(System.java:815) at test.(test.java:13) Anyone has a solution to this problem? Thanks in advance. Jimmy From jluu at indy.rr.com Thu Apr 11 08:27:43 2002 From: jluu at indy.rr.com (Jimmy Luu) Date: Thu, 11 Apr 2002 07:27:43 -0500 Subject: [vtkusers] vtk java redhat 7.2 problem References: <3CB57CDD.7E49D34C@indy.rr.com> Message-ID: <3CB5813F.D3F6402B@indy.rr.com> > Hi all, > I am trying to configure vtk with java on redhat linux 7.2 > I don't know what I did wrong. > jdk1.3.1_03 and vtk40 were installed right. I could compile the file > test.java. > When I tried to run I kept getting the following errors: > > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /usr/java/jdk1.3.1_03/jre/lib/i386/libvtkRenderingJava.so: > /usr/java/jdk1.3.1_03/jre/lib/i386/libvtkRenderingJava.so: undefined > symbol: JAWT_GetAWT > at java.lang.ClassLoader$NativeLibrary.load(Native Method) > at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1414) > at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1330) > at java.lang.Runtime.loadLibrary0(Runtime.java:744) > at java.lang.System.loadLibrary(System.java:815) > at test.(test.java:13) > > Anyone has a solution to this problem? > Thanks in advance. > Jimmy > From covkmhk at yahoo.com Thu Apr 11 08:54:53 2002 From: covkmhk at yahoo.com (c v) Date: Thu, 11 Apr 2002 05:54:53 -0700 (PDT) Subject: [vtkusers] where is the "mpi.h" Message-ID: <20020411125453.95573.qmail@web20303.mail.yahoo.com> hi, I built vtk4.0 Debug well. But when I build the vtk4.0 today Relealse (the dsw was generated by the same cmake configuration ) ,there pops up: " fatal error C1083: Cannot open include file: 'mpi.h': No such file or directory". And I cannt find the "mpi.h" in the vtk4.0. That is why and how to fix it. Thanks a lot! __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From sebastien.barre at kitware.com Thu Apr 11 09:10:34 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Thu, 11 Apr 2002 09:10:34 -0400 Subject: [vtkusers] Help: How to Read DICOM files in vtk In-Reply-To: <3CB53F23.9AC35075@gnbts.univ.trieste.it> References: <006701c1e08c$89c1fe80$01000001@macinfo.net> Message-ID: <5.1.0.14.2.20020411090844.01f6e978@pop.fr.clara.net> At 4/11/2002 03:45 AM, stefano mininel wrote: >As you probably know DICOM files are much more than a simple "image", with >a long and complex "header" covering the "medical context" of the image. Actually, if the pixels of the DICOM file are really at the end of the file, you can use an Image Reader directly. Of course, it implies you check the structure of the file each time. >Before putting them in the graphics pipeline you should extract the pure >"image data" from the files. > >1) Either you first convert all the .dcm files into .raw using the >freeware dicom2 by S. Barr? >(see >http://www.barre.nom.fr/medical/dicom2/ >, of course this is a tip valid only if you are under Windows) Windows and Linux. -- Sebastien Barre -------------- next part -------------- An HTML attachment was scrubbed... URL: From austrobaldo at bol.com.br Thu Apr 11 09:14:59 2002 From: austrobaldo at bol.com.br (Ricardo Czekster) Date: Thu, 11 Apr 2002 10:14:59 -0300 Subject: [vtkusers] Help: How to Read DICOM files in vtk References: <006701c1e08c$89c1fe80$01000001@macinfo.net> <5.1.0.14.2.20020411090844.01f6e978@pop.fr.clara.net> Message-ID: <009a01c1e15a$e24c6c10$6a07a8c0@vaio> Talking about DICOM2, when it will become an "open source project"? TIA ----- Original Message ----- From: Sebastien BARRE To: stefano mininel Cc: vtkusers at public.kitware.com Sent: Thursday, April 11, 2002 10:10 AM Subject: Re: [vtkusers] Help: How to Read DICOM files in vtk At 4/11/2002 03:45 AM, stefano mininel wrote: As you probably know DICOM files are much more than a simple "image", with a long and complex "header" covering the "medical context" of the image. Actually, if the pixels of the DICOM file are really at the end of the file, you can use an Image Reader directly. Of course, it implies you check the structure of the file each time. Before putting them in the graphics pipeline you should extract the pure "image data" from the files. 1) Either you first convert all the .dcm files into .raw using the freeware dicom2 by S. Barr? (see http://www.barre.nom.fr/medical/dicom2/ , of course this is a tip valid only if you are under Windows) Windows and Linux. -- Sebastien Barre -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Thu Apr 11 09:26:09 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 11 Apr 2002 09:26:09 -0400 Subject: [vtkusers] where is the "mpi.h" In-Reply-To: <20020411125453.95573.qmail@web20303.mail.yahoo.com> References: <20020411125453.95573.qmail@web20303.mail.yahoo.com> Message-ID: <1018531569.6849.9.camel@caemlyn.kitwarein.com> You must have turned on VTK_USE_PARALLEL and VTK_USE_MPI in your configuration. Which file is causing this error ? On Thu, 2002-04-11 at 08:54, c v wrote: > hi, > I built vtk4.0 Debug well. But when I build the vtk4.0 > today Relealse (the dsw was generated by the same > cmake configuration ) ,there pops up: > " fatal error C1083: Cannot open include file: > 'mpi.h': No such file or directory". > And I cannt find the "mpi.h" in the vtk4.0. > > That is why and how to fix it. > > Thanks a lot! > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From tdeschamps at lbl.gov Thu Apr 11 11:52:01 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Thu, 11 Apr 2002 08:52:01 -0700 Subject: [vtkusers] simple Maximum Intensity Projection (MIP) References: <3CB4B599.68A8DC74@lbl.gov> Message-ID: <3CB5B121.A2DBA9C0@lbl.gov> Hi I fixed my problem concerning MIP functions (thank you Lisa). What I am trying to do now is map a look-up-table/window-level into the piecewise function used for the vtkRayCastMIPFunction. If I am working on an image with grey values between 0 and 32767, I need a look-up-table/window-level to visualize it, mapping scalars on 8bits. Since in a MIP function, there is a grey transfer function used to project data, is there a common process to transform the look-up-table/window-level of my image into the proper piecewise function for MIP rendering? I would greatly appreciate any example of code. Many thanks Thomas Deschamps From eerkes at mailhost.cs.wwu.edu Thu Apr 11 12:30:42 2002 From: eerkes at mailhost.cs.wwu.edu (Gary Eerkes) Date: Thu, 11 Apr 2002 09:30:42 -0700 Subject: [vtkusers] Image not being displayed in window In-Reply-To: <003401c1e02e$a2d85ad0$4501a8c0@ccase.vicolab.dyndns.org> Message-ID: Happy to report that after updating the graphics driver on the NT platform that it now can display images. -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade Sent: Tuesday, April 09, 2002 6:26 PM To: Vtk Users Subject: Re: [vtkusers] Image not being displayed in window I think your problem is similar to mine. My application based on VTK3.2 runs well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, then my 3D image window display nothing. The 3D image view is attached to a child frame of the main frame, but if I attached the 3D image view to the main frame directly, then there is no problem. I can't solve this problem till now, so I still using VTK3.2. ----- Original Message ----- From: "Gary Eerkes" To: "Vtk Users" Sent: Wednesday, April 10, 2002 4:44 AM Subject: [vtkusers] Image not being displayed in window > I have a vtk application that runs on a number of different Win boxes > running a variety of OS (ME, NT, Win2000, etc.). The application runs fine > on most all systems but on two systems that have Intel graphics cards > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > On another system that has a different graphics card the program will not > display any image at all (all white). > > The application displays a colorscale inside the image window but does not > use vtk to display this colorscale (draws directly on the window). The > colorscale always gets displayed correctly even if the image doesn't. > > I am currently using a copy of vtk dated 10-02-2001. An earlier version of > my application that was based on vtk dated 08-08-2000 displayed correctly on > the machine that is now unable to display any images at all. > > My guess is that the incorrect Opengl frame buffer is getting mapped to the > window in the above instances and that this might be a graphics card/driver > issue. Have any of you encountered similar problems? > > _______________________________________________ > 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 jaume at tele.ucl.ac.be Thu Apr 11 13:33:49 2002 From: jaume at tele.ucl.ac.be (Sylvain Jaume) Date: Thu, 11 Apr 2002 19:33:49 +0200 (MEST) Subject: [vtkusers] image to polydata (fwd) Message-ID: Which filter converts an image to a polydata ? I want to transform a 3D image into a grid and visualize the grid. Neighboring voxels should be connected with a square or a cube. vtkImageDataGeometryFilter misses the connectivity for a 3D image. vtkImageToPolyDataFilter seems to only process 2D images. Any hint is appreciated. Sylvain ---------- Forwarded message ---------- Date: Thu, 11 Apr 2002 06:15:27 +0200 (MEST) From: Sylvain Jaume To: vtkusers at public.kitware.com Subject: image to polydata Dear all, How to convert a 3D image to a polydata to visualize the 3D grid ? vtkImageDataGeometryFilter does a good job at converting a 2D image to a grid (points + connectivity). But when it comes to 3D, it outputs vertices without any connectivity. Is there another filter that will output the points, and a 'box' (a list of 8 point indices) to represent every voxel ? What about adding a functionality OutputConnectivityOn/Off to vtkImageDataGeometryFilter ? Thanks. Sylvain From prabhu at aero.iitm.ernet.in Thu Apr 11 14:03:32 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 11 Apr 2002 23:33:32 +0530 Subject: [vtkusers] [vtk-developers] vtkGenericRenderWindowInteractor In-Reply-To: <5.0.2.1.0.20020411131905.0649c708@pop.nycap.rr.com> References: <1018377714.784.13.camel@xanth.kitwarein.com> <00a601c1e0ca$2a6c97e0$133da8c0@zoo> <1018469647.20687.111.camel@xanth.kitwarein.com> <5.0.2.1.0.20020411131905.0649c708@pop.nycap.rr.com> Message-ID: <15541.53236.173818.409589@monster.linux.in> Hi Bill, >>>>> "BH" == Bill Hoffman writes: BH> I have just checked in the new class BH> vtkGenericRenderWindowInteractor. This class will allow BH> wrapped languages to use the new vtkInteractorObserver, 3D BH> widgets, and old vtkInteractorStyles without needing a C++ BH> class like vtkXRenderWindowTclInteractor. [snip] BH> Are there any volunteers for Java and Python? Great! Thanks! If folks will wait for a couple of days, I'll modify the various Python widgets hopefully this weekend (maybe sooner). I'll pass on the pyQt widget because I cant test it here. The rest I can take care of. Thanks also for the example code. prabhu From dnasoc at direcpc.com Thu Apr 11 18:20:55 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Thu, 11 Apr 2002 15:20:55 -0700 Subject: [vtkusers] triangle strip and normals in vtk file Message-ID: <3CB60C47.FD292D0@direcpc.com> I am writing a vtk file to output geometry from another (not vtk) application. I am looking at the brainsmooth.vtk example file and it ends with normals for each point. 1. How can you specify a valid normal for a point - in a triangle strip it will be (posibly, unless coplanar) 2 different values depending on which triangle is associated with the node? 2. why do you need normals at all, aren't they implied by the winding order of the triangle strip? Randy Dawson From jbiddiscombe at skippingmouse.co.uk Thu Apr 11 20:57:39 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 12 Apr 2002 01:57:39 +0100 Subject: [vtkusers] triangle strip and normals in vtk file References: <3CB60C47.FD292D0@direcpc.com> Message-ID: <000b01c1e1bd$0c0160d0$0100a8c0@tigger> > 1. How can you specify a valid normal for a point - in a triangle strip > it will be (posibly, unless coplanar) 2 different values depending on > which triangle is associated with the node? Unles I'm mitaken its the average of all the face normals that use the point. > 2. why do you need normals at all, aren't they implied by the winding > order of the triangle strip? ??? JB From wolfweed at sina.com Thu Apr 11 22:14:15 2002 From: wolfweed at sina.com (wolfweed) Date: Fri, 12 Apr 2002 10:14:15 +0800 Subject: [vtkusers] Re: Help: How to Read DICOM files in vtk References: <20020410171901.EE55D1ABA2@public.kitware.com> Message-ID: <005a01c1e1c7$bebe2b40$f83e6fa6@pl> hi,maybe this code can help you,these files are DICOM3.0(512*512*16bit*200) vtkImageReader *reader=vtkImageReader::New(); reader -> SetDataByteOrderToLittleEndian(); reader -> SetFilePrefix(".../data/dicom"); reader -> SetHeaderSize(3606); reader -> SetDataExtent(0,511,0,511,1,200); reader -> SetDataMask(0xffff); From liujq at vico-lab.dyndns.org Thu Apr 11 23:10:43 2002 From: liujq at vico-lab.dyndns.org (Liu Jiquan) Date: Fri, 12 Apr 2002 11:10:43 +0800 Subject: [vtkusers] Image not being displayed in window Message-ID: <005a01c1e1cf$a2ec9ca0$4501a8c0@ccase.vicolab.dyndns.org> Congratulations! I also think it has relations to Display Adpater Driver, but what's the diffrence between VTK3.2 and VTk4.x on this point? Why VTK3.2 works well but VTK4.x runs with problems? Hope somebody can give me some hints about this point. In my side, VTK4.x can't works with 3Dlabs VX1 (Windows2000), 3Dlabs GVX1 (Windows2000), and ATI Rage 128 Pro (WindowsXP) with the latest driver updated. ----- Original Message ----- From: "Gary Eerkes" To: "Vtk Users" Sent: Friday, April 12, 2002 12:30 AM Subject: RE: [vtkusers] Image not being displayed in window > Happy to report that after updating the graphics driver on the NT platform > that it now can display images. > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade > Sent: Tuesday, April 09, 2002 6:26 PM > To: Vtk Users > Subject: Re: [vtkusers] Image not being displayed in window > > > I think your problem is similar to mine. My application based on VTK3.2 runs > well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, > then my 3D image window display nothing. > The 3D image view is attached to a child frame of the main frame, but if I > attached the 3D image view to the main frame directly, then there is no > problem. > I can't solve this problem till now, so I still using VTK3.2. > ----- Original Message ----- > From: "Gary Eerkes" > To: "Vtk Users" > Sent: Wednesday, April 10, 2002 4:44 AM > Subject: [vtkusers] Image not being displayed in window > > > > I have a vtk application that runs on a number of different Win boxes > > running a variety of OS (ME, NT, Win2000, etc.). The application runs > fine > > on most all systems but on two systems that have Intel graphics cards > > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > > On another system that has a different graphics card the program will not > > display any image at all (all white). > > > > The application displays a colorscale inside the image window but does not > > use vtk to display this colorscale (draws directly on the window). The > > colorscale always gets displayed correctly even if the image doesn't. > > > > I am currently using a copy of vtk dated 10-02-2001. An earlier version > of > > my application that was based on vtk dated 08-08-2000 displayed correctly > on > > the machine that is now unable to display any images at all. > > > > My guess is that the incorrect Opengl frame buffer is getting mapped to > the > > window in the above instances and that this might be a graphics > card/driver > > issue. Have any of you encountered similar problems? > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From lisa.avila at kitware.com Thu Apr 11 23:22:20 2002 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Thu, 11 Apr 2002 23:22:20 -0400 Subject: [vtkusers] triangle strip and normals in vtk file In-Reply-To: <3CB60C47.FD292D0@direcpc.com> Message-ID: <4.3.2.20020411231814.020285b0@pop.nycap.rr.com> Hello Randy, >1. How can you specify a valid normal for a point - in a triangle strip >it will be (posibly, unless coplanar) 2 different values depending on >which triangle is associated with the node? When you specify a normal per point you get Gouraud shading across the triangle. >2. why do you need normals at all, aren't they implied by the winding >order of the triangle strip? You can rely on flat shading which will compute a normal per facet. Beware - strange results may occur with triangle strips when your data does not have normals, yet you specify Gouraud shading. Lisa From Robert.Day at health.wa.gov.au Fri Apr 12 01:26:54 2002 From: Robert.Day at health.wa.gov.au (Day, Robert) Date: Fri, 12 Apr 2002 13:26:54 +0800 Subject: [vtkusers] Image not being displayed in window Message-ID: <9D3C4A95669BD5119EC80006293801E31ABF8C@NT001MESRP> While I haven't had the same problem, I have something similar. I am changing the underlying geometry, but the rendered view doesn't change. at work : win2000 Oxygen VX1 vtk3.2 OK, vtk4.x OK at home : win95 3Dlabs ViRGE vtk3.2 OK, vtk4.x no update. I tried macetk.tcl in case it was me, and that showed the same results; ie 4.x on the win95 machine did not change the number of spikes etc. when I played with the sliders. Interaction via the camera was fine; I could look at it from any angle, zoom etc. A (perhaps?) related note: changing to wireframe (key 'w') only worked in 4.x on the win95 machine when I changed the actor in question to SetImmediateModeRenderingOn. Changing the colour however worked under all configurations. I have had the same results with the pre-built binaries and building the .dlls myself. So far I haven't had time to see if linux will behave the same way on the two cards. Updating the ViRGE drivers made no difference, but I still feel it is most likely a problem with the 3dlabs driver. > -----Original Message----- > From: Liu Jiquan [mailto:liujq at vico-lab.dyndns.org] > Sent: Friday, 12 April 2002 11:11 AM > To: Vtk Users > Subject: Re: [vtkusers] Image not being displayed in window > > > Congratulations! > I also think it has relations to Display Adpater Driver, but > what's the > diffrence between VTK3.2 and VTk4.x on this point? Why VTK3.2 > works well but > VTK4.x runs with problems? Hope somebody can give me some > hints about this > point. In my side, VTK4.x can't works with 3Dlabs VX1 > (Windows2000), 3Dlabs > GVX1 (Windows2000), and ATI Rage 128 Pro (WindowsXP) with the > latest driver > updated. From affable at hd2.dot.net.in Fri Apr 12 01:59:39 2002 From: affable at hd2.dot.net.in (cspl) Date: Fri, 12 Apr 2002 11:29:39 +0530 Subject: [vtkusers] Find the volume of Raw files in vtk Message-ID: <002e01c1e1e7$3cf74ea0$01000001@macinfo.net> Dear friends, I converted my DICOM files into .raw files using DICOM2 tool.After that I read the data using vtkVolume16Reader.But I am not getting exact volume.I have written code as follows.Total 51 files.Image size is 512kb. vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren1 = vtkRenderWindowInteractor::New(); iren1->SetRenderWindow(renWin); vtkVolume16Reader *reader = vtkVolume16Reader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\6554888"); reader->SetFilePattern("C:\\DicomFiles\\DownLoad\\xyz\\6554888.raw"); reader->SetImageRange(6554888,6555788); reader->SetDataSpacing(1,1,1); reader->SetDataDimensions(256,256); vtkImageActor *Actor=vtkImageActor::New(); Actor->SetInput(reader->GetOutput()); renWin->SetSize(300,300); ren1->SetBackground(0.1, 0.2, 0.4); ren1->AddActor(Actor); iren1->Initialize(); renWin->Render(); SAVEIMAGE( renWin ); iren1->Start(); If anybody knows pls.help me . Regards, Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From mininel.ml at gnbts.univ.trieste.it Fri Apr 12 03:21:16 2002 From: mininel.ml at gnbts.univ.trieste.it (stefano mininel) Date: Fri, 12 Apr 2002 09:21:16 +0200 Subject: [vtkusers] Find the volume of Raw files in vtk References: <002e01c1e1e7$3cf74ea0$01000001@macinfo.net> Message-ID: <3CB68AEB.4EB94DAF@gnbts.univ.trieste.it> Not checked everything, but for sure SetDataSpacing(1,1,1) is wrong. First check the attributes of the original DICOM files. ( Sante Viewer LE for example, at http://users.forthnet.gr/ath/mkanell/applications.html#SanteViewerLE, is a freeware Windows DICOM viewer. Or you can use again Dicom2 to convert into readable text. ) Find tags <0028,0030> "Pixel Spacing" and <0018,0050> "Slice Thickness" (in truth, better you check <0020,1041> "Slice Location" as well, to see if slice thickness is really the distance between two adiacent images). Then do "SetDataSpacing(xPixelSpacing, yPixelSpacing, SliceDistance)". Regards Stefano Mininel P.S.: To Sebastian Barr?: I'm humbly sorry!! I didn't remember Dicom2 was for Linux too. It's a great tool! I didn't mean to underestimate it. :-) cspl wrote: > Dear friends, I converted my DICOM files into .raw files using DICOM2 > tool.After that I read the data using vtkVolume16Reader.But I am not > getting exact volume.I have written code as follows.Total 51 > files.Image size is 512kb. vtkRenderer *ren1 = vtkRenderer::New(); > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer(ren1); > vtkRenderWindowInteractor *iren1 = vtkRenderWindowInteractor::New(); > iren1->SetRenderWindow(renWin); > vtkVolume16Reader *reader = vtkVolume16Reader::New(); > reader->SetDataByteOrderToLittleEndian(); > reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\6554888"); > > reader->SetFilePattern("C:\\DicomFiles\\DownLoad\\xyz\\6554888.raw"); > reader->SetImageRange(6554888,6555788); > reader->SetDataSpacing(1,1,1); > reader->SetDataDimensions(256,256); vtkImageActor > *Actor=vtkImageActor::New(); > Actor->SetInput(reader->GetOutput()); > renWin->SetSize(300,300); > ren1->SetBackground(0.1, 0.2, 0.4); > ren1->AddActor(Actor); > iren1->Initialize(); > renWin->Render(); > SAVEIMAGE( renWin ); > iren1->Start(); > If anybody knows pls.help me . Regards,Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Fri Apr 12 04:01:30 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Fri, 12 Apr 2002 10:01:30 +0200 Subject: [vtkusers] vtkVRMLExporter and several viewpoints export ? Message-ID: <000c01c1e1f8$420271c0$c000a8c0@ouessant> Hello, Is it possible to export several viewpoints in VRML from different cameras ? Does it just require to set up these cameras? Thanks Seb ---------------------------------------------------------------------- Sebastien MARAUX ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : 02 23 30 73 73 fax : 02 23 30 73 71 ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Fri Apr 12 04:09:57 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Fri, 12 Apr 2002 10:09:57 +0200 Subject: [vtkusers] vtk Camera naming / vtkVRMLExport Message-ID: <001901c1e1f9$7075f710$c000a8c0@ouessant> I would like to name a viewpoint exported by vtkVRMLExport from a camera. Is it possible? Seb ---------------------------------------------------------------------- Sebastien MARAUX ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : 02 23 30 73 73 fax : 02 23 30 73 71 ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhou at isg.cs.uni-magdeburg.de Fri Apr 12 04:20:55 2002 From: zhou at isg.cs.uni-magdeburg.de (Jianlong Zhou) Date: Fri, 12 Apr 2002 10:20:55 +0200 Subject: [vtkusers] Can vtkTextureMapper be used for irregular-grids? Message-ID: <3CB6B508.29596.1EF2C2@localhost> An HTML attachment was scrubbed... URL: From bryan.cole at teraview.co.uk Fri Apr 12 05:03:34 2002 From: bryan.cole at teraview.co.uk (bryan cole) Date: 12 Apr 2002 10:03:34 +0100 Subject: [vtkusers] Newbie question on vtkImageFFT Message-ID: <1018602219.11684.8.camel@bryan.teraviewhq.local> Hi All, I need to FFT an 3D volume (vtkImageData) along ONE axis. Since vtkImageFFT is a sub-class of vtkImageDecomposeFilter, I think I could call the SetDimensionality(1). Will this do what I want? How can I specify which axis I want to FFT along? thanks, Bryan -- From maraux at ondim.fr Fri Apr 12 05:37:47 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Fri, 12 Apr 2002 11:37:47 +0200 Subject: [vtkusers] vtkQuadricClustering and use of z division Message-ID: <001501c1e205$b5338190$c000a8c0@ouessant> using quadricClustering, I noticed that using ZDivision = 2, I obtain some breaks in the surface I try to decimate near the center altitude. If ZDivision = 3, there is 2 zones of breaks. Would it be possible not to use ZDivision (it doesn't accept 1) in order not to have zones of breaks (ie zones where the surface is not smooth) ? Seb ---------------------------------------------------------------------- Sebastien MARAUX ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : 02 23 30 73 73 fax : 02 23 30 73 71 ---------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From shade_cn at yahoo.com Thu Apr 11 23:02:36 2002 From: shade_cn at yahoo.com (Shade) Date: Fri, 12 Apr 2002 11:02:36 +0800 Subject: [vtkusers] Image not being displayed in window References: Message-ID: <004501c1e1ce$818f2880$4501a8c0@ccase.vicolab.dyndns.org> Congratulations! I also think it has relations to Display Adpater Driver, but what's the diffrence between VTK3.2 and VTk4.x on this point? Why VTK3.2 works well but VTK4.x runs with problems? Hope somebody can give me some hints about this point. In my side, VTK4.x can't works with 3Dlabs VX1 (Windows2000), 3Dlabs GVX1 (Windows2000), and ATI Rage 128 Pro (WindowsXP) with the latest driver updated. ----- Original Message ----- From: "Gary Eerkes" To: "Vtk Users" Sent: Friday, April 12, 2002 12:30 AM Subject: RE: [vtkusers] Image not being displayed in window > Happy to report that after updating the graphics driver on the NT platform > that it now can display images. > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Shade > Sent: Tuesday, April 09, 2002 6:26 PM > To: Vtk Users > Subject: Re: [vtkusers] Image not being displayed in window > > > I think your problem is similar to mine. My application based on VTK3.2 runs > well on my PC, but after I migrate my applicationm from VTK3.2 to VTK4.0, > then my 3D image window display nothing. > The 3D image view is attached to a child frame of the main frame, but if I > attached the 3D image view to the main frame directly, then there is no > problem. > I can't solve this problem till now, so I still using VTK3.2. > ----- Original Message ----- > From: "Gary Eerkes" > To: "Vtk Users" > Sent: Wednesday, April 10, 2002 4:44 AM > Subject: [vtkusers] Image not being displayed in window > > > > I have a vtk application that runs on a number of different Win boxes > > running a variety of OS (ME, NT, Win2000, etc.). The application runs > fine > > on most all systems but on two systems that have Intel graphics cards > > (Intel? 815/815E chipset) on occasion the image comes up black or garbled. > > On another system that has a different graphics card the program will not > > display any image at all (all white). > > > > The application displays a colorscale inside the image window but does not > > use vtk to display this colorscale (draws directly on the window). The > > colorscale always gets displayed correctly even if the image doesn't. > > > > I am currently using a copy of vtk dated 10-02-2001. An earlier version > of > > my application that was based on vtk dated 08-08-2000 displayed correctly > on > > the machine that is now unable to display any images at all. > > > > My guess is that the incorrect Opengl frame buffer is getting mapped to > the > > window in the above instances and that this might be a graphics > card/driver > > issue. Have any of you encountered similar problems? > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From pcarr at infinitemarket.com Fri Apr 12 04:21:52 2002 From: pcarr at infinitemarket.com (Peter J Carr) Date: Fri, 12 Apr 2002 04:21:52 -0400 Subject: [vtkusers] problem compiling nightly build: Message-ID: <3CB69920.6060105@infinitemarket.com> I am trying to build the latest version of vtk on my RedHat7.2 Linux box. Here are the steps I took: 1. cvs checkout vtk (into my existing vtk directory) 2. ccmake (hit 'g' to generate makefiles) 3. make During compilation I get the following error when trying to build the vtk java library. Does anyone have an idea what could be wrong? Thanks, Peter Carr ------- here is the output from the make process... Building default_target in directory /home/pcarr/Projects/vtk/VTK/Common c++ -g -O2 -D_REENTRANT -DvtkCommonJava_EXPORTS -fPIC -I/home/pcarr/Projects/vtk/VTK/Common -I/home/pcarr/Projects/vtk/VTK/Rendering -I/home/pcarr/Projects/vtk/VTK -I/home/pcarr/Projects/vtk/VTK/Common -I/home/pcarr/Projects/vtk/VTK/Filtering -I/home/pcarr/Projects/vtk/VTK/Imaging -I/home/pcarr/Projects/vtk/VTK/Graphics -I/home/pcarr/Projects/vtk/VTK/IO -I/home/pcarr/Projects/vtk/VTK/Utilities/zlib -I/home/pcarr/Projects/vtk/VTK/Utilities/zlib -I/home/pcarr/Projects/vtk/VTK/Utilities/png -I/home/pcarr/Projects/vtk/VTK/Utilities/png -I/home/pcarr/Projects/vtk/VTK/Utilities/jpeg -I/home/pcarr/Projects/vtk/VTK/Utilities/jpeg -I/home/pcarr/Projects/vtk/VTK/Utilities/tiff -I/home/pcarr/Projects/vtk/VTK/Utilities/tiff -I/home/pcarr/Projects/vtk/VTK/Utilities/expat -I/home/pcarr/Projects/vtk/VTK/Utilities/expat -I/home/pcarr/Projects/vtk/VTK/Common/Testing/Cxx -I/usr/local/java/include -I/usr/local/java/include/linux -I/usr/local/java/include -c /home/pcarr/Projects/vtk/VTK/Common/vtkAbstractMapperJava.cxx -o vtkAbstractMapperJava.o /home/pcarr/Projects/vtk/VTK/Common/vtkAbstractMapperJava.cxx: In function `void Java_vtk_vtkAbstractMapper_VTKInit (JNIEnv *, _jobject *)': /home/pcarr/Projects/vtk/VTK/Common/vtkAbstractMapperJava.cxx:222: cannot convert `vtkProcessObject *' to `vtkAbstractMapper *' in initialization make[3]: *** [vtkAbstractMapperJava.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 [p From jwchiu at csie.nctu.edu.tw Fri Apr 12 08:40:32 2002 From: jwchiu at csie.nctu.edu.tw (Chih-Wei Chiu) Date: Fri, 12 Apr 2002 20:40:32 +0800 Subject: [vtkusers] GCC "Name Mangling" Prevent from Linking VTK? Message-ID: <3CB6D5C0.E9AEEDD8@csie.nctu.edu.tw> This is a following post of: "Fail to link with static VTK 4 on Linux (but succeed on Windows)" I find a "potential problem." Uh...this may be "the problem," but would you convince me why this works? I doubted it's because the compiler performed different name mangling scheme to my program and VTK library, and that's why linker failed. To see why, run `nm' on dump the `symbol' used by vtkMarchingCubes::New() [ccbsd7]~>nm /usr/local/lib/vtk/libvtkPatented.a | grep MarchingCubes | grep New ....(omitted)... U New__16vtkMarchingCubes U New__21vtkImageMarchingCubes 00000000 T New__16vtkMarchingCubes While my program gets: [ccbsd7]~>nm /tmp/isosurface.o |grep MarchingCubes U _ZN16vtkMarchingCubes3NewEv 00000000 W _ZN16vtkMarchingCubes8SetValueEif I guess the linker complained `undefined reference' because the function vtkMarchingCubes::New() is called New__16vtkMarchingCubes in VTK, while it's called _ZN16vtkMarchingCubes3NewEv in my program's object file. Why? VTK: 4.0 Compiler: GCC 3.0.4 OS: RedHat Linux 6.2 (same problem on FreeBSD too) compiler options: -g -O2 -- Chih-Wei Chiu Computer Graphics and Geometry Modeling Laboratory, Computer Science and Information Engineering Department, National Chiao-Tung University, Taiwan From jwchiu at csie.nctu.edu.tw Fri Apr 12 08:42:39 2002 From: jwchiu at csie.nctu.edu.tw (Chih-Wei Chiu) Date: Fri, 12 Apr 2002 20:42:39 +0800 Subject: [vtkusers] Fail to link with static/shared VTK 4 on Linux/FreeBSD (undefined reference to...) Message-ID: <3CB6D63F.17CE1464@csie.nctu.edu.tw> Problem: "undefined reference to..." Software versions: VTK 4.0, gcc 3.0.4 OS: RedHat Linux 6.2 I used to successfully compile and link a simple program using vtkMarchingCubes on Windows 2000, with VC++ 6.0 and VTK 4. But it can not be link with the static VTK 4 libraries on Linux (they have been successfully built in /usr/local/lib/vtk). It seems tha a lot of people in this mailing list encoutered the same problem also, but why there is no answer? (I've search the mailing list archive, exhaustly) Build log ========= [jwchiu at cggmpc7 isosurface]$ make g++ -L../../../polyobj/lib -L/usr/local/lib/vtk -o ../../bin/isosurface /tmp/isosurface.o /tmp/Mesh.o /tmp/Volume.o -lpolyobj -lvtkPatented -lvtkCommon -lvtkGraphics -lvtkIO -lvtkFiltering -lvtkRendering -lvtkImaging /tmp/isosurface.o: In function `main': /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:42: undefined reference to `vtkVolume16Reader::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:43: undefined reference to `vtkVolume16Reader::SetDataByteOrderToLittleEndian() '/home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:48: undefined reference to `vtkMarchingCubes::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:49: undefined reference to `vtkStructuredPointsSource::GetOutput() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:49: undefined reference to `vtkStructuredPointsToPolyDataFilter::SetInput(vtkImageData*) ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:52: undefined reference to `vtkPolyDataMapper::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:53: undefined reference to `vtkPolyDataSource::GetOutput() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:53: undefined reference to `vtkPolyDataMapper::SetInput(vtkPolyData*) ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:55: undefined reference to `vtkActor::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:58: undefined reference to `vtkRenderer::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:61: undefined reference to `vtkRenderWindow::New() ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:62: undefined reference to `vtkRenderWindow::AddRenderer(vtkRenderer*) ' /home/jwchiu/cvs/fluid/src/isosurface/isosurface.cpp:73: undefined reference to `vtkOBJExporter::New() -- -- Chih-Wei Chiu Computer Graphics and Geometry Modeling Laboratory, Computer Science and Information Engineering Department, National Chiao-Tung University, Taiwan From billlist at nycap.rr.com Fri Apr 12 09:48:01 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Fri, 12 Apr 2002 08:48:01 -0500 Subject: [vtkusers] GCC "Name Mangling" Prevent from Linking VTK? In-Reply-To: <3CB6D5C0.E9AEEDD8@csie.nctu.edu.tw> Message-ID: <5.0.2.1.0.20020412084556.0648fd08@pop.nycap.rr.com> Sounds like you are mixing two different compilers. Looks like gcc 2.95 and gcc 3.0.4 name mangling. -Bill At 08:40 PM 4/12/2002 +0800, Chih-Wei Chiu wrote: >This is a following post of: > >"Fail to link with static VTK 4 on Linux (but succeed on Windows)" > >I find a "potential problem." Uh...this may be "the problem," but would >you convince me why this works? > >I doubted it's because the compiler performed different name mangling >scheme to my program and VTK library, and that's why linker failed. > >To see why, run `nm' on dump the `symbol' used by >vtkMarchingCubes::New() > >[ccbsd7]~>nm /usr/local/lib/vtk/libvtkPatented.a | grep MarchingCubes | >grep New > ....(omitted)... > U New__16vtkMarchingCubes > U New__21vtkImageMarchingCubes >00000000 T New__16vtkMarchingCubes > >While my program gets: > >[ccbsd7]~>nm /tmp/isosurface.o |grep MarchingCubes > U _ZN16vtkMarchingCubes3NewEv >00000000 W _ZN16vtkMarchingCubes8SetValueEif > >I guess the linker complained `undefined reference' because the function >vtkMarchingCubes::New() is called New__16vtkMarchingCubes in VTK, while >it's called _ZN16vtkMarchingCubes3NewEv in my program's object file. >Why? > > > >VTK: 4.0 >Compiler: GCC 3.0.4 >OS: RedHat Linux 6.2 (same problem on FreeBSD too) >compiler options: -g -O2 > >-- >Chih-Wei Chiu >Computer Graphics and Geometry Modeling Laboratory, >Computer Science and Information Engineering Department, >National Chiao-Tung University, Taiwan >_______________________________________________ >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 sebastien.barre at kitware.com Fri Apr 12 09:06:02 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Fri, 12 Apr 2002 09:06:02 -0400 Subject: [vtkusers] problem compiling nightly build: In-Reply-To: <3CB69920.6060105@infinitemarket.com> Message-ID: <5.1.0.14.2.20020412090508.01f72b20@pop.nycap.rr.com> At 4/12/2002 04:21 AM, Peter J Carr wrote: >I am trying to build the latest version of vtk on my RedHat7.2 Linux box. > >Here are the steps I took: > 1. cvs checkout vtk (into my existing vtk directory) > 2. ccmake (hit 'g' to generate makefiles) > 3. make > >During compilation I get the following error when trying to build the vtk >java library. >Does anyone have an idea what could be wrong? You are doing fine :) I did break VTK yesterday by indroducing a change that is not backward compatible with the latest CMake (not CVS) Release (i.e. 1.2). I'll fix that ASAP. -- Sebastien Barre From ovidovic at medipattern.com Fri Apr 12 11:13:47 2002 From: ovidovic at medipattern.com (Oliver Vidovic) Date: Fri, 12 Apr 2002 11:13:47 -0400 Subject: [vtkusers] vtkImageImport (Get/Set/Copy ImportVoidPointer) in Java In-Reply-To: <20020412104104.1FD561AC7B@public.kitware.com> Message-ID: Hi vtkusers, In vtk, there's a class vtkImageImport, which has 3 methods (SetImportVoidPointer, GetImportVoidPointer and CopyImportVoidPointer), which are not exposed in vtk Java API. Has anyone tried to expose them using JNI? I am using vtk3.2 and Java 1.3. thanks oliver From dgobbi at irus.rri.ca Fri Apr 12 11:35:01 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Fri, 12 Apr 2002 11:35:01 -0400 (EDT) Subject: [vtkusers] vtkImageImport (Get/Set/Copy ImportVoidPointer) in Java In-Reply-To: Message-ID: Hi Oliver, The vtkImageImport Get/Set/CopyImportVoidPointer methods are only exposed through C++ and Python. For these methods to be available in Java, someone would have to modify the Java wrapping code (in VTK/Wrapping) so that Java arrays can be passed to VTK methods that expect a void *. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Fri, 12 Apr 2002, Oliver Vidovic wrote: > > Hi vtkusers, > > In vtk, there's a class vtkImageImport, which has 3 methods > (SetImportVoidPointer, GetImportVoidPointer and CopyImportVoidPointer), > which are not exposed in vtk Java API. > > Has anyone tried to expose them using JNI? > > I am using vtk3.2 and Java 1.3. > > thanks > oliver > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From p.cook at cs.ucl.ac.uk Fri Apr 12 13:37:45 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Fri, 12 Apr 2002 18:37:45 +0100 Subject: [vtkusers] Linux installation problem Message-ID: <20020412173805.6B4041AAD2@public.kitware.com> I am trying to compile VTK 4.0 with Java under Makdrake 8.2. I get the following build error: Error opening output file /usr/local/src/VTK/java/vtk/vtkAbstractMapper.java make[3]: *** [/usr/local/src/VTK/java/vtk/vtkAbstractMapper.java] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 None of the java files exist at this time (there is no .../VTK/java directory). As far as I can tell I have done everything right with cmake. My Java is from Sun, version 1.4.0. Any ideas are appreciated. Phil From elwo73 at hotmail.com Fri Apr 12 14:05:14 2002 From: elwo73 at hotmail.com (jon n) Date: Fri, 12 Apr 2002 11:05:14 -0700 Subject: [vtkusers] vtkLookupTable with iso contours Message-ID: hi, i was wondering if there was a way to force vtkLookupTables to behave such that their indexing always matches a vtkContourFilter. currently, if i have two isovalues, one leading to a surface of larger area, the larger one always gets assigned the '0' color from the lookuptable and the smaller one the '1' color, no matter if the isovalues are themselves assigned '0' or '1' in the contour filter. _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From dnasoc at direcpc.com Fri Apr 12 17:39:17 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Fri, 12 Apr 2002 14:39:17 -0700 Subject: [vtkusers] Help me with vtk file triangle strips Message-ID: <3CB75405.5326B648@direcpc.com> I'm struggling to find my errors in triangle strips in a vtk ascii file. Here is my error message: ERROR: In C:\Sources\VTK\IO\vtkPolyDataReader.cxx, line 335 vtkPolyDataReader (0x00A704B8): Unrecognized keyword: 24 I have attached one 48 point triangle strip. Is it critical on floating point format, spacing, line length, linefeed/cr or ? This is a cross section of a piece of pipe, a type of well log called a caliper. I want to use vtk to analyze the data and wrote a well log (LAS) to vtk converter, but obviously got something wrong. Thanks, Randy Dawson here is my data: # vtk DataFile Version 2.0 vtk output ASCII DATASET POLYDATA POINTS 48 float 0.393 1.466 1199.980 0.390 1.457 1199.980 0.386 1.442 1199.980 0.386 1.441 1199.980 0.386 1.441 1199.980 0.389 1.453 1199.980 0.392 1.464 1199.980 0.392 1.464 1199.980 0.393 1.466 1199.980 0.391 1.460 1199.980 0.391 1.460 1199.980 0.388 1.449 1199.980 0.391 1.458 1199.980 0.387 1.446 1199.980 0.391 1.458 1199.980 0.388 1.448 1199.980 0.386 1.441 1199.980 0.390 1.455 1199.980 0.389 1.451 1199.980 0.388 1.448 1199.980 0.391 1.458 1199.980 0.393 1.466 1199.980 0.390 1.457 1199.980 0.392 1.464 1199.980 0.393 1.466 1199.950 0.391 1.458 1199.950 0.386 1.441 1199.950 0.386 1.441 1199.950 0.386 1.439 1199.950 0.389 1.453 1199.950 0.392 1.464 1199.950 0.392 1.464 1199.950 0.393 1.466 1199.950 0.392 1.461 1199.950 0.391 1.458 1199.950 0.388 1.449 1199.950 0.391 1.458 1199.950 0.387 1.446 1199.950 0.391 1.458 1199.950 0.388 1.448 1199.950 0.386 1.441 1199.950 0.389 1.453 1199.950 0.389 1.451 1199.950 0.388 1.448 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 TRIANGLE_STRIPS 1 138 48 0 24 1 24 1 25 1 25 2 25 2 26 2 26 3 26 3 27 3 27 4 27 4 28 4 28 5 28 5 29 5 29 6 29 6 30 6 30 7 30 7 31 7 31 8 31 8 32 8 32 9 32 9 33 9 33 10 33 10 34 10 34 11 34 11 35 11 35 12 35 12 36 12 36 13 36 13 37 13 37 14 37 14 38 14 38 15 38 15 39 15 39 16 39 16 40 16 40 17 40 17 41 17 41 18 41 18 42 18 42 19 42 19 43 19 43 20 43 20 44 20 44 21 44 21 45 21 45 22 45 22 46 23 47 0 47 0 24 -------------- next part -------------- # vtk DataFile Version 2.0 vtk output ASCII DATASET POLYDATA POINTS 48 float 0.393 1.466 1199.980 0.390 1.457 1199.980 0.386 1.442 1199.980 0.386 1.441 1199.980 0.386 1.441 1199.980 0.389 1.453 1199.980 0.392 1.464 1199.980 0.392 1.464 1199.980 0.393 1.466 1199.980 0.391 1.460 1199.980 0.391 1.460 1199.980 0.388 1.449 1199.980 0.391 1.458 1199.980 0.387 1.446 1199.980 0.391 1.458 1199.980 0.388 1.448 1199.980 0.386 1.441 1199.980 0.390 1.455 1199.980 0.389 1.451 1199.980 0.388 1.448 1199.980 0.391 1.458 1199.980 0.393 1.466 1199.980 0.390 1.457 1199.980 0.392 1.464 1199.980 0.393 1.466 1199.950 0.391 1.458 1199.950 0.386 1.441 1199.950 0.386 1.441 1199.950 0.386 1.439 1199.950 0.389 1.453 1199.950 0.392 1.464 1199.950 0.392 1.464 1199.950 0.393 1.466 1199.950 0.392 1.461 1199.950 0.391 1.458 1199.950 0.388 1.449 1199.950 0.391 1.458 1199.950 0.387 1.446 1199.950 0.391 1.458 1199.950 0.388 1.448 1199.950 0.386 1.441 1199.950 0.389 1.453 1199.950 0.389 1.451 1199.950 0.388 1.448 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 TRIANGLE_STRIPS 1 138 48 0 24 1 24 1 25 1 25 2 25 2 26 2 26 3 26 3 27 3 27 4 27 4 28 4 28 5 28 5 29 5 29 6 29 6 30 6 30 7 30 7 31 7 31 8 31 8 32 8 32 9 32 9 33 9 33 10 33 10 34 10 34 11 34 11 35 11 35 12 35 12 36 12 36 13 36 13 37 13 37 14 37 14 38 14 38 15 38 15 39 15 39 16 39 16 40 16 40 17 40 17 41 17 41 18 41 18 42 18 42 19 42 19 43 19 43 20 43 20 44 20 44 21 44 21 45 21 45 22 45 22 46 23 47 0 47 0 24 From lisa.avila at kitware.com Fri Apr 12 23:05:37 2002 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Fri, 12 Apr 2002 23:05:37 -0400 Subject: [vtkusers] Help me with vtk file triangle strips In-Reply-To: <3CB75405.5326B648@direcpc.com> Message-ID: <4.3.2.20020412225944.0207bea8@pop.nycap.rr.com> Randy, I don't think you have specified your triangle strips correctly. You say that there is 1 cell and 138 elements total, then in your first cell you claim to have only 48 elements? Perhaps if your 48 were a 138 it would read the file. Lisa At 05:39 PM 4/12/2002, Randy Dawson wrote: >I'm struggling to find my errors in triangle strips in a vtk ascii file. > > Here is my error message: > > >ERROR: In C:\Sources\VTK\IO\vtkPolyDataReader.cxx, line 335 >vtkPolyDataReader (0x00A704B8): Unrecognized keyword: 24 > >I have attached one 48 point triangle strip. Is it critical on floating >point format, spacing, line length, linefeed/cr or ? >This is a cross section of a piece of pipe, a type of well log called a >caliper. I want to use vtk to analyze the data and wrote a well log >(LAS) to vtk converter, but obviously got something wrong. > >Thanks, > >Randy Dawson > > > > > > >here is my data: > > ># vtk DataFile Version 2.0 >vtk output >ASCII >DATASET POLYDATA >POINTS 48 float >0.393 1.466 1199.980 0.390 1.457 1199.980 0.386 1.442 1199.980 >0.386 1.441 1199.980 0.386 1.441 1199.980 0.389 1.453 1199.980 >0.392 1.464 1199.980 0.392 1.464 1199.980 0.393 1.466 1199.980 >0.391 1.460 1199.980 0.391 1.460 1199.980 0.388 1.449 1199.980 >0.391 1.458 1199.980 0.387 1.446 1199.980 0.391 1.458 1199.980 >0.388 1.448 1199.980 0.386 1.441 1199.980 0.390 1.455 1199.980 >0.389 1.451 1199.980 0.388 1.448 1199.980 0.391 1.458 1199.980 >0.393 1.466 1199.980 0.390 1.457 1199.980 0.392 1.464 1199.980 >0.393 1.466 1199.950 0.391 1.458 1199.950 0.386 1.441 1199.950 >0.386 1.441 1199.950 0.386 1.439 1199.950 0.389 1.453 1199.950 >0.392 1.464 1199.950 0.392 1.464 1199.950 0.393 1.466 1199.950 >0.392 1.461 1199.950 0.391 1.458 1199.950 0.388 1.449 1199.950 >0.391 1.458 1199.950 0.387 1.446 1199.950 0.391 1.458 1199.950 >0.388 1.448 1199.950 0.386 1.441 1199.950 0.389 1.453 1199.950 >0.389 1.451 1199.950 0.388 1.448 1199.950 0.391 1.458 1199.950 >0.393 1.466 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 >TRIANGLE_STRIPS 1 138 >48 0 24 1 24 1 25 1 25 2 25 2 26 2 26 3 26 3 27 3 27 4 27 4 28 4 28 5 28 >5 29 5 29 6 29 6 30 6 30 7 30 7 31 7 31 8 31 >8 32 8 32 9 32 9 33 9 33 10 33 10 34 10 34 11 34 11 35 11 35 12 35 12 36 >12 36 13 36 13 37 13 37 14 37 14 38 14 38 15 >38 15 39 15 39 16 39 16 40 16 40 17 40 17 41 17 41 18 41 18 42 18 42 19 >42 19 43 19 43 20 43 20 44 20 44 21 44 21 45 >21 45 22 45 22 46 23 47 0 47 0 24 > > ># vtk DataFile Version 2.0 >vtk output >ASCII >DATASET POLYDATA >POINTS 48 float >0.393 1.466 1199.980 0.390 1.457 1199.980 0.386 1.442 >1199.980 0.386 1.441 1199.980 0.386 1.441 1199.980 0.389 1.453 1199.980 >0.392 1.464 1199.980 0.392 1.464 1199.980 0.393 1.466 >1199.980 0.391 1.460 1199.980 0.391 1.460 1199.980 0.388 1.449 1199.980 >0.391 1.458 1199.980 0.387 1.446 1199.980 0.391 1.458 >1199.980 0.388 1.448 1199.980 0.386 1.441 1199.980 0.390 1.455 1199.980 >0.389 1.451 1199.980 0.388 1.448 1199.980 0.391 1.458 >1199.980 0.393 1.466 1199.980 0.390 1.457 1199.980 0.392 1.464 1199.980 >0.393 1.466 1199.950 0.391 1.458 1199.950 0.386 1.441 >1199.950 0.386 1.441 1199.950 0.386 1.439 1199.950 0.389 1.453 1199.950 >0.392 1.464 1199.950 0.392 1.464 1199.950 0.393 1.466 >1199.950 0.392 1.461 1199.950 0.391 1.458 1199.950 0.388 1.449 1199.950 >0.391 1.458 1199.950 0.387 1.446 1199.950 0.391 1.458 >1199.950 0.388 1.448 1199.950 0.386 1.441 1199.950 0.389 1.453 1199.950 >0.389 1.451 1199.950 0.388 1.448 1199.950 0.391 1.458 >1199.950 0.393 1.466 1199.950 0.391 1.458 1199.950 0.393 1.466 1199.950 >TRIANGLE_STRIPS 1 138 >48 0 24 1 24 1 25 1 25 2 25 2 26 2 26 3 26 3 27 3 27 4 27 4 28 4 28 5 28 5 >29 5 29 6 29 6 30 6 30 7 30 7 31 7 31 8 31 >8 32 8 32 9 32 9 33 9 33 10 33 10 34 10 34 11 34 11 35 11 35 12 35 12 36 >12 36 13 36 13 37 13 37 14 37 14 38 14 38 15 >38 15 39 15 39 16 39 16 40 16 40 17 40 17 41 17 41 18 41 18 42 18 42 19 42 >19 43 19 43 20 43 20 44 20 44 21 44 21 45 >21 45 22 45 22 46 23 47 0 47 0 24 From husthj at yahoo.com Tue Apr 9 03:26:47 2002 From: husthj at yahoo.com (Denny) Date: Tue, 9 Apr 2002 00:26:47 -0700 (PDT) Subject: [vtkusers] How to set enviroment variable VTK_DATA_ROOT Message-ID: <20020409072647.45553.qmail@web20204.mail.yahoo.com> I run the finance example and it give me an error message:"Please set enviroment variable VTK_DATA_ROOT". Then I add a system variable named VTK_DATA_ROOT with value "c:/program files/vtk40/vtkData" but it seemed not work. How can I set this variable? __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From nNunn at ausport.gov.au Sat Apr 13 08:02:36 2002 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Sat, 13 Apr 2002 22:02:36 +1000 Subject: [vtkusers] RE: Producing Animation Message-ID: <7AF3524792FFD511A17A0000F81E965E47291F@elmo.ausport.gov.au> > I developed visualization software in which I visualized > Astronomical Object. I implemented a trackball by myself > because I would like to track and save camera movement > (Dolly, Elevetion, Rolling...) to reproduce after like a > video sequence. Is there another possibility to produce a > video sequence in VTK 3.2? Is there something similar to a > vtkMPEGWriter... Or to reproduce the movement of a vtkInteractor? On Win32, we used the code from the CView OnEditCopy handler to grab a memory-rendered bitmap of the current RenderWindow. With a little care setting up and shutting down, each "frame" can be poured directly into an AVI stream: vtkWin32AVIWriter. Nigel From zehle at foni.net Sat Apr 13 08:05:45 2002 From: zehle at foni.net (Martin Zehle) Date: Sat, 13 Apr 2002 14:05:45 +0200 Subject: [vtkusers] cant find package vtk* Message-ID: <200204131205.AFH72044@ms01.komtel.net> Hi, I installed the Java support files and tried to compile one of the delivered samples getting the message like : cant find package vtk* what went wrong ? Do I have to place the vtk folder somewhere or change sth. more in the classpath variabe ? any help is welcome, thanks Martin From jluu at indy.rr.com Sat Apr 13 12:01:09 2002 From: jluu at indy.rr.com (Jimmy Luu) Date: Sat, 13 Apr 2002 11:01:09 -0500 Subject: [vtkusers] vtk client/server applications References: Message-ID: <3CB85645.57A9C2A7@indy.rr.com> Hi there, Have anyone done any server/client app based on vtkSocket that can handle multiple clients. any suggestions would be appreciated. Thanks Jimmy From malcolm at geovision.co.za Sun Apr 14 16:40:47 2002 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Sun, 14 Apr 2002 22:40:47 +0200 Subject: [vtkusers] possible bug in vtkProgrammableSource Message-ID: <000c01c1e3f4$dde6cb60$cefefea9@bart> Hi I've found a problem with the programmable source object while upgrading some scripts from 3.1 to 3.2 (built from source downloaded around Jan 2002). It appears that the StructuredPointsOutput is not being updated (perhaps only the polydata output works properly). The attached script works fine under 3.1. Does anyone know anything about this bug? Maybe it's been fixed, but I couldn't find anything in the archives. Also, I don't have 4.0 installed yet - if there aren't any regression tests on the different output types could someone try this script. Malcolm -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: progsrc.tcl Type: application/octet-stream Size: 567 bytes Desc: not available URL: From ulrik at liquid.se Mon Apr 15 04:47:04 2002 From: ulrik at liquid.se (Ulrik Lindahl) Date: Mon, 15 Apr 2002 10:47:04 +0200 Subject: [vtkusers] debug leak crash Message-ID: hi! I am new to vtk, but have had no problem using the system from the included .lib files. However, I tried compiling the sources in visual C++, with "Debug Leaks" on, and now the CppExample file Cone.cpp breaks after it has finished rendering the cone (when the system is shutting down). The code breakes in the EnterCriticalSection() call in vtkDebugLeaks::DestructClass while destructing "vtkDataObjectCollection" does anyone know what is wrong? /Ulrik From ulrik at liquid.se Mon Apr 15 05:08:04 2002 From: ulrik at liquid.se (Ulrik Lindahl) Date: Mon, 15 Apr 2002 11:08:04 +0200 Subject: [vtkusers] debug leak crash In-Reply-To: Message-ID: BTW: this only happens when "Debug Leak" is turned on. /Ulrik -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Ulrik Lindahl Sent: den 15 april 2002 10:47 To: vtkusers at public.kitware.com Subject: [vtkusers] debug leak crash hi! I am new to vtk, but have had no problem using the system from the included .lib files. However, I tried compiling the sources in visual C++, with "Debug Leaks" on, and now the CppExample file Cone.cpp breaks after it has finished rendering the cone (when the system is shutting down). The code breakes in the EnterCriticalSection() call in vtkDebugLeaks::DestructClass while destructing "vtkDataObjectCollection" does anyone know what is wrong? /Ulrik _______________________________________________ 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 charlie.chang at nchc.gov.tw Mon Apr 15 05:30:23 2002 From: charlie.chang at nchc.gov.tw (Charlie H. Chang) Date: Mon, 15 Apr 2002 17:30:23 +0800 Subject: [vtkusers] problem about cvs download?? Message-ID: <3CBA9DAF.1020905@nchc.gov.tw> Hi there, I have problem to download the VTK CVS tree. Is the server still up and running, or it's my network problem?? Thank you in advance! -- Charlie H. Chang charlie.chang at nchc.gov.tw National Center for High-performance Computing VOICE:1-886-3-5776085x362 From andy.cedilnik at kitware.com Mon Apr 15 06:53:10 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 15 Apr 2002 06:53:10 -0400 Subject: [vtkusers] How to set enviroment variable VTK_DATA_ROOT In-Reply-To: <20020409072647.45553.qmail@web20204.mail.yahoo.com> References: <20020409072647.45553.qmail@web20204.mail.yahoo.com> Message-ID: <1018867990.784.119.camel@xanth.kitwarein.com> On Tue, 2002-04-09 at 03:26, Denny wrote: > I run the finance example and it give me an error > message:"Please set enviroment variable > VTK_DATA_ROOT". > Then I add a system variable named VTK_DATA_ROOT with > value "c:/program files/vtk40/vtkData" but it seemed > not work. How can I set this variable? Depending on what Windows are you using (looking at your path I would assume you use Windows). If you use 95,98,ME, then you should add this line to the file: c:/Autoexec.bat: set VTK_DATA_ROOT=c:\Progra~1\vtk40\vtkdata If you use Windows NT,2000,XP (huh, this is so weird), then click on the My Computer using the right (or left) mouse button and select properties. There you will find in one tab something like Environment options. Add there VTK_DATA_ROOT. Make sure to use backslash \ not slash /. Andy From andy.cedilnik at kitware.com Mon Apr 15 06:54:12 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 15 Apr 2002 06:54:12 -0400 Subject: [vtkusers] problem about cvs download?? In-Reply-To: <3CBA9DAF.1020905@nchc.gov.tw> References: <3CBA9DAF.1020905@nchc.gov.tw> Message-ID: <1018868075.834.121.camel@xanth.kitwarein.com> On Mon, 2002-04-15 at 05:30, Charlie H. Chang wrote: > > Hi there, > I have problem to download the VTK CVS tree. > Is the server still up and running, or it's my network problem?? What seems to be a problem? I was doing cvs update whole weekend (last time just now) and I do not see any problem. Andy From boyd at biomed.ee.ethz.ch Mon Apr 15 07:00:10 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Mon, 15 Apr 2002 13:00:10 +0200 Subject: [vtkusers] Skeletonization in 3D Message-ID: <3CBAB2BA.82E65A15@biomed.ee.ethz.ch> Hello, Does anybody know of a skeletonization routine that has been implemented in VTK? Or some code/algorithm that would be suitable for incorporating into a new VTK class for 3D skeletonization? Sincerely, Steve -- Steven Boyd, PhD Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From p.cook at cs.ucl.ac.uk Mon Apr 15 07:57:45 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Mon, 15 Apr 2002 12:57:45 +0100 Subject: [vtkusers] Linux installation problem Message-ID: <20020415115751.A531E1AA71@public.kitware.com> On Friday 12 April 2002 6:37 pm, Phil Cook wrote: > I am trying to compile VTK 4.0 with Java under Makdrake 8.2. I get the > following build error: > > Error opening output file > /usr/local/src/VTK/java/vtk/vtkAbstractMapper.java make[3]: *** > [/usr/local/src/VTK/java/vtk/vtkAbstractMapper.java] Error 1 make[2]: *** > [default_target] Error 2 > make[1]: *** [default_target_Common] Error 2 > make: *** [default_target] Error 2 > > None of the java files exist at this time (there is no .../VTK/java > directory). As far as I can tell I have done everything right with cmake. > > My Java is from Sun, version 1.4.0. > > Any ideas are appreciated. > > > Phil I have received a solution to this problem: the user must manually create /java/vtk/ under the main VTK installation directory. Phil From P.J.H.de_Koning at lumc.nl Mon Apr 15 09:20:20 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Mon, 15 Apr 2002 15:20:20 +0200 Subject: [vtkusers] problem vtkPolyDataWriter when writing to string. Message-ID: Hi everybody, When I try to write a vtkPolyData object to a string, using the WriteToOutputStringOn() function, the resulting string isn't null terminated. Is this a bug or is there a special reason why the null character isn't included? Patrick de Koning From lorensen at crd.ge.com Mon Apr 15 10:26:44 2002 From: lorensen at crd.ge.com (Lorensen, William E (Research)) Date: Mon, 15 Apr 2002 10:26:44 -0400 Subject: [vtkusers] possible bug in vtkProgrammableSource Message-ID: Looks like the problem still exists in 4.0. I added a line: $out SetWholeExtent 0 9 0 9 0 9 to the proc and all works well. I suspect some changes in the pipeline update mechanism is causing it to fail without the SetWhOLEeXTENT. Bill -----Original Message----- From: Malcolm Drummond [mailto:malcolm at geovision.co.za] Sent: Sunday, April 14, 2002 4:41 PM To: vtkusers Subject: [vtkusers] possible bug in vtkProgrammableSource Hi I've found a problem with the programmable source object while upgrading some scripts from 3.1 to 3.2 (built from source downloaded around Jan 2002). It appears that the StructuredPointsOutput is not being updated (perhaps only the polydata output works properly). The attached script works fine under 3.1. Does anyone know anything about this bug? Maybe it's been fixed, but I couldn't find anything in the archives. Also, I don't have 4.0 installed yet - if there aren't any regression tests on the different output types could someone try this script. Malcolm From semeraro at ncsa.uiuc.edu Mon Apr 15 10:32:49 2002 From: semeraro at ncsa.uiuc.edu (Dave Semeraro) Date: Mon, 15 Apr 2002 09:32:49 -0500 Subject: [vtkusers] threads and vtkSynchronizedTemplates Message-ID: <5.1.0.14.2.20020415092338.033c29b0@mail.ncsa.uiuc.edu> Hello there, I am using vtkSynchronizedTemplates3D to generate isosurface geometry from a structured points data set. I am running the test on a dual 1.4ghz athlon processor linux system running the 2.4.18-xfs kernel. I am timing the results using the vtkTimerLog class. It seems to make little difference in time whether I use 1 or 2 threads to do the test. In fact the 2 thread case seems to run slightly slower. The isosurface value I choose generates over 800,000 polygons and takes about 0.8 seconds to complete so I dont think it is a timer resolution problem. I have verified that setting the number of threads does indeed cause both cpus to be used ( verified via top output). I must be doing something wrong. Why bother with threading if you see no difference in speed? Has anyone else seen similar results? Can anyone explain what I am doing wrong? Best Regards, Dave Semeraro Dave Semeraro Ph.D. Visualization and Virtual Environments Group NCSA University of Illinois 605 E. Springfield Ave. Champaign, IL 61820 Semeraro at ncsa.uiuc.edu (217) 244-1852 From philip.allen at man.ac.uk Mon Apr 15 13:55:23 2002 From: philip.allen at man.ac.uk (Danny Allen) Date: Mon, 15 Apr 2002 18:55:23 +0100 Subject: [vtkusers] VTK and QT on Windows2000 Message-ID: <3CBB140B.FDB7B849@man.ac.uk> Is there a way of integrating VTK and QT on Windows 2000 ? I've tried using VTKQT by Matthias Koenig but I can't get it to work on my system. I can successfully build VTK, QT, and VTKQT on my machine, and I can build applications using either VTK or QT. However, when I try and bring them altogether in an application that links to all three libraries I get link errors whose cause are beyond my meager programming skills. There basically seems to be some conflict between VTKQT.lib and msvcprtd.lib. Are there some compiler switches I need to tweak, or is there an alternative to VTKQT that I might have more luck with ? I'm using VTK4.0, QT2.3.0 and Visual C++6.0 Developer Studio. Thanks Danny Allen Imaging Science and Biomedical Engineering University of Manchester From mmalat at irus.rri.ca Mon Apr 15 16:19:23 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Mon, 15 Apr 2002 16:19:23 -0400 Subject: [vtkusers] VTK4Src.tar.gz + CMake1.3 = problems Message-ID: <3CBB35CB.6118F3F0@irus.rri.ca> Hi all, I'm using VTK4 cvs, but I've been asked to put a VTK 4.0 for production. So I download the VTK4Src.tar.gz then do a simple cmake but I got some problems that does not appear with VTK cvs (log included). Does anyone have any idea to fix it ? I'm working on Linux Redhat 7.1, with CMake cvs. I also remarked that with the cmake1.2 (not the cvs) everything works fine. Thanks Mathieu CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: ABSTRACT_FILES: Error : ABSTRACT_FILES could not find source file(s): vtkAttributeData /shalom/data/mmalat/VTK4/Common CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: ABSTRACT_FILES: Error : ABSTRACT_FILES could not find source file(s): vtkInterpolatingSubdivisionFilter vtkProp3D /shalom/data/mmalat/VTK4/Filtering CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: ABSTRACT_FILES: Error : ABSTRACT_FILES could not find source file(s): vtkImageInPlaceFilter vtkImageToImageFilter vtkImageTwoInputFilter /shalom/data/mmalat/VTK4/Imaging CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: ABSTRACT_FILES: Error : ABSTRACT_FILES could not find source file(s): vtkVolumeReader /shalom/data/mmalat/VTK4/Rendering CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 CMake Error: OPTION: Error : OPTION called with incorrect number of arguments/shalom/data/mmalat/VTK4 -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From lisa.avila at kitware.com Mon Apr 15 16:55:31 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Mon, 15 Apr 2002 16:55:31 -0400 Subject: [vtkusers] possible bug in vtkProgrammableSource In-Reply-To: Message-ID: <5.1.0.14.0.20020415164221.0494a3c0@pop.nycap.rr.com> Malcolm, Bill's solution is the right one - the problem is that unless you tell it, the structured points won't know what the whole extent it. This is a required value (should be documented better) of a programmable source. It is actually a requirement of the UpdateInformation method of all sources / filters (this is where the programmable method is called). At some point in the past (maybe 3.1) VTK used to "correct" your whole extent for you if it wasn't set. I believed this caused problems and was replaced by the notion that all sources/filters must set the whole extent. Lisa At 10:26 AM 4/15/2002, Lorensen, William E (Research) wrote: >Looks like the problem still exists in 4.0. I added a line: > > $out SetWholeExtent 0 9 0 9 0 9 > >to the proc and all works well. I suspect some changes in the pipeline >update mechanism is causing >it to fail without the SetWhOLEeXTENT. > >Bill > > >-----Original Message----- >From: Malcolm Drummond [mailto:malcolm at geovision.co.za] >Sent: Sunday, April 14, 2002 4:41 PM >To: vtkusers >Subject: [vtkusers] possible bug in vtkProgrammableSource > > >Hi > >I've found a problem with the programmable source object while upgrading >some scripts from 3.1 to 3.2 >(built from source downloaded around Jan 2002). It appears that the >StructuredPointsOutput is not >being updated (perhaps only the polydata output works properly). The >attached script works fine under >3.1. Does anyone know anything about this bug? Maybe it's been fixed, but >I couldn't find anything in >the archives. > >Also, I don't have 4.0 installed yet - if there aren't any regression >tests on the different output >types could someone try this script. > >Malcolm > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From lisa.avila at kitware.com Mon Apr 15 17:03:08 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Mon, 15 Apr 2002 17:03:08 -0400 Subject: [vtkusers] threads and vtkSynchronizedTemplates In-Reply-To: <5.1.0.14.2.20020415092338.033c29b0@mail.ncsa.uiuc.edu> Message-ID: <5.1.0.14.0.20020415170039.0490d210@pop.nycap.rr.com> I just did a test with my dual processor Pentium IV Xeon 1.7 GHz system. With TestSynchronizedTemplates3D.tcl with 1 processor an update took about .151 seconds, and with 2 processors it took about .11 seconds. (wall time with tcl) What method are you using from TimerLog? If you are using CPU time - keep in mind that it will ALWAYS take longer when using more processors - otherwise you would have better than linear speedup! The CPU time adds up the time of all threads (except on Windows where it simply reports wall time). Lisa At 10:32 AM 4/15/2002, Dave Semeraro wrote: >Hello there, > >I am using vtkSynchronizedTemplates3D to generate isosurface geometry from a >structured points data set. I am running the test on a dual 1.4ghz athlon >processor linux system >running the 2.4.18-xfs kernel. I am timing the results using the >vtkTimerLog class. It seems to >make little difference in time whether I use 1 or 2 threads to do the >test. In fact the 2 thread >case seems to run slightly slower. The isosurface value I choose generates >over 800,000 >polygons and takes about 0.8 seconds to complete so I dont think it is a >timer resolution >problem. I have verified that setting the number of threads does indeed >cause both cpus to >be used ( verified via top output). I must be doing something wrong. Why >bother with threading >if you see no difference in speed? Has anyone else seen similar results? >Can anyone explain >what I am doing wrong? > >Best Regards, >Dave Semeraro > >Dave Semeraro Ph.D. >Visualization and Virtual Environments Group >NCSA University of Illinois >605 E. Springfield Ave. >Champaign, IL 61820 >Semeraro at ncsa.uiuc.edu >(217) 244-1852 > >_______________________________________________ >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From david_pont at hotmail.com Mon Apr 15 17:23:40 2002 From: david_pont at hotmail.com (David Pont) Date: Tue, 16 Apr 2002 09:23:40 +1200 Subject: [vtkusers] VTK and QT on Windows2000 Message-ID: An HTML attachment was scrubbed... URL: From dai_shuocn at 163.com Tue Apr 16 00:48:55 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Tue, 16 Apr 2002 12:48:55 +0800 Subject: [vtkusers] a simple question about vtkPolyDataConnectivityFilter Message-ID: <20020416044921.41F9D1CC90598@sm6.163.com> hi, I want to extract connective parts out of a vtkPolyData object. here's a part of my codes: .... vtkPolyDataConnectivityFilter *filter = vtkPolyDataConnectivityFilter::New(); filter->SetInput(Reader->GetOutput()); filter->SetExtractionModeToAllRegions(); filter->Update(); m_NumRegions = filter->GetNumberOfExtractedRegions(); .... I got the correct m_NumRegions, but how can I get the pointers to those extracted regions? my codes below can work but quite inefficient. .... filter->SetExtractionModeToSpecifiedRegions(); filter->InitializeSpecifiedRegionList(); for(int i=0; iAddSpecifiedRegion(i); filter->Update(); Region[i] = filter->GetOutput(); // Region[i] points to the ith region } please show me a better way to sovle this problem. thanks. Daishuo 2002.04.16 From malcolm at geovision.co.za Mon Apr 15 17:02:29 2002 From: malcolm at geovision.co.za (Malcolm Drummond) Date: Mon, 15 Apr 2002 23:02:29 +0200 Subject: [vtkusers] possible bug in vtkProgrammableSource References: Message-ID: <000201c1e51d$0af49d20$cefefea9@bart> Thanks - SetWholeExtent fixes everything. Malcolm ----- Original Message ----- From: Lorensen, William E (Research) To: 'Malcolm Drummond' ; vtkusers Sent: Monday, April 15, 2002 4:26 PM Subject: RE: [vtkusers] possible bug in vtkProgrammableSource > Looks like the problem still exists in 4.0. I added a line: > > $out SetWholeExtent 0 9 0 9 0 9 > > to the proc and all works well. I suspect some changes in the pipeline update mechanism is causing > it to fail without the SetWhOLEeXTENT. > > Bill > > > -----Original Message----- > From: Malcolm Drummond [mailto:malcolm at geovision.co.za] > Sent: Sunday, April 14, 2002 4:41 PM > To: vtkusers > Subject: [vtkusers] possible bug in vtkProgrammableSource > > > Hi > > I've found a problem with the programmable source object while upgrading some scripts from 3.1 to 3.2 > (built from source downloaded around Jan 2002). It appears that the StructuredPointsOutput is not > being updated (perhaps only the polydata output works properly). The attached script works fine under > 3.1. Does anyone know anything about this bug? Maybe it's been fixed, but I couldn't find anything in > the archives. > > Also, I don't have 4.0 installed yet - if there aren't any regression tests on the different output > types could someone try this script. > > Malcolm > > > From maraux at ondim.fr Tue Apr 16 04:33:32 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 16 Apr 2002 10:33:32 +0200 Subject: [vtkusers] vertex add function // constrained decimation Message-ID: <001201c1e521$651019c0$c000a8c0@ouessant> 1. Is there a vertex add function available in vtk ? I want to use it after delaunay and decimation, in order to add some constraints to the mesh. 2. Is there a way to constrain decimation using: 2.1 vtkDecimatePro ? 2.2 vtkClustering ? By constraints, I mean force the decimation to keep some exact points, which could be a isoline, a polygon contour, etc... ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Tue Apr 16 04:35:39 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 16 Apr 2002 10:35:39 +0200 Subject: [vtkusers] how to simplify a curve to multiline/polygon Message-ID: <001b01c1e521$b09857e0$c000a8c0@ouessant> I wish to simplify a curve to a polygon or multiline, in order to decrease the number of points needed to desribe it. Is there a simple way / function / method of doing that with VTK? ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Tue Apr 16 04:42:57 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 16 Apr 2002 10:42:57 +0200 Subject: [vtkusers] tiling a plane / DEM mesh Message-ID: <002b01c1e522$b5637f10$c000a8c0@ouessant> Does anybody already experienced tiling of a plane / surface mesh ? I would like to tile a DEM to speed up its triangulation. ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.netherway at adelaide.edu.au Tue Apr 16 05:03:42 2002 From: david.netherway at adelaide.edu.au (David Netherway) Date: Tue, 16 Apr 2002 18:33:42 +0930 Subject: [vtkusers] Importing a set of coloured lines References: <4.3.2.20020411231814.020285b0@pop.nycap.rr.com> Message-ID: <000f01c1e525$9b8638a0$0d8156c0@acfu.wch.sa.gov.au> I have a wireframe model in wrl format consisting of a set of lines with a colour associated with each line. I can read the file in and display it using the example VRMLImporter by simply changing the importer filename. But I wish to add the lines to an existing renderer. How can I access the lines and colours for adding the actors to the renderer? Does anyone have suggestions as to a reasonable way to proceed? Thanks, David From maraux at ondim.fr Tue Apr 16 08:27:03 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 16 Apr 2002 14:27:03 +0200 Subject: [vtkusers] how to initialize vtkPolyData array ? Message-ID: <000a01c1e542$045e84b0$c000a8c0@ouessant> I would like to have a polydata array, that I could initialize to a variable size. I would like a data of type (vtkPolyData **tiles) that I could Initialize as vtkPolyData *tiles[x*y] and initialize with *tiles[i] = vtkPolyData::New(); How can I manage that ? ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Tue Apr 16 09:06:29 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 16 Apr 2002 14:06:29 +0100 Subject: [vtkusers] vertex add function // constrained decimation References: <001201c1e521$651019c0$c000a8c0@ouessant> Message-ID: <003701c1e547$92507670$0100a8c0@tigger> >>> 1. Is there a vertex add function available in vtk ? I want to use it after delaunay and decimation, in order to add some constraints to the mesh. 2. Is there a way to constrain decimation using: 2.1 vtkDecimatePro ? 2.2 vtkClustering ? By constraints, I mean force the decimation to keep some exact points, which could be a isoline, a polygon contour, etc... <<< Not really, no. You can constrain the triangulation with a polyline etc, but the decimation will possibly remove it. If you examine the decimate code quite carefully, you will see that a priority queue is used to store each vertex which has been considered for removal, in principle it'd be possible to rework the code to allow a pointdata array to be assigned to the mesh where the values at each point were a "desirablilty" value (say 0->1) where 0 meant allowed to remove and 1 forbidden. This would permit regions to be decimated more or less brutally depending upon uer requirements. It'd be a lot of work, I expect. JB From jbiddiscombe at skippingmouse.co.uk Tue Apr 16 09:07:37 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 16 Apr 2002 14:07:37 +0100 Subject: [vtkusers] how to simplify a curve to multiline/polygon References: <001b01c1e521$b09857e0$c000a8c0@ouessant> Message-ID: <003801c1e547$af577e30$0100a8c0@tigger> Try vtkQuantizePolyDataPoints, which will merge points within a certain tolerance or distance. It may close open lines, but for a curve of high resolution you can reduce the points quite a bit before you'll get an topological inconsistencies. JB ----- Original Message ----- From: "Sebastien_MARAUX" To: "vtk mailing list" Sent: Tuesday, April 16, 2002 9:35 AM Subject: [vtkusers] how to simplify a curve to multiline/polygon I wish to simplify a curve to a polygon or multiline, in order to decrease the number of points needed to desribe it. Is there a simple way / function / method of doing that with VTK? ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- From jbiddiscombe at skippingmouse.co.uk Tue Apr 16 09:08:25 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 16 Apr 2002 14:08:25 +0100 Subject: [vtkusers] tiling a plane / DEM mesh References: <002b01c1e522$b5637f10$c000a8c0@ouessant> Message-ID: <004101c1e547$cb8711b0$0100a8c0@tigger> take DEM use elevation filter, then vtkWarpFilter, you can display DEM as a terrain map directly without triangulation JB ----- Original Message ----- From: "Sebastien_MARAUX" To: "vtk mailing list" Sent: Tuesday, April 16, 2002 9:42 AM Subject: [vtkusers] tiling a plane / DEM mesh Does anybody already experienced tiling of a plane / surface mesh ? I would like to tile a DEM to speed up its triangulation. ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic le guyader 35000 Rennes tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- From jason_donmoyer at chiinc.com Tue Apr 16 09:46:06 2002 From: jason_donmoyer at chiinc.com (jason_donmoyer at chiinc.com) Date: Tue, 16 Apr 2002 09:46:06 -0400 Subject: [vtkusers] vtkPanel and JAVA 1.4 Message-ID: The class vtkPanel distributed with the vtk examples will not compile using J2SDK 1.4. The following excerpt from the release notes explains why: ------ The compiler now rejects import statements that import a type from the unnamed namespace. Previous versions of the compiler would accept such import declarations, even though they were arguably not allowed by the language (because the type name appearing in the import clause is not in scope). The specification is being clarified to state clearly that you cannot have a simple name in an import statement, nor can you import from the unnamed namespace. To summarize, the syntax import SimpleName; is no longer legal. Nor is the syntax import ClassInUnnamedNamespace.Nested; which would import a nested class from the unnamed namespace. To fix such problems in your code, move all of the classes from the unnamed namespace into a named namespace. ----------- You can temporarily get around this problem by compiling vtkPanel with an older version of the JDK while continuing to use J2SDK 1.4 for the rest of your classes. Steps should be taken to fix this problem so that it complies with the latest version of the JDK. This is important so that users of vtk can take advantage of the performance benefits of 1.4 without resorting to recreating the JNI calls. Thank you, Jason Donmoyer From jbiddiscombe at skippingmouse.co.uk Tue Apr 16 10:31:36 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 16 Apr 2002 15:31:36 +0100 Subject: [vtkusers] how to simplify a curve to multiline/polygon References: <001b01c1e521$b09857e0$c000a8c0@ouessant> <003801c1e547$af577e30$0100a8c0@tigger> Message-ID: <000b01c1e553$6abbbfa0$0100a8c0@tigger> > Try vtkQuantizePolyDataPoints, which will merge points within a certain or CleanPolyData - which will be more appropriate. whoops JB From jbiddiscombe at skippingmouse.co.uk Tue Apr 16 10:32:31 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 16 Apr 2002 15:32:31 +0100 Subject: [vtkusers] tiling a plane / DEM mesh References: <002b01c1e522$b5637f10$c000a8c0@ouessant> <004101c1e547$cb8711b0$0100a8c0@tigger> Message-ID: <001101c1e553$8b6b8410$0100a8c0@tigger> > use elevation filter, then vtkWarpFilter, you can display DEM as a terrain another mistake vtkWarpScalars not WarpFilter. JB From semeraro at ncsa.uiuc.edu Tue Apr 16 10:36:57 2002 From: semeraro at ncsa.uiuc.edu (Dave Semeraro) Date: Tue, 16 Apr 2002 09:36:57 -0500 Subject: [vtkusers] threads and vtkSynchronizedTemplates In-Reply-To: <5.1.0.14.0.20020415170039.0490d210@pop.nycap.rr.com> References: <5.1.0.14.2.20020415092338.033c29b0@mail.ncsa.uiuc.edu> Message-ID: <5.1.0.14.2.20020416092505.00bd21d8@mail.ncsa.uiuc.edu> Hi Lisa, So here is the code I am using to test the SynchronizedTemplates code. I have made the, possibly wrong, assumption that since I can set the number of threads in synchronized templates that it will do what I expect. Maybe it is and I am doing the timing wrong. The strange thing is that if I set the number of threads to 1, the program uses only a single processor. If I change it to 2 threads it uses both. This is verified by top output. I wonder if identical work is being done in both processes so no speedup results. I have only played around with parallel vtk in the mpi world where it works fine. This is my first attempt at the threaded stuff. Thanks for any help you can give. Dave // // Head tests the vtkSynchronizedTemplates3D class on // Structured points data. The test does no rendering but // constructs geometry. // #include "vtkStructuredPointsReader.h" #include "vtkSynchronizedTemplates3D.h" #include "vtkTimerLog.h" main( int argc, char** argv) { vtkStructuredPointsReader *reader; vtkSynchronizedTemplates3D *iso; float val; int numTris; val =0.05; reader = vtkStructuredPointsReader::New(); reader->SetFileName("/home/semeraro/head.00699.vol"); reader->Update(); iso = vtkSynchronizedTemplates3D::New(); iso->SetInput(reader->GetOutput()); iso->ComputeScalarsOff(); iso->ComputeGradientsOff(); iso->SetNumberOfThreads(2); cout << " the number of threads is " << iso->GetNumberOfThreads() << endl; vtkTimerLog *timer = vtkTimerLog::New(); for( val = 0.02; val < 0.1; val = val+0.01 ) { iso->SetValue(0, val); timer->StartTimer(); iso->Update(); timer->StopTimer(); numTris = iso->GetOutput()->GetNumberOfCells(); cerr << "Update " << val << " took " << timer->GetElapsedTime() << " seconds to produce " << numTris << " polygons\n"; } } At 05:03 PM 4/15/2002 -0400, Lisa Avila wrote: >I just did a test with my dual processor Pentium IV Xeon 1.7 GHz system. >With TestSynchronizedTemplates3D.tcl with 1 processor an update took about >.151 seconds, and with 2 processors it took about .11 seconds. (wall time >with tcl) > >What method are you using from TimerLog? If you are using CPU time - keep >in mind that it will ALWAYS take longer when using more processors - >otherwise you would have better than linear speedup! The CPU time adds up >the time of all threads (except on Windows where it simply reports wall time). > >Lisa > > > >At 10:32 AM 4/15/2002, Dave Semeraro wrote: > >>Hello there, >> >>I am using vtkSynchronizedTemplates3D to generate isosurface geometry from a >>structured points data set. I am running the test on a dual 1.4ghz athlon >>processor linux system >>running the 2.4.18-xfs kernel. I am timing the results using the >>vtkTimerLog class. It seems to >>make little difference in time whether I use 1 or 2 threads to do the >>test. In fact the 2 thread >>case seems to run slightly slower. The isosurface value I choose >>generates over 800,000 >>polygons and takes about 0.8 seconds to complete so I dont think it is a >>timer resolution >>problem. I have verified that setting the number of threads does indeed >>cause both cpus to >>be used ( verified via top output). I must be doing something wrong. Why >>bother with threading >>if you see no difference in speed? Has anyone else seen similar results? >>Can anyone explain >>what I am doing wrong? >> >>Best Regards, >>Dave Semeraro >> >>Dave Semeraro Ph.D. >>Visualization and Virtual Environments Group >>NCSA University of Illinois >>605 E. Springfield Ave. >>Champaign, IL 61820 >>Semeraro at ncsa.uiuc.edu >>(217) 244-1852 >> >>_______________________________________________ >>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 Dave Semeraro Ph.D. Visualization and Virtual Environments Group NCSA University of Illinois 605 E. Springfield Ave. Champaign, IL 61820 Semeraro at ncsa.uiuc.edu (217) 244-1852 From amati at ira.cnr.it Tue Apr 16 11:47:18 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 16 Apr 2002 17:47:18 +0200 (CEST) Subject: [vtkusers] Object Existence Message-ID: Hello Everybody, I would ask you if TCL have some particular functions to test the existence of a VTK object. Bye Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From poecher at icom-consulting.de Tue Apr 16 11:15:43 2002 From: poecher at icom-consulting.de (Christian Poecher) Date: Tue, 16 Apr 2002 17:15:43 +0200 Subject: [vtkusers] Object Existence References: Message-ID: <3CBC401F.CD20DE89@icom-consulting.de> Try calling a method and catch the possible error: vtkCubeSource cube if { [catch {set i [cube GetMTime]}] } { puts stderr "cube does not exist" exit -1 } chris Giancarlo Amati schrieb: > > Hello Everybody, > > I would ask you if TCL have some particular functions to test the > existence of a VTK object. -- ________________________________________________________________________ Christian Poecher mailto:poecher at icom-consulting.de ICOM GmbH Phone: +49 241 9367-1554 Schloss-Rahe-Str. 15, 52072 Aachen, Germany Fax : +49 241 9367-1589 ________________________________________________________________________ From ovidovic at medipattern.com Tue Apr 16 11:49:12 2002 From: ovidovic at medipattern.com (Oliver Vidovic) Date: Tue, 16 Apr 2002 11:49:12 -0400 Subject: [vtkusers] vtkPanel.java and vtkJavaAwt.h In-Reply-To: <20020416104204.544311AB69@public.kitware.com> Message-ID: Hi vtkusers I am maintaining some old code that's using java and custom build of vtk. The vtk.vtkPanel java class (in our code) has 3 native methods declared as native (RenderCreate, RenderInternal and SetSizeInternal). However, when I installed vtk3.2 and tried running our program, I got the following error: Exception in thread "main" java.lang.UnsatisfiedLinkError: SetSizeInternal at vtk.vtkPanel.SetSizeInternal(Native Method) at vtk.vtkPanel.setSize(vtkPanel.java:56) .... After some search in vtk cvs, I found a header file named vtkJavaAwt.h that exposes those native methods using JNI, but that header file is not in vtk3.2 source code distribution. Is that file generated by the vtk build process, or can I just use the one from cvs and is there a way to build vtk so that those native methods are exposed? thanks oliver From sfelton at stanford.edu Tue Apr 16 12:47:22 2002 From: sfelton at stanford.edu (sfelton at stanford.edu) Date: Tue, 16 Apr 2002 09:47:22 -0700 Subject: [vtkusers] What to do when you have computations to create a dataset in C++ Message-ID: <1018975642.3cbc559a5c626@webmail.stanford.edu> I have a question. I am a novice at programming as well as visualization. I am a student working on a project to give a graphical output of the numeric output that I compute using C++. The numeric output are force vectors and I would like to display these at every time point as arrows and possibly have the length of the arrows correspond with their magnitude. Does anyone out there know how to transform this dataset that is a 164X3 matrix into graphical data? And then what to do from there? I have the Vizualization Toolkit (2nd edition) text...so if there is something in there that would help me, could someone please point out the particular chapter. Or any suggestions as to what else to purchase. Thanks. From amati at ira.cnr.it Tue Apr 16 14:36:50 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 16 Apr 2002 20:36:50 +0200 (CEST) Subject: [vtkusers] Error UNIX Message-ID: Hello, try to executing my program, my system said this error message: can enybody help me? Error in startup script: couldn't load file "vtktcl": vtktcl.so: cannot open shared object file: No such file or directory while executing "load vtktcl" invoked from within "catch [load vtktcl] " where vtktcl is in the /usr/lib directory as usual. Have I to set some environmet variable? Thank you Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From blezek at crd.ge.com Tue Apr 16 14:23:38 2002 From: blezek at crd.ge.com (Blezek, Daniel J (Research)) Date: Tue, 16 Apr 2002 14:23:38 -0400 Subject: [vtkusers] Compiling VTK using Visual Studio .NET Standard Edition Message-ID: Hi all, I recently purchased MS Visual Studio .NET Standard Edition and have been trying to compile VTK using it. Since the latest "blessed" version of CMake does not create .NET project files, I checked out the latest source to CMake and built it using .NET. However, I get this error when I click to find the python executable: Debug assertion failed. Program: C:\CMake\Source\CMakeSetup.exe File: C:\Program Files\Microsoft Visual Studio .NET\Vc7\atlmfc\include\cstringt.h Expression: nCount >= 0 Has anyone else seen this? Thanks, -dan From tdeschamps at lbl.gov Tue Apr 16 14:37:03 2002 From: tdeschamps at lbl.gov (Thomas Deschamps) Date: Tue, 16 Apr 2002 11:37:03 -0700 Subject: [vtkusers] Drawing a Region of Interest with the mouse Message-ID: <3CBC6F4F.D9616155@lbl.gov> Hi, I am often working with image processing algorithms in huge datasets. I would like to constrain the computation to a small subset of my data. Assuming that I have a display of my 2D image or a slice of my 3D volume, I would like to just draw a region in the image, and to separate it into "in" and "out" regions. I know I can get mouse positions and try to built from that a convex envelope of all points. But I would like to know if someone has already seen that somewhere? Many Thanks. Thomas Deschamps From jclopez+vtk at andrew.cmu.edu Tue Apr 16 15:08:30 2002 From: jclopez+vtk at andrew.cmu.edu (JL) Date: Tue, 16 Apr 2002 15:08:30 -0400 Subject: [vtkusers] vtkPanel and JAVA 1.4 In-Reply-To: Message-ID: Hi Jason, I am enclosing a modified version of vtkPanel (and the corresponding) native routines. These two files are taken from VTK 4.0. I made some minor modifications, which include making vtkPanel part of the vtk package. Although, I compiled with JDK 1.3., it should work with JDK 1.4 if the only requirements are the ones you mentioned in your previous mail. I ran a small test program against vtk3.2 on windows and it works. However, I'm not sure whether it would work on other platforms. I haven't played with VTK 4.0, mainly 'cause I haven't taken the time to see how CMake works. That said, it means I have not built this version of vtkPanel against VTK 4.0. It was confusing why vtkJavaAwt was a header file (.h) and not a C++ file (.cxx) and where it was included from, etc. I think changes are required in the configuration in order to build this version of vtkPanel with vtk 4.0. Anyway, I build a separate vtkPanel library that contains only the native methods for vtkPanel. You are welcome to try it and maybe someone might volunteer to test the changes on different platforms and integrate them in the main source tree. So, here's how I go around building the support for vtkPanel. Essentially, I build it separately from vtk. I build a separate shared library for vtkPanel (i.e. vtkPanel.dll or libvtkPanel.so) from vtkJavaAwt.cxx. I've included a pseudo-makefile, that probably won't work if used directly, but illustrates what it is required to build the vktPanel library. vtkPanel.dll is linked against: - vtkJava.lib - vtkCommon.lib - vtkGraphics0.lib - $(JDKDIR)/lib/jawt.lib where JDKDIR is the topmost directory of the JDK installation. And vtkPanel is compiled as usual, "linking" against vtk.jar. javac -classpath directory_where_your_vtk_jar_is/vtk.jar:. \ vtk/vtkPanel.java And to execute, make sure that the appropriate CLASSPATH is set and that the libraries can be found by the dynamic loader, that is the path to the directory where your libraries are is in the PATH variable for Windows or in LD_LIBRARY_PATH for Unix. By now, I have confused everyone. I apologize I cannot make things easier/clearer, but I'm sure there are many people out there that can do a better job making the build process easier and integrating the changes into VTK. I hope this helps, -- Julio ------------ pseudo-makefile begin ------------ ALL : vtkPanel.dll JDKDIR = your_jdk_dir_here VTKSRCDIR = your_vtk_dir_here VTKBINDIR = your_vtk_build_dir_here PLATFORM = win32 INCLUDES = -I "$(VTKSRCDIR)/common" -I "$(VTKSRCDIR)/graphics" \ -I "$(JDKDIR)/include" -I "$(JDKDIR)/include/$(PLATFORM)" \ -I "$(VTKBINDIR)" CXX_FLAGS = -nologo -G6 -MT -W3 -GX- -Od -DWIN32 -DDEBUG -D_WINDOWS -D_MBCS \ -D_USRDLL -FD -c LINK32 = link.exe LIBS = vtkJava.lib vtkCommon.lib vtkGraphics0.lib $(JDKDIR)/lib/jawt.lib LINK32_FLAGS = -nologo -dll -incremental:no -machine:I386 -out:vtkPanel.dll \ = -implib:vtkPanel.lib -libpath:$(VTKBINDIR)/lib vtkPanel.dll: $(LIBS) vtkJavaAwt.obj $(LINK32) @<< $(LINK32_FLAGS) $(LIBS) vtkJavaAwt.obj << vtkJavaAwt.obj: vtkJavaAwt.cxx # And other dependencies $(CPP) $(CPP_PROJ) $(SOURCE) ------------ pseudo-makefile end ------------ > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com]On Behalf Of > jason_donmoyer at chiinc.com > Sent: Tuesday, April 16, 2002 9:46 AM > To: vtkusers at public.kitware.com > Subject: [vtkusers] vtkPanel and JAVA 1.4 > > > The class vtkPanel distributed with the vtk examples will not > compile using > J2SDK 1.4. The following excerpt from the release notes explains why: > > ------ > > The compiler now rejects import statements that import a type from the > unnamed namespace. Previous versions of the compiler would accept such > import declarations, even though they were arguably not allowed by the > language (because the type name appearing in the import clause is not in > scope). The specification is being clarified to state clearly that you > cannot have a simple name in an import statement, nor can you import from > the unnamed namespace. > To summarize, the syntax > > import SimpleName; > > is no longer legal. Nor is the syntax > import ClassInUnnamedNamespace.Nested; > > which would import a nested class from the unnamed namespace. To fix such > problems in your code, move all of the classes from the unnamed namespace > into a named namespace. > > ----------- > > > You can temporarily get around this problem by compiling vtkPanel with an > older version of the JDK while continuing to use J2SDK 1.4 for the rest of > your classes. Steps should be taken to fix this problem so that > it complies > with the latest version of the JDK. This is important so that > users of vtk > can take advantage of the performance benefits of 1.4 without resorting to > recreating the JNI calls. > > Thank you, > > Jason Donmoyer > _______________________________________________ > 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: vtkJavaAwt.cxx Type: application/octet-stream Size: 6172 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkPanel.java Type: text/java-source Size: 8737 bytes Desc: not available URL: From iamkallur at yahoo.com Tue Apr 16 15:44:07 2002 From: iamkallur at yahoo.com (Satyendra Kallur) Date: Tue, 16 Apr 2002 12:44:07 -0700 (PDT) Subject: [vtkusers] Question about Vtk, Java, Off Screen rendering Message-ID: <20020416194407.18556.qmail@web13405.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hi all, I have an application that is running remotely. This application is in java. I need the image generated by this java application to be saved as a jpg or bmp, and send the image to the front end application. But i didn't find any stuff that supports Off screen rendering in java. or rather vtkPanel does not support off screen rendering. It would be very helpful if anybody can suggest how i go about this process. regards, Kallur __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From bester at onetel.net.uk Tue Apr 16 16:01:53 2002 From: bester at onetel.net.uk (bester) Date: Tue, 16 Apr 2002 21:01:53 +0100 Subject: [vtkusers] VolumeRendering problem Message-ID: <002d01c1e582$429ed820$3b594ed5@piii450mhz> Hi all, I am using vtk3.2 and java. When I display one image, I can rotate it without any problems. But when I load several images to output a volume, as soon as I mouse over, the whole lot disappears. Can anyone explain why this might be please. I have attached my code. Thankyou in advance Carmen -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FinalViewer.java Type: application/octet-stream Size: 3485 bytes Desc: not available URL: From praveenb at gauri.engr.sgi.com Tue Apr 16 16:36:48 2002 From: praveenb at gauri.engr.sgi.com (Praveen Bhaniramka) Date: Tue, 16 Apr 2002 13:36:48 -0700 Subject: [vtkusers] New vtkVolumeTextureMapper3D class Message-ID: Hello vtkusers, The latest release of OpenGL Volumizer (version 2.2) includes implementation of a vtkVolumeTextureMapper3D class which provides an integration of Volumizer with VTK. This class can be used to do volume rendering using 3D texture mapping in an existing VTK application. Volumizer 2.2 can be downloaded freely from http://www.sgi.com/software/volumizer/. The source code for the class is installed in /usr/share/Volumizer2/src/apps/VTK/. The code includes the VTK mapper class, a sample viewer example which demonstrates the use of the class and README files providing usage information. Thanks and enjoy, Praveen P.S. The announcement for Volumizer 2.2 release is appended. ----------------------------------------------------------------------- SGI is very pleased to announce the release of OpenGL Volumizer 2.2! OpenGL Volumizer 2.2 introduces many new features to the toolkit, with special attention to visualization of very large volumetric data. This release introduces support for 3D Clip-Textures along with other utilities and sample code. For the details and downloads, please visit: http://www.sgi.com/software/volumizer/ Here's some of what's new in 2.2. Check it out: o New Large Data API for 3D Clip Textures, to interactively visualize volume data of enormous size by using multiresolution volume rendering, roaming and disk paging. This includes a new parameter class, vzParameterClipTexture and a new render action, vzClipRenderAction. o New geometry class, to render 3D texture mapped arbitrary polygonal geometry. This includes a new geometry class vzPolyGeometry, derived from vzGeometry. o Integration with the Visualization Toolkit (VTK), to allow 3D texture based volume rendering in existing VTK applications. See src/apps/VTK/ for more details. o Utility application, dicomToIFL, to convert DICOM datasets to IFL format. For more details see src/util/dicom. o Utility application, ClipGen3d, to generate 3D clip textures. See src/util/clipGen3d/ for more details. o Sample code for rendering 3D clip textures in src/apps/clipTex3d and src/apps/clipRenderer/ o Sample code for generating volume data files using volume writers. See src/writers/ for more details. o New sample volume data loaders for loading raw binary and bricked volume data files. Further details about each of these features can be found from the OpenGL Volumizer programming guide installed as part of InSight Online Documentation. The programming guide and reference manuals can also be downloaded from http://www.sgi.com/software/volumizer/documents.html Engineering questions about Volumizer can be posted on info-volumizer. See http://www.sgi.com/software/volumizer/tech_info.html. -- ----------------------------------------------------------------- Praveen Bhaniramka Member of Technical Staff (MTS) praveenb at sgi.com Advanced Graphics Division (650)933-1785 Silicon Graphics, Inc. ----------------------------------------------------------------- From alex_lear at hotmail.com Tue Apr 16 16:50:45 2002 From: alex_lear at hotmail.com (Alex Lear) Date: Tue, 16 Apr 2002 14:50:45 -0600 Subject: [vtkusers] How to create a better surface than tubefilter? Message-ID: An HTML attachment was scrubbed... URL: From jluu at indy.rr.com Tue Apr 16 18:16:49 2002 From: jluu at indy.rr.com (Jimmy Luu) Date: Tue, 16 Apr 2002 17:16:49 -0500 Subject: [vtkusers] vtk Java Socket References: Message-ID: <3CBCA2D1.21F1BA22@indy.rr.com> Hi i am trying to send vtk objects over socket in Java but was unsuccessful since Java requires the class object to be Serializable to read and write through ObjectInputStream/ObjectOutputStream. Have anyone done anything similar to this in Java? any suggestions are welcome. Jimmy From goodwin.lawlor at ucd.ie Tue Apr 16 18:52:18 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 16 Apr 2002 23:52:18 +0100 Subject: [vtkusers] Object Existence References: Message-ID: <005801c1e59b$6a7441a0$0a9701c1@highcross> If you want to find out the existence of all the instances of a particular VTK object, use the "ListInstances" method. (e.g.) If you want to know what vtkPlane objects have already been created, type: vtkPlane ListInstances If you want to find out if you have created a VTK object called myObject, type: info commands myObject HTH Goodwin ----- Original Message ----- From: "Giancarlo Amati" To: Sent: Tuesday, April 16, 2002 4:47 PM Subject: [vtkusers] Object Existence > Hello Everybody, > > I would ask you if TCL have some particular functions to test the > existence of a VTK object. > > Bye > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > _______________________________________________ > 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 tpan at crd.ge.com Tue Apr 16 19:54:16 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Tue, 16 Apr 2002 19:54:16 -0400 Subject: [vtkusers] VolumeRendering problem Message-ID: Carmen, The code looks pretty good. The reason you are not seeing the volume when you move it is because you are using vtkLODProp3d. LOD stands for Level Of Detail. Basically, based on how fast your computer can render, vtkLODProp3D would choose the right object representation to draw. If your computer is not fast enough to do a volume rendering, then it choose the next level of detail, which in your case is the outline. When you render a single image, it was probably fast enough to redraw the image each time. When you have several images loaded, then your computer may not be able to keep up, therefore the outline is rendered instead. When you stop the mouse interaction, then vtk will render the entire volume, which will take some time. You should not be able to see both at the same time. Tony -----Original Message----- From: bester [mailto:bester at onetel.net.uk] Sent: Tuesday, April 16, 2002 4:02 PM To: vtkusers at public.kitware.com Subject: [vtkusers] VolumeRendering problem Hi all, I am using vtk3.2 and java. When I display one image, I can rotate it without any problems. But when I load several images to output a volume, as soon as I mouse over, the whole lot disappears. Can anyone explain why this might be please. I have attached my code. Thankyou in advance Carmen -------------- next part -------------- An HTML attachment was scrubbed... URL: From pjc at hootenanny.org Tue Apr 16 23:40:35 2002 From: pjc at hootenanny.org (Peter J. Carr) Date: Tue, 16 Apr 2002 23:40:35 -0400 Subject: [vtkusers] vtkPanel and JAVA 1.4 References: Message-ID: <3CBCEEB3.4030909@hootenanny.org> I notice in the latest VTK CVS version that vtkPanel.java has been moved into the vtk package. I have checked out and built this on my Linux platform (using Java 1.3). I rely on the Wintel pre-compiled binaries for 'my customers'. Does vtk40Java.exe have vtkPanel in the vtk package? Thanks, Peter Carr JL wrote: >Hi Jason, > >I am enclosing a modified version of vtkPanel (and the >corresponding) native routines. These two files are >taken from VTK 4.0. I made some minor modifications, >which include making vtkPanel part of the vtk package. > >Although, I compiled with JDK 1.3., it should work with >JDK 1.4 if the only requirements are the ones you >mentioned in your previous mail. > >I ran a small test program against vtk3.2 on windows and >it works. However, I'm not sure whether it would work >on other platforms. I haven't played with VTK 4.0, >mainly 'cause I haven't taken the time to see how CMake >works. That said, it means I have not built this version >of vtkPanel against VTK 4.0. It was confusing why >vtkJavaAwt was a header file (.h) and not a C++ file >(.cxx) and where it was included from, etc. > >I think changes are required in the configuration in >order to build this version of vtkPanel with vtk 4.0. >Anyway, I build a separate vtkPanel library that >contains only the native methods for vtkPanel. > >You are welcome to try it and maybe someone might >volunteer to test the changes on different platforms >and integrate them in the main source tree. > >So, here's how I go around building the support for >vtkPanel. Essentially, I build it separately from vtk. > >I build a separate shared library for vtkPanel >(i.e. vtkPanel.dll or libvtkPanel.so) from vtkJavaAwt.cxx. >I've included a pseudo-makefile, that probably won't work >if used directly, but illustrates what it is required to >build the vktPanel library. > >vtkPanel.dll is linked against: > - vtkJava.lib > - vtkCommon.lib > - vtkGraphics0.lib > - $(JDKDIR)/lib/jawt.lib where JDKDIR is the topmost > directory of the JDK installation. > >And vtkPanel is compiled as usual, "linking" against vtk.jar. > >javac -classpath directory_where_your_vtk_jar_is/vtk.jar:. \ > vtk/vtkPanel.java > >And to execute, make sure that the appropriate CLASSPATH is set >and that the libraries can be found by the dynamic loader, that >is the path to the directory where your libraries are is in the >PATH variable for Windows or in LD_LIBRARY_PATH for Unix. > >By now, I have confused everyone. I apologize I cannot make >things easier/clearer, but I'm sure there are many people out >there that can do a better job making the build process easier >and integrating the changes into VTK. > >I hope this helps, > >-- Julio > >------------ pseudo-makefile begin ------------ > >ALL : vtkPanel.dll > >JDKDIR = your_jdk_dir_here >VTKSRCDIR = your_vtk_dir_here >VTKBINDIR = your_vtk_build_dir_here >PLATFORM = win32 > >INCLUDES = -I "$(VTKSRCDIR)/common" -I "$(VTKSRCDIR)/graphics" \ > -I "$(JDKDIR)/include" -I "$(JDKDIR)/include/$(PLATFORM)" \ > -I "$(VTKBINDIR)" > >CXX_FLAGS = -nologo -G6 -MT -W3 -GX- -Od -DWIN32 -DDEBUG -D_WINDOWS -D_MBCS >\ > -D_USRDLL -FD -c > >LINK32 = link.exe >LIBS = vtkJava.lib vtkCommon.lib vtkGraphics0.lib >$(JDKDIR)/lib/jawt.lib >LINK32_FLAGS = -nologo -dll -incremental:no -machine:I386 -out:vtkPanel.dll >\ > = -implib:vtkPanel.lib -libpath:$(VTKBINDIR)/lib > >vtkPanel.dll: $(LIBS) vtkJavaAwt.obj > $(LINK32) @<< > $(LINK32_FLAGS) $(LIBS) vtkJavaAwt.obj ><< > >vtkJavaAwt.obj: vtkJavaAwt.cxx # And other dependencies > $(CPP) $(CPP_PROJ) $(SOURCE) > >------------ pseudo-makefile end ------------ > > > > >>-----Original Message----- >>From: vtkusers-admin at public.kitware.com >>[mailto:vtkusers-admin at public.kitware.com]On Behalf Of >>jason_donmoyer at chiinc.com >>Sent: Tuesday, April 16, 2002 9:46 AM >>To: vtkusers at public.kitware.com >>Subject: [vtkusers] vtkPanel and JAVA 1.4 >> >> >>The class vtkPanel distributed with the vtk examples will not >>compile using >>J2SDK 1.4. The following excerpt from the release notes explains why: >> >>------ >> >>The compiler now rejects import statements that import a type from the >>unnamed namespace. Previous versions of the compiler would accept such >>import declarations, even though they were arguably not allowed by the >>language (because the type name appearing in the import clause is not in >>scope). The specification is being clarified to state clearly that you >>cannot have a simple name in an import statement, nor can you import from >>the unnamed namespace. >>To summarize, the syntax >> >>import SimpleName; >> >>is no longer legal. Nor is the syntax >>import ClassInUnnamedNamespace.Nested; >> >>which would import a nested class from the unnamed namespace. To fix such >>problems in your code, move all of the classes from the unnamed namespace >>into a named namespace. >> >>----------- >> >> >>You can temporarily get around this problem by compiling vtkPanel with an >>older version of the JDK while continuing to use J2SDK 1.4 for the rest of >>your classes. Steps should be taken to fix this problem so that >>it complies >>with the latest version of the JDK. This is important so that >>users of vtk >>can take advantage of the performance benefits of 1.4 without resorting to >>recreating the JNI calls. >> >>Thank you, >> >>Jason Donmoyer >>_______________________________________________ >>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 >> >> >>------------------------------------------------------------------------ >> >>/* vtkPanel.java >> * $Id$ >> */ >>package vtk; >> >>import java.awt.*; >>import java.awt.event.*; >>import java.lang.Math; >>import sun.awt.*; >>import java.beans.*; >> >>import vtk.vtkActor; >>import vtk.vtkActorCollection; >>import vtk.vtkCamera; >>import vtk.vtkLight; >>import vtk.vtkPicker; >>import vtk.vtkRenderer; >>import vtk.vtkRenderWindow; >> >>public class vtkPanel >> extends Canvas >> implements MouseListener, MouseMotionListener, KeyListener >>{ >> protected vtkRenderWindow rw = new vtkRenderWindow(); >> protected vtkRenderer ren = new vtkRenderer(); >> protected vtkLight light = new vtkLight(); >> protected vtkCamera cam; >> protected int lastX; >> protected int lastY; >> protected int windowset = 0; >> protected int InteractionMode = 1; >> protected boolean lightFollowsCamera = true; >> protected boolean rendering = false; >> >> static { >> System.err.println( "loading vtkPanel native library" ); >> System.loadLibrary( "vtkPanel" ); >> } >> >> public vtkPanel() >> { >> this.rw.AddRenderer(ren); >> this.addMouseListener(this); >> this.addMouseMotionListener(this); >> this.addKeyListener(this); >> } >> >> public vtkRenderer GetRenderer() >> { >> return ren; >> } >> >> public vtkRenderWindow GetRenderWindow() >> { >> return rw; >> } >> >> private native void RenderCreate(vtkRenderWindow rw); >> private native void SetSizeInternal(vtkRenderWindow rw,int width,int height); >> private native void RenderInternal(vtkRenderWindow rw); >> >> public void setSize(int width, int height) >> { >>// System.err.println( "vtkPanel.setSize(x=" + x + ", y=" + y + ")" ); >> super.setSize(width, height); >> SetSizeInternal(this.rw, width, height); >> } >> >> public void setBounds(int x, int y, int width, int height) >> { >>// System.err.println( "vtkPanel.setBounds(x=" + x + ", y=" + y + ", width=" >>// + width + ", height=" + height + ")" ); >> super.setBounds(x, y, width, height); >> >> /* @todo: check whether the native window has been created already before >> * calling SetSizeInternal, to avoid SetSizeInternal from failing when the >> * native window has not been created >> */ >> this.SetSizeInternal(this.rw, width, height); >> } >> >> public void addNotify() >> { >> super.addNotify(); >>// System.err.println("vtkPanel.addNotify()"); >> this.RenderCreate(this.rw); >> } >> >> public synchronized void Render() >> { >> if (!this.rendering) { >> this.rendering = true; >> >> if (this.rw != null && this.ren.VisibleActorCount() != 0) { >> if (this.windowset == 0) { >> // set the window id and the active camera >> this.RenderCreate(this.rw); >> this.cam = this.ren.GetActiveCamera(); >> this.ren.AddLight(this.light); >> this.light.SetPosition(this.cam.GetPosition()); >> this.light.SetFocalPoint(this.cam.GetFocalPoint()); >> this.windowset = 1; >> } >> this.RenderInternal(this.rw); >> } >> >> this.rendering = false; >> } >> } >> >> public void update(Graphics g) >> { >> /* avoid the background being cleared by the default implementation */ >> this.paint(g); >> } >> >> public void paint(Graphics g) >> { >> this.Render(); >> } >> >> public void LightFollowCameraOn() >> { >> this.lightFollowsCamera = true; >> } >> >> public void LightFollowCameraOff() >> { >> this.lightFollowsCamera = false; >> } >> >> public void InteractionModeRotate() >> { >> this.InteractionMode = 1; >> } >> >> public void InteractionModeTranslate() >> { >> this.InteractionMode = 2; >> } >> >> public void InteractionModeZoom() >> { >> this.InteractionMode = 3; >> } >> >> public void UpdateLight() >> { >> light.SetPosition(cam.GetPosition()); >> light.SetFocalPoint(cam.GetFocalPoint()); >> } >> >> public void mouseClicked(MouseEvent e) {} >> >> public void mousePressed(MouseEvent e) >> { >> if (ren.VisibleActorCount() == 0) return; >> rw.SetDesiredUpdateRate(5.0); >> lastX = e.getX(); >> lastY = e.getY(); >> >> if ((e.getModifiers() == InputEvent.BUTTON2_MASK) >> || e.getModifiers() == (InputEvent.BUTTON1_MASK|InputEvent.SHIFT_MASK)) >> { >> InteractionModeTranslate(); >> } >> else if (e.getModifiers()==InputEvent.BUTTON3_MASK) >> { >> InteractionModeZoom(); >> } >> else >> { >> InteractionModeRotate(); >> } >> } >> >> public void mouseReleased(MouseEvent e) >> { >> rw.SetDesiredUpdateRate(0.01); >> } >> >> public void mouseEntered(MouseEvent e) >> { >> this.requestFocus(); >> } >> >> public void mouseExited(MouseEvent e) {} >> >> public void mouseMoved(MouseEvent e) >> { >> lastX = e.getX(); >> lastY = e.getY(); >> } >> >> >> public void mouseDragged(MouseEvent e) >> { >> if (ren.VisibleActorCount() == 0) >> return; >> >> int x = e.getX(); >> int y = e.getY(); >> >> // rotate >> if (this.InteractionMode == 1) >> { >> cam.Azimuth(lastX - x); >> cam.Elevation(y - lastY); >> cam.OrthogonalizeViewUp(); >> >> // ren.ResetCameraClippingRange(); >> if (this.lightFollowsCamera) >> { >> light.SetPosition(cam.GetPosition()); >> light.SetFocalPoint(cam.GetFocalPoint()); >> } >> } >> >> // translate >> if (this.InteractionMode == 2) >> { >> double FPoint[]; >> double PPoint[]; >> double APoint[] = new double[3]; >> double RPoint[]; >> double focalDepth; >> >> // get the current focal point and position >> FPoint = cam.GetFocalPoint(); >> PPoint = cam.GetPosition(); >> >> // calculate the focal depth since we'll be using it a lot >> ren.SetWorldPoint(FPoint[0],FPoint[1],FPoint[2],1.0); >> ren.WorldToDisplay(); >> focalDepth = ren.GetDisplayPoint()[2]; >> >> APoint[0] = rw.GetSize()[0]/2.0 + (x - lastX); >> APoint[1] = rw.GetSize()[1]/2.0 - (y - lastY); >> APoint[2] = focalDepth; >> ren.SetDisplayPoint(APoint); >> ren.DisplayToWorld(); >> RPoint = ren.GetWorldPoint(); >> if (RPoint[3] != 0.0) >> { >> RPoint[0] = RPoint[0]/RPoint[3]; >> RPoint[1] = RPoint[1]/RPoint[3]; >> RPoint[2] = RPoint[2]/RPoint[3]; >> } >> >> /* >> * Compute a translation vector, moving everything 1/2 >> * the distance to the cursor. (Arbitrary scale factor) >> */ >> cam.SetFocalPoint( >> (FPoint[0]-RPoint[0])/2.0 + FPoint[0], >> (FPoint[1]-RPoint[1])/2.0 + FPoint[1], >> (FPoint[2]-RPoint[2])/2.0 + FPoint[2]); >> cam.SetPosition( >> (FPoint[0]-RPoint[0])/2.0 + PPoint[0], >> (FPoint[1]-RPoint[1])/2.0 + PPoint[1], >> (FPoint[2]-RPoint[2])/2.0 + PPoint[2]); >> // ren.ResetCameraClippingRange(); >> } >> // zoom >> if (this.InteractionMode == 3) >> { >> double zoomFactor; >> double clippingRange[]; >> >> zoomFactor = Math.pow(1.02,(y - lastY)); >> >> if (cam.GetParallelProjection() == 1) >> { >> cam.SetParallelScale(cam.GetParallelScale()/zoomFactor); >> } >> else >> { >> cam.Dolly(zoomFactor); >> // ren.ResetCameraClippingRange(); >> } >> } >> >> lastX = x; >> lastY = y; >> this.repaint(); >> } >> >> public void keyTyped(KeyEvent e) {} >> >> public void keyPressed(KeyEvent e) >> { >> if (ren.VisibleActorCount() == 0) >> return; >> >> char keyChar = e.getKeyChar(); >> >> if ('r' == keyChar) >> { >> ren.ResetCamera(); >> this.repaint(); >> } >> >> if ('u' == keyChar) >> { >> vtkPicker picker = new vtkPicker(); >> picker.Pick(lastX,700 - lastY,0.0,ren); >> >> } >> >> if ('w' == keyChar) >> { >> vtkActorCollection ac; >> vtkActor anActor; >> vtkActor aPart; >> int i, j; >> >> ac = ren.GetActors(); >> ac.InitTraversal(); >> >> for (i = 0; i < ac.GetNumberOfItems(); i++) >> { >> anActor = ac.GetNextActor(); >> anActor.InitPartTraversal(); >> for (j = 0; j < anActor.GetNumberOfParts(); j++) >> { >> aPart = anActor.GetNextPart(); >> aPart.GetProperty().SetRepresentationToWireframe(); >> } >> } >> /* schedule a paint in the 'refresh' thread rather than calling Render >> * here */ >> this.repaint(); >> } >> >> if ('s' == keyChar) >> { >> vtkActorCollection ac; >> vtkActor anActor; >> vtkActor aPart; >> int i, j; >> >> ac = ren.GetActors(); >> ac.InitTraversal(); >> for (i = 0; i < ac.GetNumberOfItems(); i++) >> { >> anActor = ac.GetNextActor(); >> anActor.InitPartTraversal(); >> for (j = 0; j < anActor.GetNumberOfParts(); j++) >> { >> aPart = anActor.GetNextPart(); >> aPart.GetProperty().SetRepresentationToSurface(); >> } >> } >> this.repaint(); >> } >> } >> >> public void keyReleased(KeyEvent e) {} >> >> public void addPropertyChangeListener(PropertyChangeListener l) >> { >> changes.addPropertyChangeListener(l); >> } >> >> public void removePropertyChangeListener(PropertyChangeListener l) >> { >> changes.removePropertyChangeListener(l); >> } >> >> protected PropertyChangeSupport changes = new PropertyChangeSupport(this); >>} >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From fermion at mac.com Tue Apr 16 23:53:48 2002 From: fermion at mac.com (Mike Robertson) Date: Tue, 16 Apr 2002 23:53:48 -0400 Subject: [vtkusers] More on mac os x installation Message-ID: Hi! I'm relatively new to the unix world, oddly enough, but I'm determined to get VTK running on my machine within or outside of this X-11 environment with the intent of running MayaVi. Despite its intention to simplify, this entire cmake process seems to make things far more cryptic than they would otherwise be. Here's my confusion (and, naturally, I've tried this several times before dragging myself to this listserv). After a highly verbose make process, the program concludes with this: /usr/bin/libtool: internal link edit command failed make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 [localhost:local/vtk/VTK] root# hmm... Here are the questions that I'm not so sure about (and that are probably relevant to this `target' issue... (?)) Thanks for any help anyone can provide me with this. (the libtool error resulted because I have no idea what it's asking for in the dynamic link library question...) mike Variable Name: CMAKE_DL_LIBS Description: Dynamic link library to link in. Current Value: New Value (Enter to keep current value): /usr/share/libtool/ Variable Name: CMAKE_HP_PTHREADS Description: Use HP pthreads. Current Value: 0 New Value (Enter to keep current value): Variable Name: CMAKE_INSTALL_PREFIX Description: Install path prefix, prepended onto install directories. Current Value: /usr/local New Value (Enter to keep current value): Variable Name: CMAKE_LIB_EXT Description: Library extension used by this machine. Current Value: New Value (Enter to keep current value): .lib Variable Name: CMAKE_MAKE_PROGRAM Description: Path to a program. Current Value: /usr/bin/make New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_BUILD_FLAGS Description: Flag used by CXX to build a shared library. Current Value: -bundle -flat_namespace -undefined suppress New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_LINK_FLAGS Description: Flags used to link a shared library. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_MODULE_SUFFIX Description: Module library suffix. Current Value: .so New Value (Enter to keep current value): Variable Name: CMAKE_RANLIB Description: Library randomizer program used on archive libraries. Current Value: ranlib New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_BUILD_FLAGS Description: Flag used by CXX to build a shared library. Current Value: -dynamiclib New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_CFLAGS Description: Flag used for building shared library objects. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_LD_LIBS Description: Libraries used by LD for shared libraries. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_LINK_FLAGS Description: Flags used to link a shared library. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_RUNTIME_FLAG Description: Flag used to specify run-time search paths. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_RUNTIME_SEP Description: If null, each runtime path is a separate option. Otherwise, they are all joined, separated by this. Current Value: : New Value (Enter to keep current value): Variable Name: CMAKE_SHLIB_SUFFIX Description: Shared library suffix. Current Value: .dylib New Value (Enter to keep current value): Variable Name: CMAKE_SKIP_RPATH Description: If set, runtime paths are not added when using shared libraries. Current Value: NO New Value (Enter to keep current value): Variable Name: CMAKE_TEMPLATE_FLAGS Description: CXX template flags used by compiler. Current Value: New Value (Enter to keep current value): Variable Name: CMAKE_THREAD_LIBS Description: Thread library used. Current Value: -lpthread New Value (Enter to keep current value): Variable Name: CMAKE_USE_PTHREADS Description: Use the pthreads library. Current Value: 1 New Value (Enter to keep current value): Variable Name: CMAKE_USE_SPROC Description: Use sproc libs. Current Value: 0 New Value (Enter to keep current value): Variable Name: CMAKE_WORDS_BIGENDIAN Description: is this system big endian Current Value: 1 New Value (Enter to keep current value): Variable Name: CMAKE_X_CFLAGS Description: X11 extra flags. Current Value: -I/usr/X11R6/include New Value (Enter to keep current value): Variable Name: CMAKE_X_LIBS Description: Libraries and options used in X11 programs. Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext New Value (Enter to keep current value): Variable Name: DART_ROOT Description: If you have Dart installed, where is it located? Current Value: NOTFOUND New Value (Enter to keep current value): Variable Name: EXECUTABLE_OUTPUT_PATH Description: Single output directory for building all executables. Current Value: /usr/local/vtk/VTK/bin New Value (Enter to keep current value): Variable Name: LIBRARY_OUTPUT_PATH Description: Single output directory for building all libraries. Current Value: /usr/local/vtk/VTK/bin New Value (Enter to keep current value): Variable Name: OPENGL_INCLUDE_PATH Description: What is the path where the file GL/gl.h can be found Current Value: /usr/X11R6/include New Value (Enter to keep current value): Variable Name: OPENGL_LIBRARY Description: Where can the GL library be found Current Value: /usr/X11R6/lib/libGL.a New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework Cocoa -framework OpenGL Variable Name: VTK_DATA_ROOT Description: What is the path where the file VTKData.readme can be found Current Value: NOTFOUND New Value (Enter to keep current value): /usr/local/vtk/VTKData/ Variable Name: VTK_DEBUG_LEAKS Description: Build leak checking support into vtk. Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_MANGLE_MESA Description: Use mangled Mesa with OpenGL Current Value: OFF New Value (Enter to keep current value): ON Variable Name: VTK_OPENGL_HAS_OSMESA Description: The opengl library being used supports off screen Mesa calls. Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_64BIT_IDS Description: Build VTK with 64 bit ids Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_ANSI_STDLIB Description: Use the ANSI standard iostream library Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_HYBRID Description: Build the hybrid directory classes Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_PARALLEL Description: Build the parallel directory classes Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_PATENTED Description: Build the patented directory classes, these classes are patented and may require a license to use Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_QUARTZ Description: Build classes for the Quartz window manager Current Value: ON New Value (Enter to keep current value): Variable Name: VTK_USE_RENDERING Description: Build the rendering classes used for displaying Current Value: ON New Value (Enter to keep current value): Variable Name: VTK_USE_VOLUMEPRO Description: Build VTK with volume pro support Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_USE_X Description: Build classes for the X11 window manager Current Value: OFF New Value (Enter to keep current value): ON Variable Name: VTK_WRAP_JAVA Description: wrap classes into the Java language Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_WRAP_PYTHON Description: wrap classes into the Python interpreted language Current Value: OFF New Value (Enter to keep current value): Variable Name: VTK_WRAP_TCL Description: wrap classes into the TCL intepreted language Current Value: OFF New Value (Enter to keep current value): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com "By [reason] we gain a multitude of cognitions, which although really nothing more than elucidations or explanations of that which (though in a confused manner) was already thought in our conceptions, are, at least in respect of their form, prized as new introspections; whilst, so far as regards their matter or content, we have really made no addition to our conceptions, but only disinvolved them." -Immanuel Kant, The Critique of Pure Reason From alex_lear at hotmail.com Wed Apr 17 00:04:46 2002 From: alex_lear at hotmail.com (Alex Lear) Date: Tue, 16 Apr 2002 22:04:46 -0600 Subject: [vtkusers] How to create a better surface than tubefilter? Message-ID: I like the idea of the spline and will give it more thought, although it may get tricky at branch split points. I am interested in preserving the original data but smooth the connections. I would also like to make it into more of a surface than tubes. When I used capping for the tubes, it used literally a circle instead of a sphere, is this the normal behavior? To answer the question, Yes it is a completely seperate volume dataset and I would like to color the branches from this volume dataset. Alex ******** Turn endcapping on and it will put spheres at the ends If you want something of higher quality, use the points to fit a spline to it (vtkKochanekBartelsSpline), resample and get more points and put the tube filter around them. a completely separate volume dataset? You want the tubes to be colored based on the data? -- krs *********** I am using a point set to represent the branches of a 3 dimentional object like a tree. I connect the points with lines to show the branches. Then I use the radius information and the vtkTubeFilter to create the cylindrical branch sturcture that varies by radius at each point. I have two problems with this: 1) The first is the tubes are discontinuous at each point making it look like cylinders backed up to each other rather than a smooth branch. 2) The second problem is I would like to (probe?) the data from a volume and color the branch structure with these values. I am not sure how to accomplish this because I am not aware of everything vtk can do. I think I need to do some sort of transformation after the tube filter is applied. Like a surface reconstruction of some kind. Any help is appreciated. Thanks! Alex Lear _________________________________________________________________ Join the world?s largest e-mail service with MSN Hotmail. http://www.hotmail.com From jmanjon at fis.upv.es Wed Apr 17 03:21:21 2002 From: jmanjon at fis.upv.es (jmanjon) Date: Wed, 17 Apr 2002 09:21:21 +0200 Subject: [vtkusers] automatic LOD level References: <20020417034302.946EF1AB74@public.kitware.com> Message-ID: <3CBD2271.B61ECA34@fis.upv.es> Hi friends, I have a LOD volume with 4 levels the fisrt is an outline and all works perfect except that when I do button up the outline is convertd to high resolution LOD (using for this operation 4 seconds). I would like to pass automatically for all the LODs levels like volview does. How can I do it. the code is this: // LOD Level of detail vtkProperty *outlineProperty = vtkProperty::New(); outlineProperty->SetColor(1,1,1); vtkOutlineFilter *outline = vtkOutlineFilter::New(); outline->SetInput(data); vtkPolyDataMapper *mapOutline = vtkPolyDataMapper::New(); mapOutline->SetInput(outline->GetOutput()); vtkImageResample *resampler1=vtkImageResample::New(); resampler1->SetInput(data); resampler1->SetAxisMagnificationFactor(0,0.2); resampler1->SetAxisMagnificationFactor(1,0.2); resampler1->SetAxisMagnificationFactor(2,0.2); vtkImageResample *resampler2=vtkImageResample::New(); resampler2->SetInput(data); resampler2->SetAxisMagnificationFactor(0,0.6); resampler2->SetAxisMagnificationFactor(1,0.6); resampler2->SetAxisMagnificationFactor(2,0.6); lowresMapper=vtkVolumeTextureMapper2D::New(); lowresMapper->SetInput(resampler1->GetOutput()); medresMapper=vtkVolumeTextureMapper2D::New(); medresMapper->SetInput(resampler2->GetOutput()); hiresMapper=vtkVolumeTextureMapper2D::New(); hiresMapper->SetInput(data); superhiresMapper=vtkVolumeRayCastMapper::New(); superhiresMapper->SetInput(data); vtkVolumeRayCastCompositeFunction *compositeFunction = vtkVolumeRayCastCompositeFunction::New(); superhiresMapper->SetVolumeRayCastFunction(compositeFunction); // LOD id0=volumeLOD->AddLOD(mapOutline, outlineProperty, 0.0); id1=volumeLOD->AddLOD(lowresMapper,volumeProperty,0.0); id2=volumeLOD->AddLOD(medresMapper,volumeProperty,0.0); id3=volumeLOD->AddLOD(hiresMapper,volumeProperty,0.0); id4=volumeLOD->AddLOD(superhiresMapper,volumeProperty,0.0); volumeLOD->AutomaticLODSelectionOn(); thanks jose From niemeijer at science-and-technology.nl Wed Apr 17 04:26:10 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Wed, 17 Apr 2002 10:26:10 +0200 Subject: [vtkusers] More on mac os x installation In-Reply-To: Message-ID: Hi Mike, There are two ways to build VTK on Mac OS X. You can choose to build for X11 or Quartz. In your current configuration you seem to get the settings for either mixed up. If you want to get VTK to run under Quartz then make sure the following are set: --- OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL VTK_USE_QUARTZ:BOOL=ON VTK_USE_RENDERING:BOOL=ON VTK_USE_X:BOOL=OFF --- and leave the rest of the system settings as it was determined by CMake (you can leave the X_FLAGS and X_LIBS as they are). On the other hand if you want to build VTK to Use X11 under Mac OS X you need to do some minor patching. Please take a look at an e-mail I send some time ago: --- http://public.kitware.com/pipermail/vtkusers/2002-February/009772.html --- In this e-mail I described what to do to get a proper build. Unfortunately this patch hasn't been added to the cvs repository yet. (I hope Yves Starreveld will find some time to do this). After applying the patch set the following in the CMakeCache.txt file: --- OPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.a (i.e. leave the option as it was determined by CMake) VTK_USE_QUARTZ:BOOL=OFF VTK_USE_RENDERING:BOOL=ON VTK_USE_X:BOOL=ON --- If you need more help, just drop me an e-mail. Regards, Sander On woensdag, april 17, 2002, at 05:53 , Mike Robertson wrote: > Hi! I'm relatively new to the unix world, oddly enough, but I'm > determined > to get VTK running on my machine within or outside of this X-11 > environment > with the intent of running MayaVi. Despite its intention to simplify, > this > entire cmake process seems to make things far more cryptic than they > would > otherwise be. Here's my confusion (and, naturally, I've tried this > several > times before dragging myself to this listserv). > > After a highly verbose make process, the program concludes with this: > > /usr/bin/libtool: internal link edit command failed > make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Rendering] Error 2 > make: *** [default_target] Error 2 > [localhost:local/vtk/VTK] root# hmm... > > Here are the questions that I'm not so sure about (and that are probably > relevant to this `target' issue... (?)) > > Thanks for any help anyone can provide me with this. (the libtool error > resulted because I have no idea what it's asking for in the dynamic link > library question...) > > mike > > Variable Name: CMAKE_DL_LIBS > Description: Dynamic link library to link in. > Current Value: > New Value (Enter to keep current value): /usr/share/libtool/ > > Variable Name: CMAKE_HP_PTHREADS > Description: Use HP pthreads. > Current Value: 0 > New Value (Enter to keep current value): > > Variable Name: CMAKE_INSTALL_PREFIX > Description: Install path prefix, prepended onto install directories. > Current Value: /usr/local > New Value (Enter to keep current value): > > Variable Name: CMAKE_LIB_EXT > Description: Library extension used by this machine. > Current Value: > New Value (Enter to keep current value): .lib > > Variable Name: CMAKE_MAKE_PROGRAM > Description: Path to a program. > Current Value: /usr/bin/make > New Value (Enter to keep current value): > > Variable Name: CMAKE_MODULE_BUILD_FLAGS > Description: Flag used by CXX to build a shared library. > Current Value: -bundle -flat_namespace -undefined suppress > New Value (Enter to keep current value): > > Variable Name: CMAKE_MODULE_LINK_FLAGS > Description: Flags used to link a shared library. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_MODULE_SUFFIX > Description: Module library suffix. > Current Value: .so > New Value (Enter to keep current value): > > Variable Name: CMAKE_RANLIB > Description: Library randomizer program used on archive libraries. > Current Value: ranlib > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_BUILD_FLAGS > Description: Flag used by CXX to build a shared library. > Current Value: -dynamiclib > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_CFLAGS > Description: Flag used for building shared library objects. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_LD_LIBS > Description: Libraries used by LD for shared libraries. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_LINK_FLAGS > Description: Flags used to link a shared library. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_RUNTIME_FLAG > Description: Flag used to specify run-time search paths. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_RUNTIME_SEP > Description: If null, each runtime path is a separate option. > Otherwise, > they are all joined, separated by this. > Current Value: : > New Value (Enter to keep current value): > > Variable Name: CMAKE_SHLIB_SUFFIX > Description: Shared library suffix. > Current Value: .dylib > New Value (Enter to keep current value): > > Variable Name: CMAKE_SKIP_RPATH > Description: If set, runtime paths are not added when using shared > libraries. > Current Value: NO > New Value (Enter to keep current value): > > Variable Name: CMAKE_TEMPLATE_FLAGS > Description: CXX template flags used by compiler. > Current Value: > New Value (Enter to keep current value): > > Variable Name: CMAKE_THREAD_LIBS > Description: Thread library used. > Current Value: -lpthread > New Value (Enter to keep current value): > > Variable Name: CMAKE_USE_PTHREADS > Description: Use the pthreads library. > Current Value: 1 > New Value (Enter to keep current value): > > Variable Name: CMAKE_USE_SPROC > Description: Use sproc libs. > Current Value: 0 > New Value (Enter to keep current value): > > Variable Name: CMAKE_WORDS_BIGENDIAN > Description: is this system big endian > Current Value: 1 > New Value (Enter to keep current value): > > Variable Name: CMAKE_X_CFLAGS > Description: X11 extra flags. > Current Value: -I/usr/X11R6/include > New Value (Enter to keep current value): > > Variable Name: CMAKE_X_LIBS > Description: Libraries and options used in X11 programs. > Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext > New Value (Enter to keep current value): > > Variable Name: DART_ROOT > Description: If you have Dart installed, where is it located? > Current Value: NOTFOUND > New Value (Enter to keep current value): > > Variable Name: EXECUTABLE_OUTPUT_PATH > Description: Single output directory for building all executables. > Current Value: /usr/local/vtk/VTK/bin > New Value (Enter to keep current value): > > Variable Name: LIBRARY_OUTPUT_PATH > Description: Single output directory for building all libraries. > Current Value: /usr/local/vtk/VTK/bin > New Value (Enter to keep current value): > > Variable Name: OPENGL_INCLUDE_PATH > Description: What is the path where the file GL/gl.h can be found > Current Value: /usr/X11R6/include > New Value (Enter to keep current value): > > Variable Name: OPENGL_LIBRARY > Description: Where can the GL library be found > Current Value: /usr/X11R6/lib/libGL.a > New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a > -framework > Cocoa -framework OpenGL > > Variable Name: VTK_DATA_ROOT > Description: What is the path where the file VTKData.readme can be > found > Current Value: NOTFOUND > New Value (Enter to keep current value): /usr/local/vtk/VTKData/ > > Variable Name: VTK_DEBUG_LEAKS > Description: Build leak checking support into vtk. > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_MANGLE_MESA > Description: Use mangled Mesa with OpenGL > Current Value: OFF > New Value (Enter to keep current value): ON > > Variable Name: VTK_OPENGL_HAS_OSMESA > Description: The opengl library being used supports off screen Mesa > calls. > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_64BIT_IDS > Description: Build VTK with 64 bit ids > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_ANSI_STDLIB > Description: Use the ANSI standard iostream library > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_HYBRID > Description: Build the hybrid directory classes > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_PARALLEL > Description: Build the parallel directory classes > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_PATENTED > Description: Build the patented directory classes, these classes are > patented and may require a license to use > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_QUARTZ > Description: Build classes for the Quartz window manager > Current Value: ON > New Value (Enter to keep current value): > > Variable Name: VTK_USE_RENDERING > Description: Build the rendering classes used for displaying > Current Value: ON > New Value (Enter to keep current value): > > Variable Name: VTK_USE_VOLUMEPRO > Description: Build VTK with volume pro support > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_USE_X > Description: Build classes for the X11 window manager > Current Value: OFF > New Value (Enter to keep current value): ON > > Variable Name: VTK_WRAP_JAVA > Description: wrap classes into the Java language > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_WRAP_PYTHON > Description: wrap classes into the Python interpreted language > Current Value: OFF > New Value (Enter to keep current value): > > Variable Name: VTK_WRAP_TCL > Description: wrap classes into the TCL intepreted language > Current Value: OFF > New Value (Enter to keep current value): > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Michael Robertson > fermion at mac.com > http://thenewcosmos.com > > > "By [reason] we gain a multitude of cognitions, which although really > nothing more than elucidations or explanations of that which (though > in a > confused manner) was already thought in our conceptions, are, at least > in > respect of their form, prized as new introspections; whilst, so far as > regards their matter or content, we have really made no addition to our > conceptions, but only disinvolved them." > > -Immanuel Kant, The Critique of Pure Reason > > > > _______________________________________________ > 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 Apr 17 04:30:28 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 17 Apr 2002 14:00:28 +0530 Subject: [vtkusers] What to do when you have computations to create a dataset in C++ In-Reply-To: <1018975642.3cbc559a5c626@webmail.stanford.edu> References: <1018975642.3cbc559a5c626@webmail.stanford.edu> Message-ID: <15549.12964.370685.951453@monster.linux.in> >>>>> "SF" == sfelton writes: SF> I have a question. I am a novice at programming as well as SF> visualization. I am a student working on a project to give a In that case you might have to learn how to program and use VTK. This will definitely take a little time and effort. If you do plan on using VTK then I'd recommend that you get familiar with Tcl, Python or Java. My personal favorite is Python. Once you get handy with the programming language, learn how to script VTK applications with it and you should be able to do what you want. OTOH if C++ is your strength and you dont want to bother with learning another language just write your application in C++ using VTK. The VTK users guide and the VTK book should guide you through this. As I said, either way this will take some work. SF> graphical output of the numeric output that I compute using SF> C++. The numeric output are force vectors and I would like to SF> display these at every time point as arrows and possibly have SF> the length of the arrows correspond with their magnitude. SF> Does anyone out there know how to transform this dataset that SF> is a 164X3 matrix into graphical data? And then what to do SF> from there? I have the Vizualization Toolkit (2nd edition) SF> text...so if there is something in there that would help me, SF> could someone please point out the particular chapter. Or any SF> suggestions as to what else to purchase. Thanks. How are your data points organized (are they structured or unstructured)? Either way, VTK can handle them. If you are looking for a readymade solution look at Sebastien's links page (http://www.barre.nom.fr/vtk/links.html) and look for an application that suits your needs. You might want to take a look at ParaView -- http://public.kitware.com/Paraview or MayaVi -- http://mayavi.sf.net . prabhu From popescu at tecno.ior.it Wed Apr 17 05:31:35 2002 From: popescu at tecno.ior.it (florin popescu) Date: Wed, 17 Apr 2002 11:31:35 +0200 Subject: [vtkusers] vtkPanel and java 1.1.8 Message-ID: <4.3.2.7.0.20020417111853.00b23b00@tecno.ior.it> Hello, I am a newbie who asked about Java and Matlab a while back no one seems to know the answer, but.. I am closer to identifying the culprit so maybe someone can help. (system config. : Win2000, Vtk4.0, Matlab 6.1 which includes JRE 1.1.8) I get link errors on vtkInit still. In order to avoid those, the vtk user archives suggest I must first instantiate vtkPanel, which loads the shared libraries. Problem is, no matter what I do with the Java classpath (for vtk.jar and directory of .class files, one for Matlab's jre and another for the jdk) and the system path (for the .dlls) I cannot find vtkPanel from Matlab even though vtk works on the system and I can see other vtk classes just fine. 1) Why is vtkPanel.class, seeing that it's not included in vtk.jar, not in the vtk4.0 precompiled installation? 2) Even after running cmake (for java1.4 though), which outputs a vtkPanel.class file, I cannot 'find' it even after pointing to its directory under classpath. In other words, I'd like to know where vtkPanel.class should be and how it is linked at runtime. Is there a difference in this respect between Java 1.1.8 and 1.4. Is there a compatibility problem with vtk4? Thanks in advance, Florin From maraux at ondim.fr Wed Apr 17 05:55:04 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 17 Apr 2002 11:55:04 +0200 Subject: [vtkusers] vtk points array / vtkpointCollection Message-ID: <003c01c1e5f5$f3854430$c000a8c0@ouessant> Hello, I need to use an unspecified number of vtkPoints. How can I initialize and use it, as I would use a vtkPolyDataCollection ? Thanks for any answer, have a nice day. ------------------------------ Sebastien MARAUX Junior Developer ONDIM Bretagne, 34 rue Frederic Le Guyader 35000 Rennes France tel : +33 (0) 2 23 30 73 73 fax : +33 (0) 2 23 30 73 71 ------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Wed Apr 17 05:57:37 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 17 Apr 2002 11:57:37 +0200 Subject: [vtkusers] vtkPoints subset Message-ID: <004501c1e5f6$4e27a0e0$c000a8c0@ouessant> Is it possible to obtain a vtkpoint subset depending on a range of x y or/and z values ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From billlist at nycap.rr.com Wed Apr 17 07:59:15 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 17 Apr 2002 07:59:15 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: Message-ID: <5.0.2.1.0.20020417074609.01863150@pop.nycap.rr.com> I would suggest cleaning your build directory (rm -rf *). Then re-run cmake -i and do not ask to see the advanced values. All of the defaults should work on Mac/OSX. This is the libtool problem: Variable Name: CMAKE_DL_LIBS Description: Dynamic link library to link in. Current Value: New Value (Enter to keep current value): /usr/share/libtool/ This is asking for the name of a library to link in. You have given it the name of an executable. When it asked: Would you like to see advanced options? [No]: Did you say yes? If so, why? Did you have trouble with no advanced options? If you said, no, what version of cmake are you using? Thanks. -Bill At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >to get VTK running on my machine within or outside of this X-11 environment >with the intent of running MayaVi. Despite its intention to simplify, this >entire cmake process seems to make things far more cryptic than they would >otherwise be. Here's my confusion (and, naturally, I've tried this several >times before dragging myself to this listserv). > >After a highly verbose make process, the program concludes with this: > >/usr/bin/libtool: internal link edit command failed >make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Rendering] Error 2 >make: *** [default_target] Error 2 >[localhost:local/vtk/VTK] root# hmm... > >Here are the questions that I'm not so sure about (and that are probably >relevant to this `target' issue... (?)) > >Thanks for any help anyone can provide me with this. (the libtool error >resulted because I have no idea what it's asking for in the dynamic link >library question...) > >mike > >Variable Name: CMAKE_DL_LIBS >Description: Dynamic link library to link in. >Current Value: >New Value (Enter to keep current value): /usr/share/libtool/ >Variable Name: CMAKE_HP_PTHREADS >Description: Use HP pthreads. >Current Value: 0 >New Value (Enter to keep current value): > >Variable Name: CMAKE_INSTALL_PREFIX >Description: Install path prefix, prepended onto install directories. >Current Value: /usr/local >New Value (Enter to keep current value): > >Variable Name: CMAKE_LIB_EXT >Description: Library extension used by this machine. >Current Value: >New Value (Enter to keep current value): .lib > >Variable Name: CMAKE_MAKE_PROGRAM >Description: Path to a program. >Current Value: /usr/bin/make >New Value (Enter to keep current value): > >Variable Name: CMAKE_MODULE_BUILD_FLAGS >Description: Flag used by CXX to build a shared library. >Current Value: -bundle -flat_namespace -undefined suppress >New Value (Enter to keep current value): > >Variable Name: CMAKE_MODULE_LINK_FLAGS >Description: Flags used to link a shared library. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_MODULE_SUFFIX >Description: Module library suffix. >Current Value: .so >New Value (Enter to keep current value): > >Variable Name: CMAKE_RANLIB >Description: Library randomizer program used on archive libraries. >Current Value: ranlib >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_BUILD_FLAGS >Description: Flag used by CXX to build a shared library. >Current Value: -dynamiclib >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_CFLAGS >Description: Flag used for building shared library objects. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_LD_LIBS >Description: Libraries used by LD for shared libraries. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_LINK_FLAGS >Description: Flags used to link a shared library. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >Description: Flag used to specify run-time search paths. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_RUNTIME_SEP >Description: If null, each runtime path is a separate option. Otherwise, >they are all joined, separated by this. >Current Value: : >New Value (Enter to keep current value): > >Variable Name: CMAKE_SHLIB_SUFFIX >Description: Shared library suffix. >Current Value: .dylib >New Value (Enter to keep current value): > >Variable Name: CMAKE_SKIP_RPATH >Description: If set, runtime paths are not added when using shared >libraries. >Current Value: NO >New Value (Enter to keep current value): > >Variable Name: CMAKE_TEMPLATE_FLAGS >Description: CXX template flags used by compiler. >Current Value: >New Value (Enter to keep current value): > >Variable Name: CMAKE_THREAD_LIBS >Description: Thread library used. >Current Value: -lpthread >New Value (Enter to keep current value): > >Variable Name: CMAKE_USE_PTHREADS >Description: Use the pthreads library. >Current Value: 1 >New Value (Enter to keep current value): > >Variable Name: CMAKE_USE_SPROC >Description: Use sproc libs. >Current Value: 0 >New Value (Enter to keep current value): > >Variable Name: CMAKE_WORDS_BIGENDIAN >Description: is this system big endian >Current Value: 1 >New Value (Enter to keep current value): > >Variable Name: CMAKE_X_CFLAGS >Description: X11 extra flags. >Current Value: -I/usr/X11R6/include >New Value (Enter to keep current value): > >Variable Name: CMAKE_X_LIBS >Description: Libraries and options used in X11 programs. >Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >New Value (Enter to keep current value): > >Variable Name: DART_ROOT >Description: If you have Dart installed, where is it located? >Current Value: NOTFOUND >New Value (Enter to keep current value): > >Variable Name: EXECUTABLE_OUTPUT_PATH >Description: Single output directory for building all executables. >Current Value: /usr/local/vtk/VTK/bin >New Value (Enter to keep current value): > >Variable Name: LIBRARY_OUTPUT_PATH >Description: Single output directory for building all libraries. >Current Value: /usr/local/vtk/VTK/bin >New Value (Enter to keep current value): > >Variable Name: OPENGL_INCLUDE_PATH >Description: What is the path where the file GL/gl.h can be found >Current Value: /usr/X11R6/include >New Value (Enter to keep current value): > >Variable Name: OPENGL_LIBRARY >Description: Where can the GL library be found >Current Value: /usr/X11R6/lib/libGL.a >New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >Cocoa -framework OpenGL > >Variable Name: VTK_DATA_ROOT >Description: What is the path where the file VTKData.readme can be found >Current Value: NOTFOUND >New Value (Enter to keep current value): /usr/local/vtk/VTKData/ > >Variable Name: VTK_DEBUG_LEAKS >Description: Build leak checking support into vtk. >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_MANGLE_MESA >Description: Use mangled Mesa with OpenGL >Current Value: OFF >New Value (Enter to keep current value): ON > >Variable Name: VTK_OPENGL_HAS_OSMESA >Description: The opengl library being used supports off screen Mesa calls. >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_64BIT_IDS >Description: Build VTK with 64 bit ids >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_ANSI_STDLIB >Description: Use the ANSI standard iostream library >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_HYBRID >Description: Build the hybrid directory classes >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_PARALLEL >Description: Build the parallel directory classes >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_PATENTED >Description: Build the patented directory classes, these classes are >patented and may require a license to use >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_QUARTZ >Description: Build classes for the Quartz window manager >Current Value: ON >New Value (Enter to keep current value): > >Variable Name: VTK_USE_RENDERING >Description: Build the rendering classes used for displaying >Current Value: ON >New Value (Enter to keep current value): > >Variable Name: VTK_USE_VOLUMEPRO >Description: Build VTK with volume pro support >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_USE_X >Description: Build classes for the X11 window manager >Current Value: OFF >New Value (Enter to keep current value): ON > >Variable Name: VTK_WRAP_JAVA >Description: wrap classes into the Java language >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_WRAP_PYTHON >Description: wrap classes into the Python interpreted language >Current Value: OFF >New Value (Enter to keep current value): > >Variable Name: VTK_WRAP_TCL >Description: wrap classes into the TCL intepreted language >Current Value: OFF >New Value (Enter to keep current value): > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Michael Robertson >fermion at mac.com >http://thenewcosmos.com > > >"By [reason] we gain a multitude of cognitions, which although really >nothing more than elucidations or explanations of that which (though in a >confused manner) was already thought in our conceptions, are, at least in >respect of their form, prized as new introspections; whilst, so far as >regards their matter or content, we have really made no addition to our >conceptions, but only disinvolved them." > >-Immanuel Kant, The Critique of Pure Reason > > > >_______________________________________________ >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 tirawat.b at chula.ac.th Wed Apr 17 08:11:34 2002 From: tirawat.b at chula.ac.th (tirawat) Date: Wed, 17 Apr 2002 19:11:34 +0700 Subject: [vtkusers] (VTK4.0) How to set Control / Shift value in vtkInteractorStyle Message-ID: <000401c1e609$049d0ce0$1c56c8a1@wys> Hi , I am implementing a part of event handling program. When it received LeftButtonPress event, I pass all required parameters to vtkInteractorStyle::OnLeftButtonDown(). This approach worked in Vtk3 because the protected function "UpdateInternalState" is put inside OnLeftButtonDown() as shown below. ----------------------------------------------------------------- void vtkInteractorStyle::OnLeftButtonDown(int ctrl, int shift, int X, int Y) { // this->UpdateInternalState(ctrl, shift, X, Y); ------------------------------------------------------------------ However, VTK4 does not put UpdateInternalState() method inside and OnLeftButtonDown() does not really used the function arguments. My question is -> Are there any Standard ways to make vtkInteractorStyle realizes the new Control/Shift value (WITHOUT modifying the VTK code) ? Regards Tirawat -------------- next part -------------- An HTML attachment was scrubbed... URL: From billlist at nycap.rr.com Wed Apr 17 08:25:31 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Wed, 17 Apr 2002 08:25:31 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: <5.0.2.1.0.20020417074609.01863150@pop.nycap.rr.com> References: Message-ID: <5.0.2.1.0.20020417082432.040c6c78@pop.nycap.rr.com> My mistake, you do not need advanced values, but you do need: OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL (I will fix that now.) -Bill At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >I would suggest cleaning your build directory (rm -rf *). Then re-run >cmake -i and do not ask to see the advanced values. >All of the defaults should work on Mac/OSX. > >This is the libtool problem: > >Variable Name: CMAKE_DL_LIBS >Description: Dynamic link library to link in. >Current Value: >New Value (Enter to keep current value): /usr/share/libtool/ > >This is asking for the name of a library to link in. You have given >it the name of an executable. > > >When it asked: >Would you like to see advanced options? [No]: > >Did you say yes? If so, why? Did you have trouble with no advanced options? >If you said, no, what version of cmake are you using? > >Thanks. > >-Bill > > > >At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >>to get VTK running on my machine within or outside of this X-11 environment >>with the intent of running MayaVi. Despite its intention to simplify, this >>entire cmake process seems to make things far more cryptic than they would >>otherwise be. Here's my confusion (and, naturally, I've tried this several >>times before dragging myself to this listserv). >> >>After a highly verbose make process, the program concludes with this: >> >>/usr/bin/libtool: internal link edit command failed >>make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>make[2]: *** [default_target] Error 2 >>make[1]: *** [default_target_Rendering] Error 2 >>make: *** [default_target] Error 2 >>[localhost:local/vtk/VTK] root# hmm... >> >>Here are the questions that I'm not so sure about (and that are probably >>relevant to this `target' issue... (?)) >> >>Thanks for any help anyone can provide me with this. (the libtool error >>resulted because I have no idea what it's asking for in the dynamic link >>library question...) >> >>mike >> >>Variable Name: CMAKE_DL_LIBS >>Description: Dynamic link library to link in. >>Current Value: >>New Value (Enter to keep current value): /usr/share/libtool/ > > > > > >>Variable Name: CMAKE_HP_PTHREADS >>Description: Use HP pthreads. >>Current Value: 0 >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_INSTALL_PREFIX >>Description: Install path prefix, prepended onto install directories. >>Current Value: /usr/local >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_LIB_EXT >>Description: Library extension used by this machine. >>Current Value: >>New Value (Enter to keep current value): .lib >> >>Variable Name: CMAKE_MAKE_PROGRAM >>Description: Path to a program. >>Current Value: /usr/bin/make >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_MODULE_BUILD_FLAGS >>Description: Flag used by CXX to build a shared library. >>Current Value: -bundle -flat_namespace -undefined suppress >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_MODULE_LINK_FLAGS >>Description: Flags used to link a shared library. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_MODULE_SUFFIX >>Description: Module library suffix. >>Current Value: .so >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_RANLIB >>Description: Library randomizer program used on archive libraries. >>Current Value: ranlib >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>Description: Flag used by CXX to build a shared library. >>Current Value: -dynamiclib >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_CFLAGS >>Description: Flag used for building shared library objects. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_LD_LIBS >>Description: Libraries used by LD for shared libraries. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_LINK_FLAGS >>Description: Flags used to link a shared library. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>Description: Flag used to specify run-time search paths. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>Description: If null, each runtime path is a separate option. Otherwise, >>they are all joined, separated by this. >>Current Value: : >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SHLIB_SUFFIX >>Description: Shared library suffix. >>Current Value: .dylib >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_SKIP_RPATH >>Description: If set, runtime paths are not added when using shared >>libraries. >>Current Value: NO >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_TEMPLATE_FLAGS >>Description: CXX template flags used by compiler. >>Current Value: >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_THREAD_LIBS >>Description: Thread library used. >>Current Value: -lpthread >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_USE_PTHREADS >>Description: Use the pthreads library. >>Current Value: 1 >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_USE_SPROC >>Description: Use sproc libs. >>Current Value: 0 >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_WORDS_BIGENDIAN >>Description: is this system big endian >>Current Value: 1 >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_X_CFLAGS >>Description: X11 extra flags. >>Current Value: -I/usr/X11R6/include >>New Value (Enter to keep current value): >> >>Variable Name: CMAKE_X_LIBS >>Description: Libraries and options used in X11 programs. >>Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>New Value (Enter to keep current value): >> >>Variable Name: DART_ROOT >>Description: If you have Dart installed, where is it located? >>Current Value: NOTFOUND >>New Value (Enter to keep current value): >> >>Variable Name: EXECUTABLE_OUTPUT_PATH >>Description: Single output directory for building all executables. >>Current Value: /usr/local/vtk/VTK/bin >>New Value (Enter to keep current value): >> >>Variable Name: LIBRARY_OUTPUT_PATH >>Description: Single output directory for building all libraries. >>Current Value: /usr/local/vtk/VTK/bin >>New Value (Enter to keep current value): >> >>Variable Name: OPENGL_INCLUDE_PATH >>Description: What is the path where the file GL/gl.h can be found >>Current Value: /usr/X11R6/include >>New Value (Enter to keep current value): >> >>Variable Name: OPENGL_LIBRARY >>Description: Where can the GL library be found >>Current Value: /usr/X11R6/lib/libGL.a >>New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >>Cocoa -framework OpenGL >> >>Variable Name: VTK_DATA_ROOT >>Description: What is the path where the file VTKData.readme can be found >>Current Value: NOTFOUND >>New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >> >>Variable Name: VTK_DEBUG_LEAKS >>Description: Build leak checking support into vtk. >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_MANGLE_MESA >>Description: Use mangled Mesa with OpenGL >>Current Value: OFF >>New Value (Enter to keep current value): ON >> >>Variable Name: VTK_OPENGL_HAS_OSMESA >>Description: The opengl library being used supports off screen Mesa calls. >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_64BIT_IDS >>Description: Build VTK with 64 bit ids >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_ANSI_STDLIB >>Description: Use the ANSI standard iostream library >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_HYBRID >>Description: Build the hybrid directory classes >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_PARALLEL >>Description: Build the parallel directory classes >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_PATENTED >>Description: Build the patented directory classes, these classes are >>patented and may require a license to use >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_QUARTZ >>Description: Build classes for the Quartz window manager >>Current Value: ON >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_RENDERING >>Description: Build the rendering classes used for displaying >>Current Value: ON >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_VOLUMEPRO >>Description: Build VTK with volume pro support >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_USE_X >>Description: Build classes for the X11 window manager >>Current Value: OFF >>New Value (Enter to keep current value): ON >> >>Variable Name: VTK_WRAP_JAVA >>Description: wrap classes into the Java language >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_WRAP_PYTHON >>Description: wrap classes into the Python interpreted language >>Current Value: OFF >>New Value (Enter to keep current value): >> >>Variable Name: VTK_WRAP_TCL >>Description: wrap classes into the TCL intepreted language >>Current Value: OFF >>New Value (Enter to keep current value): >> >> >>~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>Michael Robertson >>fermion at mac.com >>http://thenewcosmos.com >> >> >>"By [reason] we gain a multitude of cognitions, which although really >>nothing more than elucidations or explanations of that which (though in a >>confused manner) was already thought in our conceptions, are, at least in >>respect of their form, prized as new introspections; whilst, so far as >>regards their matter or content, we have really made no addition to our >>conceptions, but only disinvolved them." >> >>-Immanuel Kant, The Critique of Pure Reason >> >> >> >>_______________________________________________ >>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 oliveira_mc at yahoo.com.br Wed Apr 17 08:37:34 2002 From: oliveira_mc at yahoo.com.br (=?iso-8859-1?q?marcelo=20oliveira?=) Date: Wed, 17 Apr 2002 09:37:34 -0300 (ART) Subject: [vtkusers] Re:Drawing a Region of Interest with the mouse Message-ID: <20020417123734.36724.qmail@web20108.mail.yahoo.com> Hi Thomas and users. VTK can't draw a region in the image, but you can get the coordinate (X,Y) using FLTK, QT or another, and then pass to VTK using a implicit function , see: vtkPoints (insert points) and use vtkExtractGeometry to separate. I hope that is had help you. If you in doubt, please contact me. _______________________________________________________________________________________________ Yahoo! Empregos O trabalho dos seus sonhos pode estar aqui. Cadastre-se hoje mesmo no Yahoo! Empregos e tenha acesso a milhares de vagas abertas! http://br.empregos.yahoo.com/ From philip.allen at man.ac.uk Wed Apr 17 09:59:01 2002 From: philip.allen at man.ac.uk (Danny Allen) Date: Wed, 17 Apr 2002 14:59:01 +0100 Subject: [vtkusers] VTK and QT on Windows2000 Message-ID: <3CBD7FA5.CA73F545@man.ac.uk> Thanks to Dave Pont and Sagi Schein for your suggestions - I did manage to fix the problem in the end if anyone is interested: The problem was simply a conflict between single and multi threaded libraries. I'd built VTKQT using tmake with the '-t vclib' option to create a VisualC++ project file (only for VC++5, but VC++6 converts it for you). The resulting library is single threaded, so I had to go to the Project Settings dialog and under the C/C++ tab in 'Code Generation' change use runtime library to 'Debug Multi Threaded DLL'. I did also try editing the VTK.pro file used by tmake to generate the .dsp file to include a multi threaded option, but the resulting .dsp file crashed Developer studio - no idea why but the above alternative seems to work. -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] On Behalf Of Danny Allen Sent: Monday, April 15, 2002 7:55 PM To: vtkusers at public.kitware.com Subject: [vtkusers] VTK and QT on Windows2000 Is there a way of integrating VTK and QT on Windows 2000 ? I've tried using VTKQT by Matthias Koenig but I can't get it to work on my system. I can successfully build VTK, QT, and VTKQT on my machine, and I can build applications using either VTK or QT. However, when I try and bring them altogether in an application that links to all three libraries I get link errors whose cause are beyond my meager programming skills. There basically seems to be some conflict between VTKQT.lib and msvcprtd.lib. Are there some compiler switches I need to tweak, or is there an alternative to VTKQT that I might have more luck with ? I'm using VTK4.0, QT2.3.0 and Visual C++6.0 Developer Studio. Thanks Danny Allen Imaging Science and Biomedical Engineering University of Manchester From pooh at cs.tu-berlin.de Wed Apr 17 10:41:58 2002 From: pooh at cs.tu-berlin.de (Rene Tschirley) Date: Wed, 17 Apr 2002 16:41:58 +0200 Subject: [vtkusers] How to read raw 8bpp volumes? Message-ID: <20020417144158.GE16704@lava.cs.tu-berlin.de> Dear all, I hope my question isn't as stupid as I feel right now asking it: For all the time I used vtkVolume16Reader to read 16bpp volume data and was very happy with it. Now, I have some MRI series which are 8bpp. I wonder how I have to read them. vtkVolume16Reader writes: "vtkVolume16Reader (0x8058b18): Error reaading raw pgm data!" (I wonder why it assumes PGM format, for the files are raw image data.) Do I have to convert my 8bpp slices to real PGM data or 16bpp files? Thanks in advance, Ren? -- Dipl.-Inform. Ren? Tschirley http://www.cs.tu-berlin.de/~pooh TU Berlin, Computer Graphics and Computer Assisted Medicine research group From goodwin.lawlor at ucd.ie Wed Apr 17 10:37:41 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 17 Apr 2002 15:37:41 +0100 Subject: [vtkusers] VTK and QT on Windows2000 References: <3CBD7FA5.CA73F545@man.ac.uk> Message-ID: <009d01c1e61d$6ebd8a00$109701c1@highcross> While there's a thread going on QT - just a quick question: What are the pros and cons of QT v's FLTK for building VTK apps? I notice ITK uses FLTK but there seems to be more noise on this list about QT... Thanks, Goodwin University College Dublin ----- Original Message ----- From: "Danny Allen" To: Sent: Wednesday, April 17, 2002 2:59 PM Subject: [vtkusers] VTK and QT on Windows2000 > > > Thanks to Dave Pont and Sagi Schein for your suggestions - I did manage > to fix the problem in the end if anyone is interested: > > The problem was simply a conflict between single and multi threaded > libraries. I'd built VTKQT using tmake with the '-t vclib' option to > create a VisualC++ project file (only for VC++5, but VC++6 converts it > for you). The resulting library is single threaded, so I had to go to > the Project Settings dialog and under the C/C++ tab in 'Code Generation' > change use runtime library to 'Debug Multi Threaded DLL'. > > I did also try editing the VTK.pro file used by tmake to generate the > .dsp file to include a multi threaded option, but the resulting .dsp > file crashed Developer studio - no idea why but the above alternative > seems to work. > > > -----Original Message----- > From: vtkusers-admin at public.kitware.com > [mailto:vtkusers-admin at public.kitware.com] On Behalf Of Danny Allen > Sent: Monday, April 15, 2002 7:55 PM > To: vtkusers at public.kitware.com > Subject: [vtkusers] VTK and QT on Windows2000 > > > > Is there a way of integrating VTK and QT on Windows 2000 ? I've tried > using VTKQT by Matthias Koenig but I can't get it to work on my system. > I can successfully build VTK, QT, and VTKQT on my machine, and I can > build applications using either VTK or QT. However, when I try and bring > > them altogether in an application that links to all three libraries I > get link errors whose cause are beyond my meager programming skills. > There basically seems to be some conflict between VTKQT.lib and > msvcprtd.lib. Are there some compiler switches I need to tweak, or is > there an alternative to VTKQT that I might have more luck with ? > > I'm using VTK4.0, QT2.3.0 and Visual C++6.0 Developer Studio. > > Thanks > > Danny Allen > Imaging Science and Biomedical Engineering > University of Manchester > > _______________________________________________ > 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 andy.cedilnik at kitware.com Wed Apr 17 11:00:11 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 17 Apr 2002 11:00:11 -0400 Subject: [vtkusers] VTK and QT on Windows2000 In-Reply-To: <009d01c1e61d$6ebd8a00$109701c1@highcross> References: <3CBD7FA5.CA73F545@man.ac.uk> <009d01c1e61d$6ebd8a00$109701c1@highcross> Message-ID: <1019055611.25772.9.camel@xanth.kitwarein.com> On Wed, 2002-04-17 at 10:37, Goodwin Lawlor wrote: > While there's a thread going on QT - just a quick question: What are the > pros and cons of QT v's FLTK for building VTK apps? > > I notice ITK uses FLTK but there seems to be more noise on this list about > QT... Licensing is an major difference. FLTK is LGPL while QT is GPL or QPL. So, for FLTK you application can be any license you want (correct me if I am wrong), while for QT your application either needs to be GPL or you need to buy developers license. FLTK is much lower weight than QT, which is good for space constrained applications. QT however has much better widgets and much more functionality. QT needs preprocessing, while FLTK (if you do not use fluid) you don't. QT looks better (IMHO). Andy From meschman at engima.com Wed Apr 17 11:05:14 2002 From: meschman at engima.com (mikee) Date: Wed, 17 Apr 2002 10:05:14 -0500 Subject: Fwd: Re: [vtkusers] VTK and QT on Windows2000 Message-ID: ---------- Forwarded Message ---------- Subject: Re: [vtkusers] VTK and QT on Windows2000 Date: Wed, 17 Apr 2002 10:04:15 -0500 From: mikee To: Goodwin Lawlor , Jonathan Grimm Cc: "Flanagin, Maik C MVN" , "Ratcliff, Jay J MVN" hello, we have completed the first phase of qt / vtk integration. "we" is engima technologies corp. (http://www.engima.com) [go to main menu (left boxes)] and select VFW, for a download of the last non-QT release of VFW [go to Downloads [left boxes - Modules)]. Additional Movies that demonstrate camera control and frame generation capabilities in the final pre-QT release are available for download, as well. First phase download will be available May 1st. and The United States Army Corps. of Engineers, New Orleans District, who has provides funding and produced product with the current release. http://www.mvn.usace.army.mil/ Costs on the project have stabilized, and we are seeking funding, as an open source product. Equipment and professional expertise is welcome. mike eschman, etc... "Not just an afterthought ... http://www.engima.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 c.p.botha at its.tudelft.nl Wed Apr 17 13:22:52 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Wed, 17 Apr 2002 19:22:52 +0200 Subject: [vtkusers] VTK and QT on Windows2000 In-Reply-To: <1019055611.25772.9.camel@xanth.kitwarein.com> References: <3CBD7FA5.CA73F545@man.ac.uk> <009d01c1e61d$6ebd8a00$109701c1@highcross> <1019055611.25772.9.camel@xanth.kitwarein.com> Message-ID: <20020417172252.GB11087@dutidad.twi.tudelft.nl> On Wed, Apr 17, 2002 at 11:00:11AM -0400, Andy Cedilnik wrote: > On Wed, 2002-04-17 at 10:37, Goodwin Lawlor wrote: > > While there's a thread going on QT - just a quick question: What are the > > pros and cons of QT v's FLTK for building VTK apps? > > > > I notice ITK uses FLTK but there seems to be more noise on this list about > > QT... > > Licensing is an major difference. FLTK is LGPL while QT is GPL or QPL. > So, for FLTK you application can be any license you want (correct me if > I am wrong), while for QT your application either needs to be GPL or > you need to buy developers license. > > FLTK is much lower weight than QT, which is good for space constrained > applications. QT however has much better widgets and much more > functionality. > > QT needs preprocessing, while FLTK (if you do not use fluid) you don't. > > QT looks better (IMHO). I agree with Andy on every point. I would like to make it clear that if one develops an application with QT free, one is forced to release the application under the GPL. Please see the licensing FAQ on trolltech's page. For this reason I use FLTK for my VTK/C++ creations. Alternatively, I could pay a few hundred $s for a developer's license. I have nothing against QT, but when on a tight budget, one tends to take these things into account. In addition, the simplicity of FLTK makes understanding it a cinch. Digging into the code to clear up some point hardly ever takes more than a few minutes. The programmer's documentation is also quite sufficient. -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From elwo73 at hotmail.com Wed Apr 17 17:03:05 2002 From: elwo73 at hotmail.com (jon n) Date: Wed, 17 Apr 2002 14:03:05 -0700 Subject: [vtkusers] vtkTkRenderWidget + Tkinter seg fault Message-ID: I've used the vtkTkRenderWidget successfully in a more complicated Python program with classes and objects, but this simple script gives me a Seg Fault... from Tkinter import * from vtkTkRenderWidget import vtkTkRenderWidget root = Tk() newLev = Toplevel() viewPane = vtkTkRenderWidget(newLev) _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp. From fermion at mac.com Wed Apr 17 18:42:20 2002 From: fermion at mac.com (Mike Robertson) Date: Wed, 17 Apr 2002 18:42:20 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: Message-ID: Alright, fantastic! The vast majority of this works without error, but there are a few problems. These files don't exist. I've searched through the vtkusers.mbox, but to no avail at this point... Thanks for your help. mike CMake Error: can not find file /usr/local/vtk/VTK/Rendering/vtkXImageWindow Tried .cxx .cpp .c .M .m .mm .h .txx CMake Error: can not find file /usr/local/vtk/VTK/Rendering/vtkOpenGLImageWindow Tried .cxx .cpp .c .M .m .mm .h .txx make[3]: *** [cmake.depends] Error 255 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 [sull-10-114:local/vtk/VTK] root# > From: Sander Niemeijer > Date: Wed, 17 Apr 2002 10:26:10 +0200 > To: Mike Robertson > Cc: > Subject: Re: [vtkusers] More on mac os x installation > > Hi Mike, > > There are two ways to build VTK on Mac OS X. You can choose to build for > X11 or Quartz. > In your current configuration you seem to get the settings for either > mixed up. > If you want to get VTK to run under Quartz then make sure the following > are set: > --- > OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > VTK_USE_QUARTZ:BOOL=ON > VTK_USE_RENDERING:BOOL=ON > VTK_USE_X:BOOL=OFF > --- > and leave the rest of the system settings as it was determined by CMake > (you can leave the X_FLAGS and X_LIBS as they are). > > On the other hand if you want to build VTK to Use X11 under Mac OS X you > need to do some minor patching. > Please take a look at an e-mail I send some time ago: > --- > http://public.kitware.com/pipermail/vtkusers/2002-February/009772.html > --- > In this e-mail I described what to do to get a proper build. > Unfortunately this patch hasn't been added to the cvs repository yet. (I > hope Yves Starreveld will find some time to do this). > > After applying the patch set the following in the CMakeCache.txt file: > --- > OPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.a (i.e. leave the option as > it was determined by CMake) > VTK_USE_QUARTZ:BOOL=OFF > VTK_USE_RENDERING:BOOL=ON > VTK_USE_X:BOOL=ON > --- > > If you need more help, just drop me an e-mail. > > Regards, > Sander > > On woensdag, april 17, 2002, at 05:53 , Mike Robertson wrote: > >> Hi! I'm relatively new to the unix world, oddly enough, but I'm >> determined >> to get VTK running on my machine within or outside of this X-11 >> environment >> with the intent of running MayaVi. Despite its intention to simplify, >> this >> entire cmake process seems to make things far more cryptic than they >> would >> otherwise be. Here's my confusion (and, naturally, I've tried this >> several >> times before dragging myself to this listserv). >> >> After a highly verbose make process, the program concludes with this: >> >> /usr/bin/libtool: internal link edit command failed >> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >> make[2]: *** [default_target] Error 2 >> make[1]: *** [default_target_Rendering] Error 2 >> make: *** [default_target] Error 2 >> [localhost:local/vtk/VTK] root# hmm... >> >> Here are the questions that I'm not so sure about (and that are probably >> relevant to this `target' issue... (?)) >> >> Thanks for any help anyone can provide me with this. (the libtool error >> resulted because I have no idea what it's asking for in the dynamic link >> library question...) >> >> mike >> >> Variable Name: CMAKE_DL_LIBS >> Description: Dynamic link library to link in. >> Current Value: >> New Value (Enter to keep current value): /usr/share/libtool/ >> >> Variable Name: CMAKE_HP_PTHREADS >> Description: Use HP pthreads. >> Current Value: 0 >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_INSTALL_PREFIX >> Description: Install path prefix, prepended onto install directories. >> Current Value: /usr/local >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_LIB_EXT >> Description: Library extension used by this machine. >> Current Value: >> New Value (Enter to keep current value): .lib >> >> Variable Name: CMAKE_MAKE_PROGRAM >> Description: Path to a program. >> Current Value: /usr/bin/make >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_MODULE_BUILD_FLAGS >> Description: Flag used by CXX to build a shared library. >> Current Value: -bundle -flat_namespace -undefined suppress >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_MODULE_LINK_FLAGS >> Description: Flags used to link a shared library. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_MODULE_SUFFIX >> Description: Module library suffix. >> Current Value: .so >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_RANLIB >> Description: Library randomizer program used on archive libraries. >> Current Value: ranlib >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >> Description: Flag used by CXX to build a shared library. >> Current Value: -dynamiclib >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_CFLAGS >> Description: Flag used for building shared library objects. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_LD_LIBS >> Description: Libraries used by LD for shared libraries. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_LINK_FLAGS >> Description: Flags used to link a shared library. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >> Description: Flag used to specify run-time search paths. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >> Description: If null, each runtime path is a separate option. >> Otherwise, >> they are all joined, separated by this. >> Current Value: : >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SHLIB_SUFFIX >> Description: Shared library suffix. >> Current Value: .dylib >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_SKIP_RPATH >> Description: If set, runtime paths are not added when using shared >> libraries. >> Current Value: NO >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_TEMPLATE_FLAGS >> Description: CXX template flags used by compiler. >> Current Value: >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_THREAD_LIBS >> Description: Thread library used. >> Current Value: -lpthread >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_USE_PTHREADS >> Description: Use the pthreads library. >> Current Value: 1 >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_USE_SPROC >> Description: Use sproc libs. >> Current Value: 0 >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_WORDS_BIGENDIAN >> Description: is this system big endian >> Current Value: 1 >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_X_CFLAGS >> Description: X11 extra flags. >> Current Value: -I/usr/X11R6/include >> New Value (Enter to keep current value): >> >> Variable Name: CMAKE_X_LIBS >> Description: Libraries and options used in X11 programs. >> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >> New Value (Enter to keep current value): >> >> Variable Name: DART_ROOT >> Description: If you have Dart installed, where is it located? >> Current Value: NOTFOUND >> New Value (Enter to keep current value): >> >> Variable Name: EXECUTABLE_OUTPUT_PATH >> Description: Single output directory for building all executables. >> Current Value: /usr/local/vtk/VTK/bin >> New Value (Enter to keep current value): >> >> Variable Name: LIBRARY_OUTPUT_PATH >> Description: Single output directory for building all libraries. >> Current Value: /usr/local/vtk/VTK/bin >> New Value (Enter to keep current value): >> >> Variable Name: OPENGL_INCLUDE_PATH >> Description: What is the path where the file GL/gl.h can be found >> Current Value: /usr/X11R6/include >> New Value (Enter to keep current value): >> >> Variable Name: OPENGL_LIBRARY >> Description: Where can the GL library be found >> Current Value: /usr/X11R6/lib/libGL.a >> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a >> -framework >> Cocoa -framework OpenGL >> >> Variable Name: VTK_DATA_ROOT >> Description: What is the path where the file VTKData.readme can be >> found >> Current Value: NOTFOUND >> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >> >> Variable Name: VTK_DEBUG_LEAKS >> Description: Build leak checking support into vtk. >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_MANGLE_MESA >> Description: Use mangled Mesa with OpenGL >> Current Value: OFF >> New Value (Enter to keep current value): ON >> >> Variable Name: VTK_OPENGL_HAS_OSMESA >> Description: The opengl library being used supports off screen Mesa >> calls. >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_64BIT_IDS >> Description: Build VTK with 64 bit ids >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_ANSI_STDLIB >> Description: Use the ANSI standard iostream library >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_HYBRID >> Description: Build the hybrid directory classes >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_PARALLEL >> Description: Build the parallel directory classes >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_PATENTED >> Description: Build the patented directory classes, these classes are >> patented and may require a license to use >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_QUARTZ >> Description: Build classes for the Quartz window manager >> Current Value: ON >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_RENDERING >> Description: Build the rendering classes used for displaying >> Current Value: ON >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_VOLUMEPRO >> Description: Build VTK with volume pro support >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_USE_X >> Description: Build classes for the X11 window manager >> Current Value: OFF >> New Value (Enter to keep current value): ON >> >> Variable Name: VTK_WRAP_JAVA >> Description: wrap classes into the Java language >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_WRAP_PYTHON >> Description: wrap classes into the Python interpreted language >> Current Value: OFF >> New Value (Enter to keep current value): >> >> Variable Name: VTK_WRAP_TCL >> Description: wrap classes into the TCL intepreted language >> Current Value: OFF >> New Value (Enter to keep current value): >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Michael Robertson >> fermion at mac.com >> http://thenewcosmos.com >> >> >> "By [reason] we gain a multitude of cognitions, which although really >> nothing more than elucidations or explanations of that which (though >> in a >> confused manner) was already thought in our conceptions, are, at least >> in >> respect of their form, prized as new introspections; whilst, so far as >> regards their matter or content, we have really made no addition to our >> conceptions, but only disinvolved them." >> >> -Immanuel Kant, The Critique of Pure Reason >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > From david_pont at hotmail.com Wed Apr 17 18:50:58 2002 From: david_pont at hotmail.com (David Pont) Date: Thu, 18 Apr 2002 10:50:58 +1200 Subject: [vtkusers] How to create a better surface than tubefilter? Message-ID: An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Wed Apr 17 23:40:37 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 18 Apr 2002 09:10:37 +0530 Subject: [vtkusers] vtkTkRenderWidget + Tkinter seg fault In-Reply-To: References: Message-ID: <15550.16437.654392.822450@monster.linux.in> >>>>> "JN" == jon n writes: JN> I've used the vtkTkRenderWidget successfully in a more JN> complicated Python program with classes and objects, but this JN> simple script gives me a Seg Fault... JN> from Tkinter import * from vtkTkRenderWidget import JN> vtkTkRenderWidget JN> root = Tk() newLev = Toplevel() viewPane = JN> vtkTkRenderWidget(newLev) Works for me with VTK 4.1.1 CVS. What version of Python/Tk/VTK are you using? prabhu From schein at cs.Technion.AC.IL Thu Apr 18 03:25:23 2002 From: schein at cs.Technion.AC.IL (sagi schein) Date: Thu, 18 Apr 2002 09:25:23 +0200 Subject: [vtkusers] extracting the polygonal model from a vtkMarchingCubeFilter Message-ID: <001401c1e6aa$34568a00$54294484@cs.technion.ac.il> My problem is to identify silhouette edges in a model that was created by vtkMarchingCubeFilter - to do that I want to traverse the faces and identify the edges that connect between front facing and back facing faces. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From niemeijer at science-and-technology.nl Thu Apr 18 04:17:50 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Thu, 18 Apr 2002 10:17:50 +0200 Subject: [vtkusers] More on mac os x installation In-Reply-To: Message-ID: Mike, You're probably working with the CVS version. I forgot to mention that the patch from my feb-2002 e-mail was meant for the 4.0 release. I'm currently working with Yves Starreveld to get the configuration for X11 under Mac OS X working within the current CVS tree, so stay tuned... Regards, Sander On donderdag, april 18, 2002, at 12:42 , Mike Robertson wrote: > Alright, fantastic! The vast majority of this works without error, but > there > are a few problems. These files don't exist. I've searched through the > vtkusers.mbox, but to no avail at this point... > > Thanks for your help. > > mike > > CMake Error: can not find file > /usr/local/vtk/VTK/Rendering/vtkXImageWindow > > Tried .cxx .cpp .c .M .m .mm .h .txx > CMake Error: can not find file > /usr/local/vtk/VTK/Rendering/vtkOpenGLImageWindow > > Tried .cxx .cpp .c .M .m .mm .h .txx > make[3]: *** [cmake.depends] Error 255 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Rendering] Error 2 > make: *** [default_target] Error 2 > [sull-10-114:local/vtk/VTK] root# > >> From: Sander Niemeijer >> Date: Wed, 17 Apr 2002 10:26:10 +0200 >> To: Mike Robertson >> Cc: >> Subject: Re: [vtkusers] More on mac os x installation >> >> Hi Mike, >> >> There are two ways to build VTK on Mac OS X. You can choose to build >> for >> X11 or Quartz. >> In your current configuration you seem to get the settings for either >> mixed up. >> If you want to get VTK to run under Quartz then make sure the following >> are set: >> --- >> OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL >> VTK_USE_QUARTZ:BOOL=ON >> VTK_USE_RENDERING:BOOL=ON >> VTK_USE_X:BOOL=OFF >> --- >> and leave the rest of the system settings as it was determined by CMake >> (you can leave the X_FLAGS and X_LIBS as they are). >> >> On the other hand if you want to build VTK to Use X11 under Mac OS X >> you >> need to do some minor patching. >> Please take a look at an e-mail I send some time ago: >> --- >> http://public.kitware.com/pipermail/vtkusers/2002-February/009772.html >> --- >> In this e-mail I described what to do to get a proper build. >> Unfortunately this patch hasn't been added to the cvs repository >> yet. (I >> hope Yves Starreveld will find some time to do this). >> >> After applying the patch set the following in the CMakeCache.txt file: >> --- >> OPENGL_LIBRARY:FILEPATH=/usr/X11R6/lib/libGL.a (i.e. leave the option >> as >> it was determined by CMake) >> VTK_USE_QUARTZ:BOOL=OFF >> VTK_USE_RENDERING:BOOL=ON >> VTK_USE_X:BOOL=ON >> --- >> >> If you need more help, just drop me an e-mail. >> >> Regards, >> Sander >> >> On woensdag, april 17, 2002, at 05:53 , Mike Robertson wrote: >> >>> Hi! I'm relatively new to the unix world, oddly enough, but I'm >>> determined >>> to get VTK running on my machine within or outside of this X-11 >>> environment >>> with the intent of running MayaVi. Despite its intention to simplify, >>> this >>> entire cmake process seems to make things far more cryptic than they >>> would >>> otherwise be. Here's my confusion (and, naturally, I've tried this >>> several >>> times before dragging myself to this listserv). >>> >>> After a highly verbose make process, the program concludes with this: >>> >>> /usr/bin/libtool: internal link edit command failed >>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>> make[2]: *** [default_target] Error 2 >>> make[1]: *** [default_target_Rendering] Error 2 >>> make: *** [default_target] Error 2 >>> [localhost:local/vtk/VTK] root# hmm... >>> >>> Here are the questions that I'm not so sure about (and that are >>> probably >>> relevant to this `target' issue... (?)) >>> >>> Thanks for any help anyone can provide me with this. (the libtool >>> error >>> resulted because I have no idea what it's asking for in the dynamic >>> link >>> library question...) >>> >>> mike >>> >>> Variable Name: CMAKE_DL_LIBS >>> Description: Dynamic link library to link in. >>> Current Value: >>> New Value (Enter to keep current value): /usr/share/libtool/ >>> >>> Variable Name: CMAKE_HP_PTHREADS >>> Description: Use HP pthreads. >>> Current Value: 0 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_INSTALL_PREFIX >>> Description: Install path prefix, prepended onto install >>> directories. >>> Current Value: /usr/local >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_LIB_EXT >>> Description: Library extension used by this machine. >>> Current Value: >>> New Value (Enter to keep current value): .lib >>> >>> Variable Name: CMAKE_MAKE_PROGRAM >>> Description: Path to a program. >>> Current Value: /usr/bin/make >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>> Description: Flag used by CXX to build a shared library. >>> Current Value: -bundle -flat_namespace -undefined suppress >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>> Description: Flags used to link a shared library. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_SUFFIX >>> Description: Module library suffix. >>> Current Value: .so >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_RANLIB >>> Description: Library randomizer program used on archive libraries. >>> Current Value: ranlib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>> Description: Flag used by CXX to build a shared library. >>> Current Value: -dynamiclib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_CFLAGS >>> Description: Flag used for building shared library objects. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_LD_LIBS >>> Description: Libraries used by LD for shared libraries. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>> Description: Flags used to link a shared library. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>> Description: Flag used to specify run-time search paths. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>> Description: If null, each runtime path is a separate option. >>> Otherwise, >>> they are all joined, separated by this. >>> Current Value: : >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_SUFFIX >>> Description: Shared library suffix. >>> Current Value: .dylib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SKIP_RPATH >>> Description: If set, runtime paths are not added when using shared >>> libraries. >>> Current Value: NO >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_TEMPLATE_FLAGS >>> Description: CXX template flags used by compiler. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_THREAD_LIBS >>> Description: Thread library used. >>> Current Value: -lpthread >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_USE_PTHREADS >>> Description: Use the pthreads library. >>> Current Value: 1 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_USE_SPROC >>> Description: Use sproc libs. >>> Current Value: 0 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_WORDS_BIGENDIAN >>> Description: is this system big endian >>> Current Value: 1 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_X_CFLAGS >>> Description: X11 extra flags. >>> Current Value: -I/usr/X11R6/include >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_X_LIBS >>> Description: Libraries and options used in X11 programs. >>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>> New Value (Enter to keep current value): >>> >>> Variable Name: DART_ROOT >>> Description: If you have Dart installed, where is it located? >>> Current Value: NOTFOUND >>> New Value (Enter to keep current value): >>> >>> Variable Name: EXECUTABLE_OUTPUT_PATH >>> Description: Single output directory for building all executables. >>> Current Value: /usr/local/vtk/VTK/bin >>> New Value (Enter to keep current value): >>> >>> Variable Name: LIBRARY_OUTPUT_PATH >>> Description: Single output directory for building all libraries. >>> Current Value: /usr/local/vtk/VTK/bin >>> New Value (Enter to keep current value): >>> >>> Variable Name: OPENGL_INCLUDE_PATH >>> Description: What is the path where the file GL/gl.h can be found >>> Current Value: /usr/X11R6/include >>> New Value (Enter to keep current value): >>> >>> Variable Name: OPENGL_LIBRARY >>> Description: Where can the GL library be found >>> Current Value: /usr/X11R6/lib/libGL.a >>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a >>> -framework >>> Cocoa -framework OpenGL >>> >>> Variable Name: VTK_DATA_ROOT >>> Description: What is the path where the file VTKData.readme can be >>> found >>> Current Value: NOTFOUND >>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>> >>> Variable Name: VTK_DEBUG_LEAKS >>> Description: Build leak checking support into vtk. >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_MANGLE_MESA >>> Description: Use mangled Mesa with OpenGL >>> Current Value: OFF >>> New Value (Enter to keep current value): ON >>> >>> Variable Name: VTK_OPENGL_HAS_OSMESA >>> Description: The opengl library being used supports off screen Mesa >>> calls. >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_64BIT_IDS >>> Description: Build VTK with 64 bit ids >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_ANSI_STDLIB >>> Description: Use the ANSI standard iostream library >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_HYBRID >>> Description: Build the hybrid directory classes >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_PARALLEL >>> Description: Build the parallel directory classes >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_PATENTED >>> Description: Build the patented directory classes, these classes are >>> patented and may require a license to use >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_QUARTZ >>> Description: Build classes for the Quartz window manager >>> Current Value: ON >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_RENDERING >>> Description: Build the rendering classes used for displaying >>> Current Value: ON >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_VOLUMEPRO >>> Description: Build VTK with volume pro support >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_X >>> Description: Build classes for the X11 window manager >>> Current Value: OFF >>> New Value (Enter to keep current value): ON >>> >>> Variable Name: VTK_WRAP_JAVA >>> Description: wrap classes into the Java language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_WRAP_PYTHON >>> Description: wrap classes into the Python interpreted language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_WRAP_TCL >>> Description: wrap classes into the TCL intepreted language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> Michael Robertson >>> fermion at mac.com >>> http://thenewcosmos.com >>> >>> >>> "By [reason] we gain a multitude of cognitions, which although really >>> nothing more than elucidations or explanations of that which (though >>> in a >>> confused manner) was already thought in our conceptions, are, at least >>> in >>> respect of their form, prized as new introspections; whilst, so far as >>> regards their matter or content, we have really made no addition to >>> our >>> conceptions, but only disinvolved them." >>> >>> -Immanuel Kant, The Critique of Pure Reason >>> >>> >>> >>> _______________________________________________ >>> 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 maraux at ondim.fr Thu Apr 18 04:55:32 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Thu, 18 Apr 2002 10:55:32 +0200 Subject: [vtkusers] Merging vtkPolyData : desperately need Message-ID: <000a01c1e6b6$cc3646b0$c000a8c0@ouessant> Hello, I need to merge several (huge) vtkPolyDatas, Is there a function to do that? I would like something like CopyStructure, but keeping whatever exists in the current vtkPolyData. Is there a simpler way than taking cells and points by once, treating each cell to update points Id ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Thu Apr 18 05:27:43 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Thu, 18 Apr 2002 11:27:43 +0200 Subject: [vtkusers] Merging vtkPolyData : desperately need References: <000a01c1e6b6$cc3646b0$c000a8c0@ouessant> Message-ID: <003201c1e6bb$4b80f560$c000a8c0@ouessant> just answering myself (and anybody that would care about it): use append PolyData, you idiot... If only I knew all of the vtk classes ... ----- Original Message ----- From: Sebastien_MARAUX To: vtk mailing list Sent: Thursday, April 18, 2002 10:55 AM Subject: [vtkusers] Merging vtkPolyData : desperately need Hello, I need to merge several (huge) vtkPolyDatas, Is there a function to do that? I would like something like CopyStructure, but keeping whatever exists in the current vtkPolyData. Is there a simpler way than taking cells and points by once, treating each cell to update points Id ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.trum at teraport.de Thu Apr 18 05:24:52 2002 From: a.trum at teraport.de (Alexander Trum) Date: Thu, 18 Apr 2002 11:24:52 +0200 Subject: [vtkusers] Merging vtkPolyData : desperately need References: <000a01c1e6b6$cc3646b0$c000a8c0@ouessant> Message-ID: <3CBE90E4.B490EB60@teraport.de> Hello, Try vtkAppendPolyData. Ciao, Alex > Sebastien_MARAUX schrieb: > > Hello, > > I need to merge several (huge) vtkPolyDatas, > Is there a function to do that? I would like > something like CopyStructure, but keeping > whatever exists in the current vtkPolyData. > > Is there a simpler way than taking cells and > points by once, treating each cell to update > points Id ? > > Sebastien MARAUX -------------- next part -------------- A non-text attachment was scrubbed... Name: a.trum.vcf Type: text/x-vcard Size: 409 bytes Desc: Karte f?r Alexander Trum URL: From husthj at yahoo.com Thu Apr 18 05:24:54 2002 From: husthj at yahoo.com (Denny) Date: Thu, 18 Apr 2002 02:24:54 -0700 (PDT) Subject: [vtkusers] How to remove data from model by interaction? Message-ID: <20020418092454.70080.qmail@web20205.mail.yahoo.com> Hi all, I have used vtkMarchingContourFilter to get a bunny model from volume image data. The bunny model is fine except that there is some scattered surfaces which are not wanted. I have an idea to remove these surfaces by hands. That means when I select a point on screen, surfaces containing it should be removed from the model. So I want to know is there any vtk classes supporting such interacting operation. By the way, different ideas are appreciated. greeting Denny __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From kuebler at ira.uka.de Thu Apr 18 07:16:29 2002 From: kuebler at ira.uka.de (Carsten =?ISO-8859-1?Q?K=FCbler?=) Date: Thu, 18 Apr 2002 13:16:29 +0200 Subject: [vtkusers] YAVTKQT - yet another vtk qt version Message-ID: <3CBEAB0D.2050002@ira.uka.de> Here is our solution which combines vtk and qt. http://wwwipr.ira.uka.de/~kuebler/vtkqt/index.html Carsten -- Dipl.-Inf. Carsten K?bler Institute for Process Control & Robotics Universit?t Karlsruhe (TH) Tel.: +49 721/608-8934 Kaiserstr. 12 Fax.: +49 721/608-7141 D-76128 Karlsruhe Email: kuebler at ira.uka.de Germany WWW: http://wwwipr.ira.uka.de/~kuebler/ From ady_roman at yahoo.com Thu Apr 18 13:27:50 2002 From: ady_roman at yahoo.com (ady roman) Date: Thu, 18 Apr 2002 10:27:50 -0700 (PDT) Subject: [vtkusers] RenderingWindow Message-ID: <20020418172750.23630.qmail@web12507.mail.yahoo.com> How can I integrate the RenderingWindow in my own window, using C++? For example, if I want to have in the right the object and in the right some buttons to change the object properties ... Regards, A.Roman __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From tarifa at rpi.edu Thu Apr 18 13:33:42 2002 From: tarifa at rpi.edu (Asad A. Abu-Tarif) Date: Thu, 18 Apr 2002 13:33:42 -0400 Subject: [vtkusers] RenderingWindow References: <20020418172750.23630.qmail@web12507.mail.yahoo.com> Message-ID: <006d01c1e6ff$2f74b070$0201a8c0@nycap.rr.com> Call the SetParentId member function of vtkRenderWindow and pass to it (this->m_hWnd). The calss that calls this has to be derived, either directly or indirectly, from CWnd. For example, a CView Class can use this to visualize your objects within the client area. Or, a CDialog class can use it to visualize your objects inside a dialog box. Asad > How can I integrate the RenderingWindow in > my own window, using C++? > > For example, if I want to have in the right > the object and in the right some buttons to > change the object properties ... > > Regards, > > A.Roman > > __________________________________________________ > Do You Yahoo!? > Yahoo! Tax Center - online filing with TurboTax > http://taxes.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From svong at email.arc.nasa.gov Thu Apr 18 14:37:32 2002 From: svong at email.arc.nasa.gov (Shwu Ping Vong) Date: Thu, 18 Apr 2002 11:37:32 -0700 Subject: [vtkusers] read in streaming data rather than read in from file Message-ID: <3CBF126C.C653FDDC@email.arc.nasa.gov> Hello kind vtkusers, Please help me with this problem : Right now my streaming data comes from reading from shared memory. After that, the data would be stored in a double* . My approach now is somewhat primitive ( and maybe stupid ) -- I write out the data stored in the array to a file and add the header to make it into vtk format so my vtkStructuredPointsReader can read it. Since it's streaming data, it's kind of like everything loops again and again so every time I got new data in the array, the data will be written out to a file before being read by vtkStructuredPointsReader object. It works OK for small data, but as the size grows, some problems occur. Besides, it doesn't seem efficient to do this : data -> file -> reader over and over. Is there another approach to this? Is there something in vtk that can take the scalar values directly? Thanks in advance, Shwuping Vong From dreed at capital.edu Thu Apr 18 14:45:28 2002 From: dreed at capital.edu (Dave Reed) Date: Thu, 18 Apr 2002 14:45:28 -0400 (EDT) Subject: [vtkusers] Re: How to read raw 8bpp volumes? In-Reply-To: <20020417144158.GE16704@lava.cs.tu-berlin.de> (message from Rene Tschirley on Wed, 17 Apr 2002 16:41:58 +0200) References: <20020417144158.GE16704@lava.cs.tu-berlin.de> Message-ID: <200204181845.g3IIjSx03933@fourier.capital.edu> > From: Rene Tschirley > > Dear all, > > > I hope my question isn't as stupid as I feel right now asking it: > > For all the time I used vtkVolume16Reader to read 16bpp volume data and > was very happy with it. Now, I have some MRI series which are 8bpp. I > wonder how I have to read them. vtkVolume16Reader writes: > "vtkVolume16Reader (0x8058b18): Error reaading raw pgm data!" (I wonder > why it assumes PGM format, for the files are raw image data.) Do I have > to convert my 8bpp slices to real PGM data or 16bpp files? > > Thanks in advance, > Ren?? I think the vtkImageReader is what you want (and from what I gather from the documentation, this is the preferred way to read 16 bit data also). Here's a python code snippet to read 64 256x256 files named slice.1, slice.2, ..., slice.64 reader = vtkImageReader() reader.SetDataOrigin(0, 0, 0) reader.SetDataExtent(0, 255, 0, 255, 1, 64) reader.SetFilePrefix('slice') reader.SetDataScalarTypeToUnsignedChar() # for 8 bit data HTH, Dave From karshi.hasanov at utoronto.ca Thu Apr 18 16:01:00 2002 From: karshi.hasanov at utoronto.ca (Karshi) Date: Thu, 18 Apr 2002 16:01:00 -0400 Subject: [vtkusers] 2D_unwrapping Message-ID: <20020418195226Z234710-9478+5@bureau8.utcc.utoronto.ca> Hi all, Is there any method in VTK to solve 2D phase image unwrapping? Thanks From david_pont at hotmail.com Thu Apr 18 17:27:58 2002 From: david_pont at hotmail.com (David Pont) Date: Fri, 19 Apr 2002 09:27:58 +1200 Subject: [vtkusers] How to remove data from model by interaction? Message-ID: An HTML attachment was scrubbed... URL: From goodwin.lawlor at ucd.ie Thu Apr 18 15:01:37 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Thu, 18 Apr 2002 20:01:37 +0100 Subject: [vtkusers] extracting the polygonal model from a vtkMarchingCubeFilter References: <001401c1e6aa$34568a00$54294484@cs.technion.ac.il> Message-ID: <000501c1e71b$60bc4910$179701c1@highcross> Use vtkVectorDot to get the dot product of the normal of each face and and the normal to the view plane... then extract the polydata based on scalar connnectivity. Goodwin University College Dublin ps Just searched the list archive: http://public.kitware.com/pipermail/vtkusers/2001-April/005942.html ... knew I heard it before. ----- Original Message ----- From: sagi schein To: vtkusers at public.kitware.com Sent: Thursday, April 18, 2002 8:25 AM Subject: [vtkusers] extracting the polygonal model from a vtkMarchingCubeFilter My problem is to identify silhouette edges in a model that was created by vtkMarchingCubeFilter - to do that I want to traverse the faces and identify the edges that connect between front facing and back facing faces. Any ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From zlei at cisunix.unh.edu Thu Apr 18 16:12:46 2002 From: zlei at cisunix.unh.edu (Zhaopeng Lei) Date: Thu, 18 Apr 2002 16:12:46 -0400 (EDT) Subject: [vtkusers] Install problem Message-ID: Hi all, I met a problem in running vtk example on Windows system: Here are my steps: 1. download Wintel Pre-Compiled Binaries: vtk40Core.exe and vtk40Cpp.exe 2. install them 3. use vc++6.0 open the CXX example 4. Set VC++: tools->options->directaries Include Files: add c:\..\vtk40\include\vtk Library files: add c:\..\vtk40\lib\vtk 5. then build all. result: compile ok. link errors like this: a.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) Did I miss any lib files? How can I fix it? Thanks a lot. - Zhaopeng :-) -_____ ^ _____- -__\ [|] /__- -_\|/_- /M\ From dai_shuocn at 163.com Thu Apr 18 21:01:46 2002 From: dai_shuocn at 163.com (Dai Shuo) Date: Fri, 19 Apr 2002 9:1:46 +0800 Subject: [vtkusers] Install problem Message-ID: <20020419010601.D39701C7E6D0C@sm7.163.com> hi,Zhaopeng In Project->Settings->Link->Library models, add the necessary libs. Here's a list which is quite enough for most applications: opengl32.lib glu32.lib vtkjpeg.lib vtkzlib.lib vtkParallel.lib vtkRendering.lib vtkIO.lib vtkImaging.lib vtkHybrid.lib vtkGraphics.lib vtkFiltering.lib vtkCommon.lib vtkpng.lib Hope this helps. Daishuo >Hi all, > >I met a problem in running vtk example on Windows system: >Here are my steps: >1. download Wintel Pre-Compiled Binaries: vtk40Core.exe and vtk40Cpp.exe >2. install them >3. use vc++6.0 open the CXX example >4. Set VC++: tools->options->directaries > Include Files: add c:\..\vtk40\include\vtk > Library files: add c:\..\vtk40\lib\vtk >5. then build all. >result: compile ok. > link errors like this: >a.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) >public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" >(__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) > >Did I miss any lib files? How can I fix it? Thanks a lot. > > > >- Zhaopeng :-) > > > -_____ ^ _____- > -__\ [|] /__- > -_\|/_- > /M\ > > >_______________________________________________ >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 ? ?? Dai Shuo dai_shuocn at 163.com From popescu at tecno.ior.it Fri Apr 19 05:16:35 2002 From: popescu at tecno.ior.it (Florin Popescu) Date: Fri, 19 Apr 2002 11:16:35 +0200 Subject: [vtkusers] found 'answer' to vtk and Matlab: compatible with vtk3.2 only! Message-ID: <5.1.0.14.0.20020419111231.00aa5a40@tecno.ior.it> This is my final posting about Matlab and vtk, sorry to bother y'all. After 2 weeks of frustration, I found that with vtk3.2 pre-compiled installation (no cmake needed!) it works under Matlab 6.0 and 6.1 and winNT/win2000. all one needs to do is to add to classpath.txt C:/Programs/vtk32/java/vtk.jar C:/Programs/vtk32/java where $vtkhome is the default C:/Programs/vtk32 (if not, find vtk.jar) restart Matlab and run the cone example and GO! the .dlls are placed in system32 automatically. If you are lucky to read this first, the whole set up takes about 10 minutes. I don't know why vtk4.0 refuses to work, even if compiled under cmake for java 1.1.8 wrapping (default compiled for java1.4? matlab's jre is 1.1.8 - see my previous postings). I wish someone explained all this to me, but I am happy to finally start working on real programs and stop worrying about the bomb. I hope this post will be useful to others. Adding vtk to Matlab is like having some sort of a numerics/visualization Batmobile, and if the new features of vtk4.0 were available (and the inevitable 3.2 bugs were 'evitable'), so much the better for us all. Next I will try itk and Matlab. Happy visualization. Florin From lisa.avila at kitware.com Fri Apr 19 13:54:59 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Fri, 19 Apr 2002 13:54:59 -0400 Subject: [vtkusers] VolView 1.3 Final Release Message-ID: <5.1.0.14.0.20020419133550.04b04488@pop.nycap.rr.com> Kitware Inc. is pleased to announce the release of VolView 1.3 for Windows, Linux, and Solaris. VolView is an interactive system for volume visualization, processing, and exploration. You can download this release from the Kitware web site at: http://www.kitware.com/products/volview.html. Note that installing the final version of VolView 1.3 will reset your evaluation period to the full 30 days, even if your evaluation period on the Beta release has previously expired. Free technical assistance is provided during the evaluation period. Simply send email to support at kitware.com with VolView 1.3 in the subject line. Or if you prefer, you may call me at 518-371-3971 x103. In addition, you can view or download a PDF version of the VolView 1.3 User's Manual from our web site at: http://www.kitware.com/VolView/VolView13UG.pdf. You may purchase standard and academic VolView licenses on our on-line store at: http://www.kitware.com/products/volview.html. Site licenses, customized applications, and source code licenses are also available. Contact kitware at kitware.com for more information. Sincerely, Lisa S. Avila Kitware, Inc. From you_ruobo at yahoo.com Fri Apr 19 16:14:39 2002 From: you_ruobo at yahoo.com (you ruobo) Date: Fri, 19 Apr 2002 13:14:39 -0700 (PDT) Subject: [vtkusers] question about CFD data read by VTK Message-ID: <20020419201439.87202.qmail@web10707.mail.yahoo.com> 1.I want to input my CFD result data(grid data file+ flow property data file,Both in PLOT3D format ) into VTK for visualization. Does vtkPLOT3DReader directly recogonize the data format? If not, what kind of preprocessing work should I do? 2. In the included example data files, are the postq.bin and postxyz.bin standard Plot3d files that can be read directly by CFD tool such as Tecplot? what is the contents of postq.bin? Does it include quantities like "rho,u,v,w,pressure" . Thanks in advance Ruobo __________________________________________________ Do You Yahoo!? Yahoo! Tax Center - online filing with TurboTax http://taxes.yahoo.com/ From mmalat at irus.rri.ca Fri Apr 19 17:28:24 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Fri, 19 Apr 2002 17:28:24 -0400 Subject: [vtkusers] Problem with DeepCopy+vtkPolyData Message-ID: <3CC08BF8.E299B0FC@irus.rri.ca> Hi all, I want to simply copy a vtkPolyData. But I don't understand why DeepCopy doesn't work. Here is my code: strip = vtkStripper() ....#modify strip mat = vtkPolyData() mat.DeepCopy(strip.GetOutput()) dsm = vtkPolyDataMapper() dsm.SetInput(mat) strip is ok since I tried : dsm.SetInput(strip.GetOutput()) So what should I change to copy a vtkPolyData in another ? Thanks a lot mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From cwant at ualberta.ca Fri Apr 19 16:30:40 2002 From: cwant at ualberta.ca (Chris Want) Date: Fri, 19 Apr 2002 14:30:40 -0600 Subject: [vtkusers] vtkLookupTable Transpacency == background color? Message-ID: <3CC07E70.8010702@ualberta.ca> Hi all, I would like to use a lookup table that is red and varies in opacity. I am using code to generate the lookup table that looks like this: lut = vtkLookupTable() lut.SetNumberOfColors(256) for i in range(256): lut.SetTableValue(i, 1.0, 0.0, 0.0, float(i)/255.0) lut.Build() When I use this lookup table the rendered object varies in color between red and the background color of the renderer instead of varying between red and transparent. I get similar results when I try to set the transparency using lut.SetAlphaRange(0.0, 1.0). When I set a solid transparency using actor.GetProperty().SetOpacity() I get the transparency I would expect. Is there something else that I have to set on the mapper or on the vtkProperty of the actor to get this variation in opacity to work? (platform linux+nvidia, vtk version 4.x from the vtkNightlySrc.tar.gz on 2002-03-06) Thanks, Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From jbiddiscombe at skippingmouse.co.uk Fri Apr 19 18:14:53 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 19 Apr 2002 23:14:53 +0100 Subject: [vtkusers] vtkLookupTable Transpacency == background color? References: <3CC07E70.8010702@ualberta.ca> Message-ID: <001301c1e7ef$a2922010$0100a8c0@tigger> Its been a while since I played with this, but isn't the call to Build unnecessary. If you call Build it'll build it'll overwite the values from its own computation (based on HSV values). If you stuff data in yourself, then don't call it. JB ----- Original Message ----- From: "Chris Want" To: Sent: Friday, April 19, 2002 9:30 PM Subject: [vtkusers] vtkLookupTable Transpacency == background color? > Hi all, > > I would like to use a lookup table that is red and varies > in opacity. I am using code to generate the lookup table > that looks like this: > > lut = vtkLookupTable() > lut.SetNumberOfColors(256) > for i in range(256): > lut.SetTableValue(i, 1.0, 0.0, 0.0, float(i)/255.0) > lut.Build() > > When I use this lookup table the rendered object varies in color > between red and the background color of the renderer instead of > varying between red and transparent. I get similar results when I try to > set the transparency using lut.SetAlphaRange(0.0, 1.0). When I set a > solid transparency using actor.GetProperty().SetOpacity() I get the > transparency I would expect. > > Is there something else that I have to set on the mapper or on the > vtkProperty of the actor to get this variation in opacity to work? > > (platform linux+nvidia, > vtk version 4.x from the vtkNightlySrc.tar.gz on 2002-03-06) > > Thanks, > > Chris Want > Research Computing Support > Computing & Network Services > University of Alberta > Tel: 1-780-492-9418 > > _______________________________________________ > 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 cwant at ualberta.ca Fri Apr 19 18:40:32 2002 From: cwant at ualberta.ca (Chris Want) Date: Fri, 19 Apr 2002 16:40:32 -0600 Subject: [vtkusers] vtkLookupTable Transpacency == background color? References: <3CC07E70.8010702@ualberta.ca> <001301c1e7ef$a2922010$0100a8c0@tigger> Message-ID: <3CC09CE0.9060501@ualberta.ca> John Biddiscombe wrote: > Its been a while since I played with this, but isn't the call to > Build unnecessary. If you call Build it'll build it'll overwite the > values from its own computation (based on HSV values). If you stuff > data in yourself, then don't call it. > > JB Hi John, Thank you for your insight -- you are indeed correct: the call to lut.Build() was unnecessary. Unfortunately removing this call did not fix my problem -- the areas that are supposed to be transparent are still colored with the renderer's background color. Thanks again, Chris Want Research Computing Support Computing & Network Services University of Alberta Tel: 1-780-492-9418 From prabhu at aero.iitm.ernet.in Fri Apr 19 23:53:22 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Sat, 20 Apr 2002 09:23:22 +0530 Subject: [vtkusers] question about CFD data read by VTK In-Reply-To: <20020419201439.87202.qmail@web10707.mail.yahoo.com> References: <20020419201439.87202.qmail@web10707.mail.yahoo.com> Message-ID: <15552.58930.69220.278272@monster.linux.in> >>>>> "YR" == you ruobo writes: YR> 1.I want to input my CFD result data(grid data file+ flow YR> property data file,Both in PLOT3D format ) into VTK for YR> visualization. Does vtkPLOT3DReader directly recogonize the YR> data format? If not, what kind of preprocessing work should I AFAIK, the vtkPLOT3DReader works only with binary structured grid data. ASCII plot3d and unstructured grids do not work. The reader works fine otherwise. YR> do? 2. In the included example data files, are the postq.bin YR> and postxyz.bin standard Plot3d files that can be read YR> directly by CFD tool such as Tecplot? what is the contents of YR> postq.bin? Does it include quantities like YR> "rho,u,v,w,pressure" . I have no idea if it works with Tecplot but I guess there is no reason why not and yes, it does include rho, pressure etc. prabhu From jbiddiscombe at skippingmouse.co.uk Sat Apr 20 02:31:52 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Sat, 20 Apr 2002 07:31:52 +0100 Subject: [vtkusers] BUG : vtkLookupTable Transpacency == background color? References: <3CC07E70.8010702@ualberta.ca> <001301c1e7ef$a2922010$0100a8c0@tigger> <3CC09CE0.9060501@ualberta.ca> Message-ID: <000c01c1e835$212f4020$0100a8c0@tigger> > Unfortunately removing this call did not fix my problem > -- the areas that are supposed to be transparent are > still colored with the renderer's background color. Hmmm. I just tried it and got the same results. Transparent region actually looks like the background - and not transparent. I put some other objects behind to make sure, but they were obscured. I smell trouble.... I've inserted BUG in the title and maybe someone else will have a look (I can't right now....) JB From affable at hd2.dot.net.in Sat Apr 20 02:42:54 2002 From: affable at hd2.dot.net.in (cspl) Date: Sat, 20 Apr 2002 12:12:54 +0530 Subject: [vtkusers] Re:Volume Rendering of Raw data Message-ID: <004b01c1e837$07216940$01000001@macinfo.net> Dear Friends, I have converted my dicom files into raw files.I want to display volume as a image.I have written code as follows.I am not getting exact image.If anybody knows pls.give me advice. Dear Dave, I am a new user of vtk.I converted my dicom files into raw files.I want to display volume as a image in vtk.I have written code as folllows.But I am not getting exact figure.If u know pls.help me. vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren1 = vtkRenderWindowInteractor::New(); iren1->SetRenderWindow(renWin); vtkVolume16Reader *reader = vtkVolume16Reader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\"); reader->SetFilePattern("%s%d.raw"); reader->SetImageRange(1,109); reader->SetDataSpacing(0.57,0.57,2); reader->SetDataDimensions(256,256); vtkImageActor *Actor=vtkImageActor::New(); Actor->SetInput(reader->GetOutput()); renWin->SetSize(300,300); ren1->SetBackground(0.1, 0.2, 0.4); ren1->AddActor(Actor); iren1->Initialize(); renWin->Render(); SAVEIMAGE( renWin ); iren1->Start(); Is there any alter.pls.give me reply.Don't mind. Regards, Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From affable at hd2.dot.net.in Sat Apr 20 02:57:53 2002 From: affable at hd2.dot.net.in (cspl) Date: Sat, 20 Apr 2002 12:27:53 +0530 Subject: [vtkusers] Re:Volume Rendering of Raw data Message-ID: <008b01c1e838$b585ec30$01000001@macinfo.net> Dear Friends, I have converted my dicom files into raw files.I want to display volume as a image.I have written code as follows.I am not getting exact image.If anybody knows pls.give me advice. vtkRenderer *ren1 = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(ren1); vtkRenderWindowInteractor *iren1 = vtkRenderWindowInteractor::New(); iren1->SetRenderWindow(renWin); vtkVolume16Reader *reader = vtkVolume16Reader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\"); reader->SetFilePattern("%s%d.raw"); reader->SetImageRange(1,109); reader->SetDataSpacing(0.57,0.57,2); reader->SetDataDimensions(256,256); vtkImageActor *Actor=vtkImageActor::New(); Actor->SetInput(reader->GetOutput()); renWin->SetSize(300,300); ren1->SetBackground(0.1, 0.2, 0.4); ren1->AddActor(Actor); iren1->Initialize(); renWin->Render(); SAVEIMAGE( renWin ); iren1->Start(); Is there any alter.pls.give me reply.Don't mind. Regards, Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From ronald.steffen at freenet.de Sat Apr 20 06:08:42 2002 From: ronald.steffen at freenet.de (Ronald Steffen) Date: Sat, 20 Apr 2002 12:08:42 +0200 Subject: [vtkusers] MFC and vtkwin32OpenGLRenderWindow Message-ID: <3CC13E2A.7040102@freenet.de> Hello vtk users, I have a problem with my MFC application (VC 6.0) and vtkwin32OpenGLRenderWindow (VTK 4.0). At first I should say my application works fine. The only problem is that I get lot's of exceptions at program termination (First-chance exception in FLU3_2.exe (GDI32.DLL): 0xC0000005: Access Violation.). I reduced my program code and found that this only happens after I called the WindowInitialize() method like this: void CVTKView::OnInitialUpdate() { CView::OnInitialUpdate(); this->RenderWindow->SetWindowId(this->m_hWnd); this->RenderWindow->WindowInitialize(); } No other objects are created. The destructor of my CVTKView class of course calls the Delete() method. CVTKView::~CVTKView() { if (this->Interactor) { this->Interactor->Delete(); } if (this->Renderer) { this->Renderer->SetRenderWindow(NULL); } if (this->RenderWindow) { this->RenderWindow->Delete(); } if (this->Renderer) { this->Renderer->Delete(); } } Does anybody know something about this ? Thanks for your help, Ronald From you_ruobo at yahoo.com Sat Apr 20 06:50:09 2002 From: you_ruobo at yahoo.com (you ruobo) Date: Sat, 20 Apr 2002 03:50:09 -0700 (PDT) Subject: [vtkusers] problem in reading PLOT3D data file Message-ID: <20020420105009.57644.qmail@web10707.mail.yahoo.com> I still can not read my own plot3d grid file into VTK by using vtkPLOT3DReader. I believe my grid file strictly follows the unformatted plot3d format like the following: write(1) 1 write(1) imax,jmax,kmax write(1) (((x(j,k,i),i=1,imax),j=1,jmax),k=1,kmax), (((y(j,k,i),i=1,imax),j=1,jmax),k=1,kmax), (((z(j,k,i),i=1,imax),j=1,jmax),k=1,kmax) But the vtk reading stopped instantly and reflectted a totally different ijk dimensions from it's supposed to be. I don't know why. then, I tried to transform a vtk example case file from plot3d format to a readable file(ascii) by using above program with the only change from "write" to "read", but error also occured during the reading due to the format problem. Could you help me figure it out? Does there exist two types of Plot3d ? Thank you __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From dai_shuocn at 163.com Sat Apr 20 14:52:30 2002 From: dai_shuocn at 163.com (´÷Ëś) Date: Sun, 21 Apr 2002 02:52:30 +0800 (CST) Subject: [vtkusers] =?gb2312?B?YSBxdWVzdGlvbiBhYm91dCBpbnRlcmFjdGluZyBpbiBNRkMgYXBwbGljYXRpb24=?= Message-ID: <3CC1B8EE.00002C.04566@bj220.163.com> hi,everyone I wrote a dialog-based MFC application with VC6. I want to display and interact with a vtkPolyData object in a picture box (i could get the picture box's window by calling GetDlgItem()). My program displays quite well. But how can I interact with the polydata object by using vtkWin32RenderWindowInteractor? Any suggestions will be very appreciated. Daishuo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvchome at teleline.es Sun Apr 21 21:17:32 2002 From: jvchome at teleline.es (Jorge Vańó) Date: Sun, 21 Apr 2002 21:17:32 -0400 Subject: [vtkusers] vtk 4 and java Message-ID: <15555.25772.67705.182452@capri.jvchome.es> I've found the same working with this environment: Linux Mandrake 8.1 (kernel 2.4.8-34) on AMD Athlon K7/800 MHz Sun jdk 1.4.1 (but tried also with Sun jdk 1.2.2 and Black... VTK 4.0 CVS dated 20/4/2002 The problem is the same for any Java VTK App on Linux. Anybody has experience running VTK Java App's on Linux? Thanks Jorge >Which platform? Which jvm? Which vtk4.0 (cvs or release candidate)? >-Jeff > >Matthew O'Brien wrote: > >>I have built and installed vtk4, but when I try to test out the >>installation with Regression.java, I run into a problem. It compiles >>without any problem, but when I try to run it, I get the following >>error: >> >>An unexpected exception has been detected in native code outside the VM. >>Unexpected Signal : 11 occurred at PC=0x498e130f >>Function name=AddHashEntry__12vtkHashTablePvT1 >>Library=/usr/local/lib/vtk4/libvtkCommonJava.so >> >>Current Java thread: >> at vtk.vtkPolyData.VTKCastInit(Native Method) >> at vtk.vtkPolyDataSource.GetOutput_2(Native Method) >> at vtk.vtkPolyDataSource.GetOutput(vtkPolyDataSource.java:20) >> at Regression.main(Regression.java:19) >> >> >>Any suggestions are appreciated. >>Matt >> >>_______________________________________________ >>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 M.Hardikar at asu.edu Sun Apr 21 17:49:42 2002 From: M.Hardikar at asu.edu (M.Hardikar at asu.edu) Date: Sun, 21 Apr 2002 14:49:42 -0700 (MST) Subject: [vtkusers] Displaying entities as wire frame Message-ID: Dear users, I am new to VTK and I am trying to display STL CAD data in wire frame format. I am using the following code: The code is repetitive as I am trying to open 3 CAD files in STL format and then trying to display them in wire frame. --------------------------------------- CKneeLoadingDoc* pDoc = GetDocument(); ASSERT_VALID(pDoc); pDoc->GetProps()->RemoveAllItems(); vtkSTLReader *pSTL = vtkSTLReader::New(); vtkSTLReader *pSTL1 = vtkSTLReader::New(); vtkSTLReader* pSTL2 = vtkSTLReader::New(); vtkPolyDataMapper *pMapper = vtkPolyDataMapper::New(); vtkPolyDataMapper *pMapper1 = vtkPolyDataMapper::New(); vtkPolyDataMapper *pMapper2 = vtkPolyDataMapper::New(); pSTL->SetFileName(pDoc->get_char_femoral_file_name()); pSTL1->SetFileName(pDoc->get_char_tibial_file_name()); pSTL2->SetFileName(pDoc->get_char_poly_file_name()); pMapper->SetInput(pSTL->GetOutput()); pMapper1->SetInput(pSTL1->GetOutput()); pMapper2->SetInput(pSTL2->GetOutput()); vtkPolyData *pPolyData = vtkPolyData::New(); vtkPolyData *pPolyData1 = vtkPolyData::New(); vtkPolyData *pPolyData2 = vtkPolyData::New(); pPolyData = pMapper->GetInput(); pPolyData1 = pMapper1->GetInput(); pPolyData2 = pMapper2->GetInput(); vtkExtractEdges* pEdges = vtkExtractEdges::New(); vtkExtractEdges* pEdges1 = vtkExtractEdges::New(); vtkExtractEdges* pEdges2 = vtkExtractEdges::New(); pEdges->SetInput( pPolyData ); pEdges1->SetInput( pPolyData1 ); pEdges2->SetInput( pPolyData2 ); vtkTubeFilter* pTubes = vtkTubeFilter::New(); pTubes->SetInput( pEdges->GetOutput() ); pTubes->SetRadius( 0.01 ); // or some similarly smallish number pTubes->SetNumberOfSides(3); vtkTubeFilter* pTubes1 = vtkTubeFilter::New(); pTubes1->SetInput( pEdges1->GetOutput() ); pTubes1->SetRadius( 0.01 ); // or some similarly smallish number pTubes1->SetNumberOfSides(3); vtkTubeFilter* pTubes2 = vtkTubeFilter::New(); pTubes->SetInput( pEdges2->GetOutput() ); pTubes2->SetRadius( 0.01 ); // or some similarly smallish number pTubes2->SetNumberOfSides(3); vtkPolyDataMapper* pEdgeMapper = vtkPolyDataMapper::New(); pEdgeMapper->SetInput( pTubes->GetOutput() ); vtkPolyDataMapper* pEdgeMapper1 = vtkPolyDataMapper::New(); pEdgeMapper1->SetInput( pTubes1->GetOutput() ); vtkPolyDataMapper* pEdgeMapper2 = vtkPolyDataMapper::New(); pEdgeMapper2->SetInput( pTubes2->GetOutput() ); vtkActor* pEdgeActor = vtkActor::New(); pEdgeActor->SetMapper( pEdgeMapper ); pEdgeActor->GetProperty()->SetColor( 5,0,0 ); pEdgeActor->SetMapper(pEdgeMapper); pDoc->Props->AddItem(pEdgeActor); vtkActor* pEdgeActor1 = vtkActor::New(); pEdgeActor1->SetMapper( pEdgeMapper1 ); pEdgeActor1->GetProperty()->SetColor( 0,5,0 ); pEdgeActor1->SetMapper(pEdgeMapper1); pDoc->Props->AddItem(pEdgeActor1); vtkActor* pEdgeActor2 = vtkActor::New(); pEdgeActor2->SetMapper( pEdgeMapper2 ); pEdgeActor2->GetProperty()->SetColor( 0,0,5 ); pEdgeActor2->SetMapper(pEdgeMapper2); pDoc->Props->AddItem(pEdgeActor2); pDoc->UpdateAllViews(NULL); --------------------------------- Again ,the code is repetitive as I am trying to read in 3 CAD files which are in STL format and then trying to display them. Two of the files are displayed correctly, but for the third one I get the following error message after I try to call UpdateAllViews(): --------------- ERROR: In C:\martink\vtk40\VTK\Common\vtkSource.cxx, line 414 vtkTubeFilter (0x00E497A0): At least 1 inputs are required but only 0 are specified ----------------------- Any help on this issue will be valuable. Regards, Mahesh Hardikar Arizona State Univ. From dnasoc at direcpc.com Sun Apr 21 22:07:00 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Sun, 21 Apr 2002 19:07:00 -0700 Subject: [vtkusers] tkInt.h syntax error - win2k, vtk40 installs 2 copies of header Message-ID: <3CC37044.BE2AE812@direcpc.com> My environment is windows 2000 professional and I am using visual c++ 6.0 I too had syntax errors when building vtk with a tcl binding: syntax error tkInt.h (867) syntax error missing ; before tkBezierSmoothMethod A search for tkInt.h shows the header was installed in two directories: ..\VTK\Rendering\tkInternals and ..\VTK\Rendering\tkInternals\tk83 The header in tk83 is ver 1.1 and the one in Internals is 1.4. Replacing the 1.1 header with 1.4 solved my problem, and the build went ok. Did I create another one? Is there some error in the cmake include paths in cache.txt? Is there a reason for the two different headers? Randy Dawson From M.Hardikar at asu.edu Sun Apr 21 21:55:20 2002 From: M.Hardikar at asu.edu (M.Hardikar at asu.edu) Date: Sun, 21 Apr 2002 18:55:20 -0700 (MST) Subject: [vtkusers] help on entity modification/transformation Message-ID: Dear Users, I am new to VTK environment and I would like your help on the following operation that I want to carry out. In my code, I read in 3 different CAD files. Once they are read in, I want to selectively make changes to any one of the 3 files. I want to know if I can traverse the vtkPropCollection and one by one retrieve each of the files that I read in for modification? If it is possible, could anybody share the code with me? Also I would like to have some information about carrying out transformations on entities selectively. Any help would be valuable. Regards, Mahesh. Arizona State University. From melvin.hadasht at free.fr Sun Apr 21 21:49:19 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Mon, 22 Apr 2002 03:49:19 +0200 Subject: [vtkusers] how to efficiently generate surf between 2 curves Message-ID: <20020422034919.32658d03.melvin.hadasht@free.fr> Hi, I need to fill between two curves (actually outlines of a vector character). I did not manage to find a solution that always works correctly. The two contours are on the same plane. For example, for the character 'e', I created a vtkCellArray containing two cells: one for the outer contour of 'e' and one for the inner contour. (the outer cell has the opposite orientation with respect to the inner one). To fill between them I used the Delaunay2D triangulation. That worked for some letters but for some others (like the 'e'), the triangulation is not done propely: the triangles get outside of the outlines. It seems related to the geometry of the outlines. Does anybody has a robust solution for this pb? I hope I described correctly the problem, English is not my first language. Thanks. PS: I need to use greek/mathematical vector texts to have a vector PS: output (postscript, using gl2ps), that's why I can't just use PS: vtkVectorText or vtkTextSource. I'm using freetype to get the PS: outlines from Type1 & TrueType fonts. If I manage to solve this PS: problem, I'll post the solution and the source for a vector Text PS: renderer for vtk. Any help/comment is greatly welcomed. Thanks. -- Melvin Hadasht From dnasoc at direcpc.com Mon Apr 22 03:38:34 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Mon, 22 Apr 2002 00:38:34 -0700 Subject: [vtkusers] am I missing something, everything is dificult building under windows Message-ID: <3CC3BDFA.E674D748@direcpc.com> There is no technical information here, it's a rant, so ignore unless you want to commiserate. why are there no native Visual c++ build files for the windows environment? Cmake with the build examples switch on does not make the c examples. Why must we learn another make-maker, I have suffered through Imake, and other various swiss army knife attempts at creating make files and building code for all platforms. Some of them worked pretty well, like the rayshade script, and it gave me tons of scrolling messages as it figured out where my libraries where, what OS I was on, and if certain commands executed properly. I have read the FAQ, and the mail list. I see that many suffer as I do, trying to build cone.cxx and must specifically specify the build environment, compiler switches, include paths and libraries, all through the horrible MS gui. Now add MS foundation classes to the situation, and I see the mail list messages double. Of course, its a path here or there, a missing switch, a download, patch or two, shared libs or not, but it should not be this way. We should have a pre-built, tested vtk native microsoft project definition just like any other visual c++ project. I know, I'm not worthy. When I figure out all the arcane MS stuff, I will share. BTW, I am sure the builds go flawlessly on gcc, and real computers. Unfortunately, I have to work with the most popular platform. Randy Dawson PS I bought the book 2 years ago, now its missing. Whoever grabbed it from my office, give it back. From amati at ira.cnr.it Mon Apr 22 06:01:03 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Mon, 22 Apr 2002 12:01:03 +0200 (CEST) Subject: [vtkusers] Camera & NearFar Planes Message-ID: Hi everybody, I have the following question: I have created a Camera and I have setted up my clipping range from 0.01 to 1000.0 with SetClippingRange. When I move my camera with dolly operation, is my frustum moving with my camera or not? What is the beahviour of my near and far clipping plane? Thank you for the help. Have a nice day. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From husthj at yahoo.com Mon Apr 22 05:18:37 2002 From: husthj at yahoo.com (Denny) Date: Mon, 22 Apr 2002 02:18:37 -0700 (PDT) Subject: [vtkusers] Memory leak Message-ID: <20020422091837.74113.qmail@web20204.mail.yahoo.com> hi vtk uesers; Did anybody complie the VTK\Examples\GUI\Win32\SampleMFC project in VC++6.0 and run the executive file in debug mode? It'll end with a number of memory leaks. I am not sure the exact reason of it. I guess if there is something wrong with the sample code or it is the fault of vtk. If someone is intersting in this question, give me a hint,please. Great thanks! __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From jeff at cdnorthamerica.com Mon Apr 22 07:05:58 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 22 Apr 2002 07:05:58 -0400 Subject: [vtkusers] vtk Java Socket References: <3CBCA2D1.21F1BA22@indy.rr.com> Message-ID: <3CC3EE96.2020806@cdnorthamerica.com> Jimmy, Try vtkSocketCommunicator. -Jeff Jimmy Luu wrote: >Hi i am trying to send vtk objects over socket in Java but was unsuccessful since Java requires >the class object to be Serializable to read and write through >ObjectInputStream/ObjectOutputStream. >Have anyone done anything similar to this in Java? any suggestions are welcome. >Jimmy > > >_______________________________________________ >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 Mon Apr 22 07:08:36 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 22 Apr 2002 07:08:36 -0400 Subject: [vtkusers] Question about Vtk, Java, Off Screen rendering References: <20020416194407.18556.qmail@web13405.mail.yahoo.com> Message-ID: <3CC3EF34.4000500@cdnorthamerica.com> Hi Kallur, The latest vtkPanel.java supports hardcopy using vtkWindowToImageFilter. -Jeff Satyendra Kallur wrote: >MIME-Version: 1.0 >Content-Type: text/plain; charset=us-ascii > >Hi all, > I have an application that is running remotely. >This application is in java. I need the image >generated by this java application to be saved as a >jpg or bmp, and send the image to the front end >application. But i didn't find any stuff that supports >Off screen rendering in java. or rather vtkPanel does >not support off screen rendering. It would be very >helpful if anybody can suggest how i go about this >process. > >regards, >Kallur > > >__________________________________________________ >Do You Yahoo!? >Yahoo! Tax Center - online filing with TurboTax >http://taxes.yahoo.com/ >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > From jeff at cdnorthamerica.com Mon Apr 22 07:15:47 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 22 Apr 2002 07:15:47 -0400 Subject: [vtkusers] vtkPanel and JAVA 1.4 References: Message-ID: <3CC3F0E3.80705@cdnorthamerica.com> Hi All, I recently packaged up vtkPanel.java. You can put the source on the toplevel in your project (vtk/vtkPanel.java). Please let me know if there are any problems. -Jeff JL wrote: >Hi Jason, > >I am enclosing a modified version of vtkPanel (and the >corresponding) native routines. These two files are >taken from VTK 4.0. I made some minor modifications, >which include making vtkPanel part of the vtk package. > >Although, I compiled with JDK 1.3., it should work with >JDK 1.4 if the only requirements are the ones you >mentioned in your previous mail. > >I ran a small test program against vtk3.2 on windows and >it works. However, I'm not sure whether it would work >on other platforms. I haven't played with VTK 4.0, >mainly 'cause I haven't taken the time to see how CMake >works. That said, it means I have not built this version >of vtkPanel against VTK 4.0. It was confusing why >vtkJavaAwt was a header file (.h) and not a C++ file >(.cxx) and where it was included from, etc. > >I think changes are required in the configuration in >order to build this version of vtkPanel with vtk 4.0. >Anyway, I build a separate vtkPanel library that >contains only the native methods for vtkPanel. > >You are welcome to try it and maybe someone might >volunteer to test the changes on different platforms >and integrate them in the main source tree. > >So, here's how I go around building the support for >vtkPanel. Essentially, I build it separately from vtk. > >I build a separate shared library for vtkPanel >(i.e. vtkPanel.dll or libvtkPanel.so) from vtkJavaAwt.cxx. >I've included a pseudo-makefile, that probably won't work >if used directly, but illustrates what it is required to >build the vktPanel library. > >vtkPanel.dll is linked against: > - vtkJava.lib > - vtkCommon.lib > - vtkGraphics0.lib > - $(JDKDIR)/lib/jawt.lib where JDKDIR is the topmost > directory of the JDK installation. > >And vtkPanel is compiled as usual, "linking" against vtk.jar. > >javac -classpath directory_where_your_vtk_jar_is/vtk.jar:. \ > vtk/vtkPanel.java > >And to execute, make sure that the appropriate CLASSPATH is set >and that the libraries can be found by the dynamic loader, that >is the path to the directory where your libraries are is in the >PATH variable for Windows or in LD_LIBRARY_PATH for Unix. > >By now, I have confused everyone. I apologize I cannot make >things easier/clearer, but I'm sure there are many people out >there that can do a better job making the build process easier >and integrating the changes into VTK. > >I hope this helps, > >-- Julio > >------------ pseudo-makefile begin ------------ > >ALL : vtkPanel.dll > >JDKDIR = your_jdk_dir_here >VTKSRCDIR = your_vtk_dir_here >VTKBINDIR = your_vtk_build_dir_here >PLATFORM = win32 > >INCLUDES = -I "$(VTKSRCDIR)/common" -I "$(VTKSRCDIR)/graphics" \ > -I "$(JDKDIR)/include" -I "$(JDKDIR)/include/$(PLATFORM)" \ > -I "$(VTKBINDIR)" > >CXX_FLAGS = -nologo -G6 -MT -W3 -GX- -Od -DWIN32 -DDEBUG -D_WINDOWS -D_MBCS >\ > -D_USRDLL -FD -c > >LINK32 = link.exe >LIBS = vtkJava.lib vtkCommon.lib vtkGraphics0.lib >$(JDKDIR)/lib/jawt.lib >LINK32_FLAGS = -nologo -dll -incremental:no -machine:I386 -out:vtkPanel.dll >\ > = -implib:vtkPanel.lib -libpath:$(VTKBINDIR)/lib > >vtkPanel.dll: $(LIBS) vtkJavaAwt.obj > $(LINK32) @<< > $(LINK32_FLAGS) $(LIBS) vtkJavaAwt.obj ><< > >vtkJavaAwt.obj: vtkJavaAwt.cxx # And other dependencies > $(CPP) $(CPP_PROJ) $(SOURCE) > >------------ pseudo-makefile end ------------ > > > > >>-----Original Message----- >>From: vtkusers-admin at public.kitware.com >>[mailto:vtkusers-admin at public.kitware.com]On Behalf Of >>jason_donmoyer at chiinc.com >>Sent: Tuesday, April 16, 2002 9:46 AM >>To: vtkusers at public.kitware.com >>Subject: [vtkusers] vtkPanel and JAVA 1.4 >> >> >>The class vtkPanel distributed with the vtk examples will not >>compile using >>J2SDK 1.4. The following excerpt from the release notes explains why: >> >>------ >> >>The compiler now rejects import statements that import a type from the >>unnamed namespace. Previous versions of the compiler would accept such >>import declarations, even though they were arguably not allowed by the >>language (because the type name appearing in the import clause is not in >>scope). The specification is being clarified to state clearly that you >>cannot have a simple name in an import statement, nor can you import from >>the unnamed namespace. >>To summarize, the syntax >> >>import SimpleName; >> >>is no longer legal. Nor is the syntax >>import ClassInUnnamedNamespace.Nested; >> >>which would import a nested class from the unnamed namespace. To fix such >>problems in your code, move all of the classes from the unnamed namespace >>into a named namespace. >> >>----------- >> >> >>You can temporarily get around this problem by compiling vtkPanel with an >>older version of the JDK while continuing to use J2SDK 1.4 for the rest of >>your classes. Steps should be taken to fix this problem so that >>it complies >>with the latest version of the JDK. This is important so that >>users of vtk >>can take advantage of the performance benefits of 1.4 without resorting to >>recreating the JNI calls. >> >>Thank you, >> >>Jason Donmoyer >>_______________________________________________ >>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 >> >> >>------------------------------------------------------------------------ >> >>/* vtkPanel.java >> * $Id$ >> */ >>package vtk; >> >>import java.awt.*; >>import java.awt.event.*; >>import java.lang.Math; >>import sun.awt.*; >>import java.beans.*; >> >>import vtk.vtkActor; >>import vtk.vtkActorCollection; >>import vtk.vtkCamera; >>import vtk.vtkLight; >>import vtk.vtkPicker; >>import vtk.vtkRenderer; >>import vtk.vtkRenderWindow; >> >>public class vtkPanel >> extends Canvas >> implements MouseListener, MouseMotionListener, KeyListener >>{ >> protected vtkRenderWindow rw = new vtkRenderWindow(); >> protected vtkRenderer ren = new vtkRenderer(); >> protected vtkLight light = new vtkLight(); >> protected vtkCamera cam; >> protected int lastX; >> protected int lastY; >> protected int windowset = 0; >> protected int InteractionMode = 1; >> protected boolean lightFollowsCamera = true; >> protected boolean rendering = false; >> >> static { >> System.err.println( "loading vtkPanel native library" ); >> System.loadLibrary( "vtkPanel" ); >> } >> >> public vtkPanel() >> { >> this.rw.AddRenderer(ren); >> this.addMouseListener(this); >> this.addMouseMotionListener(this); >> this.addKeyListener(this); >> } >> >> public vtkRenderer GetRenderer() >> { >> return ren; >> } >> >> public vtkRenderWindow GetRenderWindow() >> { >> return rw; >> } >> >> private native void RenderCreate(vtkRenderWindow rw); >> private native void SetSizeInternal(vtkRenderWindow rw,int width,int height); >> private native void RenderInternal(vtkRenderWindow rw); >> >> public void setSize(int width, int height) >> { >>// System.err.println( "vtkPanel.setSize(x=" + x + ", y=" + y + ")" ); >> super.setSize(width, height); >> SetSizeInternal(this.rw, width, height); >> } >> >> public void setBounds(int x, int y, int width, int height) >> { >>// System.err.println( "vtkPanel.setBounds(x=" + x + ", y=" + y + ", width=" >>// + width + ", height=" + height + ")" ); >> super.setBounds(x, y, width, height); >> >> /* @todo: check whether the native window has been created already before >> * calling SetSizeInternal, to avoid SetSizeInternal from failing when the >> * native window has not been created >> */ >> this.SetSizeInternal(this.rw, width, height); >> } >> >> public void addNotify() >> { >> super.addNotify(); >>// System.err.println("vtkPanel.addNotify()"); >> this.RenderCreate(this.rw); >> } >> >> public synchronized void Render() >> { >> if (!this.rendering) { >> this.rendering = true; >> >> if (this.rw != null && this.ren.VisibleActorCount() != 0) { >> if (this.windowset == 0) { >> // set the window id and the active camera >> this.RenderCreate(this.rw); >> this.cam = this.ren.GetActiveCamera(); >> this.ren.AddLight(this.light); >> this.light.SetPosition(this.cam.GetPosition()); >> this.light.SetFocalPoint(this.cam.GetFocalPoint()); >> this.windowset = 1; >> } >> this.RenderInternal(this.rw); >> } >> >> this.rendering = false; >> } >> } >> >> public void update(Graphics g) >> { >> /* avoid the background being cleared by the default implementation */ >> this.paint(g); >> } >> >> public void paint(Graphics g) >> { >> this.Render(); >> } >> >> public void LightFollowCameraOn() >> { >> this.lightFollowsCamera = true; >> } >> >> public void LightFollowCameraOff() >> { >> this.lightFollowsCamera = false; >> } >> >> public void InteractionModeRotate() >> { >> this.InteractionMode = 1; >> } >> >> public void InteractionModeTranslate() >> { >> this.InteractionMode = 2; >> } >> >> public void InteractionModeZoom() >> { >> this.InteractionMode = 3; >> } >> >> public void UpdateLight() >> { >> light.SetPosition(cam.GetPosition()); >> light.SetFocalPoint(cam.GetFocalPoint()); >> } >> >> public void mouseClicked(MouseEvent e) {} >> >> public void mousePressed(MouseEvent e) >> { >> if (ren.VisibleActorCount() == 0) return; >> rw.SetDesiredUpdateRate(5.0); >> lastX = e.getX(); >> lastY = e.getY(); >> >> if ((e.getModifiers() == InputEvent.BUTTON2_MASK) >> || e.getModifiers() == (InputEvent.BUTTON1_MASK|InputEvent.SHIFT_MASK)) >> { >> InteractionModeTranslate(); >> } >> else if (e.getModifiers()==InputEvent.BUTTON3_MASK) >> { >> InteractionModeZoom(); >> } >> else >> { >> InteractionModeRotate(); >> } >> } >> >> public void mouseReleased(MouseEvent e) >> { >> rw.SetDesiredUpdateRate(0.01); >> } >> >> public void mouseEntered(MouseEvent e) >> { >> this.requestFocus(); >> } >> >> public void mouseExited(MouseEvent e) {} >> >> public void mouseMoved(MouseEvent e) >> { >> lastX = e.getX(); >> lastY = e.getY(); >> } >> >> >> public void mouseDragged(MouseEvent e) >> { >> if (ren.VisibleActorCount() == 0) >> return; >> >> int x = e.getX(); >> int y = e.getY(); >> >> // rotate >> if (this.InteractionMode == 1) >> { >> cam.Azimuth(lastX - x); >> cam.Elevation(y - lastY); >> cam.OrthogonalizeViewUp(); >> >> // ren.ResetCameraClippingRange(); >> if (this.lightFollowsCamera) >> { >> light.SetPosition(cam.GetPosition()); >> light.SetFocalPoint(cam.GetFocalPoint()); >> } >> } >> >> // translate >> if (this.InteractionMode == 2) >> { >> double FPoint[]; >> double PPoint[]; >> double APoint[] = new double[3]; >> double RPoint[]; >> double focalDepth; >> >> // get the current focal point and position >> FPoint = cam.GetFocalPoint(); >> PPoint = cam.GetPosition(); >> >> // calculate the focal depth since we'll be using it a lot >> ren.SetWorldPoint(FPoint[0],FPoint[1],FPoint[2],1.0); >> ren.WorldToDisplay(); >> focalDepth = ren.GetDisplayPoint()[2]; >> >> APoint[0] = rw.GetSize()[0]/2.0 + (x - lastX); >> APoint[1] = rw.GetSize()[1]/2.0 - (y - lastY); >> APoint[2] = focalDepth; >> ren.SetDisplayPoint(APoint); >> ren.DisplayToWorld(); >> RPoint = ren.GetWorldPoint(); >> if (RPoint[3] != 0.0) >> { >> RPoint[0] = RPoint[0]/RPoint[3]; >> RPoint[1] = RPoint[1]/RPoint[3]; >> RPoint[2] = RPoint[2]/RPoint[3]; >> } >> >> /* >> * Compute a translation vector, moving everything 1/2 >> * the distance to the cursor. (Arbitrary scale factor) >> */ >> cam.SetFocalPoint( >> (FPoint[0]-RPoint[0])/2.0 + FPoint[0], >> (FPoint[1]-RPoint[1])/2.0 + FPoint[1], >> (FPoint[2]-RPoint[2])/2.0 + FPoint[2]); >> cam.SetPosition( >> (FPoint[0]-RPoint[0])/2.0 + PPoint[0], >> (FPoint[1]-RPoint[1])/2.0 + PPoint[1], >> (FPoint[2]-RPoint[2])/2.0 + PPoint[2]); >> // ren.ResetCameraClippingRange(); >> } >> // zoom >> if (this.InteractionMode == 3) >> { >> double zoomFactor; >> double clippingRange[]; >> >> zoomFactor = Math.pow(1.02,(y - lastY)); >> >> if (cam.GetParallelProjection() == 1) >> { >> cam.SetParallelScale(cam.GetParallelScale()/zoomFactor); >> } >> else >> { >> cam.Dolly(zoomFactor); >> // ren.ResetCameraClippingRange(); >> } >> } >> >> lastX = x; >> lastY = y; >> this.repaint(); >> } >> >> public void keyTyped(KeyEvent e) {} >> >> public void keyPressed(KeyEvent e) >> { >> if (ren.VisibleActorCount() == 0) >> return; >> >> char keyChar = e.getKeyChar(); >> >> if ('r' == keyChar) >> { >> ren.ResetCamera(); >> this.repaint(); >> } >> >> if ('u' == keyChar) >> { >> vtkPicker picker = new vtkPicker(); >> picker.Pick(lastX,700 - lastY,0.0,ren); >> >> } >> >> if ('w' == keyChar) >> { >> vtkActorCollection ac; >> vtkActor anActor; >> vtkActor aPart; >> int i, j; >> >> ac = ren.GetActors(); >> ac.InitTraversal(); >> >> for (i = 0; i < ac.GetNumberOfItems(); i++) >> { >> anActor = ac.GetNextActor(); >> anActor.InitPartTraversal(); >> for (j = 0; j < anActor.GetNumberOfParts(); j++) >> { >> aPart = anActor.GetNextPart(); >> aPart.GetProperty().SetRepresentationToWireframe(); >> } >> } >> /* schedule a paint in the 'refresh' thread rather than calling Render >> * here */ >> this.repaint(); >> } >> >> if ('s' == keyChar) >> { >> vtkActorCollection ac; >> vtkActor anActor; >> vtkActor aPart; >> int i, j; >> >> ac = ren.GetActors(); >> ac.InitTraversal(); >> for (i = 0; i < ac.GetNumberOfItems(); i++) >> { >> anActor = ac.GetNextActor(); >> anActor.InitPartTraversal(); >> for (j = 0; j < anActor.GetNumberOfParts(); j++) >> { >> aPart = anActor.GetNextPart(); >> aPart.GetProperty().SetRepresentationToSurface(); >> } >> } >> this.repaint(); >> } >> } >> >> public void keyReleased(KeyEvent e) {} >> >> public void addPropertyChangeListener(PropertyChangeListener l) >> { >> changes.addPropertyChangeListener(l); >> } >> >> public void removePropertyChangeListener(PropertyChangeListener l) >> { >> changes.removePropertyChangeListener(l); >> } >> >> protected PropertyChangeSupport changes = new PropertyChangeSupport(this); >>} >> From c.p.botha at its.tudelft.nl Mon Apr 22 08:10:00 2002 From: c.p.botha at its.tudelft.nl (Charl P. Botha) Date: Mon, 22 Apr 2002 14:10:00 +0200 Subject: [vtkusers] ANNOUNCE: vtkFlRenderWindowInteractor 0.6 released Message-ID: <20020422121000.GA1051@dutidad.twi.tudelft.nl> Dear VTK and ITK users and developers, vtkFlRenderWindowInteractor 0.6 has been released. This version has been updated to work with the new event handling structures in VTK 4.1 CVS. It still works with VTK 3.2 and 4.0 as well. vtkFlRenderWindowInteractor is a very simple class which helps one develop applications using VTK and FLTK. It has been tested on Linux, Irix, Solaris and Windows and it does support picking. More information is available at: http://cpbotha.net/vtkFlRenderWindowInteractor.html -- charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/ From billlist at nycap.rr.com Mon Apr 22 08:31:54 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 22 Apr 2002 08:31:54 -0400 Subject: [vtkusers] am I missing something, everything is dificult building under windows In-Reply-To: <3CC3BDFA.E674D748@direcpc.com> Message-ID: <5.0.2.1.0.20020422075014.04256c10@pop.nycap.rr.com> At 12:38 AM 4/22/2002 -0700, Randy Dawson wrote: >There is no technical information here, it's a rant, so ignore unless >you want to commiserate. Some technical information would be helpful in making VTK easier to use. >why are there no native Visual c++ build files for the windows >environment? They are much to hard to maintain. Also which one? Visual studio 6,7 or nmake? >Cmake with the build examples switch on does not make the c examples. The examples are stand alone, and are there to show an example of how you would write programs that use VTK, but are not part of VTK. If testing is on, there are several programs built by default including Mace which is very simple. >I have read the FAQ, and the mail list. I see that many suffer as I do, >trying to build cone.cxx and must specifically specify the build >environment, compiler switches, include paths and libraries, all through >the horrible MS gui. Now add MS foundation classes to the situation, >and I see the mail list messages double. I am a bit confused here, you say that you want native Visual C++ build files, but now you are complaining that you have to use the MS GUI. With CMake, you can use either the command line nmake, or the visual studio IDE. You should not have to specify a single path in the MS GUI IF you are using cmake. >Of course, its a path here or there, a missing switch, a download, patch >or two, shared libs or not, but it should not be this way. We should >have a pre-built, tested vtk native microsoft project definition just >like any other visual c++ project. There are pre-built VTK libraries, and cmake can generate projects that use them. Do you have a specific problem? IF you had trouble, perhaps it is a bug that can be fixed. -Bill From melvin.hadasht at free.fr Mon Apr 22 08:33:36 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Mon, 22 Apr 2002 14:33:36 +0200 Subject: [vtkusers] how to efficiently generate surf between 2 curves In-Reply-To: <20020422034919.32658d03.melvin.hadasht@free.fr> References: <20020422034919.32658d03.melvin.hadasht@free.fr> Message-ID: <20020422143336.04ecb25f.melvin.hadasht@free.fr> [Sorry to answer to myself], on Mon, 22 Apr 2002 03:49:19 +0200 Melvin Hadasht wrote: > I need to fill between two curves (actually outlines of a vector > character). I did not manage to find a solution that always works > correctly. The two contours are on the same plane. > > For example, for the character 'e', I created a vtkCellArray > containing two cells: one for the outer contour of 'e' and one for > the inner contour. (the outer cell has the opposite orientation with > respect to the inner one). To fill between them I used the > Delaunay2D triangulation. That worked for some letters but for some > others (like the 'e'), the triangulation is not done propely: the > triangles get outside of the outlines. It seems related to the > geometry of the outlines. Does anybody has a robust solution for this > pb? I found the pb: the middle horizontal bar of 'e' was represented as a single long line, which created high aspect ratio triangles. The solution was to break lines into smaller segments. Zbohem (Croatian: Goodbye) -- Melvin Hadasht From fermion at mac.com Mon Apr 22 09:16:01 2002 From: fermion at mac.com (Mike Robertson) Date: Mon, 22 Apr 2002 09:16:01 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: <5.0.2.1.0.20020417082432.040c6c78@pop.nycap.rr.com> Message-ID: Hi. Everything is fine now, as long as I don't want to wrap the libraries into TCL. When I tell it to do that (the ultimate goal is python, but there's some bizarre file that the TCL wrapping creates that is necessary for the python wrapping to function...), it returns this error without fail: make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 I'm not sure what's going on here... I'm looking through the 41MB mbox now, but if anyone has any idea how I can fix this problem, I'd appreciate it (or, for that matter, any suggestions of simply getting around the TCL wrap to create that file... vtkTkRenderWidgetPython). Thanks. mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com ". . . The Egyptians were obsessed with salt. They salted everything, including their relatives. . ." - NPR, 2/26/02 > From: "William A. Hoffman" > Date: Wed, 17 Apr 2002 08:25:31 -0400 > To: Mike Robertson , > Subject: Re: [vtkusers] More on mac os x installation > > My mistake, you do not need advanced values, but you do need: > OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > > (I will fix that now.) > > -Bill > > > At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >> I would suggest cleaning your build directory (rm -rf *). Then re-run >> cmake -i and do not ask to see the advanced values. >> All of the defaults should work on Mac/OSX. >> >> This is the libtool problem: >> >> Variable Name: CMAKE_DL_LIBS >> Description: Dynamic link library to link in. >> Current Value: >> New Value (Enter to keep current value): /usr/share/libtool/ >> >> This is asking for the name of a library to link in. You have given >> it the name of an executable. >> >> >> When it asked: >> Would you like to see advanced options? [No]: >> >> Did you say yes? If so, why? Did you have trouble with no advanced >> options? >> If you said, no, what version of cmake are you using? >> >> Thanks. >> >> -Bill >> >> >> >> At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>> Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >>> to get VTK running on my machine within or outside of this X-11 environment >>> with the intent of running MayaVi. Despite its intention to simplify, this >>> entire cmake process seems to make things far more cryptic than they would >>> otherwise be. Here's my confusion (and, naturally, I've tried this several >>> times before dragging myself to this listserv). >>> >>> After a highly verbose make process, the program concludes with this: >>> >>> /usr/bin/libtool: internal link edit command failed >>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>> make[2]: *** [default_target] Error 2 >>> make[1]: *** [default_target_Rendering] Error 2 >>> make: *** [default_target] Error 2 >>> [localhost:local/vtk/VTK] root# hmm... >>> >>> Here are the questions that I'm not so sure about (and that are probably >>> relevant to this `target' issue... (?)) >>> >>> Thanks for any help anyone can provide me with this. (the libtool error >>> resulted because I have no idea what it's asking for in the dynamic link >>> library question...) >>> >>> mike >>> >>> Variable Name: CMAKE_DL_LIBS >>> Description: Dynamic link library to link in. >>> Current Value: >>> New Value (Enter to keep current value): /usr/share/libtool/ >> >> >> >> >> >>> Variable Name: CMAKE_HP_PTHREADS >>> Description: Use HP pthreads. >>> Current Value: 0 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_INSTALL_PREFIX >>> Description: Install path prefix, prepended onto install directories. >>> Current Value: /usr/local >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_LIB_EXT >>> Description: Library extension used by this machine. >>> Current Value: >>> New Value (Enter to keep current value): .lib >>> >>> Variable Name: CMAKE_MAKE_PROGRAM >>> Description: Path to a program. >>> Current Value: /usr/bin/make >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>> Description: Flag used by CXX to build a shared library. >>> Current Value: -bundle -flat_namespace -undefined suppress >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>> Description: Flags used to link a shared library. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_MODULE_SUFFIX >>> Description: Module library suffix. >>> Current Value: .so >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_RANLIB >>> Description: Library randomizer program used on archive libraries. >>> Current Value: ranlib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>> Description: Flag used by CXX to build a shared library. >>> Current Value: -dynamiclib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_CFLAGS >>> Description: Flag used for building shared library objects. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_LD_LIBS >>> Description: Libraries used by LD for shared libraries. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>> Description: Flags used to link a shared library. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>> Description: Flag used to specify run-time search paths. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>> Description: If null, each runtime path is a separate option. Otherwise, >>> they are all joined, separated by this. >>> Current Value: : >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SHLIB_SUFFIX >>> Description: Shared library suffix. >>> Current Value: .dylib >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_SKIP_RPATH >>> Description: If set, runtime paths are not added when using shared >>> libraries. >>> Current Value: NO >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_TEMPLATE_FLAGS >>> Description: CXX template flags used by compiler. >>> Current Value: >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_THREAD_LIBS >>> Description: Thread library used. >>> Current Value: -lpthread >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_USE_PTHREADS >>> Description: Use the pthreads library. >>> Current Value: 1 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_USE_SPROC >>> Description: Use sproc libs. >>> Current Value: 0 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_WORDS_BIGENDIAN >>> Description: is this system big endian >>> Current Value: 1 >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_X_CFLAGS >>> Description: X11 extra flags. >>> Current Value: -I/usr/X11R6/include >>> New Value (Enter to keep current value): >>> >>> Variable Name: CMAKE_X_LIBS >>> Description: Libraries and options used in X11 programs. >>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>> New Value (Enter to keep current value): >>> >>> Variable Name: DART_ROOT >>> Description: If you have Dart installed, where is it located? >>> Current Value: NOTFOUND >>> New Value (Enter to keep current value): >>> >>> Variable Name: EXECUTABLE_OUTPUT_PATH >>> Description: Single output directory for building all executables. >>> Current Value: /usr/local/vtk/VTK/bin >>> New Value (Enter to keep current value): >>> >>> Variable Name: LIBRARY_OUTPUT_PATH >>> Description: Single output directory for building all libraries. >>> Current Value: /usr/local/vtk/VTK/bin >>> New Value (Enter to keep current value): >>> >>> Variable Name: OPENGL_INCLUDE_PATH >>> Description: What is the path where the file GL/gl.h can be found >>> Current Value: /usr/X11R6/include >>> New Value (Enter to keep current value): >>> >>> Variable Name: OPENGL_LIBRARY >>> Description: Where can the GL library be found >>> Current Value: /usr/X11R6/lib/libGL.a >>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >>> Cocoa -framework OpenGL >>> >>> Variable Name: VTK_DATA_ROOT >>> Description: What is the path where the file VTKData.readme can be found >>> Current Value: NOTFOUND >>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>> >>> Variable Name: VTK_DEBUG_LEAKS >>> Description: Build leak checking support into vtk. >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_MANGLE_MESA >>> Description: Use mangled Mesa with OpenGL >>> Current Value: OFF >>> New Value (Enter to keep current value): ON >>> >>> Variable Name: VTK_OPENGL_HAS_OSMESA >>> Description: The opengl library being used supports off screen Mesa calls. >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_64BIT_IDS >>> Description: Build VTK with 64 bit ids >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_ANSI_STDLIB >>> Description: Use the ANSI standard iostream library >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_HYBRID >>> Description: Build the hybrid directory classes >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_PARALLEL >>> Description: Build the parallel directory classes >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_PATENTED >>> Description: Build the patented directory classes, these classes are >>> patented and may require a license to use >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_QUARTZ >>> Description: Build classes for the Quartz window manager >>> Current Value: ON >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_RENDERING >>> Description: Build the rendering classes used for displaying >>> Current Value: ON >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_VOLUMEPRO >>> Description: Build VTK with volume pro support >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_USE_X >>> Description: Build classes for the X11 window manager >>> Current Value: OFF >>> New Value (Enter to keep current value): ON >>> >>> Variable Name: VTK_WRAP_JAVA >>> Description: wrap classes into the Java language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_WRAP_PYTHON >>> Description: wrap classes into the Python interpreted language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> Variable Name: VTK_WRAP_TCL >>> Description: wrap classes into the TCL intepreted language >>> Current Value: OFF >>> New Value (Enter to keep current value): >>> >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> Michael Robertson >>> fermion at mac.com >>> http://thenewcosmos.com >>> >>> >>> "By [reason] we gain a multitude of cognitions, which although really >>> nothing more than elucidations or explanations of that which (though in a >>> confused manner) was already thought in our conceptions, are, at least in >>> respect of their form, prized as new introspections; whilst, so far as >>> regards their matter or content, we have really made no addition to our >>> conceptions, but only disinvolved them." >>> >>> -Immanuel Kant, The Critique of Pure Reason >>> >>> >>> >>> _______________________________________________ >>> 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 billlist at nycap.rr.com Mon Apr 22 09:23:09 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 22 Apr 2002 09:23:09 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: References: <5.0.2.1.0.20020417082432.040c6c78@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20020422092200.042802a8@pop.nycap.rr.com> Right before this output: make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 What was the error? Looks like there was a link error, but without seeing it, it is hard to tell what went wrong. -Bill At 09:16 AM 4/22/2002 -0400, Mike Robertson wrote: >Hi. Everything is fine now, as long as I don't want to wrap the libraries >into TCL. When I tell it to do that (the ultimate goal is python, but >there's some bizarre file that the TCL wrapping creates that is necessary >for the python wrapping to function...), it returns this error without fail: > >make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Wrapping_Tcl] Error 2 >make: *** [default_target] Error 2 > >I'm not sure what's going on here... I'm looking through the 41MB mbox now, >but if anyone has any idea how I can fix this problem, I'd appreciate it >(or, for that matter, any suggestions of simply getting around the TCL wrap >to create that file... vtkTkRenderWidgetPython). > >Thanks. > >mike > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Michael Robertson >fermion at mac.com >http://thenewcosmos.com > > >". . . The Egyptians were obsessed with salt. They salted everything, >including their relatives. . ." > >- NPR, 2/26/02 > > > >> From: "William A. Hoffman" >> Date: Wed, 17 Apr 2002 08:25:31 -0400 >> To: Mike Robertson , >> Subject: Re: [vtkusers] More on mac os x installation >> >> My mistake, you do not need advanced values, but you do need: >> OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL >> >> (I will fix that now.) >> >> -Bill >> >> >> At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >>> I would suggest cleaning your build directory (rm -rf *). Then re-run >>> cmake -i and do not ask to see the advanced values. >>> All of the defaults should work on Mac/OSX. >>> >>> This is the libtool problem: >>> >>> Variable Name: CMAKE_DL_LIBS >>> Description: Dynamic link library to link in. >>> Current Value: >>> New Value (Enter to keep current value): /usr/share/libtool/ >>> >>> This is asking for the name of a library to link in. You have given >>> it the name of an executable. >>> >>> >>> When it asked: >>> Would you like to see advanced options? [No]: >>> >>> Did you say yes? If so, why? Did you have trouble with no advanced >>> options? >>> If you said, no, what version of cmake are you using? >>> >>> Thanks. >>> >>> -Bill >>> >>> >>> >>> At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>>> Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >>>> to get VTK running on my machine within or outside of this X-11 environment >>>> with the intent of running MayaVi. Despite its intention to simplify, this >>>> entire cmake process seems to make things far more cryptic than they would >>>> otherwise be. Here's my confusion (and, naturally, I've tried this several >>>> times before dragging myself to this listserv). >>>> >>>> After a highly verbose make process, the program concludes with this: >>>> >>>> /usr/bin/libtool: internal link edit command failed >>>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>>> make[2]: *** [default_target] Error 2 >>>> make[1]: *** [default_target_Rendering] Error 2 >>>> make: *** [default_target] Error 2 >>>> [localhost:local/vtk/VTK] root# hmm... >>>> >>>> Here are the questions that I'm not so sure about (and that are probably >>>> relevant to this `target' issue... (?)) >>>> >>>> Thanks for any help anyone can provide me with this. (the libtool error >>>> resulted because I have no idea what it's asking for in the dynamic link >>>> library question...) >>>> >>>> mike >>>> >>>> Variable Name: CMAKE_DL_LIBS >>>> Description: Dynamic link library to link in. >>>> Current Value: >>>> New Value (Enter to keep current value): /usr/share/libtool/ >>> >>> >>> >>> >>> >>>> Variable Name: CMAKE_HP_PTHREADS >>>> Description: Use HP pthreads. >>>> Current Value: 0 >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_INSTALL_PREFIX >>>> Description: Install path prefix, prepended onto install directories. >>>> Current Value: /usr/local >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_LIB_EXT >>>> Description: Library extension used by this machine. >>>> Current Value: >>>> New Value (Enter to keep current value): .lib >>>> >>>> Variable Name: CMAKE_MAKE_PROGRAM >>>> Description: Path to a program. >>>> Current Value: /usr/bin/make >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>>> Description: Flag used by CXX to build a shared library. >>>> Current Value: -bundle -flat_namespace -undefined suppress >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>>> Description: Flags used to link a shared library. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_MODULE_SUFFIX >>>> Description: Module library suffix. >>>> Current Value: .so >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_RANLIB >>>> Description: Library randomizer program used on archive libraries. >>>> Current Value: ranlib >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>>> Description: Flag used by CXX to build a shared library. >>>> Current Value: -dynamiclib >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_CFLAGS >>>> Description: Flag used for building shared library objects. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_LD_LIBS >>>> Description: Libraries used by LD for shared libraries. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>>> Description: Flags used to link a shared library. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>>> Description: Flag used to specify run-time search paths. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>>> Description: If null, each runtime path is a separate option. Otherwise, >>>> they are all joined, separated by this. >>>> Current Value: : >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SHLIB_SUFFIX >>>> Description: Shared library suffix. >>>> Current Value: .dylib >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_SKIP_RPATH >>>> Description: If set, runtime paths are not added when using shared >>>> libraries. >>>> Current Value: NO >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_TEMPLATE_FLAGS >>>> Description: CXX template flags used by compiler. >>>> Current Value: >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_THREAD_LIBS >>>> Description: Thread library used. >>>> Current Value: -lpthread >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_USE_PTHREADS >>>> Description: Use the pthreads library. >>>> Current Value: 1 >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_USE_SPROC >>>> Description: Use sproc libs. >>>> Current Value: 0 >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_WORDS_BIGENDIAN >>>> Description: is this system big endian >>>> Current Value: 1 >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_X_CFLAGS >>>> Description: X11 extra flags. >>>> Current Value: -I/usr/X11R6/include >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: CMAKE_X_LIBS >>>> Description: Libraries and options used in X11 programs. >>>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: DART_ROOT >>>> Description: If you have Dart installed, where is it located? >>>> Current Value: NOTFOUND >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: EXECUTABLE_OUTPUT_PATH >>>> Description: Single output directory for building all executables. >>>> Current Value: /usr/local/vtk/VTK/bin >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: LIBRARY_OUTPUT_PATH >>>> Description: Single output directory for building all libraries. >>>> Current Value: /usr/local/vtk/VTK/bin >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: OPENGL_INCLUDE_PATH >>>> Description: What is the path where the file GL/gl.h can be found >>>> Current Value: /usr/X11R6/include >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: OPENGL_LIBRARY >>>> Description: Where can the GL library be found >>>> Current Value: /usr/X11R6/lib/libGL.a >>>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >>>> Cocoa -framework OpenGL >>>> >>>> Variable Name: VTK_DATA_ROOT >>>> Description: What is the path where the file VTKData.readme can be found >>>> Current Value: NOTFOUND >>>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>>> >>>> Variable Name: VTK_DEBUG_LEAKS >>>> Description: Build leak checking support into vtk. >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_MANGLE_MESA >>>> Description: Use mangled Mesa with OpenGL >>>> Current Value: OFF >>>> New Value (Enter to keep current value): ON >>>> >>>> Variable Name: VTK_OPENGL_HAS_OSMESA >>>> Description: The opengl library being used supports off screen Mesa calls. >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_64BIT_IDS >>>> Description: Build VTK with 64 bit ids >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_ANSI_STDLIB >>>> Description: Use the ANSI standard iostream library >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_HYBRID >>>> Description: Build the hybrid directory classes >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_PARALLEL >>>> Description: Build the parallel directory classes >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_PATENTED >>>> Description: Build the patented directory classes, these classes are >>>> patented and may require a license to use >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_QUARTZ >>>> Description: Build classes for the Quartz window manager >>>> Current Value: ON >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_RENDERING >>>> Description: Build the rendering classes used for displaying >>>> Current Value: ON >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_VOLUMEPRO >>>> Description: Build VTK with volume pro support >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_USE_X >>>> Description: Build classes for the X11 window manager >>>> Current Value: OFF >>>> New Value (Enter to keep current value): ON >>>> >>>> Variable Name: VTK_WRAP_JAVA >>>> Description: wrap classes into the Java language >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_WRAP_PYTHON >>>> Description: wrap classes into the Python interpreted language >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> Variable Name: VTK_WRAP_TCL >>>> Description: wrap classes into the TCL intepreted language >>>> Current Value: OFF >>>> New Value (Enter to keep current value): >>>> >>>> >>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> Michael Robertson >>>> fermion at mac.com >>>> http://thenewcosmos.com >>>> >>>> >>>> "By [reason] we gain a multitude of cognitions, which although really >>>> nothing more than elucidations or explanations of that which (though in a >>>> confused manner) was already thought in our conceptions, are, at least in >>>> respect of their form, prized as new introspections; whilst, so far as >>>> regards their matter or content, we have really made no addition to our >>>> conceptions, but only disinvolved them." >>>> >>>> -Immanuel Kant, The Critique of Pure Reason >>>> >>>> >>>> >>>> _______________________________________________ >>>> This is the private VTK discussion list. >>>> Please keep messages on-topic. Check the FAQ at: >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers From ko at nest.irfu.se Mon Apr 22 09:28:23 2002 From: ko at nest.irfu.se (Mykola Khotyaintsev) Date: Mon, 22 Apr 2002 15:28:23 +0200 (CEST) Subject: [vtkusers] compiling vtk3.2 on Mac OS X Message-ID: <20020422152609.G67112-100000@nest.irfu.se> Dear Vtk-Users, Is it possible to compile VTK 3.2 on Darvin without XFree? Thanks in advance, Mykola Khotyaintsev [OVT Team] mob: +46 73 766 74 74 From fermion at mac.com Mon Apr 22 09:30:50 2002 From: fermion at mac.com (Mike Robertson) Date: Mon, 22 Apr 2002 09:30:50 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: <5.0.2.1.0.20020422092200.042802a8@pop.nycap.rr.com> Message-ID: Ah... Something to do with ld apparently. . . /usr/share/libtool -L/sw/lib/tcl8.3 -L/usr/X11R6/lib -L/sw/lib/tk8.3 -lvtkpng -lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -lvtkpng -lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL -lvtkGraphicsTCL -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics -lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -o /usr/local/vtk/vtk/bin/vtk /usr/bin/ld: Undefined symbols: _Tcl_CreateInterp _Tcl_Eval _Tcl_Init _Tcl_SetVar _Tk_Init _Tk_MainEx _Tcl_CreateCommand _Tcl_CreateExitHandler _Tcl_InitHashTable _Tcl_SetAssocData _Tcl_AppendResult _Tcl_DeleteCommand _Tcl_ResetResult _Tcl_SetResult _Tcl_GetDouble _Tcl_GetInt _Tcl_DeleteHashEntry _Tcl_DeleteInterp _Tcl_FirstHashEntry _Tcl_GetAssocData _Tcl_GetCommandInfo _Tcl_GetVar _Tcl_GlobalEval _Tcl_NextHashEntry _Tcl_Alloc _Tcl_EventuallyFree _Tcl_Free _Tcl_PkgProvide _Tcl_Preserve _Tcl_Release _Tk_ConfigureInfo _Tk_ConfigureWidget _Tk_CreateEventHandler _Tk_CreateWindowFromPath _Tk_DestroyWindow _Tk_GeometryRequest _Tk_MainWindow _Tk_MakeWindowExist _Tk_SetClass _Tk_SetWindowVisual _Tcl_CreateTimerHandler _Tcl_DoOneEvent _Tcl_Exit _TkGetMainInfoList _Tk_CreateGenericHandler _Tk_DeleteGenericHandler make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Wrapping_Tcl] Error 2 make: *** [default_target] Error 2 [localhost:local/vtk/vtk] root# mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com Thousands of years ago, cats were worshiped as gods. Cats have never forgotten this. > From: "William A. Hoffman" > Date: Mon, 22 Apr 2002 09:23:09 -0400 > To: Mike Robertson , > Subject: Re: [vtkusers] More on mac os x installation > > Right before this output: > > make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 > > > What was the error? Looks like there was a link error, but without seeing > it, it is hard to tell what went wrong. > > -Bill > > > At 09:16 AM 4/22/2002 -0400, Mike Robertson wrote: >> Hi. Everything is fine now, as long as I don't want to wrap the libraries >> into TCL. When I tell it to do that (the ultimate goal is python, but >> there's some bizarre file that the TCL wrapping creates that is necessary >> for the python wrapping to function...), it returns this error without fail: >> >> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >> make[2]: *** [default_target] Error 2 >> make[1]: *** [default_target_Wrapping_Tcl] Error 2 >> make: *** [default_target] Error 2 >> >> I'm not sure what's going on here... I'm looking through the 41MB mbox now, >> but if anyone has any idea how I can fix this problem, I'd appreciate it >> (or, for that matter, any suggestions of simply getting around the TCL wrap >> to create that file... vtkTkRenderWidgetPython). >> >> Thanks. >> >> mike >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Michael Robertson >> fermion at mac.com >> http://thenewcosmos.com >> >> >> ". . . The Egyptians were obsessed with salt. They salted everything, >> including their relatives. . ." >> >> - NPR, 2/26/02 >> >> >> >>> From: "William A. Hoffman" >>> Date: Wed, 17 Apr 2002 08:25:31 -0400 >>> To: Mike Robertson , >>> Subject: Re: [vtkusers] More on mac os x installation >>> >>> My mistake, you do not need advanced values, but you do need: >>> OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL >>> >>> (I will fix that now.) >>> >>> -Bill >>> >>> >>> At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >>>> I would suggest cleaning your build directory (rm -rf *). Then re-run >>>> cmake -i and do not ask to see the advanced values. >>>> All of the defaults should work on Mac/OSX. >>>> >>>> This is the libtool problem: >>>> >>>> Variable Name: CMAKE_DL_LIBS >>>> Description: Dynamic link library to link in. >>>> Current Value: >>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>> >>>> This is asking for the name of a library to link in. You have given >>>> it the name of an executable. >>>> >>>> >>>> When it asked: >>>> Would you like to see advanced options? [No]: >>>> >>>> Did you say yes? If so, why? Did you have trouble with no advanced >>>> options? >>>> If you said, no, what version of cmake are you using? >>>> >>>> Thanks. >>>> >>>> -Bill >>>> >>>> >>>> >>>> At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>>>> Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >>>>> to get VTK running on my machine within or outside of this X-11 >>>>> environment >>>>> with the intent of running MayaVi. Despite its intention to simplify, this >>>>> entire cmake process seems to make things far more cryptic than they would >>>>> otherwise be. Here's my confusion (and, naturally, I've tried this several >>>>> times before dragging myself to this listserv). >>>>> >>>>> After a highly verbose make process, the program concludes with this: >>>>> >>>>> /usr/bin/libtool: internal link edit command failed >>>>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>>>> make[2]: *** [default_target] Error 2 >>>>> make[1]: *** [default_target_Rendering] Error 2 >>>>> make: *** [default_target] Error 2 >>>>> [localhost:local/vtk/VTK] root# hmm... >>>>> >>>>> Here are the questions that I'm not so sure about (and that are probably >>>>> relevant to this `target' issue... (?)) >>>>> >>>>> Thanks for any help anyone can provide me with this. (the libtool error >>>>> resulted because I have no idea what it's asking for in the dynamic link >>>>> library question...) >>>>> >>>>> mike >>>>> >>>>> Variable Name: CMAKE_DL_LIBS >>>>> Description: Dynamic link library to link in. >>>>> Current Value: >>>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>> >>>> >>>> >>>> >>>> >>>>> Variable Name: CMAKE_HP_PTHREADS >>>>> Description: Use HP pthreads. >>>>> Current Value: 0 >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_INSTALL_PREFIX >>>>> Description: Install path prefix, prepended onto install directories. >>>>> Current Value: /usr/local >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_LIB_EXT >>>>> Description: Library extension used by this machine. >>>>> Current Value: >>>>> New Value (Enter to keep current value): .lib >>>>> >>>>> Variable Name: CMAKE_MAKE_PROGRAM >>>>> Description: Path to a program. >>>>> Current Value: /usr/bin/make >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>>>> Description: Flag used by CXX to build a shared library. >>>>> Current Value: -bundle -flat_namespace -undefined suppress >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>>>> Description: Flags used to link a shared library. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_MODULE_SUFFIX >>>>> Description: Module library suffix. >>>>> Current Value: .so >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_RANLIB >>>>> Description: Library randomizer program used on archive libraries. >>>>> Current Value: ranlib >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>>>> Description: Flag used by CXX to build a shared library. >>>>> Current Value: -dynamiclib >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_CFLAGS >>>>> Description: Flag used for building shared library objects. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_LD_LIBS >>>>> Description: Libraries used by LD for shared libraries. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>>>> Description: Flags used to link a shared library. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>>>> Description: Flag used to specify run-time search paths. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>>>> Description: If null, each runtime path is a separate option. Otherwise, >>>>> they are all joined, separated by this. >>>>> Current Value: : >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SHLIB_SUFFIX >>>>> Description: Shared library suffix. >>>>> Current Value: .dylib >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_SKIP_RPATH >>>>> Description: If set, runtime paths are not added when using shared >>>>> libraries. >>>>> Current Value: NO >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_TEMPLATE_FLAGS >>>>> Description: CXX template flags used by compiler. >>>>> Current Value: >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_THREAD_LIBS >>>>> Description: Thread library used. >>>>> Current Value: -lpthread >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_USE_PTHREADS >>>>> Description: Use the pthreads library. >>>>> Current Value: 1 >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_USE_SPROC >>>>> Description: Use sproc libs. >>>>> Current Value: 0 >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_WORDS_BIGENDIAN >>>>> Description: is this system big endian >>>>> Current Value: 1 >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_X_CFLAGS >>>>> Description: X11 extra flags. >>>>> Current Value: -I/usr/X11R6/include >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: CMAKE_X_LIBS >>>>> Description: Libraries and options used in X11 programs. >>>>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: DART_ROOT >>>>> Description: If you have Dart installed, where is it located? >>>>> Current Value: NOTFOUND >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: EXECUTABLE_OUTPUT_PATH >>>>> Description: Single output directory for building all executables. >>>>> Current Value: /usr/local/vtk/VTK/bin >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: LIBRARY_OUTPUT_PATH >>>>> Description: Single output directory for building all libraries. >>>>> Current Value: /usr/local/vtk/VTK/bin >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: OPENGL_INCLUDE_PATH >>>>> Description: What is the path where the file GL/gl.h can be found >>>>> Current Value: /usr/X11R6/include >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: OPENGL_LIBRARY >>>>> Description: Where can the GL library be found >>>>> Current Value: /usr/X11R6/lib/libGL.a >>>>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >>>>> Cocoa -framework OpenGL >>>>> >>>>> Variable Name: VTK_DATA_ROOT >>>>> Description: What is the path where the file VTKData.readme can be found >>>>> Current Value: NOTFOUND >>>>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>>>> >>>>> Variable Name: VTK_DEBUG_LEAKS >>>>> Description: Build leak checking support into vtk. >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_MANGLE_MESA >>>>> Description: Use mangled Mesa with OpenGL >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): ON >>>>> >>>>> Variable Name: VTK_OPENGL_HAS_OSMESA >>>>> Description: The opengl library being used supports off screen Mesa >>>>> calls. >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_64BIT_IDS >>>>> Description: Build VTK with 64 bit ids >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_ANSI_STDLIB >>>>> Description: Use the ANSI standard iostream library >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_HYBRID >>>>> Description: Build the hybrid directory classes >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_PARALLEL >>>>> Description: Build the parallel directory classes >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_PATENTED >>>>> Description: Build the patented directory classes, these classes are >>>>> patented and may require a license to use >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_QUARTZ >>>>> Description: Build classes for the Quartz window manager >>>>> Current Value: ON >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_RENDERING >>>>> Description: Build the rendering classes used for displaying >>>>> Current Value: ON >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_VOLUMEPRO >>>>> Description: Build VTK with volume pro support >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_USE_X >>>>> Description: Build classes for the X11 window manager >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): ON >>>>> >>>>> Variable Name: VTK_WRAP_JAVA >>>>> Description: wrap classes into the Java language >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_WRAP_PYTHON >>>>> Description: wrap classes into the Python interpreted language >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> Variable Name: VTK_WRAP_TCL >>>>> Description: wrap classes into the TCL intepreted language >>>>> Current Value: OFF >>>>> New Value (Enter to keep current value): >>>>> >>>>> >>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>> Michael Robertson >>>>> fermion at mac.com >>>>> http://thenewcosmos.com >>>>> >>>>> >>>>> "By [reason] we gain a multitude of cognitions, which although really >>>>> nothing more than elucidations or explanations of that which (though in a >>>>> confused manner) was already thought in our conceptions, are, at least in >>>>> respect of their form, prized as new introspections; whilst, so far as >>>>> regards their matter or content, we have really made no addition to our >>>>> conceptions, but only disinvolved them." >>>>> >>>>> -Immanuel Kant, The Critique of Pure Reason >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> This is the private VTK discussion list. >>>>> Please keep messages on-topic. Check the FAQ at: >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> _______________________________________________ >>>> This is the private VTK discussion list. >>>> Please keep messages on-topic. Check the FAQ at: >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From zlei at cisunix.unh.edu Mon Apr 22 09:39:43 2002 From: zlei at cisunix.unh.edu (Zhaopeng Lei) Date: Mon, 22 Apr 2002 09:39:43 -0400 (EDT) Subject: [vtkusers] flow volume rendering Message-ID: Hi all, Could you please tell me what algorithm vtk supports for flow volume rendering? And what classes are used in flow visualization? Thanks a lot! - Zhaopeng :-) -_____ ^ _____- -__\ [|] /__- -_\|/_- /M\ From billlist at nycap.rr.com Mon Apr 22 09:54:47 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 22 Apr 2002 09:54:47 -0400 Subject: [vtkusers] More on mac os x installation In-Reply-To: References: <5.0.2.1.0.20020422092200.042802a8@pop.nycap.rr.com> Message-ID: <5.0.2.1.0.20020422095405.01876948@pop.nycap.rr.com> It is missing the symbols for TK. You need to set this in the cmake cache: TK_LIBRARY:FILEPATH=-framework Tk At 09:30 AM 4/22/2002 -0400, Mike Robertson wrote: >Ah... Something to do with ld apparently. . . > >/usr/share/libtool -L/sw/lib/tcl8.3 -L/usr/X11R6/lib -L/sw/lib/tk8.3 >-lvtkpng -lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL -lvtkGraphicsTCL >-lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics >-lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE >-L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -lvtkpng >-lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL -lvtkGraphicsTCL >-lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics >-lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE >-L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -o >/usr/local/vtk/vtk/bin/vtk >/usr/bin/ld: Undefined symbols: >_Tcl_CreateInterp >_Tcl_Eval >_Tcl_Init >_Tcl_SetVar >_Tk_Init >_Tk_MainEx >_Tcl_CreateCommand >_Tcl_CreateExitHandler >_Tcl_InitHashTable >_Tcl_SetAssocData >_Tcl_AppendResult >_Tcl_DeleteCommand >_Tcl_ResetResult >_Tcl_SetResult >_Tcl_GetDouble >_Tcl_GetInt >_Tcl_DeleteHashEntry >_Tcl_DeleteInterp >_Tcl_FirstHashEntry >_Tcl_GetAssocData >_Tcl_GetCommandInfo >_Tcl_GetVar >_Tcl_GlobalEval >_Tcl_NextHashEntry >_Tcl_Alloc >_Tcl_EventuallyFree >_Tcl_Free >_Tcl_PkgProvide >_Tcl_Preserve >_Tcl_Release >_Tk_ConfigureInfo >_Tk_ConfigureWidget >_Tk_CreateEventHandler >_Tk_CreateWindowFromPath >_Tk_DestroyWindow >_Tk_GeometryRequest >_Tk_MainWindow >_Tk_MakeWindowExist >_Tk_SetClass >_Tk_SetWindowVisual >_Tcl_CreateTimerHandler >_Tcl_DoOneEvent >_Tcl_Exit >_TkGetMainInfoList >_Tk_CreateGenericHandler >_Tk_DeleteGenericHandler >make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >make[2]: *** [default_target] Error 2 >make[1]: *** [default_target_Wrapping_Tcl] Error 2 >make: *** [default_target] Error 2 >[localhost:local/vtk/vtk] root# > >mike > > >~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Michael Robertson >fermion at mac.com >http://thenewcosmos.com > > >Thousands of years ago, cats were worshiped as gods. Cats have never >forgotten this. > > > >> From: "William A. Hoffman" >> Date: Mon, 22 Apr 2002 09:23:09 -0400 >> To: Mike Robertson , >> Subject: Re: [vtkusers] More on mac os x installation >> >> Right before this output: >> >> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >> >> >> What was the error? Looks like there was a link error, but without seeing >> it, it is hard to tell what went wrong. >> >> -Bill >> >> >> At 09:16 AM 4/22/2002 -0400, Mike Robertson wrote: >>> Hi. Everything is fine now, as long as I don't want to wrap the libraries >>> into TCL. When I tell it to do that (the ultimate goal is python, but >>> there's some bizarre file that the TCL wrapping creates that is necessary >>> for the python wrapping to function...), it returns this error without fail: >>> >>> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >>> make[2]: *** [default_target] Error 2 >>> make[1]: *** [default_target_Wrapping_Tcl] Error 2 >>> make: *** [default_target] Error 2 >>> >>> I'm not sure what's going on here... I'm looking through the 41MB mbox now, >>> but if anyone has any idea how I can fix this problem, I'd appreciate it >>> (or, for that matter, any suggestions of simply getting around the TCL wrap >>> to create that file... vtkTkRenderWidgetPython). >>> >>> Thanks. >>> >>> mike >>> >>> >>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>> Michael Robertson >>> fermion at mac.com >>> http://thenewcosmos.com >>> >>> >>> ". . . The Egyptians were obsessed with salt. They salted everything, >>> including their relatives. . ." >>> >>> - NPR, 2/26/02 >>> >>> >>> >>>> From: "William A. Hoffman" >>>> Date: Wed, 17 Apr 2002 08:25:31 -0400 >>>> To: Mike Robertson , >>>> Subject: Re: [vtkusers] More on mac os x installation >>>> >>>> My mistake, you do not need advanced values, but you do need: >>>> OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL >>>> >>>> (I will fix that now.) >>>> >>>> -Bill >>>> >>>> >>>> At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >>>>> I would suggest cleaning your build directory (rm -rf *). Then re-run >>>>> cmake -i and do not ask to see the advanced values. >>>>> All of the defaults should work on Mac/OSX. >>>>> >>>>> This is the libtool problem: >>>>> >>>>> Variable Name: CMAKE_DL_LIBS >>>>> Description: Dynamic link library to link in. >>>>> Current Value: >>>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>>> >>>>> This is asking for the name of a library to link in. You have given >>>>> it the name of an executable. >>>>> >>>>> >>>>> When it asked: >>>>> Would you like to see advanced options? [No]: >>>>> >>>>> Did you say yes? If so, why? Did you have trouble with no advanced >>>>> options? >>>>> If you said, no, what version of cmake are you using? >>>>> >>>>> Thanks. >>>>> >>>>> -Bill >>>>> >>>>> >>>>> >>>>> At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>>>>> Hi! I'm relatively new to the unix world, oddly enough, but I'm determined >>>>>> to get VTK running on my machine within or outside of this X-11 >>>>>> environment >>>>>> with the intent of running MayaVi. Despite its intention to simplify, this >>>>>> entire cmake process seems to make things far more cryptic than they would >>>>>> otherwise be. Here's my confusion (and, naturally, I've tried this several >>>>>> times before dragging myself to this listserv). >>>>>> >>>>>> After a highly verbose make process, the program concludes with this: >>>>>> >>>>>> /usr/bin/libtool: internal link edit command failed >>>>>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] Error 1 >>>>>> make[2]: *** [default_target] Error 2 >>>>>> make[1]: *** [default_target_Rendering] Error 2 >>>>>> make: *** [default_target] Error 2 >>>>>> [localhost:local/vtk/VTK] root# hmm... >>>>>> >>>>>> Here are the questions that I'm not so sure about (and that are probably >>>>>> relevant to this `target' issue... (?)) >>>>>> >>>>>> Thanks for any help anyone can provide me with this. (the libtool error >>>>>> resulted because I have no idea what it's asking for in the dynamic link >>>>>> library question...) >>>>>> >>>>>> mike >>>>>> >>>>>> Variable Name: CMAKE_DL_LIBS >>>>>> Description: Dynamic link library to link in. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>>> >>>>> >>>>> >>>>> >>>>> >>>>>> Variable Name: CMAKE_HP_PTHREADS >>>>>> Description: Use HP pthreads. >>>>>> Current Value: 0 >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_INSTALL_PREFIX >>>>>> Description: Install path prefix, prepended onto install directories. >>>>>> Current Value: /usr/local >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_LIB_EXT >>>>>> Description: Library extension used by this machine. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): .lib >>>>>> >>>>>> Variable Name: CMAKE_MAKE_PROGRAM >>>>>> Description: Path to a program. >>>>>> Current Value: /usr/bin/make >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>>>>> Description: Flag used by CXX to build a shared library. >>>>>> Current Value: -bundle -flat_namespace -undefined suppress >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>>>>> Description: Flags used to link a shared library. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_MODULE_SUFFIX >>>>>> Description: Module library suffix. >>>>>> Current Value: .so >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_RANLIB >>>>>> Description: Library randomizer program used on archive libraries. >>>>>> Current Value: ranlib >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>>>>> Description: Flag used by CXX to build a shared library. >>>>>> Current Value: -dynamiclib >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_CFLAGS >>>>>> Description: Flag used for building shared library objects. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_LD_LIBS >>>>>> Description: Libraries used by LD for shared libraries. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>>>>> Description: Flags used to link a shared library. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>>>>> Description: Flag used to specify run-time search paths. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>>>>> Description: If null, each runtime path is a separate option. Otherwise, >>>>>> they are all joined, separated by this. >>>>>> Current Value: : >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SHLIB_SUFFIX >>>>>> Description: Shared library suffix. >>>>>> Current Value: .dylib >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_SKIP_RPATH >>>>>> Description: If set, runtime paths are not added when using shared >>>>>> libraries. >>>>>> Current Value: NO >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_TEMPLATE_FLAGS >>>>>> Description: CXX template flags used by compiler. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_THREAD_LIBS >>>>>> Description: Thread library used. >>>>>> Current Value: -lpthread >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_USE_PTHREADS >>>>>> Description: Use the pthreads library. >>>>>> Current Value: 1 >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_USE_SPROC >>>>>> Description: Use sproc libs. >>>>>> Current Value: 0 >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_WORDS_BIGENDIAN >>>>>> Description: is this system big endian >>>>>> Current Value: 1 >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_X_CFLAGS >>>>>> Description: X11 extra flags. >>>>>> Current Value: -I/usr/X11R6/include >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: CMAKE_X_LIBS >>>>>> Description: Libraries and options used in X11 programs. >>>>>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: DART_ROOT >>>>>> Description: If you have Dart installed, where is it located? >>>>>> Current Value: NOTFOUND >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: EXECUTABLE_OUTPUT_PATH >>>>>> Description: Single output directory for building all executables. >>>>>> Current Value: /usr/local/vtk/VTK/bin >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: LIBRARY_OUTPUT_PATH >>>>>> Description: Single output directory for building all libraries. >>>>>> Current Value: /usr/local/vtk/VTK/bin >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: OPENGL_INCLUDE_PATH >>>>>> Description: What is the path where the file GL/gl.h can be found >>>>>> Current Value: /usr/X11R6/include >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: OPENGL_LIBRARY >>>>>> Description: Where can the GL library be found >>>>>> Current Value: /usr/X11R6/lib/libGL.a >>>>>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a -framework >>>>>> Cocoa -framework OpenGL >>>>>> >>>>>> Variable Name: VTK_DATA_ROOT >>>>>> Description: What is the path where the file VTKData.readme can be found >>>>>> Current Value: NOTFOUND >>>>>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>>>>> >>>>>> Variable Name: VTK_DEBUG_LEAKS >>>>>> Description: Build leak checking support into vtk. >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_MANGLE_MESA >>>>>> Description: Use mangled Mesa with OpenGL >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): ON >>>>>> >>>>>> Variable Name: VTK_OPENGL_HAS_OSMESA >>>>>> Description: The opengl library being used supports off screen Mesa >>>>>> calls. >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_64BIT_IDS >>>>>> Description: Build VTK with 64 bit ids >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_ANSI_STDLIB >>>>>> Description: Use the ANSI standard iostream library >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_HYBRID >>>>>> Description: Build the hybrid directory classes >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_PARALLEL >>>>>> Description: Build the parallel directory classes >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_PATENTED >>>>>> Description: Build the patented directory classes, these classes are >>>>>> patented and may require a license to use >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_QUARTZ >>>>>> Description: Build classes for the Quartz window manager >>>>>> Current Value: ON >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_RENDERING >>>>>> Description: Build the rendering classes used for displaying >>>>>> Current Value: ON >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_VOLUMEPRO >>>>>> Description: Build VTK with volume pro support >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_USE_X >>>>>> Description: Build classes for the X11 window manager >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): ON >>>>>> >>>>>> Variable Name: VTK_WRAP_JAVA >>>>>> Description: wrap classes into the Java language >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_WRAP_PYTHON >>>>>> Description: wrap classes into the Python interpreted language >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> Variable Name: VTK_WRAP_TCL >>>>>> Description: wrap classes into the TCL intepreted language >>>>>> Current Value: OFF >>>>>> New Value (Enter to keep current value): >>>>>> >>>>>> >>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>> Michael Robertson >>>>>> fermion at mac.com >>>>>> http://thenewcosmos.com >>>>>> >>>>>> >>>>>> "By [reason] we gain a multitude of cognitions, which although really >>>>>> nothing more than elucidations or explanations of that which (though in a >>>>>> confused manner) was already thought in our conceptions, are, at least in >>>>>> respect of their form, prized as new introspections; whilst, so far as >>>>>> regards their matter or content, we have really made no addition to our >>>>>> conceptions, but only disinvolved them." >>>>>> >>>>>> -Immanuel Kant, The Critique of Pure Reason >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> This is the private VTK discussion list. >>>>>> Please keep messages on-topic. Check the FAQ at: >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> _______________________________________________ >>>>> This is the private VTK discussion list. >>>>> Please keep messages on-topic. Check the FAQ at: >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >> _______________________________________________ >> 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 pttsui at ee.cuhk.edu.hk Mon Apr 22 11:24:06 2002 From: pttsui at ee.cuhk.edu.hk (Nelson) Date: Mon, 22 Apr 2002 23:24:06 +0800 Subject: [vtkusers] Problem with vtkMFCRenderView on Windows 2000 Message-ID: <002701c1ea11$be694c40$6722bd89@ee.cuhk.edu.hk> I am used to making use of VTK in Visual C++ via the class vtkMFCRenderView provided by the sample. In VTK version 3.2, I am used to have it working well with both Windows 98 and 2000 platforms. However, when I have updated VTK to 4.0, running the applicaton on Win2000 results an error dialog which exits and prohibits the windows from being created : Debug Error ! Program : MyApplication.EXE Module : File : i386\chkesp.c Line : 42 The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. But I compile the same application with the same release of VTK (4.0) is working fine on Windows 98 platform. I would like to know anyone have the same experience or have sucessfully used vtkMFCRenderView on Windows2000. Rgds, Nelson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From billlist at nycap.rr.com Mon Apr 22 11:49:15 2002 From: billlist at nycap.rr.com (William A. Hoffman) Date: Mon, 22 Apr 2002 11:49:15 -0400 Subject: [vtkusers] Problem with vtkMFCRenderView on Windows 2000 In-Reply-To: <002701c1ea11$be694c40$6722bd89@ee.cuhk.edu.hk> Message-ID: <5.0.2.1.0.20020422114726.040d2a78@pop.nycap.rr.com> The most likely cause of the ESP error is that you are getting the wrong dll's or the code is not up-to-date with the compiled binary. You can run a tool from Microsoft called depends that will show you which dll's your application is using. -Bill At 11:24 PM 4/22/2002 +0800, Nelson wrote: >I am used to making use of VTK in Visual C++ via the class vtkMFCRenderView provided by the sample. In VTK version 3.2, I am used to have it working well with both Windows 98 and 2000 platforms. However, when I have updated VTK to 4.0, running the applicaton on Win2000 results an error dialog which exits and prohibits the windows from being created : > >Debug Error ! >Program : MyApplication.EXE >Module : >File : i386\chkesp.c >Line : 42 >The value of ESP was not properly saved across a function call. This is usually a result of calling a function declared with one calling convention with a function pointer declared with a different calling convention. > > >But I compile the same application with the same release of VTK (4.0) is working fine on Windows 98 platform. I would like to know anyone have the same experience or have sucessfully used vtkMFCRenderView on Windows2000. > >Rgds, Nelson. -------------- next part -------------- An HTML attachment was scrubbed... URL: From melvin.hadasht at free.fr Mon Apr 22 12:45:06 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Mon, 22 Apr 2002 18:45:06 +0200 Subject: [vtkusers] pb w. Delaunay on multiple polygons Message-ID: <20020422184506.784198f0.melvin.hadasht@free.fr> Hi, I have a vtkCellArray containing two or more polygons that I wish to triangulate using vtkDelaunay (for the constrained triangulation ability). On a test case of two regular polygons one above the other, the triangulations succeeds for both polygons only if the number of the sides of the polygon are less than 8. Above this limit, the second created polygon is not correctly triangulated: http://melvin.hadasht.free.fr/vtk/delau.jpg the corresponding Python script is: http://melvin.hadasht.free.fr/vtk/delau.py Triangulating only one of them works correctly. What am I doing wrong? I need to use vtkDelaunay2D instead of vtkTriangleFilter because some of my other polygons have holes in them, and vtkTriangleFilter will fill the holes. Is this a limitation of the Delaunay algorithm? Is there another solution? Thanks in advance. Cheers. -- Melvin Hadasht From will.schroeder at kitware.com Mon Apr 22 13:39:21 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Mon, 22 Apr 2002 13:39:21 -0400 Subject: [vtkusers] pb w. Delaunay on multiple polygons In-Reply-To: <20020422184506.784198f0.melvin.hadasht@free.fr> Message-ID: <5.1.0.14.0.20020422131904.022d4f00@pop.nycap.rr.com> Hi Melvin- At 06:45 PM 4/22/2002 +0200, Melvin Hadasht wrote: >Hi, > >I have a vtkCellArray containing two or more polygons that I wish to >triangulate using vtkDelaunay (for the constrained triangulation >ability). On a test case of two regular polygons one above the other, >the triangulations succeeds for both polygons only if the number of the >sides of the polygon are less than 8. Above this limit, the second >created polygon is not correctly triangulated: If I am reading your script properly, you are using vtkDelaunay2D incorrectly. The first polygon defines the outer boundary of the polygons; subsequent polygons in the input define holes in the polygon. You are placing both polygons in the same source polydata, which doesn't make sense. Instead, you should put each polygon in a separate polydata (include holes as additional polygons) and triangulate with a separate vtkDelaunay2D. Or equivalently, set up a pipeline of vtkPolyData and vtkDelaunay2D, load the polygon (and any holes in the polygon) in the vtkPolyData, execute the pipeline, save the output, and then repeat the process. You may have to invoke Modified() on the vtkPolyData every time you stuff new data into it. Will William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From melvin.hadasht at free.fr Mon Apr 22 15:01:45 2002 From: melvin.hadasht at free.fr (Melvin Hadasht) Date: Mon, 22 Apr 2002 21:01:45 +0200 Subject: [vtkusers] pb w. Delaunay on multiple polygons In-Reply-To: <5.1.0.14.0.20020422131904.022d4f00@pop.nycap.rr.com> References: <20020422184506.784198f0.melvin.hadasht@free.fr> <5.1.0.14.0.20020422131904.022d4f00@pop.nycap.rr.com> Message-ID: <20020422210145.2040c795.melvin.hadasht@free.fr> Hi Will, on Mon, 22 Apr 2002 13:39:21 -0400 Will Schroeder wrote: > If I am reading your script properly, you are using vtkDelaunay2D > incorrectly. The first polygon defines the outer boundary of the polygons; > subsequent polygons in the input define holes in the polygon. You are > placing both polygons in the same source polydata, which doesn't make > sense. OK. I thought it was possible to have different polygons (including holes) in the input of vtkDelaunay2D. And I misunderstood (or read too quickly) the examples. > Instead, you should put each polygon in a separate polydata (include > holes as additional polygons) and triangulate with a separate > vtkDelaunay2D. Or equivalently, set up a pipeline of vtkPolyData and > vtkDelaunay2D, load the polygon (and any holes in the polygon) in the > vtkPolyData, execute the pipeline, save the output, and then repeat the > process. You may have to invoke Modified() on the vtkPolyData every time > you stuff new data into it. Thanks. I'll try this. The problem is that the polygons come from the outlines of an arbitrary postscript character glyph. It won't be easy to recognize when a polygon is completed or not (for example, when the 'a' of a '?' ('a' with two points on its top) is completed to pass it through a pipeline). I guess I have to work more on this. Thanks again. Tionana (Chinyanja, Zambia, Mozambique: See you) -- Melvin Hadasht From liya.chernyakova at staarinc.com Mon Apr 22 15:51:37 2002 From: liya.chernyakova at staarinc.com (Liya Chernyakova) Date: Mon, 22 Apr 2002 14:51:37 -0500 Subject: [vtkusers] resizing vtkPanel Message-ID: <000a01c1ea37$1dd12070$0400a8c0@staarinc.com> I am having trouble resizing vtkPanel. I have vtkPanel added to JPane, which itself is added to the Tabbed Pane. When I am trying to move Tabbed Pane border from left to right nothing happens (vtkPanel window does not become smaller) while moving from right to left works OK. When I am trying to move the right border, instead of resizing the window it moves the whole pichture to the left. Does anybody know/ suggests solution to this problem? Thank you, Liya Chernyakova Simulation Technology & Applied Research, Inc. 11520 N. Port Washington Rd. Suite 101 B Mequon, WI 53092 Phone: (262) 240-0291 ext.104 FAX: (262) 240-0294 e-mail: liya.chernyakova at staarinc.com web: http://www.staarinc.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From satra at bu.edu Mon Apr 22 15:58:26 2002 From: satra at bu.edu (Satrajit S. Ghosh) Date: Mon, 22 Apr 2002 15:58:26 -0400 (EDT) Subject: [vtkusers] topologically correct surfaces Message-ID: Is there a way to correct topological defects in the surface generated using marching cubes. For example, if one knew that the surface was topologically a sphere, such as a hemisphere of a brain isosurface. Is there a way one can impose the Euler characterisitics on the surface? Thanks, Satra -- "We learn from history that we learn nothing from history"- GB Shaw -- Satrajit S. Ghosh Department of Cognitive and Neural Systems, Boston University (I): http://www.cns.bu.edu/~satra (O): 677 Beacon Street, Boston, MA 02215, Tel: 617.353.6181 (R): 73B Park St, Brookline, MA 02446, Tel: 617.739.5870 From jeff at cdnorthamerica.com Mon Apr 22 16:53:11 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 22 Apr 2002 16:53:11 -0400 Subject: [vtkusers] resizing vtkPanel References: <000a01c1ea37$1dd12070$0400a8c0@staarinc.com> Message-ID: <3CC47837.60602@cdnorthamerica.com> Hi Lisa, Have you tried setting the layout of the JPanel to BorderLayout? -Jeff Liya Chernyakova wrote: > I am having trouble resizing vtkPanel. > > I have vtkPanel added to JPane, which itself is added to the Tabbed > Pane. When I am trying to move Tabbed Pane border from left to right > > nothing happens (vtkPanel window does not become smaller) while moving > from right to left works OK. When I am trying to move the right > > border, instead of resizing the window it moves the whole pichture to > the left. > > Does anybody know/ suggests solution to this problem? > > Thank you, > > Liya Chernyakova > Simulation Technology & Applied Research, Inc. > 11520 N. Port Washington Rd. > Suite 101 B > Mequon, WI 53092 > Phone: (262) 240-0291 ext.104 > FAX: (262) 240-0294 > e-mail: liya.chernyakova at staarinc.com > > web: http://www.staarinc.com > From wlorens1 at nycap.rr.com Mon Apr 22 17:43:33 2002 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Mon, 22 Apr 2002 17:43:33 -0400 Subject: [vtkusers] topologically correct surfaces In-Reply-To: Message-ID: <5.1.0.14.2.20020422174011.042e7cf0@pop.nycap.rr.com> No, Marching Cubes only generates locally correct topology. Perhaps you want a deformable surface. You can start with a sphere then evolve it using a 3D snake. itk, www.itk.org, has a deformable surface, although it may be a be immature at the moment. Bill At 03:58 PM 4/22/02 -0400, Satrajit S. Ghosh wrote: >Is there a way to correct topological defects in the surface generated >using marching cubes. For example, if one knew that the surface was >topologically a sphere, such as a hemisphere of a brain isosurface. Is >there a way one can impose the Euler characterisitics on the surface? > >Thanks, > >Satra > >-- >"We learn from history that we learn nothing from history"- GB Shaw >-- >Satrajit S. Ghosh >Department of Cognitive and Neural Systems, Boston University >(I): http://www.cns.bu.edu/~satra >(O): 677 Beacon Street, Boston, MA 02215, Tel: 617.353.6181 >(R): 73B Park St, Brookline, MA 02446, Tel: 617.739.5870 > >_______________________________________________ >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 ljhfdy4 at sina.com Mon Apr 22 18:51:17 2002 From: ljhfdy4 at sina.com (ljhfdy4) Date: Tue, 23 Apr 2002 06:51:17 +0800 Subject: [vtkusers] how to get outline from CT images Message-ID: <20020422225117.19460.qmail@sina.com> Hi, friends: I have a question about how to get the outline from CT images. What I want to do is extracting the outline of a special tissue like bone or skin from one slice of CT (threshold may needed). In my idea the outline should be polyline, but I am not sure which functions can do this work exactly. Also how can i save the extracted polyline into a format the CAD packages can read? If impossible, image format is ok too. Thanks a lot for your help. Ljh ______________________________________ =================================================================== ???????????????? (http://mail.sina.com.cn) ?????????????????????????????????????????????? (http://classad.sina.com.cn/2shou/) From a.maclean at acfr.usyd.edu.au Mon Apr 22 19:23:14 2002 From: a.maclean at acfr.usyd.edu.au (Andrew J. P. Maclean) Date: Tue, 23 Apr 2002 09:23:14 +1000 Subject: [vtkusers] am I missing something, everything is dificult building under windows In-Reply-To: <3CC3BDFA.E674D748@direcpc.com> Message-ID: <003c01c1ea54$acf20860$acd24e81@acfr.usyd.edu.au> No, it is not difficult; in fact it is very easy using CMake. I have no trouble building the libraries and DLL's using CMake. In fact it is quite simple, you just have to select either yes or no to most options and it figures out the interdependencies for you. I am currently using VC7 so at present I have to use nmake but everything compiles OK, including the test examples. I hope that a VC7 IDE interface for CMake will be released soon. Just to reiterate, the build does go flawlessly under Win XP/2000 for TCL and the VTK libraries. MFC also works OK. Perhaps you should use the precompiled binaries until you become more familiar with VTK. I think that they set up all the necessary paths for you. I started this way. ___________________________________________ Andrew J. P. Maclean Postal: Australian Centre for Field Robotics The Rose Street Building J04 The University of Sydney? 2006? NSW AUSTRALIA Room: 106 Phone: +61 2 9351 3283 Fax: +61 2 9351 7474 http://www.acfr.usyd.edu.au/ ___________________________________________ -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com] On Behalf Of Randy Dawson Sent: Monday, 22 April 2002 17:39 To: vtkusers at public.kitware.com Subject: [vtkusers] am I missing something, everything is dificult building under windows There is no technical information here, it's a rant, so ignore unless you want to commiserate. ... From jclopez+vtk at andrew.cmu.edu Mon Apr 22 20:07:57 2002 From: jclopez+vtk at andrew.cmu.edu (JL) Date: Mon, 22 Apr 2002 20:07:57 -0400 Subject: [vtkusers] resizing vtkPanel In-Reply-To: <000a01c1ea37$1dd12070$0400a8c0@staarinc.com> Message-ID: Hi Liya, My guess is that the problem is an obscure interaction between JFC components and vtkPanel. I bet that the Tabbed Pane is calling vtkPanel's setBounds(...) (or other) method directly and not setSize(...). If I'm not mistaken, all the position / size methods (i.e., setSize, resize (deprecated), locate (deprecated), reshape (deprecated), setLocation and even setBounds) ultimately end up in a call to setBounds(int x, int y, int width, int height). What this means is that vtkPanel should override the setBounds(int x, int y, int width, int height) instead of the setSize(int width, int height) method. Unfortunately the java AWT/JFC documentation isn't clear, probably for valid reasons, about what method one should override to obtain the desired behavior. The way one can find about this 'feature' is to look at the java.awt.Component code. Actually, it is probably a good idea not to rely on an obscure, and maybe implementation dependent, feature. Instead a more general approach should be used. For example, vtkPanel could override all methods that could potentially change its size and / or location. In such approach, in order to override one of these methods, one would do something like: public void setSize(int width, int height) { super.setSize(width, height); this.SetSizeInternal(this.rw, width, height); } public void setBounds(int x, int y, int width, int height) { super.setBounds(x, y, width, height); this.SetSizeInternal(this.rw, width, height); } but the call to the parent's setSize(width, height) eventually results in a call this.setBounds(x,y,w,h), which means, this.setSizeInternal would get called more than once. Of course, in this case, the fact that this.SetSizeInternal(...) is called several times does not affect correctness, and it probably will have no real impact on performance. I hope this helps (somewhat), -- Julio -----Original Message----- From: vtkusers-admin at public.kitware.com [mailto:vtkusers-admin at public.kitware.com]On Behalf Of Liya Chernyakova Sent: Monday, April 22, 2002 3:52 PM To: vtkusers at public.kitware.com Subject: [vtkusers] resizing vtkPanel I am having trouble resizing vtkPanel. I have vtkPanel added to JPane, which itself is added to the Tabbed Pane. When I am trying to move Tabbed Pane border from left to right nothing happens (vtkPanel window does not become smaller) while moving from right to left works OK. When I am trying to move the right border, instead of resizing the window it moves the whole pichture to the left. Does anybody know/ suggests solution to this problem? Thank you, Liya Chernyakova Simulation Technology & Applied Research, Inc. 11520 N. Port Washington Rd. Suite 101 B Mequon, WI 53092 Phone: (262) 240-0291 ext.104 FAX: (262) 240-0294 e-mail: liya.chernyakova at staarinc.com web: http://www.staarinc.com From greg.edwards at tenix.com Mon Apr 22 21:17:40 2002 From: greg.edwards at tenix.com (EDWARDS Greg) Date: Tue, 23 Apr 2002 11:17:40 +1000 (EST) Subject: [vtkusers] Advice re 3D histograms Message-ID: <200204230117.LAA25021@sprint.tenix.com> Hi, I'm looking for advice or demo code to make a terrain-height array into a 3D histogram array, similar to simple spreadsheet displays of arays of data. I have a 2 dimensional array of data, call it a landscape or terrain for ease of description, although it's really just a 2D matrix of numbers. The array has scalar height item at each point of the (regular) array. I've got code to display this as a synthetic "terrain", coloured by height from a LUT, using a chain of vtkStructuredPointsReader -> vtkStructuredPointsGeometryFilter -> vtkWarpScalar -> vtkCastToConcrete -.vtkPolyDataNormals -> vtkPolyDataMapper, with LUT feeding into mapper. I can put glyphs (like squares) at the data points and warp them to the right height, colour them with a LUT etc. I'm just having a headache trying to use a cube glyph, and warp it's height to the correct value to make a 3D histogram. The extra "dimension" of warping the size ratehr than position of the glyph is defeating me. Any tips appreciated. Thanks, Greg. Greg Edwards, Simulation Group, Electronic Systems Division, Tenix Defence Pty Ltd, 100 Arthur St, North Sydney, NSW, 2060. + 61 2 9963 9600 sw, 9963 9725 desk, 9964 0988 fax, 0419 570 546 mobile greg.edwards at tenix.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From lisa.avila at kitware.com Mon Apr 22 22:18:50 2002 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Mon, 22 Apr 2002 22:18:50 -0400 Subject: [vtkusers] am I missing something, everything is dificult building under windows In-Reply-To: <3CC3BDFA.E674D748@direcpc.com> Message-ID: <4.3.2.20020422220753.02aa2e18@pop.nycap.rr.com> Randy, >PS I bought the book 2 years ago, now its missing. Whoever grabbed it >from my office, give it back. Two years ago is ancient history in software-years. :-) I would recommend working with the latest on-line manual pages and/or getting the latest version (updated for VTK 4.0) of the User's Guide. Enough things have changed here and there in the past two years that it could be a bit confusing to start out working from an old book. If you are talking about the hardcover textbook then it is useful for the theory / algorithms but I would skip the "Putting it all together" sections (where actual VTK code is shown) since they are based on VTK 2.0. Lisa From husthj at yahoo.com Tue Apr 23 03:28:10 2002 From: husthj at yahoo.com (Denny) Date: Tue, 23 Apr 2002 00:28:10 -0700 (PDT) Subject: [vtkusers] Which function should be called in vtkImageReader Message-ID: <20020423072810.41957.qmail@web20202.mail.yahoo.com> Dear users; I hope this question is not as stupid to disturb you as I think it is now. I work on Windows&Intel system. 16bits image file is loaded by vtkImageReader and displayed later. It can work fine. But I am not sure which function should be called in loading the image data. Which of the two func. SetDataByteOrderToBigEndian() and SetDataByteOrderToLittleEndian() is the right one? Waiting for your helps. cheers. Danny 2002.4.23 __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From husthj at yahoo.com Tue Apr 23 03:59:27 2002 From: husthj at yahoo.com (Denny) Date: Tue, 23 Apr 2002 00:59:27 -0700 (PDT) Subject: [vtkusers] SampleMFC memory leaks Message-ID: <20020423075927.20397.qmail@web20201.mail.yahoo.com> Dear uesers; Sorry, I have to ask this question again. Did anybody complie the VTK\Examples\GUI\Win32\SampleMFC project in VC++6.0 and run the executive file in debug mode? It'll end up with a number of memory leaks. The exact reason is not known to me. I guess if there is something wrong with the sample code or it is the fault of vtk. Hope someone can remove my doubt. Great thanks! Denny __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From maraux at ondim.fr Tue Apr 23 04:23:01 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 23 Apr 2002 10:23:01 +0200 Subject: [vtkusers] colormap issue loading Bitmap file & mapping to vrml Message-ID: <005b01c1eaa0$17b21be0$c000a8c0@ouessant> Hi everybody. I am experiencing problems using vtkBMPLoader and mapping a bmp texture on vrml. Does anybody know why ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From niemeijer at science-and-technology.nl Tue Apr 23 04:24:31 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Tue, 23 Apr 2002 10:24:31 +0200 Subject: [vtkusers] SampleMFC memory leaks In-Reply-To: <20020423075927.20397.qmail@web20201.mail.yahoo.com> Message-ID: <890E4A28-5693-11D6-8A5E-00039383F730@science-and-technology.nl> As I understood from Roland Schwarz this crash has to do with problems in vtkWin32OpenGLRenderWindow. Look at the following mailinglist entries that also discusses a bug I found in the same class: --- http://public.kitware.com/pipermail/vtkusers/2002-March/010152.html http://public.kitware.com/pipermail/vtkusers/2002-March/010155.html http://public.kitware.com/pipermail/vtkusers/2002-March/010158.html http://public.kitware.com/pipermail/vtkusers/2002-March/010159.html http://public.kitware.com/pipermail/vtkusers/2002-March/010162.html --- It seems there were some changes made to the vtkWin32OpenGLRenderWindow class in the CVS repository lately, but it doesn't seem to have fixed my bug. Furthermore I don't know whether these changes solved the MFC sample memory problems. Maybe one of the developers can comment on that. Greatings, Sander On dinsdag, april 23, 2002, at 09:59 , Denny wrote: > Dear uesers; > Sorry, I have to ask this question again. Did > anybody complie the VTK\Examples\GUI\Win32\SampleMFC > project in VC++6.0 and run the executive file in debug > mode? It'll end up with a number of memory leaks. The > exact reason is not known to me. I guess if there is > something wrong with the sample code or it is the > fault of vtk. Hope someone can remove my doubt. > > Great thanks! > Denny > > > __________________________________________________ > Do You Yahoo!? > Yahoo! Games - play chess, backgammon, pool and more > http://games.yahoo.com/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From niemeijer at science-and-technology.nl Tue Apr 23 04:31:53 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Tue, 23 Apr 2002 10:31:53 +0200 Subject: [vtkusers] More on mac os x installation In-Reply-To: <5.0.2.1.0.20020422095405.01876948@pop.nycap.rr.com> Message-ID: <90BC8866-5694-11D6-8A5E-00039383F730@science-and-technology.nl> Or, since you are compiling for X11 and using fink, try this: --- TCL_LIBRARY:FILEPATH=/sw/lib/libtcl.dylib TK_LIBRARY:FILEPATH=/sw/lib/libtk.dylib --- Regards, Sander On maandag, april 22, 2002, at 03:54 , William A. Hoffman wrote: > It is missing the symbols for TK. > You need to set this in the cmake cache: > > TK_LIBRARY:FILEPATH=-framework Tk > > > At 09:30 AM 4/22/2002 -0400, Mike Robertson wrote: >> Ah... Something to do with ld apparently. . . >> >> /usr/share/libtool -L/sw/lib/tcl8.3 -L/usr/X11R6/lib -L/sw/lib/tk8.3 >> -lvtkpng -lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL >> -lvtkGraphicsTCL >> -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics >> -lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE >> -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering >> -lvtkpng >> -lvtkzlib -lvtkjpeg -lpthread -lm -lvtkImagingTCL -lvtkGraphicsTCL >> -lvtkIOTCL -lvtkFilteringTCL -lvtkCommonTCL -lvtkIO -lvtkGraphics >> -lvtkImaging -lvtkFiltering -lvtkCommon -lGL -lXt -lSM -lICE >> -L/usr/X11R6/lib -lX11 -lXext -lvtkRenderingTCL -lvtkRendering -o >> /usr/local/vtk/vtk/bin/vtk >> /usr/bin/ld: Undefined symbols: >> _Tcl_CreateInterp >> _Tcl_Eval >> _Tcl_Init >> _Tcl_SetVar >> _Tk_Init >> _Tk_MainEx >> _Tcl_CreateCommand >> _Tcl_CreateExitHandler >> _Tcl_InitHashTable >> _Tcl_SetAssocData >> _Tcl_AppendResult >> _Tcl_DeleteCommand >> _Tcl_ResetResult >> _Tcl_SetResult >> _Tcl_GetDouble >> _Tcl_GetInt >> _Tcl_DeleteHashEntry >> _Tcl_DeleteInterp >> _Tcl_FirstHashEntry >> _Tcl_GetAssocData >> _Tcl_GetCommandInfo >> _Tcl_GetVar >> _Tcl_GlobalEval >> _Tcl_NextHashEntry >> _Tcl_Alloc >> _Tcl_EventuallyFree >> _Tcl_Free >> _Tcl_PkgProvide >> _Tcl_Preserve >> _Tcl_Release >> _Tk_ConfigureInfo >> _Tk_ConfigureWidget >> _Tk_CreateEventHandler >> _Tk_CreateWindowFromPath >> _Tk_DestroyWindow >> _Tk_GeometryRequest >> _Tk_MainWindow >> _Tk_MakeWindowExist >> _Tk_SetClass >> _Tk_SetWindowVisual >> _Tcl_CreateTimerHandler >> _Tcl_DoOneEvent >> _Tcl_Exit >> _TkGetMainInfoList >> _Tk_CreateGenericHandler >> _Tk_DeleteGenericHandler >> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >> make[2]: *** [default_target] Error 2 >> make[1]: *** [default_target_Wrapping_Tcl] Error 2 >> make: *** [default_target] Error 2 >> [localhost:local/vtk/vtk] root# >> >> mike >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Michael Robertson >> fermion at mac.com >> http://thenewcosmos.com >> >> >> Thousands of years ago, cats were worshiped as gods. Cats have never >> forgotten this. >> >> >> >>> From: "William A. Hoffman" >>> Date: Mon, 22 Apr 2002 09:23:09 -0400 >>> To: Mike Robertson , >>> Subject: Re: [vtkusers] More on mac os x installation >>> >>> Right before this output: >>> >>> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >>> >>> >>> What was the error? Looks like there was a link error, but without >>> seeing >>> it, it is hard to tell what went wrong. >>> >>> -Bill >>> >>> >>> At 09:16 AM 4/22/2002 -0400, Mike Robertson wrote: >>>> Hi. Everything is fine now, as long as I don't want to wrap the >>>> libraries >>>> into TCL. When I tell it to do that (the ultimate goal is python, but >>>> there's some bizarre file that the TCL wrapping creates that is >>>> necessary >>>> for the python wrapping to function...), it returns this error >>>> without fail: >>>> >>>> make[3]: *** [/usr/local/vtk/vtk/bin/vtk] Error 1 >>>> make[2]: *** [default_target] Error 2 >>>> make[1]: *** [default_target_Wrapping_Tcl] Error 2 >>>> make: *** [default_target] Error 2 >>>> >>>> I'm not sure what's going on here... I'm looking through the 41MB >>>> mbox now, >>>> but if anyone has any idea how I can fix this problem, I'd >>>> appreciate it >>>> (or, for that matter, any suggestions of simply getting around the >>>> TCL wrap >>>> to create that file... vtkTkRenderWidgetPython). >>>> >>>> Thanks. >>>> >>>> mike >>>> >>>> >>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> Michael Robertson >>>> fermion at mac.com >>>> http://thenewcosmos.com >>>> >>>> >>>> ". . . The Egyptians were obsessed with salt. They salted everything, >>>> including their relatives. . ." >>>> >>>> - NPR, 2/26/02 >>>> >>>> >>>> >>>>> From: "William A. Hoffman" >>>>> Date: Wed, 17 Apr 2002 08:25:31 -0400 >>>>> To: Mike Robertson , >>>>> Subject: Re: [vtkusers] More on mac os x installation >>>>> >>>>> My mistake, you do not need advanced values, but you do need: >>>>> OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL >>>>> >>>>> (I will fix that now.) >>>>> >>>>> -Bill >>>>> >>>>> >>>>> At 07:59 AM 4/17/2002 -0400, William A. Hoffman wrote: >>>>>> I would suggest cleaning your build directory (rm -rf *). Then >>>>>> re-run >>>>>> cmake -i and do not ask to see the advanced values. >>>>>> All of the defaults should work on Mac/OSX. >>>>>> >>>>>> This is the libtool problem: >>>>>> >>>>>> Variable Name: CMAKE_DL_LIBS >>>>>> Description: Dynamic link library to link in. >>>>>> Current Value: >>>>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>>>> >>>>>> This is asking for the name of a library to link in. You have >>>>>> given >>>>>> it the name of an executable. >>>>>> >>>>>> >>>>>> When it asked: >>>>>> Would you like to see advanced options? [No]: >>>>>> >>>>>> Did you say yes? If so, why? Did you have trouble with no >>>>>> advanced >>>>>> options? >>>>>> If you said, no, what version of cmake are you using? >>>>>> >>>>>> Thanks. >>>>>> >>>>>> -Bill >>>>>> >>>>>> >>>>>> >>>>>> At 11:53 PM 4/16/2002 -0400, Mike Robertson wrote: >>>>>>> Hi! I'm relatively new to the unix world, oddly enough, but I'm >>>>>>> determined >>>>>>> to get VTK running on my machine within or outside of this X-11 >>>>>>> environment >>>>>>> with the intent of running MayaVi. Despite its intention to >>>>>>> simplify, this >>>>>>> entire cmake process seems to make things far more cryptic than >>>>>>> they would >>>>>>> otherwise be. Here's my confusion (and, naturally, I've tried >>>>>>> this several >>>>>>> times before dragging myself to this listserv). >>>>>>> >>>>>>> After a highly verbose make process, the program concludes with >>>>>>> this: >>>>>>> >>>>>>> /usr/bin/libtool: internal link edit command failed >>>>>>> make[3]: *** [/usr/local/vtk/VTK/bin/libvtkRendering.dylib] >>>>>>> Error 1 >>>>>>> make[2]: *** [default_target] Error 2 >>>>>>> make[1]: *** [default_target_Rendering] Error 2 >>>>>>> make: *** [default_target] Error 2 >>>>>>> [localhost:local/vtk/VTK] root# hmm... >>>>>>> >>>>>>> Here are the questions that I'm not so sure about (and that are >>>>>>> probably >>>>>>> relevant to this `target' issue... (?)) >>>>>>> >>>>>>> Thanks for any help anyone can provide me with this. (the libtool >>>>>>> error >>>>>>> resulted because I have no idea what it's asking for in the >>>>>>> dynamic link >>>>>>> library question...) >>>>>>> >>>>>>> mike >>>>>>> >>>>>>> Variable Name: CMAKE_DL_LIBS >>>>>>> Description: Dynamic link library to link in. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): /usr/share/libtool/ >>>>>> >>>>>> >>>>>> >>>>>> >>>>>> >>>>>>> Variable Name: CMAKE_HP_PTHREADS >>>>>>> Description: Use HP pthreads. >>>>>>> Current Value: 0 >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_INSTALL_PREFIX >>>>>>> Description: Install path prefix, prepended onto install >>>>>>> directories. >>>>>>> Current Value: /usr/local >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_LIB_EXT >>>>>>> Description: Library extension used by this machine. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): .lib >>>>>>> >>>>>>> Variable Name: CMAKE_MAKE_PROGRAM >>>>>>> Description: Path to a program. >>>>>>> Current Value: /usr/bin/make >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_MODULE_BUILD_FLAGS >>>>>>> Description: Flag used by CXX to build a shared library. >>>>>>> Current Value: -bundle -flat_namespace -undefined suppress >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_MODULE_LINK_FLAGS >>>>>>> Description: Flags used to link a shared library. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_MODULE_SUFFIX >>>>>>> Description: Module library suffix. >>>>>>> Current Value: .so >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_RANLIB >>>>>>> Description: Library randomizer program used on archive >>>>>>> libraries. >>>>>>> Current Value: ranlib >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_BUILD_FLAGS >>>>>>> Description: Flag used by CXX to build a shared library. >>>>>>> Current Value: -dynamiclib >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_CFLAGS >>>>>>> Description: Flag used for building shared library objects. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_LD_LIBS >>>>>>> Description: Libraries used by LD for shared libraries. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_LINK_FLAGS >>>>>>> Description: Flags used to link a shared library. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_RUNTIME_FLAG >>>>>>> Description: Flag used to specify run-time search paths. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_RUNTIME_SEP >>>>>>> Description: If null, each runtime path is a separate option. >>>>>>> Otherwise, >>>>>>> they are all joined, separated by this. >>>>>>> Current Value: : >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SHLIB_SUFFIX >>>>>>> Description: Shared library suffix. >>>>>>> Current Value: .dylib >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_SKIP_RPATH >>>>>>> Description: If set, runtime paths are not added when using >>>>>>> shared >>>>>>> libraries. >>>>>>> Current Value: NO >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_TEMPLATE_FLAGS >>>>>>> Description: CXX template flags used by compiler. >>>>>>> Current Value: >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_THREAD_LIBS >>>>>>> Description: Thread library used. >>>>>>> Current Value: -lpthread >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_USE_PTHREADS >>>>>>> Description: Use the pthreads library. >>>>>>> Current Value: 1 >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_USE_SPROC >>>>>>> Description: Use sproc libs. >>>>>>> Current Value: 0 >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_WORDS_BIGENDIAN >>>>>>> Description: is this system big endian >>>>>>> Current Value: 1 >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_X_CFLAGS >>>>>>> Description: X11 extra flags. >>>>>>> Current Value: -I/usr/X11R6/include >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: CMAKE_X_LIBS >>>>>>> Description: Libraries and options used in X11 programs. >>>>>>> Current Value: -lSM -lICE -L/usr/X11R6/lib -lX11 -lXext >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: DART_ROOT >>>>>>> Description: If you have Dart installed, where is it located? >>>>>>> Current Value: NOTFOUND >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: EXECUTABLE_OUTPUT_PATH >>>>>>> Description: Single output directory for building all >>>>>>> executables. >>>>>>> Current Value: /usr/local/vtk/VTK/bin >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: LIBRARY_OUTPUT_PATH >>>>>>> Description: Single output directory for building all libraries. >>>>>>> Current Value: /usr/local/vtk/VTK/bin >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: OPENGL_INCLUDE_PATH >>>>>>> Description: What is the path where the file GL/gl.h can be >>>>>>> found >>>>>>> Current Value: /usr/X11R6/include >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: OPENGL_LIBRARY >>>>>>> Description: Where can the GL library be found >>>>>>> Current Value: /usr/X11R6/lib/libGL.a >>>>>>> New Value (Enter to keep current value): /usr/X11R6/lib/libGL.a >>>>>>> -framework >>>>>>> Cocoa -framework OpenGL >>>>>>> >>>>>>> Variable Name: VTK_DATA_ROOT >>>>>>> Description: What is the path where the file VTKData.readme can >>>>>>> be found >>>>>>> Current Value: NOTFOUND >>>>>>> New Value (Enter to keep current value): /usr/local/vtk/VTKData/ >>>>>>> >>>>>>> Variable Name: VTK_DEBUG_LEAKS >>>>>>> Description: Build leak checking support into vtk. >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_MANGLE_MESA >>>>>>> Description: Use mangled Mesa with OpenGL >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): ON >>>>>>> >>>>>>> Variable Name: VTK_OPENGL_HAS_OSMESA >>>>>>> Description: The opengl library being used supports off screen >>>>>>> Mesa >>>>>>> calls. >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_64BIT_IDS >>>>>>> Description: Build VTK with 64 bit ids >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_ANSI_STDLIB >>>>>>> Description: Use the ANSI standard iostream library >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_HYBRID >>>>>>> Description: Build the hybrid directory classes >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_PARALLEL >>>>>>> Description: Build the parallel directory classes >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_PATENTED >>>>>>> Description: Build the patented directory classes, these >>>>>>> classes are >>>>>>> patented and may require a license to use >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_QUARTZ >>>>>>> Description: Build classes for the Quartz window manager >>>>>>> Current Value: ON >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_RENDERING >>>>>>> Description: Build the rendering classes used for displaying >>>>>>> Current Value: ON >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_VOLUMEPRO >>>>>>> Description: Build VTK with volume pro support >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_USE_X >>>>>>> Description: Build classes for the X11 window manager >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): ON >>>>>>> >>>>>>> Variable Name: VTK_WRAP_JAVA >>>>>>> Description: wrap classes into the Java language >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_WRAP_PYTHON >>>>>>> Description: wrap classes into the Python interpreted language >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> Variable Name: VTK_WRAP_TCL >>>>>>> Description: wrap classes into the TCL intepreted language >>>>>>> Current Value: OFF >>>>>>> New Value (Enter to keep current value): >>>>>>> >>>>>>> >>>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>>> Michael Robertson >>>>>>> fermion at mac.com >>>>>>> http://thenewcosmos.com >>>>>>> >>>>>>> >>>>>>> "By [reason] we gain a multitude of cognitions, which although >>>>>>> really >>>>>>> nothing more than elucidations or explanations of that which >>>>>>> (though in a >>>>>>> confused manner) was already thought in our conceptions, are, at >>>>>>> least in >>>>>>> respect of their form, prized as new introspections; whilst, so >>>>>>> far as >>>>>>> regards their matter or content, we have really made no addition >>>>>>> to our >>>>>>> conceptions, but only disinvolved them." >>>>>>> >>>>>>> -Immanuel Kant, The Critique of Pure Reason >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> This is the private VTK discussion list. >>>>>>> Please keep messages on-topic. Check the FAQ at: >>>>>>> >>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>> >>>>>> _______________________________________________ >>>>>> This is the private VTK discussion list. >>>>>> Please keep messages on-topic. Check the FAQ at: >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> This is the private VTK discussion list. >>>> Please keep messages on-topic. Check the FAQ at: >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From maraux at ondim.fr Tue Apr 23 05:50:39 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Tue, 23 Apr 2002 11:50:39 +0200 Subject: [vtkusers] modifying quadric clustering Message-ID: <000a01c1eaac$549526e0$c000a8c0@ouessant> has anybody ever thought of producing a quadric clustering not necessarily having all of X/Y/Z divisions. It would be very profitable to simplify surfaces for which quadric clustering can produce 2 planes at a coordinate, instead of a better looking unique one. Would it be difficult ? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From amati at ira.cnr.it Tue Apr 23 06:51:16 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 23 Apr 2002 12:51:16 +0200 (CEST) Subject: [vtkusers] Scarlars or not scalars Message-ID: Hi great group, my question is, if I do not specify any scalar dataset for my polydata structure, and if I turn on ScalarVisibilytiOn of my mapper, which scalar are mapped into the color bar? Z posizion or X position or Y Position? Thank you a lot Gianca -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From arj at tm-net.dk Tue Apr 23 09:09:16 2002 From: arj at tm-net.dk (Allan Reinhold Jensen) Date: Tue, 23 Apr 2002 15:09:16 +0200 Subject: [vtkusers] Importing 3DS and VRML files. Message-ID: Hi. Is there any way to get the number og geometric objects from the vtkRenderer class when importing from 3DS or VRML files? I am in the process of making a small command line tool using C++ and VTK which can read a 3DS or VRML file and save it into a VTK PolyData file. The tool works fine, but if the file contains more than one object, I would like to print out a warning to the user. I can only seem to find the total number of objects, including lights and cameras, and furthermore, all objects imported from the 3DS or VRML file are of type vtkOpenGLActor, which makes it hard to determine type (light, camera etc). Any suggestions? Feel free to mail any answer. Best regards, Allan Reinhold * Allan Reinhold - mailto:arj at tm-net.dk * Theilgaard Mortensen A/S * Niels Hemmingsens Gade 9, 4. * 1153 K?benhavn K * Pho/Mob: +45 33448555 / 26818969 * http://www.tm-net.dk "We collaboratively negotiate progressive deliverables such that we may continue to proactively revolutionize scalable content" - Dilbert, 2001 From amati at ira.cnr.it Tue Apr 23 10:03:55 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Tue, 23 Apr 2002 16:03:55 +0200 (CEST) Subject: [vtkusers] Problems with VtkColorBar Message-ID: Hi everybody, I have this question, I'm mapping X, and Y and Z coordinate in a color bar. I used vtkScalarBarActor and I have created one for X , one for Y and one for Z. I add my Bar to the renderer with AddActor2D and I remove it wit RemoveActor. The problem is that I create the three bars with the same font caracther and with the same width size, but when I switch from a color bar to another my bars change width and caracther size. Could be a bug of Vtk or am I forgotting something? When I switch to another bar I siply remove the current bar from the renderer and I will add the new that I want to display. Can anybody help me? Thank you very much and sorry for my english. Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From gerber at fh-biberach.de Tue Apr 23 10:38:49 2002 From: gerber at fh-biberach.de (Prof. Andreas Gerber) Date: Tue, 23 Apr 2002 16:38:49 +0200 Subject: [vtkusers] Problems with VTK and PyQt 3.1 Message-ID: <200204231442.QAA17444@serv01.fh-biberach.de> Hi, I found a strange behaviour while trying to upgrade from PyQt 3.0 (QT 2.3) to PyQt 3.1 (QT 3.0.3) under Suse 8.0 and vtk 4.0, python 2.2. The example code in QVTKRenderWidget.py works well with both versions of PyQt. But if I add a non-empty ToolBar to my application the main window doesn't appear and CPU load reaches 100 %. Andreas From robbel at science.uva.nl Tue Apr 23 10:39:10 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Tue, 23 Apr 2002 16:39:10 +0200 Subject: [vtkusers] Importing 3DS and VRML files. In-Reply-To: ; from arj@tm-net.dk on Tue, Apr 23, 2002 at 03:09:16PM +0200 References: Message-ID: <20020423163910.A22666@cruz.science.uva.nl> Allan, On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > Is there any way to get the number og geometric objects from the > vtkRenderer class when importing from 3DS or VRML files? I would expect the following to give you the number of objects (i.e. actors) only: vtkVRMLImporter *importer = vtkVRMLImporter::New(); // or vtk3DSImporter *importer = vtk3DSImporter::New(); importer->SetRenderWindow(your_render_window); importer->SetFileName(filename); importer->Read(); int nactors = importer->GetRenderer()->GetActors()->GetNumberOfItems(); (this is from memory; so there might be a typo in there) Did you try that? Of course, this all relies on the fact that the different objects were in fact saved as different objects by the application that generated the VRML/3DS file in the first place. -- 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 arj at tm-net.dk Tue Apr 23 11:04:14 2002 From: arj at tm-net.dk (Allan Reinhold Jensen) Date: Tue, 23 Apr 2002 17:04:14 +0200 Subject: [vtkusers] Importing 3DS and VRML files. Message-ID: Hi Rob. I did try the GetNumberOfItems() function, however this only tells me how many items the list contains, and not their type. The item list contains geometrical objects as well as lights, cameras etc. If I enable the debugger with importer->DebugOn(), I can see it loads a set of polygons, a camera, and some lightsources. This is all printed out in the debug window. Best regards, Allan Reinhold * Allan Reinhold - mailto:arj at tm-net.dk * Theilgaard Mortensen A/S * Niels Hemmingsens Gade 9, 4. * 1153 K?benhavn K * Pho/Mob: +45 33448555 / 26818969 * http://www.tm-net.dk "We collaboratively negotiate progressive deliverables such that we may continue to proactively revolutionize scalable content" - Dilbert, 2001 Robert Belleman To: Allan Reinhold Jensen Subject: Re: [vtkusers] Importing 3DS and VRML files. 23-04-2002 16:39 Allan, On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > Is there any way to get the number og geometric objects from the > vtkRenderer class when importing from 3DS or VRML files? I would expect the following to give you the number of objects (i.e. actors) only: vtkVRMLImporter *importer = vtkVRMLImporter::New(); // or vtk3DSImporter *importer = vtk3DSImporter::New(); importer->SetRenderWindow(your_render_window); importer->SetFileName(filename); importer->Read(); int nactors = importer->GetRenderer()->GetActors()->GetNumberOfItems(); (this is from memory; so there might be a typo in there) Did you try that? Of course, this all relies on the fact that the different objects were in fact saved as different objects by the application that generated the VRML/3DS file in the first place. -- 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 robbel at science.uva.nl Tue Apr 23 11:13:40 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Tue, 23 Apr 2002 17:13:40 +0200 Subject: [vtkusers] Importing 3DS and VRML files. In-Reply-To: ; from arj@tm-net.dk on Tue, Apr 23, 2002 at 05:04:14PM +0200 References: Message-ID: <20020423171340.B23112@cruz.science.uva.nl> On Tue, Apr 23, 2002 at 05:04:14PM +0200, Allan Reinhold Jensen wrote: > I did try the GetNumberOfItems() function, however this only tells me how > many items the list contains, and not their type. The item list contains > geometrical objects as well as lights, cameras etc. If I enable the > debugger with importer->DebugOn(), I can see it loads a set of polygons, a > camera, and some lightsources. This is all printed out in the debug window. That's weird; the importer should read actors, lights and cameras separately. Well; I'm assuming that's what the protected methods ImportActors(), ImportCameras() and ImportLights() do in vtkImporter... And as these things are put into different collections, I would expect you get the number of items in that collection only (although I'm not sure what happens when there are multiple cameras, since there is no such thig as a vtkCameraCollection). What do you get when you call this?: int nlights = importer->GetRenderer()->GetLights()->GetNumberOfItems(); -- 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 berk.geveci at kitware.com Tue Apr 23 11:17:38 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 23 Apr 2002 11:17:38 -0400 Subject: [vtkusers] Importing 3DS and VRML files. In-Reply-To: References: Message-ID: <1019575060.22851.13.camel@caemlyn.kitwarein.com> You should be able to iterate over the items and inquire the class/superclass of each with the virtual IsA and IsTypeOf methods. -Berk On Tue, 2002-04-23 at 11:04, Allan Reinhold Jensen wrote: > > Hi Rob. > > I did try the GetNumberOfItems() function, however this only tells me how > many items the list contains, and not their type. The item list contains > geometrical objects as well as lights, cameras etc. If I enable the > debugger with importer->DebugOn(), I can see it loads a set of polygons, a > camera, and some lightsources. This is all printed out in the debug window. > > Best regards, > > Allan Reinhold > > * Allan Reinhold - mailto:arj at tm-net.dk > * Theilgaard Mortensen A/S > * Niels Hemmingsens Gade 9, 4. > * 1153 K?benhavn K > * Pho/Mob: +45 33448555 / 26818969 > * http://www.tm-net.dk > > "We collaboratively negotiate progressive deliverables such that we may > continue to proactively revolutionize scalable content" - Dilbert, 2001 > > > > Robert > Belleman To: Allan Reinhold Jensen > e.uva.nl> Subject: Re: [vtkusers] Importing 3DS and VRML files. > > 23-04-2002 > 16:39 > > > > > > > Allan, > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > Is there any way to get the number og geometric objects from the > > vtkRenderer class when importing from 3DS or VRML files? > > I would expect the following to give you the number of objects (i.e. > actors) only: > > vtkVRMLImporter *importer = vtkVRMLImporter::New(); > // or vtk3DSImporter *importer = vtk3DSImporter::New(); > importer->SetRenderWindow(your_render_window); > importer->SetFileName(filename); > importer->Read(); > > int nactors = importer->GetRenderer()->GetActors()->GetNumberOfItems(); > > (this is from memory; so there might be a typo in there) > Did you try that? > > Of course, this all relies on the fact that the different objects > were in fact saved as different objects by the application that > generated the VRML/3DS file in the first place. > > -- 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/ [] > > > > > _______________________________________________ > 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 goodwin.lawlor at ucd.ie Tue Apr 23 11:04:26 2002 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 23 Apr 2002 16:04:26 +0100 Subject: [vtkusers] how to get outline from CT images References: <20020422225117.19460.qmail@sina.com> Message-ID: <003d01c1ead8$2a482050$179701c1@highcross> A quick outline: 1. Segment your ct image to a set of binary images (use vtkImageThreshold, vtkImageIslandRemove) 2. Use vtkMarchingSquares to extract 2d outlines (maybe pre-smooth with vtkImageGaussianSmooth) 3. Use vtkStripper to create polylines from the unordered lines from MS Cad package format is a tricky one... vtkSTLWriter doesn't spit out polylines. If you have AutoCad you can write a VB script to read the polyline coords and insert them into a scene as a closed spline. Check which VTK writer/exporter writes out polylines and then see if your CAD package can read the format HTH Goodwin ----- Original Message ----- From: "ljhfdy4" To: Sent: Monday, April 22, 2002 11:51 PM Subject: [vtkusers] how to get outline from CT images > Hi, friends: > > I have a question about how to get the outline from CT images. What I want to do is extracting the outline of a special tissue like bone or skin from one slice of CT (threshold may needed). In my idea the outline should be polyline, but I am not sure which functions can do this work exactly. Also how can i save the extracted polyline into a format the CAD packages can read? If impossible, image format is ok too. > > Thanks a lot for your help. > > > Ljh > ______________________________________ > > =================================================================== > ???????????????? (http://mail.sina.com.cn) > ?????????????????????????????????????????????? (http://classad.sina.com.cn/2shou/) > _______________________________________________ > 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 dsaez at iti.upv.es Tue Apr 23 12:50:16 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Tue, 23 Apr 2002 18:50:16 +0200 Subject: [vtkusers] Building VTK on MAC OSX Message-ID: <20020423164752.2EB4515EA24@mailborg.iti.upv.es> Hello, I am new in VTK's world. I have tried to build VTK on a MAC OS X but I have had a lot of problems. I have read the archives and I think my problem isn't solved there. I have done all the changes in the Rendering directory files (__APPLE__ by VTK_USE_QUARTZ) and in the CMakeList.txt and the options in CMakeCache.txt are OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL VTK_USE_QUARTZ:BOOL=ON VTK_USE_RENDERING:BOOL=ON VTK_USE_X:BOOL=OFF but when I do make, it is produced the next error: /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such file or directory I have looked for the gl.h in my system and I've found the next file: /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h then, I have put this directory in the OPENGL_INCLUDE_PATH but the problem continues. I would like someone to help me, please. Thank you Daniel S?ez. From dean.inglis at on.aibn.com Tue Apr 23 16:19:18 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Tue, 23 Apr 2002 13:19:18 -0700 Subject: [vtkusers] vtkImagePlaneWidget.cxx Message-ID: Hi all, officially added vtkImagePlaneWidget.cxx in vtk/Hybrid: a widget that allows interactive (orthogonal) slicing through vtkImageData sets...left, middle button do the pushing of the slice plane, right button does window/level. enjoy, Dean From niemeijer at science-and-technology.nl Tue Apr 23 13:53:51 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Tue, 23 Apr 2002 19:53:51 +0200 Subject: [vtkusers] Building VTK on MAC OSX In-Reply-To: <20020423164752.2EB4515EA24@mailborg.iti.upv.es> Message-ID: <11E2E98F-56E3-11D6-8A5E-00039383F730@science-and-technology.nl> Hi Daniel, If you want to compile for Quartz then you don't have to change the __APPLE__ definition checks to VTK_USE_QUARTZ. If you do apply the changes then one extra thing has to be added in order to get compiling for Quartz to work again. In the Rendering/CMakeLists.txt you have to add the line --- ADD_DEFINITIONS(-DVTK_USE_QUARTZ) -- in the 'IF (APPLE) IF (VTK_USE_QUARTZ)' section. Maybe a good time to summarize the possibillities you can use at the moment and how to get them to work: - If you have VTK 4.0 and want to compile with Quartz support then all you have to do is set VTK_USE_QUARTZ to ON, VTK_USE_X to OFF and set the OPENGL_LIBRARY to -framework Appkit -framework OpenGL. (No need to change the __APPLE__ definition checks) - If you use the CVS version of VTK and want to compile with Quartz support then the OPENGL_LIBRARY setting will automatically be set properly (make sure that you also use the CVS version of CMake! And again no need to change the __APPLE__ defintion checks). - If you have VTK 4.0 and want to compile with X11 support then follow the instructions you found in the mailinglist archive and add the ADD_DEFINITIONS setting so you will also be able to compile with Quartz support from the same sourcetree. - If you use the CVS version of VTK and want to compile with X11 support then please have some patience (or drop me an e-mail if you really can't wait ;-). As I understood from Yves, he will soon be adding the patch to CVS that will support both X11 and Quartz builds of VTK on Mac OS X. Regards, Sander On dinsdag, april 23, 2002, at 06:50 , Daniel S?ez Domingo wrote: > Hello, > > I am new in VTK's world. I have tried to build VTK on a MAC OS X > but I > have had a lot of problems. > I have read the archives and I think my problem isn't solved there. > > I have done all the changes in the Rendering directory files (__APPLE__ > by > VTK_USE_QUARTZ) and in the CMakeList.txt and the options in > CMakeCache.txt are > OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > VTK_USE_QUARTZ:BOOL=ON > VTK_USE_RENDERING:BOOL=ON > VTK_USE_X:BOOL=OFF > > but when I do make, it is produced the next error: > /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such > file or > directory > > > I have looked for the gl.h in my system and I've found the next file: > > /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > then, I have put this directory in the OPENGL_INCLUDE_PATH > > but the problem continues. > > I would like someone to help me, please. > > Thank you > > Daniel S?ez. > _______________________________________________ > 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 dreed at capital.edu Tue Apr 23 15:42:46 2002 From: dreed at capital.edu (Dave Reed) Date: Tue, 23 Apr 2002 15:42:46 -0400 (EDT) Subject: [vtkusers] ClassifyFirst vs. InterpolateFirst Message-ID: <200204231942.g3NJgkQ24837@fourier.capital.edu> Can anyone explain the difference between these two compositing functions for me? vtkVolumeRayCastCompositeFunction::SetCompositeMethodToInterpolateFirst vtkVolumeRayCastCompositeFunction::SetCompositeMethodToClassifyFirst And in general, is there somewhere that explains concepts like this? I have the Prentice Hall VTK book and have looked at the online HTML documentation. I took a quick glance at the vtkVolumeRayCastCompositeFunction.cxx file but I couldn't decipher the differences between: CastRay_TrilinVertices_Unshaded CastRay_TrilinSample_UnShaded >From the looks of the table of contents it does not appear that the manual Kitware sells will help with this type of information or am I wrong? Thanks, Dave From hsalas at grupomar.com Tue Apr 23 16:52:05 2002 From: hsalas at grupomar.com (L.O.Q. Hector Salas) Date: Tue, 23 Apr 2002 15:52:05 -0500 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #969 - 12 msgs References: <20020423194502.BBF4E1ABC5@public.kitware.com> Message-ID: <000501c1eb08$baa62180$1001a8c0@grupomar.com> Amor est?s all?? ----- Original Message ----- From: To: Sent: Tuesday, April 23, 2002 2:44 PM Subject: vtkusers digest, Vol 1 #969 - 12 msgs > Send vtkusers mailing list submissions to > vtkusers at public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request at public.kitware.com > > You can reach the person managing the list at > vtkusers-admin at public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Importing 3DS and VRML files. (Allan Reinhold Jensen) > 2. Problems with VtkColorBar (Giancarlo Amati) > 3. Problems with VTK and PyQt 3.1 (Prof. Andreas Gerber) > 4. Re: Importing 3DS and VRML files. (Robert Belleman) > 5. Re: Importing 3DS and VRML files. (Allan Reinhold Jensen) > 6. Re: Importing 3DS and VRML files. (Robert Belleman) > 7. Re: Importing 3DS and VRML files. (Berk Geveci) > 8. Re: how to get outline from CT images (Goodwin Lawlor) > 9. Building VTK on MAC OSX (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) > 10. vtkImagePlaneWidget.cxx (Dean Inglis) > 11. Re: Building VTK on MAC OSX (Sander Niemeijer) > 12. ClassifyFirst vs. InterpolateFirst (Dave Reed) > > --__--__-- > > Message: 1 > To: vtkusers at public.kitware.com > From: "Allan Reinhold Jensen" > Date: Tue, 23 Apr 2002 15:09:16 +0200 > Subject: [vtkusers] Importing 3DS and VRML files. > > Hi. > > Is there any way to get the number og geometric objects from the > vtkRenderer class when importing from 3DS or VRML files? I am in the > process of making a small command line tool using C++ and VTK which can= > > read a 3DS or VRML file and save it into a VTK PolyData file. The tool > works fine, but if the file contains more than one object, I would like= > to > print out a warning to the user. I can only seem to find the total numb= > er > of objects, including lights and cameras, and furthermore, all objects > imported from the 3DS or VRML file are of type vtkOpenGLActor, which ma= > kes > it hard to determine type (light, camera etc). > > Any suggestions? Feel free to mail any answer. > > Best regards, > Allan Reinhold > > * Allan Reinhold - mailto:arj at tm-net.dk > * Theilgaard Mortensen A/S > * Niels Hemmingsens Gade 9, 4. > * 1153 K=F8benhavn K > * Pho/Mob: +45 33448555 / 26818969 > * http://www.tm-net.dk > > "We collaboratively negotiate progressive deliverables such that we may= > > continue to proactively revolutionize scalable content" - Dilbert, 200= > 1= > > > > --__--__-- > > Message: 2 > Date: Tue, 23 Apr 2002 16:03:55 +0200 (CEST) > From: Giancarlo Amati > To: > Subject: [vtkusers] Problems with VtkColorBar > > Hi everybody, > > I have this question, I'm mapping X, and Y and Z coordinate in a color > bar. I used vtkScalarBarActor and I have created one for X , one for Y and > one for Z. > I add my Bar to the renderer with AddActor2D and I remove it wit > RemoveActor. The problem is that I create the three bars with the same > font caracther and with the same width size, but when I switch from a > color bar to another my bars change width and caracther size. > > Could be a bug of Vtk or am I forgotting something? > When I switch to another bar I siply remove the current bar from the > renderer and I will add the new that I want to display. > > Can anybody help me? > > Thank you very much and sorry for my english. > > Giancarlo > > -- > ---------------------------------------- > dott. Giancarlo Amati | > (amati at ira.cnr.it) | > | > National Research Council | > RadioAstronomical Institute | > office phone n. +39 051 6399405 | > via Gobetti 101 - Bologna (Italy) | > ---------------------------------------- > > > --__--__-- > > Message: 3 > From: "Prof. Andreas Gerber" > Reply-To: gerber at fh-biberach.de > Organization: Fachhochschule Biberach > To: vtkusers at public.kitware.com > Date: Tue, 23 Apr 2002 16:38:49 +0200 > Subject: [vtkusers] Problems with VTK and PyQt 3.1 > > Hi, > I found a strange behaviour while trying to upgrade from PyQt 3.0 (QT 2.3) to > PyQt 3.1 (QT 3.0.3) under Suse 8.0 and vtk 4.0, python 2.2. The example code > in QVTKRenderWidget.py works well with both versions of PyQt. > But if I add a non-empty ToolBar to my application the main window doesn't > appear and CPU load reaches 100 %. > > Andreas > > --__--__-- > > Message: 4 > Date: Tue, 23 Apr 2002 16:39:10 +0200 > From: Robert Belleman > To: Allan Reinhold Jensen > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > Allan, > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > Is there any way to get the number og geometric objects from the > > vtkRenderer class when importing from 3DS or VRML files? > > I would expect the following to give you the number of objects (i.e. > actors) only: > > vtkVRMLImporter *importer = vtkVRMLImporter::New(); > // or vtk3DSImporter *importer = vtk3DSImporter::New(); > importer->SetRenderWindow(your_render_window); > importer->SetFileName(filename); > importer->Read(); > > int nactors = importer->GetRenderer()->GetActors()->GetNumberOfItems(); > > (this is from memory; so there might be a typo in there) > Did you try that? > > Of course, this all relies on the fact that the different objects > were in fact saved as different objects by the application that > generated the VRML/3DS file in the first place. > > -- 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/ [] > > --__--__-- > > Message: 5 > Subject: Re: [vtkusers] Importing 3DS and VRML files. > To: Robert Belleman > Cc: vtkusers at public.kitware.com > From: "Allan Reinhold Jensen" > Date: Tue, 23 Apr 2002 17:04:14 +0200 > > > Hi Rob. > > I did try the GetNumberOfItems() function, however this only tells me h= > ow > many items the list contains, and not their type. The item list contain= > s > geometrical objects as well as lights, cameras etc. If I enable the > debugger with importer->DebugOn(), I can see it loads a set of polygons= > , a > camera, and some lightsources. This is all printed out in the debug win= > dow. > > Best regards, > > Allan Reinhold > > * Allan Reinhold - mailto:arj at tm-net.dk > * Theilgaard Mortensen A/S > * Niels Hemmingsens Gade 9, 4. > * 1153 K=F8benhavn K > * Pho/Mob: +45 33448555 / 26818969 > * http://www.tm-net.dk > > "We collaboratively negotiate progressive deliverables such that we may= > > continue to proactively revolutionize scalable content" - Dilbert, 200= > 1 > > > = > = > > Robert = > = > > Belleman To: Allan Reinhold Jensen = > = > > e.com = > > e.uva.nl> Subject: Re: [vtkusers] Im= > porting 3DS and VRML files. = > > = > = > > 23-04-2002 = > = > > 16:39 = > = > > = > = > > = > = > > > > > > Allan, > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > Is there any way to get the number og geometric objects from the > > vtkRenderer class when importing from 3DS or VRML files? > > I would expect the following to give you the number of objects (i.e. > actors) only: > > vtkVRMLImporter *importer =3D vtkVRMLImporter::New(); > // or vtk3DSImporter *importer =3D vtk3DSImporter::New(); > importer->SetRenderWindow(your_render_window); > importer->SetFileName(filename); > importer->Read(); > > int nactors =3D importer->GetRenderer()->GetActors()->GetNumberOfItem= > s(); > > (this is from memory; so there might be a typo in there) > Did you try that? > > Of course, this all relies on the fact that the different objects > were in fact saved as different objects by the application that > generated the VRML/3DS file in the first place. > > -- 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/ = > [] > > > = > > > > --__--__-- > > Message: 6 > Date: Tue, 23 Apr 2002 17:13:40 +0200 > From: Robert Belleman > To: Allan Reinhold Jensen > Cc: vtkusers at public.kitware.com > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > On Tue, Apr 23, 2002 at 05:04:14PM +0200, Allan Reinhold Jensen wrote: > > I did try the GetNumberOfItems() function, however this only tells me how > > many items the list contains, and not their type. The item list contains > > geometrical objects as well as lights, cameras etc. If I enable the > > debugger with importer->DebugOn(), I can see it loads a set of polygons, a > > camera, and some lightsources. This is all printed out in the debug window. > > That's weird; the importer should read actors, lights and cameras > separately. Well; I'm assuming that's what the protected methods > ImportActors(), ImportCameras() and ImportLights() do in vtkImporter... > > And as these things are put into different collections, I would expect > you get the number of items in that collection only (although I'm not > sure what happens when there are multiple cameras, since there is no > such thig as a vtkCameraCollection). > > What do you get when you call this?: > > int nlights = importer->GetRenderer()->GetLights()->GetNumberOfItems(); > > -- 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/ [] > > --__--__-- > > Message: 7 > Subject: Re: [vtkusers] Importing 3DS and VRML files. > From: Berk Geveci > To: Allan Reinhold Jensen > Cc: Robert Belleman , > vtkusers > Date: 23 Apr 2002 11:17:38 -0400 > > You should be able to iterate over the items and inquire the=20 > class/superclass of each with the virtual IsA and IsTypeOf=20 > methods. > > -Berk > > On Tue, 2002-04-23 at 11:04, Allan Reinhold Jensen wrote: > >=20 > > Hi Rob. > >=20 > > I did try the GetNumberOfItems() function, however this only tells me how > > many items the list contains, and not their type. The item list contains > > geometrical objects as well as lights, cameras etc. If I enable the > > debugger with importer->DebugOn(), I can see it loads a set of polygons, = > a > > camera, and some lightsources. This is all printed out in the debug windo= > w. > >=20 > > Best regards, > >=20 > > Allan Reinhold > >=20 > > * Allan Reinhold - mailto:arj at tm-net.dk > > * Theilgaard Mortensen A/S > > * Niels Hemmingsens Gade 9, 4. > > * 1153 K=F8benhavn K > > * Pho/Mob: +45 33448555 / 26818969 > > * http://www.tm-net.dk > >=20 > > "We collaboratively negotiate progressive deliverables such that we may > > continue to proactively revolutionize scalable content" - Dilbert, 2001 > >=20 > >=20 > > = > =20 > > Robert = > =20 > > Belleman To: Allan Reinhold Jensen rj at tm-net.dk> =20 > > com =20 > > e.uva.nl> Subject: Re: [vtkusers] Impo= > rting 3DS and VRML files. =20 > > = > =20 > > 23-04-2002 = > =20 > > 16:39 = > =20 > > = > =20 > > = > =20 > >=20 > >=20 > >=20 > >=20 > > Allan, > >=20 > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > > Is there any way to get the number og geometric objects from the > > > vtkRenderer class when importing from 3DS or VRML files? > >=20 > > I would expect the following to give you the number of objects (i.e. > > actors) only: > >=20 > > vtkVRMLImporter *importer =3D vtkVRMLImporter::New(); > > // or vtk3DSImporter *importer =3D vtk3DSImporter::New(); > > importer->SetRenderWindow(your_render_window); > > importer->SetFileName(filename); > > importer->Read(); > >=20 > > int nactors =3D importer->GetRenderer()->GetActors()->GetNumberOfItems(= > ); > >=20 > > (this is from memory; so there might be a typo in there) > > Did you try that? > >=20 > > Of course, this all relies on the fact that the different objects > > were in fact saved as different objects by the application that > > generated the VRML/3DS file in the first place. > >=20 > > -- Rob > >=20 > > -- > > [] 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/ [] > >=20 > >=20 > >=20 > >=20 > > _______________________________________________ > > This is the private VTK discussion list.=20 > > Please keep messages on-topic. Check the FAQ at: om/cgi-bin/vtkfaq> > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > --__--__-- > > Message: 8 > Date: Tue, 23 Apr 2002 16:04:26 +0100 > From: Goodwin Lawlor > Subject: Re: [vtkusers] how to get outline from CT images > To: ljhfdy4 , vtkusers at public.kitware.com > > A quick outline: > 1. Segment your ct image to a set of binary images (use vtkImageThreshold, > vtkImageIslandRemove) > 2. Use vtkMarchingSquares to extract 2d outlines (maybe pre-smooth with > vtkImageGaussianSmooth) > 3. Use vtkStripper to create polylines from the unordered lines from MS > > Cad package format is a tricky one... vtkSTLWriter doesn't spit out > polylines. If you have AutoCad you can write a VB script to read the > polyline coords and insert them into a scene as a closed spline. > > Check which VTK writer/exporter writes out polylines and then see if your > CAD package can read the format > > HTH > > Goodwin > ----- Original Message ----- > From: "ljhfdy4" > To: > Sent: Monday, April 22, 2002 11:51 PM > Subject: [vtkusers] how to get outline from CT images > > > > Hi, friends: > > > > I have a question about how to get the outline from CT images. What I want > to do is extracting the outline of a special tissue like bone or skin from > one slice of CT (threshold may needed). In my idea the outline should be > polyline, but I am not sure which functions can do this work exactly. Also > how can i save the extracted polyline into a format the CAD packages can > read? If impossible, image format is ok too. > > > > Thanks a lot for your help. > > > > > > Ljh > > ______________________________________ > > > > =================================================================== > > ???????????????? (http://mail.sina.com.cn) > > ?????????????????????????????????????????????? > (http://classad.sina.com.cn/2shou/) > > _______________________________________________ > > 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 > > > --__--__-- > > Message: 9 > From: Daniel =?iso-8859-15?q?S=E1ez=20Domingo?= > Organization: Instituto =?iso-8859-15?q?Tecnol=F3gico=20de?= =?iso-8859-15?q?=20Inform=E1tica?= > To: vtkusers at public.kitware.com > Date: Tue, 23 Apr 2002 18:50:16 +0200 > Subject: [vtkusers] Building VTK on MAC OSX > > Hello, > > I am new in VTK's world. I have tried to build VTK on a MAC OS X but I > have had a lot of problems. > I have read the archives and I think my problem isn't solved there. > > I have done all the changes in the Rendering directory files (__APPLE__ by > VTK_USE_QUARTZ) and in the CMakeList.txt and the options in CMakeCache.txt are > OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > VTK_USE_QUARTZ:BOOL=ON > VTK_USE_RENDERING:BOOL=ON > VTK_USE_X:BOOL=OFF > > but when I do make, it is produced the next error: > /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such file or > directory > > > I have looked for the gl.h in my system and I've found the next file: > > /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > then, I have put this directory in the OPENGL_INCLUDE_PATH > > but the problem continues. > > I would like someone to help me, please. > > Thank you > > Daniel S?ez. > > --__--__-- > > Message: 10 > From: "Dean Inglis" > To: > Date: Tue, 23 Apr 2002 13:19:18 -0700 > Subject: [vtkusers] vtkImagePlaneWidget.cxx > > Hi all, > > officially added vtkImagePlaneWidget.cxx in vtk/Hybrid: > > a widget that allows interactive (orthogonal) slicing through vtkImageData > sets...left, middle button do the pushing of the slice plane, right button > does window/level. > > enjoy, > Dean > > > --__--__-- > > Message: 11 > Date: Tue, 23 Apr 2002 19:53:51 +0200 > Subject: Re: [vtkusers] Building VTK on MAC OSX > Cc: vtkusers at public.kitware.com > To: =?ISO-8859-1?Q?Daniel_S=E1ez_Domingo?= > From: Sander Niemeijer > > Hi Daniel, > > If you want to compile for Quartz then you don't have to change the=20 > __APPLE__ definition checks to VTK_USE_QUARTZ. If you do apply the=20 > changes then one extra thing has to be added in order to get compiling=20= > > for Quartz to work again. In the Rendering/CMakeLists.txt you have to=20 > add the line > --- > ADD_DEFINITIONS(-DVTK_USE_QUARTZ) > -- > in the 'IF (APPLE) IF (VTK_USE_QUARTZ)' section. > > Maybe a good time to summarize the possibillities you can use at the=20 > moment and how to get them to work: > > - If you have VTK 4.0 and want to compile with Quartz support then all=20= > > you have to do is set VTK_USE_QUARTZ to ON, VTK_USE_X to OFF and set the=20= > > OPENGL_LIBRARY to -framework Appkit -framework OpenGL. (No need to=20 > change the __APPLE__ definition checks) > > - If you use the CVS version of VTK and want to compile with Quartz=20 > support then the OPENGL_LIBRARY setting will automatically be set=20 > properly (make sure that you also use the CVS version of CMake! And=20 > again no need to change the __APPLE__ defintion checks). > > - If you have VTK 4.0 and want to compile with X11 support then follow=20= > > the instructions you found in the mailinglist archive and add the=20 > ADD_DEFINITIONS setting so you will also be able to compile with Quartz=20= > > support from the same sourcetree. > > - If you use the CVS version of VTK and want to compile with X11 support=20= > > then please have some patience (or drop me an e-mail if you really can't=20= > > wait ;-). As I understood from Yves, he will soon be adding the patch to=20= > > CVS that will support both X11 and Quartz builds of VTK on Mac OS X. > > Regards, > Sander > > On dinsdag, april 23, 2002, at 06:50 , Daniel S=E1ez Domingo wrote: > > > Hello, > > > > I am new in VTK's world. I have tried to build VTK on a MAC OS X=20 > > but I > > have had a lot of problems. > > I have read the archives and I think my problem isn't solved there. > > > > I have done all the changes in the Rendering directory files = > (__APPLE__=20 > > by > > VTK_USE_QUARTZ) and in the CMakeList.txt and the options in=20 > > CMakeCache.txt are > > OPENGL_LIBRARY:FILEPATH=3D-framework AppKit -framework OpenGL > > VTK_USE_QUARTZ:BOOL=3DON > > VTK_USE_RENDERING:BOOL=3DON > > VTK_USE_X:BOOL=3DOFF > > > > but when I do make, it is produced the next error: > > /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such=20= > > > file or > > directory > > > > > > I have looked for the gl.h in my system and I've found the next file: > > > > /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > > > then, I have put this directory in the OPENGL_INCLUDE_PATH > > > > but the problem continues. > > > > I would like someone to help me, please. > > > > Thank you > > > > Daniel S=E1ez. > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at:=20 > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > --__--__-- > > Message: 12 > Date: Tue, 23 Apr 2002 15:42:46 -0400 (EDT) > From: Dave Reed > To: vtkusers at public.kitware.com > Subject: [vtkusers] ClassifyFirst vs. InterpolateFirst > > > Can anyone explain the difference between these two compositing > functions for me? > > vtkVolumeRayCastCompositeFunction::SetCompositeMethodToInterpolateFirst > vtkVolumeRayCastCompositeFunction::SetCompositeMethodToClassifyFirst > > And in general, is there somewhere that explains concepts like this? I > have the Prentice Hall VTK book and have looked at the online HTML > documentation. I took a quick glance at the > vtkVolumeRayCastCompositeFunction.cxx file but I couldn't decipher the > differences between: > > CastRay_TrilinVertices_Unshaded > CastRay_TrilinSample_UnShaded > > From the looks of the table of contents it does not appear that the > manual Kitware sells will help with this type of information or am I > wrong? > > Thanks, > Dave > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers at public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From minnus at eng.buffalo.edu Tue Apr 23 17:44:00 2002 From: minnus at eng.buffalo.edu (Martins D Innus) Date: Tue, 23 Apr 2002 17:44:00 -0400 (EDT) Subject: [vtkusers] VTK hangs with popen() ??? Message-ID: Hi, Is there a problem with using popen() in a VTK app? I've condensed the problem I've been having down to the code below. The popen call appears to never return. The app just hangs at that point. This only happens when there are more than 2 VTK components in the pipeline. That is, if I remove the vtkThreshold all is well. I've tried this with multiple sources (vtkVolume16Reader, etc) and multiple intermediate filters (vtkImageGaussianSmooth, etc). Also, it doesn't matter if the popen is set to read from or write to. There is no output from the popen()'d process. This is on a Redhat 7.2 box, tried with VTK 4.0 and also the snapshot from today. I'd appreciate any help on this, even to say it works somewhere else on a GNU/Linux box. Martins #include #include #include "vtkRenderWindowInteractor.h" #include "vtkImageGridSource.h" #include "vtkImageViewer.h" #include "vtkImageThreshold.h" using namespace std; void foo_cb(void*){ cout<<"Before popen"<SetUserMethod(foo_cb,NULL); vtkImageGridSource *grid=vtkImageGridSource::New(); grid->SetGridSpacing(16, 16, 0); grid->SetGridOrigin(0,0,0); grid->SetDataExtent(0,511,0,511,0,0); grid->SetLineValue(4096); grid->SetFillValue(0); grid->SetDataScalarTypeToShort(); vtkImageThreshold *thresh=vtkImageThreshold::New(); thresh->SetInput(grid->GetOutput()); thresh->ThresholdBetween(0,4096); thresh->SetOutValue(0); thresh->ReplaceOutOn(); thresh->ReplaceInOff(); vtkImageViewer *vwr=vtkImageViewer::New(); vwr->SetInput(thresh->GetOutput()); vwr->SetColorWindow(4096); vwr->SetColorLevel(2048); vwr->SetZSlice(0); vwr->SetSize(512,512); inter->SetRenderWindow(vwr->GetRenderWindow()); inter->Start(); return 0; } From M.Hardikar at asu.edu Tue Apr 23 20:25:45 2002 From: M.Hardikar at asu.edu (M.Hardikar at asu.edu) Date: Tue, 23 Apr 2002 17:25:45 -0700 (MST) Subject: [vtkusers] Help with Boolean operations Message-ID: Dear Users, I have 2 cad files in STL format in 2 different files. I want to read in those files using STL reader and then I want to intersect those 2 CAD models. How can I do this? I am very new to VTK and any help would be valuable. Also I had a previous question about traversing vtkPropCollection and retrieving the actors and then selectively displaying few out of the entire collection. Can this be done? Regards, Mahesh. From glgraf at asu.edu Tue Apr 23 20:35:31 2002 From: glgraf at asu.edu (Gary L. Graf) Date: Tue, 23 Apr 2002 17:35:31 -0700 Subject: [vtkusers] Adding multiple objects to renderer Message-ID: <3CC5FDD3.9B0F72B5@asu.edu> Hi, I am relatively new to vtk and I have a dynamic list of geometric data which, dependent upon the user input at any given time, may or may not require rendering. I currently loop through the list and find those that should be rendered, read the data into a vtkStructuredPoints, add scalars, run it through some filters, add it to a mapper, then on to the renderer. The problem is, successive objects being added to the scene will overwrite the vtk type variables in the loop and I end up displaying only the last object in my list. How can I go about adding multiple objects to the scene without knowing in advance how many there are? Thanks - Gary From suh at rpi.edu Wed Apr 24 01:23:11 2002 From: suh at rpi.edu (suhai) Date: Tue, 23 Apr 2002 22:23:11 -0700 Subject: [vtkusers] Patented library. Message-ID: <020201c1eb50$207d2cf0$678c7180@suhai> Dear All I was wondering how to use the patented library. I just used the Cmake to generate the patented library and DLL files. I put it in to the vtk40/bin directory, or add the lib file to my project file. But the compiler can not link the library. It is so strange. The following is error message. test4.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkDecimate * __cdecl vtkDecimate::New(void)" (__imp_?New at vtkDecimate@@SAPAV1 at XZ) test4.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkMarchingCubes::SetValue(int,float)" (__imp_?SetValue at vtkMarchingCubes@@QAEXHM at Z) test4.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkMarchingCubes * __cdecl vtkMarchingCubes::New(void)" (__imp_?New at vtkMarchingCubes@@SAPAV1 at XZ) Debug/test4.exe : fatal error LNK1120: 3 unresolved externals Error executing link.exe. test4.exe - 4 error(s), 0 warning(s) I really need your help about it. Thanks a lot -------------- next part -------------- An HTML attachment was scrubbed... URL: From suh at rpi.edu Wed Apr 24 01:39:06 2002 From: suh at rpi.edu (suhai) Date: Tue, 23 Apr 2002 22:39:06 -0700 Subject: [vtkusers] Voulme Rendering Message-ID: <020b01c1eb52$59b40460$678c7180@suhai> Dear All I am fresher in VTK. Now I try to reconstruct a series of 2D ultrasound image to 3D using VoulmeRendering. My dataset is BMP grey image(0-255, one byte per pixel). I use threshold to get rid of some noise and use gaussian smooth to smooth the original image and then to render it. But I can not get the right result. I used another comerical software can succeed in voulmerendering those dataset. I do not know why? Could anybody help me to figure it out? The following is the source code I used. package require vtk package require vtkinteraction # Create the standard renderer, render window # and interactor vtkRenderer ren1 vtkRenderWindow renWin renWin AddRenderer ren1 vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkBMPReader reader reader SetDataExtent 0 253 0 161 1 184 reader SetFilePrefix "D:/VTK40/VTKDATA/Data/babybmp/s1" vtkImageIslandRemoval2D islandRemover islandRemover SetAreaThreshold 4 islandRemover SetIslandValue -1 islandRemover SetReplaceValue 1.0 islandRemover SetInput [reader GetOutput]; vtkImageGaussianSmooth gaussian gaussian SetStandardDeviations 1.0 1.0 1.0 gaussian SetRadiusFactors 1.0 1.0 1.0 gaussian SetInput [islandRemover GetOutput] vtkImageThreshold selectTissue selectTissue ThresholdBetween 66.0 255.0 selectTissue ReplaceInOff selectTissue SetOutValue 0.0 selectTissue SetInput [gaussian GetOutput] # Create transfer mapping scalar value to opacity vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 66 0.259 opacityTransferFunction AddPoint 255 1.0 # Create transfer mapping scalar value to color vtkColorTransferFunction colorTransferFunction colorTransferFunction AddRGBPoint 0.0 0.0 0.0 0.0 colorTransferFunction AddRGBPoint 66.0 0.259 0.259 0.3 colorTransferFunction AddRGBPoint 255.0 1.0 1.0 0.3 # The property describes how the data will look vtkVolumeProperty volumeProperty volumeProperty SetColor colorTransferFunction volumeProperty SetScalarOpacity opacityTransferFunction # The mapper / ray cast function know how to render the data vtkVolumeRayCastCompositeFunction compositeFunction vtkVolumeRayCastMapper volumeMapper volumeMapper SetVolumeRayCastFunction compositeFunction volumeMapper SetInput [reader GetOutput] # The volume holds the mapper and the property and # can be used to position/orient the volume vtkVolume volume volume SetMapper volumeMapper volume SetProperty volumeProperty ren1 AddVolume volume renWin Render proc TkCheckAbort {} { set foo [renWin GetEventPending] if {$foo != 0} {renWin SetAbortRender 1} } renWin SetAbortCheckMethod {TkCheckAbort} iren SetUserMethod {wm deiconify .vtkInteract} iren Initialize wm withdraw . Thanks a lot -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Tue Apr 23 22:59:14 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 24 Apr 2002 03:59:14 +0100 Subject: [vtkusers] BUG: Attached Script (Transparency bug) Message-ID: <001001c1eb3c$16e84350$0100a8c0@tigger> RE: Transparency Bug Attached script creates lookuptable with alpha zero. Front sphere is blue(=background colour, try changing it!), when it should be transparent Changing alpharange in Lookuptable to 1.0 1.0 (see script) shows nicely coloured sphere. Suspect dodgy behaviour in mapper, but don't have time to look myself. Can anyone verify (latest vtk nightly a few days ago) - that this is a genuine bug JB -------------- next part -------------- A non-text attachment was scrubbed... Name: spheres.tcl Type: application/octet-stream Size: 1584 bytes Desc: not available URL: From jwchiu at csie.nctu.edu.tw Wed Apr 24 00:25:34 2002 From: jwchiu at csie.nctu.edu.tw (Chih-Wei Chiu) Date: Wed, 24 Apr 2002 12:25:34 +0800 Subject: [vtkusers] Multiple Rendering Windows Sharing a Common Camera (Interactor) Message-ID: <007d01c1eb48$139af6a0$3ed2718c@cggmpc2> I want to have many scalar/vector fields rendered in their own rendering window, but they all use the same camera. That is, when I roate the camera in one window, the other windows rotates simultaneously, and vice versa. It seems impossible under current VTK implementation, since an interactor can only have one rendering window (vtkRenderingWindowInteractor::SetRenderingWindow() instead of vtkRenderingWindowInteractor::AddRenderingWindow() ). What should I do? From jclopez+vtk at andrew.cmu.edu Wed Apr 24 00:57:52 2002 From: jclopez+vtk at andrew.cmu.edu (JL) Date: Wed, 24 Apr 2002 00:57:52 -0400 Subject: [vtkusers] Offscreen rendering and text mapper. Message-ID: Hi, I'm running into a minor problem while using off-screen rendering. Here's the scenario: vtk version: 3.2 OS: Linux 2.4 (Red-Hat 7.1). Mesa version: 4.0.1 I have a very simple program that uses off-screen rendering (i.e., it calls renWin->OffScreenRenderingOn()). It works fine (no window pops-up, no X server connection is required, etc). I have a second program that is slightly more elaborated. For instance, it creates and uses vtkScalarBarActor and vtkCubeAxesActor2D objects. When I execute the second program it prints the following message: ERROR: In ../../src/graphics/vtkXRenderWindow.cxx, line 176 vtkMesaRenderWindow (0x8057dd8): bad X server connection. after that the program 'seg faults'. After exploring a little bit here and there, it seems to me that the problem is caused by the vtkXTextMapper which is used by both vtkScalarBarActor and vtkCubeAxesActor2D. My questions are: 1. Does this problem occur only with vtkXTextMapper, or does it occur with other 2D actors/mappers? 2. More important, is there a way I can use off-screen rendering with these actors / mappers? or 3. is this a well known 'feature'? (I skimmed the mailing list and didn't find anything relevant). 4. If so, do I have to use a different off-screen rendering approach, like use vtkOpenGLOffscreenRenderWindow? 5. Or is this a 'bug' that has been fixed in the CVS version or in a later release (i.e. 4.x)? Thanks in advance for any information you can provide, -- Julio P.S.: If it is of any help, I've included additional details about how and where the problem occurs. ---------------------------------------------------------------------- I tracked the problem down to: vtkXTextMapper::DetermineSize(vtkViewport* viewport, int* size) near the beginning, this method tries to get the display id -> Display* displayId = (Display*) window->GetGenericDisplayId(); this in turns calls vtkXRenderWindow::GetDisplayId(), which in turn calls XOpenDisplay((char *)NULL); XOpenDisplay returns NULL since there's no X server running (i.e., the DISPLAY variable is not set), but that's intended since the goal is to do off-screen rendering. And here is where the error message gets printed, and a NULL display is returned. later vtkXTextMapper::DetermineSize(...) calls XLoadFont(displayId, fontname ); with a NULL display and this is where the program crashes. Here's a trace of the stack when the program crashes. #0 0x414c5cbe in XListFonts () from /usr/X11R6/lib/libX11.so.6 #1 0x40f9789c in vtkXTextMapper::DetermineSize(vtkViewport*, int*) () at eval.c:41 #2 0x40f97426 in vtkXTextMapper::GetSize(vtkViewport*, int*) () at eval.c:41 #3 0x40f79e13 in vtkScalarBarActor::SizeTitle(int*, int*, vtkViewport*) () at eval.c:41 #4 0x40f786ef in vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport*) () at eval.c:41 #5 0x4044e4be in vtkRenderer::UpdateGeometry() () at eval.c:41 #6 0x404f2cdd in vtkMesaRenderer::DeviceRender() () at eval.c:41 #7 0x4044d882 in vtkRenderer::Render() () at eval.c:41 #8 0x40451e10 in vtkRendererCollection::Render() () at eval.c:41 #9 0x40449657 in vtkRenderWindow::DoStereoRender() () at eval.c:41 #10 0x404495f4 in vtkRenderWindow::DoFDRender() () at eval.c:41 #11 0x40449174 in vtkRenderWindow::DoAARender() () at eval.c:41 #12 0x4044891c in vtkRenderWindow::Render() () at eval.c:41 #13 0x4050b1e9 in vtkXRenderWindow::Render() () at eval.c:41 #14 0x0804ac33 in ?? () at eval.c:41 #15 0x0804b1bc in ?? () at eval.c:41 #16 0x411b6306 in __libc_start_main (main=0x804b170, argc=10, From roland.schwarz at chello.at Wed Apr 24 02:32:26 2002 From: roland.schwarz at chello.at (Roland Schwarz) Date: Wed, 24 Apr 2002 08:32:26 +0200 Subject: [vtkusers] SampleMFC memory leaks References: <890E4A28-5693-11D6-8A5E-00039383F730@science-and-technology.nl> Message-ID: <000901c1eb59$d1969d10$133da8c0@zoo> ----- Original Message ----- From: "Sander Niemeijer" To: "Denny" Cc: Sent: Tuesday, April 23, 2002 10:24 AM Subject: Re: [vtkusers] SampleMFC memory leaks > As I understood from Roland Schwarz this crash has to do with problems > in vtkWin32OpenGLRenderWindow. > Look at the following mailinglist entries that also discusses a bug I > found in the same class: No sorry you got me wrong. The cited discussion as far as I remember had to do with some possible improvements, not necessities. the vtkWin32OpenGLRenderWindow is ok. The examples for MFC are bad. Unfortunately I also do not have a perfect example at hand. I simply found out how to circumvent the problems. They have to do with the fact, that views are destoyed before docs. And at this point docs are still holding resources (display lists in this case) belonging to the view. Releasing this resources crashes your app. One solution would be to have the mapper, actor and renderer members of the view instead of the doc. BTW: You should not connect a single mapper to multiple renderes anyway. Hope this helps. Roland From dnasoc at direcpc.com Wed Apr 24 04:54:39 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Wed, 24 Apr 2002 01:54:39 -0700 Subject: [vtkusers] surface mesh, visualize as tube? Message-ID: <3CC672CF.F3030013@direcpc.com> My 24 vectors represent radial measurements of pipe wall thickness vs pipe length. The measurements make a nice 24 pt. color surface plot, of Y vs length. My requirement now to display this as a tube, in other words, take my surface plot and wrap it around an axis. Is there an easy way to do this? Perhaps incorrectly, I started by taking the raw data and creating triangles and 3d geometry as vtk files. I think I am removing information by this step. What do you think? Randy any opinions on using the MayaVI tool for prototyping?. Thanks. From dnasoc at direcpc.com Wed Apr 24 04:54:54 2002 From: dnasoc at direcpc.com (Randy Dawson) Date: Wed, 24 Apr 2002 01:54:54 -0700 Subject: [vtkusers] surface mesh, visualize as tube? Message-ID: <3CC672DE.382DEFBA@direcpc.com> My 24 vectors represent radial measurements of pipe wall thickness vs pipe length. The measurements make a nice 24 pt. color surface plot, of Y vs length. My requirement now to display this as a tube, in other words, take my surface plot and wrap it around an axis. Is there an easy way to do this? Perhaps incorrectly, I started by taking the raw data and creating triangles and 3d geometry as vtk files. I think I am removing information by this step. What do you think? Randy any opinions on using the MayaVI tool for prototyping?. Thanks. From mininel.ml at gnbts.univ.trieste.it Wed Apr 24 03:04:00 2002 From: mininel.ml at gnbts.univ.trieste.it (stefano mininel) Date: Wed, 24 Apr 2002 09:04:00 +0200 Subject: [vtkusers] Multiple Rendering Windows Sharing a Common Camera (Interactor) References: <007d01c1eb48$139af6a0$3ed2718c@cggmpc2> Message-ID: <3CC658E0.BF17236A@gnbts.univ.trieste.it> "Link" camera and light of the different renderers. In my code I solved this with something like: " pRenderer2->SetActiveCamera(pRenderer1->GetActiveCamera()); pLight->SetPosition(pRenderer1->GetActiveCamera()->GetPosition()); pRenderer1->AddLight(pLight); pRenderer2->AddLight(pLight); " There are probably better ways to do this, but for my application this method works. Regards Stefano Mininel Chih-Wei Chiu wrote: > I want to have many scalar/vector fields rendered in their own rendering > window, but they all use the same camera. That is, when I roate the camera > in one window, the other windows rotates simultaneously, and vice versa. > > It seems impossible under current VTK implementation, since an interactor > can only have one rendering window > (vtkRenderingWindowInteractor::SetRenderingWindow() instead of > vtkRenderingWindowInteractor::AddRenderingWindow() ). > > What should I do? > > _______________________________________________ > 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 Apr 24 03:56:26 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 24 Apr 2002 13:26:26 +0530 Subject: [vtkusers] BUG: Attached Script (Transparency bug) In-Reply-To: <001001c1eb3c$16e84350$0100a8c0@tigger> References: <001001c1eb3c$16e84350$0100a8c0@tigger> Message-ID: <15558.25898.536576.774419@monster.linux.in> >>>>> "JB" == John Biddiscombe writes: JB> RE: Transparency Bug Attached script creates lookuptable with JB> alpha zero. Front sphere is blue(=background colour, try JB> changing it!), when it should be transparent JB> Changing alpharange in Lookuptable to 1.0 1.0 (see script) JB> shows nicely coloured sphere. JB> Suspect dodgy behaviour in mapper, but don't have time to look JB> myself. JB> Can anyone verify (latest vtk nightly a few days ago) - that JB> this is a genuine bug Yes, I can confirm this behaviour under Debian GNU/Linux. VTK version vtk version 4.1.1, vtk source $Revision: 1.1201 $, $Date: 2002/04/08 02:45:17 $ (GMT) Thats strange because I rebuilt the sources here on April 21, 2002. This looks like a small problem. vtkVersion has not been updated in a long while. prabhu From dsaez at iti.upv.es Wed Apr 24 04:28:33 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Wed, 24 Apr 2002 10:28:33 +0200 Subject: [vtkusers] Building VTK on MAC OSX In-Reply-To: <20020424081858.EF67E15EA24@mailborg.iti.upv.es> References: <20020424081858.EF67E15EA24@mailborg.iti.upv.es> Message-ID: <20020424082603.65BCC15EA24@mailborg.iti.upv.es> Thank you very much Sander, I have only had to add the ADD_DEFINITIONS line and the error has gone. Now I have other problem. I want use the wrappers for Tcl and JAVA but I don't know where the libraries are or if I have to install Tcl and Tk in my system. I would thank a lot if someone helps me Daniel S?ez > Hi Daniel, > > If you want to compile for Quartz then you don't have to change the > __APPLE__ definition checks to VTK_USE_QUARTZ. If you do apply the > changes then one extra thing has to be added in order to get compiling > for Quartz to work again. In the Rendering/CMakeLists.txt you have to > add the line > --- > ADD_DEFINITIONS(-DVTK_USE_QUARTZ) > --- > in the 'IF (APPLE) IF (VTK_USE_QUARTZ)' section. > > Maybe a good time to summarize the possibillities you can use at the > moment and how to get them to work: > > - If you have VTK 4.0 and want to compile with Quartz support then all > you have to do is set VTK_USE_QUARTZ to ON, VTK_USE_X to OFF and set the > OPENGL_LIBRARY to -framework Appkit -framework OpenGL. (No need to > change the __APPLE__ definition checks) > > - If you use the CVS version of VTK and want to compile with Quartz > support then the OPENGL_LIBRARY setting will automatically be set > properly (make sure that you also use the CVS version of CMake! And > again no need to change the __APPLE__ defintion checks). > > - If you have VTK 4.0 and want to compile with X11 support then follow > the instructions you found in the mailinglist archive and add the > ADD_DEFINITIONS setting so you will also be able to compile with Quartz > support from the same sourcetree. > > - If you use the CVS version of VTK and want to compile with X11 support > then please have some patience (or drop me an e-mail if you really can't > wait ;-). As I understood from Yves, he will soon be adding the patch to > CVS that will support both X11 and Quartz builds of VTK on Mac OS X. > > Regards, > Sander > > On dinsdag, april 23, 2002, at 06:50 , Daniel S?ez Domingo wrote: > >?Hello, > > > >? ? I am new in VTK's world. I have tried to build VTK on a MAC OS X > >?but I > >?have had a lot of problems. > >?I have read the archives and I think my problem isn't solved there. > > > >?I have done all the changes in the Rendering directory files (__APPLE__ > >?by > >?VTK_USE_QUARTZ) and in the CMakeList.txt and the options in > >?CMakeCache.txt are > >?OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > >?VTK_USE_QUARTZ:BOOL=ON > >?VTK_USE_RENDERING:BOOL=ON > >?VTK_USE_X:BOOL=OFF > > > >?but when I do make, it is produced the next error: > >?/usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such > >?file or > >?directory > > > > > >?I have looked for the gl.h in my system and I've found the next file: > > > >?/System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > > >?then, I have put this directory in the OPENGL_INCLUDE_PATH > > > >?but the problem continues. > > > >?I would like someone to help me, please. > > > >?Thank you > > > >?Daniel S?ez. > >?_______________________________________________ > >?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 niemeijer at science-and-technology.nl Wed Apr 24 04:38:39 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Wed, 24 Apr 2002 10:38:39 +0200 Subject: [vtkusers] Building VTK on MAC OSX In-Reply-To: <20020424082603.65BCC15EA24@mailborg.iti.upv.es> Message-ID: Hi Daniel, I myself am only working with the C++ interfaces, so I can't help you that much with the wrappers. I believe it should be possible to get the Tcl wrappers to work (I got a Tcl wrapper build with X11 once, but haven't tried to run anything with it yet). And I haven't heard of anyone working with the JAVA wrappers on Mac OS X yet. Maybe someone else on the list can help you further with this. Regards, Sander On woensdag, april 24, 2002, at 10:28 , Daniel S?ez Domingo wrote: > Thank you very much Sander, > > I have only had to add the ADD_DEFINITIONS line and the error has > gone. > > Now I have other problem. I want use the wrappers for Tcl and JAVA but I > don't know where the libraries are or if I have to install Tcl and Tk > in my > system. > > I would thank a lot if someone helps me > > Daniel S?ez From maraux at ondim.fr Wed Apr 24 05:12:42 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 24 Apr 2002 11:12:42 +0200 Subject: [vtkusers] how to flip vtkimagedata ? Message-ID: <001201c1eb70$309f1100$c000a8c0@ouessant> Hello, I would like to (horizontal) flip a vtkImageData before texturing. How can I do? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From jbiddiscombe at skippingmouse.co.uk Wed Apr 24 05:06:43 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 24 Apr 2002 10:06:43 +0100 Subject: [vtkusers] BUG: Attached Script (Transparency bug) References: <001001c1eb3c$16e84350$0100a8c0@tigger> <15558.25898.536576.774419@monster.linux.in> Message-ID: <001d01c1eb6f$5d8ca480$0100a8c0@tigger> > This looks like a small problem. vtkVersion has not been updated in a > long while. Watch out. You may have trouble. Unless I'm mistaken, vtkVersion is updated every night as part of a cron job. you might be linking a dodgy file somewhere. JB From ehrhardt at medinf.mu-luebeck.de Fri Apr 19 05:34:27 2002 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Fri, 19 Apr 2002 11:34:27 +0200 Subject: [vtkusers] Strange Behavior in vtkPointLocator (Bug?) References: <20020416203902.4EF4D1AB87@public.kitware.com> Message-ID: <3CBFE4A3.7BE521F0@medinf.mu-luebeck.de> Hi Folks, I do the following: vtkPolyData *data = ..... vtkPointLocator *locator = vtkPointLocator::New(); locator->SetDataSet(data); locator->BuildLocator(); And this crashs in BuildLocator(); because some of the Points in the dataset are outside the bounds! This is because vtkPolyData::ComputeBounds() only looks for points, which are connected with cells -- why ? (this is not effizient and not the expected behaviour) Jan -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- From burgert at ira.uka.de Wed Apr 24 05:35:22 2002 From: burgert at ira.uka.de (Oliver Burgert) Date: Wed, 24 Apr 2002 11:35:22 +0200 Subject: AW: [vtkusers] how to flip vtkimagedata ? Message-ID: <01734FCC8274D51199C50050DA20ACBC0AA1ED@i61p2.ira.uka.de> Hi Sebastien, try vtkImageFlip ... or did I miss something? HTH Oliver -----Urspr?ngliche Nachricht----- Von: Sebastien_MARAUX [mailto:maraux at ondim.fr] Gesendet: Mittwoch, 24. April 2002 11:13 An: vtk mailing list Betreff: [vtkusers] how to flip vtkimagedata ? Hello, I would like to (horizontal) flip a vtkImageData before texturing. How can I do? Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gowri.Gopalakrishnan at inteq.com Wed Apr 24 06:28:35 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Wed, 24 Apr 2002 05:28:35 -0500 Subject: [vtkusers] clear screen Message-ID: Hi All, I would like to clear the screen of any display before I do the step two in my routine. I tried renderer -> Clear(); followed by renderwindow->Render() Nothing happened. The screen still had the display from the previous step. Is there anything Else I should do to clear the screen?. Thanks Gowri -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsaez at iti.upv.es Wed Apr 24 06:35:38 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Wed, 24 Apr 2002 12:35:38 +0200 Subject: [vtkusers] Building VTK on MAC OSX with Tcl and JAVA Message-ID: <20020424103309.4C67E15EA22@mailborg.iti.upv.es> Hello, I have built VTK in a Mac OSX. Now I want to build it using tha wrappers for Tcl and JAVA. My problem is that I don't know where the Tcl/tk libraries are or if I have to install them. I would like to know the cmake options to build with tha wrappers. Thank you Daniel S?ez From zeger at cs.uu.nl Wed Apr 24 06:39:09 2002 From: zeger at cs.uu.nl (Zeger Knops) Date: Wed, 24 Apr 2002 12:39:09 +0200 Subject: [vtkusers] VC 7.0 .NET warnings + mutual information In-Reply-To: <01734FCC8274D51199C50050DA20ACBC0AA1ED@i61p2.ira.uka.de> Message-ID: <000701c1eb7c$444e2a90$3150d383@appen> Hi, I am using VTK nighties and since yesterday I'm using VC 7.0 .NET and I get a lot of warnings mainly: truncation warnings (C4305) , conversion warnings (C4244) and deprecation errors (C4995). I made the project file with the latest CVS of CMake. Any tips? Secondly, I have written a filter to compute the mutual information between two image data objects, is there any interest in this filter? Regards, Zeger Knops -------------- next part -------------- An HTML attachment was scrubbed... URL: From maraux at ondim.fr Wed Apr 24 08:07:18 2002 From: maraux at ondim.fr (Sebastien_MARAUX) Date: Wed, 24 Apr 2002 14:07:18 +0200 Subject: [vtkusers] pb with texture coordinates : it does not match mesh. Message-ID: <009c01c1eb88$94d2ff20$c000a8c0@ouessant> Hello again I have a (surface/DEM) mesh of 390*280 points (x,y) triangulated and decimated. I want to map a 1024*1024 BMP texture on it. When I map it, the texture is correctly mapped in x, but some clamping appears in y (ie the last values are repeated) which leads to a ugly "color barcode" at the top and bottom. Where do I do Something wrong ? To generate texture coords I used vtktexturemaptoplane. parameters: SRange : (0.0,1.0) TRange : (0.0,1.0) Normal : (0.0,1.0,0.0) Which I assumed would fill all my mesh. any reply would be appreciated. Sebastien MARAUX -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.hoffman at kitware.com Wed Apr 24 08:22:21 2002 From: bill.hoffman at kitware.com (William A. Hoffman) Date: Wed, 24 Apr 2002 08:22:21 -0400 Subject: [vtkusers] VC 7.0 .NET warnings + mutual information In-Reply-To: <000701c1eb7c$444e2a90$3150d383@appen> References: <01734FCC8274D51199C50050DA20ACBC0AA1ED@i61p2.ira.uka.de> Message-ID: <5.1.0.14.0.20020424082122.02f32f78@pop.nycap.rr.com> Turn on VTK_USE_ANSI_STDLIB and the deprecation stuff will go away. -Bill At 12:39 PM 4/24/2002 +0200, Zeger Knops wrote: >Hi, > > > >I am using VTK nighties and since yesterday I m using VC 7.0 .NET and I >get a lot of warnings mainly: truncation warnings (C4305) , conversion >warnings (C4244) and deprecation errors (C4995). I made the project file >with the latest CVS of CMake. Any tips? > > > >Secondly, I have written a filter to compute the mutual information >between two image data objects, is there any interest in this filter? > > > >Regards, > >Zeger Knops From berk.geveci at kitware.com Wed Apr 24 08:34:27 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 24 Apr 2002 08:34:27 -0400 Subject: [vtkusers] Offscreen rendering and text mapper. In-Reply-To: References: Message-ID: <1019651667.22867.23.camel@caemlyn.kitwarein.com> Hiho, This is a known problem (or feature, if you wish :-). Currently, accessing font information on X requires a connection to a server. I don't know if there is anybody with a solution out there but if there is, I will be more than happy to help incorporate it into VTK. -Berk On Wed, 2002-04-24 at 00:57, JL wrote: > Hi, > > I'm running into a minor problem while using off-screen rendering. > > Here's the scenario: > vtk version: 3.2 > OS: Linux 2.4 (Red-Hat 7.1). > Mesa version: 4.0.1 > > I have a very simple program that uses off-screen rendering (i.e., > it calls renWin->OffScreenRenderingOn()). It works fine (no window > pops-up, no X server connection is required, etc). > > I have a second program that is slightly more elaborated. For > instance, it creates and uses vtkScalarBarActor and > vtkCubeAxesActor2D objects. > > When I execute the second program it prints the following message: > > ERROR: In ../../src/graphics/vtkXRenderWindow.cxx, line 176 > vtkMesaRenderWindow (0x8057dd8): bad X server connection. > > after that the program 'seg faults'. > > After exploring a little bit here and there, it seems to me that > the problem is caused by the vtkXTextMapper which is used by > both vtkScalarBarActor and vtkCubeAxesActor2D. > > My questions are: > 1. Does this problem occur only with vtkXTextMapper, or does it > occur with other 2D actors/mappers? > 2. More important, is there a way I can use off-screen rendering > with these actors / mappers? or > 3. is this a well known 'feature'? (I skimmed the mailing list > and didn't find anything relevant). > 4. If so, do I have to use a different off-screen rendering > approach, like use vtkOpenGLOffscreenRenderWindow? > 5. Or is this a 'bug' that has been fixed in the CVS version or > in a later release (i.e. 4.x)? > > Thanks in advance for any information you can provide, > > -- Julio > > P.S.: If it is of any help, I've included additional details about how and > where the problem occurs. > > > > ---------------------------------------------------------------------- > > I tracked the problem down to: > > vtkXTextMapper::DetermineSize(vtkViewport* viewport, int* size) > > near the beginning, this method tries to get the display id -> > > Display* displayId = (Display*) window->GetGenericDisplayId(); > this in turns calls vtkXRenderWindow::GetDisplayId(), which in turn > calls XOpenDisplay((char *)NULL); > > XOpenDisplay returns NULL since there's no X server running (i.e., > the DISPLAY variable is not set), but that's intended since the goal > is to do off-screen rendering. And here is where the error message > gets printed, and a NULL display is returned. > > later vtkXTextMapper::DetermineSize(...) calls > XLoadFont(displayId, fontname ); with a NULL display and this is > where the program crashes. > > Here's a trace of the stack when the program crashes. > > #0 0x414c5cbe in XListFonts () from /usr/X11R6/lib/libX11.so.6 > #1 0x40f9789c in vtkXTextMapper::DetermineSize(vtkViewport*, int*) () > at eval.c:41 > #2 0x40f97426 in vtkXTextMapper::GetSize(vtkViewport*, int*) () at > eval.c:41 > #3 0x40f79e13 in vtkScalarBarActor::SizeTitle(int*, int*, vtkViewport*) () > at eval.c:41 > #4 0x40f786ef in vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport*) () > at eval.c:41 > #5 0x4044e4be in vtkRenderer::UpdateGeometry() () at eval.c:41 > #6 0x404f2cdd in vtkMesaRenderer::DeviceRender() () at eval.c:41 > #7 0x4044d882 in vtkRenderer::Render() () at eval.c:41 > #8 0x40451e10 in vtkRendererCollection::Render() () at eval.c:41 > #9 0x40449657 in vtkRenderWindow::DoStereoRender() () at eval.c:41 > #10 0x404495f4 in vtkRenderWindow::DoFDRender() () at eval.c:41 > #11 0x40449174 in vtkRenderWindow::DoAARender() () at eval.c:41 > #12 0x4044891c in vtkRenderWindow::Render() () at eval.c:41 > #13 0x4050b1e9 in vtkXRenderWindow::Render() () at eval.c:41 > #14 0x0804ac33 in ?? () at eval.c:41 > #15 0x0804b1bc in ?? () at eval.c:41 > #16 0x411b6306 in __libc_start_main (main=0x804b170, argc=10, > > > > _______________________________________________ > 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 Apr 24 08:39:59 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Wed, 24 Apr 2002 13:39:59 +0100 Subject: [vtkusers] clear screen References: Message-ID: <001801c1eb8d$268ac7f0$0100a8c0@tigger> > I tried renderer -> Clear(); followed by renderwindow->Render() Look at RenderWindow->Frame() it copies the back buffer to the front and you can clear it and copy it to screen without wasting a render... (Might need a few other tweaks here and there). JB From daeuber at ira.uka.de Wed Apr 24 08:41:14 2002 From: daeuber at ira.uka.de (=?iso-8859-1?Q?Sascha_D=E4uber?=) Date: Wed, 24 Apr 2002 14:41:14 +0200 Subject: AW: [vtkusers] VC 7.0 .NET warnings + mutual information In-Reply-To: <000701c1eb7c$444e2a90$3150d383@appen> Message-ID: <00d201c1eb8d$52706be0$40070d81@ira.uka.de> >[mutual information] is there any interest in this filter? aber hallo, yes, naturellement, si. best regards Sascha From jeff at cdnorthamerica.com Wed Apr 24 08:59:49 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Wed, 24 Apr 2002 08:59:49 -0400 Subject: [vtkusers] Offscreen rendering and text mapper. References: <1019651667.22867.23.camel@caemlyn.kitwarein.com> Message-ID: <3CC6AC45.40400@cdnorthamerica.com> Why wouldn't vtkWindowToImageFilter work in this case? -Jeff Berk Geveci wrote: >Hiho, > >This is a known problem (or feature, if you wish :-). Currently, >accessing font information on X requires a connection to a server. >I don't know if there is anybody with a solution out there but >if there is, I will be more than happy to help incorporate it >into VTK. > >-Berk > >On Wed, 2002-04-24 at 00:57, JL wrote: > >>Hi, >> >>I'm running into a minor problem while using off-screen rendering. >> >>Here's the scenario: >>vtk version: 3.2 >>OS: Linux 2.4 (Red-Hat 7.1). >>Mesa version: 4.0.1 >> >>I have a very simple program that uses off-screen rendering (i.e., >>it calls renWin->OffScreenRenderingOn()). It works fine (no window >>pops-up, no X server connection is required, etc). >> >>I have a second program that is slightly more elaborated. For >>instance, it creates and uses vtkScalarBarActor and >>vtkCubeAxesActor2D objects. >> >>When I execute the second program it prints the following message: >> >>ERROR: In ../../src/graphics/vtkXRenderWindow.cxx, line 176 >>vtkMesaRenderWindow (0x8057dd8): bad X server connection. >> >>after that the program 'seg faults'. >> >>After exploring a little bit here and there, it seems to me that >>the problem is caused by the vtkXTextMapper which is used by >>both vtkScalarBarActor and vtkCubeAxesActor2D. >> >>My questions are: >>1. Does this problem occur only with vtkXTextMapper, or does it >> occur with other 2D actors/mappers? >>2. More important, is there a way I can use off-screen rendering >> with these actors / mappers? or >>3. is this a well known 'feature'? (I skimmed the mailing list >> and didn't find anything relevant). >>4. If so, do I have to use a different off-screen rendering >> approach, like use vtkOpenGLOffscreenRenderWindow? >>5. Or is this a 'bug' that has been fixed in the CVS version or >> in a later release (i.e. 4.x)? >> >>Thanks in advance for any information you can provide, >> >>-- Julio >> >>P.S.: If it is of any help, I've included additional details about how and >>where the problem occurs. >> >> >> >>---------------------------------------------------------------------- >> >>I tracked the problem down to: >> >>vtkXTextMapper::DetermineSize(vtkViewport* viewport, int* size) >> >>near the beginning, this method tries to get the display id -> >> >>Display* displayId = (Display*) window->GetGenericDisplayId(); >>this in turns calls vtkXRenderWindow::GetDisplayId(), which in turn >>calls XOpenDisplay((char *)NULL); >> >>XOpenDisplay returns NULL since there's no X server running (i.e., >>the DISPLAY variable is not set), but that's intended since the goal >>is to do off-screen rendering. And here is where the error message >>gets printed, and a NULL display is returned. >> >>later vtkXTextMapper::DetermineSize(...) calls >>XLoadFont(displayId, fontname ); with a NULL display and this is >>where the program crashes. >> >>Here's a trace of the stack when the program crashes. >> >>#0 0x414c5cbe in XListFonts () from /usr/X11R6/lib/libX11.so.6 >>#1 0x40f9789c in vtkXTextMapper::DetermineSize(vtkViewport*, int*) () >> at eval.c:41 >>#2 0x40f97426 in vtkXTextMapper::GetSize(vtkViewport*, int*) () at >>eval.c:41 >>#3 0x40f79e13 in vtkScalarBarActor::SizeTitle(int*, int*, vtkViewport*) () >> at eval.c:41 >>#4 0x40f786ef in vtkScalarBarActor::RenderOpaqueGeometry(vtkViewport*) () >> at eval.c:41 >>#5 0x4044e4be in vtkRenderer::UpdateGeometry() () at eval.c:41 >>#6 0x404f2cdd in vtkMesaRenderer::DeviceRender() () at eval.c:41 >>#7 0x4044d882 in vtkRenderer::Render() () at eval.c:41 >>#8 0x40451e10 in vtkRendererCollection::Render() () at eval.c:41 >>#9 0x40449657 in vtkRenderWindow::DoStereoRender() () at eval.c:41 >>#10 0x404495f4 in vtkRenderWindow::DoFDRender() () at eval.c:41 >>#11 0x40449174 in vtkRenderWindow::DoAARender() () at eval.c:41 >>#12 0x4044891c in vtkRenderWindow::Render() () at eval.c:41 >>#13 0x4050b1e9 in vtkXRenderWindow::Render() () at eval.c:41 >>#14 0x0804ac33 in ?? () at eval.c:41 >>#15 0x0804b1bc in ?? () at eval.c:41 >>#16 0x411b6306 in __libc_start_main (main=0x804b170, argc=10, >> >> >> >>_______________________________________________ >>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 > > -- Jeff Lee Software Engineer jeff at cdnorthamerica.com CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From amati at ira.cnr.it Wed Apr 24 09:11:07 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Wed, 24 Apr 2002 15:11:07 +0200 (MET DST) Subject: [vtkusers] Axes Color Message-ID: Hi everybody, I would like to visualize Axes with vtkAxes in different color, while vtk show them in yellow for Y, red for X and black for Z. I used the following classes: vtkAxes x and after setted the properties like origin, position and other I give all in input to vtkTubeFilter t to visualize them like a tube but those tube are colored in yellow for Y, red for X and black for Z, how can I change that colors? thank you. Gianca ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From Gowri.Gopalakrishnan at inteq.com Wed Apr 24 10:27:09 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Wed, 24 Apr 2002 09:27:09 -0500 Subject: [vtkusers] vtkActorCollection Message-ID: Hi All I have a renderer with 3 acttors. I do list = render -> GetActors() to get the actor list. If I do list->GetNextActor() the result is always null And if I do list->GetLastActor() it gives me the last actor. Therefore I believe I am at the bottom of the list. Can some one tell me how I can get to the top of the actor list?. Thanks Gowri -------------- next part -------------- An HTML attachment was scrubbed... URL: From hsalas at grupomar.com Wed Apr 24 10:30:53 2002 From: hsalas at grupomar.com (L.O.Q. Hector Salas) Date: Wed, 24 Apr 2002 09:30:53 -0500 Subject: [vtkusers] Re: vtkusers digest, Vol 1 #970 - 4 msgs References: <20020424003702.A1BB51AB67@public.kitware.com> Message-ID: <003001c1eb9c$a3865580$1001a8c0@grupomar.com> Pido disculpas por enviar el mensaje al destino equivocado... Saludos. ----- Original Message ----- From: To: Sent: Tuesday, April 23, 2002 7:36 PM Subject: vtkusers digest, Vol 1 #970 - 4 msgs > Send vtkusers mailing list submissions to > vtkusers at public.kitware.com > > To subscribe or unsubscribe via the World Wide Web, visit > http://public.kitware.com/mailman/listinfo/vtkusers > or, via email, send a message with subject or body 'help' to > vtkusers-request at public.kitware.com > > You can reach the person managing the list at > vtkusers-admin at public.kitware.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of vtkusers digest..." > > > Today's Topics: > > 1. Re: vtkusers digest, Vol 1 #969 - 12 msgs (L.O.Q. Hector Salas) > 2. VTK hangs with popen() ??? (Martins D Innus) > 3. Help with Boolean operations (M.Hardikar at asu.edu) > 4. Adding multiple objects to renderer (Gary L. Graf) > > --__--__-- > > Message: 1 > Reply-To: "L.O.Q. Hector Salas" > From: "L.O.Q. Hector Salas" > To: > Date: Tue, 23 Apr 2002 15:52:05 -0500 > Organization: Grupomar > Subject: [vtkusers] Re: vtkusers digest, Vol 1 #969 - 12 msgs > > Amor est?s all?? > > > ----- Original Message ----- > From: > To: > Sent: Tuesday, April 23, 2002 2:44 PM > Subject: vtkusers digest, Vol 1 #969 - 12 msgs > > > > Send vtkusers mailing list submissions to > > vtkusers at public.kitware.com > > > > To subscribe or unsubscribe via the World Wide Web, visit > > http://public.kitware.com/mailman/listinfo/vtkusers > > or, via email, send a message with subject or body 'help' to > > vtkusers-request at public.kitware.com > > > > You can reach the person managing the list at > > vtkusers-admin at public.kitware.com > > > > When replying, please edit your Subject line so it is more specific > > than "Re: Contents of vtkusers digest..." > > > > > > Today's Topics: > > > > 1. Importing 3DS and VRML files. (Allan Reinhold Jensen) > > 2. Problems with VtkColorBar (Giancarlo Amati) > > 3. Problems with VTK and PyQt 3.1 (Prof. Andreas Gerber) > > 4. Re: Importing 3DS and VRML files. (Robert Belleman) > > 5. Re: Importing 3DS and VRML files. (Allan Reinhold Jensen) > > 6. Re: Importing 3DS and VRML files. (Robert Belleman) > > 7. Re: Importing 3DS and VRML files. (Berk Geveci) > > 8. Re: how to get outline from CT images (Goodwin Lawlor) > > 9. Building VTK on MAC OSX (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) > > 10. vtkImagePlaneWidget.cxx (Dean Inglis) > > 11. Re: Building VTK on MAC OSX (Sander Niemeijer) > > 12. ClassifyFirst vs. InterpolateFirst (Dave Reed) > > > > -- __--__-- > > > > Message: 1 > > To: vtkusers at public.kitware.com > > From: "Allan Reinhold Jensen" > > Date: Tue, 23 Apr 2002 15:09:16 +0200 > > Subject: [vtkusers] Importing 3DS and VRML files. > > > > Hi. > > > > Is there any way to get the number og geometric objects from the > > vtkRenderer class when importing from 3DS or VRML files? I am in the > > process of making a small command line tool using C++ and VTK which can= > > > > read a 3DS or VRML file and save it into a VTK PolyData file. The tool > > works fine, but if the file contains more than one object, I would like= > > to > > print out a warning to the user. I can only seem to find the total numb= > > er > > of objects, including lights and cameras, and furthermore, all objects > > imported from the 3DS or VRML file are of type vtkOpenGLActor, which ma= > > kes > > it hard to determine type (light, camera etc). > > > > Any suggestions? Feel free to mail any answer. > > > > Best regards, > > Allan Reinhold > > > > * Allan Reinhold - mailto:arj at tm-net.dk > > * Theilgaard Mortensen A/S > > * Niels Hemmingsens Gade 9, 4. > > * 1153 K=F8benhavn K > > * Pho/Mob: +45 33448555 / 26818969 > > * http://www.tm-net.dk > > > > "We collaboratively negotiate progressive deliverables such that we may= > > > > continue to proactively revolutionize scalable content" - Dilbert, 200= > > 1= > > > > > > > > -- __--__-- > > > > Message: 2 > > Date: Tue, 23 Apr 2002 16:03:55 +0200 (CEST) > > From: Giancarlo Amati > > To: > > Subject: [vtkusers] Problems with VtkColorBar > > > > Hi everybody, > > > > I have this question, I'm mapping X, and Y and Z coordinate in a color > > bar. I used vtkScalarBarActor and I have created one for X , one for Y and > > one for Z. > > I add my Bar to the renderer with AddActor2D and I remove it wit > > RemoveActor. The problem is that I create the three bars with the same > > font caracther and with the same width size, but when I switch from a > > color bar to another my bars change width and caracther size. > > > > Could be a bug of Vtk or am I forgotting something? > > When I switch to another bar I siply remove the current bar from the > > renderer and I will add the new that I want to display. > > > > Can anybody help me? > > > > Thank you very much and sorry for my english. > > > > Giancarlo > > > > -- > > ---------------------------------------- > > dott. Giancarlo Amati | > > (amati at ira.cnr.it) | > > | > > National Research Council | > > RadioAstronomical Institute | > > office phone n. +39 051 6399405 | > > via Gobetti 101 - Bologna (Italy) | > > ---------------------------------------- > > > > > > -- __--__-- > > > > Message: 3 > > From: "Prof. Andreas Gerber" > > Reply-To: gerber at fh-biberach.de > > Organization: Fachhochschule Biberach > > To: vtkusers at public.kitware.com > > Date: Tue, 23 Apr 2002 16:38:49 +0200 > > Subject: [vtkusers] Problems with VTK and PyQt 3.1 > > > > Hi, > > I found a strange behaviour while trying to upgrade from PyQt 3.0 (QT 2.3) > to > > PyQt 3.1 (QT 3.0.3) under Suse 8.0 and vtk 4.0, python 2.2. The example > code > > in QVTKRenderWidget.py works well with both versions of PyQt. > > But if I add a non-empty ToolBar to my application the main window doesn't > > appear and CPU load reaches 100 %. > > > > Andreas > > > > -- __--__-- > > > > Message: 4 > > Date: Tue, 23 Apr 2002 16:39:10 +0200 > > From: Robert Belleman > > To: Allan Reinhold Jensen > > Cc: vtkusers at public.kitware.com > > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > > > Allan, > > > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > > Is there any way to get the number og geometric objects from the > > > vtkRenderer class when importing from 3DS or VRML files? > > > > I would expect the following to give you the number of objects (i.e. > > actors) only: > > > > vtkVRMLImporter *importer = vtkVRMLImporter::New(); > > // or vtk3DSImporter *importer = vtk3DSImporter::New(); > > importer->SetRenderWindow(your_render_window); > > importer->SetFileName(filename); > > importer->Read(); > > > > int nactors = importer->GetRenderer()->GetActors()->GetNumberOfItems(); > > > > (this is from memory; so there might be a typo in there) > > Did you try that? > > > > Of course, this all relies on the fact that the different objects > > were in fact saved as different objects by the application that > > generated the VRML/3DS file in the first place. > > > > -- 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/ [] > > > > -- __--__-- > > > > Message: 5 > > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > To: Robert Belleman > > Cc: vtkusers at public.kitware.com > > From: "Allan Reinhold Jensen" > > Date: Tue, 23 Apr 2002 17:04:14 +0200 > > > > > > Hi Rob. > > > > I did try the GetNumberOfItems() function, however this only tells me h= > > ow > > many items the list contains, and not their type. The item list contain= > > s > > geometrical objects as well as lights, cameras etc. If I enable the > > debugger with importer->DebugOn(), I can see it loads a set of polygons= > > , a > > camera, and some lightsources. This is all printed out in the debug win= > > dow. > > > > Best regards, > > > > Allan Reinhold > > > > * Allan Reinhold - mailto:arj at tm-net.dk > > * Theilgaard Mortensen A/S > > * Niels Hemmingsens Gade 9, 4. > > * 1153 K=F8benhavn K > > * Pho/Mob: +45 33448555 / 26818969 > > * http://www.tm-net.dk > > > > "We collaboratively negotiate progressive deliverables such that we may= > > > > continue to proactively revolutionize scalable content" - Dilbert, 200= > > 1 > > > > > > = > > = > > > > Robert = > > = > > > > Belleman To: Allan Reinhold Jensen = > > = > > > > > e.com = > > > > e.uva.nl> Subject: Re: [vtkusers] Im= > > porting 3DS and VRML files. = > > > > = > > = > > > > 23-04-2002 = > > = > > > > 16:39 = > > = > > > > = > > = > > > > = > > = > > > > > > > > > > > > Allan, > > > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > > Is there any way to get the number og geometric objects from the > > > vtkRenderer class when importing from 3DS or VRML files? > > > > I would expect the following to give you the number of objects (i.e. > > actors) only: > > > > vtkVRMLImporter *importer =3D vtkVRMLImporter::New(); > > // or vtk3DSImporter *importer =3D vtk3DSImporter::New(); > > importer->SetRenderWindow(your_render_window); > > importer->SetFileName(filename); > > importer->Read(); > > > > int nactors =3D importer->GetRenderer()->GetActors()->GetNumberOfItem= > > s(); > > > > (this is from memory; so there might be a typo in there) > > Did you try that? > > > > Of course, this all relies on the fact that the different objects > > were in fact saved as different objects by the application that > > generated the VRML/3DS file in the first place. > > > > -- 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/ = > > [] > > > > > > = > > > > > > > > -- __--__-- > > > > Message: 6 > > Date: Tue, 23 Apr 2002 17:13:40 +0200 > > From: Robert Belleman > > To: Allan Reinhold Jensen > > Cc: vtkusers at public.kitware.com > > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > > > On Tue, Apr 23, 2002 at 05:04:14PM +0200, Allan Reinhold Jensen wrote: > > > I did try the GetNumberOfItems() function, however this only tells me > how > > > many items the list contains, and not their type. The item list contains > > > geometrical objects as well as lights, cameras etc. If I enable the > > > debugger with importer->DebugOn(), I can see it loads a set of polygons, > a > > > camera, and some lightsources. This is all printed out in the debug > window. > > > > That's weird; the importer should read actors, lights and cameras > > separately. Well; I'm assuming that's what the protected methods > > ImportActors(), ImportCameras() and ImportLights() do in vtkImporter... > > > > And as these things are put into different collections, I would expect > > you get the number of items in that collection only (although I'm not > > sure what happens when there are multiple cameras, since there is no > > such thig as a vtkCameraCollection). > > > > What do you get when you call this?: > > > > int nlights = importer->GetRenderer()->GetLights()->GetNumberOfItems(); > > > > -- 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/ [] > > > > -- __--__-- > > > > Message: 7 > > Subject: Re: [vtkusers] Importing 3DS and VRML files. > > From: Berk Geveci > > To: Allan Reinhold Jensen > > Cc: Robert Belleman , > > vtkusers > > Date: 23 Apr 2002 11:17:38 -0400 > > > > You should be able to iterate over the items and inquire the=20 > > class/superclass of each with the virtual IsA and IsTypeOf=20 > > methods. > > > > -Berk > > > > On Tue, 2002-04-23 at 11:04, Allan Reinhold Jensen wrote: > > >=20 > > > Hi Rob. > > >=20 > > > I did try the GetNumberOfItems() function, however this only tells me > how > > > many items the list contains, and not their type. The item list contains > > > geometrical objects as well as lights, cameras etc. If I enable the > > > debugger with importer->DebugOn(), I can see it loads a set of polygons, > = > > a > > > camera, and some lightsources. This is all printed out in the debug > windo= > > w. > > >=20 > > > Best regards, > > >=20 > > > Allan Reinhold > > >=20 > > > * Allan Reinhold - mailto:arj at tm-net.dk > > > * Theilgaard Mortensen A/S > > > * Niels Hemmingsens Gade 9, 4. > > > * 1153 K=F8benhavn K > > > * Pho/Mob: +45 33448555 / 26818969 > > > * http://www.tm-net.dk > > >=20 > > > "We collaboratively negotiate progressive deliverables such that we may > > > continue to proactively revolutionize scalable content" - Dilbert, 2001 > > >=20 > > >=20 > > > > = > > =20 > > > Robert > = > > =20 > > > Belleman To: Allan Reinhold Jensen > > rj at tm-net.dk> =20 > > > vtkusers at public.kitware.= > > com =20 > > > e.uva.nl> Subject: Re: [vtkusers] > Impo= > > rting 3DS and VRML files. =20 > > > > = > > =20 > > > 23-04-2002 > = > > =20 > > > 16:39 > = > > =20 > > > > = > > =20 > > > > = > > =20 > > >=20 > > >=20 > > >=20 > > >=20 > > > Allan, > > >=20 > > > On Tue, Apr 23, 2002 at 03:09:16PM +0200, Allan Reinhold Jensen wrote: > > > > Is there any way to get the number og geometric objects from the > > > > vtkRenderer class when importing from 3DS or VRML files? > > >=20 > > > I would expect the following to give you the number of objects (i.e. > > > actors) only: > > >=20 > > > vtkVRMLImporter *importer =3D vtkVRMLImporter::New(); > > > // or vtk3DSImporter *importer =3D vtk3DSImporter::New(); > > > importer->SetRenderWindow(your_render_window); > > > importer->SetFileName(filename); > > > importer->Read(); > > >=20 > > > int nactors =3D > importer->GetRenderer()->GetActors()->GetNumberOfItems(= > > ); > > >=20 > > > (this is from memory; so there might be a typo in there) > > > Did you try that? > > >=20 > > > Of course, this all relies on the fact that the different objects > > > were in fact saved as different objects by the application that > > > generated the VRML/3DS file in the first place. > > >=20 > > > -- Rob > > >=20 > > > -- > > > [] 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/ > [] > > >=20 > > >=20 > > >=20 > > >=20 > > > _______________________________________________ > > > This is the private VTK discussion list.=20 > > > Please keep messages on-topic. Check the FAQ at: > > om/cgi-bin/vtkfaq> > > > Follow this link to subscribe/unsubscribe: > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > -- __--__-- > > > > Message: 8 > > Date: Tue, 23 Apr 2002 16:04:26 +0100 > > From: Goodwin Lawlor > > Subject: Re: [vtkusers] how to get outline from CT images > > To: ljhfdy4 , vtkusers at public.kitware.com > > > > A quick outline: > > 1. Segment your ct image to a set of binary images (use vtkImageThreshold, > > vtkImageIslandRemove) > > 2. Use vtkMarchingSquares to extract 2d outlines (maybe pre-smooth with > > vtkImageGaussianSmooth) > > 3. Use vtkStripper to create polylines from the unordered lines from MS > > > > Cad package format is a tricky one... vtkSTLWriter doesn't spit out > > polylines. If you have AutoCad you can write a VB script to read the > > polyline coords and insert them into a scene as a closed spline. > > > > Check which VTK writer/exporter writes out polylines and then see if your > > CAD package can read the format > > > > HTH > > > > Goodwin > > ----- Original Message ----- > > From: "ljhfdy4" > > To: > > Sent: Monday, April 22, 2002 11:51 PM > > Subject: [vtkusers] how to get outline from CT images > > > > > > > Hi, friends: > > > > > > I have a question about how to get the outline from CT images. What I > want > > to do is extracting the outline of a special tissue like bone or skin from > > one slice of CT (threshold may needed). In my idea the outline should be > > polyline, but I am not sure which functions can do this work exactly. Also > > how can i save the extracted polyline into a format the CAD packages can > > read? If impossible, image format is ok too. > > > > > > Thanks a lot for your help. > > > > > > > > > Ljh > > > ______________________________________ > > > > > > =================================================================== > > > ???????????????? (http://mail.sina.com.cn) > > > ?????????????????????????????????????????????? > > (http://classad.sina.com.cn/2shou/) > > > _______________________________________________ > > > 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 > > > > > > -- __--__-- > > > > Message: 9 > > From: Daniel =?iso-8859-15?q?S=E1ez=20Domingo?= > > Organization: Instituto =?iso-8859-15?q?Tecnol=F3gico=20de?= > =?iso-8859-15?q?=20Inform=E1tica?= > > To: vtkusers at public.kitware.com > > Date: Tue, 23 Apr 2002 18:50:16 +0200 > > Subject: [vtkusers] Building VTK on MAC OSX > > > > Hello, > > > > I am new in VTK's world. I have tried to build VTK on a MAC OS X but I > > have had a lot of problems. > > I have read the archives and I think my problem isn't solved there. > > > > I have done all the changes in the Rendering directory files (__APPLE__ by > > VTK_USE_QUARTZ) and in the CMakeList.txt and the options in CMakeCache.txt > are > > OPENGL_LIBRARY:FILEPATH=-framework AppKit -framework OpenGL > > VTK_USE_QUARTZ:BOOL=ON > > VTK_USE_RENDERING:BOOL=ON > > VTK_USE_X:BOOL=OFF > > > > but when I do make, it is produced the next error: > > /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such file > or > > directory > > > > > > I have looked for the gl.h in my system and I've found the next file: > > > > /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > > > then, I have put this directory in the OPENGL_INCLUDE_PATH > > > > but the problem continues. > > > > I would like someone to help me, please. > > > > Thank you > > > > Daniel S?ez. > > > > -- __--__-- > > > > Message: 10 > > From: "Dean Inglis" > > To: > > Date: Tue, 23 Apr 2002 13:19:18 -0700 > > Subject: [vtkusers] vtkImagePlaneWidget.cxx > > > > Hi all, > > > > officially added vtkImagePlaneWidget.cxx in vtk/Hybrid: > > > > a widget that allows interactive (orthogonal) slicing through vtkImageData > > sets...left, middle button do the pushing of the slice plane, right button > > does window/level. > > > > enjoy, > > Dean > > > > > > -- __--__-- > > > > Message: 11 > > Date: Tue, 23 Apr 2002 19:53:51 +0200 > > Subject: Re: [vtkusers] Building VTK on MAC OSX > > Cc: vtkusers at public.kitware.com > > To: =?ISO-8859-1?Q?Daniel_S=E1ez_Domingo?= > > From: Sander Niemeijer > > > > Hi Daniel, > > > > If you want to compile for Quartz then you don't have to change the=20 > > __APPLE__ definition checks to VTK_USE_QUARTZ. If you do apply the=20 > > changes then one extra thing has to be added in order to get compiling=20= > > > > for Quartz to work again. In the Rendering/CMakeLists.txt you have to=20 > > add the line > > --- > > ADD_DEFINITIONS(-DVTK_USE_QUARTZ) > > -- > > in the 'IF (APPLE) IF (VTK_USE_QUARTZ)' section. > > > > Maybe a good time to summarize the possibillities you can use at the=20 > > moment and how to get them to work: > > > > - If you have VTK 4.0 and want to compile with Quartz support then all=20= > > > > you have to do is set VTK_USE_QUARTZ to ON, VTK_USE_X to OFF and set > the=20= > > > > OPENGL_LIBRARY to -framework Appkit -framework OpenGL. (No need to=20 > > change the __APPLE__ definition checks) > > > > - If you use the CVS version of VTK and want to compile with Quartz=20 > > support then the OPENGL_LIBRARY setting will automatically be set=20 > > properly (make sure that you also use the CVS version of CMake! And=20 > > again no need to change the __APPLE__ defintion checks). > > > > - If you have VTK 4.0 and want to compile with X11 support then follow=20= > > > > the instructions you found in the mailinglist archive and add the=20 > > ADD_DEFINITIONS setting so you will also be able to compile with > Quartz=20= > > > > support from the same sourcetree. > > > > - If you use the CVS version of VTK and want to compile with X11 > support=20= > > > > then please have some patience (or drop me an e-mail if you really > can't=20= > > > > wait ;-). As I understood from Yves, he will soon be adding the patch > to=20= > > > > CVS that will support both X11 and Quartz builds of VTK on Mac OS X. > > > > Regards, > > Sander > > > > On dinsdag, april 23, 2002, at 06:50 , Daniel S=E1ez Domingo wrote: > > > > > Hello, > > > > > > I am new in VTK's world. I have tried to build VTK on a MAC OS X=20 > > > but I > > > have had a lot of problems. > > > I have read the archives and I think my problem isn't solved there. > > > > > > I have done all the changes in the Rendering directory files = > > (__APPLE__=20 > > > by > > > VTK_USE_QUARTZ) and in the CMakeList.txt and the options in=20 > > > CMakeCache.txt are > > > OPENGL_LIBRARY:FILEPATH=3D-framework AppKit -framework OpenGL > > > VTK_USE_QUARTZ:BOOL=3DON > > > VTK_USE_RENDERING:BOOL=3DON > > > VTK_USE_X:BOOL=3DOFF > > > > > > but when I do make, it is produced the next error: > > > /usr/local/src/VTK/Rendering/vtkOpenGLActor.cxx:50: GL/gl.h: No such=20= > > > > > file or > > > directory > > > > > > > > > I have looked for the gl.h in my system and I've found the next file: > > > > > > /System/Library/Frameworks/OpenGL.frameworks/Versions/A/Headers/gl.h > > > > > > then, I have put this directory in the OPENGL_INCLUDE_PATH > > > > > > but the problem continues. > > > > > > I would like someone to help me, please. > > > > > > Thank you > > > > > > Daniel S=E1ez. > > > _______________________________________________ > > > This is the private VTK discussion list. > > > Please keep messages on-topic. Check the FAQ at:=20 > > > > > > Follow this link to subscribe/unsubscribe: > > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > > > > -- __--__-- > > > > Message: 12 > > Date: Tue, 23 Apr 2002 15:42:46 -0400 (EDT) > > From: Dave Reed > > To: vtkusers at public.kitware.com > > Subject: [vtkusers] ClassifyFirst vs. InterpolateFirst > > > > > > Can anyone explain the difference between these two compositing > > functions for me? > > > > vtkVolumeRayCastCompositeFunction::SetCompositeMethodToInterpolateFirst > > vtkVolumeRayCastCompositeFunction::SetCompositeMethodToClassifyFirst > > > > And in general, is there somewhere that explains concepts like this? I > > have the Prentice Hall VTK book and have looked at the online HTML > > documentation. I took a quick glance at the > > vtkVolumeRayCastCompositeFunction.cxx file but I couldn't decipher the > > differences between: > > > > CastRay_TrilinVertices_Unshaded > > CastRay_TrilinSample_UnShaded > > > > From the looks of the table of contents it does not appear that the > > manual Kitware sells will help with this type of information or am I > > wrong? > > > > Thanks, > > Dave > > > > > > -- __--__-- > > > > _______________________________________________ > > vtkusers mailing list > > vtkusers at public.kitware.com > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > End of vtkusers Digest > > > --__--__-- > > Message: 2 > Date: Tue, 23 Apr 2002 17:44:00 -0400 (EDT) > From: Martins D Innus > To: vtkusers at public.kitware.com > Subject: [vtkusers] VTK hangs with popen() ??? > > Hi, > Is there a problem with using popen() in a VTK app? I've > condensed the problem I've been having down to the code below. The popen > call appears to never return. The app just hangs at that point. This > only happens when there are more than 2 VTK components in the pipeline. > That is, if I remove the vtkThreshold all is well. I've tried this with > multiple sources (vtkVolume16Reader, etc) and multiple intermediate > filters (vtkImageGaussianSmooth, etc). > > Also, it doesn't matter if the popen is set to read from or write to. > There is no output from the popen()'d process. > > This is on a Redhat 7.2 box, tried with VTK 4.0 and also the snapshot from > today. > > I'd appreciate any help on this, even to say it works somewhere else on a > GNU/Linux box. > > Martins > > > > #include > #include > #include "vtkRenderWindowInteractor.h" > #include "vtkImageGridSource.h" > #include "vtkImageViewer.h" > #include "vtkImageThreshold.h" > > using namespace std; > > void foo_cb(void*){ > > cout<<"Before popen"< cout.flush(); > > FILE *fp = popen("/bin/date","w"); > cout.flush(); > > cout<<"After popen"< cout.flush(); > } > > int main(int argc, char **argv){ > > ios::sync_with_stdio(); > > vtkRenderWindowInteractor *inter=vtkRenderWindowInteractor::New(); > inter->SetUserMethod(foo_cb,NULL); > > vtkImageGridSource *grid=vtkImageGridSource::New(); > grid->SetGridSpacing(16, 16, 0); > grid->SetGridOrigin(0,0,0); > grid->SetDataExtent(0,511,0,511,0,0); > grid->SetLineValue(4096); > grid->SetFillValue(0); > grid->SetDataScalarTypeToShort(); > > vtkImageThreshold *thresh=vtkImageThreshold::New(); > thresh->SetInput(grid->GetOutput()); > thresh->ThresholdBetween(0,4096); > thresh->SetOutValue(0); > thresh->ReplaceOutOn(); > thresh->ReplaceInOff(); > > vtkImageViewer *vwr=vtkImageViewer::New(); > vwr->SetInput(thresh->GetOutput()); > vwr->SetColorWindow(4096); > vwr->SetColorLevel(2048); > vwr->SetZSlice(0); > vwr->SetSize(512,512); > > inter->SetRenderWindow(vwr->GetRenderWindow()); > > inter->Start(); > > return 0; > > } > > > > --__--__-- > > Message: 3 > Date: Tue, 23 Apr 2002 17:25:45 -0700 (MST) > From: M.Hardikar at asu.edu > To: VTK > Subject: [vtkusers] Help with Boolean operations > > Dear Users, > > I have 2 cad files in STL format in 2 different files. I want to read in those > files using STL reader and then I want to intersect those 2 CAD models. > > How can I do this? > > I am very new to VTK and any help would be valuable. > > Also I had a previous question about traversing vtkPropCollection and > retrieving the actors and then selectively displaying few out of the entire > collection. Can this be done? > > Regards, > > Mahesh. > > > > > > --__--__-- > > Message: 4 > Date: Tue, 23 Apr 2002 17:35:31 -0700 > From: "Gary L. Graf" > To: vtkusers at public.kitware.com > Subject: [vtkusers] Adding multiple objects to renderer > > Hi, I am relatively new to vtk and I have a dynamic list of geometric > data which, dependent upon the user input at any given time, may or may > not require rendering. I currently loop through the list and find those > that should be rendered, read the data into a vtkStructuredPoints, add > scalars, run it through some filters, add it to a mapper, then on to the > renderer. The problem is, successive objects being added to the scene > will overwrite the vtk type variables in the loop and I end up > displaying only the last object in my list. How can I go about adding > multiple objects to the scene without knowing in advance how many there > are? Thanks - Gary > > > > > --__--__-- > > _______________________________________________ > vtkusers mailing list > vtkusers at public.kitware.com > http://public.kitware.com/mailman/listinfo/vtkusers > > > End of vtkusers Digest From P.J.H.de_Koning at lumc.nl Wed Apr 24 10:37:35 2002 From: P.J.H.de_Koning at lumc.nl (Koning, P.J.H. de (LKEB)) Date: Wed, 24 Apr 2002 16:37:35 +0200 Subject: [vtkusers] vtkActorCollection In-Reply-To: Message-ID: <5A5PXTXSFATPIFMLIE86GGBXTQ2X.3cc6c32f@MRI-PATRICK> 24-04-02 16:27:09, "Gopalakrishnan, Gowri" wrote: try list->InitTraversal(); > > > From: "Gopalakrishnan, Gowri" > > To: "'vtk mailing list'" > Subject:[vtkusers] vtkActorCollection > Date: Wed, 24 Apr 2002 09:27:09 -0500 > > > > > Hi All > > > I have a renderer with 3 acttors. > I do list = render -> GetActors() to get the actor list. > > If I do list->GetNextActor() the result is always null > And if I do list->GetLastActor() it gives me the last actor. > > > Therefore I believe I am at the bottom of the list. Can some one tell me how > I can get to the top of the actor list?. > > > Thanks > Gowri From daeuber at ira.uka.de Wed Apr 24 10:55:38 2002 From: daeuber at ira.uka.de (=?iso-8859-1?Q?Sascha_D=E4uber?=) Date: Wed, 24 Apr 2002 16:55:38 +0200 Subject: AW: [vtkusers] vtkActorCollection In-Reply-To: <5A5PXTXSFATPIFMLIE86GGBXTQ2X.3cc6c32f@MRI-PATRICK> Message-ID: <00de01c1eba0$18f48fa0$40070d81@ira.uka.de> > try list->InitTraversal(); I got the same problem. And I DO list->InitTraversal(); Sascha From ady_roman at yahoo.com Wed Apr 24 11:28:51 2002 From: ady_roman at yahoo.com (ady roman) Date: Wed, 24 Apr 2002 08:28:51 -0700 (PDT) Subject: [vtkusers] vtk files Message-ID: <20020424152851.68246.qmail@web12501.mail.yahoo.com> Where can I find some vtk examples (*.vtk)? (I'm testing my vtk viewer) Regards, A.Roman __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From boyd at biomed.ee.ethz.ch Wed Apr 24 20:14:02 2002 From: boyd at biomed.ee.ethz.ch (Steve Boyd) Date: Wed, 24 Apr 2002 18:14:02 -0600 Subject: [vtkusers] Shrinkwrap surface possible? Message-ID: <3CC74A4A.9B7B4FBA@biomed.ee.ethz.ch> Hello, I was wondering if somebody could suggest an approach to the following problem. I have a dataset that represents a solid material topologically similar to a sponge (i.e., has a generally round shape, but the surface is perforated with small holes that permeate the entire object). The dataset is represented as vtkStructuredPoints (sponge material has a scalar value of 1, background 0). What I would like to do is generate a surface that 'shrink wraps' the sponge. The surface would have the basic shape of the sponge, but stretches across the surface holes. Does somebody have an idea of how I could generate such a surface? Thanks for any suggestions for approaches... Sincerely, Steve -- Institute for Biomedical Engineering ETH and University Zuerich Moussonstrasse 18 8044 Zuerich, Switzerland tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch ------------------------------------------------------------------- From heiland at ncsa.uiuc.edu Wed Apr 24 12:30:53 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Wed, 24 Apr 2002 11:30:53 -0500 Subject: [vtkusers] Shrinkwrap surface possible? In-Reply-To: Steve Boyd "[vtkusers] Shrinkwrap surface possible?" (Apr 24, 6:14pm) References: <3CC74A4A.9B7B4FBA@biomed.ee.ethz.ch> Message-ID: <1020424113053.ZM20674@pecos.ncsa.uiuc.edu> Sounds similar to a small project I worked on some time ago: http://www.ncsa.uiuc.edu/~heiland/vtk/scatter/bubble/ where we begin with scattered points in space (you'd have to convert your struct pts, value of 1, to a point set), then apply the Power Crust alg -- outside of VTK, although Tim Hutton (T.Hutton at eastman.ucl.ac.uk) was at one time considering incorporating into VTK. Hopefully others will have more elegant approaches... --Randy On Apr 24, 6:14pm, Steve Boyd wrote: > Subject: [vtkusers] Shrinkwrap surface possible? > Hello, > > I was wondering if somebody could suggest an approach to the following > problem. I have a dataset that represents a solid material > topologically similar to a sponge (i.e., has a generally round shape, > but the surface is perforated with small holes that permeate the entire > object). The dataset is represented as vtkStructuredPoints (sponge > material has a scalar value of 1, background 0). > > What I would like to do is generate a surface that 'shrink wraps' the > sponge. The surface would have the basic shape of the sponge, but > stretches across the surface holes. Does somebody have an idea of how I > could generate such a surface? > > Thanks for any suggestions for approaches... > > Sincerely, > > Steve > > -- > Institute for Biomedical Engineering > ETH and University Zuerich > Moussonstrasse 18 > 8044 Zuerich, Switzerland > > tel. +41.1.632.4591 fax. +41.1.632.1214 boyd at biomed.ee.ethz.ch > ------------------------------------------------------------------- > _______________________________________________ > 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 >-- End of excerpt from Steve Boyd From eric at cctcorp.com Wed Apr 24 12:55:56 2002 From: eric at cctcorp.com (Eric F. Sorton) Date: Wed, 24 Apr 2002 12:55:56 -0400 Subject: [vtkusers] Repeatable core using nested vtkPropAssembly under VTK 3.2.0 and X Message-ID: <20020424125556.A10767@buri.inside.cctcorp.com> Hi All, I am attempting to create a hierarchy of objects. I am using the vtkPropAssembly class as a container. As discussed, in the documentation, it should be possible to create a hierarchy of vktPropAssembly. When I create nested vtkPropAssembly's, my application dumps a core. I used the graphics/examplesCxx/Cone4.cxx as a base and added two vtkPropAssembly classes. See attached code. When I execute this code, I get a core dump. Pulling up the debugger, I get the following stack trace: #0 0x40328add in vtkProp3D::PokeMatrix () from /usr/lib/libVTKGraphics.so.3.2 #1 0x407ea3d4 in vtkPropAssembly::RenderOpaqueGeometry () from /usr/lib/libVTKCommon.so.3.2 #2 0x40277c81 in vtkRenderer::UpdateGeometry () from /usr/lib/libVTKGraphics.so.3.2 #3 0x40319049 in vtkOpenGLRenderer::DeviceRender () from /usr/lib/libVTKGraphics.so.3.2 #4 0x40276f0c in vtkRenderer::Render () from /usr/lib/libVTKGraphics.so.3.2 #5 0x4027bc95 in vtkRendererCollection::Render () from /usr/lib/libVTKGraphics.so.3.2 #6 0x402739e5 in vtkRenderWindow::DoStereoRender () from /usr/lib/libVTKGraphics.so.3.2 #7 0x40273992 in vtkRenderWindow::DoFDRender () from /usr/lib/libVTKGraphics.so.3.2 #8 0x402735b6 in vtkRenderWindow::DoAARender () from /usr/lib/libVTKGraphics.so.3.2 #9 0x40272e2b in vtkRenderWindow::Render () from /usr/lib/libVTKGraphics.so.3.2 #10 0x4032f771 in vtkXRenderWindow::Render () from /usr/lib/libVTKGraphics.so.3.2 #11 0x0804b24a in main (argc=1, argv=0xbffff9a4) at Cone4.cxx:49 #12 0x40ab917f in __libc_start_main () from /lib/libc.so.6 I am doing something wrong? Is this a bug in 3.2.0? Is it fixed in 4.0? Any information would be appreciated. Eric -- +--=--=- Eric F. Sorton =--=--=--=--=--=--=--=--=--=-+ | Command and Control Technologies Corporation (http://www.cctcorp.com) | | Phone: (321) 264-1193 Fax: (321) 383-5096 | +--=--=--=--=--=--=--=--=--=--=--=-+-=--=--=--=--=--=--=--=--=--=--=--=-+ -------------- next part -------------- A non-text attachment was scrubbed... Name: Cone4.cxx Type: text/x-c++src Size: 1704 bytes Desc: not available URL: From tpan at crd.ge.com Wed Apr 24 13:04:05 2002 From: tpan at crd.ge.com (Pan, Tony C (Research)) Date: Wed, 24 Apr 2002 13:04:05 -0400 Subject: [vtkusers] Dual GeForce setup vtk rendering issues. Message-ID: Hi, I am running into an interesting problem. Let me describe the system set up a bit first: HW: Intel P3 1GHz, 1 GeForce 2 MX 400 PCI, 1 GeForce 3 Ti 200 AGP. SW: Windows 2000 Dev SW: vtk 4.n (checked out of repository last Friday afternoon) ActiveTcl 8.3.4.1 VC++ 6.0 Compiled ConeWin32.cxx from Examples/GUI directory. Problem: GeForce 2 MX400 is set as the primary display: ConeWin32 does not render on the primary OR secondary display. Both showed black canvas. In fact, ConeWin32 on GeForce 3 Ti 200 extends its render area about 100 pixels to the left of the Windows window, so the render area actually goes outside the border. GeForce 3 Ti 200 is set as the primary display: ConeWin32 does not render on the secondary display, but is fine on the primary. This is kind of what I expected, based on information I heard that OpenGL does not accelerate on anything other than primary displays. Although I did expect it to render something instead of nothing. Anyone has seen this behavior before? Thanks for any insight. Tony From will.schroeder at kitware.com Wed Apr 24 13:04:31 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Wed, 24 Apr 2002 13:04:31 -0400 Subject: [vtkusers] Shrinkwrap surface possible? In-Reply-To: <3CC74A4A.9B7B4FBA@biomed.ee.ethz.ch> Message-ID: <5.1.0.14.0.20020424125940.023eaf98@pop.nycap.rr.com> Hi Steve- >What I would like to do is generate a surface that 'shrink wraps' the >sponge. The surface would have the basic shape of the sponge, but >stretches across the surface holes. Does somebody have an idea of how I >could generate such a surface? There are two options: 1) Use vtkHull. It will create a convex hull of the input given a set of initial planes the it "pushes" in until they touch the input.. The input must be of type vtkPolyData. By default vtkHull uses six planes (the faces of a cube), but you can add vertex and edge planes to get a total of 26 planes. If you want you can manually add planes. vtkHull is quite fast. 2) Use vtkDelaunay3D which will produce a convex hull. Then use vtkGeometryFilter to extract the surface of the convex hull. Will William J. Schroeder, Ph.D. Kitware, Inc. 469 Clifton Corporate Parkway Clifton Park, NY 12065 will.schroeder at kitware.com 1-518-371-3971 x102 (phone) 1-518-371-3971 (fax) From dsaez at iti.upv.es Wed Apr 24 13:09:33 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Wed, 24 Apr 2002 19:09:33 +0200 Subject: [vtkusers] Wrap Tcl on MAC OS X Message-ID: <20020424170706.3053415EA23@mailborg.iti.upv.es> Hello, I have a problem when building VTK with Wrapping Tcl. I have installed Tcl/Tk for MAC OS X and I am using Quartz. I have configured all the options in cmake but when I do make it's produced the next error: Building default_target in directory /usr/local/src/VTK/Rendering c++ -g -O2 -fno-coalesce-templates -fno-coalesce-static-vtables -DvtkRenderingTCL_EXPORTS -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Filtering -I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics -I/usr/local/src/VTK/IO -I/usr/local/src/VTK/Utilities/zlib -I/usr/local/src/VTK/Utilities/png -I/usr/local/src/VTK/Utilities/jpeg -I/usr/local/src/VTK/Common/Testing/Cxx -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers -I/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers -DVTK_USE_QUARTZ -c /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx -o vtkTkRenderWidget.o In file included from /usr/local/src/VTK/Rendering/vtkTkRenderWidget.h:62, from /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:45: /System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h:86: X11/Xlib.h: No such file or directory In file included from /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:53: X11/Xlib.h: No such file or directory /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:54: X11/Xutil.h: No such file or directory In file included from /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:56: GL/glx.h: No such file or directory In file included from /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:57, from /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: /usr/local/src/VTK/vtkToolkits.h:28: warning: `VTK_USE_QUARTZ' redefined *Initialization*:1: warning: this is the location of the previous definition make[3]: *** [vtkTkRenderWidget.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Rendering] Error 2 make: *** [default_target] Error 2 I don't know how solve this error. Could anybody help me? Thank you Daniel S?ez From prabhu at aero.iitm.ernet.in Wed Apr 24 13:21:54 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Wed, 24 Apr 2002 22:51:54 +0530 Subject: [vtkusers] vtk files In-Reply-To: <20020424152851.68246.qmail@web12501.mail.yahoo.com> References: <20020424152851.68246.qmail@web12501.mail.yahoo.com> Message-ID: <15558.59826.606809.624106@monster.linux.in> >>>>> "AR" == ady roman writes: AR> Where can I find some vtk examples (*.vtk)? (I'm testing my AR> vtk viewer) Go to http://public.kitware.com/VTK/get-software.php and get the vtk40Data.tar.gz or zip files. prabhu From ajd27 at cornell.edu Wed Apr 24 13:35:48 2002 From: ajd27 at cornell.edu (Andrew Dolgert) Date: Wed, 24 Apr 2002 13:35:48 -0400 Subject: [vtkusers] vtkWin32OutputWindow hangs in multithreaded debugging mode - with fix Message-ID: <000601c1ebb6$78e89c10$22145480@tc.cornell.edu> Hi - The debug, multi-threaded version of vtkWin32OutputWindow hangs because slave threads use ::SendMessage() to print debugging messages to the main thread's window, possibly after the main thread is waiting on a signal. It causes deadlock. A simple solution is to change SendMessage to SendNotifyMessage, which acts like SendMessage when called from the same thread but acts more like PostMessage from slave threads. I saw this problem while stepping through vtkImageMagnify, but it should be a very common problem for debug, multi-threaded builds on Windows. How could I submit a bug report? Thanks, Drew Dolgert, Cornell Theory Center From lorensen at crd.ge.com Wed Apr 24 13:39:29 2002 From: lorensen at crd.ge.com (Lorensen, William E (Research)) Date: Wed, 24 Apr 2002 13:39:29 -0400 Subject: [vtkusers] vtkWin32OutputWindow hangs in multithreaded debugg ing mode - with fix Message-ID: Yes, we have seen this in Insight also. We were talking about it today, wondering why vtk was not having the same problem... Bill -----Original Message----- From: Andrew Dolgert [mailto:ajd27 at cornell.edu] Sent: Wednesday, April 24, 2002 1:36 PM To: vtkusers at public.kitware.com Subject: [vtkusers] vtkWin32OutputWindow hangs in multithreaded debugging mode - with fix Hi - The debug, multi-threaded version of vtkWin32OutputWindow hangs because slave threads use ::SendMessage() to print debugging messages to the main thread's window, possibly after the main thread is waiting on a signal. It causes deadlock. A simple solution is to change SendMessage to SendNotifyMessage, which acts like SendMessage when called from the same thread but acts more like PostMessage from slave threads. I saw this problem while stepping through vtkImageMagnify, but it should be a very common problem for debug, multi-threaded builds on Windows. How could I submit a bug report? Thanks, Drew Dolgert, Cornell Theory Center _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From sericson at jics.utk.edu Wed Apr 24 15:09:59 2002 From: sericson at jics.utk.edu (Shawn Ericson) Date: Wed, 24 Apr 2002 15:09:59 -0400 Subject: [vtkusers] The Visualization Toolkit Message-ID: <02042415095905.13919@galaxy10.csm.ornl.gov> Hi all, I have "The Visualization Toolkit - An Object-Oriented Approach To 3D Graphics" for VTK version 2.0. Has this book been revised for version 3.0 or 4.0? If so, is there a significant difference? Thanks, Shawn From 4mg19 at qlink.queensu.ca Wed Apr 24 15:47:14 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Wed, 24 Apr 2002 15:47:14 -0400 (EDT) Subject: [vtkusers] Saving Polydata Message-ID: Hello: I'm new to vtk and programming, and so don't have the jargon down pat, but I need help saving images generated in VTK. I am successfully using AppendPolyData to visuallize a number of ellipsoids in space. I would like to save this PolyData as a dataset of the 3-D structure then to slice the 3-D image into 2-D sections and save each section as an image. I don't understand what the writers need as input. They don't seem to accept AppendPolyData. The only thing I can do with AppendPolyData is send it to a Mapper and to my understanding the Writers don't use Mappers. What should I do with AppendPolyData to save it as a dataset? Currently, I am trying to send it to vtkPolyDataWriter or vtkDataSetWriter and this generates errors as the writer doesn't know what to do with AppendPolyData. Any help is much appreciated. Thank you in advance, Mike From rrp at imm.dtu.dk Wed Apr 24 15:53:37 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Wed, 24 Apr 2002 21:53:37 +0200 (METDST) Subject: [vtkusers] Saving Polydata In-Reply-To: Message-ID: On Wed, 24 Apr 2002, Michael Gy?rffy wrote: > What should I do with AppendPolyData to save it as a dataset? > Currently, I am trying to send it to vtkPolyDataWriter or vtkDataSetWriter > and this generates errors as the writer doesn't know what to do with > AppendPolyData. Use the GetOutput() method from your AppendPolyData object. f.ex. ... writer->SetInput(append->GetOutput()); ... where writer is a vtkPolyDataWriter object regards Rasmus From 4mg19 at qlink.queensu.ca Wed Apr 24 16:49:20 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Wed, 24 Apr 2002 16:49:20 -0400 (EDT) Subject: [vtkusers] Saving Polydata In-Reply-To: Message-ID: Thank you Rasmus: I have tried your suggestion and it still doesn't work. Here is the layout of my program: I have a FOR loop that calls: vtkSpheresource, vtkTransform, vtkTransformPolyDataFilter, vtkAppendPolyData and finally vtkPolyDataMapper. This loop runs for a desired number for ellipsoids and rendering it looks great! I then wish to limit the range of the data set with: vtkClipPolyData *clipper=vtkClipPolyData::New(); clipper->SetInput[appendSpheres->GetOutput()]; clipper->SetClipFunction(plane1); etc... where "appendSpheres" is the appended polydata and use: vtkPolyDataWriter *writer=vtkPolyDataWriter::New(); writer->SetInput(clipper->GetOutput()); writer->SetFileName("3Dimage.dat"); writer->write(); The error I keep getting is: "DynamicMem.c:248: invalid types `{unknown type}[vtkPolyData *]' for array subscript" Where line 248 is "clipper->SetInput[appendSpheres->GetOutput()];". If I ignore Clipping the data and use the similar statement in the writer, the one you suggested, I get the same error. I don't think the writer or clipper is recognising that vtkAppendPolyData is PolyData. How should I convert what I've generated into Polydata? Or what alternatives saving methods do I have? I am running VTK 4.0 with Linex redhat. Thank you again, Mike On Wed, 24 Apr 2002, Rasmus Reinhold Paulsen wrote: > > On Wed, 24 Apr 2002, Michael Gy?rffy wrote: > > > What should I do with AppendPolyData to save it as a dataset? > > Currently, I am trying to send it to vtkPolyDataWriter or vtkDataSetWriter > > and this generates errors as the writer doesn't know what to do with > > AppendPolyData. > > Use the GetOutput() method from your AppendPolyData object. f.ex. > > ... > writer->SetInput(append->GetOutput()); > ... > > where writer is a vtkPolyDataWriter object > > regards > Rasmus > From you_ruobo at yahoo.com Wed Apr 24 17:24:32 2002 From: you_ruobo at yahoo.com (you ruobo) Date: Wed, 24 Apr 2002 14:24:32 -0700 (PDT) Subject: [vtkusers] whoever did have experience in reading PLOT3D data into VTK? Message-ID: <20020424212432.25763.qmail@web10706.mail.yahoo.com> I am trying to input my CFD mesh into VTK. The data is in PLOT3D format and it's unformatted. But vtkPLOT3Dreader cannot read my file correctly. I am suffering from it. May you help me and point out the reason? I appreciate your reply. Ruobo __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ -------------- next part -------------- An embedded message was scrubbed... From: you ruobo Subject: [vtkusers] problem in reading PLOT3D data file Date: Sat, 20 Apr 2002 03:50:09 -0700 (PDT) Size: 3010 URL: From melkisetog at yahoo.com Wed Apr 24 19:15:27 2002 From: melkisetog at yahoo.com (Rupen Melkisetoglu) Date: Thu, 25 Apr 2002 02:15:27 +0300 Subject: [vtkusers] insphere radius of a tetrahedron Message-ID: Hi everybody, I would like to calculate the insphere radius of a tetrahedron...I used Circumsphere() function for the outer radius... How can I compute easily the inner sphere radius of a tetrahedron in VTK or mathematically using VTK.... I would be greatful if you help me..... Thanks.... Rupi -------------- next part -------------- An HTML attachment was scrubbed... URL: From dai_shuocn at 163.com Wed Apr 24 22:01:15 2002 From: dai_shuocn at 163.com (´÷Ëś) Date: Thu, 25 Apr 2002 10:01:15 +0800 (CST) Subject: [vtkusers] =?gb2312?B?dnRrIGZpbGU=?= Message-ID: <3CC7636B.00007B.27084@bj231.163.com> hi, everyone I'm using vtkPolyDataConnectivityFilter to extract connective regions out of a vtkPolyData object. And I want to save the results (the extracted regions) in a vtk file. I tried vtkAppendPolyData, but it seemed to merge those regions into a single big one. so that I have to extract regions again after loading the vtk file. Do I have to save each extracted region into separate files? Any suggestions will be greatly appreciated. Daishuo -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Wed Apr 24 23:11:18 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 25 Apr 2002 08:41:18 +0530 Subject: [vtkusers] Saving Polydata In-Reply-To: References: Message-ID: <15559.29654.976282.384128@monster.linux.in> >>>>> "MG" == Michael Gy?rffy <4mg19 at qlink.queensu.ca> writes: MG> Thank you Rasmus: I have tried your suggestion and it still MG> doesn't work. [snip] MG> This loop runs for a desired number for ellipsoids and MG> rendering it looks great! MG> I then wish to limit the range of the data set with: MG> vtkClipPolyData *clipper=vtkClipPolyData::New(); clipper-> SetInput[appendSpheres->GetOutput()]; Duh! make that clipper->SetInput(appendSpheres->GetOutput()); In c++ different brackets mean different things. ;) prabhu From prabhu at aero.iitm.ernet.in Wed Apr 24 23:13:51 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Thu, 25 Apr 2002 08:43:51 +0530 Subject: [vtkusers] whoever did have experience in reading PLOT3D data into VTK? In-Reply-To: <20020424212432.25763.qmail@web10706.mail.yahoo.com> References: <20020424212432.25763.qmail@web10706.mail.yahoo.com> Message-ID: <15559.29807.919176.199563@monster.linux.in> >>>>> "YR" == you ruobo writes: YR> I am trying to input my CFD mesh into VTK. The data is in YR> PLOT3D format and it's unformatted. But vtkPLOT3Dreader cannot YR> read my file correctly. I am suffering from it. May you help YR> me and point out the reason? vtkPLOT3DReader works only with structured grids and binary data. BTW, if you are generating the data yourself and using VTK I'd recommend the VTK data format. Its documented here: http://public.kitware.com/VTK/pdf/file-formats.pdf and easy to use and supports all CFD related meshes. prabhu From niemeijer at science-and-technology.nl Thu Apr 25 03:33:49 2002 From: niemeijer at science-and-technology.nl (Sander Niemeijer) Date: Thu, 25 Apr 2002 09:33:49 +0200 Subject: [vtkusers] Wrap Tcl on MAC OS X In-Reply-To: <20020424170706.3053415EA23@mailborg.iti.upv.es> Message-ID: Hi Daniel, It seems that while applying the patch I gave you, you have done some "#define VTK_USE_QUARTZ" somewhere instead of the needed "#ifdef VTK_USE_QUARTZ". But since you are only using Quartz I suggest you undo the patch and start from a clean sourcetree. This makes helping you with problems a lot easier. Regards, Sander On woensdag, april 24, 2002, at 07:09 , Daniel S?ez Domingo wrote: > Hello, > > I have a problem when building VTK with Wrapping Tcl. > I have installed Tcl/Tk for MAC OS X and I am using Quartz. > I have configured all the options in cmake but when I do make it's > produced > the next error: > > Building default_target in directory /usr/local/src/VTK/Rendering > c++ -g -O2 -fno-coalesce-templates -fno-coalesce-static-vtables > -DvtkRenderingTCL_EXPORTS -I/usr/local/src/VTK/Rendering > -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK > -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Filtering > -I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics > -I/usr/local/src/VTK/IO -I/usr/local/src/VTK/Utilities/zlib > -I/usr/local/src/VTK/Utilities/png -I/usr/local/src/VTK/Utilities/jpeg > -I/usr/local/src/VTK/Common/Testing/Cxx > -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers > -I/System/Library/Frameworks/Tcl.framework/Versions/8.4/Headers > -I/System/Library/Frameworks/Tk.framework/Versions/8.4/Headers > -DVTK_USE_QUARTZ -c > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx -o > vtkTkRenderWidget.o > In file included from > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.h:62, > from > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:45: > /System/Library/Frameworks/Tk.framework/Versions/8.4/Headers/tk.h:86: > X11/Xlib.h: No such file or directory > In file included from > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: > /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:53: X11/Xlib.h: > No such > file or directory > /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:54: X11/Xutil.h: > No > such file or directory > In file included from > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: > /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:56: GL/glx.h: No > such > file or directory > In file included from > /usr/local/src/VTK/Rendering/vtkXOpenGLRenderWindow.h:57, > from > /usr/local/src/VTK/Rendering/vtkTkRenderWidget.cxx:52: > /usr/local/src/VTK/vtkToolkits.h:28: warning: `VTK_USE_QUARTZ' redefined > *Initialization*:1: warning: this is the location of the previous > definition > make[3]: *** [vtkTkRenderWidget.o] Error 1 > make[2]: *** [default_target] Error 2 > make[1]: *** [default_target_Rendering] Error 2 > make: *** [default_target] Error 2 > > > I don't know how solve this error. > Could anybody help me? > > Thank you > Daniel S?ez > _______________________________________________ > 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 dsaez at iti.upv.es Thu Apr 25 05:39:04 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Thu, 25 Apr 2002 11:39:04 +0200 Subject: [vtkusers] Tcl/Tk in Quartz MacOSX Message-ID: <20020425093632.1FF7115EA22@mailborg.iti.upv.es> Hello, I would want to know if somebody has installed Tcl/Tk in a MacOSX using Quartz (Without X) and has been able to build VTK with wrapping TCL. I would also like to know what I have to do to build with wrapping Java, because I have the next problem: /usr/local/bin/cmake -S/usr/local/src/VTK -O/usr/local/src/VTK -H/usr/local/src/VTK -B/usr/local/src/VTK cmake.depends is up-to-date Building default_target in directory /usr/local/src/VTK/Wrapping /usr/local/bin/cmake -S/usr/local/src/VTK/Wrapping -O/usr/local/src/VTK/Wrapping -H/usr/local/src/VTK -B/usr/local/src/VTK Building default_target in directory /usr/local/src/VTK/Utilities /usr/local/bin/cmake -S/usr/local/src/VTK/Utilities -O/usr/local/src/VTK/Utilities -H/usr/local/src/VTK -B/usr/local/src/VTK cmake.depends is up-to-date Building default_target in directory /usr/local/src/VTK/Utilities/zlib /usr/local/bin/cmake -S/usr/local/src/VTK/Utilities/zlib -O/usr/local/src/VTK/Utilities/zlib -H/usr/local/src/VTK -B/usr/local/src/VTK cmake.depends is up-to-date Building default_target in directory /usr/local/src/VTK/Utilities/png /usr/local/bin/cmake -S/usr/local/src/VTK/Utilities/png -O/usr/local/src/VTK/Utilities/png -H/usr/local/src/VTK -B/usr/local/src/VTK Building default_target in directory /usr/local/src/VTK/Utilities/jpeg /usr/local/bin/cmake -S/usr/local/src/VTK/Utilities/jpeg -O/usr/local/src/VTK/Utilities/jpeg -H/usr/local/src/VTK -B/usr/local/src/VTK Building default_target in directory /usr/local/src/VTK/Utilities/Doxygen /usr/local/bin/cmake -S/usr/local/src/VTK/Utilities/Doxygen -O/usr/local/src/VTK/Utilities/Doxygen -H/usr/local/src/VTK -B/usr/local/src/VTK cmake.depends is up-to-date Building default_target in directory /usr/local/src/VTK/Common /usr/local/bin/cmake -S/usr/local/src/VTK/Common -O/usr/local/src/VTK/Common -H/usr/local/src/VTK -B/usr/local/src/VTK c++ -g -O2 -fno-coalesce-templates -fno-coalesce-static-vtables -DvtkCommonJava_EXPORTS -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Filtering -I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics -I/usr/local/src/VTK/IO -I/usr/local/src/VTK/Utilities/zlib -I/usr/local/src/VTK/Utilities/png -I/usr/local/src/VTK/Utilities/jpeg -I/usr/local/src/VTK/Common/Testing/Cxx -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers -c /usr/local/src/VTK/Common/vtkJavaUtil.cxx -o vtkJavaUtil.o /usr/local/src/VTK/Common/vtkJavaUtil.cxx:88: thread.h: No such file or directory /usr/local/src/VTK/Common/vtkJavaUtil.cxx:89: synch.h: No such file or directory make[3]: *** [vtkJavaUtil.o] Error 1 make[2]: *** [default_target] Error 2 make[1]: *** [default_target_Common] Error 2 make: *** [default_target] Error 2 Please, if someone can help me I'll thank Daniel S?ez From bill.hoffman at kitware.com Thu Apr 25 07:45:43 2002 From: bill.hoffman at kitware.com (William A. Hoffman) Date: Thu, 25 Apr 2002 07:45:43 -0400 Subject: [vtkusers] Tcl/Tk in Quartz MacOSX In-Reply-To: <20020425093632.1FF7115EA22@mailborg.iti.upv.es> Message-ID: <5.1.0.14.0.20020425073622.02f87268@pop.nycap.rr.com> The current state of VTK on MacOSX is somewhat incomplete. The basic VTK classes compile with tcl wrapping, and you can create renderwindows, but that is about it. Here is a list of things not done: 1. tcl/TK interaction does not work. The Quartz stuff in VTK is based on the newer Coco, but TK is based on the older Coco. I am not sure it is possible to mix the two. However, it may not be that hard to write a Coco based renderwindow for VTK. 2. The text mapper has not been implemented. I would be willing to help someone write the coco based renderwindow or perhaps someone with more knowledge of Coco and Carbon could have a look and see if the two can be mixed. I do not think anyone has done Java or Python for MacOSX yet. So, VTK is only really about 80% done on MacOSX. At 11:39 AM 4/25/2002 +0200, Daniel =?iso-8859-15?q?S=E1ez=20Domingo?= wrote: >Hello, > >I would want to know if somebody has installed Tcl/Tk in a MacOSX using >Quartz (Without X) and has been able to build VTK with wrapping TCL. > >I would also like to know what I have to do to build with wrapping Java, >because I have the next problem: From heiland at ncsa.uiuc.edu Thu Apr 25 07:50:11 2002 From: heiland at ncsa.uiuc.edu (Randy Heiland) Date: Thu, 25 Apr 2002 06:50:11 -0500 Subject: [vtkusers] insphere radius of a tetrahedron In-Reply-To: "Rupen Melkisetoglu" "[vtkusers] insphere radius of a tetrahedron" (Apr 25, 2:15am) References: Message-ID: <1020425065011.ZM29637@kelgia.ncsa.uiuc.edu> If you have the outer, isn't the inner just 1/3 of it? Randy ------------------------ Hi everybody, I would like to calculate the insphere radius of a tetrahedron...I used Circumsphere() function for the outer radius... How can I compute easily the inner sphere radius of a tetrahedron in VTK or mathematically using VTK.... I would be greatful if you help me..... Thanks.... Rupi From will.schroeder at kitware.com Thu Apr 25 09:57:20 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 25 Apr 2002 09:57:20 -0400 Subject: [vtkusers] insphere radius of a tetrahedron In-Reply-To: <1020425065011.ZM29637@kelgia.ncsa.uiuc.edu> References: <"Rupen Melkisetoglu" Message-ID: <5.1.0.14.0.20020425095313.021ac560@pop.nycap.rr.com> The inscribed sphere radius is not directly related to the circumsphere. In the limiting case (where the tetra approaches flat) the insphere r ~ 0, while the circumsphere R -> infinity. Go to http://mathforum.org/dr.math/faq/formulas/faq.polyhedron.html#tetrahedron for the equations. If you code it up, please let's add it into vtkTetra as a companion to "static double Circumsphere(double p1[3], double p2[3], double p3[3], double p4[3], double center[3]);" The ratio of r/R is a good measure of the quality of the tetrahedron, and is used by finite element analysts. Will At 06:50 AM 4/25/2002 -0500, Randy Heiland wrote: >If you have the outer, isn't the inner just 1/3 of it? > >Randy > >------------------------ >Hi everybody, > >I would like to calculate the insphere radius of a tetrahedron...I used >Circumsphere() function for the outer radius... > >How can I compute easily the inner sphere radius of a tetrahedron in VTK or >mathematically using VTK.... > >I would be greatful if you help me..... > >Thanks.... > >Rupi >_______________________________________________ >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 Olivier.Cuisenaire at epfl.ch Thu Apr 25 10:13:58 2002 From: Olivier.Cuisenaire at epfl.ch (Olivier Cuisenaire) Date: Thu, 25 Apr 2002 16:13:58 +0200 Subject: [vtkusers] VTK with mosix Message-ID: Has anybody already used VTK in combination with openmosix ? Right now it only works for me if I force VTK to restrict itself to a single thread and forbid mosix from migrating my vtk process. Anybody had more success ? Thanks. -- Olivier Cuisenaire From hsundar at caip.rutgers.edu Thu Apr 25 10:53:57 2002 From: hsundar at caip.rutgers.edu (Hari Sundar) Date: Thu, 25 Apr 2002 10:53:57 -0400 Subject: [vtkusers] Custom classes in Tcl Message-ID: <3CC81885.1050003@caip.rutgers.edu> Hi, I have written a few classes, derived from std. VTK classes. Now, I want to use these from a Tcl script the way we use std vtk classes. what all would I need to do for this ? Is it simply a matter of compiling VTK again with this class thrown in ? In case you need to know, my class is a filter, that is derived from vtkPolyDataToPolyDataFilter thanks, Hari From eric at cctcorp.com Thu Apr 25 11:36:10 2002 From: eric at cctcorp.com (Eric F. Sorton) Date: Thu, 25 Apr 2002 11:36:10 -0400 Subject: [vtkusers] Repeatable core using nested vtkPropAssembly under VTK 3.2.0 and X In-Reply-To: <20020424125556.A10767@buri.inside.cctcorp.com>; from eric@cctcorp.com on Wed, Apr 24, 2002 at 12:55:56PM -0400 References: <20020424125556.A10767@buri.inside.cctcorp.com> Message-ID: <20020425113610.A1127@buri.inside.cctcorp.com> On Wed, Apr 24, 2002 at 12:55:56PM -0400, Eric F. Sorton wrote: > I am doing something wrong? Is this a bug in 3.2.0? Is it fixed in 4.0? Any > information would be appreciated. I download, installed, and built 4.0 in hopes of fixing the problem. The same crash occurs in VTK 4.0. The stack trace looks nearly identical. Eric -- +--=--=- Eric F. Sorton =--=--=--=--=--=--=--=--=--=-+ | Command and Control Technologies Corporation (http://www.cctcorp.com) | | Phone: (321) 264-1193 Fax: (321) 383-5096 | +--=--=--=--=--=--=--=--=--=--=--=-+-=--=--=--=--=--=--=--=--=--=--=--=-+ From philipp.batchelor at kcl.ac.uk Thu Apr 25 11:32:54 2002 From: philipp.batchelor at kcl.ac.uk (Philipp.Batchelor) Date: Thu, 25 Apr 2002 16:32:54 +0100 Subject: [vtkusers] insphere radius of a tetrahedron References: <"Rupen Melkisetoglu" <5.1.0.14.0.20020425095313.021ac560@pop.nycap.rr.com> Message-ID: <3CC821A6.A1A0BB32@kcl.ac.uk> I just did a google search, I found this site/code for different shape measures of a tetrahedron, in particular ratio in/out gives: (obviously, Randy was talking about the regular tetrahedron) /*--------------------------------------------------------------------------- * FUNCTION: TetShapeMeasure_RadiusRatio * * Return the tetrahedron shape measure rho given by three times rho_in * divided by rho_out where rho_in is the inradius and rho_out is the * circumradius of the tetrahedron. This tetrahedron shape measure is * independant of the sign of the volume of the tetrahedron because the * volume is squared. * *---------------------------------------------------------------------------*/ .... cf http://www.erc.msstate.edu/~rksingh/angle_cal.html .... // The formula comes from: // A. Liu and B. Joe // ``Relation Between Tetraherdon Shape Measure'' // BIT 34 (1994), 268--287. return ( 216 * volume * volume ) / ( ( areaBCD + areaACD + areaABD + areaABC ) * sqrt( ( a + b + c ) * ( a + b - c ) * ( a + c - b ) * ( b + c - a ) ) ); Ph. Batchelor Will Schroeder wrote: > > The inscribed sphere radius is not directly related to the circumsphere. In > the limiting case (where the tetra approaches flat) the insphere r ~ 0, > while the circumsphere R -> infinity. Go to > http://mathforum.org/dr.math/faq/formulas/faq.polyhedron.html#tetrahedron > for the equations. If you code it up, please let's add it into vtkTetra as > a companion to "static double Circumsphere(double p1[3], double p2[3], > double p3[3], double p4[3], double center[3]);" The ratio of r/R is a good > measure of the quality of the tetrahedron, and is used by finite element > analysts. > Will > > At 06:50 AM 4/25/2002 -0500, Randy Heiland wrote: > >If you have the outer, isn't the inner just 1/3 of it? > > > >Randy > > > >------------------------ > >Hi everybody, > > > >I would like to calculate the insphere radius of a tetrahedron...I used > >Circumsphere() function for the outer radius... > > > >How can I compute easily the inner sphere radius of a tetrahedron in VTK or > >mathematically using VTK.... > > > >I would be greatful if you help me..... > > > >Thanks.... > > > >Rupi > >_______________________________________________ > >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 -- ---------------------------------- Dr Philippe Batchelor King's College London London SE1 9RT phone: +44 207 955 4223 fax: +44 207 955 4532 ------------------------------------------------------ From bthomas at engineering.uiowa.edu Thu Apr 25 12:28:49 2002 From: bthomas at engineering.uiowa.edu (bthomas) Date: Thu, 25 Apr 2002 11:28:49 -0500 Subject: [vtkusers] VRML orientation problem Message-ID: <3CC1B528@webmail.engineering.uiowa.edu> I am working on a program written in python using VTK. I have successfully saved VRML files using the VRMLexproter and I can import them using the VRMLimporter. The problem is the orientation saves to the file correctly but I can't get my application to read it. My code is: opener = vtk.vtkVRMLImporter() opener.SetRenderWindow(self.renWin) opener.SetFileName(filename) opener.Read() # the importer created the renderer renCollection = self.renWin.GetRenderers() renCollection.InitTraversal() ren = renCollection.GetNextItem() #get actors from the VRML file actCollection = ren.GetActors() actCollection.InitTraversal() for n in range(actCollection.GetNumberOfItems()): act = actCollection.GetNextItem() print act.GetOrientationWXYZ() print act.GetOrientation() These print statements print: (0.0, 0.0, 0.0, 1.0) (0.0, 0.0, 0.0) which is incorrect because the rotation of the VRML file reads: rotation 0.878868 -0.458779 -0.130815 1.99451 Everything else imports fine. Thanks for any suggestions. Benjamin Thomas From dsaez at iti.upv.es Thu Apr 25 12:47:19 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Thu, 25 Apr 2002 18:47:19 +0200 Subject: [vtkusers] Load vtkCommonJava library on MAC OSX Message-ID: <20020425164449.C064D15EA24@mailborg.iti.upv.es> Hello, I have built VTK 4.0 in a MacOSX (Quartz) wit wrapping Java and all has gone well. I have compiled all the .java that has been created. When I try to load libraries in a java program I do: static { System.loadLibrary("vtkCommonJava") } and I put the DYLD_LIBRARY_PATH variable to /usr/local/bin/vtk, where I have the libvtkCommonJava.dylib. When I have done all this, I compile the java program and when I execute it, it's produced the next error UnsatisfiedLinkError: vtkCommonJava not found in java.library.path What is the cause of this error? Thank you Daniel S?ez From eric at cctcorp.com Thu Apr 25 12:47:45 2002 From: eric at cctcorp.com (Eric F. Sorton) Date: Thu, 25 Apr 2002 12:47:45 -0400 Subject: [vtkusers] Repeatable core using nested vtkPropAssembly under VTK 3.2.0 and X In-Reply-To: <20020424125556.A10767@buri.inside.cctcorp.com>; from eric@cctcorp.com on Wed, Apr 24, 2002 at 12:55:56PM -0400 References: <20020424125556.A10767@buri.inside.cctcorp.com> Message-ID: <20020425124745.A1706@buri.inside.cctcorp.com> I have compiled additional information on the problem which is noted below. On Wed, Apr 24, 2002 at 12:55:56PM -0400, Eric F. Sorton wrote: > I am attempting to create a hierarchy of objects. I am using the > vtkPropAssembly class as a container. As discussed, in the documentation, it > should be possible to create a hierarchy of vktPropAssembly. When I create > nested vtkPropAssembly's, my application dumps a core. I changed from a vtkPropAssembly to a vtkAssembly and all worked well. However, I would like my assembly to consist of both vtkProp items and vtkProp3D objects so using vtkAssembly is not a viable option (vtkAssembly only works with vtkProp3D objects). > I used the graphics/examplesCxx/Cone4.cxx as a base and added two > vtkPropAssembly classes. See attached code. When I execute this code, I get a > core dump. Pulling up the debugger, I get the following stack trace: > > #0 0x40328add in vtkProp3D::PokeMatrix () from /usr/lib/libVTKGraphics.so.3.2 > #1 0x407ea3d4 in vtkPropAssembly::RenderOpaqueGeometry () from /usr/lib/libVTKCommon.so.3.2 > #2 0x40277c81 in vtkRenderer::UpdateGeometry () from /usr/lib/libVTKGraphics.so.3.2 > #3 0x40319049 in vtkOpenGLRenderer::DeviceRender () from /usr/lib/libVTKGraphics.so.3.2 > #4 0x40276f0c in vtkRenderer::Render () from /usr/lib/libVTKGraphics.so.3.2 > #5 0x4027bc95 in vtkRendererCollection::Render () from /usr/lib/libVTKGraphics.so.3.2 > #6 0x402739e5 in vtkRenderWindow::DoStereoRender () from /usr/lib/libVTKGraphics.so.3.2 > #7 0x40273992 in vtkRenderWindow::DoFDRender () from /usr/lib/libVTKGraphics.so.3.2 > #8 0x402735b6 in vtkRenderWindow::DoAARender () from /usr/lib/libVTKGraphics.so.3.2 > #9 0x40272e2b in vtkRenderWindow::Render () from /usr/lib/libVTKGraphics.so.3.2 > #10 0x4032f771 in vtkXRenderWindow::Render () from /usr/lib/libVTKGraphics.so.3.2 > #11 0x0804b24a in main (argc=1, argv=0xbffff9a4) at Cone4.cxx:49 > #12 0x40ab917f in __libc_start_main () from /lib/libc.so.6 I rebuilt with debug when I build vtk 4.0. The top of the stack now provides the following information: #0 0x40688375 in vtkProp3D::PokeMatrix (this=0x8059658, matrix=0x0) at /var/cct/devel/eric/vtk-4.0/Rendering/vtkProp3D.cxx:519 The crash occurs in vtkProp3D::PokeMatrix() on line 519. The pointer CachedProp3D is NULL (this was verified with the debugger). The problem appears to be in the way assemblies interact with PokeMatrix(). A review of the code shows that PokeMatrix() is always called in pairs, the first call sets the matrix while the second call clears it. Based upon this design, the first time PokeMatrix() is called matrix should never be NULL. I added a debug line to the beginning of PokeMatrix(). In the case of nested assemblies, the FIRST time PokeMatrix() is called, the matrix argument is NULL. This is obviously incorrect based upon the design described above. > I am doing something wrong? Is this a bug in 3.2.0? Is it fixed in 4.0? Any > information would be appreciated. As I stated in a previous message, the problem occurs in both 3.2.0 and 4.0. I feel the problem is fairly well isolated, I just need someone with a better understanding of the overall design to suggest the correct fix. I was able to devise the following possibilities, but I am unsure if either is the "correct" fix: o) Eliminate the PokeMatrix() calls from vtkPropAssembly. I tested this and it works. Based upon the documentation, vtkPropAssembly is not supposed to allow transforms of its items, therefore, the PokeMatrix() call may not be valid. I implemented this and it did fix the problem. o) Added logic to PokeMatrix() to do nothing when both the matrix input argument and CachedProp3D are NULL. This would probably work. This has the feel of fixing the symptom but not the true problem. Eric -- +--=--=- Eric F. Sorton =--=--=--=--=--=--=--=--=--=-+ | Command and Control Technologies Corporation (http://www.cctcorp.com) | | Phone: (321) 264-1193 Fax: (321) 383-5096 | +--=--=--=--=--=--=--=--=--=--=--=-+-=--=--=--=--=--=--=--=--=--=--=--=-+ From stephane.lemaire at dassault-aviation.fr Thu Apr 25 14:06:27 2002 From: stephane.lemaire at dassault-aviation.fr (Stephane LEMAIRE) Date: Thu, 25 Apr 2002 20:06:27 +0200 Subject: [vtkusers] vtk AND macosx : problem Message-ID: <3CC845A3.B632576D@dassault-aviation.fr> Hello, I have successfully built vtk on macosx using quartz rendering engine and without wrapping. But when I try to run c++ samples, a window is appearing and vanishes immediately and I'm back to the terminal prompt without any error message. Does anyone know where I'm wrong and why I've got this behaviour ? Thank you for your help, Stephane. From will.schroeder at kitware.com Thu Apr 25 13:53:55 2002 From: will.schroeder at kitware.com (Will Schroeder) Date: Thu, 25 Apr 2002 13:53:55 -0400 Subject: [vtkusers] Repeatable core using nested vtkPropAssembly under VTK 3.2.0 and X In-Reply-To: <20020425124745.A1706@buri.inside.cctcorp.com> References: <20020424125556.A10767@buri.inside.cctcorp.com> <20020424125556.A10767@buri.inside.cctcorp.com> Message-ID: <5.0.2.1.0.20020425135135.025d5e28@pop.nycap.rr.com> Hi Eric- I'll take responsibility for this. Maybe while travelling next week I can find time to clean it up. Thanks for the feedback and detailed analysis. Will At 12:47 PM 4/25/2002 -0400, Eric F. Sorton wrote: >I have compiled additional information on the problem which is noted below. > >On Wed, Apr 24, 2002 at 12:55:56PM -0400, Eric F. Sorton wrote: > > I am attempting to create a hierarchy of objects. I am using the > > vtkPropAssembly class as a container. As discussed, in the > documentation, it > > should be possible to create a hierarchy of vktPropAssembly. When I create > > nested vtkPropAssembly's, my application dumps a core. > >I changed from a vtkPropAssembly to a vtkAssembly and all worked well. >However, I would like my assembly to consist of both vtkProp items and >vtkProp3D objects so using vtkAssembly is not a viable option (vtkAssembly >only >works with vtkProp3D objects). From 4mg19 at qlink.queensu.ca Thu Apr 25 13:59:38 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Thu, 25 Apr 2002 13:59:38 -0400 (EDT) Subject: [vtkusers] Converting PolyData into ImageData Message-ID: Hello: I have Polydata. Can save it using PolyDataWriter. I would like to save it with PNMWriter, but I think I have to convert my PolyData into ImageData. How do I do this? Also, along a similar vein, I would like slice up my PolyData and save the sections as TIFFs. I understand how to use ImageReslice, but it requires ImageData which I don't have. Any help or clues would be much appreciated. Thank you, Mike From berk.geveci at kitware.com Thu Apr 25 14:01:55 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 25 Apr 2002 14:01:55 -0400 Subject: [vtkusers] vtk AND macosx : problem In-Reply-To: <3CC845A3.B632576D@dassault-aviation.fr> References: <3CC845A3.B632576D@dassault-aviation.fr> Message-ID: <1019757717.1202.5.camel@caemlyn.kitwarein.com> That is the normal behavior. What you are running are C++ tests which normally render once and exit. Try adding g a -I option to the command line. -Berk On Thu, 2002-04-25 at 14:06, Stephane LEMAIRE wrote: > Hello, > > I have successfully built vtk on macosx using quartz rendering engine > and without wrapping. But when I try to run c++ samples, a window is > appearing and vanishes immediately and I'm back to the terminal prompt > without any error message. > > Does anyone know where I'm wrong and why I've got this behaviour ? > > Thank you for your help, > > Stephane. > > _______________________________________________ > 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.ca Thu Apr 25 14:16:49 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 25 Apr 2002 14:16:49 -0400 (EDT) Subject: [vtkusers] Converting PolyData into ImageData In-Reply-To: Message-ID: Hi Micheal, There are quite a few ways to convert PolyData to ImageData and vice versa, and they lead to very different results. So the question of 'how to convert PolyData to ImageData' is a bit too vague. The most common way is probably just to render the PolyData and then get a window screenshot via vtkWindowToImageFilter. Is this what you want? Or, if the PolyData forms a closed surface the vtkPolyDataToImageStencil can be used to make a stencil that can then be used to make the voxels inside the PolyData one color and the voxels outside the PolyData another color. Or, if you want to create an image by interpolating the Scalars associated with the vertices or cells in the PolyData you can use vtkProbeFilter. Going on from here, if you want to generate images of the contours of your vtkPolyData, then you can use vtkCutter to get cross sections of the data, render each cross-section, and then save the image that is rendered as a TIFF. The image will contain a thin line corresponding to the surface of the mesh. If the cross-section is a convex polygon then it can be filled in with vtkDelaunay2D. If you want to generate images that are e.g. white inside the mesh and black outside then you can use vtkPolyDataToImageStencil and vtkImageStencil to create a 3D image volume from the mesh, and then save the image volume as a set of TIFF slices via vtkTIFFWriter. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 25 Apr 2002, Michael Gy?rffy wrote: > Hello: > > I have Polydata. Can save it using PolyDataWriter. > > I would like to save it with PNMWriter, but I think I have to convert my > PolyData into ImageData. How do I do this? > > Also, along a similar vein, I would like slice up my PolyData and save the > sections as TIFFs. I understand how to use ImageReslice, but it requires > ImageData which I don't have. > > Any help or clues would be much appreciated. > > Thank you, > > 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 zbian at navitrak.com Thu Apr 25 14:20:02 2002 From: zbian at navitrak.com (Benny Bian) Date: Thu, 25 Apr 2002 15:20:02 -0300 Subject: [vtkusers] Efficient Progressive Data Rendering? Message-ID: <40126CABC6D4F6459040997C311FBF73032091@navitraksrv01.navitrak.ca> Hi, All, I am working on a DEM visualization project using VTK. I successfully read a small data set and build a poly data set to view. For a large area of elevation data, I need progressively to create a small data set (enough to fill the view window) and continuously load new data when users continuously pan or fly to a different area. I searched the previous posting and did not find the right approach. Can any one help me? I think constantly rebuild datasets from the beginning to view is very expensive. How does VTK framework support this kind of job? Thanks lot. Benny From seshu_madhavi at hotmail.com Thu Apr 25 16:13:37 2002 From: seshu_madhavi at hotmail.com (madhavi ayyalasomayajula) Date: Thu, 25 Apr 2002 20:13:37 +0000 Subject: [vtkusers] 3D image from stacks of 2D images. Message-ID: An HTML attachment was scrubbed... URL: From fermion at mac.com Thu Apr 25 16:37:48 2002 From: fermion at mac.com (Mike Robertson) Date: Thu, 25 Apr 2002 16:37:48 -0400 Subject: [vtkusers] Mac os x: succcess, but... Message-ID: Alright. I've had much success now getting VTK to compile with python and tcl wrapping, *however*.... when I try to run mayavi, it returns this error: mprober2% python mayavi.py Traceback (most recent call last): File "mayavi.py", line 3, in ? import Main File "./Main.py", line 18, in ? import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common File "./Base/Objects.py", line 18, in ? import Tkinter, vtkpython, math, tkColorChooser ImportError: No module named vtkpython Of course, I have vtkpython because I wrapped to python. :) It's here: /usr/local/vtk/VTK/Wrapping/Python/vtkpython.py /usr/local/vtk/VTK/Wrapping/Python/vtkpythontk.py How do I get this program to recognize its location? I wrapped using the system frameworks, after installing tcl 8.4 and a python 2.2. mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com Thousands of years ago, cats were worshiped as gods. Cats have never forgotten this. From dgobbi at irus.rri.ca Thu Apr 25 16:46:54 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 25 Apr 2002 16:46:54 -0400 (EDT) Subject: [vtkusers] Mac os x: succcess, but... In-Reply-To: Message-ID: Hi Mike, The easiest solution is to set the PYTHONPATH variable to /usr/local/vtk/VTK/Wrapping/Python/ either that or you can add a text file vtk.pth to the site-packages directory in the python install directory that contains the path, eg. echo /usr/local/vtk/VTK/Wrapping/Python/ > /site-packages/vtk.pth Because Tkinter uses Carbon but VTK is Quartz/Cocoa, you will not be able to run MayaVI or any other VTK program that uses Tkinter. That will have to wait until VTK grows a Carbon compatibility layer (volunteers always welcome). - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Thu, 25 Apr 2002, Mike Robertson wrote: > Alright. I've had much success now getting VTK to compile with python and > tcl wrapping, *however*.... when I try to run mayavi, it returns this error: > > mprober2% python mayavi.py > Traceback (most recent call last): > File "mayavi.py", line 3, in ? > import Main > File "./Main.py", line 18, in ? > import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common > File "./Base/Objects.py", line 18, in ? > import Tkinter, vtkpython, math, tkColorChooser > ImportError: No module named vtkpython > > Of course, I have vtkpython because I wrapped to python. :) It's here: > /usr/local/vtk/VTK/Wrapping/Python/vtkpython.py > /usr/local/vtk/VTK/Wrapping/Python/vtkpythontk.py > > How do I get this program to recognize its location? I wrapped using the > system frameworks, after installing tcl 8.4 and a python 2.2. > > > mike > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Michael Robertson > fermion at mac.com > http://thenewcosmos.com > > > Thousands of years ago, cats were worshiped as gods. Cats have never > forgotten this. > > > > _______________________________________________ > 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 fermion at mac.com Thu Apr 25 19:38:42 2002 From: fermion at mac.com (Mike Robertson) Date: Thu, 25 Apr 2002 19:38:42 -0400 Subject: [vtkusers] Mac os x: succcess, but... In-Reply-To: Message-ID: Hmm. I'll get this to work. I'm running in the X11 environment, not in quartz... (perhaps open denial here, but... optimism always works out) New error. I set the PYTHONPATH to /usr/local/vtk/VTK/Wrapping/Python/, but a lot of libraries are actually in /usr/local/bin/ (*.so). What should I do here? Just make some hard links, or set another env? Thanks. Traceback (most recent call last): File "mayavi.py", line 3, in ? import Main File "./Main.py", line 18, in ? import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common File "./Base/Objects.py", line 18, in ? import Tkinter, vtkpython, math, tkColorChooser File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: No module named libvtkCommonPython mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com "The wisdom of the wise and the experience of the ages are perpetuated by quotations." -Benjamin Disraeli > From: David Gobbi > Date: Thu, 25 Apr 2002 16:46:54 -0400 (EDT) > To: Mike Robertson > Cc: > Subject: Re: [vtkusers] Mac os x: succcess, but... > > Hi Mike, > > The easiest solution is to set the PYTHONPATH variable to > /usr/local/vtk/VTK/Wrapping/Python/ > either that or you can add a text file vtk.pth to > the site-packages directory in the python install > directory that contains the path, eg. > echo /usr/local/vtk/VTK/Wrapping/Python/ > /site-packages/vtk.pth > > Because Tkinter uses Carbon but VTK is Quartz/Cocoa, you will not be able to > run MayaVI or any other VTK program that uses Tkinter. That will have to > wait until VTK grows a Carbon compatibility layer (volunteers always welcome). > > - David > > -- > David Gobbi, MSc dgobbi at irus.rri.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > > On Thu, 25 Apr 2002, Mike Robertson wrote: > >> Alright. I've had much success now getting VTK to compile with python and >> tcl wrapping, *however*.... when I try to run mayavi, it returns this error: >> >> mprober2% python mayavi.py >> Traceback (most recent call last): >> File "mayavi.py", line 3, in ? >> import Main >> File "./Main.py", line 18, in ? >> import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common >> File "./Base/Objects.py", line 18, in ? >> import Tkinter, vtkpython, math, tkColorChooser >> ImportError: No module named vtkpython >> >> Of course, I have vtkpython because I wrapped to python. :) It's here: >> /usr/local/vtk/VTK/Wrapping/Python/vtkpython.py >> /usr/local/vtk/VTK/Wrapping/Python/vtkpythontk.py >> >> How do I get this program to recognize its location? I wrapped using the >> system frameworks, after installing tcl 8.4 and a python 2.2. >> >> >> mike >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Michael Robertson >> fermion at mac.com >> http://thenewcosmos.com >> >> >> Thousands of years ago, cats were worshiped as gods. Cats have never >> forgotten this. >> >> >> >> _______________________________________________ >> 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.ca Thu Apr 25 19:53:26 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Thu, 25 Apr 2002 19:53:26 -0400 (EDT) Subject: [vtkusers] Mac os x: succcess, but... In-Reply-To: Message-ID: On Thu, 25 Apr 2002, Mike Robertson wrote: > New error. I set the PYTHONPATH to /usr/local/vtk/VTK/Wrapping/Python/, but > a lot of libraries are actually in /usr/local/bin/ (*.so). What should I do > here? Just make some hard links, or set another env? Just include that in that PYTHONPATH as well: export set PYTHONPATH = /usr/local/vtk/VTK/Wrapping/Python/;/bin - David > Thanks. > > Traceback (most recent call last): > File "mayavi.py", line 3, in ? > import Main > File "./Main.py", line 18, in ? > import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common > File "./Base/Objects.py", line 18, in ? > import Tkinter, vtkpython, math, tkColorChooser > File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? > exec "from "+kit_name+" import *" > File "", line 1, in ? > ImportError: No module named libvtkCommonPython > > > mike > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Michael Robertson > fermion at mac.com > http://thenewcosmos.com > > > "The wisdom of the wise and the experience of the ages are perpetuated by > quotations." > > -Benjamin Disraeli > > > > > From: David Gobbi > > Date: Thu, 25 Apr 2002 16:46:54 -0400 (EDT) > > To: Mike Robertson > > Cc: > > Subject: Re: [vtkusers] Mac os x: succcess, but... > > > > Hi Mike, > > > > The easiest solution is to set the PYTHONPATH variable to > > /usr/local/vtk/VTK/Wrapping/Python/ > > either that or you can add a text file vtk.pth to > > the site-packages directory in the python install > > directory that contains the path, eg. > > echo /usr/local/vtk/VTK/Wrapping/Python/ > /site-packages/vtk.pth > > > > Because Tkinter uses Carbon but VTK is Quartz/Cocoa, you will not be able to > > run MayaVI or any other VTK program that uses Tkinter. That will have to > > wait until VTK grows a Carbon compatibility layer (volunteers always welcome). > > > > - David > > > > -- > > David Gobbi, MSc dgobbi at irus.rri.ca > > Advanced Imaging Research Group > > Robarts Research Institute, University of Western Ontario > > > > On Thu, 25 Apr 2002, Mike Robertson wrote: > > > >> Alright. I've had much success now getting VTK to compile with python and > >> tcl wrapping, *however*.... when I try to run mayavi, it returns this error: > >> > >> mprober2% python mayavi.py > >> Traceback (most recent call last): > >> File "mayavi.py", line 3, in ? > >> import Main > >> File "./Main.py", line 18, in ? > >> import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common > >> File "./Base/Objects.py", line 18, in ? > >> import Tkinter, vtkpython, math, tkColorChooser > >> ImportError: No module named vtkpython > >> > >> Of course, I have vtkpython because I wrapped to python. :) It's here: > >> /usr/local/vtk/VTK/Wrapping/Python/vtkpython.py > >> /usr/local/vtk/VTK/Wrapping/Python/vtkpythontk.py > >> > >> How do I get this program to recognize its location? I wrapped using the > >> system frameworks, after installing tcl 8.4 and a python 2.2. > >> > >> > >> mike > >> > >> > >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > >> Michael Robertson > >> fermion at mac.com > >> http://thenewcosmos.com > >> > >> > >> Thousands of years ago, cats were worshiped as gods. Cats have never > >> forgotten this. > >> > >> > >> > >> _______________________________________________ > >> 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 fermion at mac.com Thu Apr 25 20:42:18 2002 From: fermion at mac.com (Mike Robertson) Date: Thu, 25 Apr 2002 20:42:18 -0400 Subject: [vtkusers] Mac os x: succcess, but ... More... In-Reply-To: Message-ID: Anyone have any idea what could be confusing MayaVi here? These modules exist. The one it's referring to is in /usr/local/bin... Perhaps the .so is bothering it? Thanks [sull-10-114:documents/temp/mayavi-1.0] root# setenv PYTHONPATH=/usr/local/bin/:/usr/local/vtk/VTK/Wrapping/Python/ [sull-10-114:documents/temp/mayavi-1.0] root# python mayavi.py Traceback (most recent call last): File "mayavi.py", line 3, in ? import Main File "./Main.py", line 18, in ? import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common File "./Base/Objects.py", line 18, in ? import Tkinter, vtkpython, math, tkColorChooser File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: No module named libvtkCommonPython [sull-10-114:documents/temp/mayavi-1.0] root# mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com ". . . The Egyptians were obsessed with salt. They salted everything, including their relatives. . ." - NPR, 2/26/02 ------ Forwarded Message From: Mike Robertson Date: Thu, 25 Apr 2002 20:27:55 -0400 To: David Gobbi Subject: Re: [vtkusers] Mac os x: succcess, but... Awesome. The setenv works now, but it's still returning the error. Perhaps it's the .so extension that's confusing it? [sull-10-114:documents/temp/mayavi-1.0] root# setenv PYTHONPATH=/usr/local/bin/:/usr/local/vtk/VTK/Wrapping/Python/ [sull-10-114:documents/temp/mayavi-1.0] root# python mayavi.py Traceback (most recent call last): File "mayavi.py", line 3, in ? import Main File "./Main.py", line 18, in ? import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common File "./Base/Objects.py", line 18, in ? import Tkinter, vtkpython, math, tkColorChooser File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: No module named libvtkCommonPython [sull-10-114:documents/temp/mayavi-1.0] root# mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com Thousands of years ago, cats were worshiped as gods. Cats have never forgotten this. > From: David Gobbi > Date: Thu, 25 Apr 2002 20:14:13 -0400 (EDT) > To: Mike Robertson > Subject: Re: [vtkusers] Mac os x: succcess, but... > > Bah, Windows(TM) is rotting my brain. Turn that semicolon into a colon. > > - David > > > On Thu, 25 Apr 2002, Mike Robertson wrote: > >> I'm actually using setenv... For some reason it doesn't recognize >> 'export'... Any idea how to do this with setenv? >> >> setenv PYTHONPATH = /usr/local/vtk/VTK/Wrapping/Python/;/usr/local/bin/ >> setenv: Too many arguments. >> >> >> mike >> >> >> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >> Michael Robertson >> fermion at mac.com >> http://thenewcosmos.com >> >> >> ". . . The Egyptians were obsessed with salt. They salted everything, >> including their relatives. . ." >> >> - NPR, 2/26/02 >> >> >> >>> From: David Gobbi >>> Date: Thu, 25 Apr 2002 19:53:26 -0400 (EDT) >>> To: Mike Robertson >>> Cc: >>> Subject: Re: [vtkusers] Mac os x: succcess, but... >>> >>> On Thu, 25 Apr 2002, Mike Robertson wrote: >>> >>>> New error. I set the PYTHONPATH to /usr/local/vtk/VTK/Wrapping/Python/, but >>>> a lot of libraries are actually in /usr/local/bin/ (*.so). What should I do >>>> here? Just make some hard links, or set another env? >>> >>> Just include that in that PYTHONPATH as well: >>> export set PYTHONPATH = /usr/local/vtk/VTK/Wrapping/Python/;/bin >>> >>> - David >>> >>> >>>> Thanks. >>>> >>>> Traceback (most recent call last): >>>> File "mayavi.py", line 3, in ? >>>> import Main >>>> File "./Main.py", line 18, in ? >>>> import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common >>>> File "./Base/Objects.py", line 18, in ? >>>> import Tkinter, vtkpython, math, tkColorChooser >>>> File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? >>>> exec "from "+kit_name+" import *" >>>> File "", line 1, in ? >>>> ImportError: No module named libvtkCommonPython >>>> >>>> >>>> mike >>>> >>>> >>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>> Michael Robertson >>>> fermion at mac.com >>>> http://thenewcosmos.com >>>> >>>> >>>> "The wisdom of the wise and the experience of the ages are perpetuated by >>>> quotations." >>>> >>>> -Benjamin Disraeli >>>> >>>> >>>> >>>>> From: David Gobbi >>>>> Date: Thu, 25 Apr 2002 16:46:54 -0400 (EDT) >>>>> To: Mike Robertson >>>>> Cc: >>>>> Subject: Re: [vtkusers] Mac os x: succcess, but... >>>>> >>>>> Hi Mike, >>>>> >>>>> The easiest solution is to set the PYTHONPATH variable to >>>>> /usr/local/vtk/VTK/Wrapping/Python/ >>>>> either that or you can add a text file vtk.pth to >>>>> the site-packages directory in the python install >>>>> directory that contains the path, eg. >>>>> echo /usr/local/vtk/VTK/Wrapping/Python/ > >>>>> /site-packages/vtk.pth >>>>> >>>>> Because Tkinter uses Carbon but VTK is Quartz/Cocoa, you will not be able >>>>> to >>>>> run MayaVI or any other VTK program that uses Tkinter. That will have to >>>>> wait until VTK grows a Carbon compatibility layer (volunteers always >>>>> welcome). >>>>> >>>>> - David >>>>> >>>>> -- >>>>> David Gobbi, MSc dgobbi at irus.rri.ca >>>>> Advanced Imaging Research Group >>>>> Robarts Research Institute, University of Western Ontario >>>>> >>>>> On Thu, 25 Apr 2002, Mike Robertson wrote: >>>>> >>>>>> Alright. I've had much success now getting VTK to compile with python and >>>>>> tcl wrapping, *however*.... when I try to run mayavi, it returns this >>>>>> error: >>>>>> >>>>>> mprober2% python mayavi.py >>>>>> Traceback (most recent call last): >>>>>> File "mayavi.py", line 3, in ? >>>>>> import Main >>>>>> File "./Main.py", line 18, in ? >>>>>> import Base.Objects, Base.ModuleManager, Base.DataVizManager, Common >>>>>> File "./Base/Objects.py", line 18, in ? >>>>>> import Tkinter, vtkpython, math, tkColorChooser >>>>>> ImportError: No module named vtkpython >>>>>> >>>>>> Of course, I have vtkpython because I wrapped to python. :) It's here: >>>>>> /usr/local/vtk/VTK/Wrapping/Python/vtkpython.py >>>>>> /usr/local/vtk/VTK/Wrapping/Python/vtkpythontk.py >>>>>> >>>>>> How do I get this program to recognize its location? I wrapped using the >>>>>> system frameworks, after installing tcl 8.4 and a python 2.2. >>>>>> >>>>>> >>>>>> mike >>>>>> >>>>>> >>>>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >>>>>> Michael Robertson >>>>>> fermion at mac.com >>>>>> http://thenewcosmos.com >>>>>> >>>>>> >>>>>> Thousands of years ago, cats were worshiped as gods. Cats have never >>>>>> forgotten this. >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> 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 >>>> >>> >>> >> > > ------ End of Forwarded Message From jbiddiscombe at skippingmouse.co.uk Thu Apr 25 21:46:42 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 26 Apr 2002 02:46:42 +0100 Subject: [vtkusers] Efficient Progressive Data Rendering? References: <40126CABC6D4F6459040997C311FBF73032091@navitraksrv01.navitrak.ca> Message-ID: <000c01c1ecc4$381267c0$0100a8c0@tigger> Benny, <<< I am working on a DEM visualization project using VTK. I successfully read a small data set and build a poly data set to view. For a large area of elevation data, I need progressively to create a small data set (enough to fill the view window) and continuously load new data when users continuously pan or fly to a different area. I searched the previous posting and did not find the right approach. Can any one help me? I think constantly rebuild datasets from the beginning to view is very expensive. How does VTK framework support this kind of job? >>> The way I've approached this sort of problem is to create a datareader that reads a tile of arbitrary size (n sq.km say). Then stuff lots of small tiles (say 4x4 grid for starters) into an assembly and create a separate actor for each sub tile. As the viewer moves over terrain, overload the assembly update mechanism and discard any tiles that have moved out of view and create new ones to fill in the spaces. This technique also has the advantage that textures can be overlaid on each tile (aerial photos/coverage maps/or just map maps) and get nice results. As textures are limited on most graphics cards to 2048x2048 or thereabouts, it can be hard to texture a large region nicely using just one actor. JB [PS. If you ever wish to contract out development of this kind of thing...I'm looking for new contracts.] From dan at barrt.ru Thu Apr 25 22:19:47 2002 From: dan at barrt.ru (Daniel A. Mezentsev) Date: Fri, 26 Apr 2002 09:19:47 +0700 Subject: [vtkusers] Mixing C++ and Tcl/Tk Code in vtk Application Message-ID: <3CC8B943.25B907CB@barrt.ru> Hi, All! I'm write some classes not derivative from vtk classes. I'm wrapped my own classes into Tcl/Tk script, but without standard vtk wrapper using. The following code is very slowly. AtomCluster cluster # this is my class cluster Load "water" vtkStructuredPoints vol vol SetDimensions 101 101 101 vol SetSpacing 0.1 0.1 0.1 vol SetOrigin -5 -5 -5 vtkFloatArray potential for {set i 0} {$i < [vol GetNumberOfPoints]} {incr i} { set r [vol GetPoint $i] set phi [cluster NuclerPotential [lindex $r 0] [lindex $r 1] [lindex $r 2]] potential InsertNextValue $phi } . . . . I want to use the following code : AtomCluster cluster cluster Load "water" vtkStructuredPoints vol vol SetDimensions 101 101 101 vol SetSpacing 0.1 0.1 0.1 vol SetOrigin -5 -5 -5 cluster CalculateNuclearPotential vol but I don't know how to obtain access to the object corresponding to the vtkStructuredPoints instance (vol in my case). Any suggestions ? With respect Daniel. From glgraf at asu.edu Fri Apr 26 00:54:48 2002 From: glgraf at asu.edu (Gary L. Graf) Date: Thu, 25 Apr 2002 21:54:48 -0700 Subject: [vtkusers] Possible bug in vtkRenderWindowInteractor Message-ID: <3CC8DD98.7EDB7964@asu.edu> Hi, I have been trying to generate a simple backdrop to a visualization. What I would like is the corner of a room (three orthogonal planes) which are textured to sit behind my data visualization. So far it seems incredibly hard to do so. I attempted to place a vtkPlaneSource with a texture alone in a render window. It displayed, but the render window interactor could never rotate the plane perpendicular to the viewer, it always tended to wobble with the viewer looking down the edge of the plane. My question is: Is this a bug or am I all messed up? How can I simply provide the backdrop I am looking for? Thanks - Gary From prabhu at aero.iitm.ernet.in Fri Apr 26 00:41:39 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 26 Apr 2002 10:11:39 +0530 Subject: [vtkusers] Mac os x: succcess, but ... More... In-Reply-To: References: Message-ID: <15560.55939.125800.391465@monster.linux.in> >>>>> "MR" == Mike Robertson writes: MR> Anyone have any idea what could be confusing MayaVi here? MR> These modules exist. The one it's referring to is in MR> /usr/local/bin... Perhaps the .so is bothering it? MR> Thanks MR> [sull-10-114:documents/temp/mayavi-1.0] root# setenv MR> PYTHONPATH=/usr/local/bin/:/usr/local/vtk/VTK/Wrapping/Python/ MR> ? exec "from "+kit_name+" import *" File "", line 1, MR> in ? ImportError: No module named libvtkCommonPython MR> [sull-10-114:documents/temp/mayavi-1.0] root# Are you sure that /usr/local/bin has the file libvtkCommonPython.so? You could also try to cd to /usr/local/bin and then run the python interpreter there and try an >>> import libvtkCommonPython and see what you get Do you also need to set your linker to load the libaries in /usr/local/bin by setting the appropriate LD_LIBRARY_PATH LD_LIBRARY_PATH=/usr/local/bin prabhu From ady_roman at yahoo.com Fri Apr 26 03:22:51 2002 From: ady_roman at yahoo.com (ady roman) Date: Fri, 26 Apr 2002 00:22:51 -0700 (PDT) Subject: [vtkusers] Refreshing the rendering window Message-ID: <20020426072251.88298.qmail@web12506.mail.yahoo.com> Hello, I have a minor problem (probably it is minor :)). I'm changing the actor's properties, but I can see the changes only after I click on the rendering window. How can I refresh the rendering window (or the actor? )? Regards, A.Roman __________________________________________________ Do You Yahoo!? Yahoo! Games - play chess, backgammon, pool and more http://games.yahoo.com/ From suh at rpi.edu Fri Apr 26 06:43:23 2002 From: suh at rpi.edu (suhai) Date: Fri, 26 Apr 2002 03:43:23 -0700 Subject: [vtkusers] How to build my event handle in C++ Message-ID: <004901c1ed0f$30667d40$678c7180@suhai> Hi All I was wondering, how can I use the AddObserver UserEvent to add my own event handle call back function? Can anybody give me an example. Thanks a lot Arthur -------------- next part -------------- An HTML attachment was scrubbed... URL: From crazyyao at mail.rdcps.ac.cn Fri Apr 26 04:31:39 2002 From: crazyyao at mail.rdcps.ac.cn (Yao Jifeng) Date: Fri, 26 Apr 2002 16:31:39 +0800 Subject: [vtkusers] Problem occurs when one window covers another window in Win2000. (VTK3.2) Message-ID: <000e01c1ecfc$c91e6290$8d26e29f@pc11> I am using vtk3.2+windows2000+VC 6.0 and I use the MDI stucture in my application in order to display more than one graphics windows at once. The original code is stolen from that vtkMFC demo. In each window I use a vtkActor to draw a 3d mesh and some other 2d actors to draw labels, coordinates,etc. When one window is covered with another window, and if I close the window in front of it, of course, the window behind it will appear, but it will lose the 3d mesh, although the labels and some other 2d elements are still there. This only happens when the 3d mesh in the behind window is completely covered by the front window. It seems that this has something to do with the render buffer. Cause I am not familiar with Windows, I wonder if anyone can tell me how to solve this problem. Any help will be appreciate. Bati -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitm.ernet.in Fri Apr 26 02:27:45 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 26 Apr 2002 11:57:45 +0530 Subject: [vtkusers] Possible bug in vtkRenderWindowInteractor In-Reply-To: <3CC8DD98.7EDB7964@asu.edu> References: <3CC8DD98.7EDB7964@asu.edu> Message-ID: <15560.62305.963331.920145@monster.linux.in> >>>>> "GLG" == Gary L Graf writes: GLG> Hi, I have been trying to generate a simple backdrop to a GLG> visualization. What I would like is the corner of a room GLG> (three orthogonal planes) which are textured to sit behind my GLG> data visualization. So far it seems incredibly hard to do GLG> so. I attempted to place a vtkPlaneSource with a texture GLG> alone in a render window. It displayed, but the render GLG> window interactor could never rotate the plane perpendicular GLG> to the viewer, it always tended to wobble with the viewer GLG> looking down the edge of the plane. My question is: Is this GLG> a bug or am I all messed up? How can I simply provide the GLG> backdrop I am looking for? Thanks - Gary I'm not sure I understand exactly what you want but if you want the backdrop to 'follow' your camera as you rotate the view you should take a look at the vtkFollower and use it instead of a vtkActor. prabhu From dsaez at iti.upv.es Fri Apr 26 04:52:50 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Fri, 26 Apr 2002 10:52:50 +0200 Subject: [vtkusers] Libraries for packages Tcl Message-ID: <20020426085014.CB85815EA24@mailborg.iti.upv.es> Hello, When I try to execute a tcl script, I put in the command line: tclsh Cylinder.tcl and it's produced the next error: can't find package vtk while executing "package require vtk" (file "Cylinder.tcl" line 9) I don't know what environment variables I have to set. Could anybody help me? Thanks. Daniel S?ez From chrisj at epcc.ed.ac.uk Fri Apr 26 04:59:02 2002 From: chrisj at epcc.ed.ac.uk (Chris Johnson) Date: Fri, 26 Apr 2002 09:59:02 +0100 (BST) Subject: [vtkusers] Libraries for packages Tcl In-Reply-To: <20020426085014.CB85815EA24@mailborg.iti.upv.es> Message-ID: Hi Daniel, You have to run vtk Cylinder.tcl where vtk is set to the executable vtk, probably located in a bin directory somewhere (depending on your installation - just do a search for `vtk' somewhere in your installation tree). Hope this helps (I did the same as you to start with...) Cheers, Chris > When I try to execute a tcl script, I put in the command line: > > tclsh Cylinder.tcl > > and it's produced the next error: > > can't find package vtk > while executing > "package require vtk" > (file "Cylinder.tcl" line 9) \-----------------------------------------------------------------------/ -Dr Chris Johnson (Applications Consultant) +44 (0)131 650 5201 (phone)- -chrisj at epcc.ed.ac.uk +44 (0)131 650 6555 (fax) - -http://www.epcc.ed.ac.uk/~chrisj/ - -Rm 3406, EPCC, JCMB, Edinburgh University, - -Mayfield Road, Edinburgh, EH9 3JZ, UK - /-----------------------------------------------------------------------\ From rrp at imm.dtu.dk Fri Apr 26 05:49:55 2002 From: rrp at imm.dtu.dk (Rasmus Reinhold Paulsen) Date: Fri, 26 Apr 2002 11:49:55 +0200 (METDST) Subject: [vtkusers] Libraries for packages Tcl In-Reply-To: <20020426085014.CB85815EA24@mailborg.iti.upv.es> Message-ID: Hi Daniel On Fri, 26 Apr 2002, Daniel [iso-8859-15] S?ez Domingo wrote: > When I try to execute a tcl script, I put in the command line: > > tclsh Cylinder.tcl > > and it's produced the next error: > > can't find package vtk > while executing > "package require vtk" > (file "Cylinder.tcl" line 9) > > I don't know what environment variables I have to set. > Could anybody help me? Take a look at the installation guide found at: http://www.imm.dtu.dk/~rrp and see if you can find the solution there. Regards Rasmus From prabhu at aero.iitm.ernet.in Fri Apr 26 08:35:19 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Fri, 26 Apr 2002 18:05:19 +0530 Subject: [vtkusers] Refreshing the rendering window In-Reply-To: <20020426072251.88298.qmail@web12506.mail.yahoo.com> References: <20020426072251.88298.qmail@web12506.mail.yahoo.com> Message-ID: <15561.18823.46803.38837@monster.linux.in> >>>>> "AR" == ady roman writes: AR> I have a minor problem (probably it is minor :)). I'm AR> changing the actor's properties, but I can see the changes AR> only after I click on the rendering window. How can I refresh AR> the rendering window (or the actor? )? renWin->Render(); Where renWin is your vtkRenderWindow. prabhu From fxh39668 at gsk.com Fri Apr 26 11:22:50 2002 From: fxh39668 at gsk.com (Frederic Huguet) Date: Fri, 26 Apr 2002 17:22:50 +0200 Subject: [vtkusers] vtkCutter and vtkMarchingCubes Message-ID: <3CC970CA.DB85350B@gsk.com> Hi everybody, I realized a subclasses of vtkMarchingCubes which is able to take a vtkRectilinearGrid as parameter. I managed to create a 3D volume with a medical slices stack. Now I have to create new slices using this volume. I thought that vtkCutter was a pretty good tool to achieve this goal (and I know there is vtkRectilinearGridGeometryFilter which allows me to create cut planes along x,y and z axis). I used thes example I found on vtk home page. However, I don't manage to create any plane on my render window and I don't understand. Has everybody worked on the same problem ? Thanks a lot. Frederic Huguet From Gowri.Gopalakrishnan at inteq.com Fri Apr 26 12:09:00 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Fri, 26 Apr 2002 11:09:00 -0500 Subject: [vtkusers] Refreshing the rendering window Message-ID: I think it is not enough to just do this renWin->Render();. Sometimes it will not refresh your window/screen. This I know is true for Java and c++. It is because when you are using multi components in your screen (ex: user interface with panels, toolbars, trees etc) the window in which vtk renders may not have the focus all the time. (ex: if you had a tree and you clicked some thing on it to load a file the focus is with the tree and not with the window in which vtk displays) Therefore even though vtk has rendered properly in its window it may not appear on the screen unless you click on the component (window of the renderer) to give it the focus..... I think it is not the fault of vtk. It has done its job of rendering. If you don't want to click to give it the focus you have to call the paint method on the component explicity (or the repaint method) ...... Regards Gowri -----Original Message----- From: Prabhu Ramachandran [mailto:prabhu at aero.iitm.ernet.in] Sent: 26 April 2002 13:35 To: ady roman; VTK users list Subject: [vtkusers] Refreshing the rendering window >>>>> "AR" == ady roman writes: AR> I have a minor problem (probably it is minor :)). I'm AR> changing the actor's properties, but I can see the changes AR> only after I click on the rendering window. How can I refresh AR> the rendering window (or the actor? )? renWin->Render(); Where renWin is your vtkRenderWindow. 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 zbian at navitrak.com Fri Apr 26 12:55:56 2002 From: zbian at navitrak.com (Benny Bian) Date: Fri, 26 Apr 2002 13:55:56 -0300 Subject: [vtkusers] Efficient Progressive Data Rendering? Message-ID: <40126CABC6D4F6459040997C311FBF73020001@navitraksrv01.navitrak.ca> Thanks John, Few more questions. How do you decide which Actor is out of view port? Do you have to modify all other Actors' world coordinates if you shift the scene? Do I have to do all the display-view-world coordinates translation to reassembly the scene? Thanks lot. Benny -----Original Message----- From: John Biddiscombe [mailto:jbiddiscombe at skippingmouse.co.uk] Sent: Thursday, April 25, 2002 10:47 PM To: Benny Bian; vtkusers at public.kitware.com Subject: Re: [vtkusers] Efficient Progressive Data Rendering? Benny, <<< I am working on a DEM visualization project using VTK. I successfully read a small data set and build a poly data set to view. For a large area of elevation data, I need progressively to create a small data set (enough to fill the view window) and continuously load new data when users continuously pan or fly to a different area. I searched the previous posting and did not find the right approach. Can any one help me? I think constantly rebuild datasets from the beginning to view is very expensive. How does VTK framework support this kind of job? >>> The way I've approached this sort of problem is to create a datareader that reads a tile of arbitrary size (n sq.km say). Then stuff lots of small tiles (say 4x4 grid for starters) into an assembly and create a separate actor for each sub tile. As the viewer moves over terrain, overload the assembly update mechanism and discard any tiles that have moved out of view and create new ones to fill in the spaces. This technique also has the advantage that textures can be overlaid on each tile (aerial photos/coverage maps/or just map maps) and get nice results. As textures are limited on most graphics cards to 2048x2048 or thereabouts, it can be hard to texture a large region nicely using just one actor. JB [PS. If you ever wish to contract out development of this kind of thing...I'm looking for new contracts.] From jbiddiscombe at skippingmouse.co.uk Fri Apr 26 13:20:09 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Fri, 26 Apr 2002 18:20:09 +0100 Subject: [vtkusers] Efficient Progressive Data Rendering? References: <40126CABC6D4F6459040997C311FBF73020001@navitraksrv01.navitrak.ca> Message-ID: <000c01c1ed46$aa23efa0$0100a8c0@tigger> Benny, <<< Few more questions. How do you decide which Actor is out of view port? >>> If the "viewer" is at {x,y,z} then I assume that a region bounded by some Box is "visible" where the box is some N-kilometres big (with the {x,y,z} at the centre of the box). After each terrain chunk is created, the dataset stored in that dataobject(->actor) has a bounds which you know. As the user flies north, test the bounding boxes of the datasets to see if any are >> N/2km to the south (ie outside the BBox of your defined viewspace) and dump them. Each Actor has a GetBounds which you can get - it only fetches the Actor->Mapper->DataSet bounds anyway. Frustum Culling is another thing, but the renderer will not bother with any actors which are behind the viewer or out of the field of view. (cf vtkRenderer and internal clipping code) JB From mmalat at irus.rri.ca Fri Apr 26 14:47:30 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Fri, 26 Apr 2002 14:47:30 -0400 Subject: [vtkusers] vtkImageExportToArray + VTK4 References: <3CC970CA.DB85350B@gsk.com> Message-ID: <3CC9A0C2.E735E61D@irus.rri.ca> Hi everybody, Does anyone of you try vtkImageExportToArray with VTK4 (in fact cvs from today). Because I get a core dump with only: from vtkpython import * from vtkImageExportToArray import * edgemap = vtkPNMReader() edgemap.SetFileName("images/earth_edge.ppm") a = vtkImageExportToArray() a.SetInput(edgemap.GetOutput()) a.GetArray() and here is the output of gdb: Program received signal SIGSEGV, Segmentation fault. [Switching to Thread 1024 (LWP 31917)] PyType_IsSubtype (a=0xffffffff, b=0x80e1ea0) at Objects/typeobject.c:392 392 Objects/typeobject.c: No such file or directory. in Objects/typeobject.c (gdb) bt #0 PyType_IsSubtype (a=0xffffffff, b=0x80e1ea0) at Objects/typeobject.c:392 #1 0x080894f1 in convertsimple (arg=0x8111460, p_format=0xbfffec0c, p_va=0xbfffef18, msgbuf=0xbfffecd0 "X???\001", bufsize=512) at Python/getargs.c:600 #2 0x0808a431 in vgetargskeywords (args=0x81702c4, keywords=0x0, format=0x419a6474 "si", kwlist=0x419a7b2c, p_va=0xbfffef18) at Python/getargs.c:357 #3 0x0808a108 in PyArg_ParseTupleAndKeywords (args=0x81702c4, keywords=0x0, format=0x419a6471 "s#|si", kwlist=0x419a7b2c) at Python/getargs.c:1026 #4 0x419a4d0b in array_fromString (ignored=0x0, args=0x81702c4, keywds=0x0) at Src/multiarraymodule.c:1158 #5 0x080c6550 in PyCFunction_Call (func=0x8214330, arg=0x81702c4, kw=0x0) at Objects/methodobject.c:101 #6 0x080a7808 in PyObject_Call (func=0x8214330, arg=0x81702c4, kw=0x0) at Objects/abstract.c:1665 #7 0x0807a31c in do_call (func=0x8214330, pp_stack=0xbffff084, na=2, nk=0) at Python/ceval.c:3251 #8 0x08077087 in eval_frame (f=0x821be54) at Python/ceval.c:1988 #9 0x0807816b in PyEval_EvalCodeEx (co=0x821b608, globals=0x82150dc, locals=0x0, args=0x81153a8, argcount=1, kws=0x81153ac, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #10 0x0807a293 in fast_function (func=0x827a7e4, pp_stack=0xbffff1e4, n=1, na=1, nk=0) at Python/ceval.c:3153 #11 0x0807714d in eval_frame (f=0x811525c) at Python/ceval.c:2013 #12 0x0807816b in PyEval_EvalCodeEx (co=0x8148140, globals=0x810e2d4, locals=0x810e2d4, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2574 #13 0x0807a232 in PyEval_EvalCode (co=0x8148140, globals=0x810e2d4, locals=0x810e2d4) at Python/ceval.c:488 #14 0x08093f69 in run_node (n=0x8104cb8, filename=0xbffff5a3 "temp.py", globals=0x810e2d4, locals=0x810e2d4, flags=0xbffff35c) at Python/pythonrun.c:1083 #15 0x080928dd in PyRun_SimpleFileExFlags (fp=0x80feb48, filename=0xbffff5a3 "temp.py", closeit=1, flags=0xbffff35c) at Python/pythonrun.c:689 #16 0x0805349e in Py_Main (argc=2, argv=0xbffff414) at Modules/main.c:369 #17 0x40085177 in __libc_start_main (main=0x8052db0
, argc=2, ubp_av=0xbffff414, init=0x80521b8 <_init>, fini=0x80cb020 <_fini>, rtld_fini=0x4000e184 <_dl_fini>, stack_end=0xbffff40c) at ../sysdeps/generic/libc-start.c:129 (gdb) Any help welcome. mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From mmalat at irus.rri.ca Fri Apr 26 16:25:42 2002 From: mmalat at irus.rri.ca (Mathieu Malaterre) Date: Fri, 26 Apr 2002 16:25:42 -0400 Subject: [vtkusers] vtkRecursiveSphereDirectionEncoder Message-ID: <3CC9B7C6.CA8D0253@irus.rri.ca> Hi everybody, does anyone ever use vtkRecursiveSphereDirectionEncoder ? I want to do a directional gradient on my image, so I used vtkFiniteDifferenceGradientEstimator. But top pass a direction I need to use vtkDirectionEncoder. And there is no Set* method in vtkDirectionEncoder. Any help welcome mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: mmalat.vcf Type: text/x-vcard Size: 392 bytes Desc: Card for Mathieu Malaterre URL: From krw at viz-solutions.com Fri Apr 26 15:22:24 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Fri, 26 Apr 2002 12:22:24 -0700 Subject: [vtkusers] whoever did have experience in reading PLOT3D data into VTK? In-Reply-To: <20020424212432.25763.qmail@web10706.mail.yahoo.com> Message-ID: <5.1.0.14.0.20020426122158.032c4ca8@127.0.0.1> At 02:24 PM 4/24/2002 -0700, you wrote: >I am trying to input my CFD mesh into VTK. The data is >in PLOT3D format and it's unformatted. But >vtkPLOT3Dreader cannot read my file correctly. I am >suffering from it. May you help me and point out the >reason? > >I appreciate your reply. Actually, the VTK Plot3D reader has some shortfalls. First off, most CFD solvers are written in FORTRAN and their output is FORTRAN unformatted, which is different from binary that C programs output. The difference is that when you write a block of data in binary, it is written as is, in FORTRAN unformatted, it is written with a header and footer which is a single integer that is the size of the data block. So, for instance, if you write out 100 bytes of information, FORTRAN unformatted will write: 100 100 Your file is most likely FORTRAN unformatted. The other thing that the VTK reader does not handle that CFD codes may use is iblanking. This is block-off, so instead of each point being defined by x,y,z it is defined by x,y,z,i where i is either 0 or 1 (blanking on/off). You can possibly ignore IBlanking, but it will screw up the read since there's an extra 4 bytes for each point. I had a hacked up version of the reader sitting around at one point. I intended to clean it up and submit it, but never got the time, and I'm not even sure if I still have it. This problem has come up a couple of times that I've noticed, so if you, or anyone else would like to take a pass at some cleanup, I can try to dig up the old copy. Otherwise, its a pretty straight forward change, just toss away (or check) 4 bytes before and after each data block, and check to see if there are (Number of Points) * 3 or (Number of Points) * 4 numbers in the point definition. Kevin. From 4mg19 at qlink.queensu.ca Fri Apr 26 15:51:48 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Fri, 26 Apr 2002 15:51:48 -0400 (EDT) Subject: [vtkusers] Help with vtkWindowToImageFilter Message-ID: Hello: I'm a new user and am trying to save images from generated PolyData. Through the excellent help I've received from this forum (Thank you) I'm trying to take the screenshot and convert it to ImageData using vtkWindowToImageFilter. I get an error of:"no matching function for call to `vtkRenderWindow::GetOutput ()'". I don't understand why this doesn't work, but works in examples such as OffScreenCone.tcl. Briefly, the layout of my program is: PolyDataReader PolyDataMapper Actor Renderer Renderwindow then I use the following: vtkWindowToImageFilter *w2if = vtkWindowToImageFilter::New(); w2if->SetInput(renWin->GetOutput()); vtkPNMWriter *pnmwriter=vtkPNMWriter::New(); pnmwriter->SetInput(w2if->GetOutput()); pnmwriter->SetFileName("3Dimagedata.pnm"); pnmwriter->Write(); Any suggestions would be very much appreciated. Thanks, Mike From andy.cedilnik at kitware.com Fri Apr 26 15:57:30 2002 From: andy.cedilnik at kitware.com (Andy Cedilnik) Date: 26 Apr 2002 15:57:30 -0400 Subject: [vtkusers] Help with vtkWindowToImageFilter In-Reply-To: References: Message-ID: <1019851051.16262.12.camel@xanth.kitwarein.com> On Fri, 2002-04-26 at 15:51, Michael Gy?rffy wrote: > Hello: > I'm a new user and am trying to save images from generated > PolyData. > Through the excellent help I've received from this forum (Thank you) I'm > trying to take the screenshot and convert it to ImageData using > vtkWindowToImageFilter. > I get an error of:"no matching function for call > to > `vtkRenderWindow::GetOutput ()'". > I don't understand why this doesn't work, but works in examples > such as OffScreenCone.tcl. > > Briefly, the layout of my program is: > PolyDataReader > PolyDataMapper > Actor > Renderer > Renderwindow > then I use the following: > vtkWindowToImageFilter *w2if = vtkWindowToImageFilter::New(); > w2if->SetInput(renWin->GetOutput()); This should be: w2if->SetInput(renWin); Input to w2if is window. > > vtkPNMWriter *pnmwriter=vtkPNMWriter::New(); > pnmwriter->SetInput(w2if->GetOutput()); > pnmwriter->SetFileName("3Dimagedata.pnm"); > pnmwriter->Write(); > Any suggestions would be very much appreciated. > Thanks, > > 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 > Andy Cedilnik From berk.geveci at kitware.com Fri Apr 26 16:08:21 2002 From: berk.geveci at kitware.com (Berk Geveci) Date: 26 Apr 2002 16:08:21 -0400 Subject: [vtkusers] Help with vtkWindowToImageFilter In-Reply-To: References: Message-ID: <1019851705.6195.12.camel@caemlyn.kitwarein.com> The input to the filter is the render window not it's output (which does not exist). Using w2if->SetInput(renWin); instead of w2if->SetInput(renWin->GetOutput()); should fix your problem. -Berk On Fri, 2002-04-26 at 15:51, Michael Gy?rffy wrote: > Hello: > I'm a new user and am trying to save images from generated > PolyData. > Through the excellent help I've received from this forum (Thank you) I'm > trying to take the screenshot and convert it to ImageData using > vtkWindowToImageFilter. > I get an error of:"no matching function for call > to > `vtkRenderWindow::GetOutput ()'". > I don't understand why this doesn't work, but works in examples > such as OffScreenCone.tcl. > > Briefly, the layout of my program is: > PolyDataReader > PolyDataMapper > Actor > Renderer > Renderwindow > then I use the following: > vtkWindowToImageFilter *w2if = vtkWindowToImageFilter::New(); > w2if->SetInput(renWin->GetOutput()); > > vtkPNMWriter *pnmwriter=vtkPNMWriter::New(); > pnmwriter->SetInput(w2if->GetOutput()); > pnmwriter->SetFileName("3Dimagedata.pnm"); > pnmwriter->Write(); > Any suggestions would be very much appreciated. > Thanks, > > 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 bjoern.koertner at ira.uka.de Fri Apr 26 18:37:56 2002 From: bjoern.koertner at ira.uka.de (bjoern.koertner at ira.uka.de) Date: Fri, 26 Apr 2002 23:37:56 +0100 Subject: [vtkusers] color/emphasize a picked cell (of vtkPolyData) Message-ID: <1019857076.3cc9c8b40e8a8@studmail.ira.uka.de> Hello vtkusers, there is an application that displays an vtkPolyData-Object. I am using a vtkCellPicker to get the cellid and the position the mouse pointer points at. Now I want to color this picked cell, but even after reading a lot in the "Users Guide" and after searching in the Archive I don't know how I can achieve this aim. It would be very nice if someone would help me. If it is not possible to color single cells, it would be great if someone could give me other proposals how to emphasize this cell. Best regards, Bjoern ---------------------------------------------------------- This mail was sent through ATIS: http://atiswww.ira.uka.de From nNunn at ausport.gov.au Fri Apr 26 22:07:30 2002 From: nNunn at ausport.gov.au (Nigel Nunn) Date: Sat, 27 Apr 2002 12:07:30 +1000 Subject: [vtkusers] color/emphasize a picked cell (of vtkPolyData) Message-ID: <7AF3524792FFD511A17A0000F81E965E472932@elmo.ausport.gov.au> Hi Bjoern, Assuming the cells in your grid have scalars, (m_Grid->GetCellData())->SetScalars(m_Scalars); and that you want to change the scalar for the selected cell, and that you have the selected cell's id from the pick, then // Get m_nCellId from pick operation. // Use a color distinct among the scalar data. double hilight[] = {100.0}; m_Grid->GetCellData()->GetScalars()->SetTuple(m_nCellId, hilight); m_Grid->Modified(); this->Render(); // "this" is an MFC CView Nigel -----Original Message----- bjoern.koertner at ira.uka.de Sent: Saturday, 27 April 2002 8:38 AM To: vtkusers at public.kitware.com Subject: [vtkusers] color/emphasize a picked cell (of vtkPolyData) Hello vtkusers, there is an application that displays an vtkPolyData-Object. I am using a vtkCellPicker to get the cellid and the position the mouse pointer points at. Now I want to color this picked cell, but even after reading a lot in the "Users Guide" and after searching in the Archive I don't know how I can achieve this aim. It would be very nice if someone would help me. If it is not possible to color single cells, it would be great if someone could give me other proposals how to emphasize this cell. Best regards, Bjoern From fermion at mac.com Sun Apr 28 14:13:28 2002 From: fermion at mac.com (Mike Robertson) Date: Sun, 28 Apr 2002 14:13:28 -0400 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: Message-ID: Hi! I don't think this has anything to do with mac os x, although, of course, I'm using mac os x. I've installed VTK to wrap to both python and tcl. CMakeCache.txt file is attached. I'm getting some unusual errors when I go to import vtkpython. But, oddly enough, the thing has no qualms importing libvtkCommonPython.... I installed everything in /usr/local/vtk/VTK/ (so the wrapping for python is /usr/local/vtk/VTK/Wrapping/Python/) and did not run a make install, as I have unsuccessfully done before. vtkpython is here: /usr/local/vtk/VTK/Wrapping/Python. The libraries are not shared (had some problems with that earlier...) Here's the error: [localhost:VTK/Wrapping/Python] root# python Python 2.2 (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import libvtkCommonPython >>> import Tkinter >>> import vtkpython Traceback (most recent call last): File "", line 1, in ? File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", line 29, in ? exec "from "+kit_name+" import *" File "", line 1, in ? ImportError: Failure linking new module >>> [localhost:VTK/Wrapping/Python] root# what the heck Any ideas? Of course, yes, I told the thing were to find all of the libs by entering setenv PYTHONPATH /usr/local/vtk/VTK/bin:/usr/local/vtk/VTK/Wrapping/Python Thanks! mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com ". . . The Egyptians were obsessed with salt. They salted everything, including their relatives. . ." - NPR, 2/26/02 -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/octet-stream Size: 18661 bytes Desc: not available URL: From prabhu at aero.iitm.ernet.in Sun Apr 28 22:45:19 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 29 Apr 2002 08:15:19 +0530 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: References: Message-ID: <15564.46015.889666.364488@monster.linux.in> hi, Yes, your errors look wierd. Why havent you compiled the vtk libraries as shared libraries? What problems did you face with that approach? Could you also try to do an import vtk on the interpreter. You _might_ get clearer error messages (atleast it will tell you which module failed to import). >>> import vtk Hope this helps. prabhu >>>>> "MR" == Mike Robertson writes: MR> Hi! I don't think this has anything to do with mac os x, MR> although, of course, I'm using mac os x. I've installed VTK to MR> wrap to both python and tcl. CMakeCache.txt file is MR> attached. I'm getting some unusual errors when I go to import MR> vtkpython. But, oddly enough, the thing has no qualms MR> importing libvtkCommonPython.... I installed everything in MR> /usr/local/vtk/VTK/ (so the wrapping for python is MR> /usr/local/vtk/VTK/Wrapping/Python/) and did not run a make MR> install, as I have unsuccessfully done before. vtkpython is MR> here: /usr/local/vtk/VTK/Wrapping/Python. The libraries are MR> not shared (had some problems with that earlier...) Here's MR> the error: MR> [localhost:VTK/Wrapping/Python] root# python Python 2.2 (#1, MR> Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on MR> darwin Type "help", "copyright", "credits" or "license" for MR> more information. >>>> import libvtkCommonPython import Tkinter import vtkpython MR> Traceback (most recent call last): File "", line 1, in MR> ? File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", MR> line 29, in ? exec "from "+kit_name+" import *" File MR> "", line 1, in ? ImportError: Failure linking new MR> module >>>> MR> [localhost:VTK/Wrapping/Python] root# what the heck MR> Any ideas? Of course, yes, I told the thing were to find all MR> of the libs by entering setenv PYTHONPATH MR> /usr/local/vtk/VTK/bin:/usr/local/vtk/VTK/Wrapping/Python MR> Thanks! MR> mike From fermion at mac.com Sun Apr 28 22:50:53 2002 From: fermion at mac.com (Mike Robertson) Date: Sun, 28 Apr 2002 22:50:53 -0400 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: <15564.46015.889666.364488@monster.linux.in> Message-ID: Here's the result: [localhost:local/vtk/VTK] root# python Python 2.2 (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import vtk Traceback (most recent call last): File "", line 1, in ? File "/usr/local/vtk/VTK/Wrapping/Python/vtk/__init__.py", line 8, in ? from filtering import * File "/usr/local/vtk/VTK/Wrapping/Python/vtk/filtering.py", line 7, in ? from libvtkFilteringPython import * ImportError: Failure linking new module >>> The reason I didn't compile with shared libraries is presumably specific to mayavi. Here's the error it returns when vtk is compiled with sharing on: [localhost:documents/temp/mayavi-1.0] root# python mayavi.py Traceback (most recent call last): File "mayavi.py", line 4, in ? Main.main () File "./Main.py", line 947, in main v = MayaVi (r) File "./Main.py", line 139, in __init__ self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame) File "Misc/RenderWindow.py", line 41, in __init__ height=500) File "/usr/local/vtk/VTK/Wrapping/Python/vtkTkRenderWidget.py", line 65, in __ init__ vtkLoadPythonTkWidgets(master.tk) File "/usr/local/vtk/VTK/Wrapping/Python/vtkLoadPythonTkWidgets.py", line 59, in vtkLoadPythonTkWidgets interp.call('load', filename) TclError: dyld: permission denied [localhost:documents/temp/mayavi-1.0] root# With sharing off, it returns no such Tcl errors; rather, the errors correspond with those returned from the python shell. mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com "The wisdom of the wise and the experience of the ages are perpetuated by quotations." -Benjamin Disraeli > From: Prabhu Ramachandran > Date: Mon, 29 Apr 2002 08:15:19 +0530 > To: Mike Robertson , VTK users list > > Subject: [vtkusers] Bizarre Python Errors > > hi, > > Yes, your errors look wierd. Why havent you compiled the vtk > libraries as shared libraries? What problems did you face with that > approach? > > Could you also try to do an import vtk on the interpreter. You > _might_ get clearer error messages (atleast it will tell you which > module failed to import). > >>>> import vtk > > Hope this helps. > prabhu > > >>>>>> "MR" == Mike Robertson writes: > > MR> Hi! I don't think this has anything to do with mac os x, > MR> although, of course, I'm using mac os x. I've installed VTK to > MR> wrap to both python and tcl. CMakeCache.txt file is > MR> attached. I'm getting some unusual errors when I go to import > MR> vtkpython. But, oddly enough, the thing has no qualms > MR> importing libvtkCommonPython.... I installed everything in > MR> /usr/local/vtk/VTK/ (so the wrapping for python is > MR> /usr/local/vtk/VTK/Wrapping/Python/) and did not run a make > MR> install, as I have unsuccessfully done before. vtkpython is > MR> here: /usr/local/vtk/VTK/Wrapping/Python. The libraries are > MR> not shared (had some problems with that earlier...) Here's > MR> the error: > > MR> [localhost:VTK/Wrapping/Python] root# python Python 2.2 (#1, > MR> Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on > MR> darwin Type "help", "copyright", "credits" or "license" for > MR> more information. >>>>> import libvtkCommonPython import Tkinter import vtkpython > MR> Traceback (most recent call last): File "", line 1, in > MR> ? File "/usr/local/vtk/VTK/Wrapping/Python/vtkpython.py", > MR> line 29, in ? exec "from "+kit_name+" import *" File > MR> "", line 1, in ? ImportError: Failure linking new > MR> module >>>>> > MR> [localhost:VTK/Wrapping/Python] root# what the heck > > MR> Any ideas? Of course, yes, I told the thing were to find all > MR> of the libs by entering setenv PYTHONPATH > MR> /usr/local/vtk/VTK/bin:/usr/local/vtk/VTK/Wrapping/Python > > MR> Thanks! > > MR> 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 prabhu at aero.iitm.ernet.in Sun Apr 28 23:27:17 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Mon, 29 Apr 2002 08:57:17 +0530 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: References: <15564.46015.889666.364488@monster.linux.in> Message-ID: <15564.48533.609163.262403@monster.linux.in> >>>>> "MR" == Mike Robertson writes: MR> Here's the result: [localhost:local/vtk/VTK] root# python MR> Python 2.2 (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 MR> (release)] on darwin Type "help", "copyright", "credits" or MR> "license" for more information. >>>> import vtk MR> Traceback (most recent call last): File "", line 1, in MR> ? File "/usr/local/vtk/VTK/Wrapping/Python/vtk/__init__.py", MR> line 8, in ? from filtering import * File MR> "/usr/local/vtk/VTK/Wrapping/Python/vtk/filtering.py", line 7, MR> in ? from libvtkFilteringPython import * ImportError: Failure MR> linking new module >>>> Ah, the filtering module will try to link to another module (the vtkCommon module) and fails because of the static compile. MR> line 65, in __ init__ vtkLoadPythonTkWidgets(master.tk) File MR> "/usr/local/vtk/VTK/Wrapping/Python/vtkLoadPythonTkWidgets.py", MR> line 59, in vtkLoadPythonTkWidgets interp.call('load', MR> filename) TclError: dyld: permission denied MR> [localhost:documents/temp/mayavi-1.0] root# MR> With sharing off, it returns no such Tcl errors; rather, the MR> errors correspond with those returned from the python shell. Which is actually far better than your current error (because you could import all of VTK previously and only the Tkinter widget failed). The problem you are having with vtkLoadPythonTkWidgets.py might be because Tcl is compiled statically? I'm not sure on this though. prabhu From dgobbi at irus.rri.ca Sun Apr 28 23:45:27 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Sun, 28 Apr 2002 23:45:27 -0400 (EDT) Subject: [vtkusers] Bizarre Python Errors In-Reply-To: <15564.48533.609163.262403@monster.linux.in> Message-ID: Hi Mike, Prabhu is correct, you should stick to shared libraries because when you were using shared libraries the python modules were loading. Go back to using shared libs and make sure that you can do either a 'from vtkpython import *' or 'from vtk import *' from the python shell. The problem appears to be that libvtkRenderingPythonTkWidgets (which is in fact a tk extension module) will not load. It is simply not yet possible to use the vtkTkRenderWidget under OSX AFAIK, because VTK does not yet work with Carbon (I'm not a mac guy, so I don't have all the details). It might be possible to work around this by re-compiling VTK so that it uses XWindows for the GUI, but unless XWindows supports accelerated OpenGL under OSX there isn't much point. Has anyone tried this yet? - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 29 Apr 2002, Prabhu Ramachandran wrote: > >>>>> "MR" == Mike Robertson writes: > > MR> Here's the result: [localhost:local/vtk/VTK] root# python > MR> Python 2.2 (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 > MR> (release)] on darwin Type "help", "copyright", "credits" or > MR> "license" for more information. > >>>> import vtk > MR> Traceback (most recent call last): File "", line 1, in > MR> ? File "/usr/local/vtk/VTK/Wrapping/Python/vtk/__init__.py", > MR> line 8, in ? from filtering import * File > MR> "/usr/local/vtk/VTK/Wrapping/Python/vtk/filtering.py", line 7, > MR> in ? from libvtkFilteringPython import * ImportError: Failure > MR> linking new module > >>>> > > Ah, the filtering module will try to link to another module (the > vtkCommon module) and fails because of the static compile. > > MR> line 65, in __ init__ vtkLoadPythonTkWidgets(master.tk) File > MR> "/usr/local/vtk/VTK/Wrapping/Python/vtkLoadPythonTkWidgets.py", > MR> line 59, in vtkLoadPythonTkWidgets interp.call('load', > MR> filename) TclError: dyld: permission denied > MR> [localhost:documents/temp/mayavi-1.0] root# > > MR> With sharing off, it returns no such Tcl errors; rather, the > MR> errors correspond with those returned from the python shell. > > Which is actually far better than your current error (because you > could import all of VTK previously and only the Tkinter widget > failed). The problem you are having with vtkLoadPythonTkWidgets.py > might be because Tcl is compiled statically? I'm not sure on this > though. > > 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 dsaez at iti.upv.es Mon Apr 29 07:15:40 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Mon, 29 Apr 2002 13:15:40 +0200 Subject: [vtkusers] Wrapping Java Message-ID: <20020429111256.ED1CC15EA23@mailborg.iti.upv.es> Hello, ? ?I have a problem loading libraries in Java. I'll explain it. I have ported VTK into Mac OSX using only Quartz and wrapping Java. It generates libraries named libnameJava.dylib from a great number of files. I have included the DYLD_LIBRARY_PATH with the path to these libraries. Then, when a System.loadLibrary("nameJava") call is done, it's produced an UnsatisfiedLinkError. I have read that the System.loadLibrary() call needs a .jnilib library, but I don't know how to create it from a dylib library (this option would be the best) or from the source files. I don't either know if I have to create both jnilib and dylib libraries because I don't know if the dylib library is going to be used. I would thank somebody help me. Daniel S?ez From jeff at cdnorthamerica.com Mon Apr 29 07:15:05 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 29 Apr 2002 07:15:05 -0400 Subject: [vtkusers] Wrapping Java References: <20020429111256.ED1CC15EA23@mailborg.iti.upv.es> Message-ID: <3CCD2B39.3040308@cdnorthamerica.com> What is the unsatisfied link error? -Jeff Daniel S?ez Domingo wrote: >Hello, > > I have a problem loading libraries in Java. I'll explain it. > >I have ported VTK into Mac OSX using only Quartz and wrapping Java. It >generates libraries named libnameJava.dylib from a great number of files. I >have included the DYLD_LIBRARY_PATH with the path to these libraries. >Then, when a System.loadLibrary("nameJava") call is done, it's produced an >UnsatisfiedLinkError. >I have read that the System.loadLibrary() call needs a .jnilib library, but I >don't know how to create it from a dylib library (this option would be the >best) or from the source files. I don't either know if I have to create both >jnilib and dylib libraries because I don't know if the dylib library is going >to be used. > >I would thank somebody help me. > >Daniel S?ez >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > -- Jeff Lee From robbel at science.uva.nl Mon Apr 29 09:36:50 2002 From: robbel at science.uva.nl (Robert Belleman) Date: Mon, 29 Apr 2002 15:36:50 +0200 Subject: [vtkusers] [nedunuri_rk@yahoo.com: Re: Help] Message-ID: <20020429153650.A2690@carol.wins.uva.nl> The following was sent to me; perhaps someone else on the list can find the time to help this guy. -- Rob ----- Forwarded message from nedunuri ramakrishna ----- Date: Fri, 26 Apr 2002 23:12:30 -0700 (PDT) From: nedunuri ramakrishna Subject: Re: Help To: Robert Belleman In-Reply-To: <20020425121524.A19509 at carol.wins.uva.nl> Dear Robert, I am getting Image and rendering.I want clear image means opacity and color effect where I have to adjust.Because I am getting white image totally.Not clear that much whcih is showing in volview.Please help me what values I have to make changes.It should display in grey color. renderer =vtkRenderer::New(); renWin = vtkRenderWindow::New(); renWin->AddRenderer(renderer); renWin->SetParentId(m_hWnd); iren =vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); vtkVolume16Reader *reader=vtkVolume16Reader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFilePrefix("C:\\DicomFiles\\DownLoad\\xyz\\"); reader->SetFilePattern("%s%d.raw"); reader->SetImageRange(1,93); reader->SetDataDimensions(128,128); reader->SetDataSpacing(1,1,1); reader->SetDataMask(0x7fff); vtkImageGaussianSmooth *gaussian=vtkImageGaussianSmooth::New(); gaussian->SetStandardDeviations(1.0,1.0,1.0); gaussian->SetRadiusFactors(1.0,1.0,1.0); gaussian->SetInput(reader->GetOutput()); // Create transfer mapping scalar value to opacity vtkPiecewiseFunction *opacityTransferFunction=vtkPiecewiseFunction::New(); opacityTransferFunction->AddPoint(0,0.259); opacityTransferFunction->AddPoint(64,63535); opacityTransferFunction->AddPoint(128,1.0); //# Create transfer mapping scalar value to color vtkColorTransferFunction *colorTransferFunction=vtkColorTransferFunction::New(); colorTransferFunction->AddRGBPoint(0.0,0.0,0.0,0.0); colorTransferFunction->AddRGBPoint(63.0,0.259,0.259,0.3); colorTransferFunction->AddRGBPoint(127.0,1.0,1.0,0.3); //# The property describes how the data will look vtkVolumeProperty *volumeProperty=vtkVolumeProperty::New(); volumeProperty->SetColor(colorTransferFunction); volumeProperty->SetScalarOpacity(opacityTransferFunction); volumeProperty->SetAmbient(0.01); volumeProperty->SetDiffuse(0.50); volumeProperty->SetSpecular(0.48); volumeProperty->SetSpecularPower(100); volumeProperty->ShadeOn(); vtkFiniteDifferenceGradientEstimator *gst=vtkFiniteDifferenceGradientEstimator::New(); vtkVolumeRayCastCompositeFunction *compositeFunction=vtkVolumeRayCastCompositeFunction::New(); vtkVolumeRayCastMapper *volumeMapper=vtkVolumeRayCastMapper::New(); volumeMapper->SetGradientEstimator(gst); volumeMapper->SetVolumeRayCastFunction(compositeFunction); volumeMapper->SetInput(gaussian->GetOutput()); //# The volume holds the mapper and the property and //# can be used to position/orient the volume vtkVolume *volume=vtkVolume::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); renderer->AddVolume(volume); renWin->Render(); } Regards, Ramakrishna __________________________________________________ Do You Yahoo!? Yahoo! Health - your guide to health and wellness http://health.yahoo.com ----- End forwarded message ----- -- [] 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 Gowri.Gopalakrishnan at inteq.com Mon Apr 29 09:53:54 2002 From: Gowri.Gopalakrishnan at inteq.com (Gopalakrishnan, Gowri) Date: Mon, 29 Apr 2002 08:53:54 -0500 Subject: [vtkusers] Wrapping Java Message-ID: This unsatisfied link error is because your system cannot find the Vtk libraries. For windows the files end with *.dll and for solaris it is *.so - I don't know what the corresponding file for your operating system is. Pl check the sun java site for help under java native interface. Here is the link - there is something mentioned for MacOs http://java.sun.com/docs/books/tutorial/native1.1/stepbystep/_library.html Anyway if you have successfully built vtk for your system then it should be there already. Just make sure this file (*.dll equivalent) is in your classpath. If it is not in your classpath the system will not find it. Hope it helps Gowri From dsaez at iti.upv.es Mon Apr 29 11:32:59 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Mon, 29 Apr 2002 17:32:59 +0200 Subject: [vtkusers] Wrapping Java In-Reply-To: <3CCD3692.4030608@cdnorthamerica.com> References: <20020429111256.ED1CC15EA23@mailborg.iti.upv.es> <20020429114532.A197415EA22@mailborg.iti.upv.es> <3CCD3692.4030608@cdnorthamerica.com> Message-ID: <20020429153016.C50A415EA26@mailborg.iti.upv.es> Hi Jeff, I've tried to create the jnilib like you has said but I have some error. Perhaps you would know how solve it. I've tried two ways and both have the same final. a) Like I have all the .o of the source files that are going to make the library, I do: :src/VTK/Common$# c++ -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers -o libvtkCommonJava.jnilib -framework JavaVM *Java.o and the eror is: /usr/bin/ld: Undefined symbols: _AddClippingPlane__17vtkAbstractMapperP8vtkPlane _RemoveAllClippingPlanes__17vtkAbstractMapper _RemoveClippingPlane__17vtkAbstractMapperP8vtkPlane _SetClippingPlanes__17vtkAbstractMapperP9vtkPlanes _ShallowCopy__17vtkAbstractMapperPB0 _vtkJavaCreateNewJavaStubForObject__FP7JNIEnv_P9vtkObject _vtkJavaCreateNewJavaStub__FP7JNIEnv_PCcPv _vtkJavaGetId__FP7JNIEnv_P8_jobject _vtkJavaGetObjectFromPointer__FPv _vtkJavaGetPointerFromObject__FP7JNIEnv_P8_jobjectPc _vtkJavaMakeJavaString__FP7JNIEnv_PCc _vtkJavaRegisterCastFunction__FP7JNIEnv_P8_jobjectiPv _vtkJavaUTFToChar__FP7JNIEnv_P8_jstring _DeepCopy__20vtkAbstractTransformPB0 _GetGlobalWarningDisplay__9vtkObject _GetInverse__20vtkAbstractTransform _SetInverse__20vtkAbstractTransformPB0 .......goes on b)I compile all another time doing: :src/VTK/Common$# c++ -bundle -I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/local/src/VTK -o libvtkCommonJava.jnilib -framework JavaVM *Java.cxx but the same error appears. How can I solve this error? Thanks El Lun 29 Abr 2002 14:03, escribi?: > OK, so java on mac needs a .jnilib. Did you try renaming the vtk*Java > libs to have extension .jnilib? Or better yet, something like below, > linking libvtkCommon.dylib and libvtkCommonJava.dylib to > libvtkCommonJava.jnilib? > -Jeff > > > JNI libraries are always named |lib|/|name|/| .jnilib|, where /|name|/ > is the value of the string used in the call to |System.loadLibrary()|. > For example, to load the library named |libhello.jnilib|, you would make > > the following call in your Java code: > |System.loadLibrary("hello");| > > To build a JNI library, execute the following command: > > *|$|*| cc -bundle > -I/System/Library/Frameworks/JavaVM.framework/Headers -o > lib|/|name|/|.jnilib -framework JavaVM |/|sourceFiles|/ > > For example, if the files |hello.c| and |goodbye.c| contain the > implementations of the native methods to be built into | > libhello.jnilib|, you would build |libhello.jnilib| with the following > command: > > *|$|*| cc -bundle > -I/System/Library/Frameworks/JavaVM.framework/Headers -o > libhello.jnilib -framework JavaVM hello.c goodbye.c| > > A common problem for JNI developers is that JNI dynamic libraries have > interdependencies. For example: libA.jnilib contains a function foo(). > libB.jnilib needs to link against libA.jnilib to make use of foo(). This > will not work on Mac OS X because JNI libraries are bundles (all symbols > are private to a bundle). One solution to this dependency problem is to > put the common functions into a separate dynamic library (libC.dylib in > this example) and link both libA.jnilib and libB.jnilib to libC.dylib. > > Daniel S?ez Domingo wrote: > >Hi Jeff, > > > > I have tested my system and I know that the java.library.path contains > > the path to the directory where the .dylib are. But the problem is that > > MacOSX doesn't understand .dylib but it only understands .jnilib when we > > do a System.loadLibrary() call. Then I want to know how to convert .dylib > > into .jnilib. > > > >Thanks > >Daniel S?ez > > > >El Lun 29 Abr 2002 13:38, escribi?: > >>Hi Daniel, > >>What are the contents of DYLD_LIBRARY_PATH? Also, (I'm not familiar > >>with macos) does setting LD_LIBRARY_PATH to /usr/local/src/VTK/bin (or > >>equivalent location of your shared libraries) help? > >>-Jeff > >> > >>Daniel S?ez Domingo wrote: > >>>The error is: > >>> > >>>Exception in thread "main" java.lang.UnsatisfiedLinkError: no > >>>vtkCommonJava in java.library.path > >>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) > >>> at java.lang.Runtime.loadLibrary0(Runtime.java:749) > >>> at java.lang.System.loadLibrary(System.java:820) > >>> at vtkPanel.(vtkPanel.java:22) > >>> > >>>and my DYLD_LIBRARY_PATH is: > >>> > >>>DYLD_LIBRARY_PATH=/usr/local/src/VTK/lib:/usr/local/src/VTK/bin > >>> > >>>Daniel S?ez > >>> > >>>El Lun 29 Abr 2002 13:24, escribi?: > >>>>No, what is the error exactly - what is the stack trace? Also, what is > >>>>your DYLD_LIBRARY_PATH? > >>>>-Jeff > >>>> > >>>>Daniel S?ez Domingo wrote: > >>>>>UnsatisfiedLinkError is produced when the library that we are trying > >>>>> to load doesn't exist in java.library.path property. But I think that > >>>>> this error is produced because I have .dylib libraries instead > >>>>> .jnilib that are necessary for System.loadLibrary() java call. > >>>>> > >>>>>Daniel S?ez > >>>>> > >>>>>El Lun 29 Abr 2002 13:15, escribi?: > >>>>>>What is the unsatisfied link error? > >>>>>>-Jeff > >>>>>> > >>>>>>Daniel S?ez Domingo wrote: > >>>>>>>Hello, > >>>>>>> > >>>>>>>I have a problem loading libraries in Java. I'll explain it. > >>>>>>> > >>>>>>>I have ported VTK into Mac OSX using only Quartz and wrapping Java. > >>>>>>> It generates libraries named libnameJava.dylib from a great number > >>>>>>> of files. I have included the DYLD_LIBRARY_PATH with the path to > >>>>>>> these libraries. Then, when a System.loadLibrary("nameJava") call > >>>>>>> is done, it's produced an UnsatisfiedLinkError. > >>>>>>>I have read that the System.loadLibrary() call needs a .jnilib > >>>>>>>library, but I don't know how to create it from a dylib library > >>>>>>> (this option would be the best) or from the source files. I don't > >>>>>>> either know if I have to create both jnilib and dylib libraries > >>>>>>> because I don't know if the dylib library is going to be used. > >>>>>>> > >>>>>>>I would thank somebody help me. > >>>>>>> > >>>>>>>Daniel S?ez > >>>>>>>_______________________________________________ > >>>>>>>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 lists at carlh.net Mon Apr 29 11:37:07 2002 From: lists at carlh.net (Carl Hetherington) Date: Mon, 29 Apr 2002 16:37:07 +0100 (BST) Subject: [vtkusers] Intersection of two vtkPolyData meshes Message-ID: Hi, I thought it might be obvious how to do this, but after looking through the documentation and the mailing list archive I'm at a bit of a loss. I have two vtkPolyData meshes and I would like to compute the various contours of intersection between the two. Is there a way of doing this with VTK? Thanks Carl From 4mg19 at qlink.queensu.ca Mon Apr 29 11:42:30 2002 From: 4mg19 at qlink.queensu.ca (=?ISO-8859-1?Q?Michael_Gy=F6rffy?=) Date: Mon, 29 Apr 2002 11:42:30 -0400 (EDT) Subject: [vtkusers] Compiling Error Message-ID: Hello: I'm new to vtk and programming. I'm using the following script: vtkPolyDataToImageStencil *dataToStencil=vtkPolyDataToImageStencil::New(); dataToStencil->SetInput(pdata->GetOutput()); Where pdata is Polydata. I'm getting the following error to these two lines: "undefined reference to `vtkPolyDataToImageStencil::New(void)'" and "undefined reference to `vtkPolyDataToImageStencil::SetInput(vtkPolyData *)'" What does this "undefined reference to" error mean and how can I fix this problem? A google of thanks, Mike From lisa.avila at kitware.com Mon Apr 29 11:45:43 2002 From: lisa.avila at kitware.com (Lisa Avila) Date: Mon, 29 Apr 2002 11:45:43 -0400 Subject: [vtkusers] vtkRecursiveSphereDirectionEncoder In-Reply-To: <3CC9B7C6.CA8D0253@irus.rri.ca> Message-ID: <5.1.0.14.0.20020429114430.012eef70@pop.nycap.rr.com> Hello Mathieu, Those classes are used by some volume mappers to estimate gradients in the volume and store them in an encoded format (2 bytes for direction, 1 for magnitude). These classes are not meant for general purpose use. Lisa At 04:25 PM 4/26/2002, Mathieu Malaterre wrote: >Hi everybody, > does anyone ever use vtkRecursiveSphereDirectionEncoder ? I want to do >a directional gradient on my image, so I used >vtkFiniteDifferenceGradientEstimator. But top pass a direction I need to >use vtkDirectionEncoder. And there is no Set* method in >vtkDirectionEncoder. >Any help welcome >mathieu From jeff at cdnorthamerica.com Mon Apr 29 11:54:34 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Mon, 29 Apr 2002 11:54:34 -0400 Subject: [vtkusers] Wrapping Java References: <20020429111256.ED1CC15EA23@mailborg.iti.upv.es> <20020429114532.A197415EA22@mailborg.iti.upv.es> <3CCD3692.4030608@cdnorthamerica.com> <20020429153016.C50A415EA26@mailborg.iti.upv.es> Message-ID: <3CCD6CBA.2010003@cdnorthamerica.com> You also need to link in libvtkCommon.dylib - try a) and link in libvtkCommon.dylib. The same goes for all other *Java.jnilib libraries - you must link in the corresponding base lib. -Jeff Daniel S?ez Domingo wrote: >Hi Jeff, > > I've tried to create the jnilib like you has said but I have some error. >Perhaps you would know how solve it. >I've tried two ways and both have the same final. >a) Like I have all the .o of the source files that are going to make the >library, I do: > >:src/VTK/Common$# c++ -bundle >-I/System/Library/Frameworks/JavaVM.framework/Headers -o >libvtkCommonJava.jnilib -framework JavaVM *Java.o > >and the eror is: >/usr/bin/ld: Undefined symbols: >_AddClippingPlane__17vtkAbstractMapperP8vtkPlane >_RemoveAllClippingPlanes__17vtkAbstractMapper >_RemoveClippingPlane__17vtkAbstractMapperP8vtkPlane >_SetClippingPlanes__17vtkAbstractMapperP9vtkPlanes >_ShallowCopy__17vtkAbstractMapperPB0 >_vtkJavaCreateNewJavaStubForObject__FP7JNIEnv_P9vtkObject >_vtkJavaCreateNewJavaStub__FP7JNIEnv_PCcPv >_vtkJavaGetId__FP7JNIEnv_P8_jobject >_vtkJavaGetObjectFromPointer__FPv >_vtkJavaGetPointerFromObject__FP7JNIEnv_P8_jobjectPc >_vtkJavaMakeJavaString__FP7JNIEnv_PCc >_vtkJavaRegisterCastFunction__FP7JNIEnv_P8_jobjectiPv >_vtkJavaUTFToChar__FP7JNIEnv_P8_jstring >_DeepCopy__20vtkAbstractTransformPB0 >_GetGlobalWarningDisplay__9vtkObject >_GetInverse__20vtkAbstractTransform >_SetInverse__20vtkAbstractTransformPB0 >.......goes on > >b)I compile all another time doing: > >:src/VTK/Common$# c++ -bundle >-I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/local/src/VTK -o >libvtkCommonJava.jnilib -framework JavaVM *Java.cxx > >but the same error appears. > >How can I solve this error? > >Thanks > >El Lun 29 Abr 2002 14:03, escribi?: > >>OK, so java on mac needs a .jnilib. Did you try renaming the vtk*Java >>libs to have extension .jnilib? Or better yet, something like below, >>linking libvtkCommon.dylib and libvtkCommonJava.dylib to >>libvtkCommonJava.jnilib? >>-Jeff >> >> >>JNI libraries are always named |lib|/|name|/| .jnilib|, where /|name|/ >>is the value of the string used in the call to |System.loadLibrary()|. >>For example, to load the library named |libhello.jnilib|, you would make >> >>the following call in your Java code: >> |System.loadLibrary("hello");| >> >>To build a JNI library, execute the following command: >> >> *|$|*| cc -bundle >> -I/System/Library/Frameworks/JavaVM.framework/Headers -o >> lib|/|name|/|.jnilib -framework JavaVM |/|sourceFiles|/ >> >>For example, if the files |hello.c| and |goodbye.c| contain the >>implementations of the native methods to be built into | >>libhello.jnilib|, you would build |libhello.jnilib| with the following >>command: >> >> *|$|*| cc -bundle >> -I/System/Library/Frameworks/JavaVM.framework/Headers -o >> libhello.jnilib -framework JavaVM hello.c goodbye.c| >> >>A common problem for JNI developers is that JNI dynamic libraries have >>interdependencies. For example: libA.jnilib contains a function foo(). >>libB.jnilib needs to link against libA.jnilib to make use of foo(). This >>will not work on Mac OS X because JNI libraries are bundles (all symbols >>are private to a bundle). One solution to this dependency problem is to >>put the common functions into a separate dynamic library (libC.dylib in >>this example) and link both libA.jnilib and libB.jnilib to libC.dylib. >> >>Daniel S?ez Domingo wrote: >> >>>Hi Jeff, >>> >>> I have tested my system and I know that the java.library.path contains >>>the path to the directory where the .dylib are. But the problem is that >>>MacOSX doesn't understand .dylib but it only understands .jnilib when we >>>do a System.loadLibrary() call. Then I want to know how to convert .dylib >>>into .jnilib. >>> >>>Thanks >>>Daniel S?ez >>> >>>El Lun 29 Abr 2002 13:38, escribi?: >>> >>>>Hi Daniel, >>>>What are the contents of DYLD_LIBRARY_PATH? Also, (I'm not familiar >>>>with macos) does setting LD_LIBRARY_PATH to /usr/local/src/VTK/bin (or >>>>equivalent location of your shared libraries) help? >>>>-Jeff >>>> >>>>Daniel S?ez Domingo wrote: >>>> >>>>>The error is: >>>>> >>>>>Exception in thread "main" java.lang.UnsatisfiedLinkError: no >>>>>vtkCommonJava in java.library.path >>>>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) >>>>> at java.lang.Runtime.loadLibrary0(Runtime.java:749) >>>>> at java.lang.System.loadLibrary(System.java:820) >>>>> at vtkPanel.(vtkPanel.java:22) >>>>> >>>>>and my DYLD_LIBRARY_PATH is: >>>>> >>>>>DYLD_LIBRARY_PATH=/usr/local/src/VTK/lib:/usr/local/src/VTK/bin >>>>> >>>>>Daniel S?ez >>>>> >>>>>El Lun 29 Abr 2002 13:24, escribi?: >>>>> >>>>>>No, what is the error exactly - what is the stack trace? Also, what is >>>>>>your DYLD_LIBRARY_PATH? >>>>>>-Jeff >>>>>> >>>>>>Daniel S?ez Domingo wrote: >>>>>> >>>>>>>UnsatisfiedLinkError is produced when the library that we are trying >>>>>>>to load doesn't exist in java.library.path property. But I think that >>>>>>>this error is produced because I have .dylib libraries instead >>>>>>>.jnilib that are necessary for System.loadLibrary() java call. >>>>>>> >>>>>>>Daniel S?ez >>>>>>> >>>>>>>El Lun 29 Abr 2002 13:15, escribi?: >>>>>>> >>>>>>>>What is the unsatisfied link error? >>>>>>>>-Jeff >>>>>>>> >>>>>>>>Daniel S?ez Domingo wrote: >>>>>>>> >>>>>>>>>Hello, >>>>>>>>> >>>>>>>>>I have a problem loading libraries in Java. I'll explain it. >>>>>>>>> >>>>>>>>>I have ported VTK into Mac OSX using only Quartz and wrapping Java. >>>>>>>>>It generates libraries named libnameJava.dylib from a great number >>>>>>>>>of files. I have included the DYLD_LIBRARY_PATH with the path to >>>>>>>>>these libraries. Then, when a System.loadLibrary("nameJava") call >>>>>>>>>is done, it's produced an UnsatisfiedLinkError. >>>>>>>>>I have read that the System.loadLibrary() call needs a .jnilib >>>>>>>>>library, but I don't know how to create it from a dylib library >>>>>>>>>(this option would be the best) or from the source files. I don't >>>>>>>>>either know if I have to create both jnilib and dylib libraries >>>>>>>>>because I don't know if the dylib library is going to be used. >>>>>>>>> >>>>>>>>>I would thank somebody help me. >>>>>>>>> >>>>>>>>>Daniel S?ez >>>>>>>>>_______________________________________________ >>>>>>>>>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 > > -- Jeff Lee Software Engineer jeff at cdnorthamerica.com CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From dgobbi at irus.rri.ca Mon Apr 29 12:04:03 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Mon, 29 Apr 2002 12:04:03 -0400 (EDT) Subject: [vtkusers] Compiling Error In-Reply-To: Message-ID: Hi Mike, This error means that your are not linking to the library that contains vtkPolyDataToImageStencil. It is in Hybrid, so make sure that 'hybrid' is turned on in CMake and also make sure that your executable is linking to the vtkHybrid library. - David On Mon, 29 Apr 2002, Michael Gy?rffy wrote: > Hello: > I'm new to vtk and programming. I'm using the following script: > > vtkPolyDataToImageStencil *dataToStencil=vtkPolyDataToImageStencil::New(); > dataToStencil->SetInput(pdata->GetOutput()); > > Where pdata is Polydata. > I'm getting the following error to these two lines: "undefined > reference to `vtkPolyDataToImageStencil::New(void)'" > and > "undefined reference to `vtkPolyDataToImageStencil::SetInput(vtkPolyData *)'" > > What does this "undefined reference to" error mean and how can I > fix this problem? > > A google of thanks, > > Mike From dean.inglis at on.aibn.com Mon Apr 29 18:33:51 2002 From: dean.inglis at on.aibn.com (Dean Inglis) Date: Mon, 29 Apr 2002 15:33:51 -0700 Subject: [vtkusers] RE: Multiple Renderers Message-ID: I am trying to use one RenderWindow with 4 Renderers: the goal is to show 3 image plane widgets in one large viewport and 3 image plane outputs (not implmented yet) to an Actor2D/ImageMapper pair in each of the other 3 viewports. A similar pipeline might be an texture mapped image volume and 3 Actor2D/ImageMapper pairs showing some slices from the volume. The problem seems to be that the widget only knows about the interactor for the whole render window and not the specific renderer it should ideally be associated with. Is there a way to set the widget/interactor to a specific renderer ? Dean From sebastien.barre at kitware.com Mon Apr 29 16:08:49 2002 From: sebastien.barre at kitware.com (Sebastien BARRE) Date: Mon, 29 Apr 2002 16:08:49 -0400 Subject: [vtkusers] RE: Multiple Renderers In-Reply-To: Message-ID: <5.1.0.14.2.20020429154208.02c32d20@pop.nycap.rr.com> At 4/29/2002 06:33 PM, Dean Inglis wrote: >I am trying to use one RenderWindow with 4 Renderers: the goal is to show 3 >image plane widgets in one large viewport and 3 image plane outputs (not >implmented yet) to an Actor2D/ImageMapper pair in each of the other 3 >viewports. A similar pipeline might be an texture mapped image volume and 3 >Actor2D/ImageMapper pairs showing some slices from the volume. > >The problem seems to be that the widget what do you mean by "the widget" ? Are you using Tk (i.e. vtkTkRenderWidget ?), or just an ImagePlaneWidget inside a RenderWindow ? >only knows about the interactor for >the whole render window and not the specific renderer it should ideally be >associated with. Is there a way to set the widget/interactor to a specific >renderer ? The big picture is: - a vtkRenderWindowInteractor (say, iren) is typically associated to a vtkRenderWindow (say, renWin). - a vtkRenderWindowInteractor has special attributes that can be used to represent a GUI event in a generic way (through Set/GetEventPosition(), Set/GetControlKey(), Set/GetEventInformation(), etc) - a concrete implementation of vtkRenderWindowInteractor (for example, vtkWin32RenderWindowInteractor) handles system-specific GUI events, represent them in a generic way by setting the attributes I mentioned above, then invoke the corresponding VTK event (for example, MouseMoveEvent). - a vtkInteractorStyle (istyle) is associated to a vtkRenderWindowInteractor. By doing so (i.e. istyle->SetInteractor(iren)), it adds observer to the vtkRenderWindowInteractor so that it can intercept/listen/observe/receive/etc. some generic VTK events. For example, istyle will listen to MouseMoveEvent from iren. Once iren invokes a MouseMoveEvent, the isyle's callback is called (vtkInteractorStyle::ProcessEvents). Inside that callback (a static func), two informations are know: 'rwi', the address of the object that invoked the event (here, iren), and 'self', the adress of the style (here, istyle). At this point, the informations related to the event are retrieved through rwi, using GetEventPosition, GetControlKey, etc. Now two things may occur: - the style itself can invoke an event if it has observers for that event: in that way, you can override the behaviour of the style by intercepting the MouseMoveEvent. - if there are no observers, it will call a default function, something like vtkInteractorStyle::OnMouseMove() in that case, a function that (again) you could have redefined in a subclass of a style. This function has parameters for the moment (ex: x, y, ctrl, shift), but I'm about to remove them, once again because the event informations should be retrieved where they are, i.e. at the interactor (rwi) level, not by duplicating (half of) the event infos inside the style (imho). In most interactor styles, both ways lead to some piece of code that will initially try to find the *renderer* in which the event occured, by calling vtkInteractorStyle::FindPokedRenderer(x, y) (or FindPokedCamera(), that I'm about to remove also, so stick to the first one :). This will set the internal attribute CurrentRenderer. I guess you should check for it, and if it is not set, then there is probably a problem in the style (depending on its state). Since there is no Get method for this one, I'll add one asap. Do *not* use CurrentCamera, CurrentLight, etc, I'm about to remove these also: these classes have grown organically by adding more and more duplicate state attributes, making the whole hierarchy difficult to maintain or grasp (to say the least). The only thing you need is CurrentRender, (which will leads you to the active camera, first light, etc.) Does it help ? -- Sebastien Barre From alkofo at rpi.edu Mon Apr 29 17:56:17 2002 From: alkofo at rpi.edu (Omar Al-Kofahi) Date: Mon, 29 Apr 2002 17:56:17 -0400 Subject: [vtkusers] vtk Coloring Message-ID: Hi, I created an iso-surface, and I was trying to color that iso-surface, but I can't change the default color. I tried to set the actor's color, as well as changing the light's color, nothing changed. The code used is attached below. I keep getting BLUE color, no matter what I do. Does any one of you know what should I do? Thank you. Omar vtkStructuredPoints *StructuredPoints; // Fill the StructuredPoints.. .. // Create the contours vtkContourFilter *surfaces = vtkContourFilter::New(); surfaces->SetInput(StructuredPoints); StructuredPoints->Delete(); surfaces->SetNumberOfContours(1); surfaces->SetValue(0, 250); surfaces->Update(); actor = vtkActor::New(); mapper = vtkPolyDataMapper::New(); mapper->SetInput(surfaces->GetOutput()); surfaces->Delete(); actor->SetMapper(mapper); actor->GetProperty()->SetColor(1.0, 1.0, 1.0); aren->AddActor(actor); vtkRenderWindow* renWin = vtkRenderWindow::New(); renWin->AddRenderer(aren); vtkLight *light = vtkLight::New(); light->SetLightTypeToCameraLight(); light->SetColor(1.0, 1.0, 1.0); From krw at viz-solutions.com Mon Apr 29 18:02:53 2002 From: krw at viz-solutions.com (Kevin Wright) Date: Mon, 29 Apr 2002 15:02:53 -0700 Subject: [vtkusers] vtk Coloring In-Reply-To: Message-ID: <5.1.0.14.0.20020429145935.00a78358@127.0.0.1> >I created an iso-surface, and I was trying to color that iso-surface, but I >can't change the default color. I tried to set the actor's color, as well as >changing the light's color, nothing changed. The code used is attached >below. I keep getting BLUE color, no matter what I do. By default, VTK colors objects by their scalar values. If you want to set the color by hand, you have to call ScalarVisibilityOff in the mapper. This will tell it to ignore the scalar values for the object, and draw the color you've specified in the actor. In C++, the line: mapper->ScalarVisibilityOff() Any time after you create the mapper should do it. Kevin. From fermion at mac.com Mon Apr 29 19:31:40 2002 From: fermion at mac.com (Mike Robertson) Date: Mon, 29 Apr 2002 19:31:40 -0400 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: Message-ID: [localhost:Documents/temp/mayavi-1.0] root# python Python 2.2 (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> from vtk import * >>> from Tkinter import * >>> root = Tk() >>> root.tk.eval('load /usr/local/bin/libvtkRenderingPythonTkWidget.so vtkrenderingpythonwidgets') Traceback (most recent call last): File "", line 1, in ? TclError: dyld: permission denied >>> What does this mean? dyld? That's something relevant to dynamic linking, right? Meaning what? That my Tcl build is static? In that event, how can I make sure that I install it with sharing (there's no convenient cmake operation associated with tcl...)? Anyone know if it is possible to tell fink how to configure the tcl installation? Perhaps I'll just have to build from the source... Obviously I can't use apple's new release because it uses quartz. Here's the mayavi error, which seems to tell me that this is the only hurdle left in getting this to work correctly. (which I very much look forward to doing) [localhost:Documents/temp/mayavi-1.0] root# python mayavi.py Traceback (most recent call last): File "mayavi.py", line 4, in ? Main.main () File "./Main.py", line 947, in main v = MayaVi (r) File "./Main.py", line 139, in __init__ self.renwin = Misc.RenderWindow.RenderWindow (self.renwin_frame) File "Misc/RenderWindow.py", line 41, in __init__ height=500) File "/usr/local/vtk/VTK/Wrapping/Python/vtkTkRenderWidget.py", line 65, in __init__ vtkLoadPythonTkWidgets(master.tk) File "/usr/local/vtk/VTK/Wrapping/Python/vtkLoadPythonTkWidgets.py", line 59, in vtkLoadPythonTkWidgets interp.call('load', filename) TclError: dyld: permission denied [localhost:Documents/temp/mayavi-1.0] root# mike ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Michael Robertson fermion at mac.com http://thenewcosmos.com "The wisdom of the wise and the experience of the ages are perpetuated by quotations." -Benjamin Disraeli > From: David Gobbi > Date: Mon, 29 Apr 2002 01:50:15 -0400 (EDT) > To: Prabhu Ramachandran > Cc: Mike Robertson > Subject: Re: [vtkusers] Bizarre Python Errors > > root.tk.eval('load /usr/local/bin/libvtkRenderingPythonTkWidget.so > Vtkrenderingpythontkwidgets From dan at barrt.ru Mon Apr 29 21:40:53 2002 From: dan at barrt.ru (Daniel A. Mezentsev) Date: Tue, 30 Apr 2002 08:40:53 +0700 Subject: [vtkusers] Mixing C++ and Tcl/Tk Code in vtk application Message-ID: <3CCDF625.5D026707@barrt.ru> Hi, All! I'm write some classes not derivative from vtk classes. I'm wrapped my own classes into Tcl/Tk script, but without standard vtk wrapper using. The following code is very slowly. AtomCluster cluster # this is my class cluster Load "water" vtkStructuredPoints vol vol SetDimensions 101 101 101 vol SetSpacing 0.1 0.1 0.1 vol SetOrigin -5 -5 -5 vtkFloatArray potential for {set i 0} {$i < [vol GetNumberOfPoints]} {incr i} { set r [vol GetPoint $i] set phi [cluster NuclerPotential [lindex $r 0] [lindex $r 1] [lindex $r 2]] potential InsertNextValue $phi } . . . . I want to use the following code : AtomCluster cluster cluster Load "water" vtkStructuredPoints vol vol SetDimensions 101 101 101 vol SetSpacing 0.1 0.1 0.1 vol SetOrigin -5 -5 -5 cluster CalculateNuclearPotential vol but I don't know how to obtain access to the object corresponding to the vtkStructuredPoints instance (vol in my case) from C/C++ programm (from cluster class). Any suggestions ? With respect Daniel. From prabhu at aero.iitm.ernet.in Mon Apr 29 23:13:46 2002 From: prabhu at aero.iitm.ernet.in (Prabhu Ramachandran) Date: Tue, 30 Apr 2002 08:43:46 +0530 Subject: [vtkusers] Bizarre Python Errors In-Reply-To: References: Message-ID: <15566.3050.397174.133125@monster.linux.in> >>>>> "MR" == Mike Robertson writes: MR> [localhost:Documents/temp/mayavi-1.0] root# python Python 2.2 MR> (#1, Apr 25 2002, 11:43:25) [GCC 2.95.2 19991024 (release)] on MR> darwin Type "help", "copyright", "credits" or "license" for MR> more information. >>>> from vtk import * from Tkinter import * root = Tk() >>>> root.tk.eval('load >>>> /usr/local/bin/libvtkRenderingPythonTkWidget.so MR> vtkrenderingpythonwidgets') Traceback (most recent call last): MR> File "", line 1, in ? TclError: dyld: permission MR> denied >>>> MR> What does this mean? dyld? That's something relevant to MR> dynamic linking, right? Meaning what? That my Tcl build is MR> static? In that event, how can I make sure that I install it Searching on google tells me something like so: http://macosx.forked.net/bbarchive/forum1/000033.html "You need to create a dynamic library. add -fno-common to your linking (check the compiling docs on fink.sourceforge.net it covers this)" So I looked up the fink docs and found this: http://fink.sourceforge.net/doc/porting/shared.php Looks like there is a distinction between loadable modules and shared libaries on OSX. The page cited above has more details on how to build a shared module or a dynamically loadable module. The last section in that page tells you how to build a loadable module. You will need to change the way the libvtkRenderingPythonTkWidgets.so is built accordingly. I guess everything should work fine if that is done. Good luck! prabhu From adada_marwan at hotmail.com Tue Apr 30 02:59:21 2002 From: adada_marwan at hotmail.com (Marwan) Date: Mon, 29 Apr 2002 23:59:21 -0700 Subject: [vtkusers] Reandering Raw Data Message-ID: <00b901c1f014$8ef7c820$33e9a695@home> Hi there, I have a Raw volume data which doesn't have a header in it. I am trying to render it but I could not figure out a way to read the file into the vtkDataSet and render it; Any Ideas? Thanks in advance Marwan -------------- next part -------------- An HTML attachment was scrubbed... URL: From dgobbi at irus.rri.ca Tue Apr 30 01:13:02 2002 From: dgobbi at irus.rri.ca (David Gobbi) Date: Tue, 30 Apr 2002 01:13:02 -0400 (EDT) Subject: [vtkusers] Reandering Raw Data In-Reply-To: <00b901c1f014$8ef7c820$33e9a695@home> Message-ID: Hi Marwan, Use the vtkImageReader to read the data. You will have to guess the data type and image dimensions. It is a good bet that, if it is a medical image volume, the data type will be either Short or UnsignedShort or UnsignedChar and the dimensions will be 256x256xN or 512x512xN where N is the number of slices in the data set. To figure out the number of slices, find the number of bytes per slice (e.g. 256*256*2 if the data is Short and the slices are 256x256) and then divide the size of the file by the number of bytes per slice. Some trial and error will be needed. Just keep tweaking vtkImageReader parameters until the image looks right when it is rendered via e.g. vtkImageViewer. Each of the possible errors in setting up the ImageReader (e.g. getting the data type wrong, getting the signedness wrong, getting the endianness wrong, getting the slice dimensions wrong) will result in a very distinctive error in the final rendered image. - David -- David Gobbi, MSc dgobbi at irus.rri.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 29 Apr 2002, Marwan wrote: > Hi there, > I have a Raw volume data which doesn't have a header in it. I am trying to render it but I could not figure out a way to read the file into the vtkDataSet and render it; Any Ideas? > Thanks in advance > Marwan > From affable at hd2.dot.net.in Tue Apr 30 01:26:41 2002 From: affable at hd2.dot.net.in (cspl) Date: Tue, 30 Apr 2002 10:56:41 +0530 Subject: [vtkusers] ColorMapping using Progressbar settings Message-ID: <002c01c1f007$a4a4ddf0$01000001@macinfo.net> Dear Freinds, I got the image of volume of DICOM images.I want to change colors of that image which ever color we want.Please tell me that What class is exactly to suite that requirement.I want to change this using progress bars.If anybody knows please give me suggestion. Regards, Ramakrishna -------------- next part -------------- An HTML attachment was scrubbed... URL: From mchlebie at ajax.umcs.lublin.pl Tue Apr 30 05:40:44 2002 From: mchlebie at ajax.umcs.lublin.pl (Michal Chlebiej) Date: Tue, 30 Apr 2002 11:40:44 +0200 (CEST) Subject: [vtkusers] Closing 3d surfaces... Message-ID: Hi all I've generated surface with MC algorithm. The I've preformed some cutting (clippolydata with plane) operations so I've created a polydata with holes. In vtk it's possible to extract edges but is it possible to triangulate them??? I have to close the edges to affirm if some points are situated inside/outside the surface... please help regards Meow From dsaez at iti.upv.es Tue Apr 30 05:11:16 2002 From: dsaez at iti.upv.es (Daniel =?iso-8859-15?q?S=E1ez=20Domingo?=) Date: Tue, 30 Apr 2002 11:11:16 +0200 Subject: [vtkusers] Wrapping Java In-Reply-To: <3CCD6CBA.2010003@cdnorthamerica.com> References: <20020429111256.ED1CC15EA23@mailborg.iti.upv.es> <20020429153016.C50A415EA26@mailborg.iti.upv.es> <3CCD6CBA.2010003@cdnorthamerica.com> Message-ID: <20020430090829.22DCE15EA26@mailborg.iti.upv.es> Yes, I got to create the .jnilib from the .o files but when execute the java program it's produced a Bus error. I don't know what this error means. I have tried to create the jnilib from the cxx and I have done the next in every directory: c++ -bundle -g -O2 -fno-coalesce-templates -fno-coalesce-static-vtables -DvtkCommonJava_EXPORTS -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Rendering -I/usr/local/src/VTK -I/usr/local/src/VTK/Common -I/usr/local/src/VTK/Filtering -I/usr/local/src/VTK/Imaging -I/usr/local/src/VTK/Graphics -I/usr/local/src/VTK/IO -I/usr/local/src/VTK/Utilities/zlib -I/usr/local/src/VTK/Utilities/png -I/usr/local/src/VTK/Utilities/jpeg -I/usr/local/src/VTK/Common/Testing/Cxx -I/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers -I/System/Library/Frameworks/JavaVM.framework/Versions/A/Headers/ -I/System/Library/Frameworks/JavaEmbedding.framework/Versions/A/Headers -DVTK_USE_QUARTZ -o /usr/local/src/VTK/lib/libvtkCommonJava.jnilib *Java.cxx vtkJavaUtil.cxx -L/usr/local/src/VTK/lib/ -L/usr/local/src/VTK/bin/ -lpthread -lm -lvtkCommon but when I do: [$] #cd /usr/local/src/VTK/Examples/Tutorial/Step1/Java [$Step1] #setenv CLASSPATH .:/usr/local/src/VTK/java [$Step1] #setenv DYLD_LIBRARY_PATH /usr/local/src/VTK/lib [$Step1] #setenv LD_LIBRARY_PATH /usr/local/src/VTK/lib [$Step1] #javac Cone.java [$Step1] #java Cone Bus error The same Bus error. I don't know the cause of this error. Could enybody help me, please? Thanks Daniel S?ez El Lun 29 Abr 2002 17:54, Jeff Lee escribi?: > You also need to link in libvtkCommon.dylib - try a) and link in > libvtkCommon.dylib. The same goes for all other *Java.jnilib libraries > - you must link in the corresponding base lib. > -Jeff > > Daniel S?ez Domingo wrote: > >Hi Jeff, > > > > I've tried to create the jnilib like you has said but I have some > > error. Perhaps you would know how solve it. > >I've tried two ways and both have the same final. > >a) Like I have all the .o of the source files that are going to make the > > > >library, I do: > >:src/VTK/Common$# c++ -bundle > > > >-I/System/Library/Frameworks/JavaVM.framework/Headers -o > >libvtkCommonJava.jnilib -framework JavaVM *Java.o > > > >and the eror is: > >/usr/bin/ld: Undefined symbols: > >_AddClippingPlane__17vtkAbstractMapperP8vtkPlane > >_RemoveAllClippingPlanes__17vtkAbstractMapper > >_RemoveClippingPlane__17vtkAbstractMapperP8vtkPlane > >_SetClippingPlanes__17vtkAbstractMapperP9vtkPlanes > >_ShallowCopy__17vtkAbstractMapperPB0 > >_vtkJavaCreateNewJavaStubForObject__FP7JNIEnv_P9vtkObject > >_vtkJavaCreateNewJavaStub__FP7JNIEnv_PCcPv > >_vtkJavaGetId__FP7JNIEnv_P8_jobject > >_vtkJavaGetObjectFromPointer__FPv > >_vtkJavaGetPointerFromObject__FP7JNIEnv_P8_jobjectPc > >_vtkJavaMakeJavaString__FP7JNIEnv_PCc > >_vtkJavaRegisterCastFunction__FP7JNIEnv_P8_jobjectiPv > >_vtkJavaUTFToChar__FP7JNIEnv_P8_jstring > >_DeepCopy__20vtkAbstractTransformPB0 > >_GetGlobalWarningDisplay__9vtkObject > >_GetInverse__20vtkAbstractTransform > >_SetInverse__20vtkAbstractTransformPB0 > >.......goes on > > > >b)I compile all another time doing: > >:src/VTK/Common$# c++ -bundle > > > >-I/System/Library/Frameworks/JavaVM.framework/Headers -I/usr/local/src/VTK > > -o libvtkCommonJava.jnilib -framework JavaVM *Java.cxx > > > >but the same error appears. > > > >How can I solve this error? > > > >Thanks > > > >El Lun 29 Abr 2002 14:03, escribi?: > >>OK, so java on mac needs a .jnilib. Did you try renaming the vtk*Java > >>libs to have extension .jnilib? Or better yet, something like below, > >>linking libvtkCommon.dylib and libvtkCommonJava.dylib to > >>libvtkCommonJava.jnilib? > >>-Jeff > >> > >> > >>JNI libraries are always named |lib|/|name|/| .jnilib|, where /|name|/ > >>is the value of the string used in the call to |System.loadLibrary()|. > >>For example, to load the library named |libhello.jnilib|, you would make > >> > >>the following call in your Java code: > >> |System.loadLibrary("hello");| > >> > >>To build a JNI library, execute the following command: > >> > >> *|$|*| cc -bundle > >> -I/System/Library/Frameworks/JavaVM.framework/Headers -o > >> lib|/|name|/|.jnilib -framework JavaVM |/|sourceFiles|/ > >> > >>For example, if the files |hello.c| and |goodbye.c| contain the > >>implementations of the native methods to be built into | > >>libhello.jnilib|, you would build |libhello.jnilib| with the following > >>command: > >> > >> *|$|*| cc -bundle > >> -I/System/Library/Frameworks/JavaVM.framework/Headers -o > >> libhello.jnilib -framework JavaVM hello.c goodbye.c| > >> > >>A common problem for JNI developers is that JNI dynamic libraries have > >>interdependencies. For example: libA.jnilib contains a function foo(). > >>libB.jnilib needs to link against libA.jnilib to make use of foo(). This > >>will not work on Mac OS X because JNI libraries are bundles (all symbols > >>are private to a bundle). One solution to this dependency problem is to > >>put the common functions into a separate dynamic library (libC.dylib in > >>this example) and link both libA.jnilib and libB.jnilib to libC.dylib. > >> > >>Daniel S?ez Domingo wrote: > >>>Hi Jeff, > >>> > >>> I have tested my system and I know that the java.library.path contains > >>>the path to the directory where the .dylib are. But the problem is that > >>>MacOSX doesn't understand .dylib but it only understands .jnilib when we > >>>do a System.loadLibrary() call. Then I want to know how to convert > >>> .dylib into .jnilib. > >>> > >>>Thanks > >>>Daniel S?ez > >>> > >>>El Lun 29 Abr 2002 13:38, escribi?: > >>>>Hi Daniel, > >>>>What are the contents of DYLD_LIBRARY_PATH? Also, (I'm not familiar > >>>>with macos) does setting LD_LIBRARY_PATH to /usr/local/src/VTK/bin (or > >>>>equivalent location of your shared libraries) help? > >>>>-Jeff > >>>> > >>>>Daniel S?ez Domingo wrote: > >>>>>The error is: > >>>>> > >>>>>Exception in thread "main" java.lang.UnsatisfiedLinkError: no > >>>>>vtkCommonJava in java.library.path > >>>>> at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1312) > >>>>> at java.lang.Runtime.loadLibrary0(Runtime.java:749) > >>>>> at java.lang.System.loadLibrary(System.java:820) > >>>>> at vtkPanel.(vtkPanel.java:22) > >>>>> > >>>>>and my DYLD_LIBRARY_PATH is: > >>>>> > >>>>>DYLD_LIBRARY_PATH=/usr/local/src/VTK/lib:/usr/local/src/VTK/bin > >>>>> > >>>>>Daniel S?ez > >>>>> > >>>>>El Lun 29 Abr 2002 13:24, escribi?: > >>>>>>No, what is the error exactly - what is the stack trace? Also, what > >>>>>> is your DYLD_LIBRARY_PATH? > >>>>>>-Jeff > >>>>>> > >>>>>>Daniel S?ez Domingo wrote: > >>>>>>>UnsatisfiedLinkError is produced when the library that we are trying > >>>>>>>to load doesn't exist in java.library.path property. But I think > >>>>>>> that this error is produced because I have .dylib libraries instead > >>>>>>> .jnilib that are necessary for System.loadLibrary() java call. > >>>>>>> > >>>>>>>Daniel S?ez > >>>>>>> > >>>>>>>El Lun 29 Abr 2002 13:15, escribi?: > >>>>>>>>What is the unsatisfied link error? > >>>>>>>>-Jeff > >>>>>>>> > >>>>>>>>Daniel S?ez Domingo wrote: > >>>>>>>>>Hello, > >>>>>>>>> > >>>>>>>>>I have a problem loading libraries in Java. I'll explain it. > >>>>>>>>> > >>>>>>>>>I have ported VTK into Mac OSX using only Quartz and wrapping > >>>>>>>>> Java. It generates libraries named libnameJava.dylib from a great > >>>>>>>>> number of files. I have included the DYLD_LIBRARY_PATH with the > >>>>>>>>> path to these libraries. Then, when a > >>>>>>>>> System.loadLibrary("nameJava") call is done, it's produced an > >>>>>>>>> UnsatisfiedLinkError. > >>>>>>>>>I have read that the System.loadLibrary() call needs a .jnilib > >>>>>>>>>library, but I don't know how to create it from a dylib library > >>>>>>>>>(this option would be the best) or from the source files. I don't > >>>>>>>>>either know if I have to create both jnilib and dylib libraries > >>>>>>>>>because I don't know if the dylib library is going to be used. > >>>>>>>>> > >>>>>>>>>I would thank somebody help me. > >>>>>>>>> > >>>>>>>>>Daniel S?ez > >>>>>>>>>_______________________________________________ > >>>>>>>>>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 jbiddiscombe at skippingmouse.co.uk Tue Apr 30 05:07:30 2002 From: jbiddiscombe at skippingmouse.co.uk (John Biddiscombe) Date: Tue, 30 Apr 2002 10:07:30 +0100 Subject: [vtkusers] Mixing C++ and Tcl/Tk Code in vtk application References: <3CCDF625.5D026707@barrt.ru> Message-ID: <000001c1f03a$d8c62c00$0100a8c0@tigger> Daniel, In order to access your C++ created objects from tcl and your tcl created objects from C++, you're going to need to look carefully at the code in vtkTclUtil.cxx. Each time an object is created, you need to create an equivalent command in tcl to access it. If you look carefully at the vtkTclUtil code you should be able to see what you need to do. Here's a piece of code that I use...it accepts a vtkObject pointer and creates a tcl representation of it which can be queried by a tcl script running in the same program. This only covers creating the object. If you delete it from inside a script, or from C++, the copmmmand representing it needs to be deleted. This code is overkill but simulates an object created by a user in tcl - so it's fully interchangeable The following code assumes you are using the standard vtk tcl wrapping...(and that all the relevant vtkCommonInit, GraphicsInit, FilteringInit....etc have been initialized....) //-------------------------------------------------------------------------- - int __fastcall TBvtkParam_TclWindow::InsertTclNewInstance(vtkObject *obj, Tcl_Interp *interp, char *name) { // // first get the command info for the object we're representing // Tcl_CmdInfo CommandData, cinf; if (Tcl_GetCommandInfo(Interp, const_cast(obj->GetClassName()), &CommandData)!=1) { throw("Internal problem creating Tcl vtkObject lookup"); } // We need the CreateNewInstanceCommand from it (for the Object type) vtkTclCommandStruct *cs = (vtkTclCommandStruct*)CommandData.clientData; int (*TheInstanceNewCommand)(ClientData, Tcl_Interp *,int, char *[]) = cs->CommandFunction; // // Do some checks to make sure we're not treading on anything // vtkTclInterpStruct *is = vtkGetInterpStruct(interp); // Make sure we are not duplicating a name if (Tcl_FindHashEntry(&is->InstanceLookup,name)) { throw Exception("Named Object Exists already"); } // Make sure we are not clobbering a built in command if (Tcl_GetCommandInfo(interp,name,&cinf)) { throw Exception("A tcl/tk command with that name already exists."); } // // Setup the internal Tcl Hash tables (!) // 3 Hash tables : 1) Maps names of objects to actual raw pointers to objects // 1) Maps a string of the pointer to a string of the name // 1) Maps names of objects to their command structures (fn ptrs) // Tcl_HashEntry *entry; int is_new; // Create a hash entry : key=name, data=object entry = Tcl_CreateHashEntry(&is->InstanceLookup, name, &is_new); Tcl_SetHashValue(entry,(ClientData)obj); // Create a hash entry : key=pointerstring, data=name char temps[256]; sprintf(temps,"%p",(void *)obj); entry = Tcl_CreateHashEntry(&is->PointerLookup, temps, &is_new); Tcl_SetHashValue(entry,(ClientData)(strdup(name))); // Create a hash entry : key=name, data=command function entry = Tcl_CreateHashEntry(&is->CommandLookup,name,&is_new); Tcl_SetHashValue(entry,(ClientData)(cs->CommandFunction)); // // Create a new command to represent the (named) object // vtkTclCommandArgStruct *as = new vtkTclCommandArgStruct; as->Pointer = (void *)obj; as->Interp = interp; Tcl_CreateCommand(interp, name, TheInstanceNewCommand, (ClientData)as, (Tcl_CmdDeleteProc *)vtkTclGenericDeleteObject); // // setup the delete callback // vtkCallbackCommand *cbc = vtkCallbackCommand::New(); cbc->SetCallback(vtkTclDeleteObjectFromHash); cbc->SetClientData((void *)as); as->Tag = obj->AddObserver(vtkCommand::DeleteEvent, cbc); cbc->Delete(); // return 1; } //-------------------------------------------------------------------------- - You will almost certainly want to change the delete object callback to ensure that if the user deletes your object you can be alerted. The above code uses the default vtk callback which I've not changed here... JB vtk Based Contracts wanted... From p.cook at cs.ucl.ac.uk Tue Apr 30 11:43:03 2002 From: p.cook at cs.ucl.ac.uk (Phil Cook) Date: Tue, 30 Apr 2002 16:43:03 +0100 Subject: [vtkusers] vtkPanel.java and packages Message-ID: <3CCEC997.24216.1691279@localhost> This from the archives of Feb 02: > Hi Jason, > The native methods get mangled in a certain way so that java can find > them The method is defined in libvtkCommonJava.so as > Java_vtkPanel_SetSizeInternal(...) (see vtkJavaAwt.h). Because you put > vtkPanel into a package, java is looking for somtehing like > Java_vtk_vtkPanel_SetSizeInternal(...). You can see exactly which > method java is looking for if you type 'javah -jni vtkPanel'. Because > of the way vtk is built, you cannot put vtkPanel into a package. Take > the package declaration out of vtkPanel and change your other code to > look for vtkPanel, not vtk.vtkPanel. Of course, vtkPanel needs to be > somewhere in your CLASSPATH... > -Jeff > > Rodrigues, Jason (MED) wrote: > > > > > Hye all, > > > > I downloaded vtk4.0 for upgrading my vtkPrograms to new vresion from the > >site, but found that vtk.vtkPanel didnt exist in that package. so made a > >separate packeg just for vtkPanel. Now Whenever I call this vtkPanel from > >that Package It throws me an unsatisfied linker error as below. > > > > > >java.lang.UnsatisfiedLinkError: SetSizeInternal > > at vtktmp.vtkPanel.SetSizeInternal(Native Method) > > at vtktmp.vtkPanel.setSize(vtkPanel.java:62) > > at vtkexample.(vtkexample.java:11) > > at vtkexample.main(vtkexample.java:26) > > > >Following was the place where there was a native call for setting the Size > >of the vtkPanel > > private native void RenderCreate(vtkRenderWindow id0); > > private native void RenderInternal(vtkRenderWindow id0); > > private native void SetSizeInternal(vtkRenderWindow id0, int x, int y); > > > > > >Thought The vtkPanel class had sucessfully loaded the libraries int the > >vtkPanel program, > > System.loadLibrary("vtkCommonJava"); > > System.loadLibrary("vtkFilteringJava"); > > System.loadLibrary("vtkIOJava"); > > System.loadLibrary("vtkImagingJava"); > > System.loadLibrary("vtkGraphicsJava"); > > System.loadLibrary("vtkRenderingJava"); > >the above linker error still existed. > > Can anybody tell me what other things I need to include other than the > >vtkLibraries? If I have to build other dependencies where do I get those dll > >making 'make" files? > > > > > >Anticipating your solution at the earliest, > >Regards, > >JASON RODRIGUES > > > > > >"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE > >ADDRESSEE and may contain confidential and privileged information. > >If the reader of this message is not the intended recipient, > >you are notified that any dissemination, distribution or copy of this > >communication is strictly Prohibited. > >If you have received this message by error, please notify us > >immediately, return the original mail to the sender and delete the > >message from your system." > > > >_______________________________________________ > >This is the private VTK discussion list. > >Please keep messages on-topic. Check the FAQ at: > >Follow this link to subscribe/unsubscribe: > >http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > I have done as Jeff suggested, but my Java compiler (Sun JDK v1.4.0 for Win32) won't recognise unpackaged classes. Although I have put \vtk40\wrapping\java on the classpath, I get "Cannot resolve symbol" when attempting to instantiate vtkPanel objects. I have used packages for all my code, and if I put vtkPanel into any of my packages (or into the vtk package), it can be found by the compiler. But then I get the same runtime problems as Jason had. Has anyone else come across this problem? Thanks, Phil From jeff at cdnorthamerica.com Tue Apr 30 12:18:31 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 30 Apr 2002 12:18:31 -0400 Subject: [vtkusers] vtkPanel.java and packages References: <3CCEC997.24216.1691279@localhost> Message-ID: <3CCEC3D7.7020404@cdnorthamerica.com> The latest vtkPanel from cvs is packaged. -Jeff Phil Cook wrote: >This from the archives of Feb 02: > > >>Hi Jason, >>The native methods get mangled in a certain way so that java can find >>them The method is defined in libvtkCommonJava.so as >>Java_vtkPanel_SetSizeInternal(...) (see vtkJavaAwt.h). Because you put >>vtkPanel into a package, java is looking for somtehing like >>Java_vtk_vtkPanel_SetSizeInternal(...). You can see exactly which >>method java is looking for if you type 'javah -jni vtkPanel'. Because >>of the way vtk is built, you cannot put vtkPanel into a package. Take >>the package declaration out of vtkPanel and change your other code to >>look for vtkPanel, not vtk.vtkPanel. Of course, vtkPanel needs to be >>somewhere in your CLASSPATH... >>-Jeff >> >>Rodrigues, Jason (MED) wrote: >> >>> >>>Hye all, >>> >>>I downloaded vtk4.0 for upgrading my vtkPrograms to new vresion from the >>>site, but found that vtk.vtkPanel didnt exist in that package. so made a >>>separate packeg just for vtkPanel. Now Whenever I call this vtkPanel from >>>that Package It throws me an unsatisfied linker error as below. >>> >>> >>>java.lang.UnsatisfiedLinkError: SetSizeInternal >>> at vtktmp.vtkPanel.SetSizeInternal(Native Method) >>> at vtktmp.vtkPanel.setSize(vtkPanel.java:62) >>> at vtkexample.(vtkexample.java:11) >>> at vtkexample.main(vtkexample.java:26) >>> >>>Following was the place where there was a native call for setting the Size >>>of the vtkPanel >>> private native void RenderCreate(vtkRenderWindow id0); >>> private native void RenderInternal(vtkRenderWindow id0); >>> private native void SetSizeInternal(vtkRenderWindow id0, int x, int y); >>> >>> >>>Thought The vtkPanel class had sucessfully loaded the libraries int the >>>vtkPanel program, >>> System.loadLibrary("vtkCommonJava"); >>> System.loadLibrary("vtkFilteringJava"); >>> System.loadLibrary("vtkIOJava"); >>> System.loadLibrary("vtkImagingJava"); >>> System.loadLibrary("vtkGraphicsJava"); >>> System.loadLibrary("vtkRenderingJava"); >>>the above linker error still existed. >>>Can anybody tell me what other things I need to include other than the >>>vtkLibraries? If I have to build other dependencies where do I get those dll >>>making 'make" files? >>> >>> >>>Anticipating your solution at the earliest, >>>Regards, >>>JASON RODRIGUES >>> >>> >>>"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >>>ADDRESSEE and may contain confidential and privileged information. >>>If the reader of this message is not the intended recipient, >>>you are notified that any dissemination, distribution or copy of this >>>communication is strictly Prohibited. >>>If you have received this message by error, please notify us >>>immediately, return the original mail to the sender and delete the >>>message from your system." >>> >>>_______________________________________________ >>>This is the private VTK discussion list. >>>Please keep messages on-topic. Check the FAQ at: >>>Follow this link to subscribe/unsubscribe: >>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > >I have done as Jeff suggested, but my Java compiler (Sun JDK v1.4.0 for Win32) won't >recognise unpackaged classes. Although I have put \vtk40\wrapping\java on the >classpath, I get "Cannot resolve symbol" when attempting to instantiate vtkPanel >objects. > >I have used packages for all my code, and if I put vtkPanel into any of my packages (or >into the vtk package), it can be found by the compiler. But then I get the same runtime >problems as Jason had. > >Has anyone else come across this problem? > >Thanks, > > >Phil >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > -- Jeff Lee Software Engineer jeff at cdnorthamerica.com CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From jeff at cdnorthamerica.com Tue Apr 30 12:19:36 2002 From: jeff at cdnorthamerica.com (Jeff Lee) Date: Tue, 30 Apr 2002 12:19:36 -0400 Subject: [vtkusers] vtkPanel.java and packages References: <3CCEC997.24216.1691279@localhost> Message-ID: <3CCEC418.7020102@cdnorthamerica.com> btw, you at least need to rebuild Rendering after your update because vtkJavaAwt.h has changed. -Jeff Phil Cook wrote: >This from the archives of Feb 02: > > >>Hi Jason, >>The native methods get mangled in a certain way so that java can find >>them The method is defined in libvtkCommonJava.so as >>Java_vtkPanel_SetSizeInternal(...) (see vtkJavaAwt.h). Because you put >>vtkPanel into a package, java is looking for somtehing like >>Java_vtk_vtkPanel_SetSizeInternal(...). You can see exactly which >>method java is looking for if you type 'javah -jni vtkPanel'. Because >>of the way vtk is built, you cannot put vtkPanel into a package. Take >>the package declaration out of vtkPanel and change your other code to >>look for vtkPanel, not vtk.vtkPanel. Of course, vtkPanel needs to be >>somewhere in your CLASSPATH... >>-Jeff >> >>Rodrigues, Jason (MED) wrote: >> >>> >>>Hye all, >>> >>>I downloaded vtk4.0 for upgrading my vtkPrograms to new vresion from the >>>site, but found that vtk.vtkPanel didnt exist in that package. so made a >>>separate packeg just for vtkPanel. Now Whenever I call this vtkPanel from >>>that Package It throws me an unsatisfied linker error as below. >>> >>> >>>java.lang.UnsatisfiedLinkError: SetSizeInternal >>> at vtktmp.vtkPanel.SetSizeInternal(Native Method) >>> at vtktmp.vtkPanel.setSize(vtkPanel.java:62) >>> at vtkexample.(vtkexample.java:11) >>> at vtkexample.main(vtkexample.java:26) >>> >>>Following was the place where there was a native call for setting the Size >>>of the vtkPanel >>> private native void RenderCreate(vtkRenderWindow id0); >>> private native void RenderInternal(vtkRenderWindow id0); >>> private native void SetSizeInternal(vtkRenderWindow id0, int x, int y); >>> >>> >>>Thought The vtkPanel class had sucessfully loaded the libraries int the >>>vtkPanel program, >>> System.loadLibrary("vtkCommonJava"); >>> System.loadLibrary("vtkFilteringJava"); >>> System.loadLibrary("vtkIOJava"); >>> System.loadLibrary("vtkImagingJava"); >>> System.loadLibrary("vtkGraphicsJava"); >>> System.loadLibrary("vtkRenderingJava"); >>>the above linker error still existed. >>>Can anybody tell me what other things I need to include other than the >>>vtkLibraries? If I have to build other dependencies where do I get those dll >>>making 'make" files? >>> >>> >>>Anticipating your solution at the earliest, >>>Regards, >>>JASON RODRIGUES >>> >>> >>>"THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE >>>ADDRESSEE and may contain confidential and privileged information. >>>If the reader of this message is not the intended recipient, >>>you are notified that any dissemination, distribution or copy of this >>>communication is strictly Prohibited. >>>If you have received this message by error, please notify us >>>immediately, return the original mail to the sender and delete the >>>message from your system." >>> >>>_______________________________________________ >>>This is the private VTK discussion list. >>>Please keep messages on-topic. Check the FAQ at: >>>Follow this link to subscribe/unsubscribe: >>>http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > >I have done as Jeff suggested, but my Java compiler (Sun JDK v1.4.0 for Win32) won't >recognise unpackaged classes. Although I have put \vtk40\wrapping\java on the >classpath, I get "Cannot resolve symbol" when attempting to instantiate vtkPanel >objects. > >I have used packages for all my code, and if I put vtkPanel into any of my packages (or >into the vtk package), it can be found by the compiler. But then I get the same runtime >problems as Jason had. > >Has anyone else come across this problem? > >Thanks, > > >Phil >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: >Follow this link to subscribe/unsubscribe: >http://public.kitware.com/mailman/listinfo/vtkusers > > -- Jeff Lee Software Engineer jeff at cdnorthamerica.com CD North America 21 Lafayette Street, Suite 230 Lebanon, NH 03766 Tel: (603) 643-9993 ext. 109 Fax: (603) 643-9994 From mnorton at cisco.com Tue Apr 30 16:58:42 2002 From: mnorton at cisco.com (Michael Norton) Date: Tue, 30 Apr 2002 13:58:42 -0700 Subject: [vtkusers] vtk and Mac OS X and Tcl Message-ID: <4.3.2.7.2.20020430135703.00b4b248@mira-sjcm-2.cisco.com> hi, Can I install vtk on Mac OS X platform? What will I need? Can I use ths tcl/tk for aqua? http://prdownloads.sourceforge.net/tcl/MacOSXTk8.4a4-2.tar.gz thanks, Mike N. From hhiraki at lab.nig.ac.jp Tue Apr 30 22:01:55 2002 From: hhiraki at lab.nig.ac.jp (hhiraki at lab.nig.ac.jp) Date: Wed, 01 May 2002 11:01:55 +0900 Subject: [vtkusers] VTK with mosix In-Reply-To: References: Message-ID: <20020501110155S.hhiraki@lab.nig.ac.jp> Hi Olivier, As your message was so encouraging, I tried to run VTK on our MOSIX-1.5.7 (for linux-2.4.17). Without linking to libpthread, VTK seems to work well with mosix. (I changed CMAKE_USE_PTHREADS to OFF and CMAKE_THREAD_LIBS to null string from "-lpthread".) As no benchmark was run, I'm not sure it is useful. But migrating vtk process was very impressive. Thanks Hideaki Hiraki From: "Olivier Cuisenaire" Subject: [vtkusers] VTK with mosix Date: Thu, 25 Apr 2002 16:13:58 +0200 > > Has anybody already used VTK in combination with openmosix ? Right now it > only works for me if I force VTK to restrict itself to a single thread and > forbid mosix from migrating my vtk process. Anybody had more success ? > > Thanks. > > -- > Olivier Cuisenaire > From amati at ira.cnr.it Mon Apr 29 02:43:26 2002 From: amati at ira.cnr.it (Giancarlo Amati) Date: Mon, 29 Apr 2002 08:43:26 +0200 (CEST) Subject: [vtkusers] VtkAxes Color Message-ID: Hello Everybody, Using VtkAxes I can create XYZ Axes where my Y axes is yellow while the others are black. How can I change that colors and assing to every one a different color? Is it possible using vtkAxes? Bye & Thank a lot Giancarlo -- ---------------------------------------- dott. Giancarlo Amati | (amati at ira.cnr.it) | | National Research Council | RadioAstronomical Institute | office phone n. +39 051 6399405 | via Gobetti 101 - Bologna (Italy) | ---------------------------------------- From zxem at my169.com Mon Apr 22 07:05:51 2002 From: zxem at my169.com (zx) Date: Mon, 22 Apr 2002 11:5:51 +0000 Subject: [vtkusers] Choose package? Message-ID: > Hi all, > I'm trying to decide the tool I'm going to use for my dissertation. And > I want to learn people's opinion about OpenDX, VTK, IDL etc. Thanks! X Zhao -------------- next part -------------- An HTML attachment was scrubbed... URL: