From long353 at msn.com Mon Oct 1 01:52:48 2007 From: long353 at msn.com (jim yu) Date: Mon, 1 Oct 2007 17:52:48 +1200 Subject: [vtkusers] question about vtkLookupTable Message-ID: hi, everybody could someone tell me how the vtkLookupTable map a scalar value to a color? i've only seen the SetTableValue method. it seems to set a color value at a index position of the table. but no scalar value is mentioned. thanks a lot jim _________________________________________________________________ Explore the seven wonders of the world http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at vision.ee.ethz.ch Mon Oct 1 03:18:00 2007 From: domi at vision.ee.ethz.ch (Dominik Szczerba) Date: Mon, 01 Oct 2007 09:18:00 +0200 Subject: [vtkusers] Re: Draw and Color Polygons In-Reply-To: <4e9f8dc10709301418n5e67dee6n2606dd6f9adee38b@mail.gmail.com> References: <4e9f8dc10709301317l20268794h7a53271ed012ea36@mail.gmail.com> <4e9f8dc10709301418n5e67dee6n2606dd6f9adee38b@mail.gmail.com> Message-ID: <47009F28.1060802@vision.ee.ethz.ch> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 I would display point ids to find the bad triangle. - -- Dominik Janny Dong wrote: > A little bit update... I just tried out vtkTriangleFilter. It almost worked > except warning messages: > > Warning: In \VTK-503\vtk-5.0.3\Filtering\vtkPolygon.cxx, line 613 > vtkPolygon (01929088): Degenerate polygon encountered during triangulation > > I used vtkCleanPolyData before the filter, but I still got the message. I'm > not sure how to deal with the bad triangles yet... The map I got is > attached. It looks better except the holes within the polygons. > > Could someone share some experience? > > Thanks! > Janny > > > On 9/30/07, Janny Dong wrote: >> Hello, >> >> I have the latitude and longitude data for the lake areas and I put them >> in to a vtk file. There are three polygons. I set scalars and a lookup table >> in the data file to color them with one color-blue, for example. My test >> results are in the attached pictures. If I draw lines, the map looks >> perfect. However, if they are displayed as polygons, I want polygons. Then >> the map doesn't look right, neither does the color. Why do I get black >> areas? How can I draw the polygons properly? >> >> Any thought will be appreciated. >> >> Best, >> Janny >> > > > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers - -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHAJ8o/EBMh9bUuzIRAoOPAJ9gk00OaFD5dn8tikzBnytYO1ppLQCglqC8 /El7oW3GIdnRkX4k//PchV8= =7Ymq -----END PGP SIGNATURE----- From ljw at noc.soton.ac.uk Mon Oct 1 06:59:16 2007 From: ljw at noc.soton.ac.uk (Luke J West) Date: Mon, 1 Oct 2007 11:59:16 +0100 Subject: [vtkusers] question about vtkLookupTable In-Reply-To: References: Message-ID: <1191236356.4700d304d5649@webmail.noc.soton.ac.uk> Hi Jim, lut->SetTableRange(scalar_min,scalar_max); lut->SetHueRange(0,1); // play lut->SetSaturationRange(1,1); // with lut->SetValueRange(1,1); // these and make sure you invoke this on your mapper... Mapper->SetScalarRange(scalar_min,scalar_max); you can also use lut->SetAlphaRange(mn,mx); // for opacity and if you want to edit the table entries, look at SetTableValue(...), but make sure you invoke lut->Build() first if you don't want a SEGV. Luke eValue(lut->GetIndex(1.e8),rgba); Quoting jim yu : > hi, everybody > > could someone tell me how the vtkLookupTable map a scalar value to a color? > > i've only seen the SetTableValue method. it seems to set a color value at a > index position of the table. but no scalar value is mentioned. > > thanks a lot > > jim > _________________________________________________________________ > Explore the seven wonders of the world > http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE ----------------------------------------------------------------------- National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk From dsur182 at gmail.com Mon Oct 1 07:59:39 2007 From: dsur182 at gmail.com (dsur s) Date: Mon, 1 Oct 2007 17:29:39 +0530 Subject: [vtkusers] 3D plot Message-ID: Hi All, I need to plot a 3D graph in the following scenario. 1. I have 3 set of values- depth, pressure and time. 2. For any particular time I have depth V/s Pressure data to plot. 3. I have data for 10 such time values. A surface should be plotted for these values and on this i need to do features like rotate etc. I am new to vtk. It would be great if i can get some pointers as to how to proceed with this. I tried creating a 2D plot (depth V/s Pressure) with vtkXYPlotActor and It worked out fine. Thanks, DS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From godofredoiii at gmail.com Mon Oct 1 08:02:36 2007 From: godofredoiii at gmail.com (Godofredo) Date: Mon, 1 Oct 2007 05:02:36 -0700 (PDT) Subject: [vtkusers] vtkgtkrenderwindowinteractor gtk+ widget error in friend functions In-Reply-To: <12925138.post@talk.nabble.com> References: <12925138.post@talk.nabble.com> Message-ID: <12977931.post@talk.nabble.com> Well, I've done it executing the gtk interface in a thread. But it would be great if I could use vtk in a widget with vtkgtkrenderwindowinteractor. Does anyone have any experience with this class?. Thanks. Godofredo wrote: > > Hi. I'm under linux using kdevelop and I'm trying to use the > vtkgtkrenderwindowinteractor class. I've added the .cxx and .h files to my > project but when I try to compile it reports errors in the friend > functions used in the vtkgtkrenderwindowinteractor.cxx which are declared > as friend functions in the vtkgtkrenderwindowinteractor.h header file. The > compiler says they are not declared in that context. I've got not much > knowledge in c++ (I'm trying to read and learn). Could someone please give > me any advice? many thanks. > > -- View this message in context: http://www.nabble.com/vtkgtkrenderwindowinteractor-gtk%2B-widget-error-in-friend-functions-tf4529518.html#a12977931 Sent from the VTK - Users mailing list archive at Nabble.com. From janny.dong at gmail.com Mon Oct 1 08:06:25 2007 From: janny.dong at gmail.com (Janny Dong) Date: Mon, 1 Oct 2007 08:06:25 -0400 Subject: [vtkusers] Re: Draw and Color Polygons In-Reply-To: <47009F28.1060802@vision.ee.ethz.ch> References: <4e9f8dc10709301317l20268794h7a53271ed012ea36@mail.gmail.com> <4e9f8dc10709301418n5e67dee6n2606dd6f9adee38b@mail.gmail.com> <47009F28.1060802@vision.ee.ethz.ch> Message-ID: <4e9f8dc10710010506m5bed9b83yb04a086919b486a1@mail.gmail.com> Thanks Mike, Eugene and Dominik! I was surprised to get so many replies.:) OK, Mike, if you are interested, the attached is the data file I am using. vtkDelauney2D doesn't work... All I got from the filter is an irregular polygon, not a map. Eugene, is your solution different from claiming there are 3 cells in the data file directly? I have something in my data file like CELL_DATA 3 SCALARS cell_scalars float 1 LOOKUP_TABLE colors 100 100 100 But it doesn't hurt to give it a try. Dominik, yes, it's a good way to check what is wrong. I should figure how to display ids... I'll come back to report updates. Janny -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: greatlakes.vtk Type: application/octet-stream Size: 32393 bytes Desc: not available URL: From zhaojunxp at hotmail.com Mon Oct 1 08:54:22 2007 From: zhaojunxp at hotmail.com (JohnMark) Date: Mon, 1 Oct 2007 20:54:22 +0800 Subject: [vtkusers] HELP : How To build My Own Histogram ? Message-ID: Hello , vtkusers , My friend ask me to help him build a histogram with one DICOM image , so I consult a lot of information of VTK , and I find a class : vtkImageAccumulate at last . however , using this class , I can only get a 1D histogram , or in other words , what I get is just the white " point cloud " . from another example : HistogramWidget.tcl , I find you should use the class vtkTkImageViewerWidget if you want to build a 2D histogram . but I use VC++ , not tcl/tk . So , my question is : Can I build a 2D histogram with VTK and VC++ ? if it is so , how should I do ? thank you with great regards ! Mark _________________________________________________________________ Windows Live Spaces ???????? http://miaomiaogarden2007.spaces.live.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljw at noc.soton.ac.uk Mon Oct 1 09:13:10 2007 From: ljw at noc.soton.ac.uk (Luke J West) Date: Mon, 1 Oct 2007 14:13:10 +0100 Subject: [vtkusers] Mapper/Actor not updating Message-ID: <1191244390.4700f266f2b94@webmail.noc.soton.ac.uk> Hi, when I render an unstructured grid, then change the vtkPoints object it is based on, and re-render... the image is unchanged even though I ->UpdateData() the grid and ->Update() the Mapper. The only way I can get it to work is to destroy the Mapper. Does this suggest anything to anyone? Is there something else I might try updating? Thanks, details follow Luke UnstructuredGrid->SetPoints(Points); DataSetMapper->SetInput(UnstructuredGrid); Actor->SetMapper(Mapper); RenderWindow->Render(); /* change the point positions of the Points object here!! */ Grid->UpdateData(); Mapper->Update(); RenderWindow->Render(); // image is unchanged!! ----------------------------------------------------------------------- National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk From michael.kozel at web.de Mon Oct 1 10:07:19 2007 From: michael.kozel at web.de (Michael Kozel) Date: Mon, 01 Oct 2007 16:07:19 +0200 Subject: [vtkusers] How to get a line on surface Message-ID: <406140604@web.de> Hi everybody, I have a more or less sphere-like surface and want to have a direct link on this surface from a given start- and endpoint on this surface. I hope you understand the problem and may give me some ideas how to show the shortest link on the surface between the to points. Thank you Michael From domi at vision.ee.ethz.ch Mon Oct 1 10:48:42 2007 From: domi at vision.ee.ethz.ch (Dominik Szczerba) Date: Mon, 01 Oct 2007 16:48:42 +0200 Subject: [vtkusers] Re: Draw and Color Polygons In-Reply-To: <4e9f8dc10710010506m5bed9b83yb04a086919b486a1@mail.gmail.com> References: <4e9f8dc10709301317l20268794h7a53271ed012ea36@mail.gmail.com> <4e9f8dc10709301418n5e67dee6n2606dd6f9adee38b@mail.gmail.com> <47009F28.1060802@vision.ee.ethz.ch> <4e9f8dc10710010506m5bed9b83yb04a086919b486a1@mail.gmail.com> Message-ID: <470108CA.9060406@vision.ee.ethz.ch> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Janny Dong wrote: > Thanks Mike, Eugene and Dominik! I was surprised to get so many replies.:) > > OK, Mike, if you are interested, the attached is the data file I am using. > vtkDelauney2D doesn't work... All I got from the filter is an irregular > polygon, not a map. > > Eugene, is your solution different from claiming there are 3 cells in the > data file directly? I have something in my data file like > CELL_DATA 3 > SCALARS cell_scalars float 1 > LOOKUP_TABLE colors > 100 100 100 > > But it doesn't hurt to give it a try. > > Dominik, yes, it's a good way to check what is wrong. I should figure how to > display ids... the easiest is to use the old paraview (2.6.x), there is an option in display tab. - -- Dominik > > I'll come back to report updates. > > Janny > - -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHAQjK/EBMh9bUuzIRAnC5AJ0a6S9fPpfqFeYQ1x0/HEjWU7Y7jgCgxD2D MU1H/+jLX6ZAww/LmLp9i4k= =Hx3W -----END PGP SIGNATURE----- From domi at vision.ee.ethz.ch Mon Oct 1 11:28:22 2007 From: domi at vision.ee.ethz.ch (Dominik Szczerba) Date: Mon, 01 Oct 2007 17:28:22 +0200 Subject: [vtkusers] Boolean Operations on PolyData In-Reply-To: References: Message-ID: <47011216.2090209@vision.ee.ethz.ch> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Search for level set methods and signed distance function - it is certainly beyond the scope of this mailing list. In one word, if your surfaces are "reasonable" you can easily represent it as a signed distance function, which is a scalar field sampled on another often Cartesian volumetric grid. Once you have it, also for the other mesh, you can perform boolean operations on them to get a resulting distance function, like difference between the two would be min(d1,-d2) or so. To compute such distance functions as well as contour them to surface meshes - all the (optimally scaling!) functionality is there in VTK, and that was my point. - -- Dominik Noecker, Angela M. wrote: > I've been struggling with this problem forever. Could you expound on > "compute signed distance function". Your help would be hugely > appreciated. > > Angela > > -----Original Message----- > From: vtkusers-bounces+noeckera=ccf.org at vtk.org > [mailto:vtkusers-bounces+noeckera=ccf.org at vtk.org] On Behalf Of Dominik > Szczerba > Sent: Saturday, September 29, 2007 3:10 AM > Cc: vtkusers at vtk.org > Subject: Re: [vtkusers] Boolean Operations on PolyData > > I think there are none in VTK (correct me). GTS library has them, but > they do not always work right (it's a very difficult task in general). > What you could do in VTK is to compute signed distance function first > and then perform boolean operations on them, and then convert back to > surfaces. > > -- Dominik > > Meisam Aliroteh wrote: >> Hi all, > >> Does anyone know if there are any filters in vtk that can perform >> boolean operation on two polydata objects such as subtraction, > intersection, etc. >> thanks > > > >> ---------------------------------------------------------------------- >> -- > >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to > subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers =================================== Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2007). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. - -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHARIW/EBMh9bUuzIRAsnlAKDCnebj9NIZ+Vz8E7gtrSV7tVfbWwCfcBcs s617rCiWGGpoThKe+Ub5ASk= =vMVA -----END PGP SIGNATURE----- From knowdat at gmail.com Mon Oct 1 12:17:01 2007 From: knowdat at gmail.com (Jon W) Date: Mon, 1 Oct 2007 10:17:01 -0600 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: References: Message-ID: Microsoft compilers prior to Visual Studio 2008 Beta2 installed a platform sdk with the files used by the vtk build: gl.h glaux.h glu.h With the Visual Studio 2008 Beta2 installation the glaux.h file is no longer included which breaks the vtk build with the following error: \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: Cannot open include file: 'GL/glaux.h': No such file or directory Here is the code in vtkWin32OpenGLRenderWindow.cxx: #if defined(_MSC_VER) || defined (__BORLANDC__) # include "vtkWindows.h" # include #else # include "vtkOpenGL.h" #endif Has anybody tried building with the Visual Studio 2008 Beta2 compiler? Are there any plans to work around the missing glaux.h? Thank you, Jon From janny.dong at gmail.com Mon Oct 1 12:24:03 2007 From: janny.dong at gmail.com (Janny Dong) Date: Mon, 1 Oct 2007 12:24:03 -0400 Subject: [vtkusers] Re: Draw and Color Polygons In-Reply-To: <3589e910709301534g23121c52l6a4749cf1f2d9377@mail.gmail.com> References: <4e9f8dc10709301317l20268794h7a53271ed012ea36@mail.gmail.com> <4e9f8dc10709301418n5e67dee6n2606dd6f9adee38b@mail.gmail.com> <3589e910709301421j1690e4fk967d9b9d44303d32@mail.gmail.com> <3589e910709301534g23121c52l6a4749cf1f2d9377@mail.gmail.com> Message-ID: <4e9f8dc10710010924i6b0c1af0m2e9f182c7c1fa621@mail.gmail.com> Hi Eugene, To use your method, do I have to separate the points for the three polygons to three groups and input points to vtkPoints and vtkCellArray instead of reading them from the file? Is the first part of your code (reading data from file) related to the second part (the part worked fine for you)? I have trouble constructing 3 cells after reading in all the points... I can add all the data to vtkPoints with //Read the vtk data file. vtkPolyDataReader *usa = vtkPolyDataReader::New(); usa->SetFileName("greatlakes.vtk"); for (int i = 0; i < usa->GetOutput()->GetNumberOfPoints(); i++) points->InsertNextPoint(usa->GetOutput()->GetPoint(i)); But I can not insert part of the points to another instance of vtkPoints like: for (i = 0,i<882; i++) points2->InsertNextPoint(usa->GetOutput()->GetPoint(i)); Any thoughts? Thanks Janny On 9/30/07, Eugene Dorfman wrote: > > Ok, I would do it simpler for the first approximation (for 1 polygon): > > vtkPolyDataMapper *map = vtkPolyDataMapper::New(); > vtkPolyDataReader *reader = ... New(); > /*Read your data*/ > vtkPolyData *data = reader->GetOutput(); > map->SetInput(data); > /*add a mapper to renderer and render*/ > > > Then. What worked fine for me was: > > vtkPoints* points = ...::New(); > vtkCellArray* cellArray = ...::New(); > > vtkIdList *idList = new vtkIdList::New(); > vtkPoints* points1 = ...::New(); > > points->GetPoints(idList,points1); > cellArray->InsertNextCell(points->GetNumberOfPoints()); //inserting a > cell for 1 polygon > for (int i=0;iGetNumberOfPoints();i++) > cellArray->InsertCellPoint(idList[i]); > > //now we have constructed 1 cell > vtkPolyData *polyData = ...::New(); > polyData->SetPoints(points); > polyData->SetPolys(cellArray); > vtkPolyDataMapper * map = ...::New(); > map->SetInput(polyData); > > //then render > > so we constructed single cell of a shape of your polygon - should work. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shekhar.Chandra at sci.monash.edu.au Mon Oct 1 22:04:25 2007 From: Shekhar.Chandra at sci.monash.edu.au (Shekhar Chandra) Date: Tue, 02 Oct 2007 12:04:25 +1000 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: References: Message-ID: <4701A729.1050508@sci.monash.edu.au> Hi Jon, I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the earlier Platform SDK do though. You can replicate the same error by using VC 2005 Express with Vista SDK. Vista SDK Update supports all Windows and is most likely whats installed with VS 2008? Which one do you have installed? Not sure what part of VTK uses GLAUX, apparently this is no longer supported by almost everyone and GLUT should be used instead. I'm not an expert in this. Is there a way of using GLUT instead in VTK or by using Defines? As this will cause issues with Vista and future Windows builds. Cheers Shakes Jon W wrote: > Microsoft compilers prior to Visual Studio 2008 Beta2 installed a > platform sdk with the files used by the vtk build: > gl.h > glaux.h > glu.h > > With the Visual Studio 2008 Beta2 installation the glaux.h file is no > longer included which breaks the vtk build with the following error: > > \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: > Cannot open include file: 'GL/glaux.h': No such file or directory > > Here is the code in vtkWin32OpenGLRenderWindow.cxx: > #if defined(_MSC_VER) || defined (__BORLANDC__) > # include "vtkWindows.h" > # include > #else > # include "vtkOpenGL.h" > #endif > > Has anybody tried building with the Visual Studio 2008 Beta2 compiler? > Are there any plans to work around the missing glaux.h? > > Thank you, > Jon > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- A non-text attachment was scrubbed... Name: Shekhar.Chandra.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From francois.bertel at kitware.com Mon Oct 1 23:22:18 2007 From: francois.bertel at kitware.com (Francois Bertel) Date: Tue, 2 Oct 2007 03:22:18 +0000 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: <4701A729.1050508@sci.monash.edu.au> References: <4701A729.1050508@sci.monash.edu.au> Message-ID: Hi, It sounds totally legacy code to me. There is definitively no code depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself has a statement for windows. By the way, you did not tell which version of VTK you are using. On your local copy of the source tree, in vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just keep # include "vtkOpenGL.h": Before: #if defined(_MSC_VER) || defined (__BORLANDC__) # include "vtkWindows.h" # include #else # include "vtkOpenGL.h" #endif After: # include "vtkOpenGL.h" Let me know if it works for you. I'll try tomorrow on some Windows machine (XP SP2+VS7). If it works, I will commit the change and check for any other Windows version/compiler version combination on the dashboard (notably VS6 and Borland). Once it is done, we will probably patch VTK-5.0 branch too. Regards. On 10/2/07, Shekhar Chandra wrote: > Hi Jon, > > I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the > earlier Platform SDK do though. You can replicate the same error by > using VC 2005 Express with Vista SDK. Vista SDK Update supports all > Windows and is most likely whats installed with VS 2008? > > Which one do you have installed? Not sure what part of VTK uses GLAUX, > apparently this is no longer supported by almost everyone and GLUT > should be used instead. I'm not an expert in this. Is there a way of > using GLUT instead in VTK or by using Defines? As this will cause issues > with Vista and future Windows builds. > > Cheers > Shakes > > Jon W wrote: > > Microsoft compilers prior to Visual Studio 2008 Beta2 installed a > > platform sdk with the files used by the vtk build: > > gl.h > > glaux.h > > glu.h > > > > With the Visual Studio 2008 Beta2 installation the glaux.h file is no > > longer included which breaks the vtk build with the following error: > > > > \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: > > Cannot open include file: 'GL/glaux.h': No such file or directory > > > > Here is the code in vtkWin32OpenGLRenderWindow.cxx: > > #if defined(_MSC_VER) || defined (__BORLANDC__) > > # include "vtkWindows.h" > > # include > > #else > > # include "vtkOpenGL.h" > > #endif > > > > Has anybody tried building with the Visual Studio 2008 Beta2 compiler? > > Are there any plans to work around the missing glaux.h? > > > > Thank you, > > Jon > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > > -- Fran?ois Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA From Shekhar.Chandra at sci.monash.edu.au Mon Oct 1 23:55:17 2007 From: Shekhar.Chandra at sci.monash.edu.au (Shekhar Chandra) Date: Tue, 02 Oct 2007 13:55:17 +1000 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: References: <4701A729.1050508@sci.monash.edu.au> Message-ID: <4701C125.2060601@sci.monash.edu.au> Hi Guys, I used VTK 5.0.3 on Vista Ultimate x64 using VC++ 2005 Express SP1. I have tried both the Vista SDK 6.0 and Vista SDK Feb Update with the same results. I had to build it on this system by using the Platform SDK R2 in 32-bit. I will try out this change to see if it succeeds using Vista SDK. Cheers Shakes Francois Bertel wrote: > Hi, > > It sounds totally legacy code to me. There is definitively no code > depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself > has a statement for windows. By the way, you did not tell which > version of VTK you are using. > > On your local copy of the source tree, in > vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just > keep # include "vtkOpenGL.h": > > Before: > > #if defined(_MSC_VER) || defined (__BORLANDC__) > # include "vtkWindows.h" > # include > #else > # include "vtkOpenGL.h" > #endif > > After: > > # include "vtkOpenGL.h" > > Let me know if it works for you. I'll try tomorrow on some Windows > machine (XP SP2+VS7). If it works, I will commit the change and check > for any other Windows version/compiler version combination on the > dashboard (notably VS6 and Borland). Once it is done, we will probably > patch VTK-5.0 branch too. > > Regards. > > On 10/2/07, Shekhar Chandra wrote: >> Hi Jon, >> >> I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the >> earlier Platform SDK do though. You can replicate the same error by >> using VC 2005 Express with Vista SDK. Vista SDK Update supports all >> Windows and is most likely whats installed with VS 2008? >> >> Which one do you have installed? Not sure what part of VTK uses GLAUX, >> apparently this is no longer supported by almost everyone and GLUT >> should be used instead. I'm not an expert in this. Is there a way of >> using GLUT instead in VTK or by using Defines? As this will cause issues >> with Vista and future Windows builds. >> >> Cheers >> Shakes >> >> Jon W wrote: >>> Microsoft compilers prior to Visual Studio 2008 Beta2 installed a >>> platform sdk with the files used by the vtk build: >>> gl.h >>> glaux.h >>> glu.h >>> >>> With the Visual Studio 2008 Beta2 installation the glaux.h file is no >>> longer included which breaks the vtk build with the following error: >>> >>> \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: >>> Cannot open include file: 'GL/glaux.h': No such file or directory >>> >>> Here is the code in vtkWin32OpenGLRenderWindow.cxx: >>> #if defined(_MSC_VER) || defined (__BORLANDC__) >>> # include "vtkWindows.h" >>> # include >>> #else >>> # include "vtkOpenGL.h" >>> #endif >>> >>> Has anybody tried building with the Visual Studio 2008 Beta2 compiler? >>> Are there any plans to work around the missing glaux.h? >>> >>> Thank you, >>> Jon >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> >> > > -------------- next part -------------- A non-text attachment was scrubbed... Name: Shekhar.Chandra.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From raashid.b at rediffmail.com Tue Oct 2 00:14:41 2007 From: raashid.b at rediffmail.com (Raashid Baig) Date: 2 Oct 2007 04:14:41 -0000 Subject: [vtkusers] Re: How to get a line on surface Message-ID: <20071002041441.28934.qmail@f5mail15.rediffmail.com> >>I have a more or less sphere-like surface and want to have a direct >>link on this surface from a given start- and endpoint on this surface. If your surface is generated from vtkSphereSource, you can find the points of sphere using: cs = vtk.vtkSphereSource() cs.Update() ps = cs.GetOutput() points = ps.GetPoints() Then you can write a simple function which will calculate the distance between your point and points on the sphere. You can now identify the point nearest to your given point. Once you have the 2 points you can draw a line between them. If you yourself have created the surface you can always do the same logic easily. >>I hope you understand the problem and may give me some ideas how to >>show the shortest link on the surface between the to points. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davemania24 at yahoo.com Tue Oct 2 03:33:33 2007 From: davemania24 at yahoo.com (Dave C) Date: Tue, 2 Oct 2007 00:33:33 -0700 (PDT) Subject: [vtkusers] Java Binding in VTK Message-ID: <569649.54882.qm@web57107.mail.re3.yahoo.com> Hi I am currently looking for a visualisation toolkit for java. I was wondering what people's experience with VTK and java is ? I haven't been able to find alot of tutorial on the web for VTK and java, does anyone know a good tutorial that explains how to compile a Java binding package ? or where I can download the latest Package ? Thanks, Dave ____________________________________________________________________________________ Tonight's top picks. What will you watch tonight? Preview the hottest shows on Yahoo! TV. http://tv.yahoo.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From al_didier at yahoo.fr Tue Oct 2 03:47:16 2007 From: al_didier at yahoo.fr (annelaure) Date: Tue, 2 Oct 2007 00:47:16 -0700 (PDT) Subject: [vtkusers] logical operations between binary images Message-ID: <12994379.post@talk.nabble.com> Hi, I'd like to obtain an image (.raw) which is the substraction of 2 others binary images. For example : Final_Image=Binary_Initial_Image - Binary_Image2 thus, I will be able to have the lungs segmentation. Is it possible to do this sort of things with vtk or itk? Thank you so much, Best regards, Anne-Laure -- View this message in context: http://www.nabble.com/logical-operations-between-binary-images-tf4553493.html#a12994379 Sent from the VTK - Users mailing list archive at Nabble.com. From ljw at noc.soton.ac.uk Tue Oct 2 04:45:38 2007 From: ljw at noc.soton.ac.uk (Luke J West) Date: Tue, 2 Oct 2007 09:45:38 +0100 Subject: [vtkusers] Mapper/Actor not updating In-Reply-To: <00f001c8045a$1ef46500$0100a8c0@pacsys4> References: <00f001c8045a$1ef46500$0100a8c0@pacsys4> Message-ID: <1191314738.470205321a5a4@webmail.noc.soton.ac.uk> Quoting Eugene Dorfman : > Use mapper->ImmediateModeRenderingOn(); should work fine. Indeed it did. Thanks! > Hi, > > when I render an unstructured grid, then change the vtkPoints object it > is based > on, and re-render... the image is unchanged even though I ->UpdateData() > the > grid and ->Update() the Mapper. The only way I can get it to work is to > destroy > the Mapper. Does this suggest anything to anyone? Is there something > else I > might try updating? > > Thanks, details follow > > Luke > > > UnstructuredGrid->SetPoints(Points); > > DataSetMapper->SetInput(UnstructuredGrid); > > Actor->SetMapper(Mapper); > > RenderWindow->Render(); > > /* > change the point positions of the Points object here!! > */ > > Grid->UpdateData(); > Mapper->Update(); > > RenderWindow->Render(); // image is unchanged!! ----------------------------------------------------------------------- National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk From ilpaso at inwind.it Tue Oct 2 05:04:42 2007 From: ilpaso at inwind.it (Davide Pasini) Date: Tue, 2 Oct 2007 02:04:42 -0700 (PDT) Subject: [vtkusers] help compile with autoconf In-Reply-To: <12988287.post@talk.nabble.com> References: <12988287.post@talk.nabble.com> Message-ID: <12995314.post@talk.nabble.com> this is the fastest solution: (I'm working in Ubuntu and vtk libraries are installed in /usr/lib and my IDE is Anjuta2.2.1) add in configure.ac: dnl ################## VTK_PREFIX="/usr" dnl these are the VTK libraries of a default build VTK_LIBS="-lvtkCommon -lvtkDICOMParser -lvtkexpat -lvtkFiltering -lvtkfreetype -lvtkftgl -lvtkGraphics -lvtkHybrid -lvtkImaging -lvtkIO -lvtkjpeg -lvtkpng -lvtkRendering -lvtktiff -lvtkzlib -lvtkWidgets" dnl set VTK c,cpp,ld flags VTK_CFLAGS="-I$VTK_PREFIX/include/vtk-5.0" VTK_CXXFLAGS="$VTK_CFLAGS" VTK_LDFLAGS="-L$VTK_PREFIX/lib $VTK_LIBS" CFLAGS="$VTK_CFLAGS $CFLAGS" CXXFLAGS="$VTK_CXXFLAGS $CXXFLAGS" LDFLAGS="$VTK_LDFLAGS $LDFLAGS" dnl ################## and modify VTK_PREFIX="/usr" , VTK_CFLAGS="-I$VTK_PREFIX/include/vtk-5.0" and VTK_LDFLAGS="-L$VTK_PREFIX/lib $VTK_LIBS" with your vtk library path bye Davide Pasini wrote: > > hi all > I'd like compile my c++ vtk programs with autoconf becouse my IDE use it. > > CMake is very simple but autoconf is used a lot under linux. > > I can't understand how to use the macro linked here: > http://www.vtk.org/Wiki/VTK_Autoconf > or if is there a simpler way in autoconf > > Thanks > -- View this message in context: http://www.nabble.com/help-compile-with-autoconf-tf4551239.html#a12995314 Sent from the VTK - Users mailing list archive at Nabble.com. From c.p.botha at tudelft.nl Tue Oct 2 05:07:54 2007 From: c.p.botha at tudelft.nl (Charl Botha) Date: Tue, 2 Oct 2007 11:07:54 +0200 Subject: [vtkusers] logical operations between binary images In-Reply-To: <12994379.post@talk.nabble.com> References: <12994379.post@talk.nabble.com> Message-ID: <31ddba770710020207h470fa4f8ucab482a3feeea0a@mail.gmail.com> On 10/2/07, annelaure wrote: > I'd like to obtain an image (.raw) which is the substraction of 2 others > binary images. For example : > Final_Image=Binary_Initial_Image - Binary_Image2 > thus, I will be able to have the lungs segmentation. Is it possible to do > this sort of things with vtk or itk? In VTK, you can try vtkImageMask or perhaps vtkImageMathematics. From jcplatt at dsl.pipex.com Tue Oct 2 05:22:54 2007 From: jcplatt at dsl.pipex.com (John Platt) Date: Tue, 2 Oct 2007 10:22:54 +0100 Subject: [vtkusers] Qt4 QMdiArea::addSubWindow() deletes VTK render window Message-ID: <002601c804d5$d06cde40$0100a8c0@pacsys4> Hi all, When I add a child window derived from QVTKWidget to a QMdiArea, QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); the VTK render window created in the mdiChild constructor MdiChild::MdiChild() { setAttribute(Qt::WA_DeleteOnClose); isUntitled = true; // QT/VTK interact ren = vtkRenderer::New(); this->GetRenderWindow()->AddRenderer( ren ); } is deleted when addSubWindow() returns. Calling GetRenderWindow() again appears to fix the problem. I was wondering if anybody else using QMdiArea has had the same problem ( Qt 4.3.1 open source edition, VTK 5.1, VS6, Win XP ). TIA John. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xabivtk at gmail.com Tue Oct 2 05:26:13 2007 From: xabivtk at gmail.com (xabi riobe) Date: Tue, 2 Oct 2007 11:26:13 +0200 Subject: [vtkusers] memory leak when failing to write with vtkPNGWriter Message-ID: Hi, There are some memory leaks if a vtkPNGWriter fails to write a file if we are out of disk space. Here comes a diff patch to avoid this: @@ -198,6 +198,8 @@ this->TempFP = 0; + png_byte **row_pointers; + if (this->WriteToMemory) { vtkUnsignedCharArray *uc = this->GetResult(); @@ -227,6 +229,9 @@ if (setjmp(png_ptr->jmpbuf)) { fclose(this->TempFP); + if(row_pointers) + delete [] row_pointers; + png_destroy_write_struct(&png_ptr, &info_ptr); this->SetErrorCode(vtkErrorCode::OutOfDiskSpaceError); return; } @@ -272,7 +277,7 @@ png_set_swap(png_ptr); #endif } - png_byte **row_pointers = new png_byte *[height]; + row_pointers = new png_byte *[height]; vtkIdType *outInc = data->GetIncrements(); vtkIdType rowInc = outInc[1]*bit_depth/8; for (ui = 0; ui < height; ui++) I reported it in the bug tracker (number 5815) HTH xabi. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Knopke at gmx.de Tue Oct 2 06:31:33 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Tue, 2 Oct 2007 12:31:33 +0200 Subject: [vtkusers] WG: vtkimagewriter Message-ID: <000001c804df$683522b0$4378a8c0@imagesystems.local> Hi Anne-Laure, Sorry to answer so late, maybe you have solved your problem already. I'm a bit confused of what you are trying to do. You write that you want to visualize image_bin (which should be a volume) and in the other mail you wrote that vtkImageWriter fails. So that are two different things. I'd suggest trying to visualize either the volume (vtkFixedPointVolumeRenderer) or a slice (vtkImageReslice) first, to see if your thresholding worked. After that write it to disk, using vtkImageWriter. Or did I miss the point? Michael Original message: Hi, So, Sorry, I wasn't very precise. I send the code : imge3Dvtk=vtkImageReader() imge3Dvtk.SetFileDimensionality(3) imge3Dvtk.SetFileName("myscan.raw") imge3Dvtk.SetNumberOfScalarComponents(1) #scala de grises imge3Dvtk.SetDataScalarTypeToShort() # 2 bytes por boxel imge3Dvtk.SetDataExtent(0,511, 0, 511, 0, 62) imge3Dvtk.GetDataExtent() ExportToArray = vtkImageExportToArray() ExportToArray.SetInput(imge3Dvtk.GetOutput ()) imagen = ExportToArray.GetArray() # 1) Use a threshold to segment the background imagen_bin =(imagen<-200) And there, I'd like to visualize imagen_bin. I suppose that it's not too difficult but I didn't know the vtkImagewriter syntax. thank you very much, Anne-Laure Michael Knopke wrote: > > > > > > _____ > > Von: knopkem.iis > Gesendet: Friday, September 28, 2007 11:33 AM > An: 'vtkusers at vtk.org ' > Betreff: [vtkusers] vtkimagewriter > > > > Hi, > > > > can you provide more information about "mysegmentedimage"? What class, how > did you create it, could you visualize it. > Seems like the error could be rather found there not with vtkImageWriter. > > Regards, > > Michael > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- View this message in context: http://www.nabble.com/WG%3A-vtkimagewriter-tf4533377.html#a12938750 Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ljw at noc.soton.ac.uk Tue Oct 2 08:49:43 2007 From: ljw at noc.soton.ac.uk (Luke J West) Date: Tue, 2 Oct 2007 13:49:43 +0100 Subject: [vtkusers] Texture an Actor with an Image Message-ID: <1191329383.47023e67e0de3@webmail.noc.soton.ac.uk> Hi, I have successfully textured an actor using a vtkTriangularTexture, but of course I want to texture it with an image. I was hoping to find something like a vtkImageTexture, but it doesn't exist. What class do I need? Thanks, Luke ----------------------------------------------------------------------- National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk From Michael.Knopke at gmx.de Tue Oct 2 12:10:32 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Tue, 2 Oct 2007 18:10:32 +0200 Subject: WG: [vtkusers] vtkTransform and SetMatrix... Message-ID: <000001c8050e$c25376f0$4378a8c0@imagesystems.local> Hi, I just tried explicitly setting a 4x4Matrix for an vtkTransform-object, which has NO effect at all. Can anybody explain why this is? SampleCode: // create vtkTransform vtkTransform *myTransform = vtkTransform::New(); // rotate it a bit myTransform->RotateX(90); //create matrix vtkMatrix4x4 = inputMatrix = vtkMatrix4x4::New(); inputMatrix->SetElement(0,0,1); inputMatrix->SetElement(0,1,0); inputMatrix->SetElement(0,2,0); inputMatrix->SetElement(0,3,0); inputMatrix->SetElement(1,0,0); inputMatrix->SetElement(1,1,1); inputMatrix->SetElement(1,2,0); inputMatrix->SetElement(1,3,0); inputMatrix->SetElement(2,0,0); inputMatrix->SetElement(2,1,0); inputMatrix->SetElement(2,2,1); inputMatrix->SetElement(2,3,0); inputMatrix->SetElement(3,0,0); inputMatrix->SetElement(3,1,0); inputMatrix->SetElement(3,2,0); inputMatrix->SetElement(3,3,1); inputMatrix->Update(); myTransform->SetMatrix(inputMatrix); myTransform->Update(); // now feeding it to ImageReslice. . imageReslice->SetResliceTransform(myTransform); . Yields always the same rotated image, independent what elements I use?! How come? Thanks for some suggestions. Btw: Am I right to think that the elements of a 4x4 matrix are directly correlated to direction cosines? (so first column = x, second = y, third = z, where the last element of each col always belongs to homogeneous cords,)? Michael PS: I know that I can set the direction cosines in imageReslice directly, that works, but I need it this way. -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Tue Oct 2 12:59:37 2007 From: clinton at elemtech.com (clinton at elemtech.com) Date: Tue, 2 Oct 2007 10:59:37 -0600 Subject: [vtkusers] Re: Qt4 QMdiArea::addSubWindow() deletes VTK render window In-Reply-To: <20071002160101.68C841F141E@public.kitware.com> References: <20071002160101.68C841F141E@public.kitware.com> Message-ID: <200710021059.37569.clinton@elemtech.com> > When I add a child window derived from QVTKWidget to a QMdiArea, > QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); > the VTK render window created in the mdiChild constructor > > MdiChild::MdiChild() > { > setAttribute(Qt::WA_DeleteOnClose); Shouldn't you be setting that delete on close attribute on the QMdiSubWindow instead? > isUntitled = true; > > // QT/VTK interact > ren = vtkRenderer::New(); > this->GetRenderWindow()->AddRenderer( ren ); > } > > is deleted when addSubWindow() returns. The only way the render window gets deleted is if you call SetRenderWindow(NULL) is called or if you delete the QVTKWidget. In other words, the lifetime of the vtkRenderWindow is tied to the lifetime of the QVTKWidget, unless you disconnect it, or hold references elsewhere. > Calling GetRenderWindow() again appears to fix the problem. > I was wondering if anybody else using QMdiArea has had the same problem > ( Qt 4.3.1 open source edition, VTK 5.1, VS6, Win XP ). I just threw together a quick mdi app trying to mirror what you were doing, and didn't see any problems. If your problem still persists, can you send me an example? Clint From mroberts at andrew.cmu.edu Tue Oct 2 13:06:30 2007 From: mroberts at andrew.cmu.edu (Mark E Roberts) Date: Tue, 2 Oct 2007 13:06:30 -0400 (EDT) Subject: [vtkusers] logical operations between binary images In-Reply-To: <12994379.post@talk.nabble.com> References: <12994379.post@talk.nabble.com> Message-ID: <2615.128.2.57.108.1191344790.squirrel@128.2.57.108> Anne-Laure, I've found success using vtkImageMathematics for my own applications. I'm not completely sure what your final product should look like, but this might help. full = vtkImageMathematics::New(); full->SetInput1(slice[i]->GetOutput()); full->SetInput2(final[i]->GetOutput()); full->SetOperationToMax(); full->Update(); Some tips on using it: SetInput2 is the base image. So if you are adding one image to another, you are adding image 1 to image 2. Not adding image 1 and image 2 together. It's a slight difference, but when the operation compares two values, that's how the algorithm works. For your application, you probably don't want to use SetOperationToMax, but something along the lines of subtraction. Check out the documentation at vtk.org for a list of all the operations. Finally, after some image mathematics, the file is in the format of image mathematics, not the original file. So you are going to have to recast the image back into the file format that you want. Hope that points you in the right direction. Mark Roberts > > Hi, I'd like to obtain an image (.raw) which is the substraction of 2 > others binary images. For example : Final_Image=Binary_Initial_Image - > Binary_Image2 thus, I will be able to have the lungs segmentation. Is it > possible to do this sort of things with vtk or itk? Thank you so much, Best > regards, Anne-Laure -- View this message in context: > http://www.nabble.com/logical-operations-between-binary-images-tf4553493. > html#a12994379 Sent from the VTK - Users mailing list archive at > Nabble.com. > > > -- Mark Roberts Masters of Science, Project Student CER Lab Carnegie Mellon University 301-806-6529 MRoberts at andrew.cmu.edu MeerkyJ at gmail.com From tavares at fe.up.pt Tue Oct 2 14:39:26 2007 From: tavares at fe.up.pt (=?iso-8859-1?Q?Jo=E3o_Manuel_R._S._Tavares?=) Date: Tue, 2 Oct 2007 19:39:26 +0100 Subject: [vtkusers] WCCM8 & ECCOMAS 2008 - Mini-Symposium on Computational Bioimaging and Visualization - Announce & Call for Contributions Message-ID: <062001c80523$9245eeb0$b6d1cc10$@up.pt> (Apologies for cross-posting.) ___________________________________________________________________ Mini-Symposium on Computational Bioimaging and Visualization Within the WCCM8 & ECCOMAS 2008 International Conference (http://www.iacm-eccomascongress2008.org) Venice, Italy, 30 June ? 5 July 2008 ___________________________________________________________________ Dear Colleague, The use of computational procedures based on medical images to model and visualize represented objects requires a high level of research investment, due mainly to the strong demands of clinical partners. These procedures can have different goals, such as shape reconstruction and visualization, segmentation, motion and deformation analyses, registration, simulation, etc. The main goal of this Mini-symposium is to promote the debate between researchers involved in the related fields (Bio-medical Image Acquisition, Analysis and Processing; Multi-scale Shape and Motion Reconstruction; Multi-scale Modeling and Analysis; Scientific Visualization, Bio-medical Software Libraries, Environments; etc.), in order to set the major lines of developments for the near future. Mini-symposium Organizers: Jo?o Manuel R.S. Tavares (tavares at fe.up.pt, FEUP, Porto Portugal) Renato Natal Jorge (rnatal at fe.up.pt, FEUP, Porto, Portugal) Thomas J.R. Hughes (tjr_hughes at hotmail.com, ICES, University of Texas at Austin, USA) Chandrajit Bajaj (bajaj at cs.utexas.edu, ICES, University of Texas at Austin, USA) IMPORTANT DATES Deadline for presenting a one page abstract: December 15th., 2007 Acceptance of the contributions: January 31th., 2008 Deadline for submitting the final abstract: February 28th., 2008 From gok at aerometric-ak.com Tue Oct 2 16:07:11 2007 From: gok at aerometric-ak.com (Gennady Khokhorin) Date: Tue, 2 Oct 2007 12:07:11 -0800 Subject: [vtkusers] How to find rendered Cells and their colors, vtkMFC sample crashes Message-ID: <3054411AF4728548AD6D7137190D56B302B57C5D@admin1.aeromap.com> Theo, I got the same crashes in vtkMFC samples. Did remove ParaView and everything working fine now. Check which dll's are "visible" to your vtkMfc.dll. It could help in your case. Happy programming! gok _____ From: vtkusers-bounces+gok=aeromap.com at vtk.org [mailto:vtkusers-bounces+gok=aeromap.com at vtk.org] On Behalf Of Lim, Theodore Sent: Monday, March 12, 2007 5:10 AM To: David E DeMarle Cc: vtkusers at vtk.org Subject: RE: [vtkusers] How to find rendered Cells and their colors Hi David, Thanks for the lead. I've updated to the latest CVS as this function was not in vtk v5.0.2. However, i've not been able to try it out as i'm still struggling to find/fix the problem of vtkMFC examples with the latest CVS build. The MFC examples crashes in the vtkmfcwindow.cpp function SetRenderWindow(). // update size CRect cRect = CRect(0,0,1,1); if (this->GetParent()) // Crash here! I've already posted to the forum and hope to get a reply on how to fix it. Would appreciate your input if you can spare a moment. Many thanks, Theo. _____ From: David E DeMarle [mailto:dave.demarle at kitware.com] Sent: Wed 07/03/2007 17:31 To: Lim, Theodore Cc: vtkusers at vtk.org Subject: Re: [vtkusers] How to find rendered Cells and their colors Try vtkVisibleCellSelector. It can give you the cellIds of all of the visible cells. It causes the renderer to enter a special mode in which each cell gets its own color, renders, readsback the pixel buffer, and spits out a list of the cells that were visible. On 3/7/07, Lim, Theodore wrote: Hello everybody. Is there a way to query the renderer for the cells and its associated colors being rendered? I would like to extract the cell IDs and its color that is visible at any given camera orientation and position. It's something like asking the graphics board which pixels (and color) is being displayed. I'm not sure if this can be done via the vtk classes available. Would appreciate if anyone can point me in the right direction. Thanks in advance, Theo. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcplatt at dsl.pipex.com Tue Oct 2 17:28:56 2007 From: jcplatt at dsl.pipex.com (John Platt) Date: Tue, 2 Oct 2007 22:28:56 +0100 Subject: [vtkusers] RE: Qt4 QMdiArea::addSubWindow() deletes VTK render window In-Reply-To: <200710021059.37569.clinton@elemtech.com> Message-ID: <006b01c8053b$416a3d30$0100a8c0@pacsys4> Hi Clint, Many thanks for taking the time to investigate. I basically took the example C:\Qt\4.3.1\examples\mainwindows\mdi and changed MdiChild to C:\VTK\VTK_5_Source\Examples\GUI\Qt\SimpleView. Looking more closely, SimpleView is a main window. Anyway you are spot on! Removing WA_DeleteOnClose in the MdiChild constructor solves the problem. QMdiSubWindow::addSubWindow()sets this attribute on the QMdiSubWindow as you suggest. I presume this is inherited by all the children. I wondered if you could suggest where the best place is to set the default size of the QMdiSubWindow. At present I do QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); mdiSubWindow->resize(560, 398); but when I cascade the mdi-subwindows, they all end up (0,0). Thanks again for you help. John. -----Original Message----- From: clinton at elemtech.com [mailto:clinton at elemtech.com] Sent: 02 October 2007 18:00 To: jcplatt at dsl.pipex.com Cc: vtkusers at vtk.org Subject: Re: Qt4 QMdiArea::addSubWindow() deletes VTK render window > When I add a child window derived from QVTKWidget to a QMdiArea, > QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); > the VTK render window created in the mdiChild constructor > > MdiChild::MdiChild() > { > setAttribute(Qt::WA_DeleteOnClose); Shouldn't you be setting that delete on close attribute on the QMdiSubWindow instead? > isUntitled = true; > > // QT/VTK interact > ren = vtkRenderer::New(); > this->GetRenderWindow()->AddRenderer( ren ); > } > > is deleted when addSubWindow() returns. The only way the render window gets deleted is if you call SetRenderWindow(NULL) is called or if you delete the QVTKWidget. In other words, the lifetime of the vtkRenderWindow is tied to the lifetime of the QVTKWidget, unless you disconnect it, or hold references elsewhere. > Calling GetRenderWindow() again appears to fix the problem. > I was wondering if anybody else using QMdiArea has had the same problem > ( Qt 4.3.1 open source edition, VTK 5.1, VS6, Win XP ). I just threw together a quick mdi app trying to mirror what you were doing, and didn't see any problems. If your problem still persists, can you send me an example? Clint From clinton at elemtech.com Tue Oct 2 17:40:43 2007 From: clinton at elemtech.com (clinton at elemtech.com) Date: Tue, 2 Oct 2007 15:40:43 -0600 Subject: [vtkusers] Re: Qt4 QMdiArea::addSubWindow() deletes VTK render window In-Reply-To: <006b01c8053b$416a3d30$0100a8c0@pacsys4> References: <006b01c8053b$416a3d30$0100a8c0@pacsys4> Message-ID: <200710021540.43392.clinton@elemtech.com> You probably want to implement sizeHint() on your subclass of QVTKWidget to give the QMdiSubWindow's layout a preferred size. Or call setMinimumSize() or whatever depending on what size policy you want to use. The qt-interest mailing list can help you better with how to do widget sizing. Clint On Tuesday 02 October 2007 3:28:56 pm John Platt wrote: > Hi Clint, > > Many thanks for taking the time to investigate. > > I basically took the example C:\Qt\4.3.1\examples\mainwindows\mdi and > changed MdiChild to C:\VTK\VTK_5_Source\Examples\GUI\Qt\SimpleView. > Looking more closely, SimpleView is a main window. > > Anyway you are spot on! Removing WA_DeleteOnClose in the MdiChild > constructor solves the problem. QMdiSubWindow::addSubWindow()sets this > attribute on the QMdiSubWindow as you suggest. I presume this is > inherited by all the children. > > I wondered if you could suggest where the best place is to set the > default size of the QMdiSubWindow. At present I do > > QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); > mdiSubWindow->resize(560, 398); > > but when I cascade the mdi-subwindows, they all end up (0,0). > > Thanks again for you help. > > John. > > > -----Original Message----- > From: clinton at elemtech.com [mailto:clinton at elemtech.com] > Sent: 02 October 2007 18:00 > To: jcplatt at dsl.pipex.com > Cc: vtkusers at vtk.org > Subject: Re: Qt4 QMdiArea::addSubWindow() deletes VTK render window > > > When I add a child window derived from QVTKWidget to a QMdiArea, > > QMdiSubWindow* mdiSubWindow = mdiArea->addSubWindow( mdiChild ); > > the VTK render window created in the mdiChild constructor > > > > MdiChild::MdiChild() > > { > > setAttribute(Qt::WA_DeleteOnClose); > > Shouldn't you be setting that delete on close attribute on the > QMdiSubWindow > instead? > > > isUntitled = true; > > > > // QT/VTK interact > > ren = vtkRenderer::New(); > > this->GetRenderWindow()->AddRenderer( ren ); > > } > > > > is deleted when addSubWindow() returns. > > The only way the render window gets deleted is if you call > SetRenderWindow(NULL) is called or if you delete the QVTKWidget. In > other > words, the lifetime of the vtkRenderWindow is tied to the lifetime of > the > QVTKWidget, unless you disconnect it, or hold references elsewhere. > > > Calling GetRenderWindow() again appears to fix the problem. > > I was wondering if anybody else using QMdiArea has had the same > > problem > > > ( Qt 4.3.1 open source edition, VTK 5.1, VS6, Win XP ). > > I just threw together a quick mdi app trying to mirror what you were > doing, > and didn't see any problems. If your problem still persists, can you > send me > an example? > > Clint From long353 at msn.com Tue Oct 2 19:28:45 2007 From: long353 at msn.com (jim yu) Date: Wed, 3 Oct 2007 11:28:45 +1200 Subject: [vtkusers] about camera and light Message-ID: hi, guys I am going to use vtkCamera and vtkLight. could somebody tell me how to set the parameter for vtkCamera and vtkLight properly?? thanks a lot! jim _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From long353 at msn.com Tue Oct 2 23:36:52 2007 From: long353 at msn.com (jim yu) Date: Wed, 3 Oct 2007 15:36:52 +1200 Subject: [vtkusers] why does Scale method of vtkTransform have no effect? Message-ID: hi, everyone here is the code, but the Scale doesn't have effect, why? vtkTransform* tf = vtkTransform::New(); tf->Scale(5, 5, 5); tf->RotateX(-45); tf->RotateZ(45); actor->SetUserTransform(tf); outlineactor->SetUserTransform(tf); thanks a lot! jim _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.amaclean at gmail.com Tue Oct 2 23:44:09 2007 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Wed, 3 Oct 2007 13:44:09 +1000 Subject: [vtkusers] why does Scale method of vtkTransform have no effect? In-Reply-To: References: Message-ID: It looks like you have scaled everything equally. When you render the initial view will be set to show all the actors. S you will not see the effect. Try something like tf->Scale(5, 1, 0.5); On 10/3/07, jim yu wrote: > hi, everyone > > here is the code, but the Scale doesn't have effect, why? > > vtkTransform* tf = vtkTransform::New(); > tf->Scale(5, 5, 5); > tf->RotateX(-45); > tf->RotateZ(45); > actor->SetUserTransform(tf); > outlineactor->SetUserTransform(tf); > > thanks a lot! > > jim > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. > Check it out! > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- ___________________________________________ Andrew J. P. Maclean Centre for Autonomous Systems The Rose Street Building J04 The University of Sydney 2006 NSW AUSTRALIA Ph: +61 2 9351 3283 Fax: +61 2 9351 7474 URL: http://www.acfr.usyd.edu.au/ ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsur182 at gmail.com Wed Oct 3 00:44:20 2007 From: dsur182 at gmail.com (dsur s) Date: Wed, 3 Oct 2007 10:14:20 +0530 Subject: [vtkusers] Re: 3D plot In-Reply-To: References: Message-ID: > > Hi All, > > I need to plot a 3D graph in the following scenario. > > > 1. I have 3 set of values- depth, pressure and time. > 2. For any particular time I have depth V/s Pressure data to plot. > 3. I have data for 10 such time values. > > A surface should be plotted for these values and on this i need to do > features like rotate etc. > > I am new to vtk. It would be great if i can get some pointers as to how to > proceed with this. > > I tried creating a 2D plot (depth V/s Pressure) with vtkXYPlotActor and It > worked out fine. > > Thanks, > > DS. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dsur182 at gmail.com Wed Oct 3 01:48:43 2007 From: dsur182 at gmail.com (dsur s) Date: Wed, 3 Oct 2007 11:18:43 +0530 Subject: [vtkusers] A 3D plot Message-ID: Hi All, I need to plot a 3D graph in the following scenario. 1. I have 3 set of values- depth, pressure and time. 2. For any particular time I have depth V/s Pressure data to plot. 3. I have data for 10 such time values. A surface should be plotted for these values and on this i need to do features like rotate etc. I am new to vtk. It would be great if i can get some pointers as to how to proceed with this. I tried creating a 2D plot (depth V/s Pressure) with vtkXYPlotActor and It worked out fine. Thanks, DS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc.meidinger at pps-ag.ch Wed Oct 3 03:36:10 2007 From: marc.meidinger at pps-ag.ch (Marc Meidinger) Date: Wed, 3 Oct 2007 09:36:10 +0200 Subject: [vtkusers] Jar File doesn't show render window Message-ID: <000001c80590$11b84e60$200aa8c0@WS3> Good Morning vtk users! I'm a VTK beginner. I just have installed vtk and wrote my first application in Java on Eclipse (on WinXP). I display the render window in a JPanel which is added to a JFrame. When compiling everything works fine till I try to create & run the JAR File -> After I doubleclick the JAR File, nothing happens. (But when I remove the Panel with the vtk render window the empty Frame appears, correctly.) What am I doing wrong, why doesnt my JAR File show me the render window? I would be glad about some quick help. Thanks. Sincerely, Marc Meidinger Here is the main method which creates the JFrame and the JPanel class which displays the vtk Modell (from Spectrogramm) // the main function public static void main (String[] args) { SpecPanel oPanel = new SpecPanel(); JFrame frame = new JFrame("3D Spectrogramm"); frame.getContentPane().setLayout(new GridLayout(1,1)); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); } package HelloVtkMain; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.*; import vtk.*; public class SpecPanel extends JPanel { Spectrogramm spec = new Spectrogramm( 100, 100, 100 ); // creates a VTK modell public SpecPanel() { //Set Panel Layout setLayout(new BorderLayout()); //Get the Canvas vtkCanvas oCanvas = spec.getSpectrogrammCanvas(); //Set Camera on Canvas oCanvas.GetRenderer().ResetCamera(); //Size the Canvas oCanvas.setSize(1000, 1000); //Add Canvas to Panel this.add(oCanvas, BorderLayout.CENTER); } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From mattiespost at hotmail.com Wed Oct 3 05:28:25 2007 From: mattiespost at hotmail.com (Mattie Posth) Date: Wed, 3 Oct 2007 02:28:25 -0700 Subject: [vtkusers] Overlaying a grid on a 2D Actor Message-ID: Hi, I have a 2D actor and I would like to overlay a rectangular grid with coordinates marked on it so that users can see (for example) that one feature of the actor is at point 3,2 and another at 5,7. Is there a class available that would help me here?Thanks, _________________________________________________________________ Climb to the top of the charts!? Play Star Shuffle:? the word scramble challenge with star power. http://club.live.com/star_shuffle.aspx?icid=starshuffle_wlmailtextlink_oct -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc.meidinger at pps-ag.ch Wed Oct 3 05:33:56 2007 From: marc.meidinger at pps-ag.ch (Marc Meidinger) Date: Wed, 3 Oct 2007 11:33:56 +0200 Subject: [vtkusers] Jar File doesn't show render window Message-ID: <001101c805a0$85160c20$200aa8c0@WS3> ***Update*** I missed to copy the lower part of main function into to the error description. It's corrected in the following code. But the problem still isn't solved. ************** Good Morning vtk users! I'm a VTK beginner. I just have installed vtk and wrote my first application in Java on Eclipse (on WinXP). I display the render window in a JPanel which is added to a JFrame. When compiling everything works fine till I try to create & run the JAR File -> After I doubleclick the JAR File, nothing happens. (But when I remove the Panel with the vtk render window the empty Frame appears, correctly.) What am I doing wrong, why doesnt my JAR File show me the render window? I would be glad about some quick help. Thanks. Sincerely, Marc Meidinger Here is the main method which creates the JFrame and the JPanel class which displays the vtk Modell (from Spectrogramm) // the main function public static void main (String[] args) { SpecPanel oPanel = new SpecPanel(); JFrame frame = new JFrame("3D Spectrogramm"); frame.getContentPane().setLayout(new GridLayout(1,1)); frame.addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) {System.exit(0);} }); frame.getContentPane().add("Center", oPanel); frame.pack(); frame.setBounds(100, 100, 1000, 1000); frame.setVisible(true); } package HelloVtkMain; import java.awt.BorderLayout; import java.awt.GridLayout; import java.awt.event.WindowAdapter; import java.awt.event.WindowEvent; import javax.swing.*; import vtk.*; public class SpecPanel extends JPanel { Spectrogramm spec = new Spectrogramm( 100, 100, 100 ); // creates a VTK modell public SpecPanel() { //Set Panel Layout setLayout(new BorderLayout()); //Get the Canvas vtkCanvas oCanvas = spec.getSpectrogrammCanvas(); //Set Camera on Canvas oCanvas.GetRenderer().ResetCamera(); //Size the Canvas oCanvas.setSize(1000, 1000); //Add Canvas to Panel this.add(oCanvas, BorderLayout.CENTER); } } -------------- next part -------------- An HTML attachment was scrubbed... URL: From dvucinic at vub.ac.be Wed Oct 3 05:57:40 2007 From: dvucinic at vub.ac.be (Dean Vucinic) Date: Wed, 3 Oct 2007 11:57:40 +0200 Subject: [vtkusers] Dean Vucinic PhD Thesis available for download Message-ID: <002201c805a3$d94fc170$5934b886@vub.ac.be> Dear all, I am very happy to inform you that I have successfully defended my PhD Thesis on September 5, 2007, with the greatest distinction mark. My thesis is available for download at the following link, and please be free to send this link to any person who might be interested in the software development of visualization systems in general and more specifically for interactive engineering applications applied to fluid flow analysis: Click here to download Dean-Vucinic_PhD-Thesis_final.pdf (28 MB). With my best regards, Dean. Vrije Universiteit Brussel (VUB) - Faculty of Engineering Sciences Dr. Dean Vucinic Senior Research Scientist, Dipl.Ing, M.Sc, Ph.D. Dept. Mechanical Engineering MECH Fluid Mechanics &Thermodynamics Research Group Pleinlaan 2 B-1050 Brussel dean.vucinic at vub.ac.be http://mech.vub.ac.be/thermodynamics/members/Dean%20Vucinic.htm tel: fax: mobile: +32 2 629 23 78 +32 2 629 28 80 +32 496 96 43 28 Want to always have my latest info? Want a signature like this? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 2117 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/gif Size: 345 bytes Desc: not available URL: From omp at ua.pt Wed Oct 3 09:46:58 2007 From: omp at ua.pt (=?iso-8859-1?Q?=D3scar_Pereira?=) Date: Wed, 3 Oct 2007 14:46:58 +0100 Subject: [vtkusers] vtk controls for NetBeans 5.x Message-ID: <000501c805c3$e27d6750$a77835f0$@pt> Hi, Are there any vtk controls to be used in NetBeans 5.x? Regards, ________________________________________ Oscar Pereira ________________________________________ IEETA - Universidade de Aveiro 3810-193 Aveiro, Portugal Tel. (+351) 234 370 500, ext: 24129 ________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From francois.bertel at kitware.com Wed Oct 3 13:02:05 2007 From: francois.bertel at kitware.com (Francois Bertel) Date: Wed, 03 Oct 2007 13:02:05 -0400 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: References: <4701A729.1050508@sci.monash.edu.au> Message-ID: <4703CB0D.6000200@kitware.com> Jon and Shekhar, I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations. Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)? Francois Bertel wrote: > Hi, > > It sounds totally legacy code to me. There is definitively no code > depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself > has a statement for windows. By the way, you did not tell which > version of VTK you are using. > > On your local copy of the source tree, in > vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just > keep # include "vtkOpenGL.h": > > Before: > > #if defined(_MSC_VER) || defined (__BORLANDC__) > # include "vtkWindows.h" > # include > #else > # include "vtkOpenGL.h" > #endif > > After: > > # include "vtkOpenGL.h" > > Let me know if it works for you. I'll try tomorrow on some Windows > machine (XP SP2+VS7). If it works, I will commit the change and check > for any other Windows version/compiler version combination on the > dashboard (notably VS6 and Borland). Once it is done, we will probably > patch VTK-5.0 branch too. > > Regards. > > On 10/2/07, Shekhar Chandra wrote: >> Hi Jon, >> >> I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the >> earlier Platform SDK do though. You can replicate the same error by >> using VC 2005 Express with Vista SDK. Vista SDK Update supports all >> Windows and is most likely whats installed with VS 2008? >> >> Which one do you have installed? Not sure what part of VTK uses GLAUX, >> apparently this is no longer supported by almost everyone and GLUT >> should be used instead. I'm not an expert in this. Is there a way of >> using GLUT instead in VTK or by using Defines? As this will cause issues >> with Vista and future Windows builds. >> >> Cheers >> Shakes >> >> Jon W wrote: >>> Microsoft compilers prior to Visual Studio 2008 Beta2 installed a >>> platform sdk with the files used by the vtk build: >>> gl.h >>> glaux.h >>> glu.h >>> >>> With the Visual Studio 2008 Beta2 installation the glaux.h file is no >>> longer included which breaks the vtk build with the following error: >>> >>> \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: >>> Cannot open include file: 'GL/glaux.h': No such file or directory >>> >>> Here is the code in vtkWin32OpenGLRenderWindow.cxx: >>> #if defined(_MSC_VER) || defined (__BORLANDC__) >>> # include "vtkWindows.h" >>> # include >>> #else >>> # include "vtkOpenGL.h" >>> #endif >>> >>> Has anybody tried building with the Visual Studio 2008 Beta2 compiler? >>> Are there any plans to work around the missing glaux.h? >>> >>> Thank you, >>> Jon >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> >> > > -- Fran?ois Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA From knowdat at gmail.com Wed Oct 3 13:20:31 2007 From: knowdat at gmail.com (Jon W) Date: Wed, 3 Oct 2007 11:20:31 -0600 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: <4703CB0D.6000200@kitware.com> References: <4701A729.1050508@sci.monash.edu.au> <4703CB0D.6000200@kitware.com> Message-ID: Francois, Thank you for committing the fix for 5.x. Do you know what changes may work best for vtk 4.2.6? There isn't a vtkOpenGL.h or vtkWindows.h in the 4.2.6 source base, and the code in vtkWin32OpenGLRenderWindow.cxx looks like: #if defined(_MSC_VER) || defined (__BORLANDC__) #include #else #include #endif If this is too much of a pain to look at 4.2.6, then I can look into upgrading to 5.x. -Jon On 10/3/07, Francois Bertel wrote: > Jon and Shekhar, > > I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations. > > Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)? > > > Francois Bertel wrote: > > Hi, > > > > It sounds totally legacy code to me. There is definitively no code > > depending on glaux in VTK. In addition, Rendering/vtkOpenGL.h itself > > has a statement for windows. By the way, you did not tell which > > version of VTK you are using. > > > > On your local copy of the source tree, in > > vtkWin32OpenGLRenderWindow.cxx, remove all the following lines, just > > keep # include "vtkOpenGL.h": > > > > Before: > > > > #if defined(_MSC_VER) || defined (__BORLANDC__) > > # include "vtkWindows.h" > > # include > > #else > > # include "vtkOpenGL.h" > > #endif > > > > After: > > > > # include "vtkOpenGL.h" > > > > Let me know if it works for you. I'll try tomorrow on some Windows > > machine (XP SP2+VS7). If it works, I will commit the change and check > > for any other Windows version/compiler version combination on the > > dashboard (notably VS6 and Borland). Once it is done, we will probably > > patch VTK-5.0 branch too. > > > > Regards. > > > > On 10/2/07, Shekhar Chandra wrote: > >> Hi Jon, > >> > >> I believe the Vista SDK (v6.0) no longer supports the GLAUX library, the > >> earlier Platform SDK do though. You can replicate the same error by > >> using VC 2005 Express with Vista SDK. Vista SDK Update supports all > >> Windows and is most likely whats installed with VS 2008? > >> > >> Which one do you have installed? Not sure what part of VTK uses GLAUX, > >> apparently this is no longer supported by almost everyone and GLUT > >> should be used instead. I'm not an expert in this. Is there a way of > >> using GLUT instead in VTK or by using Defines? As this will cause issues > >> with Vista and future Windows builds. > >> > >> Cheers > >> Shakes > >> > >> Jon W wrote: > >>> Microsoft compilers prior to Visual Studio 2008 Beta2 installed a > >>> platform sdk with the files used by the vtk build: > >>> gl.h > >>> glaux.h > >>> glu.h > >>> > >>> With the Visual Studio 2008 Beta2 installation the glaux.h file is no > >>> longer included which breaks the vtk build with the following error: > >>> > >>> \vtk\Rendering\vtkWin32OpenGLRenderWindow.cxx(34) : fatal error C1083: > >>> Cannot open include file: 'GL/glaux.h': No such file or directory > >>> > >>> Here is the code in vtkWin32OpenGLRenderWindow.cxx: > >>> #if defined(_MSC_VER) || defined (__BORLANDC__) > >>> # include "vtkWindows.h" > >>> # include > >>> #else > >>> # include "vtkOpenGL.h" > >>> #endif > >>> > >>> Has anybody tried building with the Visual Studio 2008 Beta2 compiler? > >>> Are there any plans to work around the missing glaux.h? > >>> > >>> Thank you, > >>> Jon > >>> _______________________________________________ > >>> This is the private VTK discussion list. > >>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >>> Follow this link to subscribe/unsubscribe: > >>> http://www.vtk.org/mailman/listinfo/vtkusers > >> > >> _______________________________________________ > >> This is the private VTK discussion list. > >> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >> Follow this link to subscribe/unsubscribe: > >> http://www.vtk.org/mailman/listinfo/vtkusers > >> > >> > >> > > > > > > > -- > Fran?ois Bertel, PhD | Kitware Inc. Suite 204 > 1 (518) 371 3971 x113 | 28 Corporate Drive > | Clifton Park NY 12065, USA > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From m26404030 at john.petra.ac.id Wed Oct 3 13:53:39 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Thu, 04 Oct 2007 00:53:39 +0700 Subject: [vtkusers]singular value decomposition(SVD) Message-ID: <1191434019.4703d723a68ef@mail.petra.ac.id> hi all, there is a vtk class that perform SVD of a matrix?? if someone have ever tried to do SVD(in C++), please give me the example code or tutorial to do that.. thanx a lot.. From david.gobbi at gmail.com Wed Oct 3 14:43:26 2007 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 3 Oct 2007 14:43:26 -0400 Subject: [vtkusers]singular value decomposition(SVD) In-Reply-To: <1191434019.4703d723a68ef@mail.petra.ac.id> References: <1191434019.4703d723a68ef@mail.petra.ac.id> Message-ID: <48a17b780710031143g1cb9e518t9e8d228e7470c9ee@mail.gmail.com> In vtkMath there is a function for doing SVD on a 3x3 matrix, but VTK has no general-purpose SVD function that works with other matrix sizes. David On 10/3/07, m26404030 at john.petra.ac.id wrote: > > > hi all, there is a vtk class that perform SVD of a matrix?? > > if someone have ever tried to do SVD(in C++), please give me the example code or > tutorial to do that.. > > thanx a lot.. > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From iryna at andrew.cmu.edu Wed Oct 3 15:45:19 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Wed, 3 Oct 2007 15:45:19 -0400 (EDT) Subject: [vtkusers] how to see visualize/view asc. file / xyz. with VTK piperline? Message-ID: <4259.128.237.224.231.1191440719.squirrel@128.237.224.231> Dear all, While using following pipelines for for visualization asc. file (also xyz.) my cod was running almost all day until i saw the image (asc. file has 27Mb) in Visualization Window: 1) vtkPoints -- vtkPolyData -- vtkSurfaceReconstructionFilter -- vtkContourFilter -- vtkPolyDataNormals -- vtkPolyDataMapper -- vtkActor -- ... 2) vtkPoints -- vtkPolyData -- vtkDelaunay3D -- vtkDataSetMapper -- vtkDataSetMapper -- vtkActor -- ... Can you help me please to find another way for solving this problem, Maybe it is problem in file format, should I convert it? Anyway, will be happy any answer, Iryna From lioraharoni at yahoo.com Wed Oct 3 18:23:19 2007 From: lioraharoni at yahoo.com (Lior A) Date: Wed, 3 Oct 2007 15:23:19 -0700 (PDT) Subject: [vtkusers] Fw: sweep on surface - (man walking sweep) Message-ID: <252575.69329.qm@web51909.mail.re2.yahoo.com> Hello, I'm new to VTK. I came across it trying to solve a problem in a faster way then I can using solidworks api. could you tell me if VTK libraries can solve it, and if so, what libraries in general should i use and in what manner? The problem is as follow: I want to create a sweep or extrusion of a closed profile, through a curve that lies on a specified surface, in a way that the profile will always be perpendicular to the surface. The effect i'm trying to get can be illustrated by a man walking on the surface, and holding the profile in his hands lifted up. The man is always perpendicular to the surface, and the extrusion of the profile created by his progress is what im looking for. I added several pictures to make things clear. Any help, or hint will be appreciated. thanks, Lior. ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: 2.jpg Type: image/pjpeg Size: 25011 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3.jpg Type: image/pjpeg Size: 26893 bytes Desc: not available URL: From Shekhar.Chandra at sci.monash.edu.au Wed Oct 3 21:09:23 2007 From: Shekhar.Chandra at sci.monash.edu.au (shekharc) Date: Thu, 04 Oct 2007 11:09:23 +1000 Subject: [vtkusers] visual studio 2008 and v6.0a sdk missing glaux.h In-Reply-To: <4703CB0D.6000200@kitware.com> References: <4701A729.1050508@sci.monash.edu.au> <4703CB0D.6000200@kitware.com> Message-ID: <47043D43.1060500@sci.monash.edu.au> Hi Francois, I have tried Vista SDK Feb Update with VC++ 2005 Express with the requested changes and it works fine. Thanks and Cheers Shekhar Francois Bertel wrote: > Jon and Shekhar, > > I applied the changes on VTK CVS yesterday. Both continuous and nightly dashboards look OK on different windows/compiler combinations. > > Did any of you try the change with this Vista SDK (either by using the current VKS CVS or by manually removing the wrong lines in vtkWin32OpenGLRenderWindow.cxx in VTK5.0)? > > From ljw at noc.soton.ac.uk Thu Oct 4 03:39:53 2007 From: ljw at noc.soton.ac.uk (Luke J West) Date: Thu, 4 Oct 2007 08:39:53 +0100 Subject: [vtkusers] vtkUnstructuredGrid coloring by PointData Message-ID: <1191483593.470498c96b41a@webmail.noc.soton.ac.uk> Hi, I have a vtkUnstructuredGrid that contains a number of named PointData fields but no matter what I try, it always comes out a uniform colour. How do I select the pointdata field to display, please? I'm using Grid->SelectColorArray("Temperature") and Mapper->SetScalarRange(...) Maybe someone has a snippet I can crib? Thanks, Luke ----------------------------------------------------------------------- National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk From domi at vision.ee.ethz.ch Thu Oct 4 04:35:49 2007 From: domi at vision.ee.ethz.ch (Dominik Szczerba) Date: Thu, 04 Oct 2007 10:35:49 +0200 Subject: [vtkusers] vtkUnstructuredGrid coloring by PointData In-Reply-To: <1191483593.470498c96b41a@webmail.noc.soton.ac.uk> References: <1191483593.470498c96b41a@webmail.noc.soton.ac.uk> Message-ID: <4704A5E5.9010103@vision.ee.ethz.ch> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 You have to use something like dataset->GetPointData()->SetActiveScalars(scalarName.c_str()); mapper->SetScalarVisibility(1); mapper->SetScalarModeToUseCellFieldData(); - -- Dominik Luke J West wrote: > Hi, > > I have a vtkUnstructuredGrid that contains a number of named PointData fields > > but no matter what I try, it always comes out a uniform colour. > > How do I select the pointdata field to display, please? > > I'm using Grid->SelectColorArray("Temperature") and Mapper->SetScalarRange(...) > > Maybe someone has a snippet I can crib? > > Thanks, > > Luke > > ----------------------------------------------------------------------- > National Oceanography Centre, Southampton :: http://www.noc.soton.ac.uk > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers - -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHBKXk/EBMh9bUuzIRApB/AJ9Mi3tJ/USRm79XjXn97V8OdxczowCfRl1E xHim+G4F65LVEZNNcVGgp5A= =JjMU -----END PGP SIGNATURE----- From michael.kozel at web.de Thu Oct 4 06:31:22 2007 From: michael.kozel at web.de (Michael Kozel) Date: Thu, 04 Oct 2007 12:31:22 +0200 Subject: [vtkusers] How to draw a line between 2 points on surface Message-ID: <409933684@web.de> Hi, I want to draw a line between 2 Points on a surface. In the attached file Headwith2Points.jpg you see the problem. I want to draw a line between the 2 given points on the surface of the headbone. The source of the head is filtered like this in C++ with VTK5.0: QString fileName = QString("kindPraeBone.vtk"); vtkPolyDataReader *reader = vtkPolyDataReader::New(); reader->SetFileName(fileName.toLatin1()); vtkPolyData* Input = vtkPolyData::New(); Input = reader->GetOutput(); vtkTriangleFilter* triangleGenerator = vtkTriangleFilter::New(); triangleGenerator->SetInput(Input); vtkCleanPolyData* cleaner = vtkCleanPolyData::New(); cleaner->SetInput(triangleGenerator->GetOutput()); vtkPolyDataNormals* dataNormals = vtkPolyDataNormals::New(); dataNormals->SetInput(cleaner->GetOutput()); dataNormals->FlipNormalsOff(); dataNormals->SplittingOff(); dataNormals->ComputePointNormalsOn(); dataNormals->Update(); Output = dataNormals->GetOutput(); vtkPolyDataMapper* dataMapper =vtkPolyDataMapper::New(); dataMapper->SetInput(Output); vtkActor *dataActor = vtkActor::New(); dataActor->SetMapper(dataMapper); ... The 2 Points are given by double[3] WorldCoords. With a vtkPointLocater there is the chance to get the nearest Points. How can I draw the line on the surface. Thanks for any idea! Michael -------------- next part -------------- A non-text attachment was scrubbed... Name: Headwith2Points.jpg Type: image/jpeg Size: 22011 bytes Desc: not available URL: From dean.inglis at camris.ca Thu Oct 4 10:32:27 2007 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Thu, 4 Oct 2007 10:32:27 -0400 Subject: [vtkusers] vtkContourWidget Initialize Message-ID: <5ocj02$31fcea@toip40-bus.srvr.bell.ca> there does not appear to be a method to reset vtkContourWidget to its initial undefined state. I had been using a modified local version so that I could do this: widget->Initialize(NULL); which would clear out the representation and leave the widget in define state: void vtkContourWidget::Initialize( vtkPolyData * pd, int state ) { if (this->WidgetRep) { vtkContourRepresentation *rep = reinterpret_cast(this->WidgetRep); if ( pd == NULL ) { while( rep->DeleteLastNode() ); rep->ClosedLoopOff(); this->WidgetState = vtkContourWidget::Define; rep->BuildRepresentation(); return; } rep->Initialize( pd ); this->WidgetState = (rep->GetClosedLoop() || state == 1 ) ? vtkContourWidget::Manipulate : vtkContourWidget::Define; } } but this is not working as expected. Any suggestions? regards, Dean From dariodisk at gmail.com Thu Oct 4 22:05:37 2007 From: dariodisk at gmail.com (=?ISO-8859-1?Q?D=E1rio_Oliveira?=) Date: Thu, 4 Oct 2007 23:05:37 -0300 Subject: [vtkusers] Geometric and ImageData in 2D Message-ID: Hi friends, It is possible to display geometric and image data together in 2D slices? I want to show a 2D slice of a CT exam, and put over it, with determinate color and opacity, the result of my segmentation process. Is that possible? To mix vtkImageData and vtkPolyData in the same vtkImageViewer, and to see the slices containg both the information? If positive, could anyone send me some tip? Thanks!! -- D?rio Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From Shekhar.Chandra at sci.monash.edu.au Thu Oct 4 22:50:55 2007 From: Shekhar.Chandra at sci.monash.edu.au (Shekhar Chandra) Date: Fri, 05 Oct 2007 12:50:55 +1000 Subject: [vtkusers] Geometric and ImageData in 2D In-Reply-To: References: Message-ID: <4705A68F.30503@sci.monash.edu.au> Hi D?rio, I think this example does it Its in Python, but just change the syntax to whatever u use. I only know about it cause I was looking at it yesterday! "This example shows how to combine data from both the imaging and graphics pipelines. The vtkMergeFilter is used to merge the data from each together." Not sure if its exactly what u want, hope it is though. Cheers Shekhar D?rio Oliveira wrote: > Hi friends, > > It is possible to display geometric and image data together in 2D > slices? I want to show a 2D slice of a CT exam, and put over it, with > determinate color and opacity, the result of my segmentation process. Is > that possible? To mix vtkImageData and vtkPolyData in the same > vtkImageViewer, and to see the slices containg both the information? > > If positive, could anyone send me some tip? > > Thanks!! > -- > D?rio Oliveira > > > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- A non-text attachment was scrubbed... Name: Shekhar.Chandra.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From long353 at msn.com Fri Oct 5 02:31:51 2007 From: long353 at msn.com (jim yu) Date: Fri, 5 Oct 2007 18:31:51 +1200 Subject: [vtkusers] how to display every point of a point cloud as a small sphere? Message-ID: hi, guys I am displaying a point cloud. it is too small to be seen clearly. I want to display every point of the point cloud as a sphere. how to implement it? thanks advance. jim _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From long353 at msn.com Fri Oct 5 02:43:41 2007 From: long353 at msn.com (jim yu) Date: Fri, 5 Oct 2007 18:43:41 +1200 Subject: [vtkusers] about vtkOutlineSource Message-ID: Hi, guys I've created a wireframe outline using vtkOutlineSource. I want to display the the edge of the outline which is behind the screen in dotted line to make it look like 3 dimension. how do i implement it ? thanks a lot jim _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: From sandra.moritz at gmx.de Fri Oct 5 04:16:08 2007 From: sandra.moritz at gmx.de (samo) Date: Fri, 5 Oct 2007 01:16:08 -0700 (PDT) Subject: [vtkusers] vtkBMPWriter Message-ID: <13055318.post@talk.nabble.com> Hello people I need your help regarding vtkBMPWriter. I would like to save a stack of Images (CT-Data) as BMP-files. What I get is a stack of BMP-files with nothing in it. Does anybody know what I am doing wrong? Please help, I couldn't find any answer in the books or in the documentation. Here is my code: vtkImageData* blendedVolume = vtkImageData::New(); ... ... ... vtkBMPWriter* bmpWriter = vtkBMPWriter::New(); bmpWriter->SetFilePrefix("filename"); bmpWriter->SetFilePattern("%s%d.bmp"); bmpWriter->SetInput(blendedVolume); bmpWriter->SetFileDimensionality(2); bmpWriter->Update(); bmpWriter->Write(); -- View this message in context: http://www.nabble.com/vtkBMPWriter-tf4573766.html#a13055318 Sent from the VTK - Users mailing list archive at Nabble.com. From matthias.baitsch at ruhr-uni-bochum.de Fri Oct 5 04:35:17 2007 From: matthias.baitsch at ruhr-uni-bochum.de (Matthias Baitsch) Date: Fri, 5 Oct 2007 10:35:17 +0200 Subject: [vtkusers] VTK and SWT Message-ID: Hi, I am planning to implement an SWT widget for VTK. Unfortunately, I am not experienced in programming GTK/MFC/Carbon. Is there somebody who already worked on coupling SWT and VTK and is willing to share knowledge or code? Remarks: - Using the SWT_AWT bridge involves various threading issues and therefore is not an option - In 2005 there was an SWT-VTK related thread on the VTK mailing list - SWT is the Java GUI toolkit used by eclipse -- see http:// www.eclipse.org/swt Thanks, Matthias -- Dr.-Ing. Matthias Baitsch Ruhr-Universit?t Bochum Fakult?t f?r Bauingenieurwesen Geb?ude IA 6/144 D-44780 Bochum Tel. : +49-(0)234-32-26175 Fax : +49-(0)234-32-06175 Email : matthias.baitsch at ruhr-uni-bochum.de From godofredoiii at gmail.com Fri Oct 5 06:01:05 2007 From: godofredoiii at gmail.com (Godofredo) Date: Fri, 5 Oct 2007 03:01:05 -0700 (PDT) Subject: [vtkusers] Rotate an image+setting extent Message-ID: <13056345.post@talk.nabble.com> Hi. I'm trying to do a simple rotation on a image with vtkImageReslice filter. What I'm not able to figure out is how to set output extent so that it fits with the rotated image. Now I have a rotated image but it extent is parallel to the global axis son there are regions in the corners with white backgroun on them. As the Reslice SetOutputExtent method only accepts 6 values as inpunt, is it posible to have a rotated extent for an image? that is, an extent not paralel to the global axis. Hope I've explained myself. Many thanks in advance. -- View this message in context: http://www.nabble.com/Rotate-an-image%2Bsetting-extent-tf4574145.html#a13056345 Sent from the VTK - Users mailing list archive at Nabble.com. From dariodisk at gmail.com Fri Oct 5 09:52:55 2007 From: dariodisk at gmail.com (=?ISO-8859-1?Q?D=E1rio_Oliveira?=) Date: Fri, 5 Oct 2007 10:52:55 -0300 Subject: [vtkusers] Geometric and ImageData in 2D In-Reply-To: <4705A68F.30503@sci.monash.edu.au> References: <4705A68F.30503@sci.monash.edu.au> Message-ID: Hi Shekhar and all, The example you gave me mix geometric and image data (as far as I understood it actually creates some geometric data from the imageData given, and then merge this two geometric data), but it just works in 3D viewing. I am trying to visualize vtkImageData, mixed with vtkPolyData ( or an other geometric data ) together, slice by slice. I don't think it is impossible, once the position, origin, and other important stuff for the positioning of the geometric data, are present on the imageData structure, but until now I havent succeeded. Any ideas? Thanks! D?rio. 2007/10/4, Shekhar Chandra : > > Hi D?rio, > > I think this example does it > < > http://public.kitware.com/cgi-bin/viewcvs.cgi/*checkout*/Examples/VisualizationAlgorithms/Python/imageWarp.py?root=VTK&content-type=text/plain > > > Its in Python, but just change the syntax to whatever u use. > > I only know about it cause I was looking at it yesterday! > "This example shows how to combine data from both the imaging and > graphics pipelines. The vtkMergeFilter is used to merge the data from > each together." > Not sure if its exactly what u want, hope it is though. > > Cheers > Shekhar > > D?rio Oliveira wrote: > > Hi friends, > > > > It is possible to display geometric and image data together in 2D > > slices? I want to show a 2D slice of a CT exam, and put over it, with > > determinate color and opacity, the result of my segmentation process. Is > > that possible? To mix vtkImageData and vtkPolyData in the same > > vtkImageViewer, and to see the slices containg both the information? > > > > If positive, could anyone send me some tip? > > > > Thanks!! > > -- > > D?rio Oliveira > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > -- D?rio Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From D_E at ukr.net Fri Oct 5 10:19:56 2007 From: D_E at ukr.net (XViz) Date: Fri, 5 Oct 2007 16:19:56 +0200 Subject: [vtkusers] vtkBorlandRenderWindow doesn't remove previous picture. Message-ID: Dear VTK users/creators, I try to plot 2D iso-conturing images. I'm using TurboC and vtkBorlandRenderWindow. Picture is looking excelent, by if I change any parameters (level in vtkContourFilter) and run the plotting procedure again I see both previous image and a new one. So I just cannot delete previously plotted picture! If I use standart vtkRenderWindow everything is fine, but I need a window on my Form! Could someone advise me how to deal with it? Here is my code: vtkContourFilter *iso = vtkContourFilter::New(); iso->SetInput(PlImag); iso->GenerateValues(10, LowLevel, HighLevel); iso->UpdateWholeExtent(); vtkPolyDataMapper *map = vtkPolyDataMapper::New(); map->SetInput(iso->GetOutput()); map->SetScalarRange(LowLevel,HighLevel); map->UpdateWholeExtent(); vtkActor *aActor = vtkActor::New(); aActor->SetMapper(map); //--------- Form1->vtkBorlandRenderWindow1->GetRenderer()->AddActor2D(aActor); Form1->vtkBorlandRenderWindow1->GetRenderer()->ResetCamera(); Form1->vtkBorlandRenderWindow1->Invalidate(); //--------- flipX->Delete(); logScale->Delete(); iso->Delete(); map->Delete(); aActor->Delete(); Everything is working fine if I insert instead 3 strings with Form1->vtkBorlandRenderWindow1 usual visualization teqnique: vtkRenderer *aRenderer = vtkRenderer::New(); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer(aRenderer); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); aRenderer->AddActor(aActor); aRenderer->ResetCamera (); aRenderer->SetBackground(1,1,1); renWin->SetSize(800, 600); aRenderer->ResetCameraClippingRange(); iren->Initialize(); iren->Start(); ... iren->Delete(); renWin->Delete(); aRenderer->Delete(); --------- Oleksandr. From renaudjdetry at airpost.net Fri Oct 5 11:07:30 2007 From: renaudjdetry at airpost.net (Renaud Detry) Date: Fri, 5 Oct 2007 17:07:30 +0200 Subject: [vtkusers] vtkProp3D::SetUserTransform doing hack to support legacy code Message-ID: <0D685116-CDD4-4F6E-9272-020724830116@airpost.net> Hi, I modified the Cone5 example in Examples/Tutorial to add a second cone which contains a user transform: vtkActor *coneActor = vtkActor::New(); coneActor->SetMapper( coneMapper ); vtkActor *coneActor2 = vtkActor::New(); coneActor2->SetMapper( coneMapper ); vtkTransform* transform = vtkTransform::New(); coneActor2->SetUserTransform(transform); I also changed the interactor style to "switch". (See end of message for the complete source.) When I interactively move coneActor, everything is fine. When I move coneActor2, I hear a complain that Warning: In /usr/local/vtk-5.0.3/src/VTK/Common/vtkTransform.cxx, line 202 vtkTransform (0x2914670): InternalUpdate: doing hack to support legacy code. This is deprecated in VTK 4.2. May be removed in a future version. Is this normal? Is there a better way? Thanks very much, Renaud. / *======================================================================= == Program: Visualization Toolkit Module: $RCSfile: Cone5.cxx,v $ Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen All rights reserved. See Copyright.txt or http://www.kitware.com/Copyright.htm for details. This software is distributed WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the above copyright notice for more information. ======================================================================== =*/ // // This example introduces the concepts of interaction into the // C++ environment. A different interaction style (than // the default) is defined. // // First include the required header files for the VTK classes we are using. #include "vtkConeSource.h" #include "vtkPolyDataMapper.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkCamera.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkTransform.h" #include "vtkInteractorStyleSwitch.h" int main() { // // Next we create an instance of vtkConeSource and set some of its // properties. The instance of vtkConeSource "cone" is part of a // visualization pipeline (it is a source process object); it produces data // (output type is vtkPolyData) which other filters may process. // vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 10 ); // // In this example we terminate the pipeline with a mapper process object. // (Intermediate filters such as vtkShrinkPolyData could be inserted in // between the source and the mapper.) We create an instance of // vtkPolyDataMapper to map the polygonal data into graphics primitives. We // connect the output of the cone souece to the input of this mapper. // vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInputConnection( cone->GetOutputPort() ); // // Create an actor to represent the cone. The actor orchestrates rendering // of the mapper's graphics primitives. An actor also refers to properties // via a vtkProperty instance, and includes an internal transformation // matrix. We set this actor's mapper to be coneMapper which we created // above. // vtkActor *coneActor = vtkActor::New(); coneActor->SetMapper( coneMapper ); vtkActor *coneActor2 = vtkActor::New(); coneActor2->SetMapper( coneMapper ); vtkTransform* transform = vtkTransform::New(); coneActor2->SetUserTransform(transform); // // Create the Renderer and assign actors to it. A renderer is like a // viewport. It is part or all of a window on the screen and it is // responsible for drawing the actors it has. We also set the background // color here. // vtkRenderer *ren1= vtkRenderer::New(); ren1->AddActor( coneActor ); ren1->AddActor( coneActor2 ); ren1->SetBackground( 0.1, 0.2, 0.4 ); // // Finally we create the render window which will show up on the screen. // We put our renderer into the render window using AddRenderer. We also // set the size to be 300 pixels by 300. // vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer( ren1 ); renWin->SetSize( 300, 300 ); // // The vtkRenderWindowInteractor class watches for events (e.g., keypress, // mouse) in the vtkRenderWindow. These events are translated into // event invocations that VTK understands (see VTK/Common/ vtkCommand.h // for all events that VTK processes). Then observers of these VTK // events can process them as appropriate. vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); // // By default the vtkRenderWindowInteractor instantiates an instance // of vtkInteractorStyle. vtkInteractorStyle translates a set of events // it observes into operations on the camera, actors, and/or properties // in the vtkRenderWindow associated with the vtkRenderWinodwInteractor. // Here we specify a particular interactor style. vtkInteractorStyleSwitch *style = vtkInteractorStyleSwitch::New(); iren->SetInteractorStyle(style); // // Unlike the previous scripts where we performed some operations and then // exited, here we leave an event loop running. The user can use the mouse // and keyboard to perform the operations on the scene according to the // current interaction style. When the user presses the "e" key, by default // an ExitEvent is invoked by the vtkRenderWindowInteractor which is caught // and drops out of the event loop (triggered by the Start() method that // follows. // iren->Initialize(); iren->Start(); // // Final note: recall that an observers can watch for particular events and // take appropriate action. Pressing "u" in the render window causes the // vtkRenderWindowInteractor to invoke a UserEvent. This can be caught to // popup a GUI, etc. So the Tcl Cone5.tcl example for an idea of how this // works. // // Free up any objects we created. All instances in VTK are deleted by // using the Delete() method. // cone->Delete(); coneMapper->Delete(); coneActor->Delete(); coneActor2->Delete(); ren1->Delete(); renWin->Delete(); iren->Delete(); style->Delete(); return 0; } From alan.mutka at fer.hr Fri Oct 5 11:46:39 2007 From: alan.mutka at fer.hr (Alan Mutka) Date: Fri, 05 Oct 2007 17:46:39 +0200 Subject: [vtkusers] Actor visibility cutting Message-ID: <47065C5F.9030100@fer.hr> Idea: I would like to define a cube witch will define space where actor's visibility is none. The same thing is using plane for visibility cutting, example one side of actor is visible, another is not. Please give me any hint for solution. I don't want to modify cell structure, just set visibility. Thank you! From zibalmail at gmail.com Fri Oct 5 12:07:08 2007 From: zibalmail at gmail.com (Giff) Date: Fri, 5 Oct 2007 18:07:08 +0200 Subject: [vtkusers] constrained ICP Message-ID: <218870e60710050907p515fb8b8w62d99d13cd3a8fae@mail.gmail.com> Hi all, I have two 3D meshes, differing in the number of vertices. I could roughly align them using some point correspondences and vtkLandmarkTransform. Now, I would like to refine the registration by applying the ICP algorithm. How can I do that in vtk, maintaining the constraints of the aforementioned point correspondences? Thanks for any hints. -------------- next part -------------- An HTML attachment was scrubbed... URL: From goodwin.lawlor at ucd.ie Fri Oct 5 12:22:15 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 05 Oct 2007 17:22:15 +0100 Subject: [vtkusers] Re: vtkProp3D::SetUserTransform doing hack to support, legacy code Message-ID: <470664B7.5020509@ucd.ie> Hi Renaud, I came across this a few years ago... I submitted this bug report with a patch that solved the problem. http://www.vtk.org/Bug/view.php?id=1055 Note that patch was just for vtkInteractorStyleTrackballActor.cxx - you'll need to make similar changes to vtkInteractorStyleJoystickActor.cxx Hope this helps, Goodwin From juan.cardelino at gmail.com Fri Oct 5 13:55:05 2007 From: juan.cardelino at gmail.com (Juan Cardelino) Date: Fri, 5 Oct 2007 19:55:05 +0200 Subject: [vtkusers] migration from 4.4 to vtk 5.0 Message-ID: <7728d2ce0710051055iff30017ga34b717ab8bdfe8f@mail.gmail.com> Hello, I've recently came back to an old code which used VTK 4.2. I've been able to make it compile and work with vtk 4.4 and also with vtk 5.0. However I'm still having a problem. My code used the vtkDecimate class, which was in the Patented directory. After digging around, I've found out that Patented is not present in 5.0. I've lost some hours digging the web and I'm still not able to determine what happened to it and how to replace it. Can someone give me a hint on this? Is there any changelog which I could read? I've read this: http://www.vtk.org/doc/release/5.0/html/deprecated.html but doesn't mention anything? Is it possible that they have put it in a separate distribution or something? Thanks in advance. Juan From stevec at renci.org Fri Oct 5 14:35:07 2007 From: stevec at renci.org (Steve Chall) Date: Fri, 5 Oct 2007 14:35:07 -0400 Subject: [vtkusers] Displaying the intersection of a plane with a bunch of spheres Message-ID: <027c01c8077e$7703a360$55150e98@Stevec> I want to generate a 3D rectangular volume of ~38,000 closely packed, sometimes overlapping "particles" - initially spheres simply defined as a list of centroids and a parallel list of radii, more complex objects later on - and interactively look at arbitrary slices through the volume, with the particle intersections represented as disks or circles in the 2D slice (down to a single pixel, of course, if the slice is tangent to the surface of a "particle"). Due to the number of "particles" I think performance scaling issues might also be a concern at some point. I?ve been working with VTK now for some time in pursuit of a solution and haven?t really come to a satisfactory conclusion.? I?ve tried the following two approaches thus far: 1) Implicit booleans:? I read in the sphere positions and radii and construct a vtkSphere for each one.? As I do that I add each to a vtkImplicitBoolean object ?sphereUnion? with the operation type set to union.? I then create a vtkPlane object (right now I?m not worrying about interactively moving the plane around:? I?ve just got it set through the middle of the cluster of spheres so that I know, because I can see it, that there?s a non-empty intersection between the plane and some of the spheres).? Then I create another vtkImplicitBoolean called ?slice? and add to it the sphereUnion and the plane with operation type set to intersection.? I run slice into a vtkSampleFunction, that into a vtkContourFilter into a vtkPolyDataMapper into a vtkActor and into a vtkRenderer (the standard textbook sequence).? I?ve tried looking at various subsets ? just the sphereUnion, just the plane, etc. ? and I see what I expect.? But I?d think that the intersection of a bunch of spheres and a plane would look like calamari or sausage slices: a cluster of rings or disks on a 2D surface.? However, what I?m seeing is a strange cluster of lumpy, irregular 3D objects scattered through the 3D sample space that perhaps roughly correspond to some or all of the original spheres.? Thus far I haven't made any sense of it.? So on to the second approach: 2) Polygons:? I create the vtkSpheres, but this time convert each into a vtkPolyData object (vtkSphere -> vtkSampleFunction -> vtkContourFilter) and add the resulting polygonal sphere to a vtkAppendPolyData object.? I create a vtkPlaneSource object (the polygonal equivalent to the vtkPlane implicit surface object in approach 1 above) and a vtkProbeFilter.? I set the probe?s input connection to the vtkPlaneSource and its source connection to the vtkAppendPolydata object (the spheres) and then from there into the usual pipeline to the renderer.? Once again I think the subunits are ok ? I can display them and they look like I?d expect ? but I don?t see any probe?d data at all.? Does either of these approaches look promising, or is there an entirely different direction that?s more likely to produce useful results? I?d appreciate any insights you might have.? I can provide source code if it would make it any clearer.? Thanks for any help you can provide. Steve -Steve Chall ?Senior Research Software Developer ?Renaissance Computing Institute ?Phone: 919-515-0051 ?Email: stevec at renci.org From henryjoye at gmail.com Fri Oct 5 20:28:09 2007 From: henryjoye at gmail.com (James Zhou) Date: Sat, 6 Oct 2007 10:28:09 +1000 Subject: [vtkusers] wglMakeCurrent failed errors when running VTK applications Message-ID: Hi, all, I use the VTK CVS night source of Oct. 5,2007 in my applications. I built the VTK source successfully on win xp using MSVC 2005. My graphics card is GeForce 8300 and I updated the graphics driver to be the latest. But when I run examples, there is no display. The error is as follows: Description: ERROR: In E:\Kitware\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 235 vtkWin32OpenGLRenderWindow (03A4C500): wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid. When I built my own applications, there is no problem. But when I run them, there is also no display the error is same as in VTK examples. Does anyone have any ideas about this problem? Thanks. James -------------- next part -------------- An HTML attachment was scrubbed... URL: From henryjoye at gmail.com Fri Oct 5 21:50:20 2007 From: henryjoye at gmail.com (James Zhou) Date: Sat, 6 Oct 2007 11:50:20 +1000 Subject: [vtkusers] Re: wglMakeCurrent failed errors when running VTK applications In-Reply-To: References: Message-ID: I just tried VTK 5.0.3 release version and it works fine. But the CVS night source has this wglMakeCurrent failed error. Does anyone give me any solutions? 2007/10/6, James Zhou : > > Hi, all, > > I use the VTK CVS night source of Oct. 5,2007 in my applications. I built > the VTK source successfully on win xp using MSVC 2005. My graphics card is > GeForce 8300 and I updated the graphics driver to be the latest. But when I > run examples, there is no display. The error is as follows: > > Description: ERROR: In > E:\Kitware\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 235 > vtkWin32OpenGLRenderWindow (03A4C500): wglMakeCurrent failed in > MakeCurrent(), error: The handle is invalid. > > When I built my own applications, there is no problem. But when I run > them, there is also no display the error is same as in VTK examples. Does > anyone have any ideas about this problem? > > Thanks. > > James > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From m26404030 at john.petra.ac.id Sat Oct 6 05:47:44 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Sat, 06 Oct 2007 16:47:44 +0700 Subject: [vtkusers]ask how to read DICOM(again) Message-ID: <1191664064.470759c0b240e@mail.petra.ac.id> hi all, i want to extract some informations in DICOM image such as patient age, patient sex, modality, etc.. i have tried to use vtkDICOMImageReader, but i cant get what i want since vtkDICOMImageReader only have the GetPatientName() function? what must i do if i want to get the patient age, sex, modality, etc? can VTK do this or should i read the image file manually(read the header or something)?maybe someone can give me information about dicom file format and how to extract the informations above?? Plis help me.. thanx a lot.. From markww at gmail.com Sat Oct 6 09:53:41 2007 From: markww at gmail.com (Mark Wyszomierski) Date: Sat, 6 Oct 2007 09:53:41 -0400 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: <1191664064.470759c0b240e@mail.petra.ac.id> References: <1191664064.470759c0b240e@mail.petra.ac.id> Message-ID: My impression is that VTK is NOT a specialized DICOM support toolkit, it's strength is in rendering data, it doesn't care where you get it from. Why not try one of the libraries specifically made for handling DICOM files? I put a simple example here of using dcmtk: http://devsample.org/index.php?option=com_content&task=view&id=45&Itemid=29 Mark On 10/6/07, m26404030 at john.petra.ac.id wrote: > > > hi all, i want to extract some informations in DICOM image such as patient age, > patient sex, modality, etc.. > i have tried to use vtkDICOMImageReader, but i cant get what i want since > vtkDICOMImageReader only have the GetPatientName() function? what must i do if > i want to get the patient age, sex, modality, etc? > > can VTK do this or should i read the image file manually(read the header or > something)?maybe someone can give me information about dicom file format and > how to extract the informations above?? > > > > Plis help me.. > > > thanx a lot.. > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From luis.ibanez at kitware.com Sat Oct 6 10:55:10 2007 From: luis.ibanez at kitware.com (Luis Ibanez) Date: Sat, 06 Oct 2007 10:55:10 -0400 Subject: [vtkusers] Re: computing Crest Lines In-Reply-To: References: Message-ID: <4707A1CE.5000308@kitware.com> Hi Sami, Did you extracted that polydata from an 3D image ? If so, you may find easier to compute the Crest lines by using the method described by Monga, Lengagne and Deriche in the following INRIA report: "Crest lines extraction in volume 3D medical images" "a multi-scale approach" http://hal.inria.fr/inria-00074338/en/ The basic Gaussian recursive image filter needed for computing the first and second derivatives are already available in ITK: http://www.itk.org/Insight/Doxygen/html/classitk_1_1RecursiveGaussianImageFilter.html http://www.itk.org/Insight/Doxygen/html/classitk_1_1HessianRecursiveGaussianImageFilter.html Regards, Luis ----------------------- sami bourouis wrote: > Hi, > > I want to compute the crest line on a polydata. How can I do ? Is there > any example code to do this. > > many thanks in advanced. > > sami > > ------------------------------------------------------------------------ > Lancez des recherches en toute s?curit? depuis n'importe quelle page > Web. T?l?chargez GRATUITEMENT Windows Live Toolbar aujourd'hui ! > Essayez-le maintenant ! From m26404030 at john.petra.ac.id Sat Oct 6 13:08:34 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Sun, 07 Oct 2007 00:08:34 +0700 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: References: <1191664064.470759c0b240e@mail.petra.ac.id> Message-ID: <1191690514.4707c11212d37@mail.petra.ac.id> thanx for ur answer again, but i am not allowed to use many libraries in my project..i think i must use VTK only for the helping library. anyone can show me how to get the data such as patient age manually by reading the .dcm files in C++? FILE *myfile=fopen("image.dcm","r+b"); .. .. .. i dont understand the data structure of .dcm files.. i have read several references but i still dont understand it. maybe someone can give me the example code in C++ how to do it.. i need it very much.. thanx a lot.. Best regards.. Quoting Mark Wyszomierski : > My impression is that VTK is NOT a specialized DICOM support toolkit, > it's strength is in rendering data, it doesn't care where you get it > from. Why not try one of the libraries specifically made for handling > DICOM files? I put a simple example here of using dcmtk: > > > http://devsample.org/index.php?option=com_content&task=view&id=45&Itemid=29 > > > Mark > > > On 10/6/07, m26404030 at john.petra.ac.id wrote: > > > > > > hi all, i want to extract some informations in DICOM image such as patient > age, > > patient sex, modality, etc.. > > i have tried to use vtkDICOMImageReader, but i cant get what i want since > > vtkDICOMImageReader only have the GetPatientName() function? what must i do > if > > i want to get the patient age, sex, modality, etc? > > > > can VTK do this or should i read the image file manually(read the header or > > something)?maybe someone can give me information about dicom file format > and > > how to extract the informations above?? > > > > > > > > Plis help me.. > > > > > > thanx a lot.. > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > Quoting Mark Wyszomierski : > My impression is that VTK is NOT a specialized DICOM support toolkit, > it's strength is in rendering data, it doesn't care where you get it > from. Why not try one of the libraries specifically made for handling > DICOM files? I put a simple example here of using dcmtk: > > > http://devsample.org/index.php?option=com_content&task=view&id=45&Itemid=29 > > > Mark > > > On 10/6/07, m26404030 at john.petra.ac.id wrote: > > > > > > hi all, i want to extract some informations in DICOM image such as patient > age, > > patient sex, modality, etc.. > > i have tried to use vtkDICOMImageReader, but i cant get what i want since > > vtkDICOMImageReader only have the GetPatientName() function? what must i do > if > > i want to get the patient age, sex, modality, etc? > > > > can VTK do this or should i read the image file manually(read the header or > > something)?maybe someone can give me information about dicom file format > and > > how to extract the informations above?? > > > > > > > > Plis help me.. > > > > > > thanx a lot.. > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > From dariodisk at gmail.com Sat Oct 6 20:33:49 2007 From: dariodisk at gmail.com (=?ISO-8859-1?Q?D=E1rio_Oliveira?=) Date: Sat, 6 Oct 2007 21:33:49 -0300 Subject: [vtkusers] 2D visualization question Message-ID: Friends, I'm trying to show a segmentation result in 2d slices. It is possible to set the original vtkImageData as background and then add transparent layers to the image, with the results of the segmentation? Here is the code which doesn't work. I would really appreciate any help, I'm stuck. viewer->*SetInput*(reader->*GetOutput*()); renwin->*SetNumberOfLayers*(2); renwin->*AddRenderer*(viewer->*GetRenderer*()); viewer->*GetRenderer*()->*SetLayer*(0); vtkImageMapper* mapper = vtkImageMapper::*New*(); mapper->*SetInput*(pipe->getOutput()); mapper->*SetZSlice*(10); mapper->*Update*(); // Creates actor to render slice viewer->*GetRenderer*()->*SetLayer*(1); vtkActor2D* cut = vtkActor2D::*New*(); cut->*SetMapper* (mapper); cut->*GetProperty*()->*SetColor*(1.0,0,0); cut->*GetProperty*()->*SetOpacity*(0.1); viewer->*GetRenderer*()->*AddActor2D*(cut); Thanks. -- D?rio Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From ezimmansur at yahoo.com Sat Oct 6 22:46:00 2007 From: ezimmansur at yahoo.com (ezim mansur) Date: Sat, 6 Oct 2007 19:46:00 -0700 (PDT) Subject: [vtkusers] Is there Anyone form Ottawa Canada? VTK In-Reply-To: <20071006160050.C8E5C1F17A4@public.kitware.com> Message-ID: <21387.97884.qm@web56207.mail.re3.yahoo.com> I tried to install VTK for Borland C++ Builder on Windows. 1.Do I have to install the Tcl too? 2. How do I convert Tcl libraires from coff to omf ? Is there Anyone from Ottawa Canada? I would like to go to ask for advice directly. Thanks. Mansuer --------------------------------- Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games. -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at vision.ee.ethz.ch Sun Oct 7 13:31:24 2007 From: domi at vision.ee.ethz.ch (Dominik Szczerba) Date: Sun, 07 Oct 2007 19:31:24 +0200 Subject: [vtkusers] a question on xdmf Message-ID: <470917EC.10903@vision.ee.ethz.ch> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I cannot conclude on the following from the mailing lists: 1) Is XDMF/HDF5 support going to be integrated in VTK anytime, 2) Is it going to support column-wise (fortran style) storage of arrays in hdf5 files (e.g. after hdf5write in Matlab). I would be glad if someone in position could quickly comment. thanks and regards, Dominik - -- Dominik Szczerba, Ph.D. Computer Vision Lab CH-8092 Zurich http://www.vision.ee.ethz.ch/~domi -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHCRfs/EBMh9bUuzIRAk2bAJ9ULe6aKGpBLCfIPPk+5s8ngbaVUQCfc/Lu OiI3wZ8Zub5YBzBVIuuYi/0= =TYqI -----END PGP SIGNATURE----- From David.Pont at ensisjv.com Sun Oct 7 16:32:04 2007 From: David.Pont at ensisjv.com (David.Pont at ensisjv.com) Date: Mon, 8 Oct 2007 09:32:04 +1300 Subject: [vtkusers] Displaying the intersection of a plane with a bunch of spheres In-Reply-To: <027c01c8077e$7703a360$55150e98@Stevec> Message-ID: "Steve Chall" wrote on 06/10/2007 07:35:07: > I want to generate a 3D rectangular volume of ~38,000 closely packed, > sometimes overlapping "particles" - initially spheres simply defined as a > list of centroids and a parallel list of radii, more complex objects later > on - and interactively look at arbitrary slices through the volume, with the > particle intersections represented as disks or circles in the 2D slice (down > to a single pixel, of course, if the slice is tangent to the surface of a > "particle"). Due to the number of "particles" I think performance scaling > issues might also be a concern at some point. > > I?ve been working with VTK now for some time in pursuit of a solution and > haven?t really come to a satisfactory conclusion.? I?ve tried the following > two approaches thus far: > > 1) Implicit booleans:? I read in the sphere positions and radii and > construct a vtkSphere for each one.? As I do that I add each to a > vtkImplicitBoolean object ?sphereUnion? with the operation type set to > union.? I then create a vtkPlane object (right now I?m not worrying about > interactively moving the plane around:? I?ve just got it set through the > middle of the cluster of spheres so that I know, because I can see it, that > there?s a non-empty intersection between the plane and some of the > spheres).? Then I create another vtkImplicitBoolean called ?slice? and add > to it the sphereUnion and the plane with operation type set to > intersection.? I run slice into a vtkSampleFunction, that into a > vtkContourFilter into a vtkPolyDataMapper into a vtkActor and into a > vtkRenderer (the standard textbook sequence).? I?ve tried looking at various > subsets ? just the sphereUnion, just the plane, etc. ? and I see what I > expect.? But I?d think that the intersection of a bunch of spheres and a > plane would look like calamari or sausage slices: a cluster of rings or > disks on a 2D surface.? However, what I?m seeing is a strange cluster of > lumpy, irregular 3D objects scattered through the 3D sample space that > perhaps roughly correspond to some or all of the original spheres.? Thus far > I haven't made any sense of it.? So on to the second approach: > > 2) Polygons:? I create the vtkSpheres, but this time convert each into a > vtkPolyData object (vtkSphere -> vtkSampleFunction -> vtkContourFilter) and > add the resulting polygonal sphere to a vtkAppendPolyData object.? I create > a vtkPlaneSource object (the polygonal equivalent to the vtkPlane implicit > surface object in approach 1 above) and a vtkProbeFilter.? I set the probe?s > input connection to the vtkPlaneSource and its source connection to the > vtkAppendPolydata object (the spheres) and then from there into the usual > pipeline to the renderer.? Once again I think the subunits are ok ? I can > display them and they look like I?d expect ? but I don?t see any probe?d > data at all. > > Does either of these approaches look promising, or is there an entirely > different direction that?s more likely to produce useful results? I?d > appreciate any insights you might have.? I can provide source code if it > would make it any clearer.? Thanks for any help you can provide. You should try this: create your spheres as polydata objects with vtkSphereSource (instead of implicit spheres with vtkSphere) and merge into one data set with vtkAppendPolyData. Create an implicit plane with vtkPlane (as before) and use vtkCutter to generate the 2D slice through your polydata spheres. You should get 'circular' polylines (and/or points), increase the resolution in vtkSphereSource to get better approximation to circles (better calamari ;-). You can also cut more complex shapes this way, so long as you can represent them as polydata. Performance with this approach should be OK, unlike an approach based on vtkSampleFunction -> vtkContourFilter which typically requires high sampling density to get acceptable resolution. 38K particles is quite a few so vtkCutter will be busy but using vtkSampleFunction on this problem would be an order of magnitude (or 2) slower. If you really need to specify the particles as implicit functions you would use vtkSampleFunction -> vtkContour to turn them into polydata and then apply vtkCutter on the polydata, that way if you want to move the cutting plane around you will not have to re-execute vtkSampleFunction. HTH, Dave P > > Steve > > -Steve Chall > ?Senior Research Software Developer > ?Renaissance Computing Institute > ?Phone: 919-515-0051 > ?Email: stevec at renci.org > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddarkzero at hotmail.com Sun Oct 7 18:21:19 2007 From: daviddarkzero at hotmail.com (Jose David Pfuturi Huisa) Date: Mon, 08 Oct 2007 00:21:19 +0200 Subject: [vtkusers] how could i move an actor with the mouse? Message-ID: An HTML attachment was scrubbed... URL: From Shekhar.Chandra at sci.monash.edu.au Sun Oct 7 21:32:59 2007 From: Shekhar.Chandra at sci.monash.edu.au (Shekhar Chandra) Date: Mon, 08 Oct 2007 11:32:59 +1000 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: <1191690514.4707c11212d37@mail.petra.ac.id> References: <1191664064.470759c0b240e@mail.petra.ac.id> <1191690514.4707c11212d37@mail.petra.ac.id> Message-ID: <470988CB.4060701@sci.monash.edu.au> Hi, I dont think u want read the header manually. DICOM files are very vendor specific. Even major libraries have trouble reading various versions. You could also look into GDCM library, which specifically contains a VTK based Reader class (like vtkPNGReader etc.). This might do what u want. It is easily built using cmake and is small (you dont need any library except VTK). Cheers Shekhar m26404030 at john.petra.ac.id wrote: > thanx for ur answer again, but i am not allowed to use many libraries in my > project..i think i must use VTK only for the helping library. > > anyone can show me how to get the data such as patient age manually by reading > the .dcm files in C++? > > FILE *myfile=fopen("image.dcm","r+b"); > .. > .. > .. > > i dont understand the data structure of .dcm files.. > i have read several references but i still dont understand it. maybe someone can > give me the example code in C++ how to do it.. > > > > i need it very much.. > > thanx a lot.. > > > Best regards.. > > > Quoting Mark Wyszomierski : > >> My impression is that VTK is NOT a specialized DICOM support toolkit, >> it's strength is in rendering data, it doesn't care where you get it >> from. Why not try one of the libraries specifically made for handling >> DICOM files? I put a simple example here of using dcmtk: >> >> >> http://devsample.org/index.php?option=com_content&task=view&id=45&Itemid=29 >> >> >> Mark >> >> >> On 10/6/07, m26404030 at john.petra.ac.id wrote: >>> >>> hi all, i want to extract some informations in DICOM image such as patient >> age, >>> patient sex, modality, etc.. >>> i have tried to use vtkDICOMImageReader, but i cant get what i want since >>> vtkDICOMImageReader only have the GetPatientName() function? what must i do >> if >>> i want to get the patient age, sex, modality, etc? >>> >>> can VTK do this or should i read the image file manually(read the header or >>> something)?maybe someone can give me information about dicom file format >> and >>> how to extract the informations above?? >>> >>> >>> >>> Plis help me.. >>> >>> >>> thanx a lot.. >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >>> > > > > > Quoting Mark Wyszomierski : > >> My impression is that VTK is NOT a specialized DICOM support toolkit, >> it's strength is in rendering data, it doesn't care where you get it >> from. Why not try one of the libraries specifically made for handling >> DICOM files? I put a simple example here of using dcmtk: >> >> >> http://devsample.org/index.php?option=com_content&task=view&id=45&Itemid=29 >> >> >> Mark >> >> >> On 10/6/07, m26404030 at john.petra.ac.id wrote: >>> >>> hi all, i want to extract some informations in DICOM image such as patient >> age, >>> patient sex, modality, etc.. >>> i have tried to use vtkDICOMImageReader, but i cant get what i want since >>> vtkDICOMImageReader only have the GetPatientName() function? what must i do >> if >>> i want to get the patient age, sex, modality, etc? >>> >>> can VTK do this or should i read the image file manually(read the header or >>> something)?maybe someone can give me information about dicom file format >> and >>> how to extract the informations above?? >>> >>> >>> >>> Plis help me.. >>> >>> >>> thanx a lot.. >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >>> > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- A non-text attachment was scrubbed... Name: Shekhar.Chandra.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From long353 at msn.com Sun Oct 7 22:10:20 2007 From: long353 at msn.com (jim yu) Date: Mon, 8 Oct 2007 14:10:20 +1200 Subject: [vtkusers] about vtkSphereSource and vtkGlyph3D Message-ID: hi, guys There are always a lot of questions. sorry to disturb anybody who is not interested at this question. I want to display a point cloud. I use vtkSphereSource and vtkGlyph3D to display each point as a small sphere. but i don't know why spheres in my result have different size, some is big and some is small? could somebody tell me what is the reason? thanks a lot! jim _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From long353 at msn.com Mon Oct 8 01:25:12 2007 From: long353 at msn.com (jim yu) Date: Mon, 8 Oct 2007 17:25:12 +1200 Subject: [vtkusers] second question about vtkGlyph3D Message-ID: Hi guys I want to color the vtkGlyph3D with a scalar array and scale it with another scalar array. how to implement it ? many thanks jim _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From henrik.westerberg at crg.es Mon Oct 8 01:58:09 2007 From: henrik.westerberg at crg.es (Henrik Westerberg) Date: Mon, 8 Oct 2007 07:58:09 +0200 Subject: [vtkusers] migration from 4.4 to vtk 5.0 References: <7728d2ce0710051055iff30017ga34b717ab8bdfe8f@mail.gmail.com> Message-ID: Hello Juan, You can use vtkDecimatePro http://www.vtk.org/doc/nightly/html/classvtkDecimatePro.html regards, Henrik -----Original Message----- From: vtkusers-bounces+henrik.westerberg=crg.es at vtk.org on behalf of Juan Cardelino Sent: Fri 10/5/2007 7:55 PM To: vtkusers at vtk.org Subject: [vtkusers] migration from 4.4 to vtk 5.0 Hello, I've recently came back to an old code which used VTK 4.2. I've been able to make it compile and work with vtk 4.4 and also with vtk 5.0. However I'm still having a problem. My code used the vtkDecimate class, which was in the Patented directory. After digging around, I've found out that Patented is not present in 5.0. I've lost some hours digging the web and I'm still not able to determine what happened to it and how to replace it. Can someone give me a hint on this? Is there any changelog which I could read? I've read this: http://www.vtk.org/doc/release/5.0/html/deprecated.html but doesn't mention anything? Is it possible that they have put it in a separate distribution or something? Thanks in advance. Juan _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.malaterre at gmail.com Mon Oct 8 04:57:23 2007 From: mathieu.malaterre at gmail.com (Mathieu Malaterre) Date: Mon, 8 Oct 2007 10:57:23 +0200 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: <1191690514.4707c11212d37@mail.petra.ac.id> References: <1191664064.470759c0b240e@mail.petra.ac.id> <1191690514.4707c11212d37@mail.petra.ac.id> Message-ID: On 10/6/07, m26404030 at john.petra.ac.id wrote: > thanx for ur answer again, but i am not allowed to use many libraries in my > project..i think i must use VTK only for the helping library. If you are stuck with VTK only, your only choice is to use vtkDICOMImageReader. > anyone can show me how to get the data such as patient age manually by reading > the .dcm files in C++? > > i dont understand the data structure of .dcm files.. You certainly don't want to dive into this, trust me :) > i have read several references but i still dont understand it. maybe someone can > give me the example code in C++ how to do it.. vtkDICOMImageReader *r = vtkDICOMImageReader::New() r->SetFileName( "image.dcm"); r->Update(); HTH -- Mathieu From wollez at gmx.net Mon Oct 8 05:45:23 2007 From: wollez at gmx.net (WolfgangZ) Date: Mon, 08 Oct 2007 11:45:23 +0200 Subject: [vtkusers] timeseries data Message-ID: Hi I want to update some the coloring of my unstructured mesh to display timeseries data. The problem now is that the iren = vtk.vtkRenderWindowInteractor() displays the image until the user terminates the window. Removing the Interactor the images just pops up very short ( renderWindow.Render() ). What do I need to do to display the render window permanently but still beeing able to run a loop in python to check for new data and update my coloring scheme? Many thanks for any help Wolfgang From tnkiran at yahoo.co.in Mon Oct 8 06:17:58 2007 From: tnkiran at yahoo.co.in (TNKiran) Date: Mon, 8 Oct 2007 15:47:58 +0530 (IST) Subject: [vtkusers] VTK Designer 2 Beta now available Message-ID: <82948.1768.qm@web8911.mail.in.yahoo.com> Hi All, We have been working on VTK Designer 2 for the past 10 months and we are now happy to announce the availability of VTK Designer 2 Betas (for Windows). VTK Designer 2 is developed using Qt 4 and works with VTK 5. Please visit http://www.vcreatelogic.com/oss/vtkdesigner to download the latest beta from our website. (The source code for GCF [Generic Component Framework] is provided with the installer. We will be uploading the complete source code of VTK Designer 2 and making a release by the end of this month). You can directly download the beta installer from: http://vcreatelogic.com/oss/vtkdesigner/download/VTK_Designer_2.0_Beta_Build_609.exe. With VTK Designer 2 you can Create and configure VTK pipelines graphically.Script pipelines to suit your tasksMix and match VTK and non-VTK classesand more... You can visit http://www.vcreatelogic.com/vtkdesigner to view some introductory flash videos on VTK Designer 2. Best Regards, Kiran Save all your chat conversations. Find them online at http://in.messenger.yahoo.com/webmessengerpromo.php -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail_di_ale at yahoo.it Mon Oct 8 07:09:29 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Mon, 8 Oct 2007 13:09:29 +0200 (CEST) Subject: [vtkusers] help request: medical imaging with VTK Message-ID: <590870.85834.qm@web26407.mail.ukl.yahoo.com> hallo everybody! May be this is a very simple question, but could somebody explain me how I can import "analyze" datasets in VTK? Is there a reader for this data format? Thanks a lot in advance! Alex --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From vihang_patil at yahoo.com Mon Oct 8 07:30:28 2007 From: vihang_patil at yahoo.com (Vihang Patil) Date: Mon, 8 Oct 2007 04:30:28 -0700 (PDT) Subject: [vtkusers] interface VTK with Matlab Message-ID: <342086.99232.qm@web50602.mail.re2.yahoo.com> Dear Users Does any one here has interfaced VTK with Matlab, If yes, could some one quide me and/or send some code to do so.. Thank You Regards Vihang Patil --------------------------------- Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: mail, news, photos & more. -------------- next part -------------- An HTML attachment was scrubbed... URL: From henryjoye at gmail.com Mon Oct 8 08:11:36 2007 From: henryjoye at gmail.com (James Zhou) Date: Mon, 8 Oct 2007 22:11:36 +1000 Subject: [vtkusers] wglMakeCurrent failed in MakeCurrent() when running VTK examples Message-ID: Hi, all, I posted my problem two days before and got no response. I have to express my problems more clearly. I hope you help me. I use the VTK CVS nightly source of Oct. 7,2007 in my applications. I built the VTK source successfully on Win XP using MSVC 2005. I set using CG Shader and GLSL shader be on during cmaking. My graphics card is GeForce 8300 and I updated the graphics driver to be the latest. When I run VTK examples, there is no display window shown. The error is as follows: Description: ERROR: In E:\Kitware\VTK\Rendering\vtkWin32OpenGLRenderWindow.cxx, line 235 vtkWin32OpenGLRenderWindow (03A4C500): wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid. When I build the VTK5.0 release sourcr and run its examples, everything is ok. It seems that it is because of the CVS nightly source problem. If not, could anyone show me any solutions? Many thanks! James -------------- next part -------------- An HTML attachment was scrubbed... URL: From jelleferinga at gmail.com Mon Oct 8 08:16:30 2007 From: jelleferinga at gmail.com (jelle) Date: Mon, 8 Oct 2007 12:16:30 +0000 (UTC) Subject: [vtkusers] trouble with vtkWindowedSincPolyDataFilter Message-ID: Hi, I'm piping the output of a vtkSplineFilter to a vtkWindowedSincPolyDataFilter instance, and when doing so, my program grinds to a halt. If i pipe the same output to vtkSmoothPolyDataFilter, all is good. Any suggestions in figuring out why this is? I'm working with the (traited) python wrappers, from the CVS version. thanks, -jelle RuntimeError: ERROR: In ..\..\VTK\Filtering\vtkExecutive.cxx, line 784 vtkStreamingDemandDrivenPipeline (05CA69D0): UpdateInformation invoked during another request. Returning failure to algorithm vtkWindowedSincPolyDataFilter (0450B9F0). From cedric.schwartz at enst-bretagne.fr Mon Oct 8 09:13:42 2007 From: cedric.schwartz at enst-bretagne.fr (cedric.schwartz at enst-bretagne.fr) Date: Mon, 8 Oct 2007 15:13:42 +0200 Subject: [vtkusers] kd tree partitioning Message-ID: <20071008151342.bshlxq7284cssk0k@webmail.enst-bretagne.fr> Hi, Does anybody know which space-partitioning strategy is used when a vtkKdTree is constructed ? Thanks a lot, C?dric Schwartz From stevec at renci.org Mon Oct 8 11:57:06 2007 From: stevec at renci.org (Steve Chall) Date: Mon, 8 Oct 2007 11:57:06 -0400 Subject: [vtkusers] Displaying the intersection of a plane with a bunch ofspheres In-Reply-To: Message-ID: <02e801c809c3$e389a2e0$55150e98@Stevec> Thanks, David. This looks eminently doable and makes plenty of sense. I'm going to try it today. -Steve _____ From: David.Pont at ensisjv.com [mailto:David.Pont at ensisjv.com] Sent: Sunday, October 07, 2007 4:32 PM To: Steve Chall Cc: 'Theresa-Marie Rhyne'; vtkusers at vtk.org Subject: Re: [vtkusers] Displaying the intersection of a plane with a bunch ofspheres "Steve Chall" wrote on 06/10/2007 07:35:07: > I want to generate a 3D rectangular volume of ~38,000 closely packed, > sometimes overlapping "particles" - initially spheres simply defined as a > list of centroids and a parallel list of radii, more complex objects later > on - and interactively look at arbitrary slices through the volume, with the > particle intersections represented as disks or circles in the 2D slice (down > to a single pixel, of course, if the slice is tangent to the surface of a > "particle"). Due to the number of "particles" I think performance scaling > issues might also be a concern at some point. > > I've been working with VTK now for some time in pursuit of a solution and > haven't really come to a satisfactory conclusion. I've tried the following > two approaches thus far: > > 1) Implicit booleans: I read in the sphere positions and radii and > construct a vtkSphere for each one. As I do that I add each to a > vtkImplicitBoolean object "sphereUnion" with the operation type set to > union. I then create a vtkPlane object (right now I'm not worrying about > interactively moving the plane around: I've just got it set through the > middle of the cluster of spheres so that I know, because I can see it, that > there's a non-empty intersection between the plane and some of the > spheres). Then I create another vtkImplicitBoolean called "slice" and add > to it the sphereUnion and the plane with operation type set to > intersection. I run slice into a vtkSampleFunction, that into a > vtkContourFilter into a vtkPolyDataMapper into a vtkActor and into a > vtkRenderer (the standard textbook sequence). I've tried looking at various > subsets - just the sphereUnion, just the plane, etc. - and I see what I > expect. But I'd think that the intersection of a bunch of spheres and a > plane would look like calamari or sausage slices: a cluster of rings or > disks on a 2D surface. However, what I'm seeing is a strange cluster of > lumpy, irregular 3D objects scattered through the 3D sample space that > perhaps roughly correspond to some or all of the original spheres. Thus far > I haven't made any sense of it. So on to the second approach: > > 2) Polygons: I create the vtkSpheres, but this time convert each into a > vtkPolyData object (vtkSphere -> vtkSampleFunction -> vtkContourFilter) and > add the resulting polygonal sphere to a vtkAppendPolyData object. I create > a vtkPlaneSource object (the polygonal equivalent to the vtkPlane implicit > surface object in approach 1 above) and a vtkProbeFilter. I set the probe's > input connection to the vtkPlaneSource and its source connection to the > vtkAppendPolydata object (the spheres) and then from there into the usual > pipeline to the renderer. Once again I think the subunits are ok - I can > display them and they look like I'd expect - but I don't see any probe'd > data at all. > > Does either of these approaches look promising, or is there an entirely > different direction that's more likely to produce useful results? I'd > appreciate any insights you might have. I can provide source code if it > would make it any clearer. Thanks for any help you can provide. You should try this: create your spheres as polydata objects with vtkSphereSource (instead of implicit spheres with vtkSphere) and merge into one data set with vtkAppendPolyData. Create an implicit plane with vtkPlane (as before) and use vtkCutter to generate the 2D slice through your polydata spheres. You should get 'circular' polylines (and/or points), increase the resolution in vtkSphereSource to get better approximation to circles (better calamari ;-). You can also cut more complex shapes this way, so long as you can represent them as polydata. Performance with this approach should be OK, unlike an approach based on vtkSampleFunction -> vtkContourFilter which typically requires high sampling density to get acceptable resolution. 38K particles is quite a few so vtkCutter will be busy but using vtkSampleFunction on this problem would be an order of magnitude (or 2) slower. If you really need to specify the particles as implicit functions you would use vtkSampleFunction -> vtkContour to turn them into polydata and then apply vtkCutter on the polydata, that way if you want to move the cutting plane around you will not have to re-execute vtkSampleFunction. HTH, Dave P > > Steve > > -Steve Chall > Senior Research Software Developer > Renaissance Computing Institute > Phone: 919-515-0051 > Email: stevec at renci.org > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.nowikow at gmx.at Mon Oct 8 12:09:59 2007 From: klaus.nowikow at gmx.at (Klaus Nowikow) Date: Mon, 08 Oct 2007 18:09:59 +0200 Subject: [vtkusers] GetEventObject() returns different objects on different platforms Message-ID: Hi, I was just hit by [ 688381 ]: https://sourceforge.net/tracker/?func=detail&atid=109863&aid=688381&group_id=9863 Event.GetEventObject() for command events (EVT_MENU) returns the frame object on Windows, but the menu object on Linux. Is there a workaround for this? I'd really like to avoid having to use different code for Windows and Linux, because such code gets unmaintainable very fast. -- Klaus From noeckera at ccf.org Mon Oct 8 13:35:02 2007 From: noeckera at ccf.org (Noecker, Angela M.) Date: Mon, 8 Oct 2007 13:35:02 -0400 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: Message-ID: Mathieu, Could you explain exactly which fields in the DICOM header vtkDICOMImageReader uses to parse the files? I haven't dug into the source code yet, but it seems clear that it accesses the following: 0020, 0032 Image Position (Patient) 0020, 0037 Image Orientation (Patient) Other than that it's not clear. It seems that when reading images from a folder that contains multiple image series, the class looks for 0020, 000E Series Instance UID to determine which images to include in the volume it opens. Is that correct? I'm currently having issues with z spacing of a DICOM dataset. How does vtkDICOMImageReader acquire the dataspacing using "GetDataSpacing"? For the specific dataset giving me trouble this class gives me a z spacing of 6 although when I view the dataset using other software the z spacing should clearly be 2. The DICOM header value 0018, 0050 Slice Thickness is 1.9999981. There are 51 images in the set and the z value of the DICOM header identifier 0020, 0032 Image Position (Patient) varies by 2 for each consecutive slice except the last one which varies by 6. If I remove the last image from the set I still get the same spacing problem. Can you help? Angela -----Original Message----- From: vtkusers-bounces+noeckera=ccf.org at vtk.org [mailto:vtkusers-bounces+noeckera=ccf.org at vtk.org] On Behalf Of Mathieu Malaterre Sent: Monday, October 08, 2007 4:57 AM To: m26404030 at john.petra.ac.id Cc: vtkusers at vtk.org Subject: Re: [vtkusers]ask how to read DICOM(again) On 10/6/07, m26404030 at john.petra.ac.id wrote: > thanx for ur answer again, but i am not allowed to use many libraries > in my project..i think i must use VTK only for the helping library. If you are stuck with VTK only, your only choice is to use vtkDICOMImageReader. > anyone can show me how to get the data such as patient age manually by > reading the .dcm files in C++? > > i dont understand the data structure of .dcm files.. You certainly don't want to dive into this, trust me :) > i have read several references but i still dont understand it. maybe > someone can give me the example code in C++ how to do it.. vtkDICOMImageReader *r = vtkDICOMImageReader::New() r->SetFileName( "image.dcm"); r->Update(); HTH -- Mathieu _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers =================================== Cleveland Clinic is ranked one of the top hospitals in America by U.S. News & World Report (2007). Visit us online at http://www.clevelandclinic.org for a complete listing of our services, staff and locations. Confidentiality Note: This message is intended for use only by the individual or entity to which it is addressed and may contain information that is privileged, confidential, and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. Thank you. From stevec at renci.org Mon Oct 8 13:35:29 2007 From: stevec at renci.org (Steve Chall) Date: Mon, 8 Oct 2007 13:35:29 -0400 Subject: [vtkusers] Displaying the intersection of a plane with a bunch of spheres In-Reply-To: <32149687.1191816741770.JavaMail.root@elwamui-norfolk.atl.sa.earthlink.net> Message-ID: <02f701c809d1$a204af50$55150e98@Stevec> David, I just ran into a problem with your approach that I'm hoping you can help me with. Each of the spheres needs to have a different color assigned to it. If I add each vtkSphereSource to a vtkAppendPolyData object, is there any way I maintain the association between each sphere and its assigned color? The only way I know of to do that is with vtkActor::GetProperty()::SetColor(.) and with the vtkAppendPolyData approach, the whole vtkAppendPolyData object is associated with a single actor, which means it gets just one color assignment. Is that correct? If so, can you suggest a workaround? I can still display all the spheres individually with their colors, I think,, but I can't figure out how to keep the color associations in the 2D slice. Thanks. -Steve _____ From: Steve Chall [mailto:steve.chall at earthlink.net] Sent: Monday, October 08, 2007 12:12 AM To: David.Pont at ensisjv.com; Steve Chall Cc: 'Theresa-Marie Rhyne'; vtkusers at vtk.org Subject: Re: [vtkusers] Displaying the intersection of a plane with a bunch of spheres Thanks, David, This looks eminently doable and makes plenty of sense. I'm going to try it today. -Steve -----Original Message----- From: David.Pont at ensisjv.com Sent: Oct 7, 2007 4:32 PM To: Steve Chall Cc: 'Theresa-Marie Rhyne' , vtkusers at vtk.org Subject: Re: [vtkusers] Displaying the intersection of a plane with a bunch of spheres "Steve Chall" wrote on 06/10/2007 07:35:07: > I want to generate a 3D rectangular volume of ~38,000 closely packed, > sometimes overlapping "particles" - initially spheres simply defined as a > list of centroids and a parallel list of radii, more complex objects later > on - and interactively look at arbitrary slices through the volume, with the > particle intersections represented as disks or circles in the 2D slice (down > to a single pixel, of course, if the slice is tangent to the surface of a > "particle"). Due to the number of "particles" I think performance scaling > issues might also be a concern at some point. > > I've been working with VTK now for some time in pursuit of a solution and > haven't really come to a satisfactory conclusion. I've tried the following > two approaches thus far: > > 1) Implicit booleans: I read in the sphere positions and radii and > construct a vtkSphere for each one. As I do that I add each to a > vtkImplicitBoolean object "sphereUnion" with the operation type set to > union. I then create a vtkPlane object (right now I'm not worrying about > interactively moving the plane around: I've just got it set through the > middle of the cluster of spheres so that I know, because I can see it, that > there's a non-empty intersection between the plane and some of the > spheres). Then I create another vtkImplicitBoolean called "slice" and add > to it the sphereUnion and the plane with operation type set to > intersection. I run slice into a vtkSampleFunction, that into a > vtkContourFilter into a vtkPolyDataMapper into a vtkActor and into a > vtkRenderer (the standard textbook sequence). I've tried looking at various > subsets - just the sphereUnion, just the plane, etc. - and I see what I > expect. But I'd think that the intersection of a bunch of spheres and a > plane would look like calamari or sausage slices: a cluster of rings or > disks on a 2D surface. However, what I'm seeing is a strange cluster of > lumpy, irregular 3D objects scattered through the 3D sample space that > perhaps roughly correspond to some or all of the original spheres. Thus far > I haven't made any sense of it. So on to the second approach: > > 2) Polygons: I create the vtkSpheres, but this time convert each into a > vtkPolyData object (vtkSphere -> vtkSampleFunction -> vtkContourFilter) and > add the resulting polygonal sphere to a vtkAppendPolyData object. I create > a vtkPlaneSource object (the polygonal equivalent to the vtkPlane implicit > surface object in approach 1 above) and a vtkProbeFilter. I set the probe's > input connection to the vtkPlaneSource and its source connection to the > vtkAppendPolydata object (the spheres) and then from there into the usual > pipeline to the renderer. Once again I think the subunits are ok - I can > display them and they look like I'd expect - but I don't see any probe'd > data at all. > > Does either of these approaches look promising, or is there an entirely > different direction that's more likely to produce useful results? I'd > appreciate any insights you might have. I can provide source code if it > would make it any clearer. Thanks for any help you can provide. You should try this: create your spheres as polydata objects with vtkSphereSource (instead of implicit spheres with vtkSphere) and merge into one data set with vtkAppendPolyData. Create an implicit plane with vtkPlane (as before) and use vtkCutter to generate the 2D slice through your polydata spheres. You should get 'circular' polylines (and/or points), increase the resolution in vtkSphereSource to get better approximation to circles (better calamari ;-). You can also cut more complex shapes this way, so long as you can represent them as polydata. Performance with this approach should be OK, unlike an approach based on vtkSampleFunction -> vtkContourFilter which typically requires high sampling density to get acceptable resolution. 38K particles is quite a few so vtkCutter will be busy but using vtkSampleFunction on this problem would be an order of magnitude (or 2) slower. If you really need to specify the particles as implicit functions you would use vtkSampleFunction -> vtkContour to turn them into polydata and then apply vtkCutter on the polydata, that way if you want to move the cutting plane around you will not have to re-execute vtkSampleFunction. HTH, Dave P > > Steve > > -Steve Chall > Senior Research Software Developer > Renaissance Computing Institute > Phone: 919-515-0051 > Email: stevec at renci.org > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From klaus.nowikow at gmx.at Mon Oct 8 13:45:02 2007 From: klaus.nowikow at gmx.at (Klaus Nowikow) Date: Mon, 08 Oct 2007 19:45:02 +0200 Subject: [vtkusers] Re: GetEventObject() returns different objects on different platforms In-Reply-To: References: Message-ID: Klaus Nowikow wrote: > [...] D'oh, I'm sorry, this should have gone to the wxPython group :-( -- Klaus From meisam.aliroteh at gmail.com Mon Oct 8 14:22:02 2007 From: meisam.aliroteh at gmail.com (Meisam Aliroteh) Date: Mon, 8 Oct 2007 14:22:02 -0400 Subject: [vtkusers] help request: medical imaging with VTK In-Reply-To: <590870.85834.qm@web26407.mail.ukl.yahoo.com> References: <590870.85834.qm@web26407.mail.ukl.yahoo.com> Message-ID: <394c464d0710081122v1bcdbeb4jdfe3d4787ee5ae31@mail.gmail.com> Alessio, As far as I know VTK cannot load Analyze files. Instead it can load DICOM files. You can either convert the analye files to DICOM (there are many convertes that do this, just google for it) or you can use ITK which can load analyze files. If you are implementing an application using only VTK, maybe you can write a tiny program using ITK that loads analyze files and then saves them as DICOM. This way you can use your own ITK-based program to convert your files to DICOM and then your VTK-based application can load them. On 10/8/07, Alessio Balzide wrote: > > hallo everybody! > May be this is a very simple question, but could somebody explain me how I > can import "analyze" datasets in VTK? Is there a reader for this data > format? > > Thanks a lot in advance! > Alex > > ------------------------------ > ------------------------------ > L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Pont at ensisjv.com Mon Oct 8 16:40:22 2007 From: David.Pont at ensisjv.com (David.Pont at ensisjv.com) Date: Tue, 9 Oct 2007 09:40:22 +1300 Subject: [vtkusers] Displaying the intersection of a plane with a bunch of spheres In-Reply-To: <02f701c809d1$a204af50$55150e98@Stevec> Message-ID: "Steve Chall" wrote on 09/10/2007 06:35:29: > David, > I just ran into a problem with your approach that I?m hoping you can > help me with. Each of the spheres needs to have a different color > assigned to it. If I add each vtkSphereSource to a > vtkAppendPolyData object, is there any way I maintain the > association between each sphere and its assigned color? The only way > I know of to do that is with vtkActor::GetProperty()::SetColor(?) > and with the vtkAppendPolyData approach, the whole vtkAppendPolyData > object is associated with a single actor, which means it gets just > one color assignment. Is that correct? If so, can you suggest a > workaround? I can still display all the spheres individually with > their colors, I think,, but I can?t figure out how to keep the color > associations in the 2D slice. Thanks. > > -Steve > Hi Steve, this is getting a bit outside my experience, ie I always use vtk to represent point scalar data and have never had to 'manually' assign colours. Typical work with vtk is to use point (or sometimes cell) scalar data to control colour or to assign actor colours, you are in between these cases. You could create a data set of just points with scalars and use glyphs (vtkGlyph3D) scaled and coloured according to scalar values, then cut them... But what are your ultimate goals here? there may be a way to do what you are asking now: spheres of differing sizes and colours but that might be a dead end when you move to the next step (you mentioned more complex shapes for particles). What kinds of particle shapes are you considering? How do you want colours to be assigned? Any other requirements? Are shapes, sizes and colours all independent? vtkProgrammableGlyphFilter could be worth a look (I've never used it) but it sounds like you could create points with one or more attribute values associated, then use those attributes to generate glyphs for your particles with desired features: size, colour... You might need to find a way to associate (new?) scalars with each glyph so when it is cut it will have the desired colour.... regards, Dave P > > From: Steve Chall [mailto:steve.chall at earthlink.net] > Sent: Monday, October 08, 2007 12:12 AM > To: David.Pont at ensisjv.com; Steve Chall > Cc: 'Theresa-Marie Rhyne'; vtkusers at vtk.org > Subject: Re: [vtkusers] Displaying the intersection of a plane with > a bunch of spheres > > Thanks, David, This looks eminently doable and makes plenty of > sense. I'm going to try it today. > > -Steve > -----Original Message----- > From: David.Pont at ensisjv.com > Sent: Oct 7, 2007 4:32 PM > To: Steve Chall > Cc: 'Theresa-Marie Rhyne' , vtkusers at vtk.org > Subject: Re: [vtkusers] Displaying the intersection of a plane with > a bunch of spheres > > "Steve Chall" wrote on 06/10/2007 07:35:07: > > > I want to generate a 3D rectangular volume of ~38,000 closely packed, > > sometimes overlapping "particles" - initially spheres simply defined as a > > list of centroids and a parallel list of radii, more complex objects later > > on - and interactively look at arbitrary slices through the volume, with the > > particle intersections represented as disks or circles in the 2D slice (down > > to a single pixel, of course, if the slice is tangent to the surface of a > > "particle"). Due to the number of "particles" I think performance scaling > > issues might also be a concern at some point. > > > > I?ve been working with VTK now for some time in pursuit of a solution and > > haven?t really come to a satisfactory conclusion. I?ve tried the following > > two approaches thus far: > > > > 1) Implicit booleans: I read in the sphere positions and radii and > > construct a vtkSphere for each one. As I do that I add each to a > > vtkImplicitBoolean object ?sphereUnion? with the operation type set to > > union. I then create a vtkPlane object (right now I?m not worrying about > > interactively moving the plane around: I?ve just got it set through the > > middle of the cluster of spheres so that I know, because I can see it, that > > there?s a non-empty intersection between the plane and some of the > > spheres). Then I create another vtkImplicitBoolean called ?slice? and add > > to it the sphereUnion and the plane with operation type set to > > intersection. I run slice into a vtkSampleFunction, that into a > > vtkContourFilter into a vtkPolyDataMapper into a vtkActor and into a > > vtkRenderer (the standard textbook sequence). I?ve tried looking at various > > subsets ? just the sphereUnion, just the plane, etc. ? and I see what I > > expect. But I?d think that the intersection of a bunch of spheres and a > > plane would look like calamari or sausage slices: a cluster of rings or > > disks on a 2D surface. However, what I?m seeing is a strange cluster of > > lumpy, irregular 3D objects scattered through the 3D sample space that > > perhaps roughly correspond to some or all of the original spheres. Thus far > > I haven't made any sense of it. So on to the second approach: > > > > 2) Polygons: I create the vtkSpheres, but this time convert each into a > > vtkPolyData object (vtkSphere -> vtkSampleFunction -> vtkContourFilter) and > > add the resulting polygonal sphere to a vtkAppendPolyData object. I create > > a vtkPlaneSource object (the polygonal equivalent to the vtkPlane implicit > > surface object in approach 1 above) and a vtkProbeFilter. I set the probe?s > > input connection to the vtkPlaneSource and its source connection to the > > vtkAppendPolydata object (the spheres) and then from there into the usual > > pipeline to the renderer. Once again I think the subunits are ok ? I can > > display them and they look like I?d expect ? but I don?t see any probe?d > > data at all. > > > > Does either of these approaches look promising, or is there an entirely > > different direction that?s more likely to produce useful results? I?d > > appreciate any insights you might have. I can provide source code if it > > would make it any clearer. Thanks for any help you can provide. > > You should try this: create your spheres as polydata objects with > vtkSphereSource (instead of implicit spheres with vtkSphere) and > merge into one data set with vtkAppendPolyData. Create an implicit > plane with vtkPlane (as before) and use vtkCutter to generate the 2D > slice through your polydata spheres. You should get 'circular' > polylines (and/or points), increase the resolution in > vtkSphereSource to get better approximation to circles (better calamari ;-). > > You can also cut more complex shapes this way, so long as you can > represent them as polydata. Performance with this approach should be > OK, unlike an approach based on vtkSampleFunction -> > vtkContourFilter which typically requires high sampling density to > get acceptable resolution. 38K particles is quite a few so vtkCutter > will be busy but using vtkSampleFunction on this problem would be an > order of magnitude (or 2) slower. > If you really need to specify the particles as implicit functions > you would use vtkSampleFunction -> vtkContour to turn them into > polydata and then apply vtkCutter on the polydata, that way if you > want to move the cutting plane around you will not have to re- > execute vtkSampleFunction. > > HTH, Dave P > > > > > Steve > > > > -Steve Chall > > Senior Research Software Developer > > Renaissance Computing Institute > > Phone: 919-515-0051 > > Email: stevec at renci.org > > > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > > org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From long353 at msn.com Mon Oct 8 19:22:01 2007 From: long353 at msn.com (jim yu) Date: Tue, 9 Oct 2007 11:22:01 +1200 Subject: [vtkusers] about ColorByArrayComponent method in the vtkMapper Message-ID: Hi guys, sorry to disturb you if you aren't interested. i want to use ColorByArrayComponent method in the vtkMapper to color Actor with a scalar array which is not store in the point. how do i tell ColorByArrayComponent which array should be used? waiting your reply online! thanks a lot! jim _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: From kidwei at 126.com Mon Oct 8 23:46:41 2007 From: kidwei at 126.com (kidwei) Date: Tue, 9 Oct 2007 11:46:41 +0800 (CST) Subject: [vtkusers] about the right scalar range of DICOM files In-Reply-To: <20071008160055.EED5F1F2004@public.kitware.com> References: <20071008160055.EED5F1F2004@public.kitware.com> Message-ID: <15156779.237741191901601871.JavaMail.coremail@bj126app51.126.com> Dear all, I have render a volume with a serial of DICOM files, But the scalar range of my dicom file might be 0 to 40, while in some example code I have seen the scalar range is 0 to 4000. when I use vtkPiecewiseFunction to set the opacity, when the value of AddPoint up to 40, all the materials were shown. How this happened? -------------- next part -------------- An HTML attachment was scrubbed... URL: From a.marocchino at imperial.ac.uk Tue Oct 9 04:35:46 2007 From: a.marocchino at imperial.ac.uk (Marocchino, Alberto) Date: Tue, 9 Oct 2007 09:35:46 +0100 Subject: [vtkusers] time-step label References: <20071008160051.7547F1F2391@public.kitware.com> Message-ID: <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> Hello everyone, I am making a little a movie using paraview. I have noticed that would be very nice to add a time bar or better a time label. So when playing the movie it would be also possible to know which fame the image refers to. Is there any way to do that? Which command should I use? Thanks for helping. Alberto ============================== Marocchino Alberto PhD / Research Assistant Plasma Physics Group, Blackett Laboratory, Imperial College, Prince Consort Road, London, SW7 2BW, U.K. tel. +44 20 7594 7649 fax. +44 20 7594 7658 Skype coyote_from_los_alamos -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/ms-tnef Size: 3860 bytes Desc: not available URL: From Michael.Knopke at gmx.de Tue Oct 9 06:46:15 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Tue, 9 Oct 2007 12:46:15 +0200 Subject: [vtkusers] about the right scalar range of DICOM files Message-ID: <000001c80a61$9e53b2d0$4378a8c0@imagesystems.local> Hi How do you read in your DICOM data? Note that you query for the actual scalartype with: Const char* myString; myString = myFilter->GetOutput()->GetScalarTypeAsString(); If I'm not mistaken it should be at least UnsignedShort for DICOM. Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From domi at vision.ee.ethz.ch Tue Oct 9 07:28:35 2007 From: domi at vision.ee.ethz.ch (domi at vision.ee.ethz.ch) Date: Tue, 09 Oct 2007 13:28:35 +0200 Subject: [vtkusers] interface VTK with Matlab In-Reply-To: <342086.99232.qm@web50602.mail.re2.yahoo.com> References: <342086.99232.qm@web50602.mail.re2.yahoo.com> Message-ID: <20071009132835.1zn4jbln4c00oo0k@email.ee.ethz.ch> Yes, the first few hits from "google vtk matlab" -- Dominik Quoting Vihang Patil : > Dear Users > Does any one here has interfaced VTK with Matlab, If yes, could some > one quide me and/or send some code to do so.. > Thank You > Regards > Vihang Patil > > > --------------------------------- > Take the Internet to Go: Yahoo!Go puts the Internet in your pocket: > mail, news, photos & more. From fuzengliang435 at gmail.com Tue Oct 9 07:38:11 2007 From: fuzengliang435 at gmail.com (orientation f) Date: Tue, 9 Oct 2007 19:38:11 +0800 Subject: [vtkusers] image histogram Message-ID: <2c06749d0710090438i76ccbadel6cd884b27727245@mail.gmail.com> Hi I want get the histogram of an image. But I can only find some examples in Tcl in web. It will be greatfull if you can give me a sample example in C++. thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.malaterre at gmail.com Tue Oct 9 08:12:25 2007 From: mathieu.malaterre at gmail.com (Mathieu Malaterre) Date: Tue, 9 Oct 2007 14:12:25 +0200 Subject: [vtkusers]ask how to read DICOM(again) In-Reply-To: References: Message-ID: On 10/8/07, Noecker, Angela M. wrote: > Mathieu, > > Could you explain exactly which fields in the DICOM header > vtkDICOMImageReader uses to parse the files? I guess you could grep the source to get the complete list. But this does not mean that the tag are actually used correctly, which seems to be your issue here. > I haven't dug into the > source code yet, but it seems clear that it accesses the following: > > 0020, 0032 Image Position (Patient) > 0020, 0037 Image Orientation (Patient) Correct. > Other than that it's not clear. It seems that when reading images from > a folder that contains multiple image series, the class looks for 0020, > 000E Series Instance UID to determine which images to include in the > volume it opens. Is that correct? I do not know. One way to test would be to put two slices with different Series Instance UID in the same directory and try it out. > I'm currently having issues with z spacing of a DICOM dataset. How does > vtkDICOMImageReader acquire the dataspacing using "GetDataSpacing"? For > the specific dataset giving me trouble this class gives me a z spacing > of 6 although when I view the dataset using other software the z spacing > should clearly be 2. The DICOM header value 0018, 0050 Slice Thickness > is 1.9999981. There are 51 images in the set and the z value of the > DICOM header identifier 0020, 0032 Image Position (Patient) varies by 2 > for each consecutive slice except the last one which varies by 6. If I > remove the last image from the set I still get the same spacing problem. Looking at your file, I can see that Spacing Between Slices (0018,0088) is 0. And indeed Slice Thickness (0018,0050) is 2.0. Thus the vtkDICOM reader is doing the right thing in NOT reporting that the spacing is 2.0. You should reread Part 3 of the DICOM standard (MR object) and you'll see that the correct tag should be Spacing Between Slices (Slice Thickness is a completely different information). > Can you help? Go get whoever gave you those DICOM files and check why the Spacing Between Slices is 0. If the distance in between two consecutive DICOM image is different from the value indicated in 0018,0088 then your vendor is lying when it says that he is producing DICOM files. Other than that I believe we have a correct (=robust) way of computing spacing in GDCM. Either get ITK to read your DICOM or get the official VTK bridge shipped in the gdcm tarball: http://www.creatis.insa-lyon.fr/Public/Gdcm/ HTH -- Mathieu From mathieu.malaterre at gmail.com Tue Oct 9 08:52:36 2007 From: mathieu.malaterre at gmail.com (Mathieu Malaterre) Date: Tue, 9 Oct 2007 14:52:36 +0200 Subject: [vtkusers]ask how to read DICOM(again): FAQ added Message-ID: Since the question comes often on the mailing list, I added a FAQ entry for it: http://www.vtk.org/Wiki/VTK_FAQ#The_spacing_in_my_DICOM_files_are_wrong let me know if it make any sense. -- Mathieu From firatdogan at gmail.com Tue Oct 9 09:20:12 2007 From: firatdogan at gmail.com (=?ISO-8859-9?Q?F=FDrat_Do=F0an?=) Date: Tue, 9 Oct 2007 16:20:12 +0300 Subject: [vtkusers] time-step label In-Reply-To: <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> References: <20071008160051.7547F1F2391@public.kitware.com> <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> Message-ID: <922c8c580710090620v266f93dcg6695ffb8e9f31c85@mail.gmail.com> Could you please try to add time line information into your data/image file, after that you have option to show/hide any data during the simulation in paraview. View timeline data in paraview and start animate it, On 10/9/07, Marocchino, Alberto wrote: > > Hello everyone, > I am making a little a movie using paraview. I have noticed that would be > very nice to add a time bar or better a time label. So when playing the > movie it would be also possible to know which fame the image refers to. > Is there any way to do that? > Which command should I use? > > Thanks for helping. > Alberto > > ============================== > Marocchino Alberto > > PhD / Research Assistant > > Plasma Physics Group, > Blackett Laboratory, > Imperial College, > Prince Consort Road, > London, SW7 2BW, U.K. > > tel. +44 20 7594 7649 > fax. +44 20 7594 7658 > Skype coyote_from_los_alamos > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From imikejackson at gmail.com Tue Oct 9 10:00:19 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Tue, 9 Oct 2007 10:00:19 -0400 Subject: [vtkusers] time-step label In-Reply-To: <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> References: <20071008160051.7547F1F2391@public.kitware.com> <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> Message-ID: Assuming your data is time based, here is what I use in ParaView: Time = [smGet Sources PrdsMGDislocationReader0 TimestepValues [smGet Sources PrdsMGDislocationReader0 TimeStep] 1.3e] PrdsMGDislocationReader0 is my data set. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 9, 2007, at 4:35 AM, Marocchino, Alberto wrote: > Hello everyone, > I am making a little a movie using paraview. I have noticed that > would be very nice to add a time bar or better a time label. So > when playing the movie it would be also possible to know which fame > the image refers to. > Is there any way to do that? > Which command should I use? > > Thanks for helping. > Alberto > > ============================== > Marocchino Alberto > > PhD / Research Assistant > > Plasma Physics Group, > Blackett Laboratory, > Imperial College, > Prince Consort Road, > London, SW7 2BW, U.K. > > tel. +44 20 7594 7649 > fax. +44 20 7594 7658 > Skype coyote_from_los_alamos > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From dave.demarle at kitware.com Tue Oct 9 10:06:59 2007 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 9 Oct 2007 10:06:59 -0400 Subject: [vtkusers] time-step label In-Reply-To: References: <20071008160051.7547F1F2391@public.kitware.com> <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> Message-ID: And in ParaView 3.2, there is an Annotate Time source for this purpose. On 10/9/07, Mike Jackson wrote: > Assuming your data is time based, here is what I use in ParaView: > > Time = [smGet Sources PrdsMGDislocationReader0 TimestepValues [smGet > Sources PrdsMGDislocationReader0 TimeStep] 1.3e] > > PrdsMGDislocationReader0 is my data set. > > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 9, 2007, at 4:35 AM, Marocchino, Alberto wrote: > > > Hello everyone, > > I am making a little a movie using paraview. I have noticed that > > would be very nice to add a time bar or better a time label. So > > when playing the movie it would be also possible to know which fame > > the image refers to. > > Is there any way to do that? > > Which command should I use? > > > > Thanks for helping. > > Alberto > > > > ============================== > > Marocchino Alberto > > > > PhD / Research Assistant > > > > Plasma Physics Group, > > Blackett Laboratory, > > Imperial College, > > Prince Consort Road, > > London, SW7 2BW, U.K. > > > > tel. +44 20 7594 7649 > > fax. +44 20 7594 7658 > > Skype coyote_from_los_alamos > > > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > > Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From kmorel at sandia.gov Tue Oct 9 11:15:09 2007 From: kmorel at sandia.gov (kmorel) Date: Tue, 09 Oct 2007 08:15:09 -0700 Subject: [vtkusers] Re: time-step label In-Reply-To: <208B2BB838A6E9469B1054B39F7FAE30BCA874@icex6.ic.ac.uk> Message-ID: Assuming you are using ParaView 3.0 or better: Sources -> Annotate Time. If you want the time annotation to be the time value for a particular data object (which can be different than the global animation time, then there is also a Filters -> Alphabetical -> Annotate Time. -Ken On 10/9/07 1:35 AM, "Marocchino, Alberto" wrote: > Hello everyone, > I am making a little a movie using paraview. I have noticed that would be very > nice to add a time bar or better a time label. So when playing the movie it > would be also possible to know which fame the image refers to. > Is there any way to do that? > Which command should I use? > > Thanks for helping. > Alberto > > ============================== > Marocchino Alberto > > PhD / Research Assistant > > Plasma Physics Group, > Blackett Laboratory, > Imperial College, > Prince Consort Road, > London, SW7 2BW, U.K. > > tel. +44 20 7594 7649 > fax. +44 20 7594 7658 > Skype coyote_from_los_alamos > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From biswajit07 at gmail.com Tue Oct 9 12:26:46 2007 From: biswajit07 at gmail.com (Biswajit paul) Date: Tue, 9 Oct 2007 21:56:46 +0530 Subject: [vtkusers] Surface area of a hyper triangle Message-ID: <5f72bb370710090926u6db265b0oae4fc04ef0bc1372@mail.gmail.com> Hi I have a surface in d-dimesnional(d>3) space whose equation is given by sum_{i=1 to d } x_i =1. i.e scalar sum of all the co-ordinate values of points lying on that surface is one. I am interested in knowing the surface area of such a surface in d-dimesional(d>3) space. Eg. in 3-D space, it will be a 2-D surface, basically a triangle, joining points (0,0,1),(0,1,0) and (1,0,0) and the surface area of this triangle will be 1/2 x sqrt (3/4). Regards Biswajit -------------- next part -------------- An HTML attachment was scrubbed... URL: From iryna at andrew.cmu.edu Tue Oct 9 20:51:50 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Tue, 9 Oct 2007 20:51:50 -0400 (EDT) Subject: [vtkusers] Stack overflow during running setting delny->SetTolerance less then 0.0001 Message-ID: <3750.128.237.224.231.1191977510.squirrel@128.237.224.231> Hello all, help me please to find out a problem! I use Delaunay2D for triangulation point clouds.Input data contain more then 1500 000 points ( ~47 Mb). When the value of Tolerance is less then 0.001 ( for example delny->SetTolerance(0.00001);) the following massage appears : Unhandled exception at 0x0078cc19 in My_data_asc_47Mb_tol_00001.exe: 0xC00000FD: Stack overflow. Any tips will be appreciated, Iryna From meisam.aliroteh at gmail.com Tue Oct 9 22:22:10 2007 From: meisam.aliroteh at gmail.com (Meisam Aliroteh) Date: Tue, 9 Oct 2007 22:22:10 -0400 Subject: [vtkusers] Stack overflow during running setting delny->SetTolerance less then 0.0001 In-Reply-To: <3750.128.237.224.231.1191977510.squirrel@128.237.224.231> References: <3750.128.237.224.231.1191977510.squirrel@128.237.224.231> Message-ID: <394c464d0710091922r5b3ee2c7xc7e501b83103105f@mail.gmail.com> What programming language are you using? I remember having similar problem on a machine with 2Gb of RAM. I used CMAKE to create visual studio solution files for my VTK-based programs (using C++) and for the VTK source code itself (when compiling VTK for the first time). In CMAKE there is a checkbox with label "Show Advanced Values". When you check this box, some advanced parameters will show up in the list of Cache Values. Look for the following flags (as many as you can find) and increase their value (I've set mine to 100Mb and I think the default is 10Mb): CMAKE_CXX_STACK_SIZE CMAKE_EXE_LINKER_FLAGS CMAKE_MODULE_LINKER_FLAGS CMAKE_SHARED_LINKER_FLAGS Of course there are other ways to increase the stack size of your program (depending on which language and which IDE you use) but using CMAKE seems to be the easy way. On 10/9/07, Iryna Pavlyshak wrote: > > Hello all, > > help me please to find out a problem! > I use Delaunay2D for triangulation point clouds.Input data contain more > then 1500 000 points ( ~47 Mb). When the value of Tolerance is less then > 0.001 ( for example delny->SetTolerance(0.00001);) the following massage > appears : > Unhandled exception at 0x0078cc19 in My_data_asc_47Mb_tol_00001.exe: > 0xC00000FD: Stack overflow. > > Any tips will be appreciated, > > Iryna > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhangtuo123 at yahoo.com.cn Tue Oct 9 22:42:11 2007 From: zhangtuo123 at yahoo.com.cn (tuo zhang) Date: Wed, 10 Oct 2007 10:42:11 +0800 (CST) Subject: [vtkusers] What's the version of OpenGL supported in VTK5.0 so far? Message-ID: <56296.22412.qm@web15802.mail.cnb.yahoo.com> Hi! What's the version of OpenGL supported in VTK5.0 so far? Thanks! Jedi 07/10/10 ___________________________________________________________ @yahoo.cn ????????????? http://mail.yahoo.cn/ From francois.bertel at kitware.com Wed Oct 10 00:12:20 2007 From: francois.bertel at kitware.com (Francois Bertel) Date: Wed, 10 Oct 2007 00:12:20 -0400 Subject: [vtkusers] What's the version of OpenGL supported in VTK5.0 so far? In-Reply-To: <56296.22412.qm@web15802.mail.cnb.yahoo.com> References: <56296.22412.qm@web15802.mail.cnb.yahoo.com> Message-ID: Hi, First let me clarify some terms: * a software component using OpenGL (like VTK) *requires* some minimal version of OpenGL and some minimal set of OpenGL extensions at runtime. At compile time, it *requires* an OpenGL header file (gl.h) compatible with some minimal version of the OpenGL API. * an OpenGL implementation (software (like Mesa) or hardware (combination of a graphic card and its driver) ) *supports* some OpenGL versions and a set of extensions. With that said, let me express your question the other way around and in two sub-questions: 1. What is the minimal OpenGL version of the API required to compile VTK5.0? The GL.h file provided by your compiler/system/SDK has to define at least the OpenGL 1.1 API. (Note: the functions and macros defined in higher OpenGL API versions or in other OpenGL extensions are provided by glext.h, glxext.h and wglext.h. Those 3 files are official files taken from opengl.org and already part of the VTK source tree). 2. What is the minimal OpenGL version required by VTK5.0 at runtime? All the VTK classes require an OpenGL implementation (software or hardware) >=1.1 except for vtkVolumeTextureMapper3D. If you want to use vtkVolumeTextureMapper3D, the following extensions or OpenGL versions are required (at runtime): * extension GL_EXT_texture3D or OpenGL>=1.2 and * extension GL_ARB_multitexture or OpenGL>=1.3 and either: * extensions GL_ARB_fragment_program and GL_ARB_vertex_program or: * extensions GL_NV_texture_shader2 and GL_NV_register_combiners and GL_NV_register_combiners2 Regards On 10/9/07, tuo zhang wrote: > Hi! > > What's the version of OpenGL supported in VTK5.0 so > far? > > Thanks! > > Jedi 07/10/10 > > > ___________________________________________________________ > @yahoo.cn ????????????? > http://mail.yahoo.cn/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Fran?ois Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA From jpr at creatis.insa-lyon.fr Wed Oct 10 04:26:26 2007 From: jpr at creatis.insa-lyon.fr (Jean-Pierre Roux) Date: Wed, 10 Oct 2007 10:26:26 +0200 Subject: [vtkusers] vtkOrthoSlicer Message-ID: <470C8CB2.4030804@creatis.univ-lyon1.fr> Hi, everybody. A lot of links about a vtkOrthoSlicer lead to http://zeus.ncsa.uiuc.edu/~mahall. Just a pb : zeus doesn't exists any longer at ncsa.uiuc.edu. Would any body know a newer link this class (I Googled for it, but I don't find anything) Thx for your help. Jean-Pierre Roux From zhaojunxp at hotmail.com Wed Oct 10 06:18:33 2007 From: zhaojunxp at hotmail.com (JohnMark) Date: Wed, 10 Oct 2007 18:18:33 +0800 Subject: [vtkusers] A VTK Bug Message-ID: hello , vtk users and developers , I find a vtk BUG now . and the bug is just as follows : I use VC++ and VTK to show a dcm image . and I build a project , its base class is CFormView . and then I use vtkDICOMImageReader and vtkImageViewer2 to show the image in an Picture of MFC . but here is the bug : all of my code are just : vtkDICOMImageReader * reader = vtkDICOMImageReader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFileName("D:/Data"); reader->Update(); vtkImageViewer2 * viewer = vtkImageViewer::New(); viewer->SetInput(reader->GetOutput()); viewer->SetSlice(0); and then I run it , I find the dcm image appears ! however , the dcm image is not in the Picture of MFC , but in a vtk render window . how surprising ! because I do not use the function Render ! at the same time , if I use vtkImageViewer , it will be OK . So , I want to ask : is this a vtk BUG ? or vtkImageViewer2 can not show the dcm image ? but from the description of this class , we can see : vtkImageViewer2 is a convenience class for displaying a 2D image . or this class is not perfect and we can not use this class now ? if this is not a bug , why does this happen ? and what is wrong with my code ? how can I use this class correctly ? thank you for any help ! Mark _________________________________________________________________ ? Live Search ??????? http://www.live.com/?searchOnly=true -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.b.schilling at googlemail.com Wed Oct 10 06:52:26 2007 From: r.b.schilling at googlemail.com (Ruben Schilling) Date: Wed, 10 Oct 2007 12:52:26 +0200 Subject: [vtkusers] Fwd: QVTK compile error with vtk 5 In-Reply-To: References: Message-ID: Hi, I am trying to compile the VTK 5.0.3 release on an X86_64 system running SuSe Linux, gcc 4.2.0 and Qt 4.3.2. For the build I chose a 'Release' build with a couple of optimization flags and (!) QVTK as well as GUI support. The compilation runs fine except QVTK which gives me the following error at compile time: [ 65%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLDataSetWriter.o [ 65%] Generating moc_QVTKWidget.cxx [ 66%] Generating moc_vtkEventQtSlotConnect.cxx Scanning dependencies of target QVTK [ 66%] Building CXX object GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o [ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStreamer.o [ 66%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLFileReadTester.o In file included from /project/imaging/software/include/QtCore/qatomic_arch.h:55, from /project/imaging/software/include/QtCore/qatomic.h:45, from /project/imaging/software/include/QtCore/qbytearray.h:43, from /project/imaging/software/include/QtCore/qstring.h:43, from /project/imaging/software/include/QtCore/qobject.h:45, from /scratch/local/schillin/VTKBuild/GUISupport/Qt/../../../vtk-5.0.3 /GUISupport/Qt/vtkEventQt SlotConnect.h:44, from /scratch/local/schillin/VTKBuild/GUISupport/Qt/moc_vtkEventQtSlotConnect.cxx:10: /project/imaging/software/include/QtCore/qatomic_i386.h: In function 'int q_atomic_test_and_set_ptr(volatile voi d*, void*, void*)': /project/imaging/software/include/QtCore/qatomic_i386.h:73: error: cast from 'void*' to 'int' loses precision /project/imaging/software/include/QtCore/qatomic_i386.h:74: error: cast from 'void*' to 'int' loses precision make[2]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o] Error 1 make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... [ 66%] Building CXX object Graphics/CMakeFiles/vtkGraphics.dir/vtkStripper.o I searched the bug tracker but couldn't find this error. Does anyone have a remedy for this or a recommendation what version of Qt would work? Is this a version mismatch? During the configuration all Qt files seemed to be found correctly, only Qt3 was not found (but is also not intended for usage). I would be grateful for any hints. Best regards Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From mongwarrior at yahoo.com Wed Oct 10 07:24:37 2007 From: mongwarrior at yahoo.com (mongwarrior) Date: Wed, 10 Oct 2007 04:24:37 -0700 (PDT) Subject: [vtkusers] To construct Geological Visualisation Message-ID: <13133889.post@talk.nabble.com> Dear Fellows; I have some data about a geographical surface, and i want to the show the image in VTK with Java. But i am a beginner, so i don't know the syntax very well. I practice with VTK, but i don't know the file operations. Could you help me to prepare the file and show the image in vtk?? I use these datas at the below: x(m) y(m) z(m) resistivity value(ohm.m) 2 1 -1,406 204,934 3 1 -1,406 108,021 4 1 -1,406 62,275 5 1 -1,406 47,608 ... Thanks for everything... -- View this message in context: http://www.nabble.com/To-construct-Geological-Visualisation-tf4600189.html#a13133889 Sent from the VTK - Users mailing list archive at Nabble.com. From dsur182 at gmail.com Wed Oct 10 07:42:21 2007 From: dsur182 at gmail.com (dsur s) Date: Wed, 10 Oct 2007 17:12:21 +0530 Subject: [vtkusers] 3D plotting Message-ID: I need to plot a 3D graph in the following scenario. 1. I have 3 set of values- depth, pressure and time. 2. For any particular time I have depth V/s Pressure data to plot. 3. I have data for 10 such time values. A surface should be plotted for these values and on this i need to do features like rotate etc. I am new to vtk. It would be great if i can get some pointers as to how to proceed with this. I tried creating a 2D plot (depth V/s Pressure) with vtkXYPlotActor and It worked out fine. Thanks, DS. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan.mutka at fer.hr Wed Oct 10 09:53:49 2007 From: alan.mutka at fer.hr (Alan Mutka) Date: Wed, 10 Oct 2007 15:53:49 +0200 Subject: [vtkusers] Flight interactor Message-ID: <470CD96D.5000208@fer.hr> Does anyone manage to "FLY" with vtkInteractorStyleFlight over model? I'm trying to get motion through model. This code... vtkInteractorStyleFlight flight = new vtkInteractorStyleFlight(); iren1.SetInteractorStyle(flight); enables only "CLICK" step motion, I need to get smooth motion like when you click f but without stopping. Thank you! From Suzanne.Little at ibai-institut.de Wed Oct 10 10:21:26 2007 From: Suzanne.Little at ibai-institut.de (Suzanne Little) Date: Wed, 10 Oct 2007 16:21:26 +0200 Subject: [vtkusers] reading 3D tif images Message-ID: <470CDFE6.6030504@ibai-institut.de> Dear all, I'm trying to read in a tiff stack -- single tiff image with a sequence of 2D slices. I think I should set the file dimensionality to 3 for the reader but that isn't working. Is it possible to read 3D tiff files into VTK? Below is python code I've been using for testing. I've run it using VTK 5.0 in Enthought's Python 2.4.3 distribution. I've also written equivalent C++ code and run that using VTK 5.0.3 compiled in Borland C++ (BDS2006). The render window shows a bar (120*1.6) based on the circle in the first image in the stack. I've successfully rendered the model by splitting the tiff manually into seperate 2D files (tiffsplit) and using SetFileName and SetFilePattern. #some python code for testing import vtk #setup renderer # --cut-- #read in the tiff stack reader = vtk.vtkTIFFReader() reader.SetFileDimensionality(3) reader.SetFileName("C:\vtk\mydata\stack.tif") reader.SetDataExtent(0,499,0,499,0,120) reader.SetDataSpacing(1.0,1.0,1.6) #ContourFilter -> PolyDataNormals -> PolyDataMapper -> Actor # --cut-- #camera, add actor, render # --cut-- Regards, Suzanne From clinton at elemtech.com Wed Oct 10 12:12:30 2007 From: clinton at elemtech.com (clinton at elemtech.com) Date: Wed, 10 Oct 2007 10:12:30 -0600 Subject: [vtkusers] Fwd: QVTK compile error with vtk 5 In-Reply-To: <20071010160059.7535D1F2848@public.kitware.com> References: <20071010160059.7535D1F2848@public.kitware.com> Message-ID: <200710101012.30587.clinton@elemtech.com> Looks like you're building a 64 bit VTK with a 32 bit Qt. Clint > Hi, > > I am trying to compile the VTK 5.0.3 release on an X86_64 system running > SuSe Linux, gcc 4.2.0 and Qt 4.3.2. For the build I chose a 'Release' build > with a couple of optimization flags and (!) QVTK as well as GUI support. > The compilation runs fine except QVTK which gives me the following error at > compile time: > > [ 65%] Building CXX object IO/CMakeFiles/vtkIO.dir/vtkXMLDataSetWriter.o > [ 65%] Generating moc_QVTKWidget.cxx > [ 66%] Generating moc_vtkEventQtSlotConnect.cxx > Scanning dependencies of target QVTK > [ 66%] Building CXX object > GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o > [ 66%] Building CXX object > Graphics/CMakeFiles/vtkGraphics.dir/vtkStreamer.o [ 66%] Building CXX > object IO/CMakeFiles/vtkIO.dir/vtkXMLFileReadTester.o In file included from > /project/imaging/software/include/QtCore/qatomic_arch.h:55, > from > /project/imaging/software/include/QtCore/qatomic.h:45, from > /project/imaging/software/include/QtCore/qbytearray.h:43, > from > /project/imaging/software/include/QtCore/qstring.h:43, > > from > /project/imaging/software/include/QtCore/qobject.h:45, from > /scratch/local/schillin/VTKBuild/GUISupport/Qt/../../../vtk-5.0.3 > /GUISupport/Qt/vtkEventQt > SlotConnect.h:44, > from > /scratch/local/schillin/VTKBuild/GUISupport/Qt/moc_vtkEventQtSlotConnect.cx >x:10: /project/imaging/software/include/QtCore/qatomic_i386.h: In function > 'int q_atomic_test_and_set_ptr(volatile voi > d*, void*, void*)': > /project/imaging/software/include/QtCore/qatomic_i386.h:73: error: cast > from 'void*' to 'int' loses precision > /project/imaging/software/include/QtCore/qatomic_i386.h:74: error: cast > from 'void*' to 'int' loses precision > make[2]: *** > [GUISupport/Qt/CMakeFiles/QVTK.dir/moc_vtkEventQtSlotConnect.o] Error 1 > make[1]: *** [GUISupport/Qt/CMakeFiles/QVTK.dir/all] Error 2 > make[1]: *** Waiting for unfinished jobs.... > [ 66%] Building CXX object > Graphics/CMakeFiles/vtkGraphics.dir/vtkStripper.o > > > > I searched the bug tracker but couldn't find this error. Does anyone have a > remedy for this or a recommendation what version of Qt would work? Is this > a version mismatch? During the configuration all Qt files seemed to be > found correctly, only Qt3 was not found (but is also not intended for > usage). > > I would be grateful for any hints. > > Best regards > Ruben From francois.bertel at kitware.com Wed Oct 10 13:28:08 2007 From: francois.bertel at kitware.com (Francois Bertel) Date: Wed, 10 Oct 2007 13:28:08 -0400 Subject: [vtkusers] What's the version of OpenGL supported in VTK5.0 so far? In-Reply-To: References: <56296.22412.qm@web15802.mail.cnb.yahoo.com> Message-ID: <470D0BA8.40705@kitware.com> For future reference, I added a section in the FAQ: http://www.vtk.org/Wiki/VTK_FAQ#OpenGL_requirements With a sub-section for VTK5.0: http://www.vtk.org/Wiki/VTK_FAQ#VTK_5.0 Francois Bertel wrote: > Hi, > > First let me clarify some terms: > > * a software component using OpenGL (like VTK) *requires* some minimal > version of OpenGL and some minimal set of OpenGL extensions at > runtime. At compile time, it *requires* an OpenGL header file (gl.h) > compatible with some minimal version of the OpenGL API. > > * an OpenGL implementation (software (like Mesa) or hardware > (combination of a graphic card and its driver) ) *supports* some > OpenGL versions and a set of extensions. > > With that said, let me express your question the other way around and > in two sub-questions: > > 1. What is the minimal OpenGL version of the API required to compile VTK5.0? > > The GL.h file provided by your compiler/system/SDK has to define at > least the OpenGL 1.1 API. (Note: the functions and macros defined in > higher OpenGL API versions or in other OpenGL extensions are provided > by glext.h, glxext.h and wglext.h. Those 3 files are official files > taken from opengl.org and already part of the VTK source tree). > > 2. What is the minimal OpenGL version required by VTK5.0 at runtime? > > All the VTK classes require an OpenGL implementation (software or > hardware) >=1.1 except for vtkVolumeTextureMapper3D. > > If you want to use vtkVolumeTextureMapper3D, the following extensions > or OpenGL versions are required (at runtime): > > * extension GL_EXT_texture3D or OpenGL>=1.2 > and > * extension GL_ARB_multitexture or OpenGL>=1.3 > and either: > * extensions GL_ARB_fragment_program and GL_ARB_vertex_program > or: > * extensions GL_NV_texture_shader2 and GL_NV_register_combiners and > GL_NV_register_combiners2 > > Regards > > On 10/9/07, tuo zhang wrote: >> Hi! >> >> What's the version of OpenGL supported in VTK5.0 so >> far? >> >> Thanks! >> >> Jedi 07/10/10 >> >> >> ___________________________________________________________ >> @yahoo.cn ????????????? >> http://mail.yahoo.cn/ >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > > -- Fran?ois Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA From fredmfp at gmail.com Wed Oct 10 14:24:12 2007 From: fredmfp at gmail.com (fred) Date: Wed, 10 Oct 2007 20:24:12 +0200 Subject: [vtkusers] RAM question... Message-ID: <470D18CC.5040707@gmail.com> Hi, Which one is the most relevant, for big data ? The RAM amount of the GPU or the RAM amount for the CPU ? In other words, how are used each ? Example: laptop: debian etch x86_64 GCU: nvidia 7900 GS with 512 MB, Core 2 Duo with 2 GB I can display 15000 scatters as glyph (little spheres) for a theta * phi resolution of 6*6 on this laptop, using mayavi2. If I modify theta * phi resolution to, say, 18*18, no glyph is displayed at all. If I lack of RAM memory on my laptop, I don't get any explicit message or warning. desktop: debian etch x86_64 GCU: 2 x nvidia 6800 GT (256 MB each) in SLI mode, Pentium D with 4 GB I can display glyphs with a theta*phi resolution up to 18*18 without any problem. I get the same results with paraview-3.1: no glyph for resolution 18x18 on my laptop, no problem on the desktop. TIA. Cheers, -- http://scipy.org/FredericPetit From couge.chen at gmail.com Wed Oct 10 14:45:09 2007 From: couge.chen at gmail.com (Couge Chen) Date: Wed, 10 Oct 2007 14:45:09 -0400 Subject: [vtkusers] 3d array visualization Message-ID: <2a05ece60710101145x2de8cb3fr31fe3a36b0c0992a@mail.gmail.com> Hi all, I want to show a 3d array of size (50X50X50). And I don't want generate any data file and read it. So which "Reader" can directly read this array? Thanks a lot! Couge -------------- next part -------------- An HTML attachment was scrubbed... URL: From francois.bertel at kitware.com Wed Oct 10 14:50:56 2007 From: francois.bertel at kitware.com (Francois Bertel) Date: Wed, 10 Oct 2007 14:50:56 -0400 Subject: [vtkusers] 3d array visualization In-Reply-To: <2a05ece60710101145x2de8cb3fr31fe3a36b0c0992a@mail.gmail.com> References: <2a05ece60710101145x2de8cb3fr31fe3a36b0c0992a@mail.gmail.com> Message-ID: <470D1F10.2060402@kitware.com> Guessing you have a C array of raw data, vtkImageImport is probably a good candidate: http://www.vtk.org/doc/nightly/html/classvtkImageImport.html Couge Chen wrote: > Hi all, > > I want to show a 3d array of size (50X50X50). And I don't want generate > any data file and read it. So which "Reader" can directly read this array? > > Thanks a lot! > > Couge -- Fran?ois Bertel, PhD | Kitware Inc. Suite 204 1 (518) 371 3971 x113 | 28 Corporate Drive | Clifton Park NY 12065, USA From cepeloquin at gmail.com Wed Oct 10 15:30:14 2007 From: cepeloquin at gmail.com (Catherine Peloquin) Date: Wed, 10 Oct 2007 14:30:14 -0500 Subject: [vtkusers] 3d array visualization In-Reply-To: <470D1F10.2060402@kitware.com> References: <2a05ece60710101145x2de8cb3fr31fe3a36b0c0992a@mail.gmail.com> <470D1F10.2060402@kitware.com> Message-ID: <3a72f1140710101230x5c93fca1m2857c7512a8805a9@mail.gmail.com> Another option to read in an array is the following: int i, j, k; vtkImageData *image; image = vtkImageData::New(); image->SetOrigin(0,0,0); image->SetScalarTypeToInt(); //I found the data type earlier in the program, this will change depending on your data type image->SetNumberOfScalarComponents(0); image->SetSpacing(xspacing, yspacing, zspacing); //the spacing between rows and columns of data and between slices image->SetExtent(0, Rows-1, 0, Columns-1, 0, slices-1); image->AllocateScalars(); int *ptr = static_cast(image->GetScalarPointer()); for(i = 0; i< slices; i++){ for (j = 0; j < Columns; ++j) { for (k = 0; k < Rows; ++k) { *ptr++ = HUData[i][j][k]; //HUData is 3D array of pixel data from DCMTK } } } You can then use "image" in VTK functions like ContourFilter(). Catherine Peloquin On 10/10/07, Francois Bertel wrote: > > Guessing you have a C array of raw data, vtkImageImport is probably a good > candidate: > > http://www.vtk.org/doc/nightly/html/classvtkImageImport.html > > Couge Chen wrote: > > Hi all, > > > > I want to show a 3d array of size (50X50X50). And I don't want generate > > any data file and read it. So which "Reader" can directly read this > array? > > > > Thanks a lot! > > > > Couge > > > -- > Fran?ois Bertel, PhD | Kitware Inc. Suite 204 > 1 (518) 371 3971 x113 | 28 Corporate Drive > | Clifton Park NY 12065, USA > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryteng at gmail.com Wed Oct 10 18:11:20 2007 From: ryteng at gmail.com (Sonca Teng) Date: Wed, 10 Oct 2007 15:11:20 -0700 Subject: [vtkusers] Problem/Bug with vtkProperty2D class Message-ID: <4d6a9b620710101511x234550b4v731fdba3216b802c@mail.gmail.com> Hi all, I am working with the vtkProperty2D class, and have discovered that the public member functions in the documentation below: http://www.vtk.org/doc/release/5.0/html/a01924.html do not correspond to the header file at all. You can see the header file here: http://www.vtk.org/doc/release/5.0/html/a03443.html I need to somehow set the color and pointsize for my application and am unsure how to proceed. The header file does not contain any documentation on how to use the fields of these functions. Can anyone give me any advice on how to proceed? Thanks! Sonca Teng MIRG -------------- next part -------------- An HTML attachment was scrubbed... URL: From vidyadhar at lucidindia.com Thu Oct 11 00:39:36 2007 From: vidyadhar at lucidindia.com (Vidyadhar) Date: Thu, 11 Oct 2007 10:09:36 +0530 Subject: [vtkusers] A VTK Bug References: Message-ID: <006001c80bc0$bef82920$1601a8c0@quad02> Hi, Do these things. 1) Get HWND for your MFC control (I think you are using Picture). 2) Get its client rect (width and height). 3) Invoke viewer->SetParentId method and pass HWND to it. 4) Invoke viewer->SetSize(width,height). This is not a bug. HTH Vidyadhar ----- Original Message ----- From: JohnMark To: vtkusers at vtk.org Sent: Wednesday, October 10, 2007 3:48 PM Subject: [vtkusers] A VTK Bug hello , vtk users and developers , I find a vtk BUG now . and the bug is just as follows : I use VC++ and VTK to show a dcm image . and I build a project , its base class is CFormView . and then I use vtkDICOMImageReader and vtkImageViewer2 to show the image in an Picture of MFC . but here is the bug : all of my code are just : vtkDICOMImageReader * reader = vtkDICOMImageReader::New(); reader->SetDataByteOrderToLittleEndian(); reader->SetFileName("D:/Data"); reader->Update(); vtkImageViewer2 * viewer = vtkImageViewer::New(); viewer->SetInput(reader->GetOutput()); viewer->SetSlice(0); and then I run it , I find the dcm image appears ! however , the dcm image is not in the Picture of MFC , but in a vtk render window . how surprising ! because I do not use the function Render ! at the same time , if I use vtkImageViewer , it will be OK . So , I want to ask : is this a vtk BUG ? or vtkImageViewer2 can not show the dcm image ? but from the description of this class , we can see : vtkImageViewer2 is a convenience class for displaying a 2D image . or this class is not perfect and we can not use this class now ? if this is not a bug , why does this happen ? and what is wrong with my code ? how can I use this class correctly ? thank you for any help ! Mark ------------------------------------------------------------------------------ ????? Hotmail???????????????? ????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mongwarrior at yahoo.com Thu Oct 11 02:50:07 2007 From: mongwarrior at yahoo.com (John Ownsoul) Date: Wed, 10 Oct 2007 23:50:07 -0700 (PDT) Subject: [vtkusers] About constructing a 3D geographical surface Message-ID: <13150409.post@talk.nabble.com> Dear Fellows; I have some data about a geographical surface, and i want to show an image in VTK (with Java). But i am a beginner, so i don't know the syntax very well. I practice with VTK, but i don't know the file operations. Could you help me to construct the file and show the image in vtk?? I use these datas at the below: x(m) y(m) z(m) resistivity value(ohm.m) 2 1 -1,406 204,934 3 1 -1,406 108,021 4 1 -1,406 62,275 5 1 -1,406 47,608 ... Thanks for everything... -- View this message in context: http://www.nabble.com/About-constructing-a-3D-geographical-surface-tf4605432.html#a13150409 Sent from the VTK - Users mailing list archive at Nabble.com. From mail_di_ale at yahoo.it Thu Oct 11 04:37:15 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Thu, 11 Oct 2007 10:37:15 +0200 (CEST) Subject: [vtkusers] interactive volume slicing Message-ID: <238135.99685.qm@web26412.mail.ukl.yahoo.com> good morning everybody! I'm visualizing a 3D "analyze" volume, slice by slice. Ok I can do that, but I cannot interact with the slices (moving them through the volume). Can someone explain me how to do that? Here's my obviously-not-working idea: (the code is in C++) I use "vtkInteractorStyleUser.h", create a callback and updatie the position of the slices. But it doesn't work.. even if I re-render the window. Why???? This is my code: //Extract a slice vtkExtractVOI *extractor_XY = vtkExtractVOI::New(); extractor_XY->SetInputConnection(ImgReader->GetOutputPort()); extractor_XY->SetVOI( 0, hdr.dim[1]-1, 0, hdr.dim[2]-1, scroll_Z, scroll_Z); extractor_XY->Update(); global_extrator_XY = extractor_XY; //Create its texture vtkTexture *texture_XY = vtkTexture::New(); texture_XY->SetInputConnection(extractor_XY->GetOutputPort()); texture_XY->InterpolateOn(); texture_XY->SetLookupTable(grayScaleLookupTable); texture_XY->MapColorScalarsThroughLookupTableOn(); global_ texture_XY = texture_XY; //Create a plane for the texture vtkPlaneSource *plane_XY = vtkPlaneSource::New(); plane_XY->SetXResolution(1); plane_XY->SetYResolution(1); plane_XY->SetOrigin(0.0, 0.0, scroll_Z); plane_XY->SetPoint1(hdr.dim[1]-1, 0.0, scroll_Z); plane_XY->SetPoint2(0.0, hdr.dim[1]-1, scroll_Z); global_plane_XY = plane_XY; //Shot it through the pipeline vtkPolyDataMapper *mapper_XY = vtkPolyDataMapper::New(); mapper_XY->SetInputConnection(plane_XY->GetOutputPort()); mapper_XY->ImmediateModeRenderingOn(); global_mapper_XY = mapper_XY; vtkActor *actorSlice_XY = vtkActor::New(); actorSlice_XY->SetMapper(mapper_XY); actorSlice_XY->SetTexture(texture_XY); and in the callback, I change the "scroll_Z" value, update the global variables, and re-render... Why the hell is it not working????? Thanks for your comprehension Ale --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From dcthomp at sandia.gov Thu Oct 11 04:39:57 2007 From: dcthomp at sandia.gov (Thompson, David C) Date: Thu, 11 Oct 2007 02:39:57 -0600 Subject: [vtkusers] (no subject) Message-ID: Good very late night everyone, I've just checked in a change to the vtkAbstractArray class. Each array you create now contains an (initially NULL) pointer to a vtkInformation object. This doesn't significantly change the size of vtkAbstractArray objects and provides a nice way to annotate arrays with additional information. The SetInformation() member function is protected (you may not assign an information object to an array). If a vtkInformation object does not exist when you call GetInformation(), one will be created for you and its address returned. Thus you should always use GetInformation(), even from within vtkAbstractArray and its descendants. The vtkDataArray has had the member variables that stored per-component range information removed; this information is now stored in the vtkInformation object associated with the array. When ComputeRange( int c ) is called, the c-th component range is computed and stored in a vtkInformationVector object associated with the vtkDataArray::PER_COMPONENT key. The c-th entry of that vector is a double vector with two entries (min/max) associated with the vtkDataArray::COMPONENT_RANGE key. If you request the L2 norm (c == -1), then a two-entry double vector associated with the vtkDataArray::L2_NORM_RANGE is stored in the array's Information object. You should not have to worry about this in general, however if you plan to use the array's Information object, you must be aware that the information object's MTime is compared to the array's MTime to decide whether the range needs to be recomputed. So, if you are about to modify the information object, you should compare its MTime to the array's MTime and either 1. Mark the computed ranges as invalid (i.e., [VTK_MAX_DOUBLE,VTK_MIN_DOUBLE]), 2. Recompute the ranges, or 3. Remove the information keys holding the ranges. Otherwise, the ranges may not be synchronized with the array values. While this may sound like a bit of a hassle, it ends up reducing the size of vtkDataArray objects thusly: Before adding Information and removing ComponentRange cache in favor of PER_COMPONENT, COMPONENT_RANGE, and L2_NORM_RANGE: sizeof(AbstractArray)=72 sizeof(vtkStringArray)=96 sizeof(vtkDataArray)=360 sizeof(vtkDoubleArray)=400 After: sizeof(AbstractArray)=80 sizeof(vtkStringArray)=104 sizeof(vtkDataArray)=104 sizeof(vtkDoubleArray)=144 (These sizes are on a 64-bit system.) When vtkAbstractArray::DeepCopy() is called, the vtkInformation object is deep copied as well. One remaining issue is how filters deal with the vtkInformation object when passing arrays from input to output. Currently filters ignore the information object. In the future, this behavior may change. A note has been added to the member documentation on the appropriate members of vtkDataSetAttributes (CopyAllocate and CopyData). If you have any good ideas on how information can be copied while maintaining consistency and without modifying every filter in VTK, please let me know. You should also let me know if you encounter any problems with the change or have (constructive) criticism. Thanks, David -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail_di_ale at yahoo.it Thu Oct 11 04:55:51 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Thu, 11 Oct 2007 10:55:51 +0200 (CEST) Subject: [vtkusers] interactive volume slicing In-Reply-To: <238135.99685.qm@web26412.mail.ukl.yahoo.com> Message-ID: <7552.7975.qm@web26408.mail.ukl.yahoo.com> sorry, forget my previous post.. I just found the solution: for whoever could be interested, this is my working :) callback: void callback(vtkObject *caller, unsigned long event_id, void *clientdata, void *calldata) { vtkRenderWindowInteractor *interactor = static_cast< vtkRenderWindowInteractor* >( clientdata ); //why is this necessary? vtkInteractorStyleUser *style = static_cast< vtkInteractorStyleUser* >( caller ); switch( event_id ){ case vtkCommand::CharEvent: switch( style->GetChar() ){ case 'h': scroll_Z=scroll_Z+10; global_XYslice->SetDisplayExtent(0,127, 0,127, scroll_Z,scroll_Z); g_win->Render(); break; } break; } } thanks anyway.. Alessio Balzide ha scritto: good morning everybody! I'm visualizing a 3D "analyze" volume, slice by slice. Ok I can do that, but I cannot interact with the slices (moving them through the volume). Can someone explain me how to do that? Here's my obviously-not-working idea: (the code is in C++) I use "vtkInteractorStyleUser.h", create a callback and updatie the position of the slices. But it doesn't work.. even if I re-render the window. Why???? This is my code: //Extract a slice vtkExtractVOI *extractor_XY = vtkExtractVOI::New(); extractor_XY->SetInputConnection(ImgReader->GetOutputPort()); extractor_XY->SetVOI( 0, hdr.dim[1]-1, 0, hdr.dim[2]-1, scroll_Z, scroll_Z); extractor_XY->Update(); global_extrator_XY = extractor_XY; //Create its texture vtkTexture *texture_XY = vtkTexture::New(); texture_XY->SetInputConnection(extractor_XY->GetOutputPort()); texture_XY->InterpolateOn(); texture_XY->SetLookupTable(grayScaleLookupTable); texture_XY->MapColorScalarsThroughLookupTableOn(); global_ texture_XY = texture_XY; //Create a plane for the texture vtkPlaneSource *plane_XY = vtkPlaneSource::New(); plane_XY->SetXResolution(1); plane_XY->SetYResolution(1); plane_XY->SetOrigin(0.0, 0.0, scroll_Z); plane_XY->SetPoint1(hdr.dim[1]-1, 0.0, scroll_Z); plane_XY->SetPoint2(0.0, hdr.dim[1]-1, scroll_Z); global_plane_XY = plane_XY; //Shot it through the pipeline vtkPolyDataMapper *mapper_XY = vtkPolyDataMapper::New(); mapper_XY->SetInputConnection(plane_XY->GetOutputPort()); mapper_XY->ImmediateModeRenderingOn(); global_mapper_XY = mapper_XY; vtkActor *actorSlice_XY = vtkActor::New(); actorSlice_XY->SetMapper(mapper_XY); actorSlice_XY->SetTexture(texture_XY); and in the callback, I change the "scroll_Z" value, update the global variables, and re-render... Why the hell is it not working????? Thanks for your comprehension Ale --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail_______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From khademi at cse.shirazu.ac.ir Thu Oct 11 06:29:34 2007 From: khademi at cse.shirazu.ac.ir (Somayeh Khademi) Date: Thu, 11 Oct 2007 13:59:34 +0330 (IRST) Subject: [vtkusers] Wrapping VTK to python Message-ID: <57663.194.225.33.7.1192098574.squirrel@mail.cse.shirazu.ac.ir> -- Hello, I want use vtk in python,How can I wrapping VTK to python? please help me about it? Thanks Somayeh ----------------------------------------------------- sent using CSE webmail [http://www.cse.shirazu.ac.ir] From fuzengliang435 at gmail.com Thu Oct 11 07:01:39 2007 From: fuzengliang435 at gmail.com (orientation f) Date: Thu, 11 Oct 2007 19:01:39 +0800 Subject: [vtkusers] how to use classWizard Message-ID: <2c06749d0710110401l60f189fblc3d8658189fefe83@mail.gmail.com> Hello I make a vtk project sucessfully with CMake. But when I use ClassWizard menu, it told me that " ***.clw doesn't exist", and the ClassWizard menu is blank after I select yes to build it from my project source. so how can I use ClassWizard successfully? thank you very much. -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhaojunxp at hotmail.com Thu Oct 11 08:22:49 2007 From: zhaojunxp at hotmail.com (JohnMark) Date: Thu, 11 Oct 2007 20:22:49 +0800 Subject: [vtkusers] A Problem About VTK & MFC Message-ID: Hi , vtk users , I meet a delicate problem when I write program to show a image , I use vtkDICOMImageReader ,vtkImageViewer2 and MFC , but I try use the Picture control in MFC (its base class is CFormView) , and I want to make the image shown in the Picture control . unluckily , if I use SetDirectoryName() method of vtkDICOMImageReader , I will get a blank Picture control and another vtk render window , but the image should be shown in the Picture control ! while I use the SetFileName () method and set only one image's path , that will be OK , the image is shown in the Picture control . however , if I change the SetFileName() method to SetDirectoryName() , what I get is just a blank Picture control and a additional vtk render window , here is the image ! what is more , I have tried another way to do it , I change to use the MFC view (its base class is CView) , the result is : if I use SetFileName() of vtkDICOMImageReader and only read one image , it will be OK , but if I use SetDirectoryName() , I will get a blank view window and an additional vtk render window ! and I have doubted whether my pipeline is wrong , but if I change vtkImageViewer2 to vtkImageViewer , all will be OK , but I want to use vtkImageViewer2 , because it allows us to add other actor . so , who can tell me how should I use vtkIamgeViewer2 & vtkDICOMImageReader in MFC ? thank you with great regards ! Mark _________________________________________________________________ ? Live Search ??????? http://www.live.com/?searchOnly=true -------------- next part -------------- An HTML attachment was scrubbed... URL: From lledo.museros at itc.uji.es Thu Oct 11 11:42:47 2007 From: lledo.museros at itc.uji.es (Lledo Museros Cabedo) Date: Thu, 11 Oct 2007 17:42:47 +0200 Subject: [vtkusers] How to use GPU (of a NVIDIA 8600GTS graphic card) in VTK? Message-ID: Hi, We would like to know if it is possible to use the GPU of an NVIDIA 8600GTS graphic card from a VTK application. The VTK applications is also integrated into MFC and it is implemented using MS Visual Studio .NET 2003. We have read the next message in the forum: [vtkusers] How to use the GPU in VTK Huiqun Zhou hqzhou at nju.edu.cn Tue Jul 27 23:34:41 EDT 2004 * Previous message: [vtkusers] How to use the GPU in VTK * Next message: [vtkusers] How to draw an image with fixed size?? * Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Do you mean to use graphics hardware directly? At lower level VTK uses OpenGL or Mesa, and it is the driver on your system which is responsible for talking with the hardware. Huiqun Zhou ----- Original Message ----- From: > To: > Sent: Tuesday, July 27, 2004 9:57 PM Subject: [vtkusers] How to use the GPU in VTK > Hi,all > I am wondering whether we can use the hardware such sa GPU. > Is there some class or some methods to the the shade ,buffer and so on > thank you! But we have seen that our application is using the CPU and not the GPU, so is any specific driver or configuration needed to use GPU? If yes, please could you say which one? Best regards, LLEDO -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.b.schilling at googlemail.com Thu Oct 11 12:25:28 2007 From: r.b.schilling at googlemail.com (Ruben Schilling) Date: Thu, 11 Oct 2007 18:25:28 +0200 Subject: [vtkusers] Re: QVTK compile error with vtk 5 Message-ID: Hi, thanks for your info, you seemed to be right. Unfortunatly it ultimately didn't lead to a succesful build. I have still trouble with QVTK on the same machine. I ran into this error: Linking CXX shared library ../../bin/libQVTKWidgetPlugin.so /usr/bin/ld: /arch/x86_64/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/crtbeginT.o: relocation R_X86_64_32 against `__deregister_frame_info' can not be used when making a shared object; recompile with -fPIC /arch/x86_64/usr/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.2.0/crtbeginT.o: could not read symbols: Bad value collect2: ld returned 1 exit status make[2]: *** [bin/libQVTKWidgetPlugin.so] Error 1 make[2]: Target `GUISupport/Qt/CMakeFiles/QVTKWidgetPlugin.dir/build' not remade because of errors. I had the same error with building my Qt version (4.3.2) and I found it in a list post, that it was known and related to the combination of gcc-4.2.x and binutils. Since I don't have the permission to really reinstall the binutils I got around it by building a static version of the Qt library, which is installed now. A quick check of a small demo application (C++/Qt) seems to work with it fine. Now I wonder, why I get the same error again (of course -fPIC is standard on x86_64 systems and I did not check the "build shared" option in ccmake, when configuring vtk, but indeed added a CXXFLAG '-static' to force a static build (doens't work in either case by the way). Any ideas? Since QVTK really enables me to write a full blown application with VTK it is kind of essential. Suggestions are most welcome. Regards Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From r.b.schilling at googlemail.com Thu Oct 11 12:32:49 2007 From: r.b.schilling at googlemail.com (Ruben Schilling) Date: Thu, 11 Oct 2007 18:32:49 +0200 Subject: [vtkusers] supplement: QVTK with vtk 5.0.3 and Qt 4.3.2 Message-ID: Hi again, I just saw, that actually switching in the ccmake configuration BUILD_SHARED_LIBS *OFF and adding a '-static' to the CXXFLAGS does not prevent vtk 5.0.3 from being built as a shared library! What is wrong with this? Can I specify a static library otherwise with ccmake? (that might actually help building vtk 5.0.3 with Qt 4.3.2 on a x86_64). regards Ruben -------------- next part -------------- An HTML attachment was scrubbed... URL: From clinton at elemtech.com Thu Oct 11 12:43:33 2007 From: clinton at elemtech.com (clinton at elemtech.com) Date: Thu, 11 Oct 2007 10:43:33 -0600 Subject: [vtkusers] Re: supplement: QVTK with vtk 5.0.3 and Qt 4.3.2 In-Reply-To: References: Message-ID: <200710111043.33942.clinton@elemtech.com> On Thursday 11 October 2007 10:32:49 am Ruben Schilling wrote: > Hi again, > > I just saw, that actually switching in the ccmake configuration > > BUILD_SHARED_LIBS *OFF > and adding a '-static' to the CXXFLAGS > > does not prevent vtk 5.0.3 from being built as a shared library! What is > wrong with this? Can I specify a static library otherwise with ccmake? VTK is built as a static libraries. The one library you're having problems with is a Qt Designer *plugin* which is supposed to be shared. In VTK 5.0, the plugin linked with VTK, which led to link errors on some systems, like you're seeing. Which is linking non-PIC objects (that's the static VTK libraries), with a shared library (that's the Qt Designer plugin). Two possible workarounds are to add -fPIC as the linker error suggested, or build VTK as shared libraries. This issue has already been fixed in the CVS version of VTK. So if you want to use that, you can. Clint From ryteng at gmail.com Thu Oct 11 13:44:10 2007 From: ryteng at gmail.com (Sonca Teng) Date: Thu, 11 Oct 2007 10:44:10 -0700 Subject: [vtkusers] Re: Problem/Bug with vtkProperty2D class In-Reply-To: <4d6a9b620710101511x234550b4v731fdba3216b802c@mail.gmail.com> References: <4d6a9b620710101511x234550b4v731fdba3216b802c@mail.gmail.com> Message-ID: <4d6a9b620710111044y657f0fbej3bb47f7c68fabf26@mail.gmail.com> My mistake, I just realized that these functions are inherited from elsewhere. D'oh. =) Sonca On 10/10/07, Sonca Teng wrote: > > Hi all, > > I am working with the vtkProperty2D class, and have discovered that the > public member functions in the documentation below: > http://www.vtk.org/doc/release/5.0/html/a01924.html > > do not correspond to the header file at all. You can see the header file > here: > http://www.vtk.org/doc/release/5.0/html/a03443.html > > I need to somehow set the color and pointsize for my application and am > unsure how to proceed. The header file does not contain any documentation on > how to use the fields of these functions. Can anyone give me any advice on > how to proceed? > > Thanks! > Sonca Teng > MIRG > -------------- next part -------------- An HTML attachment was scrubbed... URL: From seher at ipgp.jussieu.fr Thu Oct 11 13:47:01 2007 From: seher at ipgp.jussieu.fr (seher at ipgp.jussieu.fr) Date: Thu, 11 Oct 2007 19:47:01 +0200 (CEST) Subject: [vtkusers] Intersect Line with vtkContourFilter Message-ID: <49860.134.157.128.180.1192124821.squirrel@webmail.ipgp.jussieu.fr> Hi! I have been having a trivial problem intersecting a line with a vtkContourFilter. Would someone please point me in the right direction? I start with the following: reader = vtk.vtkStructuredPointsReader() reader.SetFileName( infile ) reader.Update() surfaces = vtk.vtkContourFilter() surfaces.SetInput(reader.GetOutput()) surfaces.SetValue(0,vels) surfaces.Update() Now all I want is to extract the z value of the surface at a position x,y. I have been playing around with probing, cutting, clipping, cell.intersectline... but could not get any of those to work. I do not have much experience with vtk. An example would be really nice. Thank you in advance! Tim From nmongeau at videotron.ca Thu Oct 11 14:01:45 2007 From: nmongeau at videotron.ca (Normand Mongeau) Date: Thu, 11 Oct 2007 14:01:45 -0400 Subject: [vtkusers] Problem with array not being deleted Message-ID: <015d01c80c30$c95df280$6500a8c0@tocsh> Hi, I have a problem in C++, that goes like this: vtkImageData *workingImage = vtkImageData::New(); workingImage->SetNumberOfScalarComponents( 1 ); entireData = (unsigned char*)malloc(someSize); workingImage->SetScalarTypeToUnsignedChar(); vtkUnsignedCharArray *charArray = vtkUnsignedCharArray::New( ); charArray->SetNumberOfComponents( 1 ); charArray->SetArray( entireData, someSize, 0 ); // 0 means to delete after use workingImage->GetPointData()->SetScalars( charArray ); workingImage->Delete(); The problem is that my malloc'ed array never gets deleted. In fact, the vtkUnsignedCharArray itself never gets deleted. Is there a fix/workaround to this? Thanks, Normand -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelias at nacad.ufrj.br Thu Oct 11 14:54:50 2007 From: rnelias at nacad.ufrj.br (Renato N. Elias) Date: Thu, 11 Oct 2007 15:54:50 -0300 Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject Message-ID: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> Hi folks, I'm facing the following problem: I'm trying to load an Ensight file and convert it into a VTK XML file. The problem is that vtkGenericEnSightReader is treating my file as a vtkMultiBlockDataSet, even for a file with only one piece of data (I guess, it should not work in this way). The method of using vtkfile->SetInputConection(reader->GetOutputPort()) does not work at all and using vtkfile->SetInput(reader->GetOutput()) return me a compilation error message which says: cannot convert parameter 1 from 'vtkMultiBlockDataSet *' to 'vtkDataObject *' I already tried the forced method of using reinterpret_cast(vtkMultiBlockDataSet) but it has not worked -- I should confess that I'm just a Fortran (and ex-Object Pascal) programmer playing a little bit with C++. I thought also about using the filter vtkMultiGroupDataExtractDataSets but I have no idea how I could use it. It's not on my VTK book (I guess, multi block data is a VTK-CVS feature). Ok, I could just simplify my problem using previous versions of VTK but in the other hand, I'd like to keep everything updated. Any ideas? Regards Renato. p.s.: In fact, I'm trying to overcome a ParaView problem by converting my Ensight files into VTK single block data. From dave.demarle at kitware.com Thu Oct 11 15:13:45 2007 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 11 Oct 2007 15:13:45 -0400 Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> Message-ID: Hi Renato, Use vtkDataObject *obj = vtkMultiBlockDataSet::GetDataSet(i,j) to get the i/j'th DataObject out. In your case i and j are probably both 1. To get the acceptable ranges for i call int i = vtkMultiBlockDataSet::GetNumberOfBlocks() followed by int j = vtkMultiBlockDataSet::GetNumberOfDataSets(i) to get the range of j for each i. obj->GetClassName() to figure out what the exact class of obj is. Then use vtk{InsertClassNameHere} * realobj = vtk{InsertClassNameHere}::SafeDownCast(obj) to get access to all of the callable methods. cheers Dave DeMarle On 10/11/07, Renato N. Elias wrote: > > Hi folks, > > I'm facing the following problem: > > I'm trying to load an Ensight file and convert it into a VTK XML file. The > problem is that vtkGenericEnSightReader is treating my file as a > vtkMultiBlockDataSet, even for a file with only one piece of data (I guess, > it should not work in this way). > > The method of using vtkfile->SetInputConection(reader->GetOutputPort()) does > not work at all and using vtkfile->SetInput(reader->GetOutput()) return me a > compilation error message which says: > > cannot convert parameter 1 from 'vtkMultiBlockDataSet *' to 'vtkDataObject > *' > > I already tried the forced method of using > reinterpret_cast(vtkMultiBlockDataSet) but it has not worked > -- I should confess that I'm just a Fortran (and ex-Object Pascal) > programmer playing a little bit with C++. > > I thought also about using the filter vtkMultiGroupDataExtractDataSets but I > have no idea how I could use it. It's not on my VTK book (I guess, multi > block data is a VTK-CVS feature). Ok, I could just simplify my problem using > previous versions of VTK but in the other hand, I'd like to keep everything > updated. Any ideas? > > Regards > > Renato. > > p.s.: In fact, I'm trying to overcome a ParaView problem by converting my > Ensight files into VTK single block data. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From dave.demarle at kitware.com Thu Oct 11 15:15:05 2007 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 11 Oct 2007 15:15:05 -0400 Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> Message-ID: > i/j'th DataObject out. In your case i and j are probably both 1. I meant probably both 0, sorry. From jfavre at cscs.ch Thu Oct 11 15:37:27 2007 From: jfavre at cscs.ch (Jean Favre) Date: Thu, 11 Oct 2007 21:37:27 +0200 (CEST) Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> Message-ID: <32620358.4591192131447032.OPEN-XCHANGE.WebMail.tomcat@sala.cscs.ch> off the top of my head, I would suggest something like that: assume "mblocks" is your EnSight multiblock data, then vtkMultiGroupDataIterator *dsiter? = (vtkMultiGroupDataIterator*) mblocks->GetOutput()->NewIterator(); dsiter->GoToFirstItem(); while (!dsiter->IsDoneWithTraversal()) { ?vtkDataSet* ds = vtkDataSet::SafeDownCast(dsiter->GetCurrentDataObject()); ?// do what you want with each individual block pointed to by ds ?dsiter->GoToNextItem(); } JF From berk.geveci at kitware.com Thu Oct 11 19:33:24 2007 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Oct 2007 19:33:24 -0400 Subject: [vtkusers] Problem with array not being deleted In-Reply-To: <015d01c80c30$c95df280$6500a8c0@tocsh> References: <015d01c80c30$c95df280$6500a8c0@tocsh> Message-ID: <45d654b0710111633i1e5524fk2ca1e2ef4c2999b0@mail.gmail.com> You have to call Delete() or UnRegister() on the charArray after adding it with SetScalars() otherwise it will leak. I recommend reading up on reference counting. I believe both of the VTK books have a section on it. Also, VTK's reference counting implementation is very similar to that of Objective C. Apple has several good documents on that. -berk On 10/11/07, Normand Mongeau wrote: > > > Hi, > > I have a problem in C++, that goes like this: > > vtkImageData *workingImage = vtkImageData::New(); > workingImage->SetNumberOfScalarComponents( 1 ); > entireData = (unsigned char*)malloc(someSize); > workingImage->SetScalarTypeToUnsignedChar(); > vtkUnsignedCharArray *charArray = vtkUnsignedCharArray::New( ); > charArray->SetNumberOfComponents( 1 ); > charArray->SetArray( entireData, someSize, 0 ); // 0 means to delete after > use > workingImage->GetPointData()->SetScalars( charArray ); > workingImage->Delete(); > > > The problem is that my malloc'ed array never gets deleted. In fact, the > vtkUnsignedCharArray itself never gets deleted. > > Is there a fix/workaround to this? > > Thanks, > > Normand > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From berk.geveci at kitware.com Thu Oct 11 19:40:10 2007 From: berk.geveci at kitware.com (Berk Geveci) Date: Thu, 11 Oct 2007 19:40:10 -0400 Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> Message-ID: <45d654b0710111640n1c372999pfd253a4745b3cf55@mail.gmail.com> Try using vtkMultiGroupDataWriter. You have to use CVS VTK as I wrote that after 5.0 branch. That should produce a .vtm file as well as one or more .vtX files. We will be focusing on multi-block support for the next version of ParaView. Hopefully, you won't have to worry about this after 3.4. -berk On 10/11/07, Renato N. Elias wrote: > > Hi folks, > > I'm facing the following problem: > > I'm trying to load an Ensight file and convert it into a VTK XML file. The > problem is that vtkGenericEnSightReader is treating my file as a > vtkMultiBlockDataSet, even for a file with only one piece of data (I guess, > it should not work in this way). > > The method of using vtkfile->SetInputConection(reader->GetOutputPort()) does > not work at all and using vtkfile->SetInput(reader->GetOutput()) return me a > compilation error message which says: > > cannot convert parameter 1 from 'vtkMultiBlockDataSet *' to 'vtkDataObject > *' > > I already tried the forced method of using > reinterpret_cast(vtkMultiBlockDataSet) but it has not worked > -- I should confess that I'm just a Fortran (and ex-Object Pascal) > programmer playing a little bit with C++. > > I thought also about using the filter vtkMultiGroupDataExtractDataSets but I > have no idea how I could use it. It's not on my VTK book (I guess, multi > block data is a VTK-CVS feature). Ok, I could just simplify my problem using > previous versions of VTK but in the other hand, I'd like to keep everything > updated. Any ideas? > > Regards > > Renato. > > p.s.: In fact, I'm trying to overcome a ParaView problem by converting my > Ensight files into VTK single block data. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From trevis.crane at gmail.com Thu Oct 11 21:17:55 2007 From: trevis.crane at gmail.com (Trevis Crane) Date: Thu, 11 Oct 2007 20:17:55 -0500 Subject: [vtkusers] problems with CMAKE, trying to create VTK from source Message-ID: <9e7c76e50710111817nd192674jd4f1b283cd3f333a@mail.gmail.com> Hi, I'm running winXP and want to develop in C++ using Microsoft Visual Studio .NET 2003. I downloaded the VTK source and CMake, installed CMake and am trying to use it to create the .sln file for Visual Studio to compile the library binaries. So, I setup CMake by giving it the source code folder and the bin folder and hit configure. I select the appropriate compiler/toolchain and then It chugs along for a little while but then gives me this error: CMake Error: Cannot find source file "C:\VTK\Common\Testing\Cxx\CommonCxxTests.css" for target "CommonCxxTests" Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp .hxx .in .txx (Press Cancel to suppress any further messages) If I don't press Cancel I get a similar message for GraphicsCxxTests, ImagingCxxTests, IOCxxTests, and WidgetsCxxTests. It seems like some files are missing from the VTK source distribution I downloaded. Could this be the case or is something else the matter, do you think? FYI - I downloaded the latest version of VTK -- vtk-5.0.3.zip. Either there're some files missing (which seems unlikely), or there's something weird about the CMakeLists.txt file (also seems unlikely), but I can't think of any other possible things wrong. Any suggestions? thanks in advance, trevis -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelias at nacad.ufrj.br Thu Oct 11 21:34:17 2007 From: rnelias at nacad.ufrj.br (Renato N. Elias) Date: Thu, 11 Oct 2007 22:34:17 -0300 Subject: RES: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: <45d654b0710111640n1c372999pfd253a4745b3cf55@mail.gmail.com> References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> <45d654b0710111640n1c372999pfd253a4745b3cf55@mail.gmail.com> Message-ID: <86C5976557524940A25EC06909C7011C@tetra2> Thanks David, Jean and Berk for the help given. As I was in a hurry I used the laziest method -- downloaded and compiled a vtk 5.0.3 version which reads in all Ensight files as single block ;o) I also tried the suggestions given by David and Jean but I'm not so skilled with the vtk structure to overcome some compilation annoyances and nothing worked (and I tried several combinations...). I have not given up yet, just solved my urgent problem. The Berk's approach seems straightforward to write also multi block files but, I guess, It will not be abled to write files as single blocks (.vtu in my case). The key point here is that I can't use some ParaView's features since my data is being treated as multi block even when I have only one part. >>> Berk: Just a comment regarding these new VTK's features: These new features are being designed over the old classes. I guess that It's a bit dangerous since there's a bunch of codes out there that will simply stop working with the newest VTK's versions. There should be a kind of vtkGenericMultBlockEnsightReader while the old vtkGenericEnsightReader is kept for backward compatibility. Just a thought... Regards Renato. -----Mensagem original----- De: Berk Geveci [mailto:berk.geveci at kitware.com] Enviada em: quinta-feira, 11 de outubro de 2007 20:40 Para: Renato N. Elias Cc: vtkusers at vtk.org Assunto: Re: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject Try using vtkMultiGroupDataWriter. You have to use CVS VTK as I wrote that after 5.0 branch. That should produce a .vtm file as well as one or more .vtX files. We will be focusing on multi-block support for the next version of ParaView. Hopefully, you won't have to worry about this after 3.4. -berk On 10/11/07, Renato N. Elias wrote: > > Hi folks, > > I'm facing the following problem: > > I'm trying to load an Ensight file and convert it into a VTK XML file. > The problem is that vtkGenericEnSightReader is treating my file as a > vtkMultiBlockDataSet, even for a file with only one piece of data (I > guess, it should not work in this way). > > The method of using > vtkfile->SetInputConection(reader->GetOutputPort()) does not work at > all and using vtkfile->SetInput(reader->GetOutput()) return me a compilation error message which says: > > cannot convert parameter 1 from 'vtkMultiBlockDataSet *' to > 'vtkDataObject *' > > I already tried the forced method of using > reinterpret_cast(vtkMultiBlockDataSet) but it has not > worked > -- I should confess that I'm just a Fortran (and ex-Object Pascal) > programmer playing a little bit with C++. > > I thought also about using the filter vtkMultiGroupDataExtractDataSets > but I have no idea how I could use it. It's not on my VTK book (I > guess, multi block data is a VTK-CVS feature). Ok, I could just > simplify my problem using previous versions of VTK but in the other > hand, I'd like to keep everything updated. Any ideas? > > Regards > > Renato. > > p.s.: In fact, I'm trying to overcome a ParaView problem by converting > my Ensight files into VTK single block data. > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From nmongeau at videotron.ca Thu Oct 11 21:42:24 2007 From: nmongeau at videotron.ca (Normand Mongeau) Date: Thu, 11 Oct 2007 21:42:24 -0400 Subject: [vtkusers] Problem with array not being deleted References: <015d01c80c30$c95df280$6500a8c0@tocsh> <45d654b0710111633i1e5524fk2ca1e2ef4c2999b0@mail.gmail.com> Message-ID: <000201c80c77$3a982470$6600a8c0@stormin> OK, makes sense I guess. I'll try to read up on VTK's reference counting, although I'm very familiar with the concept. Thanks, Normand ----- Original Message ----- From: "Berk Geveci" To: "Normand Mongeau" Cc: Sent: Thursday, October 11, 2007 7:33 PM Subject: Re: [vtkusers] Problem with array not being deleted > You have to call Delete() or UnRegister() on the charArray after > adding it with SetScalars() otherwise it will leak. I recommend > reading up on reference counting. I believe both of the VTK books have > a section on it. Also, VTK's reference counting implementation is very > similar to that of Objective C. Apple has several good documents on > that. > > -berk > > On 10/11/07, Normand Mongeau wrote: >> >> >> Hi, >> >> I have a problem in C++, that goes like this: >> >> vtkImageData *workingImage = vtkImageData::New(); >> workingImage->SetNumberOfScalarComponents( 1 ); >> entireData = (unsigned char*)malloc(someSize); >> workingImage->SetScalarTypeToUnsignedChar(); >> vtkUnsignedCharArray *charArray = vtkUnsignedCharArray::New( ); >> charArray->SetNumberOfComponents( 1 ); >> charArray->SetArray( entireData, someSize, 0 ); // 0 means to delete >> after >> use >> workingImage->GetPointData()->SetScalars( charArray ); >> workingImage->Delete(); >> >> >> The problem is that my malloc'ed array never gets deleted. In fact, the >> vtkUnsignedCharArray itself never gets deleted. >> >> Is there a fix/workaround to this? >> >> Thanks, >> >> Normand >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> From khademi at cse.shirazu.ac.ir Fri Oct 12 03:42:48 2007 From: khademi at cse.shirazu.ac.ir (Somayeh Khademi) Date: Fri, 12 Oct 2007 11:12:48 +0330 (IRST) Subject: [vtkusers] capture movie Message-ID: <43325.194.225.33.7.1192174968.squirrel@mail.cse.shirazu.ac.ir> -- Hi, I want to capture movie from a particular part of my screen, is there any module in VTK that help me to do this? if VTK doesnt have such module, does anybody know how can i write such program? (I use python and linux platform.) Regards. ----------------------------------------------------- sent using CSE webmail [http://www.cse.shirazu.ac.ir] From r.b.schilling at googlemail.com Fri Oct 12 05:34:42 2007 From: r.b.schilling at googlemail.com (Ruben Schilling) Date: Fri, 12 Oct 2007 11:34:42 +0200 Subject: [vtkusers] supplement: QVTK with vtk 5.0.3 and Qt 4.3.2 In-Reply-To: References: <200710111043.33942.clinton@elemtech.com> Message-ID: Hi Clint, thanks again for your feedback, it was helpful. Just to give feedback: Dynamic linking of vtk-5.0.3 release with QVTK on x86_64 seems to work, except the example code below, which seems to be a version mismatch in Qt versions I guess. The CVS version of vtk produces the same results, although I was able to use static linking there. I hope the error below will not be linked to some deeper error in the VTK/QVTK/Qt combination, but again, I think it looks like a version mismatch (I was using Qt 4.3.2). Best regards and thanks Ruben Linking CXX executable /scratch/local/schillin/VTKBuild/bin/qtimageviewer /project/imaging/software/lib/libQtGui.a(qapplication_x11.o): In function `qt_init(QApplicationPrivate*, int, _XDisplay*, unsigned long, unsigned long)': qapplication_x11.cpp:(.text+0x10323): undefined reference to `XFixesQueryExtension' qapplication_x11.cpp:(.text+0x10360): undefined reference to `XFixesQueryVersion' /project/imaging/software/lib/libQtGui.a(qcursor_x11.o): In function `QCursorData::update()': qcursor_x11.cpp:(.text+0x252): undefined reference to `XFixesSetCursorName' qcursor_x11.cpp:(.text+0x362): undefined reference to `XFixesSetCursorName' /project/imaging/software/lib/libQtCore.a(qeventdispatcher_unix.o): In function `QTimerInfoList::getTime(timeval&)': qeventdispatcher_unix.cpp:(.text+0x517): undefined reference to `clock_gettime' collect2: ld returned 1 exit status make[5]: *** [/scratch/local/schillin/VTKBuild/bin/qtimageviewer] Error 1 make[5]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All' make[4]: *** [GUI/Qt/ImageViewer/CMakeFiles/qtimageviewer.dir/all] Error 2 make[4]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All' make[3]: *** [all] Error 2 make[3]: Leaving directory `/amd/hurtz/1/scratch/schillin/VTKBuild/Examples/All' make[2]: *** [VTKExamples] Error 1 make[1]: *** [Examples/CMakeFiles/VTKExamplesTarget.dir/all] Error 2 make: *** [all] Error 2 2007/10/11, clinton at elemtech.com : > > On Thursday 11 October 2007 10:32:49 am Ruben Schilling wrote: > > Hi again, > > > > I just saw, that actually switching in the ccmake configuration > > > > BUILD_SHARED_LIBS *OFF > > and adding a '-static' to the CXXFLAGS > > > > does not prevent vtk 5.0.3 from being built as a shared library! What is > > wrong with this? Can I specify a static library otherwise with ccmake? > > VTK is built as a static libraries. The one library you're having > problems > with is a Qt Designer *plugin* which is supposed to be shared. > In VTK 5.0, the plugin linked with VTK, which led to link errors on some > systems, like you're seeing. Which is linking non-PIC objects (that's the > > static VTK libraries), with a shared library (that's the Qt Designer > plugin). > Two possible workarounds are to add -fPIC as the linker error suggested, > or > build VTK as shared libraries. > This issue has already been fixed in the CVS version of VTK. So if you > want > to use that, you can. > > Clint > -------------- next part -------------- An HTML attachment was scrubbed... URL: From seher at ipgp.jussieu.fr Fri Oct 12 07:38:55 2007 From: seher at ipgp.jussieu.fr (Tim Seher) Date: Fri, 12 Oct 2007 13:38:55 +0200 Subject: [vtkusers] Re: Intersect Line with vtkContourFilter Message-ID: <200710121338.55671.seher@ipgp.jussieu.fr> Hi! Sorry, for this second post. Just want to give some additional information. I have been playing around some more and I still cannot see, why probing a polydata with a line does not work. All I want to do is to sample a surface at a given point xy. Any help highly appreciated! Here is, how far I got: > ### data > reader = vtk.vtkStructuredPointsReader() > reader.SetFileName( infile ) > reader.Update() > dims = reader.GetOutput().GetBounds() > > ### calculate the surfaces > surfaces = vtk.vtkContourFilter() > surfaces.SetInput(reader.GetOutput()) > surfaces.GenerateValues(4,2,5) > > line = vtk.vtkLineSource() > > transform = vtk.vtkTransform() > transform.Translate([0,0,-2]) > transform.Scale([100,100,100]) > transform.RotateY(90) > > tf = vtk.vtkTransformPolyDataFilter() > tf.SetInputConnection(line.GetOutputPort()) > tf.SetTransform(transform) > > probe = vtk.vtkProbeFilter() > probe.SetInputConnection(tf.GetOutputPort()) > probe.SetSource(surfaces.GetOutput()) > xyplot = vtk.vtkXYPlotActor() > xyplot.AddInput(probe.GetOutput()) > > ren = vtk.vtkRenderer() > ren.AddActor(xyplot) > ren.SetBackground(0.7, 0.7, 0.7) > > win = vtk.vtkRenderWindow() > win.AddRenderer(ren) > win.SetSize(800, 600) > > iren = vtk.vtkRenderWindowInteractor() > iren.SetRenderWindow(win) > > win.Render() > iren.Initialize() > iren.Start() Sorry and thanks a lot! Tim From burlen at apollo.sr.unh.edu Fri Oct 12 08:14:11 2007 From: burlen at apollo.sr.unh.edu (burlen) Date: Fri, 12 Oct 2007 08:14:11 -0400 Subject: [vtkusers] Re: Intersect Line with vtkContourFilter In-Reply-To: <200710121338.55671.seher@ipgp.jussieu.fr> References: <200710121338.55671.seher@ipgp.jussieu.fr> Message-ID: <470F6513.90202@apollo.sr.unh.edu> An HTML attachment was scrubbed... URL: From wollez at gmx.net Fri Oct 12 08:17:29 2007 From: wollez at gmx.net (WolfgangZ) Date: Fri, 12 Oct 2007 14:17:29 +0200 Subject: [vtkusers] strange results with vtkClipDataSet Message-ID: Hi, I get strange results with vtkClipDataSet. My source data is a unstructured mesh and I need to clip a rectangular part out of it. As clip function I use a vtkBox. The nice thing with vtkClipDataSet is that it does not triangulate inner cells (vtkBoxClipDataSet triangulates all cells). The problem is that the output has not a rectangular shape as the corners are "round". Am I doing something wrong or is this a bug? My python script can be found here: http://perswww.kuleuven.be/~u0049353/vtk/gridclip.py and the sample unstructured mesh: http://perswww.kuleuven.be/~u0049353/vtk/holz1x1d.vtu link to the resulting image: http://perswww.kuleuven.be/~u0049353/vtk/false.png Regards Wolfgang -------------- next part -------------- A non-text attachment was scrubbed... Name: false.png Type: image/png Size: 15295 bytes Desc: not available URL: From berk.geveci at kitware.com Fri Oct 12 09:00:43 2007 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 12 Oct 2007 09:00:43 -0400 Subject: [vtkusers] Converting vtkMultiBlockDataSet into vtkDataObject In-Reply-To: <86C5976557524940A25EC06909C7011C@tetra2> References: <27D432B3229D4AC8AF03387EF6EEE649@tetra2> <45d654b0710111640n1c372999pfd253a4745b3cf55@mail.gmail.com> <86C5976557524940A25EC06909C7011C@tetra2> Message-ID: <45d654b0710120600l2ef1c1far4c3bdafc2a0548@mail.gmail.com> > The Berk's approach seems straightforward to write also multi block files > but, I guess, It will not be abled to write files as single blocks (.vtu in > my case). The key point here is that I can't use some ParaView's features > since my data is being treated as multi block even when I have only one > part. Not true. The reader will write one .vtm file that points to one or more .vtu files. You can always ignore the .vtm file and open the .vtu files separately. By the way, you can do this exact same thing from inside paraview. Simply save the EnSight file and then open the .vtu files. If you are doing it in parallel, you have to write your own .pvtu file (which should be pretty easy). -berk > >>> Berk: Just a comment regarding these new VTK's features: > > These new features are being designed over the old classes. I guess that > It's a bit dangerous since there's a bunch of codes out there that will > simply stop working with the newest VTK's versions. There should be a kind > of vtkGenericMultBlockEnsightReader while the old vtkGenericEnsightReader is > kept for backward compatibility. Just a thought... Makes a lot of sense. Sorry for not having done this when we switched. I assumed that multi-block support will mature way faster than it has. If, by 3.4, we don't have everything supported for multi-block, I will try to get this in. -berk From jelleferinga at gmail.com Fri Oct 12 09:59:21 2007 From: jelleferinga at gmail.com (jelle) Date: Fri, 12 Oct 2007 13:59:21 +0000 (UTC) Subject: [vtkusers] building VTK cvs version with vc 7.1 sp1 Message-ID: Hi, I'm trying to build the CVS version of VTK. Actually there is nothing to complain, since the project builds perfectly, though somehow I'm not able to use the .dll's generated. This is the first time I'm compiling a complex project, so please bear with me ;') First of all, when I use the ALL_BUILD project, no *.pyd files are built, just the vtk*.dll and the vtk*PythonD.dll, so I'm missing out on the vtk*Python.pyd file. When I built those by for instance building the vtkCommonPython project, and when I try to load the resulting vtkCommonPython.pyd file in my interpreter the following error pops up: The procedure entry point ? LookupValue at vtkBitArray@@QAHH at Z could not be located in the dynamic link library vtkCommon.dll Any pointers in how i can overcome this issue would be much appreciated. Also, I'm curious how one can generate all python modules in one go. Many thanks in advance, -jelle From jtaclas at bidmc.harvard.edu Fri Oct 12 10:31:58 2007 From: jtaclas at bidmc.harvard.edu (jtaclas at bidmc.harvard.edu) Date: Fri, 12 Oct 2007 10:31:58 -0400 Subject: [vtkusers] Distance between polydata and a point cloud Message-ID: <25A33F7C2B7E2E458182A863929DD9D832D7AA@EVS7.its.caregroup.org> I'm looking to do two things; first I'd like to measure the average distance between each point in a point cloud, and the polydata surface it is registered to. I used the vtkIterativeClosestPointTransform if that helps at all. The second thing I would like to do is measure the distance between each point in a polydata surface and the nearest point in the point cloud. From reading the user's list archives, I imagine I might use vtkPointLocator or vtkCellLocator, with FindClosestPoint, but I am not sure. I also wonder if it would be possible to use that information to color-code the polydata object's surface (like a 'hot' or 'cold' color scale) to better visualize a correlation between points and a surface. Jason Taclas -------------- next part -------------- An HTML attachment was scrubbed... URL: From dariodisk at gmail.com Fri Oct 12 11:56:00 2007 From: dariodisk at gmail.com (=?ISO-8859-1?Q?D=E1rio_Oliveira?=) Date: Fri, 12 Oct 2007 12:56:00 -0300 Subject: [vtkusers] Overlays in VTK Message-ID: Hello friends, I'm trying for some time to make 2D overlays over an original DICOM 2D slice, but I just cant get it right. Does anyone succeeded in this task? I would apretiate any help. Presently I'm trying to use the pipeline: vtkLookupTable-> vtkImageMapToColors->vtkImageMapper->vtkActor2D. I'm having problems with opacity (I cant make it works with transparency), and with the color level and window (that ont make much sense to define actors colors in my opinion). I thought that it would be easy to make a overlay with some actors with different colors and opacities, as it is a common need, but I'm really confused with the necessity of setting the color level and window to make the actors color appears right. Thanks, -- D?rio Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From cedric.schwartz at enst-bretagne.fr Fri Oct 12 12:42:54 2007 From: cedric.schwartz at enst-bretagne.fr (Cedric) Date: Fri, 12 Oct 2007 18:42:54 +0200 Subject: [vtkusers] Re:Distance between polydata and a point cloud Message-ID: Hi, I'm not sure to understand what you really want in your first point I'll only answer your second one : You are right to use the vtkPointLocator to find the nearest point. You should also have a look to the vtkKdTree class. It performs a quickier search for the nearest point. But if you don't have so many points vtkPointLocator is ok. You can of course use your distance information to color your polydata surface. You have to choose a rule to transform your distance in R,G,B values (the rule depends on which colors you are looking for) and then use it as the scalar values of the polydata (exemple bellow). color = vtkUnsignedCharArray::New() for (i=0,...,number_of_points-1) color->InsertTuples3(i,R,G,B) polydata->GetPointData()->SetScalars(color) Regards, Cedric Schwartz I'm looking to do two things; first I'd like to measure the average distance between each point in a point cloud, and the polydata surface it is registered to. I used the vtkIterativeClosestPointTransform if that helps at all. The second thing I would like to do is measure the distance between each point in a polydata surface and the nearest point in the point cloud. From reading the user's list archives, I imagine I might use vtkPointLocator or vtkCellLocator, with FindClosestPoint, but I am not sure. I also wonder if it would be possible to use that information to color-code the polydata object's surface (like a 'hot' or 'cold' color scale) to better visualize a correlation between points and a surface. Jason Taclas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://public.kitware.com/pipermail/vtkusers/attachments/ 20071012/ca6c41f3/attachment-0001.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From jelleferinga at gmail.com Fri Oct 12 15:00:13 2007 From: jelleferinga at gmail.com (jelle) Date: Fri, 12 Oct 2007 19:00:13 +0000 (UTC) Subject: [vtkusers] Re: building VTK cvs version with vc 7.1 sp1 References: Message-ID: > Any pointers in how i can overcome this issue would be much appreciated. I overlooked the option of building all projects in the workspace which resolves this. Still, the procedure entry point issue persists. Thanks in advance, -jelle From elvis.chen at gmail.com Fri Oct 12 17:04:23 2007 From: elvis.chen at gmail.com (Elvis Chen) Date: Fri, 12 Oct 2007 17:04:23 -0400 Subject: [vtkusers] how to position/orient a DICOM volume Message-ID: <4c2a34b40710121404w76aa5467ue27d7f96c3f55cbb@mail.gmail.com> hi all, I would like to display multiple DICOM volumes in a common coordinate system (MRI machine, for example) so that volumes of different anatomies are displayed in their correct poses (relative to each other). Using DataExtent and DataSpacing, one can compute the *real* size of the volume, but I'm not clear on how to position and orient a DICOM volume. >From the documentation the following two functions seems to give the absolute geometry of a DICOM volume (from vtkDICOMImageReader): GetImageOrientationPatient() Get the (DICOM) directions cosines. It consist of the components of the first two vectors. The third vector needs to be computed to form an orthonormal basis. GetImagePositionPatient() Get the (DICOM) x,y,z coordinates of the first pixel in the image (upper left hand corner) of the last image processed by the DICOMParser However, the descriptions are not informative enough for me to render the DICOM volumes correctly. Can someone please explain if I'm on the right track, or is there another to get the absolute geometry of a DICOM volume? any help is very much appreciated, Elvis From meisam.aliroteh at gmail.com Fri Oct 12 17:27:34 2007 From: meisam.aliroteh at gmail.com (Meisam Aliroteh) Date: Fri, 12 Oct 2007 17:27:34 -0400 Subject: [vtkusers] capture movie In-Reply-To: <43325.194.225.33.7.1192174968.squirrel@mail.cse.shirazu.ac.ir> References: <43325.194.225.33.7.1192174968.squirrel@mail.cse.shirazu.ac.ir> Message-ID: <394c464d0710121427t4f312ae1te1d1f3cffd6260d5@mail.gmail.com> There is a program for linux called RecordMyDesktop ( http://recordmydesktop.iovar.org) which you might find useful. I have never used it myself but I've visited the website and looks like this program can capture your desktop activity and record it into a movie file. If you want to do it with vtk itself, you need to look at vtkAVIWriter (windows) or vtkMPEG2Writer (multi platform). On 10/12/07, Somayeh Khademi wrote: > > > > > -- > Hi, > > I want to capture movie from a particular part of my screen, is there any > module in VTK that help me to do this? > if VTK doesnt have such module, does anybody know how can i write such > program? > > (I use python and linux platform.) > > Regards. > > ----------------------------------------------------- > sent using CSE webmail [http://www.cse.shirazu.ac.ir] > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ryteng at gmail.com Fri Oct 12 19:39:03 2007 From: ryteng at gmail.com (Sonca Teng) Date: Fri, 12 Oct 2007 16:39:03 -0700 Subject: [vtkusers] Strange problem with the positioning of rendered actors Message-ID: <4d6a9b620710121639k2fd9f5b3sd1eb161c00dd36c1@mail.gmail.com> Hi all, I've come across a strange issue. I've been adding actors to the renderer in order to display some overlays in the windows, and initially they look fine, but when I scroll through the slices and compare the transaxial, coronal, and sagittal views, it is apparent that there are discrepencies between the views. For example, in a test case, I added a single dot (vertex) to the rendered image at world coordinates (50,50,50). If I add the actor by "this->RenderWidget->AddViewProp(actor);" or "this->RenderWidget->GetRenderer()->AddActor(actor);" then, In the transaxial view, I will see this dot from all of slices 0-49, at XY coordinates (50, 50). In the coronal view, I will see the dot from all of slices 51-127, at XZ coordinates (50, 50). In the sagittal view, I will see the dot from all of slices 0-49, at YZ coordinates (50, 50). (strange, every slice EXCEPT the correct one!) If I add the actor by "this->RenderWidget->AddOverlayViewProp(actor);" or "this->RenderWidget->GetOverlayRenderer()->AddActor(actor);" then, In the transaxial view, I will see this dot from all of slices 48-54, at XY coordinates (50, 50). In the coronal view, I will see the dot from all of slices 46-53, at XZ coordinates (50, 50). In the sagittal view, I will see the dot from all of slices 47-56, at YZ coordinates (50, 50). If I add the actor by "this->ImageViewer->GetRenderer()->AddActor(actor);" then In the transaxial view, I will see this dot from all of slices 0-49, at XY coordinates (50, 50). In the coronal view, I will see the dot from all of slices 51-127, at XZ coordinates (50, 50). In the sagittal view, I will see the dot from all of slices 0-49, at YZ coordinates (50, 50). So it seems that the views being represented on the XY, XZ, and YZ planes are fine, but they are showing up on the wrong slices, and on multiple slices. Note that when adding actors to the overlay renderer, the results are very different than when adding to normal renderers. It seems strange to me, because both are derived from the vtkRenderer class, are they not? The following is my code that generates the actor and adds it to the renderer. vtkPoints *points = vtkPoints::New(); vtkCellArray *cellArray = vtkCellArray::New(); cellArray->InsertNextCell(1); points->InsertPoint(0, 50, 50, 50); cellArray->InsertCellPoint(0); vtkPolyData *polyData = vtkPolyData::New(); polyData->SetPoints(points); polyData->SetVerts(cellArray); vtkPolyDataMapper *polyDataMapper = vtkPolyDataMapper::New(); polyDataMapper->SetInput(polyData); vtkActor *actor = vtkActor::New(); actor->SetMapper(polyDataMapper); actor->GetProperty()->SetColor(0,0,0); actor->GetProperty()->SetPointSize(2); // this->RenderWidget->AddViewProp(actor) // this->RenderWidget->GetRenderer()->AddActor(actor); // this->RenderWidget->AddOverlayViewProp(actor); // this->RenderWidget->GetOverlayRenderer()->AddActor(actor); this->ImageViewer->GetRenderer()->AddActor(actor); this->ImageViewer->Modified(); this->ImageViewer->Render(); this->RenderWidget->Render(); ... ...::SliceChangerCallback(...) this->ImageViewer->SetSlice((int)value); this->RecentlyModified = 1; I could really use some guidance on how to figure this out. I'm out of ideas. Any suggestions at all would be very welcome. Thanks very much, Sonca Teng -------------- next part -------------- An HTML attachment was scrubbed... URL: From olguna at cimat.mx Fri Oct 12 20:30:00 2007 From: olguna at cimat.mx (Osc@r) Date: Fri, 12 Oct 2007 19:30:00 -0500 Subject: [vtkusers] VTK-file format in ITK Message-ID: <200710130029.l9D0TdZB026873@tostada.cimat.mx> Hi, All!!! A short time ago I made a console application for FastMarchingSegmentation just like the one in ITK SoftwareGuide with 2 basic differences 1. It works with 3D images 2. multi-seed At that time the results kept in Analyze (.hdr) format, It were able to seen the results with Volview 2.0 Free patch 5. Nowadays I'm doing a GUI application for visualization using VTK ITK writes vtk_structured_points (.vtk) format so I seemed normal to use it and read those data with VTK_structured_point Reader, before I test this in my GUI I tried to read those data with Volview but didn't work. when volview tried to open the file appears vtkOutputWindow with 3 messages 1. Error in c:\... Error reading spacing 2. & 3. Error in c:\... can't add histograms from a NULL das... Is there some special configuration for itk::vtkImagewriter that I missed?? or, vtkVolview can't read vtk structured point format?? or, there is a problem with itk::vtkImageIO?? I'm using ITK 3.2.0 code for writer is as follows: writerOutput gets type image and has just 0 and 355 values writerOutput->SetInput(Thresholder->GetOutput()); writerOutput->SetFileName("FinalSegmentation_3D.vtk"); try{ writerOutput->Update(); } catch (itk::ExceptionObject & exp) {std::cout << exp << std::endl;} I'm using ITK 3.2.0 when the writer was Analyze format there were no error Thanks in advance... Oscar Guti?rrez Luna CIMAT A. C. Cubiculo: J4 Tel.: 73 271-55 ext. 49672 -------------- next part -------------- An HTML attachment was scrubbed... URL: From raashid.b at rediffmail.com Sat Oct 13 01:11:00 2007 From: raashid.b at rediffmail.com (Raashid Baig) Date: 13 Oct 2007 05:11:00 -0000 Subject: [vtkusers] Re: capture movie Message-ID: <20071013051100.30985.qmail@f5mail-237-202.rediffmail.com> >> I want to capture movie from a particular part of my screen, is there >> any module in VTK that help me to do this? I don't think that there is a module in VTK to capture only a particular portion of scene. (Someone please correct me if I am wrong) >> if VTK doesn't have such module, does anybody know how can i write >> such program? The easiest way to do this is to use any screen-casting software which will capture any event occurring in a particular portion of you monitor. There are many such softwares in linux like recordmydesktop and Istanbul. I use CamStudio in Windows. -------------- next part -------------- An HTML attachment was scrubbed... URL: From Tim.Gollnik at t-online.de Sat Oct 13 04:31:23 2007 From: Tim.Gollnik at t-online.de (Tim Gollnik) Date: Sat, 13 Oct 2007 10:31:23 +0200 Subject: [vtkusers] Merge triangles and quads from vtkBandedPolydataContourFilter Message-ID: <200710131031.32358.Tim.Gollnik@t-online.de> Hello! I need your help. I've constructed a vtkPolyData consisting of many triangles. They're all lying in a plane. (In fact i construct them from a regular grid within my application). After passing the data through the vtkBandedPolydataContourFilter i get all these triangles again, and, of course, some of them are split up into triangles and quads. Fine. It looks very good! Each cell has its scalar attribute, as expected. There are large regions filled with triangles and quads with the same attribute. As expected, too. Now my question: is it possible to merge all polygons with matching scalar attribute? I export these beautiful contour pictures via vtkGL2PSExporter. And now I want to reduce the file size of the resulting ps file. I tried vtkQuadricDecimation, but i'm not sure if this is the right filter or how i have to adjust all the switches (it's octave syntax, it should be quite similar to python): triangel = vtkTriangleFilter(); triangel.SetInput(contours.GetOutput()); dezimierer = vtkQuadricDecimation(); dezimierer.SetInput(triangel.GetOutput()); dezimierer.SetTargetReduction(0.9); % switches ? contMapper = vtkPolyDataMapper(); contMapper.SetInput(dezimierer.GetOutput()) Or is there any other way to eliminate all the unneeded vertices and edges within each 'band'? Something which merges neighboring polygons to bigger ones, maybe finally getting only the outline of each colored band. Thank you very much, you would cure my headache after these short nights.. ;-) Tim -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 194 bytes Desc: This is a digitally signed message part. URL: From henryjoye at gmail.com Sat Oct 13 08:01:54 2007 From: henryjoye at gmail.com (James Zhou) Date: Sat, 13 Oct 2007 22:01:54 +1000 Subject: [vtkusers] wglMakeCurrent failed in MakeCurrent() problem in VTK nightly source Message-ID: hi, all, I posted my VTK nightly source building and running problems days before and got no reply. I tried two computers and the problems are same. Could you give me any ideas on how to solve this problem? I use the VTK CVS nightly source of Oct. 7,2007 in my applications. I built the VTK source successfully on Win XP using MSVC 2005. I set using CG Shader and GLSL shader be on during cmaking. My graphics card is GeForce 8300 and I updated the graphics driver to be the latest. When I run VTK examples, there is no display window shown. The error is as follows: Description: ERROR: In E:\Kitware\VTK\Rendering\vtkWin32OpenGLRenderWindow .cxx, line 235 vtkWin32OpenGLRenderWindow (03A4C500): wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid. When I build the VTK5.0 release sourcr and run its examples, everything is ok. It seems that it is because of the CVS nightly source problem. If not, could anyone show me any solutions? Many thanks! James -------------- next part -------------- An HTML attachment was scrubbed... URL: From vihang_patil at yahoo.com Sat Oct 13 09:04:29 2007 From: vihang_patil at yahoo.com (Vihang Patil) Date: Sat, 13 Oct 2007 06:04:29 -0700 (PDT) Subject: [vtkusers] vtk.jar not buid Message-ID: <664173.48687.qm@web50603.mail.re2.yahoo.com> Hello I have downloaded VTK source (vtk-5.0.3) and VTK data (vtkdata-5.0.3) and CMAKE (cmake-2.4.7-win32-x86). Now I unzipped the source in c:\VTK and data in C:\VTKDATA. After I run CMAKE I choose the BUILD_EXAMPLES to ON, BUILD_SHARED_LIBS to ON, VTK_USE_RENDERING and VTK_WRAP_JAVA to ON. After I press configure button everything goes well and I select the OK button. Now I have selected the path to build the binaries at C:\VTKBIN, but I dont see any BIN folder. Many folders including a JAVA\VTK folder is created in VTKBIN (C:\VTKBIN\ JAVA\VTK)but in it I see files with extension *.rule. How do I proceed from here. I dont seem to make the vtk.jar file Please help P.N: I am using Visual Studio 6 Regards Vihang Patil --------------------------------- Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. -------------- next part -------------- An HTML attachment was scrubbed... URL: From davemania24 at yahoo.com Sun Oct 14 06:08:05 2007 From: davemania24 at yahoo.com (Dave C) Date: Sun, 14 Oct 2007 03:08:05 -0700 (PDT) Subject: [vtkusers] vtk.jar not buid Message-ID: <2322.54423.qm@web57101.mail.re3.yahoo.com> There is a vtk 5.0.3 jar avaliable in the link below http://sourceforge.net/project/showfiles.php?group_id=44711 hope that helps ----- Original Message ---- From: Vihang Patil To: vtkusers at vtk.org Sent: Saturday, October 13, 2007 11:04:29 PM Subject: [vtkusers] vtk.jar not buid Hello I have downloaded VTK source (vtk-5.0.3) and VTK data (vtkdata-5.0.3) and CMAKE (cmake-2.4.7-win32-x86). Now I unzipped the source in c:\VTK and data in C:\VTKDATA. After I run CMAKE I choose the BUILD_EXAMPLES to ON, BUILD_SHARED_LIBS to ON, VTK_USE_RENDERING and VTK_WRAP_JAVA to ON. After I press configure button everything goes well and I select the OK button. Now I have selected the path to build the binaries at C:\VTKBIN, but I dont see any BIN folder. Many folders including a JAVA\VTK folder is created in VTKBIN (C:\VTKBIN\ JAVA\VTK)but in it I see files with extension *.rule. How do I proceed from here. I dont seem to make the vtk.jar file Please help P.N: I am using Visual Studio 6 Regards Vihang Patil Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. -----Inline Attachment Follows----- _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ____________________________________________________________________________________ Yahoo! oneSearch: Finally, mobile search that gives answers, not web links. http://mobile.yahoo.com/mobileweb/onesearch?refer=1ONXIC -------------- next part -------------- An HTML attachment was scrubbed... URL: From juan.cardelino at gmail.com Sun Oct 14 11:38:05 2007 From: juan.cardelino at gmail.com (Juan Cardelino) Date: Sun, 14 Oct 2007 17:38:05 +0200 Subject: [vtkusers] RE: migration from 4.4 to vtk 5.0 Message-ID: <7728d2ce0710140838y3fc8242bp57a463aa201f8936@mail.gmail.com> > Message: 7 > Date: Mon, 8 Oct 2007 07:58:09 +0200 > From: "Henrik Westerberg" > Subject: RE: [vtkusers] migration from 4.4 to vtk 5.0 > To: "Juan Cardelino" , > Message-ID: > Content-Type: text/plain; charset="iso-8859-1" > > > Hello Juan, > > You can use vtkDecimatePro > > http://www.vtk.org/doc/nightly/html/classvtkDecimatePro.html > > regards, > > Henrik > Thank you very much Henrik. It worked neatly. Sorry for the delay in my answer. Regards, Juan From trevorirons at gmail.com Sun Oct 14 18:18:57 2007 From: trevorirons at gmail.com (Trevor Irons) Date: Sun, 14 Oct 2007 16:18:57 -0600 Subject: [vtkusers] re: Implicit Dataset and vtkDataSetSurfaceFilter Message-ID: I am trying to extract cells from a rectilinear grid (using vtkExtractGeometry) I want to extract a volume defined by Delaunay3D. I Have been trying to use vtkDataSetSurfaceFilter to define the outer edge of the volume, which works fine. Can I use this surface as an implicit function so that everything inside the surface is returned by ExtractGeometry? The code below compiles but returns the error "vtkImplicitDataSet (hex): Can't evaluate dataset!" This approach works fine with other implicit functions, sphere etc. so I am pretty sure my problem lies in my misuse of implicit dataset. Any help is greatly appreciated. A different approach is fine as well. Thanks. -Trevor // Declarations vtkPolyData *poly = vtkPolyData::New(); vtkPoints *topoPnts = vtkPoints::New(); vtkDelaunay3D *delny = vtkDelaunay3D::New(); vtkImplicitDataSet *implData = vtkImplicitDataSet::New(); vtkExtractGeometry *extract = vtkExtractGeometry::New(); vtkRectilinearGrid *rgrid = vtkRectilinearGrid::New(); vtkDataSetSurfaceFilter *surface = vtkDataSetSurfaceFilter::New(); /* * Build Grid, open file containing x,y,z coordinates for topoPnts */ // Triangulate topographic surface using Delaunay3D poly->SetPoints(topoPnts); delny->SetInput(poly); surface->SetInputConnection(delny->GetOutputPort()); implData->SetDataSet(surface->GetOutput()); extract->SetInput(rgrid); extract->SetExtractInside(true); extract->SetImplicitFunction(implData); /* * Process, render, etc. */ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordanov_teo at yahoo.com Mon Oct 15 03:58:49 2007 From: jordanov_teo at yahoo.com (Teodor Yordanov Ivanov) Date: Mon, 15 Oct 2007 00:58:49 -0700 (PDT) Subject: [vtkusers] to post Message-ID: <643633.17306.qm@web34714.mail.mud.yahoo.com> jordanov_teo at yahoo.com ____________________________________________________________________________________ Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. http://smallbusiness.yahoo.com/webhosting From jordanov_teo at yahoo.com Mon Oct 15 04:01:44 2007 From: jordanov_teo at yahoo.com (Teodor Yordanov Ivanov) Date: Mon, 15 Oct 2007 01:01:44 -0700 (PDT) Subject: [vtkusers] jordanov_teo@yahoo.com Message-ID: <68692.20757.qm@web34714.mail.mud.yahoo.com> jordanov_teo at yahoo.com ____________________________________________________________________________________ Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase. http://farechase.yahoo.com/ From jordanov_teo at yahoo.com Mon Oct 15 09:09:31 2007 From: jordanov_teo at yahoo.com (Teodor Yordanov Ivanov) Date: Mon, 15 Oct 2007 06:09:31 -0700 (PDT) Subject: [vtkusers] dynamic data sets/ 3D points Message-ID: <630585.67091.qm@web34711.mail.mud.yahoo.com> Hello, i just beginn with VTK. I have read so many VTK classes and examples and i still can not find solution for my problem. and here is it. I have several X-positions. Every X position has 400 Y-values and 400 Z-values. Every 5 sec. one X position is updated with new 400 Y- and Z-values. I would like to plot the all data sets in one picture, like this http://www-e.uni-magdeburg.de/tivanov/haldeVis.JPG i just have 3D points and want to chart them. i tried to select a VTK class for this task, but i coundt find a good example fot this case. Is VTK appropriate for this task? Which class / building block should i use (f. E. vtkStruckturedGrid)? On what should i pay attention? Where can i find more info and examples similar to this task?? Thanks for your help in advance teodor PS: i am using VTK with DEV CPP. ____________________________________________________________________________________ Check out the hottest 2008 models today at Yahoo! Autos. http://autos.yahoo.com/new_cars.html From michael.kozel at web.de Mon Oct 15 09:13:16 2007 From: michael.kozel at web.de (Michael Kozel) Date: Mon, 15 Oct 2007 15:13:16 +0200 Subject: [vtkusers] Where do I get this class of VTK 5.1: vtkDijkstraGraphGeodesicPath? Message-ID: <424533460@web.de> Hi everybody, I am building a VTK project in C++ with VTK 5.03 in Visual Studio 2005. I need something like in this new class: vtkDijkstraGraphGeodesicPath. It is about puttting a single trianglestrip surface from a PolyData-object in an object of this class and getting the shortest connection between 2 given vertex on the surface with the help of Dijkstra-algorithm. I wanted to implement something similar, but then I saw that this one already exists. So where can I get it from? Michael From david.cole at kitware.com Mon Oct 15 09:48:45 2007 From: david.cole at kitware.com (David Cole) Date: Mon, 15 Oct 2007 09:48:45 -0400 Subject: [vtkusers] Where do I get this class of VTK 5.1: vtkDijkstraGraphGeodesicPath? In-Reply-To: <424533460@web.de> References: <424533460@web.de> Message-ID: CVS HEAD of VTK... It is a new class that will not be merged into the VTK-5-0 branch. On 10/15/07, Michael Kozel wrote: > Hi everybody, > I am building a VTK project in C++ with VTK 5.03 in Visual Studio 2005. I need something like in this new class: > vtkDijkstraGraphGeodesicPath. > It is about puttting a single trianglestrip surface from a PolyData-object in an object of this class and getting the shortest connection between 2 given vertex on the surface with the help of Dijkstra-algorithm. I wanted to implement something similar, but then I saw that this one already exists. > So where can I get it from? > > Michael > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From naim at electromagneticworks.com Mon Oct 15 11:29:27 2007 From: naim at electromagneticworks.com (Naim) Date: Mon, 15 Oct 2007 11:29:27 -0400 Subject: [vtkusers] vtkInteractorStyleRubberBandZoom Message-ID: Hi everybody When I ran my application under window vista, I noticed that the zoom using rubber band box (vtkInteractorStyleRubberBandZoom filter) became very slow. At least if I try it, it draws two boxes before doing the zoom. Under all others versions of window it's running correctly. Do you have an idea why? Naim Himrane ElectromagneticWorks Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From qxue at jouy.inra.fr Mon Oct 15 12:35:21 2007 From: qxue at jouy.inra.fr (Quan Xue) Date: Mon, 15 Oct 2007 18:35:21 +0200 Subject: [vtkusers] questions for overlay two volumes Message-ID: <471396C9.7060308@jouy.inra.fr> Hi, VTKUsers: I am writing a program by vtk to put two 3D volumes (original volume and segmented volume) together and see the results by controling opacity. I have tried vtkImageBlend and vtkAssembly but both of them can not work yet. To me, I think vtkImageBlend is a way but I am not sure. How to render two volumes at the same time? Would you give me some advices about this question? Are there other classes or examples in VTK? Quan From xubinbin2004 at gmail.com Mon Oct 15 14:25:31 2007 From: xubinbin2004 at gmail.com (Bin) Date: Mon, 15 Oct 2007 12:25:31 -0600 Subject: [vtkusers] Question about vtkSurfaceReconstructionFilter Message-ID: <8f1c3d500710151125p3d569a9av3c3c58aebf3c30d8@mail.gmail.com> Hi, I used vtkSurfaceReconstructionFilter and vtkContourFilter to reconstructe a surface, but the resulted surface is about 4 times smaller than the input. Does anyone know why? Thanks a lot. -- Best regards, Bin -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.chen at gmail.com Mon Oct 15 16:50:29 2007 From: elvis.chen at gmail.com (Elvis Chen) Date: Mon, 15 Oct 2007 16:50:29 -0400 Subject: [vtkusers] Fwd: how to position/orient a DICOM volume In-Reply-To: <4c2a34b40710121404w76aa5467ue27d7f96c3f55cbb@mail.gmail.com> References: <4c2a34b40710121404w76aa5467ue27d7f96c3f55cbb@mail.gmail.com> Message-ID: <4c2a34b40710151350o7a41f9d4rf9efc36941197107@mail.gmail.com> hi all, I should mention that I'm writing my own volume viewer in straight OpenGL so that multiple (and overlapping) volume can be rendered correctly. This is why I need to know how to position/orient the dicom volume (outside of the vtk framework). I'm using vtkDICOMImageReader and vtkImageExport to read dicom volumes and access them within OpenGL context. Any help is very much appreciated, Elvis ---------- Forwarded message ---------- From: Elvis Chen Date: Oct 12, 2007 5:04 PM Subject: how to position/orient a DICOM volume To: vtkusers at vtk.org hi all, I would like to display multiple DICOM volumes in a common coordinate system (MRI machine, for example) so that volumes of different anatomies are displayed in their correct poses (relative to each other). Using DataExtent and DataSpacing, one can compute the *real* size of the volume, but I'm not clear on how to position and orient a DICOM volume. >From the documentation the following two functions seems to give the absolute geometry of a DICOM volume (from vtkDICOMImageReader): GetImageOrientationPatient() Get the (DICOM) directions cosines. It consist of the components of the first two vectors. The third vector needs to be computed to form an orthonormal basis. GetImagePositionPatient() Get the (DICOM) x,y,z coordinates of the first pixel in the image (upper left hand corner) of the last image processed by the DICOMParser However, the descriptions are not informative enough for me to render the DICOM volumes correctly. Can someone please explain if I'm on the right track, or is there another to get the absolute geometry of a DICOM volume? any help is very much appreciated, Elvis From dzldzldzl2004 at 163.com Tue Oct 16 03:10:45 2007 From: dzldzldzl2004 at 163.com (dzldzldzl2004) Date: Tue, 16 Oct 2007 15:10:45 +0800 (CST) Subject: [vtkusers] Consultation about vtk cisg Message-ID: <1226377404.860531192518645362.JavaMail.coremail@bj163app89.163.com> Dear Mr.Hartkens, I'm now doing some research on deformable registration.And I'm very interested in the vtk cisg toolkit and want to download the software package. However,I can't open the web pagehttp://www.image-registration.com. Would you please send the vtk cisg toolkit to me ? I woule also like some guidance about the toolkit. I lookforward to hearing from you soon. Yours sincerely Duan Zhuolei ???????????????? ?????????????? -------------- next part -------------- An HTML attachment was scrubbed... URL: From eugen.wintersberger at jku.at Tue Oct 16 03:37:45 2007 From: eugen.wintersberger at jku.at (Eugen Wintersberger) Date: Tue, 16 Oct 2007 09:37:45 +0200 Subject: [vtkusers] strange python numpy problem Message-ID: <1192520265.7139.12.camel@localhost> Hi there I've just started with VTK and want to use it together with python for writting scripts for data visualization. In python numpy arrays are my most favorable structures for holding numerical data, therefore, I would like copy data directly from a numpy array to a vtkFloatArray for instance without using loops. You will find two scripts attached to this mail: test1.py which fills a vtkFloatArray from a numpy array by means of a loop test2.py which fills a vtkFloatArray using the SetVoidArray method of the vtkFloatArray class. After filling in the data I print the data stored in the vtkFloatArray and get the following output: ~/src/test/python/vtk $ python test1.py 0.10000000149 0.20000000298 0.300000011921 0.40000000596 0.5 0.600000023842 0.699999988079 0.800000011921 and ~/src/test/python/vtk $ python test2.py 0.10000000149 0.20000000298 0.300000011921 0.40000000596 0.5 0.600000023842 0.699999988079 0.800000011921 So it seems that both procedures load the data correctly into the vtkFloatArray. However, the resulting 3D image looks much more different as you can see from the two attached screenshots of test1.jpg and test2.jpg (the screenshots belong to the output of the scripts test1.py and test2.py respectively). I user VTK 5.0.2 on an Ubuntu AMD64 (native 64Bit) installation. Has anyone an idea what I am doing wrong or if there is a problem in the VTK/python interface? If this numpy arrays are not supported it would be an interesting feature to add to VTKs python interface. best regrads Eugen Wintersberger -- -------------------------------------------- | | | Dipl. Ing. Eugen Wintersberger | | Department of semicondutor physics | | University of Linz | | Altenbergerstrasse 69 | | A-4040 Linz | | Austria | | | | Mobile.: +43 664 3112861 | | Tel.: +43 732 2468 9605 | | E-Mail.: eugen.wintersberger at jku.at | | Skype: eugen20056221 | | ICQ: 214418739, nickname: thot | | | -------------------------------------------- -------------- next part -------------- A non-text attachment was scrubbed... Name: test1.py Type: text/x-python Size: 1945 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test1.jpg Type: image/jpeg Size: 24942 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test2.py Type: text/x-python Size: 1946 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test2.jpg Type: image/jpeg Size: 25627 bytes Desc: not available URL: From blloyd at student.ethz.ch Tue Oct 16 07:52:07 2007 From: blloyd at student.ethz.ch (Bryn Lloyd) Date: Tue, 16 Oct 2007 13:52:07 +0200 Subject: [vtkusers] strange python numpy problem In-Reply-To: <1192520265.7139.12.camel@localhost> References: <1192520265.7139.12.camel@localhost> Message-ID: <4714A5E7.2090301@student.ethz.ch> Hi Eugen, I think the mistake you made is here: a=numpy.array([[0.1],[0.2],[0.3],[0.4],[0.5],[0.6],[0.7],[0.8]],dtype=numpy.float32); print content of array ... ... a = vtk.vtkActor(); a.SetMapper(mapper); Both variables have the same name. I tried it out - calling the actor 'act' instead of 'a' did the job. If you move the "print content of array" down below the "a = vtk.vtkActor()" line, you will not get correct output. Cheers Bryn Eugen Wintersberger wrote: > Hi there > I've just started with VTK and want to use it together with python for > writting scripts for data visualization. In python numpy arrays are my > most favorable structures for holding numerical data, therefore, I would > like copy data directly from a numpy array to a vtkFloatArray for > instance without using loops. > You will find two scripts attached to this mail: > test1.py which fills a vtkFloatArray from a numpy array by means of a > loop > test2.py which fills a vtkFloatArray using the SetVoidArray method > of the vtkFloatArray class. > After filling in the data I print the data stored in the vtkFloatArray > and get the following output: > > ~/src/test/python/vtk $ python test1.py > 0.10000000149 > 0.20000000298 > 0.300000011921 > 0.40000000596 > 0.5 > 0.600000023842 > 0.699999988079 > 0.800000011921 > > and > > ~/src/test/python/vtk $ python test2.py > 0.10000000149 > 0.20000000298 > 0.300000011921 > 0.40000000596 > 0.5 > 0.600000023842 > 0.699999988079 > 0.800000011921 > > So it seems that both procedures load the data correctly into the > vtkFloatArray. However, the resulting 3D image looks much more different > as you can see from the two attached screenshots of test1.jpg and > test2.jpg (the screenshots belong to the output of the scripts test1.py > and test2.py respectively). > > I user VTK 5.0.2 on an Ubuntu AMD64 (native 64Bit) installation. > > Has anyone an idea what I am doing wrong or if there is a problem in the > VTK/python interface? If this numpy arrays are not supported it would be > an interesting feature to add to VTKs python interface. > > best regrads > Eugen Wintersberger > > > > > > ------------------------------------------------------------------------ > > #!/bin/env python > > import vtk > import numpy > > #create a vtkDataArray holding the data values on the positions > a = numpy.array([[0.1],[0.2],[0.3],[0.4],[0.5],[0.6],[0.7],[0.8]],dtype=numpy.float32); > data = vtk.vtkFloatArray(); > data.SetNumberOfComponents(1); > data.SetNumberOfTuples(8); > #data.SetVoidArray(a[:,:],a.shape[0],1); > for i in range(a.shape[0]): > data.InsertTuple1(i,a[i,0]); > for i in range(a.shape[0]): > print data.GetTuple1(i); > > > #create the polygonal data field describing a cube > points = vtk.vtkPoints(); > points.InsertPoint(0,-0.5,0.5,-0.5); > points.InsertPoint(1, 0.5,0.5,-0.5); > points.InsertPoint(2,-0.5,0.5, 0.5); > points.InsertPoint(3, 0.5,0.5, 0.5); > points.InsertPoint(4,-0.5,-0.5,-0.5); > points.InsertPoint(5, 0.5,-0.5,-0.5); > points.InsertPoint(6,-0.5,-0.5, 0.5); > points.InsertPoint(7, 0.5,-0.5, 0.5); > > pdata = vtk.vtkPolyData(); > pdata.SetPoints(points); > pdata.GetPointData().SetScalars(data); > > > #create the sphere which should be used to anotate the > #corners of the cube > sp = vtk.vtkSphereSource(); > sp.SetPhiResolution(50); > sp.SetThetaResolution(50); > > #need representation of the data with Glyphs > glyph = vtk.vtkGlyph3D(); > glyph.SetInput(pdata); > glyph.SetSourceConnection(sp.GetOutputPort()); > > mapper = vtk.vtkPolyDataMapper(); > mapper.SetInputConnection(glyph.GetOutputPort()); > > #start here with rendering > a = vtk.vtkActor(); > a.SetMapper(mapper); > > #add an actor with a coordinate frame > tprop = vtk.vtkTextProperty(); > tprop.SetColor(0,0,0); > tprop.ShadowOn(); > > ren = vtk.vtkRenderer(); > ren.SetBackground(0.0,0.0,0.0); > ren.AddActor(a); > > cube = vtk.vtkCubeAxesActor2D(); > cube.SetInput(pdata); > cube.SetCamera(ren.GetActiveCamera()); > cube.SetFlyModeToOuterEdges(); > cube.SetNumberOfLabels(5); > ren.AddActor(cube); > > renwin = vtk.vtkRenderWindow(); > renwin.AddRenderer(ren); > renwin.SetSize(300,300); > > renwinia = vtk.vtkRenderWindowInteractor() > renwinia.SetRenderWindow(renwin); > > renwinia.Initialize(); > renwin.Render(); > renwinia.Start(); > > > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > #!/bin/env python > > import vtk > import numpy > > #create a vtkDataArray holding the data values on the positions > a = numpy.array([[0.1],[0.2],[0.3],[0.4],[0.5],[0.6],[0.7],[0.8]],dtype=numpy.float32); > data = vtk.vtkFloatArray(); > data.SetNumberOfComponents(1); > data.SetNumberOfTuples(8); > data.SetVoidArray(a[:,:],a.shape[0],1); > #for i in range(a.shape[0]): > # data.InsertTuple1(i,a[i,0]); > for i in range(a.shape[0]): > print data.GetTuple1(i); > > > #create the polygonal data field describing a cube > points = vtk.vtkPoints(); > points.InsertPoint(0,-0.5,0.5,-0.5); > points.InsertPoint(1, 0.5,0.5,-0.5); > points.InsertPoint(2,-0.5,0.5, 0.5); > points.InsertPoint(3, 0.5,0.5, 0.5); > points.InsertPoint(4,-0.5,-0.5,-0.5); > points.InsertPoint(5, 0.5,-0.5,-0.5); > points.InsertPoint(6,-0.5,-0.5, 0.5); > points.InsertPoint(7, 0.5,-0.5, 0.5); > > pdata = vtk.vtkPolyData(); > pdata.SetPoints(points); > pdata.GetPointData().SetScalars(data); > > > #create the sphere which should be used to anotate the > #corners of the cube > sp = vtk.vtkSphereSource(); > sp.SetPhiResolution(50); > sp.SetThetaResolution(50); > > #need representation of the data with Glyphs > glyph = vtk.vtkGlyph3D(); > glyph.SetInput(pdata); > glyph.SetSourceConnection(sp.GetOutputPort()); > > mapper = vtk.vtkPolyDataMapper(); > mapper.SetInputConnection(glyph.GetOutputPort()); > > #start here with rendering > a = vtk.vtkActor(); > a.SetMapper(mapper); > > #add an actor with a coordinate frame > tprop = vtk.vtkTextProperty(); > tprop.SetColor(0,0,0); > tprop.ShadowOn(); > > ren = vtk.vtkRenderer(); > ren.SetBackground(0.0,0.0,0.0); > ren.AddActor(a); > > cube = vtk.vtkCubeAxesActor2D(); > cube.SetInput(pdata); > cube.SetCamera(ren.GetActiveCamera()); > cube.SetFlyModeToOuterEdges(); > cube.SetNumberOfLabels(5); > ren.AddActor(cube); > > renwin = vtk.vtkRenderWindow(); > renwin.AddRenderer(ren); > renwin.SetSize(300,300); > > renwinia = vtk.vtkRenderWindowInteractor() > renwinia.SetRenderWindow(renwin); > > renwinia.Initialize(); > renwin.Render(); > renwinia.Start(); > > > > > > ------------------------------------------------------------------------ > > > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From jelleferinga at gmail.com Tue Oct 16 10:05:27 2007 From: jelleferinga at gmail.com (jelle) Date: Tue, 16 Oct 2007 14:05:27 +0000 (UTC) Subject: [vtkusers] Re: strange python numpy problem References: <1192520265.7139.12.camel@localhost> Message-ID: What you want is TVTK, which wraps the numpy array in a pythonic manner: https://svn.enthought.com/enthought/wiki/TVTK tvtk is the best thing that happened to python-vtk since sliced bread ;') seriously, its a *wonderful* addition to the python wrappers that allow python programmers to stick to their idioms. -jelle From mail_di_ale at yahoo.it Tue Oct 16 10:58:07 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Tue, 16 Oct 2007 16:58:07 +0200 (CEST) Subject: [vtkusers] help: vtk & fltk Message-ID: <457211.39467.qm@web26401.mail.ukl.yahoo.com> hallo.. I'm trying to install vtkFLTK, according to the instructions I found in:http://vtkfltk.sourceforge.net/Building.html When I run cmake it complains that it cannot find FLTK.. namely: CMake Error: FLTK not found. Please set the FLTK_INCLUDE_DIR cmake cache entry. This is either the root of the build tree, or PREFIX/include for an installation. What should I do??????? Thanks a lot Ale --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredmfp at gmail.com Tue Oct 16 11:20:39 2007 From: fredmfp at gmail.com (fred) Date: Tue, 16 Oct 2007 17:20:39 +0200 Subject: [vtkusers] Re: strange python numpy problem In-Reply-To: References: <1192520265.7139.12.camel@localhost> Message-ID: <4714D6C7.20908@gmail.com> jelle a ?crit : > What you want is TVTK, which wraps the numpy array in a pythonic manner: > > https://svn.enthought.com/enthought/wiki/TVTK > > tvtk is the best thing that happened to python-vtk since sliced bread ;') > seriously, its a *wonderful* addition to the python wrappers that allow python > programmers to stick to their idioms. > Traits is the best thing that happened to python since sliced bread :-)))) -- http://scipy.org/FredericPetit From cedric.schwartz at enst-bretagne.fr Tue Oct 16 12:18:38 2007 From: cedric.schwartz at enst-bretagne.fr (Cedric) Date: Tue, 16 Oct 2007 18:18:38 +0200 Subject: [vtkusers] Re: help: vtk & fltk In-Reply-To: <20071016160102.8E5F81F2C57@public.kitware.com> References: <20071016160102.8E5F81F2C57@public.kitware.com> Message-ID: <42AC1775-7F5F-4ACD-AEC8-BBF68AF5A71E@enst-bretagne.fr> Hi, First ccmake ask me for the FLTK_INCLUDE_DIR. You should put the path to the folder containing fltk (ie: /home/librairie/fltk). Then after configuring, i have to inform more lines. Just fill the FLTK_FLUID_EXECUTABLE (ie: /home/librairie/fltk/fluid/fluid) and the FLTK_INCLUDE_DIR (ie: /home/librairie/fltk) lines. This should work ... Good luck, C?dric Date: Tue, 16 Oct 2007 16:58:07 +0200 (CEST) From: Alessio Balzide Subject: [vtkusers] help: vtk & fltk To: vtkusers at vtk.org Message-ID: <457211.39467.qm at web26401.mail.ukl.yahoo.com> Content-Type: text/plain; charset="iso-8859-1" hallo.. I'm trying to install vtkFLTK, according to the instructions I found in:http://vtkfltk.sourceforge.net/Building.html When I run cmake it complains that it cannot find FLTK.. namely: CMake Error: FLTK not found. Please set the FLTK_INCLUDE_DIR cmake cache entry. This is either the root of the build tree, or PREFIX/ include for an installation. What should I do??????? Thanks a lot Ale From tugcan.tuzcu at gmail.com Tue Oct 16 17:09:07 2007 From: tugcan.tuzcu at gmail.com (tugcan) Date: Tue, 16 Oct 2007 14:09:07 -0700 (PDT) Subject: [vtkusers] HOW TO ADD TRANPARENCY OPTION TO VTK FILE Message-ID: <13242524.post@talk.nabble.com> Dear friends, I use VTK-legacy file format # vtk DataFile Version 3.0 name ASCII DATASET POLYDATA POINTS ---- float ----- . . . POLYGONS n m ------ ----- SO IS THERE ANY WAY TO MAKE THIS OBJECT TRANSPARENT BY ADDING SOMETHING ON THIS SET OF DATA ? I DON'T WANT TO USE PARAVIEW SURFACE-WIREFRAME OPTION. I WANT THIS OBJECT TO MAKE TRANSPARENT WITH A COMMAND. IS IT POSSIBLE ? REGARDS, TUGCAN -- View this message in context: http://www.nabble.com/HOW-TO-ADD-TRANPARENCY-OPTION-TO-VTK-FILE-tf4636813.html#a13242524 Sent from the VTK - Users mailing list archive at Nabble.com. From rnelias at nacad.ufrj.br Tue Oct 16 18:43:43 2007 From: rnelias at nacad.ufrj.br (Renato N. Elias) Date: Tue, 16 Oct 2007 19:43:43 -0300 Subject: RES: [vtkusers] HOW TO ADD TRANPARENCY OPTION TO VTK FILE In-Reply-To: <13242524.post@talk.nabble.com> References: <13242524.post@talk.nabble.com> Message-ID: <434410D1F3564D309BE6694C2A0F3C75@tetra2> well, you can do it by setting the opacity display option in ParaView. In VTK library (not in the file format) there should be something similar. cheers Renato. -----Mensagem original----- De: vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org [mailto:vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org] Em nome de tugcan Enviada em: ter?a-feira, 16 de outubro de 2007 18:09 Para: vtkusers at vtk.org Assunto: [vtkusers] HOW TO ADD TRANPARENCY OPTION TO VTK FILE Dear friends, I use VTK-legacy file format # vtk DataFile Version 3.0 name ASCII DATASET POLYDATA POINTS ---- float ----- . . . POLYGONS n m ------ ----- SO IS THERE ANY WAY TO MAKE THIS OBJECT TRANSPARENT BY ADDING SOMETHING ON THIS SET OF DATA ? I DON'T WANT TO USE PARAVIEW SURFACE-WIREFRAME OPTION. I WANT THIS OBJECT TO MAKE TRANSPARENT WITH A COMMAND. IS IT POSSIBLE ? REGARDS, TUGCAN -- View this message in context: http://www.nabble.com/HOW-TO-ADD-TRANPARENCY-OPTION-TO-VTK-FILE-tf4636813.ht ml#a13242524 Sent from the VTK - Users mailing list archive at Nabble.com. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers From zhangtuo123 at yahoo.com.cn Wed Oct 17 03:17:28 2007 From: zhangtuo123 at yahoo.com.cn (tuo zhang) Date: Wed, 17 Oct 2007 15:17:28 +0800 (CST) Subject: [vtkusers] vtkImageData::GetNumberOfScalarComponents() Message-ID: <152666.90639.qm@web15814.mail.cnb.yahoo.com> Hi all, what does "scalar components" mean? Thanks! Jedi 07/10/17 ___________________________________________________________ ?????????? http://mail.yahoo.com.cn/ From lejda at gmx.de Wed Oct 17 04:09:50 2007 From: lejda at gmx.de (Enkelejda Tafaj) Date: Wed, 17 Oct 2007 10:09:50 +0200 Subject: [vtkusers] TIffReader throws segmentation fault when reading large volume data (> 2GB) In-Reply-To: <20071012160059.DDEEE1F2C7D@public.kitware.com> References: <20071012160059.DDEEE1F2C7D@public.kitware.com> Message-ID: <4715C34E.5030503@gmx.de> Hi, I'm trying to read a 5 GB large stack of .tif images using the TIFFReader on a machine with 8 GB of RAM (64-Bit Processor&Kernel). Reading stacks < 2 GB works fine, for all larger stacks a segmentation fault is thrown. Does anyone know a reason for this? Thank you for your help, Enkeljeda From S.D.Kenny at lboro.ac.uk Wed Oct 17 04:47:17 2007 From: S.D.Kenny at lboro.ac.uk (Steven Kenny) Date: Wed, 17 Oct 2007 09:47:17 +0100 Subject: [vtkusers] Visualising data on a uniform grid Message-ID: <7EE02EB2-AC93-4D91-B8AF-414AA42E2D8D@lboro.ac.uk> I have some data that I am reading in that exists on a uniform grid. This is being assigned to type vtkPoints at the moment. It consists of three distinct parts points - the x, y and z coordinate of the point vector - a three component vector associated with each point scalar - a scalar value associated with each point I would like to display the data with the colour at a point in space determined by the three component vector, with its values being used as the RGB components for the colour at that point and with the scalar determining whether a particular point is visible or not. This could either be via a hard cutoff, i.e. if scalar is less than x then point is invisible or by applying a function to the determine an alpha value. I am unsure what is the best route to achieve this. Does anyone have any suggestions. Thanks, Steven Kenny From web at busino.ch Wed Oct 17 07:44:11 2007 From: web at busino.ch (Raphael Walker) Date: Wed, 17 Oct 2007 13:44:11 +0200 Subject: [vtkusers] string labels on cellcenters Message-ID: <4715F58B.6050102@busino.ch> Hi all, I'm trying to have string labels on cell centers of a unstructuredgrid plot. 1. first i create a vtkCharArray with the strings. 2. add it to the cell data 3. create a vtkLabeledDataMapper with the cellcenter 4. set the fieldDataArray I only get "(null)" labels! For an example see the script at the end. Thanks for any help and ideas Raffs EXAMPLE++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ #!/usr/bin/env python import vtk from vtk import * from numpy import * # # array to create the model # # points coordinates ptarray = array([0,0,0,0,0.153135,0,0.358,0.153135,0,0.358,0,0,0.0770633,0,0,0.19452,0,0,0.288133,0,0,0,0.0768721,0,0.0766132,0.153135,0,0.191553,0.153135,0,0.270763,0.153135,0,0.358,0.0697678,0,0.267349,0.0919374,0,0.134156,0.0780027,0]) # element table earray = array([3,3,11,6,3,6,11,12,3,10,9,12,3,9,8,13,3,12,9,13,3,8,1,7,3,13,8,7,3,7,0,4,3,13,7,4,3,4,5,13,3,5,6,12,3,13,5,12,3,11,2,12,3,2,10,12], int32) # element types -> triangle ctarray = array((6,6,6,6,6,6,6,6,6,6,6,6,6,6), ubyte) # element start index locarray = array((0,4,8,12,16,20,24,28,32,36,40,44,48,52), int32) # scalar values for the cell centers scalarray = array((1.,2.,3.,4.,5.,6.,7.,8.,9.,8.,7.,6.,5.,4.)) # label array labelarray = array(("QW", "SD", "sd", "qe", "gd", "sd", "qe", "fd", "sd", "we", "gd", "ad", "qe", "gd")) # idtypes IdTArray=vtkIdTypeArray() IdTArray.SetNumberOfComponents(3) IdTArray.SetNumberOfTuples(len(earray)) IdTArray.SetVoidArray(earray,len(earray),1) # celltypes cidTArray=vtkUnsignedCharArray() cidTArray.SetVoidArray(ctarray,len(ctarray),1) # cell array vtkCArray=vtkCellArray() vtkCArray.SetCells(len(earray),IdTArray) # cell location vtkLocArray=vtkIdTypeArray() vtkLocArray.SetVoidArray(locarray,len(locarray),1) # grid grid=vtkUnstructuredGrid() grid.SetCells(cidTArray,vtkLocArray,vtkCArray) # points vpoints=vtkDoubleArray() vpoints.SetNumberOfComponents(3) vpoints.SetNumberOfTuples(len(ptarray)) vpoints.SetVoidArray(ptarray,len(ptarray),1) pointe = vtkPoints() pointe.SetData(vpoints) grid.SetPoints(pointe) grid.Update() # scalars scalars = vtkDoubleArray() scalars.SetVoidArray(scalarray, len(scalarray), 1) grid.GetCellData().SetScalars(scalars) # labels charArray = vtkCharArray() charArray.SetNumberOfComponents(3) charArray.SetNumberOfTuples(len(labelarray)) charArray.SetVoidArray(labelarray, 3*14,1) grid.GetCellData().AddArray(charArray) geom = vtkGeometryFilter() geom.SetInput(grid) # Create cell centers cellCenters = vtk.vtkCellCenters() cellCenters.SetInputConnection(geom.GetOutputPort()) # Create the mapper to display the cell cellMapper = vtk.vtkLabeledDataMapper() cellMapper.SetInputConnection(cellCenters.GetOutputPort()) cellMapper.SetLabelFormat("%s") cellMapper.SetLabelModeToLabelFieldData() #cellMapper.TreatCharDataAsStringOn(); cellMapper.SetFieldDataArray(0) # actor for the labels labelActor = vtk.vtkActor2D() labelActor.SetMapper(cellMapper) # data color mapper ColorMapper=vtkPolyDataMapper() ColorMapper.SetInputConnection(geom.GetOutputPort()) ColorMapper.SetScalarModeToUseCellData() ColorMapper.SetScalarRange(0.,9.) # actor for the colors colorActor = vtkActor() colorActor.SetMapper(ColorMapper) # renderer ren = vtk.vtkRenderer() # render window win = vtkRenderWindow() iren = vtkRenderWindowInteractor() iren.SetRenderWindow(win) style = vtkInteractorStyleTrackballCamera() iren.SetInteractorStyle(style) iren.Initialize() win.AddRenderer(ren) ren.AddActor(colorActor) ren.AddActor(labelActor) ren.SetBackground(0.1, 0.3, 0.4) win.Render() iren.Start() From burlen at apollo.sr.unh.edu Wed Oct 17 07:46:18 2007 From: burlen at apollo.sr.unh.edu (burlen) Date: Wed, 17 Oct 2007 07:46:18 -0400 Subject: [vtkusers] Visualising data on a uniform grid In-Reply-To: <7EE02EB2-AC93-4D91-B8AF-414AA42E2D8D@lboro.ac.uk> References: <7EE02EB2-AC93-4D91-B8AF-414AA42E2D8D@lboro.ac.uk> Message-ID: <4715F60A.6070201@apollo.sr.unh.edu> Hi, Did you know about vtkUniformGrid class? It is ideal for data specified on a uniform cartesian grid, and it supports blanking. take a look http://www.vtk.org/doc/release/5.0/html/a02137.html As for the vector visualization, maybe you could use a lookup table creating the color entries based on the vector components? Or would coloring a scalar field by the vector's magnitude be good enough? I am sure someone else here will have some better idea in this regard. -- Burlen Loring Information Technologist III Space Science Center Institute for the Study of Earth, Oceans, and Space University of New Hampshire 39 College Road, Durham, NH 03824 Phone: 603-862-1140 Steven Kenny wrote: > I have some data that I am reading in that exists on a uniform grid. > This is being assigned to type vtkPoints at the moment. It consists of > three distinct parts > > points - the x, y and z coordinate of the point > vector - a three component vector associated with each point > scalar - a scalar value associated with each point > > I would like to display the data with the colour at a point in space > determined by the three component vector, with its values being used > as the RGB components for the colour at that point and with the scalar > determining whether a particular point is visible or not. This could > either be via a hard cutoff, i.e. if scalar is less than x then point > is invisible or by applying a function to the determine an alpha value. > > I am unsure what is the best route to achieve this. Does anyone have > any suggestions. > > Thanks, > > Steven Kenny > _______________________________________________ > This is the private VTK discussion list.Please keep messages on-topic. > Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From A.Lintermann at aia.rwth-aachen.de Wed Oct 17 08:49:07 2007 From: A.Lintermann at aia.rwth-aachen.de (Lintermann Andreas) Date: Wed, 17 Oct 2007 14:49:07 +0200 Subject: [vtkusers] Generating 3D images from surfaces Message-ID: <4DA448FE-2C14-495A-9896-29FC22FDF3CC@aia.rwth-aachen.de> Hi, I was wondering if there exists a class which can handle the following problem: I have a 3D geometry stored in a vtkPolyData and I would like to generate a 3D image out of it. The image should have a resolution specified by the user. I was thinking about using bounded 2D cut planes through my geometry and and generate a certain pixel value at the position of the pixel, where a triangle from my 3d surface cuts this plane. After generating a lot of these 2d images along a certain axis (the distance of the planes is the diameter in z-direction of the geomtry devided by the resolution of the image in z-direction), I want to combine these images to a 3d image volume. Is there any easier way to handle this? Yours sincerly, Andreas Lintermann ----------------------- Aerodynamisches Institut und Lehrstuhl f?r Str?mungslehre der RWTH Aachen Institute of Aerodynamics and the Chair of Fluid Mechanics of RWTH Aachen University Andreas Lintermann Webdesign and Network Administration Tel: (+49)-241-80-95415 Fax: (+49)-241-80-92257 A.Lintermann at aia.rwth-aachen.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From meisam.aliroteh at gmail.com Wed Oct 17 09:15:56 2007 From: meisam.aliroteh at gmail.com (Meisam Aliroteh) Date: Wed, 17 Oct 2007 09:15:56 -0400 Subject: [vtkusers] vtkImageData::GetNumberOfScalarComponents() In-Reply-To: <152666.90639.qm@web15814.mail.cnb.yahoo.com> References: <152666.90639.qm@web15814.mail.cnb.yahoo.com> Message-ID: <394c464d0710170615j11db4aa2ma17e2ee2748988fe@mail.gmail.com> If you have a gray-scaled image then your image has 1 scalar component (just the gray level) and if you have a colored image then your image has 3 scalar components (RGB, HSV, HSI, etc). GetNumberOfScalarComponents will tell you this number. On 10/17/07, tuo zhang wrote: > > Hi all, > what does "scalar components" mean? > > Thanks! > > Jedi 07/10/17 > > > ___________________________________________________________ > ?????????? > http://mail.yahoo.com.cn/ > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From imikejackson at gmail.com Wed Oct 17 09:33:19 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Wed, 17 Oct 2007 09:33:19 -0400 Subject: [vtkusers] TIffReader throws segmentation fault when reading large volume data (> 2GB) In-Reply-To: <4715C34E.5030503@gmx.de> References: <20071012160059.DDEEE1F2C7D@public.kitware.com> <4715C34E.5030503@gmx.de> Message-ID: I am guessing that libTiff or the Tiff Reader in VTK may have a 32bit file size limit. The fact that a stack of LESS than 2GB seems to indicate this. Just a guess. Can you compile VTK in debug mode and then run your program in a debugger? When it seg faults you should be able to get a stack trace and try to figure out where things went badly. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 17, 2007, at 4:09 AM, Enkelejda Tafaj wrote: > Hi, > > I'm trying to read a 5 GB large stack of .tif images using the > TIFFReader on a machine with 8 GB of RAM (64-Bit Processor&Kernel). > > Reading stacks < 2 GB works fine, for all larger stacks a > segmentation fault is thrown. Does anyone know a reason for this? > > Thank you for your help, > Enkeljeda > _______________________________________________ > This is the private VTK discussion list. Please keep messages on- > topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From sean at rogue-research.com Wed Oct 17 10:07:33 2007 From: sean at rogue-research.com (Sean McBride) Date: Wed, 17 Oct 2007 10:07:33 -0400 Subject: [vtkusers] TIffReader throws segmentation fault when reading large volume data (> 2GB) In-Reply-To: <4715C34E.5030503@gmx.de> References: <20071012160059.DDEEE1F2C7D@public.kitware.com> <4715C34E.5030503@gmx.de> Message-ID: <20071017140733.553686554@smtp1.sympatico.ca> On 10/17/07 10:09 AM, Enkelejda Tafaj said: >I'm trying to read a 5 GB large stack of .tif images using the >TIFFReader on a machine with 8 GB of RAM (64-Bit Processor&Kernel). > >Reading stacks < 2 GB works fine, for all larger stacks a segmentation >fault is thrown. Does anyone know a reason for this? Which OS? Which VTK? I suspect it is because you have built VTK as a 32 bit library and are using it within a 32 bit process. This means your app can use at most 4 GiB of memory, and because of fragmentation usually more like 2 GiB. Since you have a 64 bit OS and presumably a 64 bit CPU, I suggest you build VTK as 64 bit. How depends on your OS. However, know that VTK is buggy when built as 64 bit. You can see the 64 bit Vista dashboard is not even able to build without warnings: See also: Lastly, the TIFF code specifically is known to have 64 bit issues, see: Good luck. :) -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From henryjoye at gmail.com Wed Oct 17 21:17:37 2007 From: henryjoye at gmail.com (James Zhou) Date: Thu, 18 Oct 2007 11:17:37 +1000 Subject: [vtkusers] How to get native scalar pointer from a vtkImageReader? Message-ID: Hi, I read the 3D data into the vtk pipeline using vtkImageReader. Now I want to get the native scalar pointer (i.e. the pointer that points to the raw data), could you please give me any information on how to do this? Thanks! James -------------- next part -------------- An HTML attachment was scrubbed... URL: From vidyadhar at lucidindia.com Wed Oct 17 23:55:58 2007 From: vidyadhar at lucidindia.com (Vidyadhar) Date: Thu, 18 Oct 2007 09:25:58 +0530 Subject: [vtkusers] Generating 3D images from surfaces References: <4DA448FE-2C14-495A-9896-29FC22FDF3CC@aia.rwth-aachen.de> Message-ID: <002401c8113a$ce6574b0$1601a8c0@quad02> Hi, How about using vtkDataSetToImageFilter? Vidyadhar ----- Original Message ----- From: Lintermann Andreas To: vtkusers at vtk.org Sent: Wednesday, October 17, 2007 6:19 PM Subject: [vtkusers] Generating 3D images from surfaces Hi, I was wondering if there exists a class which can handle the following problem: I have a 3D geometry stored in a vtkPolyData and I would like to generate a 3D image out of it. The image should have a resolution specified by the user. I was thinking about using bounded 2D cut planes through my geometry and and generate a certain pixel value at the position of the pixel, where a triangle from my 3d surface cuts this plane. After generating a lot of these 2d images along a certain axis (the distance of the planes is the diameter in z-direction of the geomtry devided by the resolution of the image in z-direction), I want to combine these images to a 3d image volume. Is there any easier way to handle this? Yours sincerly, Andreas Lintermann ----------------------- Aerodynamisches Institut und Lehrstuhl f?r Str?mungslehre der RWTH Aachen Institute of Aerodynamics and the Chair of Fluid Mechanics of RWTH Aachen University Andreas Lintermann Webdesign and Network Administration Tel: (+49)-241-80-95415 Fax: (+49)-241-80-92257 A.Lintermann at aia.rwth-aachen.de -------------- next part -------------- An HTML attachment was scrubbed... URL: From vidyadhar at lucidindia.com Thu Oct 18 00:02:09 2007 From: vidyadhar at lucidindia.com (Vidyadhar) Date: Thu, 18 Oct 2007 09:32:09 +0530 Subject: [vtkusers] string labels on cellcenters References: <4715F58B.6050102@busino.ch> Message-ID: <002c01c8113b$b0988f70$1601a8c0@quad02> The documentation for vtkLabeledDataMapper works only with dataset points. As I understand it this means it can only use PointData and not CellData. May be somebody will correct me. Vidyadhar ----- Original Message ----- From: "Raphael Walker" To: Sent: Wednesday, October 17, 2007 5:14 PM Subject: [vtkusers] string labels on cellcenters > Hi all, > > I'm trying to have string labels on cell centers of a unstructuredgrid > plot. > > 1. first i create a vtkCharArray with the strings. > 2. add it to the cell data > 3. create a vtkLabeledDataMapper with the cellcenter > 4. set the fieldDataArray > > I only get "(null)" labels! > > For an example see the script at the end. > > Thanks for any help and ideas > > Raffs > > > > EXAMPLE++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > #!/usr/bin/env python > > import vtk > > from vtk import * > from numpy import * > > # > # array to create the model > # > > # points coordinates > ptarray = > array([0,0,0,0,0.153135,0,0.358,0.153135,0,0.358,0,0,0.0770633,0,0,0.19452,0,0,0.288133,0,0,0,0.0768721,0,0.0766132,0.153135,0,0.191553,0.153135,0,0.270763,0.153135,0,0.358,0.0697678,0,0.267349,0.0919374,0,0.134156,0.0780027,0]) > # element table > earray = > array([3,3,11,6,3,6,11,12,3,10,9,12,3,9,8,13,3,12,9,13,3,8,1,7,3,13,8,7,3,7,0,4,3,13,7,4,3,4,5,13,3,5,6,12,3,13,5,12,3,11,2,12,3,2,10,12], > int32) > # element types -> triangle > ctarray = array((6,6,6,6,6,6,6,6,6,6,6,6,6,6), ubyte) > # element start index > locarray = array((0,4,8,12,16,20,24,28,32,36,40,44,48,52), int32) > # scalar values for the cell centers > scalarray = array((1.,2.,3.,4.,5.,6.,7.,8.,9.,8.,7.,6.,5.,4.)) > # label array > labelarray = array(("QW", "SD", "sd", "qe", "gd", "sd", "qe", "fd", "sd", > "we", "gd", "ad", "qe", "gd")) > > # idtypes > IdTArray=vtkIdTypeArray() > IdTArray.SetNumberOfComponents(3) > IdTArray.SetNumberOfTuples(len(earray)) > IdTArray.SetVoidArray(earray,len(earray),1) > # celltypes > cidTArray=vtkUnsignedCharArray() > cidTArray.SetVoidArray(ctarray,len(ctarray),1) > # cell array > vtkCArray=vtkCellArray() > vtkCArray.SetCells(len(earray),IdTArray) > # cell location > vtkLocArray=vtkIdTypeArray() > vtkLocArray.SetVoidArray(locarray,len(locarray),1) > # grid > grid=vtkUnstructuredGrid() > grid.SetCells(cidTArray,vtkLocArray,vtkCArray) > > # points > vpoints=vtkDoubleArray() > vpoints.SetNumberOfComponents(3) > vpoints.SetNumberOfTuples(len(ptarray)) > vpoints.SetVoidArray(ptarray,len(ptarray),1) > pointe = vtkPoints() > pointe.SetData(vpoints) > grid.SetPoints(pointe) > grid.Update() > > # scalars > scalars = vtkDoubleArray() > scalars.SetVoidArray(scalarray, len(scalarray), 1) > grid.GetCellData().SetScalars(scalars) > > # labels > charArray = vtkCharArray() > charArray.SetNumberOfComponents(3) > charArray.SetNumberOfTuples(len(labelarray)) > charArray.SetVoidArray(labelarray, 3*14,1) > grid.GetCellData().AddArray(charArray) > > geom = vtkGeometryFilter() > geom.SetInput(grid) > > # Create cell centers > cellCenters = vtk.vtkCellCenters() > cellCenters.SetInputConnection(geom.GetOutputPort()) > > # Create the mapper to display the cell > cellMapper = vtk.vtkLabeledDataMapper() > cellMapper.SetInputConnection(cellCenters.GetOutputPort()) > cellMapper.SetLabelFormat("%s") > cellMapper.SetLabelModeToLabelFieldData() > #cellMapper.TreatCharDataAsStringOn(); > cellMapper.SetFieldDataArray(0) > > # actor for the labels > labelActor = vtk.vtkActor2D() > labelActor.SetMapper(cellMapper) > > # data color mapper > ColorMapper=vtkPolyDataMapper() > ColorMapper.SetInputConnection(geom.GetOutputPort()) > ColorMapper.SetScalarModeToUseCellData() > ColorMapper.SetScalarRange(0.,9.) > > # actor for the colors > colorActor = vtkActor() > colorActor.SetMapper(ColorMapper) > > > # renderer > ren = vtk.vtkRenderer() > > # render window > win = vtkRenderWindow() > > iren = vtkRenderWindowInteractor() > iren.SetRenderWindow(win) > style = vtkInteractorStyleTrackballCamera() > iren.SetInteractorStyle(style) > iren.Initialize() > > win.AddRenderer(ren) > ren.AddActor(colorActor) > ren.AddActor(labelActor) > > ren.SetBackground(0.1, 0.3, 0.4) > win.Render() > iren.Start() > > From web at busino.ch Thu Oct 18 03:24:13 2007 From: web at busino.ch (Raphael Walker) Date: Thu, 18 Oct 2007 09:24:13 +0200 Subject: [vtkusers] string labels on cellcenters In-Reply-To: <002c01c8113b$b0988f70$1601a8c0@quad02> References: <4715F58B.6050102@busino.ch> <002c01c8113b$b0988f70$1601a8c0@quad02> Message-ID: <47170A1D.9070900@busino.ch> Vidyadhar wrote: > The documentation for vtkLabeledDataMapper works only with dataset > points. As I understand it this means it can only use PointData and not > CellData. May be somebody will correct me. Hello Vidyadhar If you start the script, you see, that you can have scalar values on the cell centers. The following example shows the cell ids on the cell centers. This example works fine: cc = vtk.vtkCellCenters() cc.SetInputConnection(ids.GetOutputPort()) cellMapper = vtk.vtkLabeledDataMapper() cellMapper.SetInputConnection(cc.GetOutputPort()) cellMapper.SetLabelFormat("%g") cellMapper.SetLabelModeToLabelFieldData() cellLabels = vtk.vtkActor2D() cellLabels.SetMapper(cellMapper) But i would like to have a sting like 'one' instead of '1'. As label on the cell center. but i only get 'null', with the example i posted above. > Vidyadhar Thank you for the input raphael From A.Lintermann at aia.rwth-aachen.de Thu Oct 18 03:54:51 2007 From: A.Lintermann at aia.rwth-aachen.de (Andreas Lintermann) Date: Thu, 18 Oct 2007 09:54:51 +0200 Subject: [vtkusers] Generating 3D images from surfaces In-Reply-To: <002401c8113a$ce6574b0$1601a8c0@quad02> References: <4DA448FE-2C14-495A-9896-29FC22FDF3CC@aia.rwth-aachen.de> <002401c8113a$ce6574b0$1601a8c0@quad02> Message-ID: <200710180954.52052.A.Lintermann@aia.rwth-aachen.de> Hi Vidyadhar, have you ever used this class before? The description says the following: vtkDataSetToImageFilter is an abstract filter class whose subclasses take as input any dataset and generate image data on output. Unfortunately, there are no subclasses implemented. It seems as if this functionality is incomplete. Do you have any other suggestions? Yours sincerly, Andreas Lintermann Am Donnerstag, 18. Oktober 2007 05:55 schrieben Sie: > Hi, > How about using vtkDataSetToImageFilter? > Vidyadhar > ----- Original Message ----- > From: Lintermann Andreas > To: vtkusers at vtk.org > Sent: Wednesday, October 17, 2007 6:19 PM > Subject: [vtkusers] Generating 3D images from surfaces > > > Hi, > > > I was wondering if there exists a class which can handle the following problem: > > > I have a 3D geometry stored in a vtkPolyData and I would like to generate a 3D image out of it. The image should have a resolution specified by the user. I was thinking about using bounded 2D cut planes through my geometry and and generate a certain pixel value at the position of the pixel, where a triangle from my 3d surface cuts this plane. After generating a lot of these 2d images along a certain axis (the distance of the planes is the diameter in z-direction of the geomtry devided by the resolution of the image in z-direction), I want to combine these images to a 3d image volume. Is there any easier way to handle this? > > > Yours sincerly, > > > Andreas Lintermann > > > ----------------------- > Aerodynamisches Institut und Lehrstuhl f?r Str?mungslehre der RWTH Aachen > Institute of Aerodynamics and the Chair of Fluid Mechanics of RWTH Aachen University > > > Andreas Lintermann > Webdesign and Network Administration > Tel: (+49)-241-80-95415 > Fax: (+49)-241-80-92257 > A.Lintermann at aia.rwth-aachen.de > > > > > > -- ----------------------------------------------------------------------------- Aerodynamisches Institut und Lehrstuhl fuer Stroemungslehre der RWTH Aachen Institute of Aerodynamics and the Chair of Fluid Mechanics of RWTH Aachen University Andreas Lintermann Tel: (+49)-(0)241-80-95415 Fax: (+49)-(0)241-80-92257 From zhangtuo123 at yahoo.com.cn Thu Oct 18 04:58:53 2007 From: zhangtuo123 at yahoo.com.cn (tuo zhang) Date: Thu, 18 Oct 2007 16:58:53 +0800 (CST) Subject: [vtkusers] about vtkVolumeTextureMapper3D Message-ID: <766223.33544.qm@web15807.mail.cnb.yahoo.com> Hi all, I have 2 questions about vtkVolumeTextureMapper3D: 1. "This mappers currently supports: one component, or two or four non-independent components", but I don't know what does "component" mean here 2. I used vtkVolumeMapper3D in my program, and the quality it produced seems worse than the vtkVolumeRayCastMapper method, although much faster. I've heard that it's because the VTK only supports 8-bit per texture3d unit? so is there a lastest version to do it better? Thanks! Jedi 07/10/18 ___________________________________________________________ @yahoo.cn ????????????? http://mail.yahoo.cn/ From carlding at gmail.com Thu Oct 18 05:22:25 2007 From: carlding at gmail.com (Feng Ding) Date: Thu, 18 Oct 2007 17:22:25 +0800 Subject: [vtkusers] SimpleCocoaVTK link dead? Message-ID: Hello Sean, The SimpleCocoaVTK link (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems dead. Could you please email me a copy? Thanks! Best regards, DING Feng From amy.squillacote at kitware.com Thu Oct 18 07:52:21 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Thu, 18 Oct 2007 07:52:21 -0400 Subject: [vtkusers] How to get native scalar pointer from a vtkImageReader? In-Reply-To: References: Message-ID: <471748F5.40609@kitware.com> Hi James, First you'll need to manually call Update() on your instance of vtkImageReader. Then do something similar to the code shown below. vtkImageReader *reader = vtkImageReader::New(); ... reader->Update(); vtkImageData *output = reader->GetOutput(); void *ptr = output->GetScalarPointer(); You can find out the scalar type of the scalars in the vtkImageData using the GetScalarType() or GetScalarTypeAsString() methods. Then you can cast the pointer to the raw data to the correct type. - Amy James Zhou wrote: > Hi, > > I read the 3D data into the vtk pipeline using vtkImageReader. Now I > want to get the native scalar pointer (i.e. the pointer that points to > the raw data), could you please give me any information on how to do > this? > > Thanks! > > James > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From amy.squillacote at kitware.com Thu Oct 18 07:58:10 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Thu, 18 Oct 2007 07:58:10 -0400 Subject: [vtkusers] Generating 3D images from surfaces In-Reply-To: <4DA448FE-2C14-495A-9896-29FC22FDF3CC@aia.rwth-aachen.de> References: <4DA448FE-2C14-495A-9896-29FC22FDF3CC@aia.rwth-aachen.de> Message-ID: <47174A52.6030707@kitware.com> Hi Andreas, Take a look at the vtkProbeFilter. Your vtkPolyData would be the source, and you could create a vtkImageData with the specified dimensions to be the input. In VTK 4.*, vtkDataSetToImageFilter was the superclass of a few different filters. In VTK 5.*, the pipeline was re-architected. In this process, we now use vtkAlgorithm instead of vtkProcessObject. The classes that were subclasses of vtkDataSetToImageFilter (filters that take vtkDataSet as input and produce vtkImageData as output) are now subclasses of vtkImageAlgorithm. Even in VTK 4.*, vtkDataSetToImageFilter was an abstract class; you still would not have been able to instantiate it directly. - Amy Lintermann Andreas wrote: > Hi, > > I was wondering if there exists a class which can handle the following > problem: > > I have a 3D geometry stored in a vtkPolyData and I would like to > generate a 3D image out of it. The image should have a resolution > specified by the user. I was thinking about using bounded 2D cut > planes through my geometry and and generate a certain pixel value at > the position of the pixel, where a triangle from my 3d surface cuts > this plane. After generating a lot of these 2d images along a certain > axis (the distance of the planes is the diameter in z-direction of the > geomtry devided by the resolution of the image in z-direction), I want > to combine these images to a 3d image volume. Is there any easier way > to handle this? > > Yours sincerly, > > Andreas Lintermann > > ----------------------- > Aerodynamisches Institut und Lehrstuhl f?r Str?mungslehre der RWTH Aachen > Institute of Aerodynamics and the Chair of Fluid Mechanics of RWTH > Aachen University > > Andreas Lintermann > Webdesign and Network Administration > Tel: (+49)-241-80-95415 > Fax: (+49)-241-80-92257 > A.Lintermann at aia.rwth-aachen.de > > > > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From amy.squillacote at kitware.com Thu Oct 18 08:01:37 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Thu, 18 Oct 2007 08:01:37 -0400 Subject: [vtkusers] about vtkVolumeTextureMapper3D In-Reply-To: <766223.33544.qm@web15807.mail.cnb.yahoo.com> References: <766223.33544.qm@web15807.mail.cnb.yahoo.com> Message-ID: <47174B21.6000807@kitware.com> > > 1. "This mappers currently supports: > one component, or two or four non-independent > components", but I don't know what does "component" > mean here > > This is the number of values for each pixel in your image. If your image has one component, it has one value per pixel, and is therefore a grayscale image. If you have two components (or values) per pixel, then you have a grayscale color value and an opacity value. If you have 4 non-independent components, then you have a color image where the first three component specify the color using red, green, and blue values, and the fourth component specifies an opacity value. - Amy -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From juan.cardelino at gmail.com Thu Oct 18 08:08:34 2007 From: juan.cardelino at gmail.com (Juan Cardelino) Date: Thu, 18 Oct 2007 14:08:34 +0200 Subject: [vtkusers] Re: help: vtk & fltk (Cedric) Message-ID: <7728d2ce0710180508v3372e563sdc2911b6da25a707@mail.gmail.com> > Message: 1 > Date: Tue, 16 Oct 2007 18:18:38 +0200 > From: Cedric > Subject: [vtkusers] Re: help: vtk & fltk > To: vtkusers at vtk.org > Message-ID: <42AC1775-7F5F-4ACD-AEC8-BBF68AF5A71E at enst-bretagne.fr> > Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed > > Hi, > > First ccmake ask me for the FLTK_INCLUDE_DIR. You should put the path > to the folder containing fltk (ie: /home/librairie/fltk). > Then after configuring, i have to inform more lines. Just fill the > FLTK_FLUID_EXECUTABLE (ie: /home/librairie/fltk/fluid/fluid) and the > FLTK_INCLUDE_DIR (ie: /home/librairie/fltk) lines. > This should work ... > > Good luck, > > C?dric > Well, I've been through the same issue, and wasn't able to compile it at all. It won't work with installed vtk and fltk. I think your instructions are oriented to the case you are using your own built fltk. Am I wrong? Anyway, after getting tired of it, I've tried this one: http://cpbotha.net/software/vtkflrenderwindowinteractor and worked neatly and without flaw. In addition, there is some more references in this page http://www.itk.org/Wiki/VTK_Classes Hope it helps. Best regards, Juan From wollez at gmx.net Thu Oct 18 12:48:16 2007 From: wollez at gmx.net (WolfgangZ) Date: Thu, 18 Oct 2007 18:48:16 +0200 Subject: [vtkusers] help needed with vtkBoxClipDataSet() Message-ID: Hi, I clip a unstructured mesh with vtkBoxClipDataSet. It displays correct but extracting information about cells, nodes and boundingbox os wrong. Here partially the code: connect2 = vtk.vtkConnectivityFilter() connect2.SetInput(aTriangleGrid) ### clipping the cells (but triangulation) boxCut = vtk.vtkBoxClipDataSet() boxCut.SetBoxClip(0.001,0.005,0.001,0.005,-1,1) boxCut.SetInputConnection(connect2.GetOutputPort()) boxCut.GenerateClipScalarsOff() boxCut.Update() partGrid=vtk.vtkUnstructuredGrid() partGrid=boxCut.GetOutput() print partGrid.GetBounds() the print results in this: (0.0004729999927803874, 0.0053309998475015163, 0.00048099999548867345, 0.006076000165194273, 0.0, 0.0) Also when I loop over the nodes "partGrid: by the following code I only get coordinates in that value range. npoints_cut=boxCut.GetOutput().GetNumberOfPoints() for i in xrange(0,npoints_cut): coord=boxCut.GetOutput().GetPoints().GetPoint(i) print repr(coord[0]), repr(coord[1]) What I absolutely dont understand is that it displays correctly! the visualisation is done by: cutMapper = vtk.vtkDataSetMapper() cutMapper.SetInput(partGrid) cutActor = vtk.vtkActor() cutActor.SetMapper(cutMapper) cutActor.GetProperty().SetRepresentationToWireframe() ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) renWin.SetSize(300, 300) iren = vtk.vtkRenderWindowInteractor() interactor=vtk.vtkInteractorStyleTerrain() iren.SetInteractorStyle(interactor) iren.SetRenderWindow(renWin) ren.SetBackground(1, 1, 1) ren.AddActor(cutActor) ren.ResetCamera() ren.GetActiveCamera().Azimuth(0) ren.GetActiveCamera().Elevation(0) ren.ResetCameraClippingRange() # Render the scene and start interaction. iren.Initialize() interactor=vtk.vtkInteractorStyleTerrain() iren.SetInteractorStyle(interactor) renWin.Render() iren.Start() So any help is welcome! Regards Wolfgang From dmpd at sky.com Thu Oct 18 16:02:23 2007 From: dmpd at sky.com (D.M.P.Davies) Date: Thu, 18 Oct 2007 21:02:23 +0100 Subject: [vtkusers] Starkits for vtk 5.0 Message-ID: <4717BBCF.3090000@sky.com> Is it possible to use vtk5.0 with tcl modules to form a starkit - If so what are the differences from vtk4.? ? Many Thanks Dave Davies From marf at ctm.ulpgc.es Thu Oct 18 17:33:15 2007 From: marf at ctm.ulpgc.es (Miguel Angel Rodriguez Florido) Date: Thu, 18 Oct 2007 22:33:15 +0100 Subject: [vtkusers] Starkits for vtk 5.0 In-Reply-To: <4717BBCF.3090000@sky.com> References: <4717BBCF.3090000@sky.com> Message-ID: <4717D11B.30707@ctm.ulpgc.es> VTKit: http://www.bioengineering-research.com/vtk/vtkit.htm The difference from vtk4 is that, it uses the VTK5 classes. Hth. D.M.P.Davies wrote: > Is it possible to use vtk5.0 with tcl modules to form a starkit - If so > what are the differences from vtk4.? ? > > Many Thanks > > Dave Davies > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -- Miguel Angel Rodriguez Florido Center for Technology in Medicine-ULPGC-Gran Canaria-CanaryIslands,Spain Emails:marf@{ctm.ulpgc.es,bwh.harvard.edu}-http://www.ctm.ulpgc.es/ Tfnos:+34 928 451253, +34 928 452956 - Fax:+34 928 451243 From jake.nickel at gmail.com Thu Oct 18 18:51:08 2007 From: jake.nickel at gmail.com (Jake Nickel) Date: Thu, 18 Oct 2007 17:51:08 -0500 Subject: [vtkusers] vtkCaptionActor2D Segmentation Fault Message-ID: <61efc8380710181551j6a6b6b73x77941bb278409882@mail.gmail.com> I recently updated my workstation from SuSE 10.1 to openSuSE 10.3 and have since realized that an old, simple program using a vtkCaptionActor2D no longer works. It throws a Segmentation Fault when the vtkRenderWindowInteractor attempts to Initialize( ). Does anyone have any insight into how to fix my problem? I've recompiled VTK many times with different build types (Release, Debug) and different versions (5.0, 5.3) but I still get the same error. Another machine in our lab also converted to openSuSE 10.3 and the program still runs fine on it. However, this is a 64-bit machine, whereas mine is 32-bit. Any ideas would be greatly appreciated! I apologize if I haven't been specific enough, let me know if any additional details would be helpful. Thanks! -Jake -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlding at gmail.com Fri Oct 19 03:55:30 2007 From: carlding at gmail.com (Feng Ding) Date: Fri, 19 Oct 2007 15:55:30 +0800 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: <20071018135846.968200640@smtp1.sympatico.ca> References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: Thank you! It seems to be written in Obj-C, do you have a C++ version? Best regards, DING Feng On 10/18/07, Sean McBride wrote: > On 10/18/07 5:22 PM, Feng Ding said: > > >The SimpleCocoaVTK link > >(http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems dead. > >Could you please email me a copy? Thanks! > > Ack! So it is, I'll try to get it restored soon. Here's the file. > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > From wollez at gmx.net Fri Oct 19 05:56:57 2007 From: wollez at gmx.net (WolfgangZ) Date: Fri, 19 Oct 2007 11:56:57 +0200 Subject: [vtkusers] Re: help needed with vtkBoxClipDataSet() In-Reply-To: References: Message-ID: Hello all, can it be that these new bounds are in a different coordinate system as the source grid? I need the resulting grid not only for display but also to perform other calculations on it! Has really nobody an idea why the input of the BoxClip does not reflect the Bounds of the resulting grid? Any help is welcome. Wolfgang From joel.schaerer at insa-lyon.fr Fri Oct 19 05:57:25 2007 From: joel.schaerer at insa-lyon.fr (Joel Schaerer) Date: Fri, 19 Oct 2007 11:57:25 +0200 Subject: [vtkusers] Weird Segfault Message-ID: <47187F85.6010803@insa-lyon.fr> Hi all, I experience a very weird segfault. It all boils down to the following minimal program: #include #include using namespace std; int main(int argc,char * argv[]) { for (int i=0;i < 3;i++) { vtkRenderWindow * a = vtkRenderWindow::New(); a->Render(); a->Delete(); } } It crashes when calling Render() the second time. Here is a backtrace: (gdb) bt #0 0x00e1e080 in ?? () #1 0x003017e8 in ?? () from /usr/lib/libGL.so.1 #2 0x002fd2dd in ?? () from /usr/lib/libGL.so.1 #3 0x002fefca in glXChooseVisual () from /usr/lib/libGL.so.1 #4 0x0217885a in vtkXOpenGLRenderWindowTryForVisual () from /usr/lib/libvtkRendering.so.5.0 #5 0x0217a740 in vtkXOpenGLRenderWindow::GetDesiredVisualInfo () from /usr/lib/libvtkRendering.so.5.0 #6 0x0217af4d in vtkXOpenGLRenderWindow::WindowInitialize () from /usr/lib/libvtkRendering.so.5.0 #7 0x02177819 in vtkXOpenGLRenderWindow::Initialize () from /usr/lib/libvtkRendering.so.5.0 #8 0x02177909 in vtkXOpenGLRenderWindow::Start () from /usr/lib/libvtkRendering.so.5.0 #9 0x020fd095 in vtkRenderWindow::DoStereoRender () from /usr/lib/libvtkRendering.so.5.0 #10 0x020ff57d in vtkRenderWindow::DoFDRender () from /usr/lib/libvtkRendering.so.5.0 #11 0x02100357 in vtkRenderWindow::DoAARender () from /usr/lib/libvtkRendering.so.5.0 #12 0x020fe72b in vtkRenderWindow::Render () from /usr/lib/libvtkRendering.so.5.0 #13 0x02177ed4 in vtkXOpenGLRenderWindow::Render () from /usr/lib/libvtkRendering.so.5.0 #14 0x0804892c in main () vtk version is vtk-5.0.3-18.2.fc7 on Fedora 7. Will somebody please tell me why this happens and if there is a workaround? Thanks, -- Jo?l Schaerer PhD. Student Advisors: Patrick Clarysse, Isabelle Magnin CREATIS-LRMN, UMR CNRS 5220, Inserm U630 INSA de Lyon 7 rue Jean Capelle bat. Blaise Pascal, 4?me ?tage F-69621 Villeurbanne CEDEX France Tel (+33) 4 72 43 89 17 Fax (+33) 4 72 43 85 26 http://www.creatis.insa-lyon.fr From imikejackson at gmail.com Fri Oct 19 08:12:45 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Fri, 19 Oct 2007 08:12:45 -0400 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: Right. Cocoa _is_ Objective-C. The purpose of the example is to show how to use VTK in a Cocoa Window. Are you wanting an example of how to use VTK in a Carbon window? (which is C++). I helped write the example. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: > Thank you! It seems to be written in Obj-C, do you have a C++ version? > > Best regards, > DING Feng > > On 10/18/07, Sean McBride wrote: >> On 10/18/07 5:22 PM, Feng Ding said: >> >>> The SimpleCocoaVTK link >>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems >>> dead. >>> Could you please email me a copy? Thanks! >> >> Ack! So it is, I'll try to get it restored soon. Here's the file. >> >> -- >> ____________________________________________________________ >> Sean McBride, B. Eng sean at rogue-research.com >> Rogue Research www.rogue-research.com >> Mac Software Developer Montr?al, Qu?bec, Canada >> >> > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From goodwin.lawlor at ucd.ie Fri Oct 19 12:41:15 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 19 Oct 2007 17:41:15 +0100 Subject: [vtkusers] Re: Starkits for vtk 5.0 In-Reply-To: <4717D11B.30707@ctm.ulpgc.es> References: <4717BBCF.3090000@sky.com> <4717D11B.30707@ctm.ulpgc.es> Message-ID: If you want to use vtk4.5, this is link to an old vtkit http://www.bioengineering-research.com/vtk/VTKit-4.5.7.exe Miguel Angel Rodriguez Florido wrote: > VTKit: > > http://www.bioengineering-research.com/vtk/vtkit.htm > > The difference from vtk4 is that, it uses the VTK5 classes. > > Hth. > > > D.M.P.Davies wrote: >> Is it possible to use vtk5.0 with tcl modules to form a starkit - If so >> what are the differences from vtk4.? ? >> >> Many Thanks >> >> Dave Davies >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages on-topic. >> Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > > From will.schroeder at kitware.com Fri Oct 19 13:58:46 2007 From: will.schroeder at kitware.com (Will Schroeder) Date: Fri, 19 Oct 2007 13:58:46 -0400 Subject: [vtkusers] ANN: VTK BOF at IEEE Visualization 2007 Message-ID: <4718F056.9000602@kitware.com> Kitware will be holding a BOF at IEEE Visualization 2007 (http://vis.computer.org/vis2007/) in Sacramento, CA on Wednesday evening, October 31 (yes that's Halloween night). If anybody is interested in presenting material related to VTK, ITK, ParaView and even CMake we will try and fit you in. Please contact me or Berk Geveci if you are interested. Will PS- Participants coming in costume will receive special recognition.... From nkwmailinglists at gmail.com Fri Oct 19 14:26:04 2007 From: nkwmailinglists at gmail.com (kent williams) Date: Fri, 19 Oct 2007 13:26:04 -0500 Subject: [vtkusers] Need to change some of vtkImageTracerWidget -- pointers? Message-ID: <44f773f50710191126g28694fe3g5ffd102141419f4c@mail.gmail.com> Here's what I want to write: A manual tracing program using vtkImageTracerWidget. Use case: 1. Load a brain volume 2. For each relevant slice of the volume trace the feature in that slice 3. Use the collection of resulting polygons or polylines, generate a 3D binary image, based on all traces. Some behaviors I'd like to have: 1. When tracing is turned off in the view, still display the traced outline, but not allow modification of the outline. 2. When the user selects a new slice, the traced outline associated with that slice will be displayed and any other outlines are not. 3. Get rid of the default left mouse button behaviro during tracing which is to restart the trace with one point. Given that clicking the first mouse button is the most common mouse event, it feels like it's too easy to lose your work! So here's where I'm confused -- would I have one tracer widget and use it for all slices, but save out the polyline data when I change slices, or would I have multiple tracer widgets, one per slice, and enable and disable them when the slice changes? Thanks! From vinicius.vieira.gomes at gmail.com Fri Oct 19 14:40:39 2007 From: vinicius.vieira.gomes at gmail.com (Vinicius Gomes) Date: Fri, 19 Oct 2007 15:40:39 -0300 Subject: [vtkusers] Need to change some of vtkImageTracerWidget -- pointers? In-Reply-To: <44f773f50710191126g28694fe3g5ffd102141419f4c@mail.gmail.com> References: <44f773f50710191126g28694fe3g5ffd102141419f4c@mail.gmail.com> Message-ID: <25469e780710191140wf2aa2edg9de9ab9d821bc53c@mail.gmail.com> Hi! You can use one tracer for all the slices (changing the tracer->projectionPosition for each slice) and change the value of the selected voxels (by the scalar pointer) after an interaction. This way you're going to 'paint' your traced outline in the image. On 10/19/07, kent williams wrote: > > Here's what I want to write: A manual tracing program using > vtkImageTracerWidget. Use case: > > 1. Load a brain volume > 2. For each relevant slice of the volume > trace the feature in that slice > 3. Use the collection of resulting polygons or polylines, generate a > 3D binary image, based on all traces. > > Some behaviors I'd like to have: > > 1. When tracing is turned off in the view, still display the traced > outline, but not allow modification of the outline. > > 2. When the user selects a new slice, the traced outline associated > with that slice will be displayed and any other outlines are not. > > 3. Get rid of the default left mouse button behaviro during tracing > which is to restart the trace with one point. Given that clicking the > first mouse button is the most common mouse event, it feels like it's > too easy to lose your work! > > So here's where I'm confused -- would I have one tracer widget and use > it for all slices, but save out the polyline data when I change > slices, or would I have multiple tracer widgets, one per slice, and > enable and disable them when the slice changes? > > Thanks! > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcelo.amati at hotmail.com Fri Oct 19 14:47:38 2007 From: marcelo.amati at hotmail.com (Marcelo Amati) Date: Fri, 19 Oct 2007 18:47:38 +0000 Subject: [vtkusers] Application crashes with large image data Message-ID: Hello, I hope someone can help me because I don`t know what to do anymore. My application can`t process an imagedata of size 512x512x550. It doesn`t consume more than 1.4 GB og RAM while processing. If I run the same pipeline with an imagedata of size 512x512x300 it works perfectly! The pipeline is very simple: vtkImageReader -> vtkImageFlip -> Crash! I`m using VTK 5.03, Python Wrapping compiled in VS7 and windows XP. The machine: AMD 2Ghz processor, 2GB of RAM and ATI Radeon of 128 MB. Do you have any ideas about how to solve this problem??? Thanks,Marcelo _________________________________________________________________ News, entertainment and everything you care about at Live.com. Get it now! http://www.live.com/getstarted.aspx -------------- next part -------------- An HTML attachment was scrubbed... URL: From leodelcarpio at hotmail.com Fri Oct 19 01:47:34 2007 From: leodelcarpio at hotmail.com (Jose Manrique Del Carpio) Date: Fri, 19 Oct 2007 05:47:34 +0000 Subject: [vtkusers] face reconstruction Message-ID: Hey. I am supposed to reconstruct a face starting from a picture. Any ideas where can I start?? Thank U Jota _________________________________________________________________ Help yourself to FREE treats served up daily at the Messenger Caf?. Stop by today. http://www.cafemessenger.com/info/info_sweetstuff2.html?ocid=TXT_TAGLM_OctWLtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From meisam.aliroteh at gmail.com Fri Oct 19 21:14:06 2007 From: meisam.aliroteh at gmail.com (Meisam Aliroteh) Date: Fri, 19 Oct 2007 21:14:06 -0400 Subject: [vtkusers] Application crashes with large image data In-Reply-To: References: Message-ID: <394c464d0710191814l43ee5f97xac21e59372bd071@mail.gmail.com> Hi Marcelo, Based on your email I assumed that you are running on Windows OS. Eventhough you have 2Gb of RAM not all of it is considered as free memory (I think Windows XP consumes around 500Mb). If you have Windows XP or Vista, the default value of Virtual memory is around 1.5Gb. I don't know if this is going to help or not but you might want to give it a shot: 1) Go to Control Panel and double-click on SYSTEM icon to get the "System Properties" window 2) Click on ADVANCED tab and under "Performance" click the "Settings" button to get the "Performance Options" dialog 3) Again click on ADVANCED tab and under "Virtual Memory" click the "Change" button. 4) Select the drive on which Windows is installed (usually C:) 5) Pick "Custom Size" and put 4092 for the initial and maximum values 6) *press the SET button* and then press the ok button (press the ok button on all remaining windows) 7) reboot your system You should now have 4Gb of VIRTUAL memory which *MIGHT* help with this issue. good luck and if you figure out another fix for this, please post your fix for others to know as well. On 10/19/07, Marcelo Amati wrote: > > Hello, > > I hope someone can help me because I don`t know what to do anymore. > > My application can`t process an imagedata of size 512x512x550. It doesn`t > consume more than 1.4 GB og RAM while processing. > If I run the same pipeline with an imagedata of size 512x512x300 it works > perfectly! > > The pipeline is very simple: vtkImageReader -> vtkImageFlip -> Crash! > > I`m using VTK 5.03, Python Wrapping compiled in VS7 and windows XP. The > machine: AMD 2Ghz processor, 2GB of RAM and ATI Radeon of 128 MB. > > Do you have any ideas about how to solve this problem??? > > Thanks, > Marcelo > > ------------------------------ > Get news, entertainment and everything you care about at Live.com. > Check it out! > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dariodisk at gmail.com Fri Oct 19 21:20:20 2007 From: dariodisk at gmail.com (=?ISO-8859-1?Q?D=E1rio_Oliveira?=) Date: Fri, 19 Oct 2007 22:20:20 -0300 Subject: [vtkusers] Opacity and Depth Sort problem in Java and C++ Message-ID: Hi, I'm really hunged up with the problem of wrong multiple actors depth sort in VTK. I used to use VTK with Java wrapping, and there I never got that problem, but since I passed my program to C++, I couldn't make that to work properly. The actors only are in the right depth order if they are all opaque. If the opacity in any of the objects is < 1.0, then this specific object is rendered in front of the others, even if these ones are all opaque. I read some vtkusers emails, and I still can't make the order correctly all the time. And what amazed me at most was that fact, that it was actually working just fine in Java. Does anyone has any experience in solving this problem in C++? And why it works fine in Java? Thanks in advance. -- D?rio Oliveira -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcelo.amati at hotmail.com Fri Oct 19 08:25:03 2007 From: marcelo.amati at hotmail.com (Marcelo Amati) Date: Fri, 19 Oct 2007 12:25:03 +0000 Subject: [vtkusers] Application crashes with large imagedata Message-ID: Hi all, I hope someone can help me because I don`t know what to do anymore. My application can`t process an imagedata of size 512x512x550. If I run the same pipeline with an imagedata of size 512x512x300 it works perfectly! The pipeline is very simple: vtkImageReader -> vtkImageFlip -> Crash! I`m using VTK 5.03, Python Wrapping compiled in VS7 and windows XP. The machine: AMD 2Ghz processor, 2GB of RAM and ATI Radeon of 128 MB. Thanks, Marcelo _________________________________________________________________ Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us -------------- next part -------------- An HTML attachment was scrubbed... URL: From pbarbier at ucalgary.ca Fri Oct 19 22:12:56 2007 From: pbarbier at ucalgary.ca (Pierre Barbier de Reuille) Date: Fri, 19 Oct 2007 20:12:56 -0600 Subject: [vtkusers] Application crashes with large image data In-Reply-To: References: <394c464d0710191814l43ee5f97xac21e59372bd071@mail.gmail.com> Message-ID: Hi, Windows (XP, Vista or previous) do not allow a single program to use more than 2GB on a 32bit machine (3GB for the windows XP advanced server). This is a problem I hit recently processing 512x512x512 images and helped me justify a switch to Linux which do not have this problem. For windows, this problem is due to the fact that the first bit decides if the memory is user or system. So that leaves only 2GB for user space memory (on advanced server, the two first bits decides ... leaving 3GB to user). Only solution: use images with less bit per pixel, or process by block ! Pierre On 10/19/07, Meisam Aliroteh < meisam.aliroteh at gmail.com> wrote: > > Hi Marcelo, > > Based on your email I assumed that you are running on Windows OS. Eventhough you have 2Gb of RAM not all of it is considered as free memory (I think Windows XP consumes around 500Mb). If you have Windows XP or Vista, the default value of Virtual memory is around 1.5Gb. I don't know if this is going to help or not but you might want to give it a shot: > > 1) Go to Control Panel and double-click on SYSTEM icon to get the "System Properties" window > 2) Click on ADVANCED tab and under "Performance" click the "Settings" button to get the "Performance Options" dialog > 3) Again click on ADVANCED tab and under "Virtual Memory" click the "Change" button. > 4) Select the drive on which Windows is installed (usually C:) > 5) Pick "Custom Size" and put 4092 for the initial and maximum values > 6) press the SET button and then press the ok button (press the ok button on all remaining windows) > 7) reboot your system > > You should now have 4Gb of VIRTUAL memory which MIGHT help with this issue. > > good luck and if you figure out another fix for this, please post your fix for others to know as well. > > > > > On 10/19/07, Marcelo Amati < marcelo.amati at hotmail.com> wrote: > > > > > > Hello, > > > > I hope someone can help me because I don`t know what to do anymore. > > > > My application can`t process an imagedata of size 512x512x550. It doesn`t consume more than 1.4 GB og RAM while processing. > > If I run the same pipeline with an imagedata of size 512x512x300 it works perfectly! > > > > The pipeline is very simple: vtkImageReader -> vtkImageFlip -> Crash! > > > > I`m using VTK 5.03, Python Wrapping compiled in VS7 and windows XP. The machine: AMD 2Ghz processor, 2GB of RAM and ATI Radeon of 128 MB. > > > > Do you have any ideas about how to solve this problem??? > > > > Thanks, > > Marcelo > > > > ________________________________ Get news, entertainment and everything you care about at Live.com. Check it out! > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- Barbier de Reuille Pierre From jake.nickel at gmail.com Fri Oct 19 23:06:45 2007 From: jake.nickel at gmail.com (Jake Nickel) Date: Fri, 19 Oct 2007 22:06:45 -0500 Subject: [vtkusers] 2D XMLImage - 3D PolyData Correspondence Message-ID: <61efc8380710192006m59e33432mb1160a3247abdd16@mail.gmail.com> I have a program that uses ITK to read in a 3D Analyze format (.hdr, .img) image, uses the itkImageToVTKImageFilter, and writes two images out, one using a vtkXMLImageDataWriter, and the other using a vtkPolyDataWriter (after the image was passed through a vtkContourFilter). The code snippet is pasted below. I then use another program to display these images. The polydata is surface rendered and the XML image is rendered as 3 orthogonal images (transverse, sagittal, and coronal). I have noticed that the polydata (X, Y, Z) locations returned from picking do not correspond to the same X, Y, Z locations in the orthogonal views. Is there a way that I can retrieve the transformation that has taken place somewhere between reading in the image and writing it back out as vtkPolyData so that I have a 2D-3D correspondence? Any help is greatly appreciated, Thanks a bunch! -Jake ======================== ... typedef unsigned char PixelType; const unsigned int Dimension = 3; typedef itk::Image< PixelType, Dimension > ImageType; typedef itk::ImageFileReader< ImageType > ReaderType; typedef itk::ImageToVTKImageFilter< ImageType > ConnectorFilterType; ReaderType::Pointer reader = ReaderType::New(); ConnectorFilterType::Pointer connector = ConnectorFilterType::New(); reader->SetFileName( argv[1] ); reader->Update(); connector->SetInput( reader->GetOutput() ); vtkXMLImageDataWriter * writer = vtkXMLImageDataWriter::New(); writer->SetInput( connector->GetOutput() ); writer->SetFileName( argv[2] ); writer->Write(); writer->Delete(); vtkContourFilter * filter = vtkContourFilter::New(); filter->SetInput( connector->GetOutput() ); filter->SetValue( 0, 1 ); vtkPolyDataWriter * pwriter = vtkPolyDataWriter::New(); pwriter->SetFileName( argv[3] ); pwriter->SetInput( filter->GetOutput() ); pwriter->Write(); pwriter->Delete(); filter->Delete(); ... ======================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From carlding at gmail.com Sat Oct 20 09:20:07 2007 From: carlding at gmail.com (Feng Ding) Date: Sat, 20 Oct 2007 21:20:07 +0800 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: Yes, please. I really hope I can have a C++ example. Thank you! On 10/19/07, Mike Jackson wrote: > Right. Cocoa _is_ Objective-C. The purpose of the example is to show > how to use VTK in a Cocoa Window. Are you wanting an example of how > to use VTK in a Carbon window? (which is C++). > > I helped write the example. > > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: > > > Thank you! It seems to be written in Obj-C, do you have a C++ version? > > > > Best regards, > > DING Feng > > > > On 10/18/07, Sean McBride wrote: > >> On 10/18/07 5:22 PM, Feng Ding said: > >> > >>> The SimpleCocoaVTK link > >>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems > >>> dead. > >>> Could you please email me a copy? Thanks! > >> > >> Ack! So it is, I'll try to get it restored soon. Here's the file. > >> > >> -- > >> ____________________________________________________________ > >> Sean McBride, B. Eng sean at rogue-research.com > >> Rogue Research www.rogue-research.com > >> Mac Software Developer Montr?al, Qu?bec, Canada > >> > >> > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > > Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > From imikejackson at gmail.com Sat Oct 20 10:36:24 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Sat, 20 Oct 2007 10:36:24 -0400 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: I do not have any examples of using pure Carbon. If you are trying to stick with C++ I would look into Qt from TrollTech as that is a Cross platform C++ Gui toolkit. VTK Provides a prebuilt plugin for Qt to render VTK scenes. To create a Qt/VTK example is easy and straight forward to accomplish. What exactly are you trying to do? Port an existing VTK app to OS X? Use OS X to develop VTK based Apps? Use OS X to just visualize some data using VTK? Learn VTK using OS X as the development environment? More information would help us help you. cheers -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 20, 2007, at 9:20 AM, Feng Ding wrote: > Yes, please. I really hope I can have a C++ example. Thank you! > > On 10/19/07, Mike Jackson wrote: >> Right. Cocoa _is_ Objective-C. The purpose of the example is to show >> how to use VTK in a Cocoa Window. Are you wanting an example of how >> to use VTK in a Carbon window? (which is C++). >> >> I helped write the example. >> >> -- >> Mike Jackson Senior Research Engineer >> Innovative Management & Technology Services >> >> >> On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: >> >>> Thank you! It seems to be written in Obj-C, do you have a C++ >>> version? >>> >>> Best regards, >>> DING Feng >>> >>> On 10/18/07, Sean McBride wrote: >>>> On 10/18/07 5:22 PM, Feng Ding said: >>>> >>>>> The SimpleCocoaVTK link >>>>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems >>>>> dead. >>>>> Could you please email me a copy? Thanks! >>>> >>>> Ack! So it is, I'll try to get it restored soon. Here's the file. >>>> >>>> -- >>>> ____________________________________________________________ >>>> Sean McBride, B. Eng sean at rogue-research.com >>>> Rogue Research www.rogue-research.com >>>> Mac Software Developer Montr?al, Qu?bec, Canada >>>> >>>> >>> _______________________________________________ >>> This is the private VTK discussion list. >>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ >>> Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >> >> From dmpd at sky.com Sat Oct 20 14:17:50 2007 From: dmpd at sky.com (D.M.P.Davies) Date: Sat, 20 Oct 2007 19:17:50 +0100 Subject: [vtkusers] Re: Starkits for vtk 5.0 In-Reply-To: References: <4717BBCF.3090000@sky.com> <4717D11B.30707@ctm.ulpgc.es> Message-ID: <471A464E.7040900@sky.com> Goodwin Lawlor wrote: > If you want to use vtk4.5, this is link to an old vtkit > http://www.bioengineering-research.com/vtk/VTKit-4.5.7.exe > > Miguel Angel Rodriguez Florido wrote: >> VTKit: >> >> http://www.bioengineering-research.com/vtk/vtkit.htm >> >> The difference from vtk4 is that, it uses the VTK5 classes. >> >> Hth. >> >> >> D.M.P.Davies wrote: >>> Is it possible to use vtk5.0 with tcl modules to form a starkit - If so >>> what are the differences from vtk4.? ? >>> But do you still have to carry windows runtime libraries around with them? (viz MSVCP80.DLL and MSVCR80.DLL) From baaden at smplinux.de Sat Oct 20 18:06:16 2007 From: baaden at smplinux.de (Marc Baaden) Date: Sun, 21 Oct 2007 00:06:16 +0200 Subject: [vtkusers] (offtopic?) where to advertise job offers for people with VTK skills? Message-ID: <200710202208.l9KM8Ogl023942@apex.ibpc.fr> Hi, this might be a sightly off-topic message, but I thought it still had its place on this mailing list (I hope I'm not completely wrong). I am looking to fill a post-doc position with a candidate who would have strong skills in VTK and was wondering whether there are any websites, mailing lists or other channels to specifically reach this "audience". Maybe it could be useful to have a "Job postings" section on the VTK website?? Thanks in advance for any comments or suggestions, Marc Baaden -- *** postdoc position available: http://www.baaden.ibpc.fr/job.html *** Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:baaden at smplinux.de - http://www.baaden.ibpc.fr FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 From shriram.uc at gmail.com Sat Oct 20 18:28:24 2007 From: shriram.uc at gmail.com (Shriram Iyer) Date: Sat, 20 Oct 2007 17:28:24 -0500 Subject: [vtkusers] adding direction information to lines Message-ID: <91783a1b0710201528q6dd27b68h59d23cf5ef85f20@mail.gmail.com> Hi everyone, I have a bunch of points that are connected by lines to indicate a path. But its not possible to determine the direction of the path from these lines. Is there a way to draw lines that are opaque on one end, fade off and are transparent at the other in VTK? Or draw lines that are thicker on one end? Or have a color gradient? Here's a snippet of my code. 'Pts' holds the set of points that are to be connected by lines. Is there a way to add transparency or color information for each cell (a line in this case) separately? for (int i =0; i < numPointsInPath-1; i++) { cellArray->InsertNextCell(2); cellArray->InsertCellPoint(i); cellArray->InsertCellPoint(i+1); } polyData->SetPoints(Pts); polyData->SetLines(cellArray); Any help would be greatly appreciated. Shriram -------------- next part -------------- An HTML attachment was scrubbed... URL: From m26404030 at john.petra.ac.id Sun Oct 21 03:50:14 2007 From: m26404030 at john.petra.ac.id (m26404030) Date: Sun, 21 Oct 2007 14:50:14 +0700 Subject: [vtkusers] correspondence in two images Message-ID: hi, i want to do medical image registration but i find difficulties in determining the correspondence point between two images. is there a vtk class that i can use to determine correspondence point between two images?? thanx in advance..=p From m26404030 at john.petra.ac.id Sun Oct 21 03:50:22 2007 From: m26404030 at john.petra.ac.id (m26404030) Date: Sun, 21 Oct 2007 14:50:22 +0700 Subject: [vtkusers] correspondence in two images Message-ID: <252b0db39ae2ac0077c351f00b4f0a19@john.petra.ac.id> hi, i want to do medical image registration but i find difficulties in determining the correspondence point between two images. is there a vtk class that i can use to determine correspondence point between two images?? thanx in advance..=p From m26404030 at john.petra.ac.id Sun Oct 21 03:51:32 2007 From: m26404030 at john.petra.ac.id (m26404030) Date: Sun, 21 Oct 2007 14:51:32 +0700 Subject: [vtkusers] correspondence in two images Message-ID: <4693c7f34f835a51dee1e0ddaaa9e00d@john.petra.ac.id> hi, i want to do medical image registration but i find difficulties in determining the correspondence point between two images. is there a vtk class that i can use to determine correspondence point between two images?? thanx in advance..=p From carlding at gmail.com Sun Oct 21 08:01:38 2007 From: carlding at gmail.com (Feng Ding) Date: Sun, 21 Oct 2007 20:01:38 +0800 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: I'm going to develop native OSX-based VTK applications, and I'm using C++. Possible to mix obj-c and C++ in programming? Let's say, using obj-c for the interface, and C++ for the core algorithm. I hope that the application looks more mac-like, so I'm not going to use cross platform libraries such as QT, FLTK, etc. On 10/20/07, Mike Jackson wrote: > I do not have any examples of using pure Carbon. If you are trying to > stick with C++ I would look into Qt from TrollTech as that is a Cross > platform C++ Gui toolkit. VTK Provides a prebuilt plugin for Qt to > render VTK scenes. To create a Qt/VTK example is easy and straight > forward to accomplish. > > What exactly are you trying to do? Port an existing VTK app to OS X? > Use OS X to develop VTK based Apps? Use OS X to just visualize some > data using VTK? Learn VTK using OS X as the development environment? > > More information would help us help you. > > cheers > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 20, 2007, at 9:20 AM, Feng Ding wrote: > > > Yes, please. I really hope I can have a C++ example. Thank you! > > > > On 10/19/07, Mike Jackson wrote: > >> Right. Cocoa _is_ Objective-C. The purpose of the example is to show > >> how to use VTK in a Cocoa Window. Are you wanting an example of how > >> to use VTK in a Carbon window? (which is C++). > >> > >> I helped write the example. > >> > >> -- > >> Mike Jackson Senior Research Engineer > >> Innovative Management & Technology Services > >> > >> > >> On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: > >> > >>> Thank you! It seems to be written in Obj-C, do you have a C++ > >>> version? > >>> > >>> Best regards, > >>> DING Feng > >>> > >>> On 10/18/07, Sean McBride wrote: > >>>> On 10/18/07 5:22 PM, Feng Ding said: > >>>> > >>>>> The SimpleCocoaVTK link > >>>>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems > >>>>> dead. > >>>>> Could you please email me a copy? Thanks! > >>>> > >>>> Ack! So it is, I'll try to get it restored soon. Here's the file. > >>>> > >>>> -- > >>>> ____________________________________________________________ > >>>> Sean McBride, B. Eng sean at rogue-research.com > >>>> Rogue Research www.rogue-research.com > >>>> Mac Software Developer Montr?al, Qu?bec, Canada > >>>> > >>>> > >>> _______________________________________________ > >>> This is the private VTK discussion list. > >>> Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > >>> Wiki/VTK_FAQ > >>> Follow this link to subscribe/unsubscribe: > >>> http://www.vtk.org/mailman/listinfo/vtkusers > >> > >> > > From pbruyant at yahoo.com Sun Oct 21 08:27:53 2007 From: pbruyant at yahoo.com (Philippe Bruyant) Date: Sun, 21 Oct 2007 05:27:53 -0700 (PDT) Subject: [vtkusers] How to bind two or more objects Message-ID: <517468.92945.qm@web37506.mail.mud.yahoo.com> hello experts, I would like to bind two objects (say, a cylinder and a cube) so that I can treat them as a whole and e.g. move both at the same time. How can I do that ? Thanks in advance Phil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From giroux at geo.polymtl.ca Sun Oct 21 09:06:41 2007 From: giroux at geo.polymtl.ca (Bernard Giroux) Date: Sun, 21 Oct 2007 09:06:41 -0400 Subject: [vtkusers] How to bind two or more objects In-Reply-To: <517468.92945.qm@web37506.mail.mud.yahoo.com> References: <517468.92945.qm@web37506.mail.mud.yahoo.com> Message-ID: <471B4EE1.9090501@geo.polymtl.ca> Philippe Bruyant a ?crit : > hello experts, > I would like to bind two objects (say, a cylinder and > a cube) so that I can treat them as a whole and e.g. > move both at the same time. How can I do that ? Hi Phil, You might have a look at vtkAssembly. > Thanks in advance > Phil > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Bernard Giroux, ing., Ph.D. Chercheur http://geo.polymtl.ca/~giroux -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3253 bytes Desc: S/MIME Cryptographic Signature URL: From imikejackson at gmail.com Sun Oct 21 09:10:57 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Sun, 21 Oct 2007 09:10:57 -0400 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: This is very possible. Both Sean and I have done this type of program in the past. You will have to learn some Objective-C in order to program the GUI. But all the core algorithms can be done in C++. There are some caveats with using C++ with Objective-C if you are targeting 10.3.9. Things are better in 10.4. You will end up writing some bridge code to bridge between the Observer pattern that is used in VTK with Patterns that are used in Objective-C. Some things that helped me out was: In both Objective-C and C++, everything is a pointer. use "new" for vtk classes (or a smart pointer) and the memory management will go easier. Return C++ pointers to vtk objects If your code has BOTH objective-C and C++ the file extension MUST BE .mm Here are some examples: This uses the VTKCocoa class. We are using Obj-C to ask for the VTKRenderer object, then using C++ to set the view. [vtkView renderer]->GetActiveCamera()->SetViewUp(up); Here I am getting the File path from an NSSavePanel then using C++ streams to write some data to the file. Note how I use NSStrings UTF8String to create a "c_str()". - (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int) returnCode contextInfo:(void *)contextInfo { if( returnCode != NSFileHandlingPanelOKButton ){ return; } NSString *path = [sheet filename]; std::ofstream fout; fout.open( [path UTF8String],std::ios_base::trunc); fout << _particleInfos->GetNumberOfItems() << endl; int i = 0; int size = _particleInfos->GetNumberOfItems(); for (i = 0; i < size; ++i) { _particleInfos->GetPFVParticleInfo(i)->PrintRecord(fout); } fout.close(); } Hope some of this helps. The Cocoa API is very rich but VERY large. Don't get discouraged and keep plugging away. We use Qt everyday and the apps look pretty nice. If you are _really_ picky there are a few things that don't quite look right but those can be fixed with some patience. Just look at the latest Adobe Reader. It was done with Qt (I think). I think also Abode LightRoom and/or Adobe Photoshop elements were also done using Qt. Objective-C is a really nice language and easy to learn, but you have to leave most things you know about C++ "at the door" as they do NOT apply with Objective-C. If you have ever used Java, then Objective-C is most like Java. Cheers -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 21, 2007, at 8:01 AM, Feng Ding wrote: > I'm going to develop native OSX-based VTK applications, and I'm using > C++. Possible to mix obj-c and C++ in programming? Let's say, using > obj-c for the interface, and C++ for the core algorithm. I hope that > the application looks more mac-like, so I'm not going to use cross > platform libraries such as QT, FLTK, etc. > > On 10/20/07, Mike Jackson wrote: >> I do not have any examples of using pure Carbon. If you are trying to >> stick with C++ I would look into Qt from TrollTech as that is a Cross >> platform C++ Gui toolkit. VTK Provides a prebuilt plugin for Qt to >> render VTK scenes. To create a Qt/VTK example is easy and straight >> forward to accomplish. >> >> What exactly are you trying to do? Port an existing VTK app to OS X? >> Use OS X to develop VTK based Apps? Use OS X to just visualize some >> data using VTK? Learn VTK using OS X as the development environment? >> >> More information would help us help you. >> >> cheers >> -- >> Mike Jackson Senior Research Engineer >> Innovative Management & Technology Services >> >> >> On Oct 20, 2007, at 9:20 AM, Feng Ding wrote: >> >>> Yes, please. I really hope I can have a C++ example. Thank you! >>> >>> On 10/19/07, Mike Jackson wrote: >>>> Right. Cocoa _is_ Objective-C. The purpose of the example is to >>>> show >>>> how to use VTK in a Cocoa Window. Are you wanting an example of how >>>> to use VTK in a Carbon window? (which is C++). >>>> >>>> I helped write the example. >>>> >>>> -- >>>> Mike Jackson Senior Research Engineer >>>> Innovative Management & Technology Services >>>> >>>> >>>> On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: >>>> >>>>> Thank you! It seems to be written in Obj-C, do you have a C++ >>>>> version? >>>>> >>>>> Best regards, >>>>> DING Feng >>>>> >>>>> On 10/18/07, Sean McBride wrote: >>>>>> On 10/18/07 5:22 PM, Feng Ding said: >>>>>> >>>>>>> The SimpleCocoaVTK link >>>>>>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems >>>>>>> dead. >>>>>>> Could you please email me a copy? Thanks! >>>>>> >>>>>> Ack! So it is, I'll try to get it restored soon. Here's the >>>>>> file. >>>>>> >>>>>> -- >>>>>> ____________________________________________________________ >>>>>> Sean McBride, B. Eng sean at rogue-research.com >>>>>> Rogue Research www.rogue-research.com >>>>>> Mac Software Developer Montr?al, Qu?bec, Canada >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> This is the private VTK discussion list. >>>>> Please keep messages on-topic. Check the FAQ at: http:// >>>>> www.vtk.org/ >>>>> Wiki/VTK_FAQ >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://www.vtk.org/mailman/listinfo/vtkusers >>>> >>>> >> >> From krunk7 at gmail.com Sun Oct 21 11:23:22 2007 From: krunk7 at gmail.com (James Kyle) Date: Sun, 21 Oct 2007 08:23:22 -0700 (PDT) Subject: [vtkusers] Sphere with cross hairs. Message-ID: <13305861.post@talk.nabble.com> I've just discovered VTKCocoa (via macresearch) and am plodding through it to to provide a gui front end for a HeadTracker system I have. The idea is that the HeadTracker provides me with 6 dof positional data for a sensor (x,y,z,azimuth, roll,elevation). I use this data to plot the position of a sphere rendered with VTK. Simple enough. After walking through a tutorial or two, I have a basic view done for the object: http://airto.hosted.ats.ucla.edu/~kyle/images/interface.png And the skeleton for updating the view on each frame render...basically ready to go cept for actually resetting of positional given the new coordinates. This is where my questions come up. I'm completely new to 3D programming, but not new to coding. Simple function references that I can look the API's up with will suffice. Really, I just want to know if I'm on the right track. First, it seems like Actors serve as accessors to rendered objects on the screen. The vtkSphere object appears to only have x, y, and radius as positionals. -) Am I correct in thinking that the Camera view is what I'll need to set the z, azimuth, and elevation or is there a better way? -) How do I draw the cross hairs on the sphere? -- View this message in context: http://www.nabble.com/Sphere-with-cross-hairs.-tf4656570.html#a13305861 Sent from the VTK - Users mailing list archive at Nabble.com. From LauraJosie at hotmail.com Sun Oct 21 13:51:29 2007 From: LauraJosie at hotmail.com (Laura Josephine) Date: Sun, 21 Oct 2007 13:51:29 -0400 Subject: [vtkusers] Windows Installation Help Message-ID: We have built VTK using Microsoft Visual C++ 2003 and the output shows 39 successful, 0 errors, 0 warnings. The '.\bin\debug\' folder includes .lib, idb, and .pdb files. There are no .dll files, and when you try and run one of the examples it says that it cannot locate the .h files that are included in your project. How do we get the examples to run that include files such as 'vtkSphereSource.h'? Thanks for any help/suggestions, Laura & Syd -------------- next part -------------- An HTML attachment was scrubbed... URL: From rnelias at nacad.ufrj.br Sun Oct 21 18:49:56 2007 From: rnelias at nacad.ufrj.br (Renato N. Elias) Date: Sun, 21 Oct 2007 19:49:56 -0300 Subject: RES: [vtkusers] Windows Installation Help In-Reply-To: References: Message-ID: <45E327FBCA204B8DA29311370B811AC4@tetra2> Try updating the include (and library) directories within Visual Studio. In VS2005 it's under the menu tools\options, "Project and Solutions"\VC++ Directories. Select "Show directories for:" Include files and insert the path of your compiled VTK. Regards Renato. _____ De: vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org [mailto:vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org] Em nome de Laura Josephine Enviada em: domingo, 21 de outubro de 2007 14:51 Para: vtkusers at vtk.org Assunto: [vtkusers] Windows Installation Help We have built VTK using Microsoft Visual C++ 2003 and the output shows 39 successful, 0 errors, 0 warnings. The '.\bin\debug\' folder includes .lib, .idb, and .pdb files. There are no .dll files, and when you try and run one of the examples it says that it cannot locate the .h files that are included in your project. How do we get the examples to run that include files such as 'vtkSphereSource.h'? Thanks for any help/suggestions, Laura & Syd -------------- next part -------------- An HTML attachment was scrubbed... URL: From beau.sapach at ualberta.ca Sun Oct 21 18:19:03 2007 From: beau.sapach at ualberta.ca (Beau Sapach) Date: Sun, 21 Oct 2007 16:19:03 -0600 Subject: [vtkusers] Windows Installation Help In-Reply-To: <45E327FBCA204B8DA29311370B811AC4@tetra2> Message-ID: <200710212219.l9LMJ7jW001888@mail7.srv.ualberta.ca> Hi Laura, Did you configure VTK with CMake? Make sure that the option BUILD_SHARED_LIBS is ON, this may be why you have no DLL files. After that, you'll have to add all the appropriate directories to Visual Studio (under Tools->Options choose "Projects" on the left and then "VC++ Directories"). For the include files I included Common, Filtering, Graphics, Hybrid, Imaging, IO, Parallel, Patented, Rendering and Utilities as well as the root folder of my VTK source tree and the root folder of the compiled VTK tree (this might be the same folder depending on your CMake options). You'll also need to add the bin/release path to the Visual Studio "Library Files" section. These are all global options for visual studio and you can probably find equivalents at a project level. Lastly you'll need to tell the linker which .lib files to use so under Project->Properties choose "Linker" and then "Command Line", in the "Additional Options" text box on the bottom right I have: vtkCommon.lib vtkDICOMParser.lib vtkexpat.lib vtkFiltering.lib vtkfreetype.lib vtkftgl.lib vtkGraphics.lib vtkHybrid.lib vtkImaging.lib vtkIO.lib vtkjpeg.lib vtkParallel.lib vtkpng.lib vtkRendering.lib vtktiff.lib vtkzlib.lib This setup has been working for me quite well, hope this helps. Beau _____ From: vtkusers-bounces+beau.sapach=ualberta.ca at vtk.org [mailto:vtkusers-bounces+beau.sapach=ualberta.ca at vtk.org] On Behalf Of Renato N. Elias Sent: Sunday, October 21, 2007 4:50 PM To: 'Laura Josephine' Cc: vtkusers at vtk.org Subject: RES: [vtkusers] Windows Installation Help Try updating the include (and library) directories within Visual Studio. In VS2005 it's under the menu tools\options, "Project and Solutions"\VC++ Directories. Select "Show directories for:" Include files and insert the path of your compiled VTK. Regards Renato. _____ De: vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org [mailto:vtkusers-bounces+rnelias=nacad.ufrj.br at vtk.org] Em nome de Laura Josephine Enviada em: domingo, 21 de outubro de 2007 14:51 Para: vtkusers at vtk.org Assunto: [vtkusers] Windows Installation Help We have built VTK using Microsoft Visual C++ 2003 and the output shows 39 successful, 0 errors, 0 warnings. The '.\bin\debug\' folder includes .lib, .idb, and .pdb files. There are no .dll files, and when you try and run one of the examples it says that it cannot locate the .h files that are included in your project. How do we get the examples to run that include files such as 'vtkSphereSource.h'? Thanks for any help/suggestions, Laura & Syd -------------- next part -------------- An HTML attachment was scrubbed... URL: From mongwarrior at yahoo.com Mon Oct 22 03:01:45 2007 From: mongwarrior at yahoo.com (John Ownsoul) Date: Mon, 22 Oct 2007 00:01:45 -0700 (PDT) Subject: [vtkusers] a problem about a 3D geographical Visualisation code Message-ID: <13337686.post@talk.nabble.com> Dear Fellows; I import x,y,z values from my file and bring them into a vector. But i don't know what to do then. Could you help me to write the Java code or algorithm? Or, if it is possible, could you send me the file which contains the coordinates and resistivity values, and a code which reads the file and visualize it? Here is my code: File file = new File("file.txt"); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; fis = new FileInputStream(file); bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); String temp;, vtkIdList ids = new vtkIdList(); vtkPoints points = new vtkPoints(); vtkDoubleArray values = new vtkDoubleArray(); values.SetNumberOfTuples(19470); // i have 1970 points values.SetNumberOfComponents(1); values.SetName("resistivity"); double x,y,z,r; int qwe=0; //qwe is the counter //x,y,z values are the coordinates // r is the resistivity value while (dis.available() != 0) { qwe++; temp=dis.readLine(); processLine(temp); //this method generates the coordinates and the resistivity value from the variable "temp" System.out.println("x : " + x + ", y : " + y + ", z : " + z + ", resist. : " + r ); points.InsertPoint(qwe, x, y, z); values.InsertValue(qwe,r); ids.InsertNextId(qwe); } fis.close(); bis.close(); dis.close(); // i could only write this code. -- View this message in context: http://www.nabble.com/a-problem-about-a-3D-geographical-Visualisation-code-tf4669019.html#a13337686 Sent from the VTK - Users mailing list archive at Nabble.com. From pbruyant at yahoo.com Mon Oct 22 03:56:31 2007 From: pbruyant at yahoo.com (Philippe Bruyant) Date: Mon, 22 Oct 2007 00:56:31 -0700 (PDT) Subject: [vtkusers] How to bind two or more objects In-Reply-To: <471B4EE1.9090501@geo.polymtl.ca> Message-ID: <593972.35442.qm@web37503.mail.mud.yahoo.com> It's what I was looking for! Thanks Bernard, Phil --- Bernard Giroux wrote: > Philippe Bruyant a ?crit : > > hello experts, > > I would like to bind two objects (say, a cylinder > and > > a cube) so that I can treat them as a whole and > e.g. > > move both at the same time. How can I do that ? > > Hi Phil, > > You might have a look at vtkAssembly. > > > > Thanks in advance > > Phil > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > -- > Bernard Giroux, ing., Ph.D. > Chercheur > > http://geo.polymtl.ca/~giroux > > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From henrik.westerberg at crg.es Mon Oct 22 04:31:02 2007 From: henrik.westerberg at crg.es (Henrik Westerberg) Date: Mon, 22 Oct 2007 10:31:02 +0200 Subject: [vtkusers] (offtopic?) where to advertise job offers for peoplewith VTK skills? References: <200710202208.l9KM8Ogl023942@apex.ibpc.fr> Message-ID: Hello Marc, You could add an entry to the wiki: http://www.vtk.org/Wiki/VTK_Related_Job_Opportunities seems to be used. Also it is not unusual to have job postings advertised on this mailing list. regards, Henrik -----Original Message----- From: vtkusers-bounces+henrik.westerberg=crg.es at vtk.org on behalf of Marc Baaden Sent: Sun 10/21/2007 12:06 AM To: vtkusers at vtk.org Subject: [vtkusers] (offtopic?) where to advertise job offers for peoplewith VTK skills? Hi, this might be a sightly off-topic message, but I thought it still had its place on this mailing list (I hope I'm not completely wrong). I am looking to fill a post-doc position with a candidate who would have strong skills in VTK and was wondering whether there are any websites, mailing lists or other channels to specifically reach this "audience". Maybe it could be useful to have a "Job postings" section on the VTK website?? Thanks in advance for any comments or suggestions, Marc Baaden -- *** postdoc position available: http://www.baaden.ibpc.fr/job.html *** Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:baaden at smplinux.de - http://www.baaden.ibpc.fr FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From baaden at smplinux.de Mon Oct 22 04:56:30 2007 From: baaden at smplinux.de (Marc Baaden) Date: Mon, 22 Oct 2007 10:56:30 +0200 Subject: [vtkusers] (offtopic?) where to advertise job offers for peoplewith VTK skills? In-Reply-To: Your message of "Mon, 22 Oct 2007 10:31:02 +0200." Message-ID: <200710220858.l9M8wicC025082@apex.ibpc.fr> Hi, henrik.westerberg at crg.es said: >> Hello Marc, >> You could add an entry to the wiki: >> http://www.vtk.org/Wiki/VTK_Related_Job_Opportunities >> seems to be used. Ok. Done. >> Also it is not unusual to have job postings advertised on this >> mailing list. Great. Thanks for this information. I wasn't sure whether this would have been considered inappropriate or not. So I'll post a job description to the list, too. Regards, Marc -- *** postdoc position available: http://www.baaden.ibpc.fr/job.html *** Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:baaden at smplinux.de - http://www.baaden.ibpc.fr FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 From baaden at smplinux.de Mon Oct 22 04:57:30 2007 From: baaden at smplinux.de (Marc Baaden) Date: Mon, 22 Oct 2007 10:57:30 +0200 Subject: [vtkusers] Virtual Reality in Computational Biology - VTK-related Postdoctoral position at IBPC, Paris, France Message-ID: <200710220859.l9M8xhrs025144@apex.ibpc.fr> Postdoc position FlowVR Nano: a virtual laboratory Project description (see also http://www.shaman.ibpc.fr/fvnano_postdoc.pdf) We are seeking a highly motivated research programmer or a postdoctoral fellow to develop software tools for interactive high performance simulations coupling virtual reality, scientific visualization and parallel simulation through a full cooperation with on-going projects. The main application at the centre of this project targets handling and exploring simulations of biological or physical complex objects at the nanoscopic scale, using a virtual reality platform with haptic feedback. The successful candidate will join our group developing state-of-the-art computer simulation methods. This position is a unique training opportunity in a multi-disciplinary environment in collaboration with three other leading teams in France who are experts on complementary topics. Qualification and experience The candidate should have a PhD in visualisation, computer graphics, virtual reality or a related field. Skills in haptics would be appreciated. Specific experience with scientific computing in general and computational biology in particular is not required, but would represent an important advantage over other candidates. Strong skill in computer programming (in particular Objective-C, Cocoa), VTK or virtual reality and a good background in computer science is also an important prerequisite. Ability to work effectively in a team-based environment and leadership qualities are essential. Funding is available immediately. About the host institute The "Institut de Biologie Physico-Chimique" was created in 1930 by the Foundation Edmond de Rothschild. It is associated with the CNRS (Centre National de la Recherche Scientifique), a leading international scientific institution offering an exceptional environment to scientists early in their career. Closing date: 20 November 2007 Interested candidates should send a CV and a letter of motivation as PDF document to baaden at ibpc.fr. Please include the names of three referees. When? 3 years starting Jan 2008 Where? Laboratoire de Biochimie Theorique, Paris, France Salary: 2500 Euro/month Project Leader: Marc Baaden Website: http://www.baaden.ibpc.fr/projects/fvnano -- *** postdoc position available: http://www.baaden.ibpc.fr/job.html *** Dr. Marc Baaden - Institut de Biologie Physico-Chimique, Paris mailto:baaden at smplinux.de - http://www.baaden.ibpc.fr FAX: +33 15841 5026 - Tel: +33 15841 5176 ou +33 609 843217 From Michael.Knopke at gmx.de Mon Oct 22 06:38:42 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Mon, 22 Oct 2007 12:38:42 +0200 Subject: [vtkusers] Application crashes with large image data Message-ID: <000001c81497$b7666f20$4378a8c0@imagesystems.local> Hi, As Pierre already notices this is a win32 limitation that you won't overcome by adding new RAM or creating a bigger pagefile. You can try using the imagestreamer (vtkImageStreamer) class but this won't work correctly with all classes (at least not in my case). Another approach would be using 64bit (e.g. Vista 64bit) and compiling VTK there but I've read that it's not as stable as 32 bit version so depends on how complex your program will get. Regards, Michael Btw: I'm facing the same problems as you :-( -------------- next part -------------- An HTML attachment was scrubbed... URL: From hobbsk at ohiou.edu Mon Oct 22 06:56:32 2007 From: hobbsk at ohiou.edu (Kevin H. Hobbs) Date: Mon, 22 Oct 2007 06:56:32 -0400 Subject: [vtkusers] Re: Streaming volume rendering In-Reply-To: <45CF6BEC-16A2-4529-9D42-C6F0A0C45DA5@cct.lsu.edu> References: <45CF6BEC-16A2-4529-9D42-C6F0A0C45DA5@cct.lsu.edu> Message-ID: <1193050592.19406.6.camel@gargon.hooperlab> On Sun, 2007-10-21 at 14:51 -0500, Shalini Venkataraman wrote: > Hi Kevin > I saw your post to the vtk users list on streaming volume rendering > and am looking for the same answers myself. > Cluster-based solutions are nice but I feel like its too much effort > especialy given that many volumes tend to be sparse. > If you have some insight, would appreciate if you could share. > Thanks > Shalini I actually had more luck rendering in parallel with ParaView. When I tried to stream the rendering, all I could get was the same section of the image (upper left) over and over again. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: From mongwarrior at yahoo.com Mon Oct 22 07:04:57 2007 From: mongwarrior at yahoo.com (John Ownsoul) Date: Mon, 22 Oct 2007 04:04:57 -0700 (PDT) Subject: [vtkusers] vtkParticle reader Message-ID: <13341638.post@talk.nabble.com> Dear Fellows; I have points and resistivity values and i want to visualize them with vtkParticle reader. But I don't know how to do this, could you send me a sample code about this? Here is my Java code: File file = new File("file.txt"); FileInputStream fis = null; BufferedInputStream bis = null; DataInputStream dis = null; fis = new FileInputStream(file); bis = new BufferedInputStream(fis); dis = new DataInputStream(bis); String temp;, vtkIdList ids = new vtkIdList(); vtkPoints points = new vtkPoints(); vtkDoubleArray values = new vtkDoubleArray(); values.SetNumberOfTuples(19470); // i have 1970 points values.SetNumberOfComponents(1); values.SetName("resistivity"); double x,y,z,r; int qwe=0; //qwe is the counter //x,y,z values are the coordinates // r is the resistivity value while (dis.available() != 0) { qwe++; temp=dis.readLine(); processLine(temp); //this method generates the coordinates and the resistivity value from the variable "temp" System.out.println("x : " + x + ", y : " + y + ", z : " + z + ", resist. : " + r ); points.InsertPoint(qwe, x, y, z); values.InsertValue(qwe,r); ids.InsertNextId(qwe); } fis.close(); bis.close(); dis.close(); -- View this message in context: http://www.nabble.com/vtkParticle-reader-tf4670320.html#a13341638 Sent from the VTK - Users mailing list archive at Nabble.com. From carlding at gmail.com Mon Oct 22 07:54:00 2007 From: carlding at gmail.com (Feng Ding) Date: Mon, 22 Oct 2007 19:54:00 +0800 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: Thank you very much for your kind suggestion. I might give QT a try. But before that, I'll get my hands on Cocoa. On 10/21/07, Mike Jackson wrote: > This is very possible. Both Sean and I have done this type of program > in the past. You will have to learn some Objective-C in order to > program the GUI. But all the core algorithms can be done in C++. > There are some caveats with using C++ with Objective-C if you are > targeting 10.3.9. Things are better in 10.4. You will end up writing > some bridge code to bridge between the Observer pattern that is used > in VTK with Patterns that are used in Objective-C. > Some things that helped me out was: > In both Objective-C and C++, everything is a pointer. use "new" > for vtk classes (or a smart pointer) and the memory management will > go easier. > Return C++ pointers to vtk objects > If your code has BOTH objective-C and C++ the file extension MUST > BE .mm > > Here are some examples: > This uses the VTKCocoa class. We are using Obj-C to ask for the > VTKRenderer object, then using C++ to set the view. > [vtkView renderer]->GetActiveCamera()->SetViewUp(up); > > Here I am getting the File path from an NSSavePanel then using C++ > streams to write some data to the file. Note how I use NSStrings > UTF8String to create a "c_str()". > - (void)savePanelDidEnd:(NSSavePanel *)sheet returnCode:(int) > returnCode contextInfo:(void *)contextInfo > { > if( returnCode != NSFileHandlingPanelOKButton ){ > return; > } > NSString *path = [sheet filename]; > std::ofstream fout; > fout.open( [path UTF8String],std::ios_base::trunc); > > fout << _particleInfos->GetNumberOfItems() << endl; > int i = 0; > int size = _particleInfos->GetNumberOfItems(); > for (i = 0; i < size; ++i) { > _particleInfos->GetPFVParticleInfo(i)->PrintRecord(fout); > } > fout.close(); > } > > Hope some of this helps. The Cocoa API is very rich but VERY large. > Don't get discouraged and keep plugging away. > > We use Qt everyday and the apps look pretty nice. If you are _really_ > picky there are a few things that don't quite look right but those > can be fixed with some patience. Just look at the latest Adobe > Reader. It was done with Qt (I think). I think also Abode LightRoom > and/or Adobe Photoshop elements were also done using Qt. > > Objective-C is a really nice language and easy to learn, but you have > to leave most things you know about C++ "at the door" as they do NOT > apply with Objective-C. If you have ever used Java, then Objective-C > is most like Java. > > Cheers > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 21, 2007, at 8:01 AM, Feng Ding wrote: > > > I'm going to develop native OSX-based VTK applications, and I'm using > > C++. Possible to mix obj-c and C++ in programming? Let's say, using > > obj-c for the interface, and C++ for the core algorithm. I hope that > > the application looks more mac-like, so I'm not going to use cross > > platform libraries such as QT, FLTK, etc. > > > > On 10/20/07, Mike Jackson wrote: > >> I do not have any examples of using pure Carbon. If you are trying to > >> stick with C++ I would look into Qt from TrollTech as that is a Cross > >> platform C++ Gui toolkit. VTK Provides a prebuilt plugin for Qt to > >> render VTK scenes. To create a Qt/VTK example is easy and straight > >> forward to accomplish. > >> > >> What exactly are you trying to do? Port an existing VTK app to OS X? > >> Use OS X to develop VTK based Apps? Use OS X to just visualize some > >> data using VTK? Learn VTK using OS X as the development environment? > >> > >> More information would help us help you. > >> > >> cheers > >> -- > >> Mike Jackson Senior Research Engineer > >> Innovative Management & Technology Services > >> > >> > >> On Oct 20, 2007, at 9:20 AM, Feng Ding wrote: > >> > >>> Yes, please. I really hope I can have a C++ example. Thank you! > >>> > >>> On 10/19/07, Mike Jackson wrote: > >>>> Right. Cocoa _is_ Objective-C. The purpose of the example is to > >>>> show > >>>> how to use VTK in a Cocoa Window. Are you wanting an example of how > >>>> to use VTK in a Carbon window? (which is C++). > >>>> > >>>> I helped write the example. > >>>> > >>>> -- > >>>> Mike Jackson Senior Research Engineer > >>>> Innovative Management & Technology Services > >>>> > >>>> > >>>> On Oct 19, 2007, at 3:55 AM, Feng Ding wrote: > >>>> > >>>>> Thank you! It seems to be written in Obj-C, do you have a C++ > >>>>> version? > >>>>> > >>>>> Best regards, > >>>>> DING Feng > >>>>> > >>>>> On 10/18/07, Sean McBride wrote: > >>>>>> On 10/18/07 5:22 PM, Feng Ding said: > >>>>>> > >>>>>>> The SimpleCocoaVTK link > >>>>>>> (http://www.rogue-research.com/vtk/SimpleCocoaVTK1.1.zip) seems > >>>>>>> dead. > >>>>>>> Could you please email me a copy? Thanks! > >>>>>> > >>>>>> Ack! So it is, I'll try to get it restored soon. Here's the > >>>>>> file. > >>>>>> > >>>>>> -- > >>>>>> ____________________________________________________________ > >>>>>> Sean McBride, B. Eng sean at rogue-research.com > >>>>>> Rogue Research www.rogue-research.com > >>>>>> Mac Software Developer Montr?al, Qu?bec, Canada > >>>>>> > >>>>>> > >>>>> _______________________________________________ > >>>>> This is the private VTK discussion list. > >>>>> Please keep messages on-topic. Check the FAQ at: http:// > >>>>> www.vtk.org/ > >>>>> Wiki/VTK_FAQ > >>>>> Follow this link to subscribe/unsubscribe: > >>>>> http://www.vtk.org/mailman/listinfo/vtkusers > >>>> > >>>> > >> > >> > > From daniel.barbeau at sophia.inria.fr Mon Oct 22 09:38:33 2007 From: daniel.barbeau at sophia.inria.fr (Daniel Barbeau) Date: Mon, 22 Oct 2007 15:38:33 +0200 Subject: [vtkusers] MingW compilation and Python Message-ID: <471CA7D9.4090502@sophia.inria.fr> Hello, I'm a new user of VTK, and I needed to build it with python bindings. The compilation went ok, however there are a few things that should be taking in consideration to make the 5.0.3 source code work with python (2.5.1). Here are my notes, maybe you're already aware of these issues, but anyway, better twice than never no? When compiling with Mingw (using CMake to generate the makefiles), the dll files get the "lib" prefix added to their names. This makes it impossible for python to initialise the modules. In fact, it searches for the initlibvtkCommonPython() function in the libs, and obviously, it won't find it. Only initvtkCommonPython() exists. Furthermore, python 2.5.1 doesn't search for modules as *.dll files anymore but as *.pyd files. Finally, not all files are copied to the installation directory with "mingw32-make install". The missing files are the dlls ending by Python.dll. What needs to be done is: rename all the dlls named "lib.*Python.dll" to ".*Python.pyd" and then copy them to the installation directory. After these steps, the "import vtk" command works! I hope this is useful, cheers! Daniel From tim_d_soper at yahoo.com Mon Oct 22 11:48:47 2007 From: tim_d_soper at yahoo.com (Tim Soper) Date: Mon, 22 Oct 2007 08:48:47 -0700 (PDT) Subject: [vtkusers] Using vtkMy Message-ID: <469587.94564.qm@web33012.mail.mud.yahoo.com> Hi, I have a quick question regarding the use of the vtkMy directory. To build, I followed all the instructions contained in the Examples/Build/vtkMy/README. I'm still uncertain on how I should build my projects that will use vtkMy. Specifically, how do I set the appropriate include directories? Currently I get errors in my project when I try to include a header file contained within a vtkMy subdirectory. I can of course go through the trouble of adding them all individually by adding the lines: INCLUDE_DIRECTORIES( "../vtkMy/Common" ) INCLUDE_DIRECTORIES( "../vtkMy/Imaging" ), etc. to my project's CMakeLists file, but isn't there a way for that to all be taken care of the way VTK does it? I was hoping I could use a command like FIND_PACKAGE( VTKMY ) and all the directories would be included automatically. Any recommendations would be very much appreciated. Tim __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From pbruyant at yahoo.com Mon Oct 22 11:56:32 2007 From: pbruyant at yahoo.com (Philippe Bruyant) Date: Mon, 22 Oct 2007 08:56:32 -0700 (PDT) Subject: [vtkusers] How to create a pipe ? Message-ID: <875295.22253.qm@web37502.mail.mud.yahoo.com> Hi, How can I create a pipe (i.e. a hollow cylinder wit given inner and outer radii)? TXS Phil __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From imikejackson at gmail.com Mon Oct 22 12:07:11 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Mon, 22 Oct 2007 12:07:11 -0400 Subject: [vtkusers] Using vtkMy In-Reply-To: <469587.94564.qm@web33012.mail.mud.yahoo.com> References: <469587.94564.qm@web33012.mail.mud.yahoo.com> Message-ID: <23E93EC1-C352-471F-89EC-04E6A5D893C5@gmail.com> If you look in the FindVTK.cmake file (included in the cmake distribution) then you will see that they are probably defining any include directories that need to be included. Also, if you do an actual build and Install of VTK then vtk puts all the include files in a single directory so there is no need for something like: #include instead you can use #include < vtkBMPReader.h> This is a matter of personal opinion which way is better and I am not going to start a debate which way is better. If you have your sources broken up into lots of subdirectories then you have some choices. You can #include in which case you only need the following in your cmakelists.txt file INCLUDE_DIRECTORIES( "../vtkMy/") You can #include in which case you will need the following in your cmakelists.txt file INCLUDE_DIRECTORIES( "../vtkMy/Common" I personally prefer the first approach as it makes it clear to a new user coming to your code where to find the header file. Good Luck. For an example of how I have setup my code base have a look at http:// titanium.imts.us/viewvc/Task_7/MXADataModel/ Cheers -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 22, 2007, at 11:48 AM, Tim Soper wrote: > Hi, I have a quick question regarding the use of the vtkMy > directory. To build, I followed all the instructions contained in > the Examples/Build/vtkMy/README. I'm still uncertain on how I > should build my projects that will use vtkMy. Specifically, how do > I set the appropriate include directories? Currently I get errors > in my project when I try to include a header file contained within > a vtkMy subdirectory. > > I can of course go through the trouble of adding them all > individually by adding the lines: > INCLUDE_DIRECTORIES( "../vtkMy/Common" ) > INCLUDE_DIRECTORIES( "../vtkMy/Imaging" ), etc. > > to my project's CMakeLists file, but isn't there a way for that to > all be taken care of the way VTK does it? I was hoping I could use > a command like FIND_PACKAGE( VTKMY ) and all the directories would > be included automatically. Any recommendations would be very much > appreciated. > > Tim > > > > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From vtkuser at yahoo.com Mon Oct 22 12:43:31 2007 From: vtkuser at yahoo.com (John Doe) Date: Mon, 22 Oct 2007 09:43:31 -0700 (PDT) Subject: [vtkusers] need help, how to rotate an image Message-ID: <19476.83943.qm@web44902.mail.sp1.yahoo.com> is there any vtk class that i can use to rotate an image automatically?? (actually, i can do it but have to determine the transformation function myself) thanx a lot.. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ManuelDavid.Tabas at alu.uclm.es Mon Oct 22 13:13:36 2007 From: ManuelDavid.Tabas at alu.uclm.es (TABAS CALLE, MANUEL DAVID) Date: Mon, 22 Oct 2007 19:13:36 +0200 Subject: [vtkusers] How to compile JAVA with VTK in windows Message-ID: <200710221913.AA1310195934@alu.uclm.es> Hi everybody! I?m a newbee in VTK and I?m havig lots of problems with it. I follow all the indications made in "The VTK user?s guide" about how to install VTK and run it with JAVA (both Binary Installation and source code installation) but I can?t compile any java program who uses VTK. I will very gratefull to any idea you can give me to solve it. Thank you ___________________________________________________ Enviado a trav?s de http://alumnos.uclm.es/webmail From sean at rogue-research.com Mon Oct 22 13:33:59 2007 From: sean at rogue-research.com (Sean McBride) Date: Mon, 22 Oct 2007 13:33:59 -0400 Subject: [vtkusers] SimpleCocoaVTK link dead? In-Reply-To: References: <20071018135846.968200640@smtp1.sympatico.ca> Message-ID: <20071022173359.1056471004@smtp1.sympatico.ca> On 10/21/07 8:01 PM, Feng Ding said: >I'm going to develop native OSX-based VTK applications, and I'm using >C++. Possible to mix obj-c and C++ in programming? Let's say, using >obj-c for the interface, and C++ for the core algorithm. Yes, that is possible. It's exactly what SimpleCocoaVTK does really. The interface is Obj-C Cocoa and the core algorithm (VTK itself) is 99% C++. I would advise this route. IMNSHO, using Carbon for a new project is not advisable anymore, as Carbon is not making the move to 64 bit in OS 10.5, and thus has no long-term future. -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From ji_wi at yahoo.com Mon Oct 22 14:43:50 2007 From: ji_wi at yahoo.com (Toron J.) Date: Mon, 22 Oct 2007 11:43:50 -0700 (PDT) Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <002401c8113a$ce6574b0$1601a8c0@quad02> Message-ID: <710236.17908.qm@web61320.mail.yahoo.com> Hi All, I used the following codes to build a simple cone. --------------------------------------------------------------------------------------- vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 6 ); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInput( cone->GetOutput() ); -------------------------------------------------------------------------------------- Does any one can help me to know how to get the position (x,y,z) of each vertex and the rendering index? Thanks in advance! Toron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shriram.uc at gmail.com Mon Oct 22 15:13:19 2007 From: shriram.uc at gmail.com (Shriram Iyer) Date: Mon, 22 Oct 2007 14:13:19 -0500 Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <710236.17908.qm@web61320.mail.yahoo.com> References: <002401c8113a$ce6574b0$1601a8c0@quad02> <710236.17908.qm@web61320.mail.yahoo.com> Message-ID: <91783a1b0710221213m5e0b4b2aw9b778ec69b494af8@mail.gmail.com> Use cone->GetOutput()->GetPoints() to get the vertices. Shriram On 10/22/07, Toron J. wrote: > > Hi All, > > I used the following codes to build a simple cone. > > --------------------------------------------------------------------------------------- > vtkConeSource *cone = vtkConeSource::New(); > cone->SetHeight( 3.0 ); > cone->SetRadius( 1.0 ); > cone->SetResolution( 6 ); > > vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); > coneMapper->SetInput( cone->GetOutput() ); > > -------------------------------------------------------------------------------------- > Does any one can help me to know how to get the position (x,y,z) of each > vertex and the rendering index? Thanks in advance! > > Toron > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.braennstroem at gmx.de Mon Oct 22 17:20:25 2007 From: f.braennstroem at gmx.de (Fabian Braennstroem) Date: Mon, 22 Oct 2007 21:20:25 +0000 Subject: [vtkusers] calculate normal of boundary Message-ID: Hi, I would like to use python-vtk to calculate the vector components of an inlet velocity for computational fluid dynamics. For this I would have to read an ensight or vtk formated mesh and calculate the normal direction of a certain boundary, e.g. 'inlet'. Does anyone knows, if I can do this with python-vtk, or better, does anyone has such a small script already? Would be nice :-) Regards! Fabian From nickedgington at apparitionresearch.com Mon Oct 22 15:40:02 2007 From: nickedgington at apparitionresearch.com (Nick Edgington) Date: Mon, 22 Oct 2007 15:40:02 -0400 Subject: [vtkusers] compiling under Microsoft Visual C++ Codename "Orcas" (howto kind of) Message-ID: <003c01c814e3$58a8ac40$09fa04c0$@com> I just got the nightly from Oct 22 to correctly and run with the following steps 1) Ran CMake and selected the VTK_USE_ANSI_STDLIB , on the vtkmpeg2encode lib selected the MSVC version 6 2) Ran CMake and selected the VTK_USE_ANSI_STDLIB to be on enabling MPG2_ENCODER on the main tree, also using MSVC version 6 3) Put two paths in for the vtkmpeg2encode header, one ended up the same dir as the libraries (a personal problem not related to Orcas) 4) Orcas convert the programs to the newer format, this has to be done each time you run CMake. 5) Added a define to LIBXML.H it could not find _vsnprintf #define _vsnprintf vsnprintf // I am not sure this is correct but at least it compiles. 6) I had some issues with the data files not being in the right place, also a personal problem Final I used the files from the VTKData dir (case matters) 7) There was some grumbling on the part of the various test routine because the compiler version did not match. There were also a number of test failures but I got enough working to make it usable. 35 - Mace (Failed) 36 - expCos (Failed) 38 - CellLocator (Failed) 39 - PointLocator (Failed) 40 - FrustumClip (Failed) 41 - RGrid (Failed) 43 - TestClipHyperOctree (Failed) 45 - TestDelaunay2D (Failed) 46 - TestExtraction (Failed) 47 - TestExtractSelection (Failed) 48 - TestHyperOctreeContourFilter (Failed) 49 - TestHyperOctreeCutter (Failed) 50 - TestHyperOctreeDual (Failed) 51 - TestHyperOctreeSurfaceFilter (Failed) 52 - TestHyperOctreeToUniformGrid (Failed) 54 - BoxClipPolyData (Failed) 55 - BoxClipTetrahedra (Failed) 56 - BoxClipTriangulateAndInterpolate (Failed) 58 - TestHierarchicalBoxPipeline (Failed) 59 - TestMultiBlock (Failed) 60 - TestUnstructuredGridGeometryFilter (Failed) 61 - UnstructuredGridGradients (Failed) 62 - UnstructuredGridCellGradients (Failed) 64 - TestGenericDataSetTessellator (Failed) 65 - TestGenericGeometryFilter (Failed) 66 - TestGenericGlyph3DFilter (Failed) 67 - TestGenericContourFilter (Failed) 68 - TestGenericClip (Failed) 69 - TestGenericCutter (Failed) 70 - TestGenericProbeFilter (Failed) 71 - TestGenericStreamTracer (Failed) 72 - TestSmoothErrorMetric (Failed) 73 - TestViewDependentErrorMetric (Failed) 74 - ImportExport (Failed) 80 - TestHyperOctreeIO (Failed) 86 - LoadOpenGLExtension (Failed) 89 - TestOpacity (Failed) 90 - TestTextureRGBA (Failed) 91 - TestTStripsColorsTCoords (Failed) 92 - TestTStripsNormalsColorsTCoords (Failed) 93 - TestTStripsNormalsTCoords (Failed) 94 - TestTStripsTCoords (Failed) 95 - TestAreaSelections (Failed) 97 - HomogeneousRayIntegration (Failed) 98 - LinearRayIntegration (Failed) 99 - PartialPreIntegration (Failed) 100 - PreIntegrationIncremental (Failed) 101 - PreIntegrationNonIncremental (Failed) 102 - TestFinalColorWindowLevel (Failed) 103 - TestHAVSVolumeMapper (Failed) 104 - TestMinIntensityRendering (Failed) 105 - TestProjectedTetrahedra (Failed) 106 - volProt (Failed) 107 - X3DTest (Failed) 108 - TestAddStencilData (Failed) 109 - TestSubtractStencilData (Failed) 110 - BoxWidget (Failed) 111 - TestImplicitPlaneWidget (Failed) 112 - TestOrientationMarkerWidget (Failed) 113 - TestParallelopipedWidget (Failed) 114 - ImagePlaneWidget (Failed) 115 - TestSurfaceConstrainedHandleWidget (Failed) 116 - TestPolygonalRepresentationHandleWidget (Failed) 117 - TestImageTracerWidget (Failed) 118 - TestLineWidget (Failed) 119 - TestOrthoPlanes (Failed) 120 - TestPlaneWidget (Failed) 121 - TestPointWidget (Failed) 122 - TestScalarBarWidget (Failed) 123 - TestSplineWidget (Failed) 125 - TestHandleWidget (Failed) 126 - TestDijkstraGraphGeodesicPath (Failed) 128 - Infovis-TestExtractSelectedGraph (Failed) 129 - Infovis-TestGraphAlgorithms (Failed) 130 - Infovis-TestGraphHierarchicalBundle (Failed) 136 - Infovis-TestTreeMapLayoutStrategy (Failed) 143 - Infovis-TestTreeMapViewer (Failed) 144 - Views-TestRenderView (Failed) 145 - Views-TestGraphLayoutView (Failed) 146 - Views-TestTreeLayoutView (Failed) 147 - Views-TestTreeMapView (Failed) 148 - Example-vtkLocal (Failed) 149 - Example-vtkMy (Failed) Nick Edgington -------------- next part -------------- An HTML attachment was scrubbed... URL: From paulojamorim at gmail.com Mon Oct 22 17:20:24 2007 From: paulojamorim at gmail.com (Paulo Henrique Junqueira Amorim) Date: Mon, 22 Oct 2007 19:20:24 -0200 Subject: [vtkusers] Generate Wrapper Message-ID: <98e18c70710221420i6ab287c8l8fa3af06b988981a@mail.gmail.com> Hello, I am generating wrapper python linux of the vtk class with slicer3d class. The cmake generate files to compile but when make comand are ocurred error: /VTK/bin/libvtkImaging.so: undefined reference to `vtkImageThresholdBeyond::New() As I define references ? It is in CMakeLists.txt or in code? Regards. Paulo Amorim -------------- next part -------------- An HTML attachment was scrubbed... URL: From ji_wi at yahoo.com Mon Oct 22 17:36:59 2007 From: ji_wi at yahoo.com (Toron J.) Date: Mon, 22 Oct 2007 14:36:59 -0700 (PDT) Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <91783a1b0710221213m5e0b4b2aw9b778ec69b494af8@mail.gmail.com> Message-ID: <41879.71429.qm@web61316.mail.yahoo.com> Thanks, Shriram. I do know how to read 'cone->GetOutput()->GetPoints()' you suggested. So I tired to add the below codes. ------------------------------------------------------------------------- vtkPoints *points = vtkPoints::New(); points = cone->GetOutput()->GetPoints(); vtkCellArray *indexes = vtkCellArray::New(); indexes = cone->GetOutput()->GetPoints(); ------------------------------------------------------------------------ They did work. Could you correct them or let me know any example like this? Toron Shriram Iyer wrote: Use cone->GetOutput()->GetPoints() to get the vertices. Shriram On 10/22/07, Toron J. wrote:Hi All, I used the following codes to build a simple cone. --------------------------------------------------------------------------------------- vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 6 ); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInput( cone->GetOutput() ); -------------------------------------------------------------------------------------- Does any one can help me to know how to get the position (x,y,z) of each vertex and the rendering index? Thanks in advance! Toron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From tugcan.tuzcu at gmail.com Mon Oct 22 18:06:33 2007 From: tugcan.tuzcu at gmail.com (Tugcan Tuzcu) Date: Mon, 22 Oct 2007 15:06:33 -0700 Subject: [vtkusers] HOW TO GET COLOR Message-ID: <79a57a980710221506j40f2b4eam23fff16d6dd3ec11@mail.gmail.com> Dear friends, I defined let's say 4 spheres in same file(I use vtk-legacy) and now I m trying to add surface properties for these spheres. first I have to add color. my format is like this: # vtk DataFile Version 3.0 vtk output ASCII DATASET POLYDATA POINTS n float . . . . . POLYGONS m p . . . CELL_DATA m SCALARS sample_scalars float 1 LOOKUP_TABLE my_table 0.0 1.0 . . m.0 LOOKUP_TABLE my_table table size(# of polygons) ro go bo ao r1 g1 b1 a1 . . . . In this way I can not control the color values of individual spheres those I created, and when I change the opacity of bif sphere (say outer spheres contains 3 spheres inside) the opcaity and color values change for all I mean when I make changing about one object all other obfect are affected. So what should I do to get rid of this problem, or how should I describe the color of my objecta in my format case. thanks for helping tugcan -------------- next part -------------- An HTML attachment was scrubbed... URL: From shriram.uc at gmail.com Mon Oct 22 18:13:22 2007 From: shriram.uc at gmail.com (Shriram Iyer) Date: Mon, 22 Oct 2007 17:13:22 -0500 Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <41879.71429.qm@web61316.mail.yahoo.com> References: <91783a1b0710221213m5e0b4b2aw9b778ec69b494af8@mail.gmail.com> <41879.71429.qm@web61316.mail.yahoo.com> Message-ID: <91783a1b0710221513q1768732ka5b7d593caeae4c7@mail.gmail.com> Toron, I'm not quite sure what you are trying to do here. If you just want to the location of each vertex in the cone, you can use following code. vtkPoints* points = vtkPoints::New(); points = cone->GetOutput()->GetPoints(); for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) { double Pt[3]; points->GetPoint(i, Pt); // Pt will now have the x, y, z coordinates of vertex i. ... } HTH. Shriram On 10/22/07, Toron J. wrote: > > Thanks, Shriram. > > I do know how to read 'cone->GetOutput()->GetPoints()' you suggested. So I > tired to add the below codes. > ------------------------------------------------------------------------- > vtkPoints *points = vtkPoints::New(); > points = cone->GetOutput()->GetPoints(); > > vtkCellArray *indexes = vtkCellArray::New(); > indexes = cone->GetOutput()->GetPoints(); > ------------------------------------------------------------------------ > They did work. Could you correct them or let me know any example like > this? > > Toron > > > > > > *Shriram Iyer * wrote: > > Use cone->GetOutput()->GetPoints() to get the vertices. > > Shriram > > On 10/22/07, Toron J. wrote: > > > > Hi All, > > > > I used the following codes to build a simple cone. > > --------------------------------------------------------------------------------------- > > > > vtkConeSource *cone = vtkConeSource::New(); > > cone->SetHeight( 3.0 ); > > cone->SetRadius( 1.0 ); > > cone->SetResolution( 6 ); > > > > vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); > > coneMapper->SetInput( cone->GetOutput() ); > > > > -------------------------------------------------------------------------------------- > > Does any one can help me to know how to get the position (x,y,z) of each > > vertex and the rendering index? Thanks in advance! > > > > Toron > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > _______________________________________________ > > This is the private VTK discussion list. > > Please keep messages on-topic. Check the FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ji_wi at yahoo.com Mon Oct 22 19:39:00 2007 From: ji_wi at yahoo.com (Toron J.) Date: Mon, 22 Oct 2007 16:39:00 -0700 (PDT) Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <91783a1b0710221513q1768732ka5b7d593caeae4c7@mail.gmail.com> Message-ID: <777074.25780.qm@web61320.mail.yahoo.com> Hi Shriram, Thanks for response! I got the error message "error: invalid use of incomplete type 'struct vtkPolyData' " related to the line "points = cone->GetOutput()->GetPoints();" when I compiled my program. I do not know how to correct it. Actually I want to move the vertex with the max X value of the cone and change the colors of the surfaces conjoint to this vertex. So i have to get all the vertices information including the each x-y-z and the points-index (rendering order) of each surface. Toron my codes is here -------------------------------------------------------------- #include "vtkPolyDataMapper.h" #include "vtkRenderWindow.h" #include "vtkCamera.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkPoints.h" #include "vtkCellArray.h" #include "vtkIdType.h" #include "vtkRenderWindowInteractor.h" #include "vtkInteractorStyleTrackballCamera.h" int main( int argc, char *argv[] ) { vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 10 ); vtkPoints* points = vtkPoints::New(); points = cone->GetOutput()->GetPoints(); for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) { double Pt[3]; points->GetPoint(i, Pt); // ... // Pt will now have the x, y, z coordinates of vertex i. } //vtkCellArray *indexes = vtkCellArray::New(); //indexes = cone->GetOutput()->GetPoints(); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInput( cone->GetOutput() ); vtkActor *coneActor = vtkActor::New(); coneActor->SetMapper( coneMapper ); vtkRenderer *ren1= vtkRenderer::New(); ren1->AddActor( coneActor ); ren1->SetBackground( 0.1, 0.2, 0.4 ); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer( ren1 ); renWin->SetSize( 300, 300 ); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); iren->SetRenderWindow(renWin); iren->Initialize(); iren->Start(); cone->Delete(); coneMapper->Delete(); coneActor->Delete(); ren1->Delete(); renWin->Delete(); return 0; } -------------------------------------------------------------- Shriram Iyer wrote: Toron, I'm not quite sure what you are trying to do here. If you just want to the location of each vertex in the cone, you can use following code. vtkPoints* points = vtkPoints::New(); points = cone->GetOutput()->GetPoints(); for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) { double Pt[3]; points->GetPoint(i, Pt); // Pt will now have the x, y, z coordinates of vertex i. ... } HTH. Shriram On 10/22/07, Toron J. wrote: Thanks, Shriram. I do know how to read 'cone->GetOutput()->GetPoints()' you suggested. So I tired to add the below codes. ------------------------------------------------------------------------- vtkPoints *points = vtkPoints::New(); points = cone->GetOutput()->GetPoints(); vtkCellArray *indexes = vtkCellArray::New(); indexes = cone->GetOutput()->GetPoints(); ------------------------------------------------------------------------ They did work. Could you correct them or let me know any example like this? Toron Shriram Iyer < shriram.uc at gmail.com> wrote: Use cone->GetOutput()->GetPoints() to get the vertices. Shriram On 10/22/07, Toron J. wrote: Hi All, I used the following codes to build a simple cone. --------------------------------------------------------------------------------------- vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 6 ); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInput( cone->GetOutput() ); -------------------------------------------------------------------------------------- Does any one can help me to know how to get the position (x,y,z) of each vertex and the rendering index? Thanks in advance! Toron __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From shriram.uc at gmail.com Mon Oct 22 20:25:59 2007 From: shriram.uc at gmail.com (Shriram Iyer) Date: Mon, 22 Oct 2007 19:25:59 -0500 Subject: [vtkusers] how to get the details about the object created by vtk sources? In-Reply-To: <777074.25780.qm@web61320.mail.yahoo.com> References: <91783a1b0710221513q1768732ka5b7d593caeae4c7@mail.gmail.com> <777074.25780.qm@web61320.mail.yahoo.com> Message-ID: <91783a1b0710221725p215c5f88l7bd3af045e3e0d26@mail.gmail.com> Toron, You are getting the error because you've not included Adding this should help you compile the code. Also remove '#include " vtkIdType.h". Such a file doesn't exist. vtkIdType is defined in vtkPoints.h . If you want to identify the vertex with the max X value and identify surfaces connected to this vertex, you can try the following: double maxX = -9999; vtkIdType maxXid = -1; for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) { double Pt[3]; points->GetPoint(i, Pt); if (Pt[0] > maxX) { maxX = Pt[0]; maxXid = i; } } double Pt[3]; points->GetPoint(maxXid, Pt); // you can move the vertex here by using points->SetPoint(maxXid, newPt); // each surface on the cone is a cell for (vtkIdType i = 0; i < cone->GetOutput()->GetNumberOfCells(); i++) { int numPts; vtkIdType* pts; cone->GetOutput()->GetCellPoints(i, numPts, pts) for (vtkIdType j = 0; j < numPts; j++) { if (*pts++ == maxXid) // cell i is a surface connected to vertex with max X } } HTH. Shriram On 10/22/07, Toron J. wrote: > > Hi Shriram, > > Thanks for response! > > I got the error message "error: invalid use of incomplete type 'struct > vtkPolyData' " related to the line "points = > cone->GetOutput()->GetPoints();" when I compiled my program. I do not know > how to correct it. > > Actually I want to move the vertex with the max X value of the cone and > change the colors of the surfaces conjoint to this vertex. So i have to get > all the vertices information including the each x-y-z and the points-index > (rendering order) of each surface. > > Toron > > my codes is here > -------------------------------------------------------------- > #include "vtkPolyDataMapper.h" > #include "vtkRenderWindow.h" > #include "vtkCamera.h" > #include "vtkActor.h" > #include "vtkRenderer.h" > #include "vtkPoints.h" > #include "vtkCellArray.h" > #include "vtkIdType.h" > #include "vtkRenderWindowInteractor.h" > #include "vtkInteractorStyleTrackballCamera.h" > > int main( int argc, char *argv[] ) > { > vtkConeSource *cone = vtkConeSource::New(); > cone->SetHeight( 3.0 ); > cone->SetRadius( 1.0 ); > cone->SetResolution( 10 ); > > vtkPoints* points = vtkPoints::New(); > points = cone->GetOutput()->GetPoints(); > > for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) > { > double Pt[3]; > points->GetPoint(i, Pt); > // ... > // Pt will now have the x, y, z coordinates of vertex i. > } > > //vtkCellArray *indexes = vtkCellArray::New(); > //indexes = cone->GetOutput()->GetPoints(); > > vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); > coneMapper->SetInput( cone->GetOutput() ); > > vtkActor *coneActor = vtkActor::New(); > coneActor->SetMapper( coneMapper ); > > vtkRenderer *ren1= vtkRenderer::New(); > ren1->AddActor( coneActor ); > ren1->SetBackground( 0.1, 0.2, 0.4 ); > > vtkRenderWindow *renWin = vtkRenderWindow::New(); > renWin->AddRenderer( ren1 ); > renWin->SetSize( 300, 300 ); > > vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); > iren->SetRenderWindow(renWin); > iren->Initialize(); > iren->Start(); > > cone->Delete(); > coneMapper->Delete(); > coneActor->Delete(); > ren1->Delete(); > renWin->Delete(); > > return 0; > } > -------------------------------------------------------------- > > > > > *Shriram Iyer * wrote: > > Toron, > > I'm not quite sure what you are trying to do here. If you just want to the > location of > each vertex in the cone, you can use following code. > > vtkPoints* points = vtkPoints::New(); > points = cone->GetOutput()->GetPoints(); > > for (vtkIdType i = 0; i < points->GetNumberOfPoints(); i++) > { > double Pt[3]; > points->GetPoint(i, Pt); > // Pt will now have the x, y, z coordinates of vertex i. > ... > } > > HTH. > Shriram > > On 10/22/07, Toron J. wrote: > > > > Thanks, Shriram. > > > > I do know how to read 'cone->GetOutput()->GetPoints()' you suggested. So > > I tired to add the below codes. > > > > ------------------------------------------------------------------------- > > vtkPoints *points = vtkPoints::New(); > > points = cone->GetOutput()->GetPoints(); > > > > vtkCellArray *indexes = vtkCellArray::New(); > > indexes = cone->GetOutput()->GetPoints(); > > ------------------------------------------------------------------------ > > > > They did work. Could you correct them or let me know any example like > > this? > > > > Toron > > > > > > > > > > > > *Shriram Iyer < shriram.uc at gmail.com>* wrote: > > > > Use cone->GetOutput()->GetPoints() to get the vertices. > > > > Shriram > > > > On 10/22/07, Toron J. wrote: > > > > > > Hi All, > > > > > > I used the following codes to build a simple cone. > > > --------------------------------------------------------------------------------------- > > > > > > vtkConeSource *cone = vtkConeSource::New(); > > > cone->SetHeight( 3.0 ); > > > cone->SetRadius( 1.0 ); > > > cone->SetResolution( 6 ); > > > > > > vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); > > > coneMapper->SetInput( cone->GetOutput() ); > > > > > > -------------------------------------------------------------------------------------- > > > Does any one can help me to know how to get the position (x,y,z) of > > > each vertex and the rendering index? Thanks in advance! > > > > > > Toron > > > __________________________________________________ > > > Do You Yahoo!? > > > Tired of spam? Yahoo! Mail has the best spam protection around > > > http://mail.yahoo.com > > > > > > _______________________________________________ > > > This is the private VTK discussion list. > > > Please keep messages on-topic. Check the FAQ at: > > > http://www.vtk.org/Wiki/VTK_FAQ > > > Follow this link to subscribe/unsubscribe: > > > http://www.vtk.org/mailman/listinfo/vtkusers > > > > > > > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam protection around > > http://mail.yahoo.com > > > > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wollez at gmx.net Tue Oct 23 04:09:00 2007 From: wollez at gmx.net (WolfgangZ) Date: Tue, 23 Oct 2007 10:09:00 +0200 Subject: [vtkusers] vtkBoxClipDataSet() bug or feature? In-Reply-To: References: Message-ID: WolfgangZ schrieb: > Hello all, > > can it be that these new bounds are in a different coordinate system as > the source grid? I need the resulting grid not only for display but also > to perform other calculations on it! > > Has really nobody an idea why the input of the BoxClip does not reflect > the Bounds of the resulting grid? > > Any help is welcome. > > Wolfgang > I really need to get this running! I compressed my script a little bit but still the extent of the mesh from the vtkBoxClipDataSet does not reflect the bound specified! The bounds of my original mesh: (0.0, 0.0099999997764825821, 0.0, 0.0099999997764825821, 0.0, 0.0) original grid definition of the BoxClipDataSet: boxCut.SetBoxClip(0.001,0.005,0.001,0.005,-1,1) the bounds of the resulting mesh: (0.0004729999927803874, 0.0053309998475015163, 0.00048099999548867345, 0.006076000165194273, 0.0, 0.0) partial grid import vtk ugrid = vtk.vtkUnstructuredGridReader() ugrid.SetFileName("./holz1x1d.vtu") ugrid.Update() boxCut = vtk.vtkBoxClipDataSet() boxCut.SetBoxClip(0.001,0.005,0.001,0.005,-1,1) boxCut.SetInputConnection(ugrid.GetOutputPort()) boxCut.GenerateClipScalarsOn() boxCut.GenerateClippedOutputOff() boxCut.Update() print ugrid.GetOutput().GetBounds(), ' original grid' print boxCut.GetOutput().GetBounds() ,' partial grid' regards Wolfgang From m26404030 at john.petra.ac.id Tue Oct 23 03:31:36 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Tue, 23 Oct 2007 14:31:36 +0700 Subject: [vtkusers] rotate 2d image Message-ID: <20071023143136.s5isan8m0c00c8cc@webmail.petra.ac.id> hi all, i want to ask how to rotate a 2D bmp image(vtkImageData) using center of the image as center of the rotation..(i want to save the result in another file and display it with vtkImageViewer) the problem is that i cant do the rotation.. can i use function SetResliceAxesDirectionCosines in the vtkImageReslice?? but i dont understand the parameter of the function.. plis help me with this.. Thanx in advance..=p From 50295 at web.de Tue Oct 23 04:15:25 2007 From: 50295 at web.de (Olumide) Date: Tue, 23 Oct 2007 09:15:25 +0100 Subject: [vtkusers] Paraview Errors(?) Message-ID: I'm getting the errors shown below in Paraview, before it finally shows my data which is actually quite simple (also shown below). Is it a bug or a problem with my data? My files are very simple. ---------------------------- Error message ---------------------------- ERROR: In c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, line 112 pqStateLoader (0C166930): No root is defined. Cannot lDuplicate compound proxy definition added. ERROR: In c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, line 112 pqStateLoader (0C166930): No root is defined. Cannot locate proxy element with id 1963 ERROR: In c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, line 112 pqStateLoader (0C166930): No root is defined. Cannot locate proxy element with id 1964 Duplicate compound proxy definition added. y element with id 1963 ERROR: In c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, line 112 pqStateLoader (0C166930): No root is defined. Cannot locate proxy element with id 1964 OR Duplicate compound proxy definition added. Duplicate compound proxy definition added. Duplicate compound proxy definition added. ---------------------------- Sample Data ---------------------------- # vtk DataFile Version 1.0 Point(s) and Triangle(s) data ASCII DATASET POLYDATA POINTS 4 float -6.273831 3.197995 -5.544049 -5.714527 3.328698 -5.714530 -6.948623 3.118523 -5.048472 -6.073318 3.118523 -6.073321 VERTICES 1 2 1 0 POLYGONS 1 4 3 1 2 3 From alan.mutka at fer.hr Tue Oct 23 04:19:53 2007 From: alan.mutka at fer.hr (Alan Mutka) Date: Tue, 23 Oct 2007 10:19:53 +0200 Subject: [vtkusers] .NET NullReferenceException Message-ID: <471DAEA9.6070805@fer.hr> I have problem with rendering big STL files with c# .net. I load 120MB stl file, and first render is always successfull. But if I continue to run stlrenderer.Update() C# 2005 program crashes with NullReferenceException error. The error doesn't appear so often with smaller files, but it appears. If I load the same STL file with the same program but compiled with VC++ 6.0, without wrapers, just VTK, there is no problem, everything works fine. I think there is problem with wrappers, does anyone had these king of problem? Thank you! From amy.squillacote at kitware.com Tue Oct 23 08:31:39 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Tue, 23 Oct 2007 08:31:39 -0400 Subject: [vtkusers] Paraview Errors(?) In-Reply-To: References: Message-ID: <471DE9AB.9090404@kitware.com> Hello Olumide, This discussion belongs on the ParaView mailing list (rather than the VTK users list), so I'm copying my response there. When you try to load your data, are you selecting "Load State" or "Open" from the File menu? File -> Open is for loading datasets (like the one you show at the end of your email). File -> Load State is for loading files (usually created from File -> Save State) that specify the whole state of the ParaView application, not just a particular data file. If this does not correct your problem, please tell us what version of ParaView you are using when you see this problem. - Amy Olumide wrote: > I'm getting the errors shown below in Paraview, before it finally > shows my data which is actually quite simple (also shown below). Is it > a bug or a problem with my data? My files are very simple. > > > ---------------------------- Error message ---------------------------- > > ERROR: In > c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, > line 112 > pqStateLoader (0C166930): No root is defined. Cannot lDuplicate > compound proxy definition added. > ERROR: In > c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, > line 112 > pqStateLoader (0C166930): No root is defined. Cannot locate proxy > element with id 1963 > > > ERROR: In > c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, > line 112 > pqStateLoader (0C166930): No root is defined. Cannot locate proxy > element with id 1964 > > > Duplicate compound proxy definition added. > y element with id 1963 > > > ERROR: In > c:\berk\work\ReleaseBuilds\ParaView3\Servers\ServerManager\vtkSMStateLoader.cxx, > line 112 > pqStateLoader (0C166930): No root is defined. Cannot locate proxy > element with id 1964 > > > OR > > Duplicate compound proxy definition added. > Duplicate compound proxy definition added. > Duplicate compound proxy definition added. > > ---------------------------- Sample Data ---------------------------- > > # vtk DataFile Version 1.0 > Point(s) and Triangle(s) data > ASCII > > DATASET POLYDATA > POINTS 4 float > -6.273831 3.197995 -5.544049 > -5.714527 3.328698 -5.714530 > -6.948623 3.118523 -5.048472 > -6.073318 3.118523 -6.073321 > > VERTICES 1 2 > 1 0 > > POLYGONS 1 4 > 3 1 2 3 > > _______________________________________________ > This is the private VTK discussion list. Please keep messages > on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From invite+menskq2a at facebookmail.com Tue Oct 23 10:17:13 2007 From: invite+menskq2a at facebookmail.com (Saira Saleem Pathan) Date: Tue, 23 Oct 2007 07:17:13 -0700 Subject: [vtkusers] Check out my Facebook profile Message-ID: <07628cde6575f7212d4a312f1f27b6bf@register.facebook.com> I set up a Facebook profile with my pictures, videos and events and I want to add you as a friend so you can see it. First, you need to join Facebook! Once you join, you can also create your own profile. Thanks, Saira Here's the link: http://www.facebook.com/p.php?i=658372661&k=5Y1UXYU234TBW1GGSGX3&r&v=2 ___________________ This e-mail may contain promotional materials. If you do not wish to receive future commercial mailings from Facebook, please click on the link below. Facebook's offices are located at 156 University Ave., Palo Alto, CA 94301. http://www.facebook.com/o.php?u=582372570&k=bee7c2 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jtaclas at bidmc.harvard.edu Tue Oct 23 12:12:30 2007 From: jtaclas at bidmc.harvard.edu (jtaclas at bidmc.harvard.edu) Date: Tue, 23 Oct 2007 12:12:30 -0400 Subject: [vtkusers] vtkKdTree BuildLocatorFromPoints trouble Message-ID: <25A33F7C2B7E2E458182A863929DD9D832D7AC@EVS7.its.caregroup.org> I am having some trouble with vtkKdTree. I read data in as structured points, turn it into a surface with vtkMarchingContourFilter, and would like to find the nearest point of this surface to a specified point in space. To do this, do I need to get the point data from the contour filter and use BuildLocatorFromPoints, or would I just set the contour filter output as the data set and use BuildLocator; I ask because the manual pages online suggest that vtkIdType vtkKdTree::FindClosestPoint requires the locator be from BuildLocatorFromPoints. If this is the case, should the following work (or better phrased, why doesn't it)? vtkKdTree * example = vtkKdTree::New(); example->BuildLocatorFromPoints(contour->GetOutput()->GetPoints()); -------------- next part -------------- An HTML attachment was scrubbed... URL: From iryna at andrew.cmu.edu Tue Oct 23 12:43:16 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Tue, 23 Oct 2007 12:43:16 -0400 (EDT) Subject: [vtkusers] Is it possible to clean noise in VTK? Message-ID: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> Hello!! My point clouds have to many additional points. Up to now i used commercial software and cleaned manually my data before processing in VTK. Can i use VTK to do this. If somebody have already faced with the same problem, please let me know if exist any solution in VTK. Any advice will be helpful, Iryna From David.L.Goldsmith at noaa.gov Tue Oct 23 14:34:21 2007 From: David.L.Goldsmith at noaa.gov (David.L.Goldsmith at noaa.gov) Date: Tue, 23 Oct 2007 11:34:21 -0700 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib Message-ID: Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished with VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version 2.0.50727. I downloaded and apparently successfully installed CMake 2.4 Patch 7. I tried to use it to build VTK and received the following error message: "CMake Error: the C compiler 'cl' is not able to compile a simple test program. It fails with the following output: ... Linking... LINK: fatal error LNK1104: cannot open file 'user32.lib'" I used Windows' search on my C drive - sure enough, no user32.lib to be found. What is this file, where am I supposed to have obtained it from, and why would I not have it when VTK/CMake is expecting me to? Thanks! DG From krunk7 at gmail.com Tue Oct 23 14:46:07 2007 From: krunk7 at gmail.com (James Kyle) Date: Tue, 23 Oct 2007 11:46:07 -0700 Subject: [vtkusers] vtkTexture::SetInput(ImageData*) method not found Message-ID: <7AE4716A-F50C-4CDA-8F37-39C05B19345D@gmail.com> I am attempting to use a png image as a sphere texture. However, I'm getting the following compile time error (source block at end of post): > VTKViewController.mm:108: error: no matching function for call to > 'vtkTexture::SetInput(vtkImageData*)' > /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:59: note: > candidates are: void vtkImageAlgorithm::SetInput(vtkDataObject*) > /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:60: > note: void vtkImageAlgorithm::SetInput(int, > vtkDataObject*) I referred to the online documentation and the method is listed as valid (from the online header): > 00154: void SetInput( vtkImageData *input ); > 00155: vtkImageData *GetInput(); I then looked at my local vtkTexture.h file in /usr/local/VTK/include/ vtk-5.0/vtkTexture.h and the same code block area and see: > //BTX > // Description: > // This process object accepts image data as input. > vtkImageData *GetInput(); > //ETX A quick search of the header confirms that no vtkTexture::SetInput (ImageData*) exists in my local header. From the path above, you can see I have the latest release of vtk. . . am I missing something obvious? ===code snippet below=== > vtkActor *tSphereActor = vtkActor::New(); > tSphereActor->SetMapper(pSphereMapper); > > vtkTexture *sphereTexture = vtkTexture::New(); > vtkPNGReader *pngReader = vtkPNGReader::New(); > pngReader->SetFileName("./Sphere.png"); > sphereTexture->SetInput(pngReader->GetOutput()); > sphereTexture->InterpolateOn(); > tSphereActor->SetTexture(sphereTexture); > sphereActor->Delete(); > Many thanks, James Kyle From david.gobbi at gmail.com Tue Oct 23 14:57:13 2007 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 23 Oct 2007 14:57:13 -0400 Subject: [vtkusers] vtkTexture::SetInput(ImageData*) method not found In-Reply-To: <7AE4716A-F50C-4CDA-8F37-39C05B19345D@gmail.com> References: <7AE4716A-F50C-4CDA-8F37-39C05B19345D@gmail.com> Message-ID: <48a17b780710231157u37cca72cs27d4c547f195d4c@mail.gmail.com> Hi Kyle, You'll have to include the vtkImageData.h header file. Without this header file, the compiler doesn't know that vtkImageData is a subclass of vtkDataObject. That code comment in vtkTexture is out-of-date, I'll remove it. - David On 10/23/07, James Kyle wrote: > I am attempting to use a png image as a sphere texture. However, I'm > getting the following compile time error (source block at end of post): > > > VTKViewController.mm:108: error: no matching function for call to > > 'vtkTexture::SetInput(vtkImageData*)' > > /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:59: note: > > candidates are: void vtkImageAlgorithm::SetInput(vtkDataObject*) > > /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:60: > > note: void vtkImageAlgorithm::SetInput(int, > > vtkDataObject*) > > I referred to the online documentation and the method is listed as > valid (from the online header): > > > 00154: void SetInput( vtkImageData *input ); > > 00155: vtkImageData *GetInput(); > > I then looked at my local vtkTexture.h file in /usr/local/VTK/include/ > vtk-5.0/vtkTexture.h and the same code block area and see: > > > //BTX > > // Description: > > // This process object accepts image data as input. > > vtkImageData *GetInput(); > > //ETX > > A quick search of the header confirms that no vtkTexture::SetInput > (ImageData*) exists in my local header. From the path above, you can > see I have the latest release of vtk. . . am I missing something > obvious? > > ===code snippet below=== > > > vtkActor *tSphereActor = vtkActor::New(); > > tSphereActor->SetMapper(pSphereMapper); > > > > vtkTexture *sphereTexture = vtkTexture::New(); > > vtkPNGReader *pngReader = vtkPNGReader::New(); > > pngReader->SetFileName("./Sphere.png"); > > sphereTexture->SetInput(pngReader->GetOutput()); > > sphereTexture->InterpolateOn(); > > tSphereActor->SetTexture(sphereTexture); > > sphereActor->Delete(); > > > > Many thanks, > > James Kyle > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From krunk7 at gmail.com Tue Oct 23 15:03:30 2007 From: krunk7 at gmail.com (James Kyle) Date: Tue, 23 Oct 2007 12:03:30 -0700 Subject: [vtkusers] vtkTexture::SetInput(ImageData*) method not found In-Reply-To: <48a17b780710231157u37cca72cs27d4c547f195d4c@mail.gmail.com> References: <7AE4716A-F50C-4CDA-8F37-39C05B19345D@gmail.com> <48a17b780710231157u37cca72cs27d4c547f195d4c@mail.gmail.com> Message-ID: <068D6D19-9772-42FB-98E3-FD4A3BAFB807@gmail.com> Excellent, worked like a charm. On Oct 23, 2007, at 11:57 AM, David Gobbi wrote: > Hi Kyle, > > You'll have to include the vtkImageData.h header file. > > Without this header file, the compiler doesn't know that > vtkImageData is a subclass of vtkDataObject. > > That code comment in vtkTexture is out-of-date, I'll > remove it. > > - David > > > On 10/23/07, James Kyle wrote: >> I am attempting to use a png image as a sphere texture. However, I'm >> getting the following compile time error (source block at end of >> post): >> >>> VTKViewController.mm:108: error: no matching function for call to >>> 'vtkTexture::SetInput(vtkImageData*)' >>> /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:59: note: >>> candidates are: void vtkImageAlgorithm::SetInput(vtkDataObject*) >>> /usr/local/VTK/include/vtk-5.0/vtkImageAlgorithm.h:60: >>> note: void vtkImageAlgorithm::SetInput(int, >>> vtkDataObject*) >> >> I referred to the online documentation and the method is listed as >> valid (from the online header): >> >>> 00154: void SetInput( vtkImageData *input ); >>> 00155: vtkImageData *GetInput(); >> >> I then looked at my local vtkTexture.h file in /usr/local/VTK/ >> include/ >> vtk-5.0/vtkTexture.h and the same code block area and see: >> >>> //BTX >>> // Description: >>> // This process object accepts image data as input. >>> vtkImageData *GetInput(); >>> //ETX >> >> A quick search of the header confirms that no vtkTexture::SetInput >> (ImageData*) exists in my local header. From the path above, you can >> see I have the latest release of vtk. . . am I missing something >> obvious? >> >> ===code snippet below=== >> >>> vtkActor *tSphereActor = vtkActor::New(); >>> tSphereActor->SetMapper(pSphereMapper); >>> >>> vtkTexture *sphereTexture = vtkTexture::New(); >>> vtkPNGReader *pngReader = vtkPNGReader::New(); >>> pngReader->SetFileName("./Sphere.png"); >>> sphereTexture->SetInput(pngReader->GetOutput()); >>> sphereTexture->InterpolateOn(); >>> tSphereActor->SetTexture(sphereTexture); >>> sphereActor->Delete(); >>> >> >> Many thanks, >> >> James Kyle >> >> >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: http:// >> www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> From freudling at bwh.harvard.edu Tue Oct 23 17:22:28 2007 From: freudling at bwh.harvard.edu (Andreas Freudling) Date: Tue, 23 Oct 2007 17:22:28 -0400 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib In-Reply-To: References: Message-ID: <471E6614.2000300@bwh.harvard.edu> Hi David, did you also install the Platform SDK? If not get a closer look on the following website http://msdn2.microsoft.com/de-de/express/aa700755.aspx. Andy David.L.Goldsmith at noaa.gov schrieb: > Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro > '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished with > VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version > 2.0.50727. I downloaded and apparently successfully installed CMake 2.4 > Patch 7. I tried to use it to build VTK and received the following > error message: > > "CMake Error: the C compiler 'cl' is not able to compile a simple test > program. It fails with the following output: > > ... > > Linking... > LINK: fatal error LNK1104: cannot open file 'user32.lib'" > > I used Windows' search on my C drive - sure enough, no user32.lib to be > found. What is this file, where am I supposed to have > obtained it from, and why would I not have it when VTK/CMake is > expecting me to? Thanks! > > DG > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -- Andreas Freudling Student Intern Slicer 3 - Volume Rendering Module Surgical Planning Laboratory Department of Radiology Brigham and Women's Hospital PH: 857-204-3429 From hflyt at sina.com Tue Oct 23 22:57:02 2007 From: hflyt at sina.com (Yuetong Luo) Date: Wed, 24 Oct 2007 10:57:02 +0800 Subject: [vtkusers] How to draw 'space grid line' in VTK? Message-ID: <20071024025611.5ED4E1098AD@smtp.sina.com.cn> Hi,everyone, I am freshman for vtk development, now I want to draw "space grid line" in VTK as shown in the attached, but I have no idea at the moment. Any suggestion is appreciated! Best Wishes, Yuetong Luo -------------- next part -------------- A non-text attachment was scrubbed... Name: space grid lines.JPG Type: image/jpeg Size: 14028 bytes Desc: not available URL: From pbarbier at ucalgary.ca Wed Oct 24 00:27:26 2007 From: pbarbier at ucalgary.ca (Pierre Barbier de Reuille) Date: Tue, 23 Oct 2007 22:27:26 -0600 Subject: [vtkusers] Is it possible to clean noise in VTK? In-Reply-To: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> References: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> Message-ID: What do you mean by "cleaning" your data? Even though there is probably a way to do it, you have to be more precise about what you want to do ! Pierre On 10/23/07, Iryna Pavlyshak wrote: > > Hello!! > > My point clouds have to many additional points. Up to now i used > commercial software and cleaned manually my data before processing in VTK. > Can i use VTK to do this. > If somebody have already faced with the same problem, please let me know > if exist any solution in VTK. > > Any advice will be helpful, > > Iryna > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- Barbier de Reuille Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.L.Goldsmith at noaa.gov Wed Oct 24 01:09:11 2007 From: David.L.Goldsmith at noaa.gov (David.Goldsmith) Date: Tue, 23 Oct 2007 22:09:11 -0700 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib In-Reply-To: <471E6614.2000300@bwh.harvard.edu> References: <471E6614.2000300@bwh.harvard.edu> Message-ID: <471ED377.7040802@noaa.gov> OK, I installed the Platform SDK, and verified that it has user32.lib (in three different places, actually: "Microsoft Platform SDK for Windows Server 2003 R2\Lib", "Microsoft Platform SDK for Windows Server 2003 R2\Lib\AMD64", and "Microsoft Platform SDK for Windows Server 2003 R2\Lib\IA64"). I tried CMake again, same complaint, cannot open user32.lib. I tried adding /LIBPATH:"Microsoft Platform SDK for Windows Server 2003 R2\Lib" (since I don't have an AMD chip nor, I'm pretty sure, a 64bit chip) to CMAKE_EXE_LINKER_FLAGS, CMAKE_MODULE_LINKER_FLAGS, and just for good measure ('cause I'm trying to build a static, not a dynamic library) to CMAKE_SHARED_LINKER_FLAGS, same complaint cannot open user32.lib. DG Andreas Freudling wrote: > Hi David, > > did you also install the Platform SDK? If not get a closer look on the > following website http://msdn2.microsoft.com/de-de/express/aa700755.aspx. > > Andy > > > David.L.Goldsmith at noaa.gov schrieb: >> Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro >> '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished with >> VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version >> 2.0.50727. I downloaded and apparently successfully installed CMake 2.4 >> Patch 7. I tried to use it to build VTK and received the following >> error message: >> >> "CMake Error: the C compiler 'cl' is not able to compile a simple test >> program. It fails with the following output: >> >> ... >> >> Linking... >> LINK: fatal error LNK1104: cannot open file 'user32.lib'" >> >> I used Windows' search on my C drive - sure enough, no user32.lib to be >> found. What is this file, where am I supposed to have >> obtained it from, and why would I not have it when VTK/CMake is >> expecting me to? Thanks! >> >> DG >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > > From Shekhar.Chandra at sci.monash.edu.au Wed Oct 24 01:39:44 2007 From: Shekhar.Chandra at sci.monash.edu.au (Shekhar Chandra) Date: Wed, 24 Oct 2007 15:39:44 +1000 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib In-Reply-To: <471ED377.7040802@noaa.gov> References: <471E6614.2000300@bwh.harvard.edu> <471ED377.7040802@noaa.gov> Message-ID: <471EDAA0.70209@sci.monash.edu.au> Hi David I assume you've done step 4 in I find it best to run cmake from the Visual Studio Command Prompt which needs to be setup with the Lib path etc. You can set it up by editing the batch file it calls. Check the properties of the link in Start menu. I would tell you the exact file, but I don't have a windows machine where I'm atm. It'll have bits like: set INCLUDE=C:\Program Files\Microsoft SDKs\Windows\v6.0\Include;C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\INCLUDE;%INCLUDE% set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB;C:\Program Files\Microsoft SDKs\Windows\v6.0\Lib;%LIB% set LIBPATH=C:\Program Files\Microsoft SDKs\Windows\v6.0 Note the LIB and INCLUDE will be very different in your case. C:\Program Files\Microsoft SDKs\Windows\v6.0 is what the Vista SDK installs to, replace it with the R2 SDK path. And also place the compiler (VC) include and lib paths. Hope that helps. Cheers Shakes David.Goldsmith wrote: > OK, I installed the Platform SDK, and verified that it has user32.lib > (in three different places, actually: "Microsoft Platform SDK for > Windows Server 2003 R2\Lib", "Microsoft Platform SDK for Windows Server > 2003 R2\Lib\AMD64", and "Microsoft Platform SDK for Windows Server 2003 > R2\Lib\IA64"). I tried CMake again, same complaint, cannot open > user32.lib. I tried adding /LIBPATH:"Microsoft Platform SDK for Windows > Server 2003 R2\Lib" (since I don't have an AMD chip nor, I'm pretty > sure, a 64bit chip) to CMAKE_EXE_LINKER_FLAGS, > CMAKE_MODULE_LINKER_FLAGS, and just for good measure ('cause I'm trying > to build a static, not a dynamic library) to CMAKE_SHARED_LINKER_FLAGS, > same complaint cannot open user32.lib. > > DG > > Andreas Freudling wrote: >> Hi David, >> >> did you also install the Platform SDK? If not get a closer look on the >> following website http://msdn2.microsoft.com/de-de/express/aa700755.aspx. >> >> Andy >> >> >> David.L.Goldsmith at noaa.gov schrieb: >>> Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro >>> '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished with >>> VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version >>> 2.0.50727. I downloaded and apparently successfully installed CMake 2.4 >>> Patch 7. I tried to use it to build VTK and received the following >>> error message: >>> >>> "CMake Error: the C compiler 'cl' is not able to compile a simple test >>> program. It fails with the following output: >>> >>> ... >>> >>> Linking... >>> LINK: fatal error LNK1104: cannot open file 'user32.lib'" >>> >>> I used Windows' search on my C drive - sure enough, no user32.lib to be >>> found. What is this file, where am I supposed to have >>> obtained it from, and why would I not have it when VTK/CMake is >>> expecting me to? Thanks! >>> >>> DG >>> _______________________________________________ >>> This is the private VTK discussion list. Please keep messages >>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >>> >> >> > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- A non-text attachment was scrubbed... Name: Shekhar.Chandra.vcf Type: text/x-vcard Size: 261 bytes Desc: not available URL: From David.L.Goldsmith at noaa.gov Wed Oct 24 02:00:55 2007 From: David.L.Goldsmith at noaa.gov (David.Goldsmith) Date: Tue, 23 Oct 2007 23:00:55 -0700 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib In-Reply-To: <471EDAA0.70209@sci.monash.edu.au> References: <471E6614.2000300@bwh.harvard.edu> <471ED377.7040802@noaa.gov> <471EDAA0.70209@sci.monash.edu.au> Message-ID: <471EDF97.1080703@noaa.gov> No, I hadn't even done Step 3, actually, 'cause when earlier I tried the link, it was reported as broken (I was going to reply to this effect, but I lost my connection, lost my draft, found the SDK otherwise, and thought that would be sufficient) but, inexplicably, now it works (the link that is) from both emails, so I'll go ahead and follow its instructions and see where that gets me. DG Shekhar Chandra wrote: > Hi David > > I assume you've done step 4 in > > > I find it best to run cmake from the Visual Studio Command Prompt > which needs to be setup with the Lib path etc. You can set it up by > editing the batch file it calls. Check the properties of the link in > Start menu. I would tell you the exact file, but I don't have a > windows machine where I'm atm. > > It'll have bits like: > > set INCLUDE=C:\Program Files\Microsoft > SDKs\Windows\v6.0\Include;C:\Program Files\Microsoft > SDKs\Windows\v6.0\VC\INCLUDE;%INCLUDE% > set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB;C:\Program > Files\Microsoft SDKs\Windows\v6.0\Lib;%LIB% > set LIBPATH=C:\Program Files\Microsoft SDKs\Windows\v6.0 > > Note the LIB and INCLUDE will be very different in your case. > C:\Program Files\Microsoft SDKs\Windows\v6.0 is what the Vista SDK > installs to, replace it with the R2 SDK path. And also place the > compiler (VC) include and lib paths. > > Hope that helps. > Cheers > Shakes > > David.Goldsmith wrote: >> OK, I installed the Platform SDK, and verified that it has user32.lib >> (in three different places, actually: "Microsoft Platform SDK for >> Windows Server 2003 R2\Lib", "Microsoft Platform SDK for Windows >> Server 2003 R2\Lib\AMD64", and "Microsoft Platform SDK for Windows >> Server 2003 R2\Lib\IA64"). I tried CMake again, same complaint, >> cannot open user32.lib. I tried adding /LIBPATH:"Microsoft Platform >> SDK for Windows Server 2003 R2\Lib" (since I don't have an AMD chip >> nor, I'm pretty sure, a 64bit chip) to CMAKE_EXE_LINKER_FLAGS, >> CMAKE_MODULE_LINKER_FLAGS, and just for good measure ('cause I'm >> trying to build a static, not a dynamic library) to >> CMAKE_SHARED_LINKER_FLAGS, same complaint cannot open user32.lib. >> >> DG >> >> Andreas Freudling wrote: >>> Hi David, >>> >>> did you also install the Platform SDK? If not get a closer look on >>> the following website >>> http://msdn2.microsoft.com/de-de/express/aa700755.aspx. >>> >>> Andy >>> >>> >>> David.L.Goldsmith at noaa.gov schrieb: >>>> Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro >>>> '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished >>>> with >>>> VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version >>>> 2.0.50727. I downloaded and apparently successfully installed >>>> CMake 2.4 >>>> Patch 7. I tried to use it to build VTK and received the following >>>> error message: >>>> >>>> "CMake Error: the C compiler 'cl' is not able to compile a simple test >>>> program. It fails with the following output: >>>> >>>> ... >>>> >>>> Linking... >>>> LINK: fatal error LNK1104: cannot open file 'user32.lib'" >>>> >>>> I used Windows' search on my C drive - sure enough, no user32.lib >>>> to be >>>> found. What is this file, where am I supposed to have >>>> obtained it from, and why would I not have it when VTK/CMake is >>>> expecting me to? Thanks! >>>> >>>> DG >>>> _______________________________________________ >>>> This is the private VTK discussion list. Please keep messages >>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>>> Follow this link to subscribe/unsubscribe: >>>> http://www.vtk.org/mailman/listinfo/vtkusers >>>> >>> >>> >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > From David.L.Goldsmith at noaa.gov Wed Oct 24 02:30:40 2007 From: David.L.Goldsmith at noaa.gov (David.Goldsmith) Date: Tue, 23 Oct 2007 23:30:40 -0700 Subject: [vtkusers] [VTK 5.0.3, CMake 2.4 P7, Parallels 3.0 emul. XP Pro 2002 SP2, cl cmplr furnished w/ MSVC++ XprssEd. 8.0] missing user32.lib In-Reply-To: <471EDAA0.70209@sci.monash.edu.au> References: <471E6614.2000300@bwh.harvard.edu> <471ED377.7040802@noaa.gov> <471EDAA0.70209@sci.monash.edu.au> Message-ID: <471EE690.8060507@noaa.gov> That got me past that stumbling block, thanks! DG Shekhar Chandra wrote: > Hi David > > I assume you've done step 4 in > > > I find it best to run cmake from the Visual Studio Command Prompt > which needs to be setup with the Lib path etc. You can set it up by > editing the batch file it calls. Check the properties of the link in > Start menu. I would tell you the exact file, but I don't have a > windows machine where I'm atm. > > It'll have bits like: > > set INCLUDE=C:\Program Files\Microsoft > SDKs\Windows\v6.0\Include;C:\Program Files\Microsoft > SDKs\Windows\v6.0\VC\INCLUDE;%INCLUDE% > set LIB=C:\Program Files\Microsoft SDKs\Windows\v6.0\VC\LIB;C:\Program > Files\Microsoft SDKs\Windows\v6.0\Lib;%LIB% > set LIBPATH=C:\Program Files\Microsoft SDKs\Windows\v6.0 > > Note the LIB and INCLUDE will be very different in your case. > C:\Program Files\Microsoft SDKs\Windows\v6.0 is what the Vista SDK > installs to, replace it with the R2 SDK path. And also place the > compiler (VC) include and lib paths. > > Hope that helps. > Cheers > Shakes > > David.Goldsmith wrote: >> OK, I installed the Platform SDK, and verified that it has user32.lib >> (in three different places, actually: "Microsoft Platform SDK for >> Windows Server 2003 R2\Lib", "Microsoft Platform SDK for Windows >> Server 2003 R2\Lib\AMD64", and "Microsoft Platform SDK for Windows >> Server 2003 R2\Lib\IA64"). I tried CMake again, same complaint, >> cannot open user32.lib. I tried adding /LIBPATH:"Microsoft Platform >> SDK for Windows Server 2003 R2\Lib" (since I don't have an AMD chip >> nor, I'm pretty sure, a 64bit chip) to CMAKE_EXE_LINKER_FLAGS, >> CMAKE_MODULE_LINKER_FLAGS, and just for good measure ('cause I'm >> trying to build a static, not a dynamic library) to >> CMAKE_SHARED_LINKER_FLAGS, same complaint cannot open user32.lib. >> >> DG >> >> Andreas Freudling wrote: >>> Hi David, >>> >>> did you also install the Platform SDK? If not get a closer look on >>> the following website >>> http://msdn2.microsoft.com/de-de/express/aa700755.aspx. >>> >>> Andy >>> >>> >>> David.L.Goldsmith at noaa.gov schrieb: >>>> Hi! I'm trying to build VTK 5.0.3 in Parallels 3.0 emulating XP Pro >>>> '02 SP2 in Mac OS 10.4.10. I'm using the compiler/linker furnished >>>> with >>>> VC++ 2005 Express Edition Version 8.0 w/ .NET Framework version >>>> 2.0.50727. I downloaded and apparently successfully installed >>>> CMake 2.4 >>>> Patch 7. I tried to use it to build VTK and received the following >>>> error message: >>>> >>>> "CMake Error: the C compiler 'cl' is not able to compile a simple test >>>> program. It fails with the following output: >>>> >>>> ... >>>> >>>> Linking... >>>> LINK: fatal error LNK1104: cannot open file 'user32.lib'" >>>> >>>> I used Windows' search on my C drive - sure enough, no user32.lib >>>> to be >>>> found. What is this file, where am I supposed to have >>>> obtained it from, and why would I not have it when VTK/CMake is >>>> expecting me to? Thanks! >>>> >>>> DG >>>> _______________________________________________ >>>> This is the private VTK discussion list. Please keep messages >>>> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>>> Follow this link to subscribe/unsubscribe: >>>> http://www.vtk.org/mailman/listinfo/vtkusers >>>> >>> >>> >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages >> on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers > From m26404030 at john.petra.ac.id Wed Oct 24 05:29:02 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Wed, 24 Oct 2007 16:29:02 +0700 Subject: [vtkusers] how to create an arra Message-ID: <20071024162902.21mjmdne3kg8kww8@webmail.petra.ac.id> hi all, i want to ask a question.. i want to display several 2d bitmap images , but i dont know whether i should create vtkBMPReader as many as my images or maybe i can create an array of it. as well as another class i need, like vtkImageData, etc.. vtkBMPReader *reader1=vtkBMPReader::New(); reader1->SetFileName("image1.bmp"); reader1->Update(); vtkBMPReader *reader2=vtkBMPReader::New(); reader2->SetFileName("image2.bmp"); reader2->Update(); //etc.. is it possible to create an array of object of vtk class?? thanx for the help.. From mail_di_ale at yahoo.it Wed Oct 24 06:29:34 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Wed, 24 Oct 2007 12:29:34 +0200 (CEST) Subject: [vtkusers] how to create an arra In-Reply-To: <20071024162902.21mjmdne3kg8kww8@webmail.petra.ac.id> Message-ID: <568159.97817.qm@web26405.mail.ukl.yahoo.com> yes it is.. here's what I did, I hope it will help: [...] vtkContourFilter **p_valueExtractor=new vtkContourFilter*[10]; for (int i=1; iSetInputConnection(ImgReader2->GetOutputPort()); [...] } [...] m26404030 at john.petra.ac.id ha scritto: hi all, i want to ask a question.. i want to display several 2d bitmap images , but i dont know whether i should create vtkBMPReader as many as my images or maybe i can create an array of it. as well as another class i need, like vtkImageData, etc.. vtkBMPReader *reader1=vtkBMPReader::New(); reader1->SetFileName("image1.bmp"); reader1->Update(); vtkBMPReader *reader2=vtkBMPReader::New(); reader2->SetFileName("image2.bmp"); reader2->Update(); //etc.. is it possible to create an array of object of vtk class?? thanx for the help.. _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From burak.ozkalayci at ugent.be Wed Oct 24 09:24:44 2007 From: burak.ozkalayci at ugent.be (Burak Ozkalayci) Date: Wed, 24 Oct 2007 15:24:44 +0200 Subject: [vtkusers] vtkContourFilter Message-ID: <471F479C.40702@ugent.be> Dear vtk users, I am new to vtk and I need some help. I need to create an isosurface for a 3D data. I used the paraview to make some simple tests. It is working properly. However for my research interest I have to modify the polygonilization look up table of the vtkContourFilter. However in the debug mode of the paraview I couldn't find where those vertices, edges and faces of the polygon are calculated. Can anyone guide me to that part of the code. Thanks for any help in advance Best -------------- next part -------------- A non-text attachment was scrubbed... Name: burak.ozkalayci.vcf Type: text/x-vcard Size: 285 bytes Desc: not available URL: From m26404030 at john.petra.ac.id Wed Oct 24 10:34:23 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Wed, 24 Oct 2007 21:34:23 +0700 Subject: [vtkusers] Is it possible to clean noise in VTK? In-Reply-To: References: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> Message-ID: <20071024213423.uguomowzy80k840g@webmail.petra.ac.id> i think u can use vtkImageGaussianSmooth, i have tried it with my 2D images and it works..(smoothing process can reduce noise in the image but blur the image also) hope it helps..=p Quoting Pierre Barbier de Reuille : > What do you mean by "cleaning" your data? Even though there is probably a > way to do it, you have to be more precise about what you want to do ! > > Pierre > > On 10/23/07, Iryna Pavlyshak wrote: >> >> Hello!! >> >> My point clouds have to many additional points. Up to now i used >> commercial software and cleaned manually my data before processing in VTK. >> Can i use VTK to do this. >> If somebody have already faced with the same problem, please let me know >> if exist any solution in VTK. >> >> Any advice will be helpful, >> >> Iryna >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> > > > -- > Barbier de Reuille Pierre > From iryna at andrew.cmu.edu Wed Oct 24 12:27:13 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Wed, 24 Oct 2007 12:27:13 -0400 (EDT) Subject: [Fwd: Re: [vtkusers] Is it possible to clean noise in VTK?] Message-ID: <3969.128.237.231.202.1193243233.squirrel@128.237.231.202> >Ok, look here While scanning the certain object, many undesirable points are captured as well. These points don't have any connection to the object.They may come from reflection, from digitalization the support on which the object have been placed.These points may be ambient noise form the sunlight if the scanning is outdoors. So after scanning and importing point cloud (xyz. data or asc. data) to my code for triangulation, filtering..etc, these additional point (noise) disturb the real model of object. There are different software, where you can import point clouds, and clean all that mess manually, as you can see it visually in GUI. I was thinking to create some "box", which would separate points belong to the scanned object form all additional.But every object has its own shape , how can my program distinguish this? Actually i am a little bit confused, as i can't see any answer, as to continue doing this manually in other software packages. hope VTK still can help, Iryna What do you mean by "cleaning" your data? Even though there is probably a > way to do it, you have to be more precise about what you want to do ! > > Pierre > > On 10/23/07, Iryna Pavlyshak wrote: >> >> Hello!! >> >> My point clouds have to many additional points. Up to now i used >> commercial software and cleaned manually my data before processing in >> VTK. Can i use VTK to do this. If somebody have already faced with the >> same problem, please let me know if exist any solution in VTK. >> >> Any advice will be helpful, >> >> Iryna >> >> _______________________________________________ This is the private VTK >> discussion list. Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to >> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers >> >> > > > -- Barbier de Reuille Pierre > From krunk7 at gmail.com Wed Oct 24 12:32:21 2007 From: krunk7 at gmail.com (James Kyle) Date: Wed, 24 Oct 2007 09:32:21 -0700 Subject: [vtkusers] Sphere with reticle Message-ID: I've been struggling with this for a while. I need to make a sphere with reticle. I have no idea how to do this in vtk (sphere is easy, reticle...stuck). I've also tried making my own texture map in gimp, but it never comes out just right. Thanks for any help in advance, James Kyle From iryna at andrew.cmu.edu Wed Oct 24 13:23:38 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Wed, 24 Oct 2007 13:23:38 -0400 (EDT) Subject: [vtkusers] Is it possible to clean noise in VTK? In-Reply-To: <20071024213423.uguomowzy80k840g@webmail.petra.ac.id> References: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> <20071024213423.uguomowzy80k840g@webmail.petra.ac.id> Message-ID: <4221.128.237.231.202.1193246618.squirrel@128.237.231.202> >thanks for advice. Gaussian filter is really very good,but not in my case, as it reduces noise in 2D signals, so it works with pixels. I process 3D image. But there is no even any voxels. My data is a set of points(every point has x, y, z coordinates), so it is 3d array. These points form the surface of the image. But some of them are undesirable, which come from air for example, them i want to delete. Iryna i think u can use vtkImageGaussianSmooth, i have tried it with my 2D > images and it works..(smoothing process can reduce noise in the image but > blur the image also) > > hope it helps..=p > > > Quoting Pierre Barbier de Reuille : > >> What do you mean by "cleaning" your data? Even though there is probably >> a way to do it, you have to be more precise about what you want to do ! >> >> Pierre >> >> On 10/23/07, Iryna Pavlyshak wrote: >>> >>> Hello!! >>> >>> My point clouds have to many additional points. Up to now i used >>> commercial software and cleaned manually my data before processing in >>> VTK. Can i use VTK to do this. If somebody have already faced with the >>> same problem, please let me know if exist any solution in VTK. >>> >>> Any advice will be helpful, >>> >>> Iryna >>> >>> _______________________________________________ This is the private >>> VTK discussion list. Please keep messages on-topic. Check the FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to >>> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers >>> >>> >> >> >> -- Barbier de Reuille Pierre >> > > > > From m26404030 at john.petra.ac.id Wed Oct 24 12:36:19 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Wed, 24 Oct 2007 23:36:19 +0700 Subject: [vtkusers] Is it possible to clean noise in VTK? Message-ID: <20071024233619.5vyhwyd4w00488ww@webmail.petra.ac.id> i think u can use vtkImageGaussianSmooth, i have tried it with my 2D images and it works..(smoothing process can reduce noise in the image but blur the image also) hope it helps..=p Quoting Pierre Barbier de Reuille : > What do you mean by "cleaning" your data? Even though there is probably a > way to do it, you have to be more precise about what you want to do ! > > Pierre > > On 10/23/07, Iryna Pavlyshak wrote: >> >> Hello!! >> >> My point clouds have to many additional points. Up to now i used >> commercial software and cleaned manually my data before processing in VTK. >> Can i use VTK to do this. >> If somebody have already faced with the same problem, please let me know >> if exist any solution in VTK. >> >> Any advice will be helpful, >> >> Iryna >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> > > > -- > Barbier de Reuille Pierre > _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ----- End forwarded message ----- From m26404030 at john.petra.ac.id Wed Oct 24 13:04:13 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Thu, 25 Oct 2007 00:04:13 +0700 Subject: [Fwd: Re: [vtkusers] Is it possible to clean noise in VTK?] In-Reply-To: <3969.128.237.231.202.1193243233.squirrel@128.237.231.202> References: <3969.128.237.231.202.1193243233.squirrel@128.237.231.202> Message-ID: <20071025000413.4hhhbna2gwwgsg04@webmail.petra.ac.id> i think u can use vtkImageGaussianSmooth, i have tried it with my 2D images and it works..(smoothing process can reduce noise in the image but blur the image also) hope it helps..=p Quoting Iryna Pavlyshak : > >> Ok, look here > While scanning the certain object, many undesirable points are > captured as well. These points don't have any connection to the > object.They may come from reflection, from digitalization the > support on which the object have been placed.These points may be > ambient noise form the sunlight if the scanning is outdoors. > So after scanning and importing point cloud (xyz. data or asc. data) > to my code for triangulation, filtering..etc, these additional > point (noise) disturb the real model of object. > There are different software, where you can import point clouds, and > clean all that mess manually, as you can see it visually in GUI. > I was thinking to create some "box", which would separate points > belong to the scanned object form all additional.But every object > has its own shape , how can my program distinguish this? > Actually i am a little bit confused, as i can't see any answer, as > to continue doing this manually in other software packages. > > hope VTK still can help, > > Iryna > > > > > > What do you mean by "cleaning" your data? Even though there is probably a >> way to do it, you have to be more precise about what you want to do ! >> >> Pierre >> >> On 10/23/07, Iryna Pavlyshak wrote: >>> >>> Hello!! >>> >>> My point clouds have to many additional points. Up to now i used >>> commercial software and cleaned manually my data before processing in >>> VTK. Can i use VTK to do this. If somebody have already faced with the >>> same problem, please let me know if exist any solution in VTK. >>> >>> Any advice will be helpful, >>> >>> Iryna >>> >>> _______________________________________________ This is the private VTK >>> discussion list. Please keep messages on-topic. Check the FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to >>> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers >>> >>> >> >> >> -- Barbier de Reuille Pierre >> > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From nickhuning at hotmail.com Wed Oct 24 13:39:14 2007 From: nickhuning at hotmail.com (hu ning) Date: Wed, 24 Oct 2007 17:39:14 +0000 Subject: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows Message-ID: Hi, I wonder if anyone has experience with vtkCallbackCommand on 64-bit windows. I had an application which involves vtkCallbackCommand with vtkImageViewer, and it works just fine on 32-bit windows. After I moved to 64bits windows (Visual Studio 8 x64), the callback is broken and no matter what I do on the vtk rendering window, the callback don't catch anything. I suspect there is something wrong with the GetWindowLongPtr() in the vtkWin32RenderWindowInteractor class because of long/ptr type changes on 64 bit, but I am not a windows guy and couldnot dig into the problem. Can anyone here kindly give me some advice? The way I use vtkCallbackCommand is very standard, just like what is shown in those examples. The vtk version is 5.0.3 release. Thanks, Nick _________________________________________________________________ R U Ready for Windows Live Messenger Beta 8.5? Try it today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickhuning at hotmail.com Wed Oct 24 13:39:53 2007 From: nickhuning at hotmail.com (hu ning) Date: Wed, 24 Oct 2007 17:39:53 +0000 Subject: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows Message-ID: Hi, I wonder if anyone has experience with vtkCallbackCommand on 64-bit windows. I had an application which involves vtkCallbackCommand with vtkImageViewer, and it works just fine on 32-bit windows. After I moved to 64bits windows (Visual Studio 8 x64), the callback is broken and no matter what I do on the vtk rendering window, the callback don't catch anything. I suspect there is something wrong with the GetWindowLongPtr() in the vtkWin32RenderWindowInteractor class because of long/ptr type changes on 64 bit, but I am not a windows guy and couldnot dig into the problem. Can anyone here kindly give me some advice? The way I use vtkCallbackCommand is very standard, just like what is shown in those examples. The vtk version is 5.0.3 release. Thanks, Nick _________________________________________________________________ Are you ready for Windows Live Messenger Beta 8.5 ? Get the latest for free today! http://entertainment.sympatico.msn.ca/WindowsLiveMessenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From mcoursolle at rogue-research.com Wed Oct 24 14:13:08 2007 From: mcoursolle at rogue-research.com (Mathieu Coursolle) Date: Wed, 24 Oct 2007 14:13:08 -0400 Subject: [vtkusers] Is it possible to clean noise in VTK? In-Reply-To: <4221.128.237.231.202.1193246618.squirrel@128.237.231.202> References: <3773.128.237.231.202.1193157796.squirrel@128.237.231.202> <20071024213423.uguomowzy80k840g@webmail.petra.ac.id> <4221.128.237.231.202.1193246618.squirrel@128.237.231.202> Message-ID: <20071024181308.1387215957@smtp1.sympatico.ca> Hi, I am experiencing with it right now, but could you use vtkSmoothPolyDataFilter? As any body used it for that purpose? If I am right, you have outlier points which are not part of your structured, and would like to remove them? Mathieu >>thanks for advice. > > Gaussian filter is really very good,but not in my case, as it reduces >noise in 2D signals, so it works with pixels. >I process 3D image. But there is no even any voxels. My data is a set of >points(every point has x, y, z coordinates), so it is 3d array. These >points form the surface of the image. But some of them are undesirable, >which come from air for example, them i want to delete. > > >Iryna > > > > > > i think u can use vtkImageGaussianSmooth, i have tried it with my 2D >> images and it works..(smoothing process can reduce noise in the image but >> blur the image also) >> >> hope it helps..=p >> >> >> Quoting Pierre Barbier de Reuille : >> >>> What do you mean by "cleaning" your data? Even though there is probably >>> a way to do it, you have to be more precise about what you want to do ! >>> >>> Pierre >>> >>> On 10/23/07, Iryna Pavlyshak wrote: >>>> >>>> Hello!! >>>> >>>> My point clouds have to many additional points. Up to now i used >>>> commercial software and cleaned manually my data before processing in >>>> VTK. Can i use VTK to do this. If somebody have already faced with the >>>> same problem, please let me know if exist any solution in VTK. >>>> >>>> Any advice will be helpful, >>>> >>>> Iryna >>>> >>>> _______________________________________________ This is the private >>>> VTK discussion list. Please keep messages on-topic. Check the FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to >>>> subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers >>>> >>>> >>> >>> >>> -- Barbier de Reuille Pierre >>> >> >> >> >> > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/ >VTK_FAQ >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > From david.cole at kitware.com Wed Oct 24 14:16:15 2007 From: david.cole at kitware.com (David Cole) Date: Wed, 24 Oct 2007 14:16:15 -0400 Subject: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows In-Reply-To: References: Message-ID: Are you using VTK 5.0 or VTK from CVS HEAD...? If you are using 5.0, try updating to CVS HEAD -- this nightly build from today demonstrates that CVS HEAD of VTK passes the normal C++ test suite: http://www.vtk.org/Testing/Sites/redwall.kitware/Win64-Vista-vs8-Release/20071024-0300-Nightly/Test.html HTH, David Cole Kitware, Inc. On 10/24/07, hu ning wrote: > > Hi, > > I wonder if anyone has experience with vtkCallbackCommand on 64-bit > windows. > > I had an application which involves vtkCallbackCommand with vtkImageViewer, > and it works just fine on 32-bit windows. After I moved to 64bits windows > (Visual Studio 8 x64), the callback is broken and no matter what I do on the > vtk rendering window, the callback don't catch anything. > > I suspect there is something wrong with the GetWindowLongPtr() in the > vtkWin32RenderWindowInteractor class because of long/ptr type changes on 64 > bit, but I am not a windows guy and couldnot dig into the problem. > > Can anyone here kindly give me some advice? The way I use > vtkCallbackCommand is very standard, just like what is shown in those > examples. The vtk version is 5.0.3 release. > > Thanks, > > Nick > ________________________________ > R U Ready for Windows Live Messenger Beta 8.5? Try it today! > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From anka at bic.mni.mcgill.ca Wed Oct 24 14:33:38 2007 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Wed, 24 Oct 2007 14:33:38 -0400 Subject: [vtkusers] Sphere with reticle In-Reply-To: References: Message-ID: <471F9002.6010406@bic.mni.mcgill.ca> I'm not quite sure how you want to place a reticle. Maybe look at the code of vtkBoxWidget? Anka James Kyle wrote: > I've been struggling with this for a while. I need to make a sphere > with reticle. I have no idea how to do this in vtk (sphere is easy, > reticle...stuck). I've also tried making my own texture map in gimp, > but it never comes out just right. > > Thanks for any help in advance, > > James Kyle > > _______________________________________________ > This is the private VTK discussion list. Please keep messages > on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From oraciotaglia at tiscali.it Wed Oct 24 14:39:43 2007 From: oraciotaglia at tiscali.it (Bob) Date: Wed, 24 Oct 2007 20:39:43 +0200 Subject: [vtkusers] Check for self-intersecting mesh Message-ID: <385955950710241139ud56646bu535ba74939c9fc6d@mail.gmail.com> Hi all, I'd like to know if there is some hope to detect self-intersecting meshes (i.e. find mesh cells crossing each other) using VTK native algorithms. TIA, Bob From sean at rogue-research.com Wed Oct 24 16:39:39 2007 From: sean at rogue-research.com (Sean McBride) Date: Wed, 24 Oct 2007 16:39:39 -0400 Subject: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows In-Reply-To: References: Message-ID: <20071024203939.1283865833@smtp1.sympatico.ca> On 10/24/07 2:16 PM, David Cole said: >Are you using VTK 5.0 or VTK from CVS HEAD...? He's using the 5.0.3 release... you missed it. :) >If you are using 5.0, try updating to CVS HEAD -- this nightly build >from today demonstrates that CVS HEAD of VTK passes the normal C++ >test suite: >http://www.vtk.org/Testing/Sites/redwall.kitware/Win64-Vista-vs8-Release/ >20071024-0300-Nightly/Test.html That's good news. I take it someone is working on 64 bit stuff? I'm interested to know if someone is working on fixing all the warnings about size conversions. The same dashboard you link to above has our friend "maximum number of reported warnings or errors has been reached!!!", as I'm sure you know. :) A 64 bit Mac OS X build also has gobs of these warnings. -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From pppebay at sandia.gov Wed Oct 24 17:28:32 2007 From: pppebay at sandia.gov (Philippe P. Pebay) Date: Wed, 24 Oct 2007 14:28:32 -0700 Subject: [vtkusers] VTK_QUADRATIC_* elements Message-ID: <471FB900.7000503@sandia.gov> I have recently fixed bugs in vtkQuadratic*.cxx files, but have only been able to test for tetrahedral (VTK_QUADRATIC_TETRA) and hexahedral (VTK_QUADRATIC_HEXAHEDRON) elements, by lack of test data with other element types. Therefore, I only checked the fixes for the 2 latter types of elements into VTK/PV. In order to proceed with the other element types, I am looking for one or more datasets (in particular with feature-rich solution fields) that contain the following element types: VTK_QUADRATIC_TRIANGLE = 22, VTK_QUADRATIC_QUAD = 23, VTK_QUADRATIC_WEDGE = 26, VTK_QUADRATIC_PYRAMID = 27, so that I can verify that the fixes indeed work. Any such data set would be greatly appreciated -- and will shorten the time before the fixed code will be checked in. Thanks Philippe -- Philippe P. Pebay Sandia National Laboratories http://www.ca.sandia.gov/crf/staff/staffPage.php?sid=pppebay From krunk7 at gmail.com Wed Oct 24 18:25:57 2007 From: krunk7 at gmail.com (James Kyle) Date: Wed, 24 Oct 2007 15:25:57 -0700 Subject: [vtkusers] Sphere with reticle In-Reply-To: <471F9002.6010406@bic.mni.mcgill.ca> References: <471F9002.6010406@bic.mni.mcgill.ca> Message-ID: <505B53B9-512C-46E4-BD56-E135DAC47A5B@gmail.com> Thank you for your reply, Here's the idea, I have a plain sphere being rendered. The sphere will move on 6 DoF (got some input for that). What I need is some sort of visual indicator that the sphere has moved. I was thinking a simple black cross hairs on the sphere surface would do the trick. I checked out the vtkBoxWidget, but it looks a bit overkill with emphasis on user manipulation and interaction. I've attached a file to show the simplicity of what I'm trying to describe...cept the attachment is 2d image rather then 3D sphere. -------------- next part -------------- A non-text attachment was scrubbed... Name: images.jpg Type: image/jpeg Size: 2674 bytes Desc: not available URL: -------------- next part -------------- -james On Oct 24, 2007, at 11:33 AM, Anka Kochanowska wrote: > I'm not quite sure how you want to place a reticle. Maybe look at > the code of vtkBoxWidget? > Anka > > James Kyle wrote: > >> I've been struggling with this for a while. I need to make a >> sphere with reticle. I have no idea how to do this in vtk (sphere >> is easy, reticle...stuck). I've also tried making my own texture >> map in gimp, but it never comes out just right. >> >> Thanks for any help in advance, >> >> James Kyle >> >> _______________________________________________ >> This is the private VTK discussion list. Please keep messages on- >> topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> From joshua_pena at comcast.net Thu Oct 25 00:39:41 2007 From: joshua_pena at comcast.net (Joshua Pena) Date: Wed, 24 Oct 2007 21:39:41 -0700 Subject: [vtkusers] VTK and Visual c++ 2005 Message-ID: <47201E0D.7000901@comcast.net> I am trying to get VTK to work with Visual C++ 2005 express edition (free). I have successfully built the vtk solution file after running cmake. My question now is where do i go from here? How can i compile code using visual c++. When i try to compile code with includes lines like #include "vtkSphereSource.h", it just gives me an error saying no such file. Am i suppose to move these header files into the include directory in the visual c++ directory? Any help would be appreciated. From davemania24 at yahoo.com Thu Oct 25 01:19:14 2007 From: davemania24 at yahoo.com (Dave C) Date: Wed, 24 Oct 2007 22:19:14 -0700 (PDT) Subject: [vtkusers] Java VTK API Message-ID: <678266.11648.qm@web57101.mail.re3.yahoo.com> Hi I was wondering if anyone could point me to a VTK Java API if it exists or a good resource for developing Java VTK ? Thnaks, Dave __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From long353 at msn.com Thu Oct 25 01:30:43 2007 From: long353 at msn.com (jim yu) Date: Thu, 25 Oct 2007 17:30:43 +1200 Subject: [vtkusers] manage points with two properties Message-ID: hi guys i want to display point cloud at each point of which there are two properties. i want to use one property to color the point and another, as radius, to draw a sphere, which center at the point. does anybody know how to implement it ? many thanks jim _________________________________________________________________ Connect to the next generation of MSN Messenger? http://imagine-msn.com/messenger/launch80/default.aspx?locale=en-us&source=wlmailtagline -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua_pena at comcast.net Thu Oct 25 04:34:03 2007 From: joshua_pena at comcast.net (Joshua Pena) Date: Thu, 25 Oct 2007 01:34:03 -0700 Subject: [vtkusers] lnk2019 errors Message-ID: <472054FB.7080001@comcast.net> I am trying to get VTK to work with visual studio 2003 .net but i am getting some lnk2019 error trying to compile the following example program. #include "vtkConeSource.h" #include "vtkPolyDataMapper.h" #include "vtkRenderWindow.h" #include "vtkCamera.h" #include "vtkActor.h" #include "vtkRenderer.h" int main() { vtkConeSource *cone = vtkConeSource::New(); cone->SetHeight( 3.0 ); cone->SetRadius( 1.0 ); cone->SetResolution( 100 ); vtkPolyDataMapper *coneMapper = vtkPolyDataMapper::New(); coneMapper->SetInputConnection( cone->GetOutputPort() ); vtkActor *coneActor = vtkActor::New(); coneActor->SetMapper( coneMapper ); vtkRenderer *ren1= vtkRenderer::New(); ren1->AddActor( coneActor ); ren1->SetBackground( 0.1, 0.2, 0.4 ); vtkRenderWindow *renWin = vtkRenderWindow::New(); renWin->AddRenderer( ren1 ); renWin->SetSize( 300, 300 ); int i; for (i = 0; i < 360; ++i) { renWin->Render(); ren1->GetActiveCamera()->Azimuth( 1 ); } cone->Delete(); coneMapper->Delete(); coneActor->Delete(); ren1->Delete(); renWin->Delete(); return 0; } I get 9 different lnk2019 errors. Here is an example of one of them? test1 error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Azimuth(double)" (__imp_?Azimuth at vtkCamera@@QAEXN at Z) referenced in function _main Would appreciate any help, i have been extremely frustrated trying to get VTK to work right for me. From imikejackson at gmail.com Thu Oct 25 08:11:13 2007 From: imikejackson at gmail.com (Mike Jackson) Date: Thu, 25 Oct 2007 08:11:13 -0400 Subject: [vtkusers] Java VTK API In-Reply-To: <678266.11648.qm@web57101.mail.re3.yahoo.com> References: <678266.11648.qm@web57101.mail.re3.yahoo.com> Message-ID: <9CCFE915-06FE-4D2B-8F56-3A6CB5002FA2@gmail.com> Build vtk with the Java wrappings enabled. That will enable vtk to be used through java. -- Mike Jackson Senior Research Engineer Innovative Management & Technology Services On Oct 25, 2007, at 1:19 AM, Dave C wrote: > Hi > > I was wondering if anyone could point me to a VTK Java API if it > exists or a good resource for developing Java VTK ? > > Thnaks, Dave > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/ > Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From giroux at geo.polymtl.ca Thu Oct 25 08:15:37 2007 From: giroux at geo.polymtl.ca (Bernard Giroux) Date: Thu, 25 Oct 2007 08:15:37 -0400 Subject: [vtkusers] Java VTK API In-Reply-To: <9CCFE915-06FE-4D2B-8F56-3A6CB5002FA2@gmail.com> References: <678266.11648.qm@web57101.mail.re3.yahoo.com> <9CCFE915-06FE-4D2B-8F56-3A6CB5002FA2@gmail.com> Message-ID: <472088E9.30204@geo.polymtl.ca> Mike Jackson a ?crit : > Build vtk with the Java wrappings enabled. That will enable vtk to be > used through java. Hi Dave, Note that you will have to compile the (minimalist) java doc yourself afterwards. Regards > -- > Mike Jackson Senior Research Engineer > Innovative Management & Technology Services > > > On Oct 25, 2007, at 1:19 AM, Dave C wrote: > >> Hi >> >> I was wondering if anyone could point me to a VTK Java API if it >> exists or a good resource for developing Java VTK ? >> >> Thnaks, Dave -- Bernard Giroux, ing., Ph.D. Chercheur http://geo.polymtl.ca/~giroux -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3253 bytes Desc: S/MIME Cryptographic Signature URL: From trshash at gmail.com Thu Oct 25 09:15:14 2007 From: trshash at gmail.com (T.R.Shashwath) Date: Thu, 25 Oct 2007 18:45:14 +0530 Subject: [vtkusers] Maximum and minimum intensity blend in vtkVolumeTextureMapper3D Message-ID: <200710251845.14260.trshash84@gmail.com> Hello everyone, A slightly unrelated line of inquiry led me to a feature request on the tracker about using GL_EXT_blend_minmax in the opengl 3D texture mapper (bug id 4824). I took the file posted in that report and compiled VTK with it. It appears to work after a fashion (I had to change two calls to vtkgl::BlendEquation to vtkgl::BlendEquationEXT). Obviously, this still needs work, but I was wondering if anyone else had tried this out. Right now, we are using the raycast mapper's MIP function, but with hardware available, I'd like to use that too. I've tried this out on Windows, and I'm in the process of compiling and creating some tests in Linux also. Regards, Shashwath From marcelo.amati at hotmail.com Thu Oct 25 09:11:31 2007 From: marcelo.amati at hotmail.com (Marcelo Amati) Date: Thu, 25 Oct 2007 13:11:31 +0000 Subject: [vtkusers] Illumination problem in polydata actor generated with vtkOBJReader Message-ID: Hi all, I can`t see with good illumination 2 actors in the same renderer: Actor 1: actor generated from a polydata created with vtkMarchingCubes. Actor 2: actor generated from a polydata read from a wavefront file (.obj read with vtkOBJReader). When I put all in the same renderer the actor 2 is shown too dark. I can see only the actor 1! In order to solve this, I tried 2 approaches without success: Approach 1: Use of vtkLight When I use vtkLight, the actor 2 can be seen, but the actor 1 becomes too clean. Approach 2: Use of vtkPolydataNormals in polydata of actor 2 When I use vtkPolydataNormals filter in polydata of actor 2, I can see both correctly in the same renderer. However the resulting polydata loses a lot of polygons! The polygons mesh becomes too bad... Does someone know how to solve this problem??? Thanks! Marcelo _________________________________________________________________ Discover the new Windows Vista http://search.msn.com/results.aspx?q=windows+vista&mkt=en-US&form=QBRE -------------- next part -------------- An HTML attachment was scrubbed... URL: From trshash at gmail.com Thu Oct 25 09:37:01 2007 From: trshash at gmail.com (T.R.Shashwath) Date: Thu, 25 Oct 2007 19:07:01 +0530 Subject: [vtkusers] VTK and Visual c++ 2005 In-Reply-To: <47201E0D.7000901@comcast.net> References: <47201E0D.7000901@comcast.net> Message-ID: <200710251907.01176.trshash84@gmail.com> On Thursday 25 Oct 2007 10:09:41 am Joshua Pena wrote: > I am trying to get VTK to work with Visual C++ 2005 express edition > (free). I have successfully built the vtk solution file after running > cmake. My question now is where do i go from here? How can i compile > code using visual c++. When i try to compile code with includes lines > like #include "vtkSphereSource.h", it just gives me an error saying no > such file. Am i suppose to move these header files into the include > directory in the visual c++ directory? Any help would be appreciated. > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers You'll need to put them into Visual Studio's search path. I think the option is in Tools->Options->VC directories or something similar. Just make that point to vtk's install path. Remember to do the same for the libraries too, and to have the dlls (/path/to/vtk-install/bin) in the PATH environment variable (or in the directory you're running your program from. Shash From anka at bic.mni.mcgill.ca Thu Oct 25 09:20:31 2007 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Thu, 25 Oct 2007 09:20:31 -0400 Subject: [vtkusers] Sphere with reticle In-Reply-To: <505B53B9-512C-46E4-BD56-E135DAC47A5B@gmail.com> References: <471F9002.6010406@bic.mni.mcgill.ca> <505B53B9-512C-46E4-BD56-E135DAC47A5B@gmail.com> Message-ID: <4720981F.7020206@bic.mni.mcgill.ca> Have you tried vtkGlyph3D? Anka James Kyle wrote: > Thank you for your reply, > > Here's the idea, I have a plain sphere being rendered. The sphere > will move on 6 DoF (got some input for that). What I need is some > sort of visual indicator that the sphere has moved. I was thinking a > simple black cross hairs on the sphere surface would do the trick. > > I checked out the vtkBoxWidget, but it looks a bit overkill with > emphasis on user manipulation and interaction. > > I've attached a file to show the simplicity of what I'm trying to > describe...cept the attachment is 2d image rather then 3D sphere. > > > > ------------------------------------------------------------------------ > > -james > On Oct 24, 2007, at 11:33 AM, Anka Kochanowska wrote: > >> I'm not quite sure how you want to place a reticle. Maybe look at >> the code of vtkBoxWidget? >> Anka >> >> James Kyle wrote: >> >>> I've been struggling with this for a while. I need to make a >>> sphere with reticle. I have no idea how to do this in vtk (sphere >>> is easy, reticle...stuck). I've also tried making my own texture >>> map in gimp, but it never comes out just right. >>> >>> Thanks for any help in advance, >>> >>> James Kyle >>> >>> _______________________________________________ >>> This is the private VTK discussion list. Please keep messages on- >>> topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> Follow this link to subscribe/unsubscribe: >>> http://www.vtk.org/mailman/listinfo/vtkusers >>> > From krunk7 at gmail.com Thu Oct 25 09:44:44 2007 From: krunk7 at gmail.com (James Kyle) Date: Thu, 25 Oct 2007 06:44:44 -0700 Subject: [vtkusers] Sphere with reticle In-Reply-To: <4720981F.7020206@bic.mni.mcgill.ca> References: <471F9002.6010406@bic.mni.mcgill.ca> <505B53B9-512C-46E4-BD56-E135DAC47A5B@gmail.com> <4720981F.7020206@bic.mni.mcgill.ca> Message-ID: <118C78E7-9BBE-4734-9DCB-5A66B79F6EA3@gmail.com> I've gotten some good leads to work on today: On Oct 25, 2007, at 6:20 AM, Anka Kochanowska wrote: > Have you tried vtkGlyph3D? > Anka > I'm going to look into this one today. > Wouldn't laying a texture on the sphere do the job? this was my first idea as it seemed the most straight forward. I've had problems making a texture in gimp/photoshop that looked right when applied. I'm pretty sure it would be trivial if I knew what I was doing with 3D apps like blender, but I do not. > Create a separate actor (with poly data input) to draw the two > circles around the sphere. I'm going to give this approach a run today as well. From nickhuning at hotmail.com Thu Oct 25 10:10:29 2007 From: nickhuning at hotmail.com (hu ning) Date: Thu, 25 Oct 2007 14:10:29 +0000 Subject: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows Message-ID: I tried nightly build and it's been fixed, Thank you. Just for the record in case someone ask the same question in future. The vtkWin32RenderWindowInteractor in release 5.0.0 has a problem to catch any mouse event on 64 bits windows. THis problem has been reported as issue 0003227: "vtkRenderWindowsInteractor doesnt work on Windows x64". It's been fixed and the changes can be tracked with 1.100 revision of vtkWin32RenderWindowInteractor in cvs. Nick > Date: Wed, 24 Oct 2007 14:16:15 -0400> From: david.cole at kitware.com> To: nickhuning at hotmail.com> Subject: Re: [vtkusers] vtkCallbackCommand doesn't work on 64bits Windows> CC: vtkusers at vtk.org> > Are you using VTK 5.0 or VTK from CVS HEAD...?> > If you are using 5.0, try updating to CVS HEAD -- this nightly build> from today demonstrates that CVS HEAD of VTK passes the normal C++> test suite:> http://www.vtk.org/Testing/Sites/redwall.kitware/Win64-Vista-vs8-Release/20071024-0300-Nightly/Test.html> > > HTH,> David Cole> Kitware, Inc.> > > On 10/24/07, hu ning wrote:> >> > Hi,> >> > I wonder if anyone has experience with vtkCallbackCommand on 64-bit> > windows.> >> > I had an application which involves vtkCallbackCommand with vtkImageViewer,> > and it works just fine on 32-bit windows. After I moved to 64bits windows> > (Visual Studio 8 x64), the callback is broken and no matter what I do on the> > vtk rendering window, the callback don't catch anything.> >> > I suspect there is something wrong with the GetWindowLongPtr() in the> > vtkWin32RenderWindowInteractor class because of long/ptr type changes on 64> > bit, but I am not a windows guy and couldnot dig into the problem.> >> > Can anyone here kindly give me some advice? The way I use> > vtkCallbackCommand is very standard, just like what is shown in those> > examples. The vtk version is 5.0.3 release.> >> > Thanks,> >> > Nick> > ________________________________> > R U Ready for Windows Live Messenger Beta 8.5? Try it today!> > _______________________________________________> > This is the private VTK discussion list.> > Please keep messages on-topic. Check the FAQ at:> > http://www.vtk.org/Wiki/VTK_FAQ> > Follow this link to subscribe/unsubscribe:> > http://www.vtk.org/mailman/listinfo/vtkusers> >> > _________________________________________________________________ Have fun while connecting on Messenger! Click here to learn more. http://entertainment.sympatico.msn.ca/WindowsLiveMessenger -------------- next part -------------- An HTML attachment was scrubbed... URL: From M.Salman at surrey.ac.uk Thu Oct 25 10:57:27 2007 From: M.Salman at surrey.ac.uk (M.Salman at surrey.ac.uk) Date: Thu, 25 Oct 2007 15:57:27 +0100 Subject: [vtkusers] are "Point Sampled Geometry" based models supported in VTK! Message-ID: <6A5F24CF338E23438ABBE3392E35AFBDBE0D5B@EVS-EC1-NODE1.surrey.ac.uk> Hi All, I have been using VTK to work with 3D triangle based models.In literature, I have come across terms "point-based models" or "point-sampled geometry" where surface is described by a set of sample points without any further topological information.Is it the raw range data received from 3D scanners or something different. my Questions: 1. Does VTK have support (reader,writer etc.) for this representation of 3D surfaces. 2. Which file formats are used normally for representing point-sampled geometry. Do we use same formats as .vtp,.ply etc. 3. Can somebody point out to some models in point-sampled geomtry? Best Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From jon.johansson at ualberta.ca Thu Oct 25 11:40:08 2007 From: jon.johansson at ualberta.ca (Jon Johansson) Date: Thu, 25 Oct 2007 09:40:08 -0600 Subject: [vtkusers] VolumePro support in VTK 5.1 Message-ID: <00e001c8171d$52dd1490$f8973db0$@johansson@ualberta.ca> Hi, I've built VTK from CVS on 64-bit Windows with VolumePro support and everything seems to work fine - I would like to find an example or two of how to use the VolumePro mapper, if they still exist somewhere. I found a message http://public.kitware.com/pipermail/vtkusers/2001-October/057852.html saying that there is an example in \vtk\contrib\examplesTcl\volProSimple.tcl but the contrib directory isn't in the latest CVS. Do I have to do something special to get it? I found another message http://public.kitware.com/pipermail/vtkusers/2006-March/084155.html saying that VolumePro support was removed in VTK 5.0, so I'm happy to see that it seems to be back in. Can an example or two be resurrected as well? Thanks, Jon. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~?? Jon I Johansson, Ph.D.????????????? * Tel.: (780) 492-9304?? ~~ ~~?? jon.johansson at ualberta.ca?????????? * Fax.: (780) 492-1729?? ~~ ~~?????????????????????????????????????? * Office: G.S.B 323C???? ~~ ~~?? Programmer/Analyst????????? http://sciviz.aict.ualberta.ca?? ~~ ~~??????????????????????????????????????????????????????????????? ~~ ~~?? Research Computing Support?????????????????????????????????? ~~ ~~?? Room 352, General Services Building????????????????????????? ~~ ~~?? Academic Information and Communication Technologies (AICT)?? ~~ ~~?? University of Alberta??????????????????????????????????????? ~~ ~~?? Edmonton, Alberta, CANADA, T6G 2H1?????????????????????????? ~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ! "This? communication?is intended for the use of the recipient to ! ! which? it? is?addressed, and may contain confidential, personal, ! ! and/or? privileged? information.? Please?contact? us immediately ! ! if you are not the? intended? recipient? of? this?communication. ! ! If you are not the? intended? recipient? of? this?communication, ! ! do? not? copy,? distribute,?? or?? take?? action??on?? it.?? Any ! ! communication? received? in? error,? or?subsequent reply, should ! ! be deleted or destroyed."??????????????????????????????????????? ! !------------------------------------------------------------------! From Michael.Knopke at gmx.de Thu Oct 25 11:42:22 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Thu, 25 Oct 2007 17:42:22 +0200 Subject: [vtkusers] Maximum and minimum intensity blend in Message-ID: <000001c8171d$a28b2ea0$4378a8c0@imagesystems.local> Hi Shashwatch, Seems like work on the 3D texture mapper has been stopped, at least no one is interested in MIP blending, don't know why. As I wrote, this file was only meant as an example, because I used it for other stuff too (testing). Also, there was a change in how OpenGL Extensions are called now, so I needed to tweak mine as well. By the way, if you compare hardware MIP and Raycast MIP you'll see a difference in intensity, which is a general problem of this mapper, not only for MIP. (just compare normal VRT, you'll see the same intensity problem) Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From amy.squillacote at kitware.com Thu Oct 25 11:48:31 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Thu, 25 Oct 2007 11:48:31 -0400 Subject: [vtkusers] VolumePro support in VTK 5.1 In-Reply-To: <00e001c8171d$52dd1490$f8973db0$@johansson@ualberta.ca> References: <00e001c8171d$52dd1490$f8973db0$@johansson@ualberta.ca> Message-ID: <4720BACF.7030406@kitware.com> Hi Jon, Take a look at some of the examples in VTK/Examples/VolumeRendering. Replacing the volume mapper in those examples with the vtkVolumeProMapper instead should (mostly) just work. There are also some VolumePro tests in VTK/VolumeRendering/Testing/Tcl. - Amy Jon Johansson wrote: > Hi, > > I've built VTK from CVS on 64-bit Windows with VolumePro support > and everything seems to work fine - I would like to find an > example or two of how to use the VolumePro mapper, if they still > exist somewhere. I found a message > > http://public.kitware.com/pipermail/vtkusers/2001-October/057852.html > > saying that there is an example in > > \vtk\contrib\examplesTcl\volProSimple.tcl > > but the contrib directory isn't in the latest CVS. Do I have to > do something special to get it? > > I found another message > > http://public.kitware.com/pipermail/vtkusers/2006-March/084155.html > > saying that VolumePro support was removed in VTK 5.0, so I'm happy > to see that it seems to be back in. Can an example or two be > resurrected as well? > > Thanks, > Jon. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~~ Jon I Johansson, Ph.D. * Tel.: (780) 492-9304 ~~ > ~~ jon.johansson at ualberta.ca * Fax.: (780) 492-1729 ~~ > ~~ * Office: G.S.B 323C ~~ > ~~ Programmer/Analyst http://sciviz.aict.ualberta.ca ~~ > ~~ ~~ > ~~ Research Computing Support ~~ > ~~ Room 352, General Services Building ~~ > ~~ Academic Information and Communication Technologies (AICT) ~~ > ~~ University of Alberta ~~ > ~~ Edmonton, Alberta, CANADA, T6G 2H1 ~~ > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ! "This communication is intended for the use of the recipient to ! > ! which it is addressed, and may contain confidential, personal, ! > ! and/or privileged information. Please contact us immediately ! > ! if you are not the intended recipient of this communication. ! > ! If you are not the intended recipient of this communication, ! > ! do not copy, distribute, or take action on it. Any ! > ! communication received in error, or subsequent reply, should ! > ! be deleted or destroyed." ! > !------------------------------------------------------------------! > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From rolandgaboury at gmail.com Thu Oct 25 12:58:07 2007 From: rolandgaboury at gmail.com (Roland Gaboury) Date: Thu, 25 Oct 2007 13:58:07 -0300 Subject: [vtkusers] Visualizing Sparse, Structured data in VTK Message-ID: <6531907e0710250958y21773145u4818a9f03796f15@mail.gmail.com> Greetings. I have a set of data which are organized into cylindrical geometry... radial spacing of points is constant. Angular spacing of radials is (mostly) constant. Distance between layers is not necessarily constant, but it can be managed. The problem: As the complexity of the model is increased (radially), the spacing between two radials increases until a threshold is reached, and a new intermediate radial is spawned from the two base radials... and this happens again as the radial threshold is crossed again. This is done to reduce the memory consumed by the model. The challenge: I want to reconstruct these data as a 3D volume. It has been suggested that the data obey a Structured Grid method, but a structured grid implies a data point for each and every point in the structured grid... which means filling in all the intermediate radial data points with some data, presumably interpolating, so that ALL radials are filled. This defeats the purpose of having interpolated radials in the first place, and sucks up potentially a LOT more resources than we'd like to use... and thirdly it represents unnecessary processing that nobody really wants to do. Alternatively, we could compose an unstructured grid from the data, but by the time I read the data, all I have are arrays of X-Y-Z coords for each of the data points, plus the scalar data associated with each point (that's the storage format). Can anyone suggest the most reasonable approach for reconstructing the volume from these data? Roland Gaboury -------------- next part -------------- An HTML attachment was scrubbed... URL: From trshash at gmail.com Thu Oct 25 14:48:29 2007 From: trshash at gmail.com (T.R.Shashwath) Date: Fri, 26 Oct 2007 00:18:29 +0530 Subject: [vtkusers] Maximum and minimum intensity blend in In-Reply-To: <000001c8171d$a28b2ea0$4378a8c0@imagesystems.local> References: <000001c8171d$a28b2ea0$4378a8c0@imagesystems.local> Message-ID: <200710260018.29754.trshash84@gmail.com> On Thursday 25 Oct 2007 9:12:22 pm Michael Knopke wrote: > Hi Shashwatch, > > > > Seems like work on the 3D texture mapper has been stopped, at least no one > is interested in MIP blending, don't know why. > > As I wrote, this file was only meant as an example, because I used it for > other stuff too (testing). Also, there was a change in how OpenGL > Extensions are called now, so I needed to tweak mine as well. > > By the way, if you compare hardware MIP and Raycast MIP you'll see a > difference in intensity, which is a general problem of this mapper, not > only for MIP. (just compare normal VRT, you'll see the same intensity > problem) > > Regards, > > > > Michael Hi Michael, Yes, I had noticed the differences in intensity, but I'd put it down to bad color tables on my part, and never really looked deep into it. Also, I assumed that I'd done something wrong while activating hardware MIP. Maybe we (and other interested people) could pool in a little effort in getting the hardware MIP to work? I want it badly enough that I'm prepared to spend some free time developing it. Regards, Shash From oraciotaglia at tiscali.it Thu Oct 25 17:33:13 2007 From: oraciotaglia at tiscali.it (Bob) Date: Thu, 25 Oct 2007 23:33:13 +0200 Subject: [vtkusers] Self-intersecting meshes Message-ID: <385955950710251433p4a3b5bb4ude3ccd33c6e21b03@mail.gmail.com> Hi all, I'd like to know if there's any hope to detect self-intersecting cells in polydata using VTK native tools, i.e. a way to identify those cells that are "crossing" each other. TIA, Bob From David.Pont at ensisjv.com Thu Oct 25 20:58:30 2007 From: David.Pont at ensisjv.com (David.Pont at ensisjv.com) Date: Fri, 26 Oct 2007 13:58:30 +1300 Subject: [vtkusers] Sphere with reticle In-Reply-To: <505B53B9-512C-46E4-BD56-E135DAC47A5B@gmail.com> Message-ID: James Kyle wrote on 25/10/2007 11:25:57: > Thank you for your reply, > > Here's the idea, I have a plain sphere being rendered. The sphere > will move on 6 DoF (got some input for that). What I need is some > sort of visual indicator that the sphere has moved. I was thinking a > simple black cross hairs on the sphere surface would do the trick. > > I checked out the vtkBoxWidget, but it looks a bit overkill with > emphasis on user manipulation and interaction. > > I've attached a file to show the simplicity of what I'm trying to > describe...cept the attachment is 2d image rather then 3D sphere. How about a sphere rendered with transparency (say opacity 0.2), then polydata with 2 (or 3) lines inside crossing at the sphere midpoint? Could increase line width or use tube filter to give the lines more weight. This would also have the benefit of not obscuring your main dataset too much, and avoids creating and mapping textures. Dave P > > > [image removed] -james > On Oct 24, 2007, at 11:33 AM, Anka Kochanowska wrote: > > > I'm not quite sure how you want to place a reticle. Maybe look at > > the code of vtkBoxWidget? > > Anka > > > > James Kyle wrote: > > > >> I've been struggling with this for a while. I need to make a > >> sphere with reticle. I have no idea how to do this in vtk (sphere > >> is easy, reticle...stuck). I've also tried making my own texture > >> map in gimp, but it never comes out just right. > >> > >> Thanks for any help in advance, > >> > >> James Kyle > >> > >> _______________________________________________ > >> This is the private VTK discussion list. Please keep messages on- > >> topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > >> Follow this link to subscribe/unsubscribe: > >> http://www.vtk.org/mailman/listinfo/vtkusers > >> > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From David.Pont at ensisjv.com Thu Oct 25 21:04:44 2007 From: David.Pont at ensisjv.com (David.Pont at ensisjv.com) Date: Fri, 26 Oct 2007 14:04:44 +1300 Subject: [vtkusers] Visualizing Sparse, Structured data in VTK In-Reply-To: <6531907e0710250958y21773145u4818a9f03796f15@mail.gmail.com> Message-ID: "Roland Gaboury" wrote on 26/10/2007 05:58:07: > Greetings. I have a set of data which are organized into > cylindrical geometry... radial spacing of points is constant. > Angular spacing of radials is (mostly) constant. Distance between > layers is not necessarily constant, but it can be managed. > > The problem: As the complexity of the model is increased > (radially), the spacing between two radials increases until a > threshold is reached, and a new intermediate radial is spawned from > the two base radials... and this happens again as the radial > threshold is crossed again. This is done to reduce the memory > consumed by the model. > > The challenge: I want to reconstruct these data as a 3D volume. It > has been suggested that the data obey a Structured Grid method, but > a structured grid implies a data point for each and every point in > the structured grid... which means filling in all the intermediate > radial data points with some data, presumably interpolating, so that > ALL radials are filled. This defeats the purpose of having > interpolated radials in the first place, and sucks up potentially a > LOT more resources than we'd like to use... and thirdly it > represents unnecessary processing that nobody really wants to do. > > Alternatively, we could compose an unstructured grid from the data, > but by the time I read the data, all I have are arrays of X-Y-Z > coords for each of the data points, plus the scalar data associated > with each point (that's the storage format). Can anyone suggest the > most reasonable approach for reconstructing the volume from these data? > > Roland Gaboury_______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk. > org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers Hi Roland, I have processed datasets very much like this (longitudinal series of tree stem cross sections) and unstructured grid did it for me by creating hexahedra (and 'wedges' if all radial strips meet at the 'midline'). But you seem to be saying you dont have connectivity information? can you access this when reading? it seems like it should be known... regards Dave P -------------- next part -------------- An HTML attachment was scrubbed... URL: From joshua_pena at comcast.net Thu Oct 25 21:08:59 2007 From: joshua_pena at comcast.net (Joshua Pena) Date: Thu, 25 Oct 2007 18:08:59 -0700 Subject: [vtkusers] lnk1104 error bin.obj with vtk Message-ID: <47213E2B.2090406@comcast.net> So ive built the vtk solution file for visual studio 2003 .net and ive pointed to the proper directories in the project settings but i am getting one error. It says: fatal error LNK1104: cannot open file 'C:\VTK\bin.obj This is the only error i am getting. I feel like i am so close to getting vtk programs to compile. Anyone through me any solutions to this error? Thanks in advance. Josh From conra2004 at yahoo.com Fri Oct 26 00:20:23 2007 From: conra2004 at yahoo.com (yadin Bocuma Rivas) Date: Thu, 25 Oct 2007 21:20:23 -0700 (PDT) Subject: [vtkusers] plot intensity map Message-ID: <65257.36306.qm@web51306.mail.re2.yahoo.com> hi! i am planning to plot a contour map with vtk i have 30 points as an array x = [1,1.0,1.003......] y = [0.03,1,3,4.5,.....] z =[11.2,2.3,2.0,1.9,.....] I ntensity= [0.2,34,5,,] how can i do a plot of this points and then lets say use different colors at every point to represent different intensities thank you very much for helping me it will look like lets say you have a plane and in that plane you have contourns of different intensities ____________________________________________________________________________________ ?S? un mejor ambientalista! Encuentra consejos para cuidar el lugar donde vivimos. http://telemundo.yahoo.com/promos/mejorambientalista.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From amiteshagarwal at gmail.com Fri Oct 26 01:52:59 2007 From: amiteshagarwal at gmail.com (Amitesh Kumar) Date: Fri, 26 Oct 2007 00:52:59 -0500 Subject: [vtkusers] vtkTriangleFilter Message-ID: I have been using vtkTriangleFilter for creating initial triangulation on in a given polygon. I have been trying to find out, unsuccessfully so far, as to what algorithm is it based on. Is there any research paper on it? What is the name of this algorithm. In absence of any documentation about the theory behind this algorithm I am not sure where to look for. Any one has any idea? Thanks Amitesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From Michael.Knopke at gmx.de Fri Oct 26 03:45:45 2007 From: Michael.Knopke at gmx.de (Michael Knopke) Date: Fri, 26 Oct 2007 09:45:45 +0200 Subject: [vtkusers] Maximum and minimum intensity blend in Message-ID: <000001c817a4$3838c8a0$4378a8c0@imagesystems.local> Hi Shashwatch, What exactly do you need to get hardware MIP working? I'm using it already without problems (besides the intensity prob). Actually this is only the change of blendingfunction to max blending (unfortunately minimum blending doesn't work, but I didn't really spend much time on it). So in order to change the vtkOpenGLVolumeTextureMapper3D you need to load the openGL extension and change the blending equation (both included in examples) that's it. If you look through the code you will notice that I changed the equation only for 1 component data, because I don't need more. But this is no prob just change the equation in those functions as well. I think you'll also have to change the file vtkVolumeMapper.h to have the option to change the blending: void SetBlendModeToMaximumIntensity() { this->SetBlendMode( vtkVolumeMapper::MAXIMUM_INTENSITY_BLEND ); } Needs to be added. Anyway, I'll send you all my modified files, so you can try them. I'd be very interested in improving the hardware renderer. But I think the actual volumerenderer is quite outdated (it colormaps all data (with cpu) before sending it to videomemory thus being slower and using more memory than other algorithms). What we need are renders that are written in shaderlanguage, it's easier to write. I was trying to get some shaders to work but it seems that the VTK shader support isn't ready yet. (no improvement since October last year). Regards, Michael -------------- next part -------------- An HTML attachment was scrubbed... URL: From algarcon at gmail.com Fri Oct 26 06:12:30 2007 From: algarcon at gmail.com (=?ISO-8859-1?Q?Alberto_Garc=EDa_Consuegra?=) Date: Fri, 26 Oct 2007 12:12:30 +0200 Subject: [vtkusers] vtkVolumeRayCastMapper events Message-ID: <2bb55b460710260312y3e45a6e3kb63a4d6cab063c36@mail.gmail.com> Hi all, i have problems with vtkVolumeRayCastMapper events. I see vtkVolumeRay... can listen StartEvents, EndEvent and ProgressEvent (and they works fine), but there are others events like: * VolumeMapperRenderProgressEvent*, *VolumeMapperComputeGradientsEndEvent, **VolumeMapperComputeGradientsProgressEvent and **VolumeMapperComputeGradientsStartEvent, that i wish to listen too, but when I add and observer to these events, nothing is being observed. I think these events are supported in vtkVolumeMapper, and they should be supported by vtkVolumeRayCastMapper too, because vtkVolumeRayCastMapper inherits from vtkVolumeMapper (in my own opinion). I use vtk 5.0.3 version in java. Could anybody helps me?. Thanks * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dqchen at cvip.louisville.edu Fri Oct 26 10:34:15 2007 From: dqchen at cvip.louisville.edu (Dongqing Chen) Date: Fri, 26 Oct 2007 10:34:15 -0400 Subject: [vtkusers] stuck when intalling vtk on laptop. Message-ID: <001c01c817dd$48ea6030$4e28a588@rachidcvip> Dear All: I am installing vtk 5.0.1 on my laptop. The OS is windows XP, and Cmake is the lastest 2.4.7-win32-x86.exe. I follow the same way when I installed the vtk 5.0.1 on my desktop. But the problem happened when I used CMake to generate the file for VC++ 6.0, the whole procedure stopped. The problem is that CMake is checking whether STL has interator_traits. Before, when I installed vtk 5.0.1 on my desktop, I did not have such problem. What I should do to solve this problem? update VC 6.0 using vc6sp5.exe and vc6sp6.exe, or some other solutions. Or install STL. Before, I just copy the STL package from my labmate and put it under VC 6.0 folder: C:\Program Files\Microsoft Visual Studio\VC98\Include Best Wishes, ----------------------------------------------------------------- Dongqing Chen Ph.D Candidate Rm. 07, Paul C. Lutz Hall Computer Vision & Image Processing (CVIP) Lab Department of Electrical & Computer Engineering Speed School of Engineering University of Louisville Louisville, KY. 40292 U.S.A Email: dqchen at cvip.louisville.edu Phone:+1-502-852-2789 (Lab) +1-502-852-6130 (Office) ----------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From jtaclas at bidmc.harvard.edu Fri Oct 26 11:44:31 2007 From: jtaclas at bidmc.harvard.edu (jtaclas at bidmc.harvard.edu) Date: Fri, 26 Oct 2007 11:44:31 -0400 Subject: [vtkusers] vtkKdTree BuildLocatorFromPoints trouble Message-ID: <25A33F7C2B7E2E458182A863929DD9D832D7AD@EVS7.its.caregroup.org> Upon further investigation into my problem, I noticed that vtkMarchingContourFilter and vtkMarchingCubes each have a "GetLocator" vtkPointLocator. I tried them instead of using the vtkKdTree locator, and they seem to indicate that the Id of the closest point to any point is -1. Also, when I try to get a point from the marching filter by using GetPoint(any integer), my program stops. Any ideas as to what I could be doing wrong to get no point Ids from vtkMarchingCubes, as well as no points when supplying Ids. Below is how I used vtkMarchingCubes with a structured points reader. vtkMarchingCubes * contour = vtkMarchingCubes::New(); contour->AddInputConnection( reader1->GetOutputPort() ); contour->SetValue(1,120); contour->GenerateValues(2,500.0,600); contour->ComputeNormalsOn(); contour->ComputeGradientsOn(); contour->ComputeScalarsOn(); vtkIdType axe; vtkPointLocator *below = vtkPointLocator::New(); axe=below->FindClosestPoint(458.4098, 446.6154, 441.8497); cout << contour->GetOutput()->GetPoint(axe) << endl; The last line is as far as it gets. Original Message: I am having some trouble with vtkKdTree. I read data in as structured points, turn it into a surface with vtkMarchingContourFilter, and would like to find the nearest point of this surface to a specified point in space. To do this, do I need to get the point data from the contour filter and use BuildLocatorFromPoints, or would I just set the contour filter output as the data set and use BuildLocator; I ask because the manual pages online suggest that vtkIdType vtkKdTree::FindClosestPoint requires the locator be from BuildLocatorFromPoints. If this is the case, should the following work (or better phrased, why doesn't it)? vtkKdTree * example = vtkKdTree::New(); example->BuildLocatorFromPoints(contour->GetOutput()->GetPoints()); -------------- next part -------------- An HTML attachment was scrubbed... URL: From famat at stanford.edu Fri Oct 26 12:28:04 2007 From: famat at stanford.edu (Fernando Amat) Date: Fri, 26 Oct 2007 09:28:04 -0700 Subject: [vtkusers] Flattening a surface Message-ID: <1193416084.20874.8.camel@localhost> Hi all, I am pretty much new in VTK. I have surface encoded as triangulated. Is there any class in VTK that implements flattening algorithms? If the answer is yes, do they preserve distances, or angles? Thanks, Fernando From goodwin.lawlor at ucd.ie Fri Oct 26 13:07:02 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Fri, 26 Oct 2007 18:07:02 +0100 Subject: [vtkusers] Re: Flattening a surface In-Reply-To: <1193416084.20874.8.camel@localhost> References: <1193416084.20874.8.camel@localhost> Message-ID: Hi Fernando, VTK doesn't have a surface flattening filter but its sister project ITK does- /Insight/Code/Review/itkConformalFlatteningMeshFilter.txx The filter is an angle preserving map. I wouldn't be too difficult to re-implement the filter in VTK, if someone had time... hth Goodwin Fernando Amat wrote: > Hi all, > I am pretty much new in VTK. I have surface encoded as triangulated. Is > there any class in VTK that implements flattening algorithms? If the > answer is yes, do they preserve distances, or angles? > > Thanks, > Fernando From guanw at rhpcs.mcmaster.ca Fri Oct 26 13:58:53 2007 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Fri, 26 Oct 2007 13:58:53 -0400 (EDT) Subject: [vtkusers] Why data value range of volume affects its rendering Message-ID: Hi all, I recently notice an issue (maybe a bug) with volume rendering algorithms (vtkVolumeTextureMapper3D and vtkVolumeRayCastMapper), and cannot find a posting reporting the issue in the mailing list. I have a a scalar volume of vtkImagedata whose value ranges from 0 to 7035. By thresholding it at 255, I generate another volume with value range [0-255]. Then, I do volume renderings (both vtkVolumeTextureMapper3D and vtkVolumeRayCastMapper) of them seperately with the same opacity transfer function: vtkPiecewiseFunction opacityTransferFunction opacityTransferFunction AddPoint 50 0.0 opacityTransferFunction AddPoint 255 0.2 opacityTransferFunction ClampingOff Should I expect to have exactly the same renderings? Rendering with vtkVolumeTextureMapper3D produces a great difference while rendering with vtkVolumeRayCastMapper produces a slightly difference but still noticeable. Can anybody explain why? I have a tcl script to reproduce the "bug", and can let you have it if you're interested. Weiguang From dean.inglis at camris.ca Fri Oct 26 15:40:10 2007 From: dean.inglis at camris.ca (dean.inglis at camris.ca) Date: Fri, 26 Oct 2007 15:40:10 -0400 Subject: [vtkusers] a pipeline error Message-ID: <6cunvi$3i4i42@toip34-bus.srvr.bell.ca> Hi, I have a pipeline to clip an input image which is then passed on to a vtkImageViewer2. In turn, vtkImageViewer2 passes its image input to an ivar vtkImageMapToWindowLevelColors and then on to vtkImageActor. So the pipeline is: vtkImageData => vtkImageClip => vtkImageMapToWindowLevelColors => vtkImageActor Rather than actually clipping the data, vtkImageClip can pass its output with modified extents when it is set to ClipDataOff. The origin, spacing and bounds of the data remain unchanged. However, I am getting the following pipeline error, for example: ERROR: In D:\Developer\Sources\VTK\Filtering\vtkStreamingDemandDrivenPipeline.cxx, line 698 vtkStreamingDemandDrivenPipeline (034F3990): The update extent specified in the information for output port 0 on algorithm vtkImageMapToWindowLevelColors(034B5BB0) is 0 127 0 127 0 0, which is outside the whole extent 28 94 23 104 0 0. I have tried, vtkImageMapToWindowLevelColors ->GetOutput()->SetUpdateExtentToWholeExtent() but the error persists. Any suggestions?? Dean From iryna at andrew.cmu.edu Fri Oct 26 15:41:11 2007 From: iryna at andrew.cmu.edu (Iryna Pavlyshak) Date: Fri, 26 Oct 2007 15:41:11 -0400 (EDT) Subject: [vtkusers] Re: Flattening a surface In-Reply-To: References: <1193416084.20874.8.camel@localhost> Message-ID: <3006.128.237.229.28.1193427671.squirrel@128.237.229.28> >Hey Goodwin, I don't have any idea about itk, but the filter which you wrote about will be very useful for me. A question: Is itk compatible with vtk? Can i output data form ITK filter sent as input to VTK filters or Mapper for example? thanks, iryna Hi Fernando, > > VTK doesn't have a surface flattening filter but its sister project ITK > does- /Insight/Code/Review/itkConformalFlatteningMeshFilter.txx > > The filter is an angle preserving map. > > I wouldn't be too difficult to re-implement the filter in VTK, if someone > had time... > > hth > > Goodwin > > Fernando Amat wrote: >> Hi all, I am pretty much new in VTK. I have surface encoded as >> triangulated. Is there any class in VTK that implements flattening >> algorithms? If the answer is yes, do they preserve distances, or angles? >> >> >> Thanks, Fernando > > > _______________________________________________ This is the private VTK > discussion list. Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > From heyfa1057 at yahoo.fr Sat Oct 27 06:18:26 2007 From: heyfa1057 at yahoo.fr (heyfa ammar) Date: Sat, 27 Oct 2007 12:18:26 +0200 (CEST) Subject: [vtkusers] Tr: 3D visualization Message-ID: <527718.74554.qm@web26107.mail.ukl.yahoo.com> Remarque : message transf?r? en pi?ce jointe. --------------------------------- Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded message was scrubbed... From: heyfa ammar Subject: 3D visualization Date: Sat, 27 Oct 2007 12:07:25 +0200 (CEST) Size: 1278 URL: From fredmfp at gmail.com Sat Oct 27 06:28:02 2007 From: fredmfp at gmail.com (fred) Date: Sat, 27 Oct 2007 12:28:02 +0200 Subject: [vtkusers] Tr: 3D visualization In-Reply-To: <527718.74554.qm@web26107.mail.ukl.yahoo.com> References: <527718.74554.qm@web26107.mail.ukl.yahoo.com> Message-ID: <472312B2.9010108@gmail.com> heyfa ammar a ?crit : > > Dear all, > I'm a beginner in vtk and I'm trying to do the visualization of a 3D > image through a vtk file. > Could anyone help me please; You can use mayavi2: http://code.enthought.com/mayavi2 or paraview: http://www.paraview.org/HTML/Index.html Cheers, -- http://scipy.org/FredericPetit From heyfa1057 at yahoo.fr Sat Oct 27 07:37:21 2007 From: heyfa1057 at yahoo.fr (heyfa ammar) Date: Sat, 27 Oct 2007 13:37:21 +0200 (CEST) Subject: [vtkusers] Tr: 3D visualization Message-ID: <551012.67839.qm@web26102.mail.ukl.yahoo.com> can I do it with the vtk's code? please could you tell me how? thanks ----- Message d'origine ---- De : fred ? : vtkusers Envoy? le : Samedi, 27 Octobre 2007, 12h28mn 02s Objet : Re: [vtkusers] Tr: 3D visualization heyfa ammar a ?crit : > > Dear all, > I'm a beginner in vtk and I'm trying to do the visualization of a 3D > image through a vtk file. > Could anyone help me please; You can use mayavi2: http://code.enthought.com/mayavi2 or paraview: http://www.paraview.org/HTML/Index.html Cheers, -- http://scipy.org/FredericPetit _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers ______________________________________________________________________________ Stockage illimit? de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail ! -------------- next part -------------- An HTML attachment was scrubbed... URL: From fredmfp at gmail.com Sat Oct 27 07:51:47 2007 From: fredmfp at gmail.com (fred) Date: Sat, 27 Oct 2007 13:51:47 +0200 Subject: [vtkusers] Tr: 3D visualization In-Reply-To: <551012.67839.qm@web26102.mail.ukl.yahoo.com> References: <551012.67839.qm@web26102.mail.ukl.yahoo.com> Message-ID: <47232653.4060003@gmail.com> heyfa ammar a ?crit : > can I do it with the vtk's code? please could you tell me how? > thanks Sorry, I only use mayavi2 & paraview to visualize my VTK data. BTW, VTK is not strictly speaking a "code" (no executable provided) but a library. You have to write your own code (in C, python, tcl/tk, java) to do what you want. I guess other people here can help you on this. Cheers, -- http://scipy.org/FredericPetit From goodwin.lawlor at ucd.ie Sat Oct 27 10:11:59 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Sat, 27 Oct 2007 15:11:59 +0100 Subject: [vtkusers] Re: Flattening a surface In-Reply-To: <3006.128.237.229.28.1193427671.squirrel@128.237.229.28> References: <1193416084.20874.8.camel@localhost> <3006.128.237.229.28.1193427671.squirrel@128.237.229.28> Message-ID: <4723472F.8090407@ucd.ie> Hi Iryna, VTK can be used as a frontend to visualize ITK data. In fact, data can be passed back and forth between VTK and ITK filters. There is an example in ITK on how to do this. If you only need ITK for the one filter, it may be easier to write a new VTK filter though. hth Goodwin Iryna Pavlyshak wrote: >> Hey Goodwin, >> > > I don't have any idea about itk, but the filter which you wrote about will be very useful for me. > A question: > Is itk compatible with vtk? Can i output data form ITK filter sent as input to VTK filters or Mapper for example? > > thanks, > > iryna > > > > > Hi Fernando, > >> VTK doesn't have a surface flattening filter but its sister project ITK >> does- /Insight/Code/Review/itkConformalFlatteningMeshFilter.txx >> >> The filter is an angle preserving map. >> >> I wouldn't be too difficult to re-implement the filter in VTK, if someone >> had time... >> >> hth >> >> Goodwin >> >> Fernando Amat wrote: >> >>> Hi all, I am pretty much new in VTK. I have surface encoded as >>> triangulated. Is there any class in VTK that implements flattening >>> algorithms? If the answer is yes, do they preserve distances, or angles? >>> >>> >>> Thanks, Fernando >>> >> _______________________________________________ This is the private VTK >> discussion list. Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> >> >> > > From davemania24 at yahoo.com Sun Oct 28 08:11:48 2007 From: davemania24 at yahoo.com (Dave C) Date: Sun, 28 Oct 2007 05:11:48 -0700 (PDT) Subject: [vtkusers] VTK suitability Message-ID: <913388.23348.qm@web57112.mail.re3.yahoo.com> Hi I am currently looking for a 3d visualization/rendering library to do my visualisation in java. I am currently primarily involved with modeling geometries using bezier/bspline curves and surfaces and visualising the geometries and having some user interactions (selecting geometric objects such as curves, vertexs etc for now). Is this something easy to achieve in VTK ? I read somewhere I need to interface Bezier / BSpline basis function to VTK to create the geometries, can interfacing be done in Java or do I need to do it in C++ ? Thanks, David __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From f.braennstroem at gmx.de Sun Oct 28 16:26:49 2007 From: f.braennstroem at gmx.de (Fabian Braennstroem) Date: Sun, 28 Oct 2007 20:26:49 +0000 Subject: [vtkusers] Re: calculate normal of boundary References: Message-ID: Hi, me again... it seems that noone has an idea ... or is it just a stupid question!? Fabian Fabian Braennstroem wrote: > Hi, > > I would like to use python-vtk to calculate the vector components of > an inlet velocity for computational fluid dynamics. > For this I would have to read an ensight or vtk formated mesh and > calculate the normal direction of a certain boundary, e.g. 'inlet'. > Does anyone knows, if I can do this with python-vtk, or better, does > anyone has such a small script already? Would be nice :-) > From henryjoye at gmail.com Mon Oct 29 02:08:43 2007 From: henryjoye at gmail.com (James Zhou) Date: Mon, 29 Oct 2007 17:08:43 +1100 Subject: [vtkusers] Why data value range of volume affects its rendering --->I think it is a bug, please read my reply Message-ID: Hi Weiguang, I am estimating the vtkVolumeTextureMapper3D these days. I found some problems (maybe) about this class. This problem does answer your question why the rendering is different from two different mappers. I am using vtk nightly source on Oct.16 2007. Here I present some cues on the problem: First please read function "UpdateColorLookup" in class vtkVolumeTextureMapper3D. We may assume our data type is unsigned char. We also assume we use rgba color TF. So the the size of color TF write into the ColorLookup is arraySizeNeeded as shown in the program. Line 1334 and line 1339 gives us that the pipeline how to get the TF table from the TF user interface with the scalar range of ( scalarRange[0], scalarRange[1]). rgbFunc->GetTable( scalarRange[0], scalarRange[1], arraySizeNeeded, this->TempArray1 ); scalarOpacityFunc->GetTable( scalarRange[0], scalarRange[1], arraySizeNeeded, this->TempArray2 ); Second please read Lines between 1368 to 1401 (we use one component data), you can find that the program transfered TF table obtained before to the ColorLookup. The problems appear here: The TF table obtained in Line 1334 and 1339 is used for the scalar range of ( scalarRange[0], scalarRange[1]). But between lines 1368 to 1401 transferring step, the TF table is set to the range of (0, arraySizeNeeded). Please be aware that: ( arraySizeNeeded = (int)(scalarRange[1] - scalarRange[0] + 1);) So the transfer function got from the TF user interface is applied to the wrong scalar range, that's why the rendering images created from two mappers are different. I hope to get your feedback about this. I also hope that VTK can correct this bug. Because the new graphics card supports non-power 2 texture size, the vtkVolumeTextureMapper3D should also be updated for this change. Good luck! James 2007/10/27, Weiguang Guan : > > Hi all, > > I recently notice an issue (maybe a bug) with volume rendering algorithms > (vtkVolumeTextureMapper3D and vtkVolumeRayCastMapper), and cannot find a > posting reporting the issue in the mailing list. > > I have a a scalar volume of vtkImagedata whose value ranges from 0 to > 7035. By thresholding it at 255, I generate another volume with value > range [0-255]. Then, I do volume renderings (both vtkVolumeTextureMapper3D > and vtkVolumeRayCastMapper) of them seperately with the same opacity > transfer function: > > vtkPiecewiseFunction opacityTransferFunction > opacityTransferFunction AddPoint 50 0.0 > opacityTransferFunction AddPoint 255 0.2 > opacityTransferFunction ClampingOff > > Should I expect to have exactly the same renderings? Rendering with > vtkVolumeTextureMapper3D produces a great difference while rendering with > vtkVolumeRayCastMapper produces a slightly difference but still > noticeable. Can anybody explain why? > > I have a tcl script to reproduce the "bug", and can let you have it if > you're interested. > > Weiguang > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From amy.squillacote at kitware.com Mon Oct 29 09:30:57 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Mon, 29 Oct 2007 09:30:57 -0400 Subject: [vtkusers] question about color map in PV3 Message-ID: <4725E091.4050107@kitware.com> Hi guys, Is the statement below (from page 69 in the PV 2.4 book) still true in PV 3.2? It doesn't seem to be, but I wanted to verify that before I took the statement out. By default, any data attribute (contained in any data set currently loaded in ParaView) whose name matches the one selected in the Color by menu contributes to the range of the color map. - Amy -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From amy.squillacote at kitware.com Mon Oct 29 09:42:21 2007 From: amy.squillacote at kitware.com (Amy Squillacote) Date: Mon, 29 Oct 2007 09:42:21 -0400 Subject: [vtkusers] question about color map in PV3 In-Reply-To: <4725E091.4050107@kitware.com> References: <4725E091.4050107@kitware.com> Message-ID: <4725E33D.6050305@kitware.com> Please ignore this message. It was not intended for the VTK User's list. - Amy Amy Squillacote wrote: > Hi guys, > > Is the statement below (from page 69 in the PV 2.4 book) still true in > PV 3.2? It doesn't seem to be, but I wanted to verify that before I > took the statement out. > > By default, any data attribute (contained in any data set currently > loaded in ParaView) whose name matches the one selected in the Color > by menu contributes to the range of the color map. > > - Amy > -- Amy Squillacote Kitware, Inc. 28 Corporate Drive Clifton Park, NY 12065 Phone: (518) 371-3971 x106 From guanw at rhpcs.mcmaster.ca Mon Oct 29 10:24:26 2007 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Mon, 29 Oct 2007 10:24:26 -0400 (EDT) Subject: [vtkusers] Why data value range of volume affects its rendering --->I think it is a bug, please read my reply In-Reply-To: References: Message-ID: Hi James, Thank you so much for your detailed insight into the problem. Can Kitware people confirm this is a bug? Weiguang On Mon, 29 Oct 2007, James Zhou wrote: > Hi Weiguang, > > I am estimating the vtkVolumeTextureMapper3D these days. I found some > problems (maybe) about this class. This problem does answer your question > why the rendering is different from two different mappers. > > I am using vtk nightly source on Oct.16 2007. Here I present some cues on > the problem: > > First please read function "UpdateColorLookup" in class > vtkVolumeTextureMapper3D. We may assume our data type is unsigned char. We > also assume we use rgba color TF. So the the size of color TF write into the > ColorLookup is arraySizeNeeded as shown in the program. Line 1334 and line > 1339 gives us that the pipeline how to get the TF table from the TF user > interface with the scalar range of ( scalarRange[0], scalarRange[1]). > > rgbFunc->GetTable( scalarRange[0], scalarRange[1], > arraySizeNeeded, this->TempArray1 ); > > scalarOpacityFunc->GetTable( scalarRange[0], scalarRange[1], > arraySizeNeeded, this->TempArray2 ); > > Second please read Lines between 1368 to 1401 (we use one component data), > you can find that the program transfered TF table obtained before to the > ColorLookup. The problems appear here: > > The TF table obtained in Line 1334 and 1339 is used for the scalar range of > ( scalarRange[0], scalarRange[1]). But between lines 1368 to 1401 > transferring step, the TF table is set to the range of (0, arraySizeNeeded). > Please be aware that: > ( arraySizeNeeded = (int)(scalarRange[1] - scalarRange[0] + 1);) > > So the transfer function got from the TF user interface is applied to the > wrong scalar range, that's why the rendering images created from two mappers > are different. > > I hope to get your feedback about this. I also hope that VTK can correct > this bug. Because the new graphics card supports non-power 2 texture size, > the vtkVolumeTextureMapper3D should also be updated for this change. > > Good luck! > > James > > > > > > > 2007/10/27, Weiguang Guan : >> >> Hi all, >> >> I recently notice an issue (maybe a bug) with volume rendering algorithms >> (vtkVolumeTextureMapper3D and vtkVolumeRayCastMapper), and cannot find a >> posting reporting the issue in the mailing list. >> >> I have a a scalar volume of vtkImagedata whose value ranges from 0 to >> 7035. By thresholding it at 255, I generate another volume with value >> range [0-255]. Then, I do volume renderings (both vtkVolumeTextureMapper3D >> and vtkVolumeRayCastMapper) of them seperately with the same opacity >> transfer function: >> >> vtkPiecewiseFunction opacityTransferFunction >> opacityTransferFunction AddPoint 50 0.0 >> opacityTransferFunction AddPoint 255 0.2 >> opacityTransferFunction ClampingOff >> >> Should I expect to have exactly the same renderings? Rendering with >> vtkVolumeTextureMapper3D produces a great difference while rendering with >> vtkVolumeRayCastMapper produces a slightly difference but still >> noticeable. Can anybody explain why? >> >> I have a tcl script to reproduce the "bug", and can let you have it if >> you're interested. >> >> Weiguang >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > From iyerdeepak at gmail.com Mon Oct 29 12:10:40 2007 From: iyerdeepak at gmail.com (Deepak Iyer) Date: Mon, 29 Oct 2007 09:10:40 -0700 (PDT) Subject: [vtkusers] Topology Characteristics using VTK Message-ID: <13470802.post@talk.nabble.com> Hi all, Is there any support in VTK to compute the topology characteristics (like Euler characteristics, cavities, volumes, etc.) given a 3d mesh (more specifically a vtkPolyData structure) ? I am relatively new to VTK so my apologies if the answer to it is trivial. Deepak -- View this message in context: http://www.nabble.com/Topology-Characteristics-using-VTK-tf4712687.html#a13470802 Sent from the VTK - Users mailing list archive at Nabble.com. From mail_di_ale at yahoo.it Mon Oct 29 12:17:16 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Mon, 29 Oct 2007 17:17:16 +0100 (CET) Subject: [vtkusers] lights Message-ID: <775274.56126.qm@web26402.mail.ukl.yahoo.com> hallo everybody! I've set a light in my program, in this way: vtkLight *light1 = vtkLight::New(); light1->SetPosition(x,y,z); light1->SetColor(1.0,1.0,1.0); but it doesn't illuminate the scene.. (I want to illuminate an actor representing an isosurface, but it always looks black :( ) what could be wrong? should I set any other paramater? or may be the face-culling is off? (how can I correct it?) or what else? thanks a lot Ale --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From pbarbier at ucalgary.ca Mon Oct 29 12:41:40 2007 From: pbarbier at ucalgary.ca (Pierre Barbier de Reuille) Date: Mon, 29 Oct 2007 10:41:40 -0600 Subject: [vtkusers] Re: calculate normal of boundary In-Reply-To: References: Message-ID: Hello, so reading the file is the easy part. For that, you want to use vtkImageReader2 (see documentation). As for the normal of the boundary, the first question is: how is defined this boundary? If this is defined as an iso-surface of some function, then you can use the vtkMarchingContourFilter object to find it and then vtkPolyDataNormals to get the normals of your surface it should work. If you get the mesh by any other means, you can still use vtkPolyDataNormals to get the normals to the mesh. Pierre On 10/28/07, Fabian Braennstroem wrote: > > Hi, > > me again... > it seems that noone has an idea ... or is it just a stupid question!? > Fabian > > > Fabian Braennstroem wrote: > > > Hi, > > > > I would like to use python-vtk to calculate the vector components of > > an inlet velocity for computational fluid dynamics. > > For this I would have to read an ensight or vtk formated mesh and > > calculate the normal direction of a certain boundary, e.g. 'inlet'. > > Does anyone knows, if I can do this with python-vtk, or better, does > > anyone has such a small script already? Would be nice :-) > > > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- Barbier de Reuille Pierre -------------- next part -------------- An HTML attachment was scrubbed... URL: From pritham1002 at yahoo.co.in Mon Oct 29 14:07:55 2007 From: pritham1002 at yahoo.co.in (sai pritham) Date: Mon, 29 Oct 2007 23:37:55 +0530 (IST) Subject: [vtkusers] Surface constuction from point cloud data Message-ID: <404254.58336.qm@web94501.mail.in2.yahoo.com> Hello All, It was nice to have joined vtk users mailing list.Iam a new to vtk and iam having difficulty in sovling a problem. I have a text file which has info about huge number of x y and z coordinates. My task is to get a surface constucted out of it I have gone through the examples i have got in VTK installation but i did not find them relevent to this task.Could some one please direct me in doing this in C++. There are examples in tcl at \VTK\Examples\Modelling\Tcl\ reconstructSurface.tcl I have found a topic discussed on this on the mailing list but the code didn't work either. Could some please mail a working example on this. Thanks a lot for time Sai Pritham Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups From marc at cotran.ca Mon Oct 29 14:09:39 2007 From: marc at cotran.ca (Marc Cotran) Date: Mon, 29 Oct 2007 14:09:39 -0400 Subject: [vtkusers] lights In-Reply-To: <775274.56126.qm@web26402.mail.ukl.yahoo.com> References: <775274.56126.qm@web26402.mail.ukl.yahoo.com> Message-ID: <472621E3.7020402@cotran.ca> An HTML attachment was scrubbed... URL: From pritham1002 at yahoo.co.in Mon Oct 29 14:22:13 2007 From: pritham1002 at yahoo.co.in (saipritham) Date: Mon, 29 Oct 2007 11:22:13 -0700 (PDT) Subject: Re[vtkusers] garding surface reconstruction from point cloud in VTK In-Reply-To: <457D54E6.5010106@tu-bs.de> References: <457D54E6.5010106@tu-bs.de> Message-ID: <13473701.post@talk.nabble.com> Dear All, Iam very new to VTK and I have a similar problem. Could some one please direct a working example in C++. The example mentioned is in TCL.I am presently working on VS and i am looking for a working example in C++ Also, could some one help me in converting TCL code to C++ analogy. How do i run TCL? Thanks a lot Sai Ismail Elkhrachy wrote: > > murali kuna wrote: >> Dear Ismail, >> >> Can you please help me in the surface reconstruction >> problem.I am having a point cloud (x,y,z) locations in 3D. I have to >> create a surface from that point cloud. Can you please help me how to >> do this in VTK. I am attaching the text document that contains the 3D >> locations of the points with columns specify the x,y,z coordinates. >> >> Thanks in advance. >> >> >> with regards >> murali.kuna >> >> >> >> ------------------------------------------------------------------------ >> Find out what India is talking about on - Yahoo! Answers India >> >> Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. >> Get it NOW >> >> >> ------------------------------------------------------------------------ >> >> -15.3132 -48.5375 -19.1005 >> -24.6927 -58.7607 -51.0201 >> -53.5381 -40.99 -47.7895 >> -60.4989 -37.0847 -48.692 >> -62.5269 -36.1658 -48.4515 >> -53.7276 -35.8801 -44.3306 >> -49.0656 -27.8981 -44.6875 >> -46.4507 -21.0743 -44.8395 >> -23.2007 -37.5067 -44.9793 >> -23.254 -58.2916 -54.2331 >> -24.3897 -55.4968 -54.6207 >> -19.983 -63.2913 -54.438 >> -22.664 -55.581 -55.7141 >> -18.9579 -53.335 -54.3466 >> -25.1648 -68.3347 -45.3731 >> -21.7973 -66.4332 -46.8981 >> -21.9081 -4.60033 -20.1566 >> -19.3826 -10.9609 -11.7261 >> -19.6212 -11.0188 -11.9289 >> -20.3589 -11.8816 -21.9849 >> -22.3951 -13.1618 -29.4319 >> -17.5942 -18.293 -29.7664 >> -14.0529 -28.2816 -32.2194 >> -15.9832 -24.8981 -34.9349 >> -16.5951 -32.2236 -39.7626 >> -11.7985 -39.1311 -37.4521 >> -15.095 -58.2294 -40.4553 >> -25.6018 -81.8494 -33.4189 >> -28.3902 -83.2021 -32.679 >> -27.3883 -84.8447 -30.7829 >> -52.3082 -75.3201 -43.1788 >> -51.9746 -73.1331 -43.3878 >> -59.9665 -68.4687 -44.4879 >> -63.9401 -68.3036 -43.575 >> -62.935 -64.1225 -45.287 >> -69.3292 -52.4423 -46.9391 >> -69.014 -49.2838 -48.539 >> -71.5849 -44.2272 -49.5366 >> -64.5873 -44.0273 -47.5144 >> -73.4874 -38.6268 -46.9221 >> -73.2674 -36.8797 -46.8127 >> -60.3645 -35.5447 -43.5398 >> -41.0401 -22.7522 -44.0808 >> -40.0059 -20.1561 -43.7947 >> -37.931 -75.7198 -14.6184 >> -38.3014 -75.8031 -14.4249 >> -39.5708 -80.2093 -11.5211 >> -79.0023 -36.865 -31.4773 >> -79.2889 -38.0171 -30.9088 >> -76.5653 -41.7737 -25.3504 >> -35.923 -71.2614 -11.2483 >> -41.1814 -66.8657 -11.8254 >> -51.9656 -46.7162 -15.8561 >> -55.5637 -37.2839 -17.6058 >> -56.2011 -35.3109 -18.877 >> -54.9298 -36.4001 -16.9508 >> -49.6226 -37.8879 -14.6085 >> -26.1596 -15.6745 -13.5708 >> -21.0667 -21.1972 -6.62659 >> -25.4906 -16.6626 -13.0677 >> -29.0853 -18.9612 -13.9734 >> -21.2948 -29.2704 -8.00803 >> -26.221 -23.1836 -9.9903 >> -27.1278 -15.6761 -8.15604 >> -47.3306 -40.9087 -13.1216 >> -15.6826 -27.3042 -19.9435 >> -34.2624 -19.0843 -19.5786 >> -26.2104 -68.4784 -48.6368 >> -62.5659 -40.8889 -49.6636 >> -39.9545 -55.0922 -52.6696 >> -48.0532 -73.9058 -42.7232 >> -70.538 -71.7311 -42.552 >> -70.8902 -71.6452 -42.4364 >> -65.206 -76.9467 -39.8191 >> -67.1722 -74.2311 -41.781 >> -74.717 -62.7898 -50.011 >> -74.717 -62.7898 -50.011 >> -74.717 -62.7898 -50.011 >> -74.717 -62.7898 -50.011 >> -75.357 -61.62 -50.5794 >> -63.0021 -54.8026 -48.326 >> -73.3099 -51.5001 -50.7797 >> -24.1063 -67.8018 -43.5822 >> -36.9065 -22.5993 -39.5359 >> -35.0599 -15.5504 -36.287 >> -34.7649 -15.235 -35.2104 >> -33.2899 -18.0444 -33.5633 >> -34.1381 -15.9839 -34.9431 >> -65.7059 -34.4236 -24.3274 >> -60.9207 -37.9851 -20.2702 >> -58.6644 -41.1217 -17.4352 >> -75.3023 -49.2172 -46.5947 >> -73.1916 -52.292 -46.3261 >> -73.4857 -52.8462 -45.9416 >> -80.6646 -43.3094 -37.0158 >> -83.1769 -45.6942 -46.0363 >> -84.1087 -46.186 -33.0227 >> -85.6682 -55.885 -29.8012 >> -84.6544 -67.2023 -27.116 >> -85.527 -60.4318 -26.3543 >> -79.8501 -71.3924 -36.0193 >> -73.8632 -53.2026 -47.0972 >> -70.8058 -60.6018 -44.966 >> -73.6307 -68.9364 -45.3029 >> -71.775 -73.397 -43.1312 >> -45.01 -55.737 -50.6109 >> -52.3519 -47.6041 -51.5004 >> -85.6606 -53.0533 -27.7787 >> -82.5662 -47.8126 -23.4433 >> -83.7273 -47.664 -27.3021 >> -80.2751 -42.5674 -40.177 >> -76.5365 -38.8288 -24.7853 >> -72.2973 -38.4002 -19.557 >> -75.5021 -69.8566 -44.8403 >> -74.5438 -67.6697 -46.2483 >> -74.8959 -58.9295 -50.3162 >> -79.9985 -73.3512 -38.6937 >> -83.4004 -64.8501 -34.0624 >> -85.2287 -58.3869 -33.0872 >> -87.873 -54.2097 -31.9646 >> -81.5342 -45.8635 -44.3582 >> -80.9885 -52.6827 -47.0506 >> -76.9498 -63.7505 -50.5776 >> -81.1036 -72.6023 -44.1744 >> -82.1153 -68.1152 -43.4155 >> -82.2892 -66.5327 -31.7747 >> -81.5806 -47.7003 -30.3421 >> -76.1493 -41.3394 -35.3434 >> -78.949 -45.1089 -42.0359 >> -78.6424 -45.1904 -44.388 >> -75.3888 -42.6605 -34.2269 >> -41.5656 -33.7628 -50.1509 >> -39.3532 -29.8831 -48.5824 >> -37.4289 -29.5859 -48.5824 >> -32.7079 -30.9484 -49.0895 >> -27.6917 -32.7229 -48.9474 >> -27.9246 -29.8606 -48.6352 >> -29.2154 -28.0166 -47.2388 >> -33.4301 -38.8709 -48.7533 >> -29.2633 -33.2829 -47.5575 >> -14.1426 -26.2842 -43.0246 >> -12.0658 -32.5148 -40.384 >> -13.8539 -39.0849 -45.2996 >> -15.0614 -45.2048 -47.3178 >> -26.3783 -18.9156 -38.6158 >> -22.2158 -20.9171 -32.5338 >> -24.8937 -14.1927 -36.8927 >> -18.6357 -22.9622 -33.0949 >> -37.6972 -24.3467 -41.3484 >> -34.2343 -24.474 -42.2725 >> -44.0477 -47.9314 -50.3285 >> -38.2135 -47.9461 -50.1335 >> -38.5531 -57.987 -50.706 >> -18.7201 -58.0683 -46.3044 >> -14.8541 -45.9524 -33.0264 >> -42.3023 -55.5904 -51.1085 >> -43.1293 -49.3323 -50.015 >> -34.1596 -33.5507 -47.9661 >> -28.4857 -39.2014 -44.8762 >> -35.1931 -54.4481 -47.2349 >> -42.7083 -55.6583 -48.7628 >> -37.4512 -57.4793 -47.7379 >> -33.7594 -65.1592 -44.9046 >> -27.7403 -62.7486 -44.5149 >> -36.3341 -27.4112 -43.2645 >> -23.9813 -35.8812 -41.8482 >> -30.822 -48.3199 -48.3565 >> -31.1229 -52.0986 -51.3021 >> -30.9119 -58.6207 -50.4914 >> -41.2731 -62.3421 -49.2255 >> -34.9644 -70.4158 -46.9936 >> -44.0569 -37.236 -45.2383 >> -30.1168 -28.1227 -44.4972 >> -36.3116 -41.4595 -50.866 >> -44.9187 -45.3819 -52.3119 >> -48.8089 -47.8788 -51.8262 >> -51.1864 -39.726 -50.6524 >> -45.3048 -34.3323 -48.8416 >> -34.9685 -30.5372 -48.2668 >> -29.7542 -43.7687 -47.224 >> -31.1238 -51.1637 -48.3063 >> -29.1083 -61.9127 -45.6304 >> -30.7722 -42.3342 -49.837 >> -31.3412 -35.9524 -46.4553 >> -26.9857 -34.8879 -46.6803 >> -29.4396 -49.5558 -47.8927 >> -31.5993 -53.4932 -49.8133 >> -29.8134 -44.3027 -45.865 >> -29.95 -47.3311 -47.6491 >> -34.4382 -44.009 -48.3298 >> -29.7824 -57.6831 -44.9023 >> -33.9699 -60.4387 -47.8645 >> -30.7376 -41.335 -54.3404 >> -30.8674 -41.7893 -52.798 >> -32.2062 -59.3381 -50.6543 >> -31.9438 -43.4262 -53.1648 >> -31.4696 -51.8199 -52.7129 >> -32.9053 -55.642 -53.0324 >> > > Look at \VTK\Examples\Modelling\Tcl\ reconstructSurface.tcl > > -- > M.Sc. Ismail Elkhrachy > PhD student > > Institut f?r Geod?sie und Photogrammetrie > Technische Universit?t Braunschweig > Gau?str. 22 > 38106 Braunschweig > Germany > > Mob. : 0049 0163 3623486 > Tel. : 0049 0531 3917497 > Fax : 0049 0531 3917499 > E-mail : I.Elkhrachy at tu-bs.de, I.Elkhrachy at yahoo.com > > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > -- View this message in context: http://www.nabble.com/Re%3A-Regarding-surface-reconstruction-from-point-cloud-in-VTK-tf2793769.html#a13473701 Sent from the VTK - Users mailing list archive at Nabble.com. From lplavorante at gmail.com Mon Oct 29 15:39:04 2007 From: lplavorante at gmail.com (Luca Pallozzi Lavorante) Date: Mon, 29 Oct 2007 17:39:04 -0200 Subject: [vtkusers] Surface constuction from point cloud data In-Reply-To: <404254.58336.qm@web94501.mail.in2.yahoo.com> References: <404254.58336.qm@web94501.mail.in2.yahoo.com> Message-ID: Sai, can you perform a Delaunay Triangulation on the pointset? If so, you can use the vtkDelaunay2D class, assuming that the points can be projected on some plane, say the XY one. Luca On 10/29/07, sai pritham < pritham1002 at yahoo.co.in > wrote: > > > Hello All, > It was nice to have joined vtk users mailing list.Iam a new to > vtk and iam having difficulty in sovling a problem. > > I have a text file which has info about huge number of x y and z > coordinates. > > My task is to get a surface constucted out of it > > I have gone through the examples i have got in VTK installation but i did > not find them relevent to this task.Could some one please direct me in > doing this > in C++. > > There are examples in tcl at \VTK\Examples\Modelling\Tcl\ > reconstructSurface.tcl > > I have found a topic discussed on this on the mailing list but the code > didn't work either. > > Could some please mail a working example on this. > > Thanks a lot for time > > Sai Pritham > > > > > > > > > > > > > > > > > > Explore your hobbies and interests. Go to > http://in.promos.yahoo.com/groups > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddarkzero at hotmail.com Mon Oct 29 17:36:05 2007 From: daviddarkzero at hotmail.com (Jose David Pfuturi Huisa) Date: Mon, 29 Oct 2007 22:36:05 +0100 Subject: [vtkusers] How to build a body from a image2D Message-ID: _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ -------------- next part -------------- An HTML attachment was scrubbed... URL: From mail_di_ale at yahoo.it Mon Oct 29 18:10:08 2007 From: mail_di_ale at yahoo.it (Alessio Balzide) Date: Mon, 29 Oct 2007 23:10:08 +0100 (CET) Subject: [vtkusers] lights In-Reply-To: <472621E3.7020402@cotran.ca> Message-ID: <729477.38366.qm@web26412.mail.ukl.yahoo.com> yes, I do add the light to the renderer (sorry, I forgot to write that line in my previous email..) but it doesn't work.. Marc Cotran ha scritto: Did you add the light to the renderer? Try myRenderer->AddLight(light1); hth Marc Alessio Balzide wrote: hallo everybody! I've set a light in my program, in this way: vtkLight *light1 = vtkLight::New(); light1->SetPosition(x,y,z); light1->SetColor(1.0,1.0,1.0); but it doesn't illuminate the scene.. (I want to illuminate an actor representing an isosurface, but it always looks black :( ) what could be wrong? should I set any other paramater? or may be the face-culling is off? (how can I correct it?) or what else? thanks a lot Ale --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail --------------------------------- _______________________________________________ This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Follow this link to subscribe/unsubscribe: http://www.vtk.org/mailman/listinfo/vtkusers --------------------------------- --------------------------------- L'email della prossima generazione? Puoi averla con la nuova Yahoo! Mail -------------- next part -------------- An HTML attachment was scrubbed... URL: From marc at cotran.ca Mon Oct 29 18:15:02 2007 From: marc at cotran.ca (Marc Cotran) Date: Mon, 29 Oct 2007 18:15:02 -0400 Subject: [vtkusers] lights In-Reply-To: <729477.38366.qm@web26412.mail.ukl.yahoo.com> References: <729477.38366.qm@web26412.mail.ukl.yahoo.com> Message-ID: <47265B66.10904@cotran.ca> An HTML attachment was scrubbed... URL: From henryjoye at gmail.com Mon Oct 29 23:15:26 2007 From: henryjoye at gmail.com (James Zhou) Date: Tue, 30 Oct 2007 14:15:26 +1100 Subject: [vtkusers] How to incorporate a GLSL shader into the vtk pipeline Message-ID: Hi all, Could you please show me any information on how to incorporate a GLSL shader into the vtk pipeline? My shader is fragment shader written with OpenGL Shading Language. Thanks! James -------------- next part -------------- An HTML attachment was scrubbed... URL: From mayorga at cimat.mx Tue Oct 30 03:49:40 2007 From: mayorga at cimat.mx (Pedro Pablo Mayorga Alvarez) Date: Tue, 30 Oct 2007 01:49:40 -0600 Subject: [vtkusers] Compose with background Message-ID: <008e01c81ac9$6f314df0$4d93e9d0$@mx> I Want to draw a cylinder with a simply background (a Wall for example). I want this behavior: when i rotate the cylinder, then,the wall dont move. How can i do it? _____________________________________ Atte. M.C. Pedro Pablo Mayorga ?lvarez. pedro.mayorga at itesm.mx ITESM Campus Chiapas. -------------- next part -------------- An HTML attachment was scrubbed... URL: From weiwoo11 at yahoo.com Tue Oct 30 06:11:31 2007 From: weiwoo11 at yahoo.com (Wei Woo) Date: Tue, 30 Oct 2007 03:11:31 -0700 (PDT) Subject: [vtkusers] How to delete an element of a certain index from vtkArray Message-ID: <619012.99914.qm@web62203.mail.re1.yahoo.com> Dear vtk Friends, I am using vtkDoubleArray in my algorithm. How can I delete a particular element of the array and the array will be automatically resized? I did not find any similar function in the vtkDoubleArray. Does any one know any solution about this? Regards, Wei. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jprecio at adinet.com.uy Tue Oct 30 09:12:10 2007 From: jprecio at adinet.com.uy (Javier Preciozzi) Date: Tue, 30 Oct 2007 11:12:10 -0200 Subject: [vtkusers] How to know if an actor is visible on a scene Message-ID: <44AFAF4B-1596-420E-972D-769382F7B2E0@adinet.com.uy> Hi ! I have a simple question but I could not found any related information. I want to load or unload actors depending wether they are visible or not on the scene. This is mainly because I want to implement a 3D reconstruction of a geographical area which is very large, so I think that one possible solution is to generate several actors, and load/ unload while moving through the scene. The problem is that I dont find a way to determine if an actor is visible or not on the scene. What do you think ? Thanks, Javier From anka at bic.mni.mcgill.ca Tue Oct 30 10:49:49 2007 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Tue, 30 Oct 2007 09:49:49 -0500 Subject: [vtkusers] How to delete an element of a certain index from vtkArray In-Reply-To: <619012.99914.qm@web62203.mail.re1.yahoo.com> References: <619012.99914.qm@web62203.mail.re1.yahoo.com> Message-ID: <4727448D.6060108@bic.mni.mcgill.ca> RemoveTuple() ? Anka Wei Woo wrote: > Dear vtk Friends, > I am using vtkDoubleArray in my algorithm. How > can I delete a particular element of the array and the array will be > automatically resized? I did not find any similar function in the > vtkDoubleArray. Does any one know any solution about this? > Regards, > Wei. > > __________________________________________________ > Do You Yahoo!? > Tired of spam? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > >------------------------------------------------------------------------ > >_______________________________________________ >This is the private VTK discussion list. >Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >Follow this link to subscribe/unsubscribe: >http://www.vtk.org/mailman/listinfo/vtkusers > > From jharsh at lanl.gov Tue Oct 30 10:24:30 2007 From: jharsh at lanl.gov (Jim Harsh) Date: Tue, 30 Oct 2007 08:24:30 -0600 Subject: [vtkusers] vtk 5.0.3 and Tcl 8.4 Message-ID: <20071030142430.6F07F21C003@dx-mail.lanl.gov> I'm trying to use VTK after a long hiatus and have installed the latest releases, vtk 5.0.3 with tcl8.4 on my Win XP box. When I click on a .tcl file, the vtk.exe command window opens but I get an error box stating that "This application has failed to start because tcl84.dll was not found. Re-installing the application may fix this problem." It didn't, I tried reinstalling vtk and tcl/tk. What environment variables should be define? TC_LIBRARY, TCLLIBPATH are both pointing to the folder where tcl84.dll is residing. I looked in the FAQ and it talks about "fixes" to the ccmake process but states that it only for VTK 4.2 and the fixes will not be required for future releases. What did I miss? Thanks, Jim From anka at bic.mni.mcgill.ca Tue Oct 30 11:52:24 2007 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Tue, 30 Oct 2007 10:52:24 -0500 Subject: Re[vtkusers] garding surface reconstruction from point cloud in VTK In-Reply-To: <13473701.post@talk.nabble.com> References: <457D54E6.5010106@tu-bs.de> <13473701.post@talk.nabble.com> Message-ID: <47275338.1030403@bic.mni.mcgill.ca> Do not be afraid of TCL. Reading the code is very easy, just look at it. Maybe compare code of an example that is both in C++ and TCL, you will very soon get used to it. Grab any TCL download from the WEB, follow the installation instructions.You should build vtk wrapping TCL, so just do (...)/bin/vtk file.tcl. Anka saipritham wrote: >Dear All, > Iam very new to VTK and I have a similar problem. Could some one >please direct a working example in C++. > >The example mentioned is in TCL.I am presently working on VS and i am >looking for a working example in C++ > >Also, could some one help me in converting TCL code to C++ analogy. How do i >run TCL? > > >Thanks a lot >Sai > > > > > > > >Ismail Elkhrachy wrote: > > >>murali kuna wrote: >> >> >>>Dear Ismail, >>> >>> Can you please help me in the surface reconstruction >>>problem.I am having a point cloud (x,y,z) locations in 3D. I have to >>>create a surface from that point cloud. Can you please help me how to >>>do this in VTK. I am attaching the text document that contains the 3D >>>locations of the points with columns specify the x,y,z coordinates. >>> >>> Thanks in advance. >>> >>> >>>with regards >>>murali.kuna >>> >>> >>> >>>------------------------------------------------------------------------ >>>Find out what India is talking about on - Yahoo! Answers India >>> >>>Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. >>>Get it NOW >>> >>> >>>------------------------------------------------------------------------ >>> >>>-15.3132 -48.5375 -19.1005 >>>-24.6927 -58.7607 -51.0201 >>>-53.5381 -40.99 -47.7895 >>>-60.4989 -37.0847 -48.692 >>>-62.5269 -36.1658 -48.4515 >>>-53.7276 -35.8801 -44.3306 >>>-49.0656 -27.8981 -44.6875 >>>-46.4507 -21.0743 -44.8395 >>>-23.2007 -37.5067 -44.9793 >>>-23.254 -58.2916 -54.2331 >>>-24.3897 -55.4968 -54.6207 >>>-19.983 -63.2913 -54.438 >>>-22.664 -55.581 -55.7141 >>>-18.9579 -53.335 -54.3466 >>>-25.1648 -68.3347 -45.3731 >>>-21.7973 -66.4332 -46.8981 >>>-21.9081 -4.60033 -20.1566 >>>-19.3826 -10.9609 -11.7261 >>>-19.6212 -11.0188 -11.9289 >>>-20.3589 -11.8816 -21.9849 >>>-22.3951 -13.1618 -29.4319 >>>-17.5942 -18.293 -29.7664 >>>-14.0529 -28.2816 -32.2194 >>>-15.9832 -24.8981 -34.9349 >>>-16.5951 -32.2236 -39.7626 >>>-11.7985 -39.1311 -37.4521 >>>-15.095 -58.2294 -40.4553 >>>-25.6018 -81.8494 -33.4189 >>>-28.3902 -83.2021 -32.679 >>>-27.3883 -84.8447 -30.7829 >>>-52.3082 -75.3201 -43.1788 >>>-51.9746 -73.1331 -43.3878 >>>-59.9665 -68.4687 -44.4879 >>>-63.9401 -68.3036 -43.575 >>>-62.935 -64.1225 -45.287 >>>-69.3292 -52.4423 -46.9391 >>>-69.014 -49.2838 -48.539 >>>-71.5849 -44.2272 -49.5366 >>>-64.5873 -44.0273 -47.5144 >>>-73.4874 -38.6268 -46.9221 >>>-73.2674 -36.8797 -46.8127 >>>-60.3645 -35.5447 -43.5398 >>>-41.0401 -22.7522 -44.0808 >>>-40.0059 -20.1561 -43.7947 >>>-37.931 -75.7198 -14.6184 >>>-38.3014 -75.8031 -14.4249 >>>-39.5708 -80.2093 -11.5211 >>>-79.0023 -36.865 -31.4773 >>>-79.2889 -38.0171 -30.9088 >>>-76.5653 -41.7737 -25.3504 >>>-35.923 -71.2614 -11.2483 >>>-41.1814 -66.8657 -11.8254 >>>-51.9656 -46.7162 -15.8561 >>>-55.5637 -37.2839 -17.6058 >>>-56.2011 -35.3109 -18.877 >>>-54.9298 -36.4001 -16.9508 >>>-49.6226 -37.8879 -14.6085 >>>-26.1596 -15.6745 -13.5708 >>>-21.0667 -21.1972 -6.62659 >>>-25.4906 -16.6626 -13.0677 >>>-29.0853 -18.9612 -13.9734 >>>-21.2948 -29.2704 -8.00803 >>>-26.221 -23.1836 -9.9903 >>>-27.1278 -15.6761 -8.15604 >>>-47.3306 -40.9087 -13.1216 >>>-15.6826 -27.3042 -19.9435 >>>-34.2624 -19.0843 -19.5786 >>>-26.2104 -68.4784 -48.6368 >>>-62.5659 -40.8889 -49.6636 >>>-39.9545 -55.0922 -52.6696 >>>-48.0532 -73.9058 -42.7232 >>>-70.538 -71.7311 -42.552 >>>-70.8902 -71.6452 -42.4364 >>>-65.206 -76.9467 -39.8191 >>>-67.1722 -74.2311 -41.781 >>>-74.717 -62.7898 -50.011 >>>-74.717 -62.7898 -50.011 >>>-74.717 -62.7898 -50.011 >>>-74.717 -62.7898 -50.011 >>>-75.357 -61.62 -50.5794 >>>-63.0021 -54.8026 -48.326 >>>-73.3099 -51.5001 -50.7797 >>>-24.1063 -67.8018 -43.5822 >>>-36.9065 -22.5993 -39.5359 >>>-35.0599 -15.5504 -36.287 >>>-34.7649 -15.235 -35.2104 >>>-33.2899 -18.0444 -33.5633 >>>-34.1381 -15.9839 -34.9431 >>>-65.7059 -34.4236 -24.3274 >>>-60.9207 -37.9851 -20.2702 >>>-58.6644 -41.1217 -17.4352 >>>-75.3023 -49.2172 -46.5947 >>>-73.1916 -52.292 -46.3261 >>>-73.4857 -52.8462 -45.9416 >>>-80.6646 -43.3094 -37.0158 >>>-83.1769 -45.6942 -46.0363 >>>-84.1087 -46.186 -33.0227 >>>-85.6682 -55.885 -29.8012 >>>-84.6544 -67.2023 -27.116 >>>-85.527 -60.4318 -26.3543 >>>-79.8501 -71.3924 -36.0193 >>>-73.8632 -53.2026 -47.0972 >>>-70.8058 -60.6018 -44.966 >>>-73.6307 -68.9364 -45.3029 >>>-71.775 -73.397 -43.1312 >>>-45.01 -55.737 -50.6109 >>>-52.3519 -47.6041 -51.5004 >>>-85.6606 -53.0533 -27.7787 >>>-82.5662 -47.8126 -23.4433 >>>-83.7273 -47.664 -27.3021 >>>-80.2751 -42.5674 -40.177 >>>-76.5365 -38.8288 -24.7853 >>>-72.2973 -38.4002 -19.557 >>>-75.5021 -69.8566 -44.8403 >>>-74.5438 -67.6697 -46.2483 >>>-74.8959 -58.9295 -50.3162 >>>-79.9985 -73.3512 -38.6937 >>>-83.4004 -64.8501 -34.0624 >>>-85.2287 -58.3869 -33.0872 >>>-87.873 -54.2097 -31.9646 >>>-81.5342 -45.8635 -44.3582 >>>-80.9885 -52.6827 -47.0506 >>>-76.9498 -63.7505 -50.5776 >>>-81.1036 -72.6023 -44.1744 >>>-82.1153 -68.1152 -43.4155 >>>-82.2892 -66.5327 -31.7747 >>>-81.5806 -47.7003 -30.3421 >>>-76.1493 -41.3394 -35.3434 >>>-78.949 -45.1089 -42.0359 >>>-78.6424 -45.1904 -44.388 >>>-75.3888 -42.6605 -34.2269 >>>-41.5656 -33.7628 -50.1509 >>>-39.3532 -29.8831 -48.5824 >>>-37.4289 -29.5859 -48.5824 >>>-32.7079 -30.9484 -49.0895 >>>-27.6917 -32.7229 -48.9474 >>>-27.9246 -29.8606 -48.6352 >>>-29.2154 -28.0166 -47.2388 >>>-33.4301 -38.8709 -48.7533 >>>-29.2633 -33.2829 -47.5575 >>>-14.1426 -26.2842 -43.0246 >>>-12.0658 -32.5148 -40.384 >>>-13.8539 -39.0849 -45.2996 >>>-15.0614 -45.2048 -47.3178 >>>-26.3783 -18.9156 -38.6158 >>>-22.2158 -20.9171 -32.5338 >>>-24.8937 -14.1927 -36.8927 >>>-18.6357 -22.9622 -33.0949 >>>-37.6972 -24.3467 -41.3484 >>>-34.2343 -24.474 -42.2725 >>>-44.0477 -47.9314 -50.3285 >>>-38.2135 -47.9461 -50.1335 >>>-38.5531 -57.987 -50.706 >>>-18.7201 -58.0683 -46.3044 >>>-14.8541 -45.9524 -33.0264 >>>-42.3023 -55.5904 -51.1085 >>>-43.1293 -49.3323 -50.015 >>>-34.1596 -33.5507 -47.9661 >>>-28.4857 -39.2014 -44.8762 >>>-35.1931 -54.4481 -47.2349 >>>-42.7083 -55.6583 -48.7628 >>>-37.4512 -57.4793 -47.7379 >>>-33.7594 -65.1592 -44.9046 >>>-27.7403 -62.7486 -44.5149 >>>-36.3341 -27.4112 -43.2645 >>>-23.9813 -35.8812 -41.8482 >>>-30.822 -48.3199 -48.3565 >>>-31.1229 -52.0986 -51.3021 >>>-30.9119 -58.6207 -50.4914 >>>-41.2731 -62.3421 -49.2255 >>>-34.9644 -70.4158 -46.9936 >>>-44.0569 -37.236 -45.2383 >>>-30.1168 -28.1227 -44.4972 >>>-36.3116 -41.4595 -50.866 >>>-44.9187 -45.3819 -52.3119 >>>-48.8089 -47.8788 -51.8262 >>>-51.1864 -39.726 -50.6524 >>>-45.3048 -34.3323 -48.8416 >>>-34.9685 -30.5372 -48.2668 >>>-29.7542 -43.7687 -47.224 >>>-31.1238 -51.1637 -48.3063 >>>-29.1083 -61.9127 -45.6304 >>>-30.7722 -42.3342 -49.837 >>>-31.3412 -35.9524 -46.4553 >>>-26.9857 -34.8879 -46.6803 >>>-29.4396 -49.5558 -47.8927 >>>-31.5993 -53.4932 -49.8133 >>>-29.8134 -44.3027 -45.865 >>>-29.95 -47.3311 -47.6491 >>>-34.4382 -44.009 -48.3298 >>>-29.7824 -57.6831 -44.9023 >>>-33.9699 -60.4387 -47.8645 >>>-30.7376 -41.335 -54.3404 >>>-30.8674 -41.7893 -52.798 >>>-32.2062 -59.3381 -50.6543 >>>-31.9438 -43.4262 -53.1648 >>>-31.4696 -51.8199 -52.7129 >>>-32.9053 -55.642 -53.0324 >>> >>> >>> >>Look at \VTK\Examples\Modelling\Tcl\ reconstructSurface.tcl >> >>-- >>M.Sc. Ismail Elkhrachy >>PhD student >> >>Institut f?r Geod?sie und Photogrammetrie >>Technische Universit?t Braunschweig >>Gau?str. 22 >>38106 Braunschweig >>Germany >> >>Mob. : 0049 0163 3623486 >>Tel. : 0049 0531 3917497 >>Fax : 0049 0531 3917499 >>E-mail : I.Elkhrachy at tu-bs.de, I.Elkhrachy at yahoo.com >> >> >>_______________________________________________ >>This is the private VTK discussion list. >>Please keep messages on-topic. Check the FAQ at: >>http://www.vtk.org/Wiki/VTK_FAQ >>Follow this link to subscribe/unsubscribe: >>http://www.vtk.org/mailman/listinfo/vtkusers >> >> >> >> > > > From guanw at rhpcs.mcmaster.ca Tue Oct 30 12:21:09 2007 From: guanw at rhpcs.mcmaster.ca (Weiguang Guan) Date: Tue, 30 Oct 2007 12:21:09 -0400 (EDT) Subject: [vtkusers] Why data value range of volume affects its rendering --->I think it is a bug, please read my reply In-Reply-To: References: Message-ID: The intensity of volume is squeezed into 8-bit before being taken as 3D texture in vtkVolumeTextureMapper3D::UpdateVolumes(...). This explains the phenomenon in my earlier email. By reducing data intensity into [0-255] range one may lose details contained in original data. An extremely worse case is that a low-intensity volume with just one "bad voxel" that has VERY large intensity. In this case some useful structures will be washed off from volume rendering. My suggestion is to use the low and high in color/opacity transfer functions as a window of data range of interest for viewing, which are used in UpdateVolumes() and UpdateColorLookup(). Because users usually specify transfer function over data range that they are interested. Weiguang On Mon, 29 Oct 2007, James Zhou wrote: > Hi Weiguang, > > I am estimating the vtkVolumeTextureMapper3D these days. I found some > problems (maybe) about this class. This problem does answer your question > why the rendering is different from two different mappers. > > I am using vtk nightly source on Oct.16 2007. Here I present some cues on > the problem: > > First please read function "UpdateColorLookup" in class > vtkVolumeTextureMapper3D. We may assume our data type is unsigned char. We > also assume we use rgba color TF. So the the size of color TF write into the > ColorLookup is arraySizeNeeded as shown in the program. Line 1334 and line > 1339 gives us that the pipeline how to get the TF table from the TF user > interface with the scalar range of ( scalarRange[0], scalarRange[1]). > > rgbFunc->GetTable( scalarRange[0], scalarRange[1], > arraySizeNeeded, this->TempArray1 ); > > scalarOpacityFunc->GetTable( scalarRange[0], scalarRange[1], > arraySizeNeeded, this->TempArray2 ); > > Second please read Lines between 1368 to 1401 (we use one component data), > you can find that the program transfered TF table obtained before to the > ColorLookup. The problems appear here: > > The TF table obtained in Line 1334 and 1339 is used for the scalar range of > ( scalarRange[0], scalarRange[1]). But between lines 1368 to 1401 > transferring step, the TF table is set to the range of (0, arraySizeNeeded). > Please be aware that: > ( arraySizeNeeded = (int)(scalarRange[1] - scalarRange[0] + 1);) > > So the transfer function got from the TF user interface is applied to the > wrong scalar range, that's why the rendering images created from two mappers > are different. > > I hope to get your feedback about this. I also hope that VTK can correct > this bug. Because the new graphics card supports non-power 2 texture size, > the vtkVolumeTextureMapper3D should also be updated for this change. > > Good luck! > > James > > > > > > > 2007/10/27, Weiguang Guan : >> >> Hi all, >> >> I recently notice an issue (maybe a bug) with volume rendering algorithms >> (vtkVolumeTextureMapper3D and vtkVolumeRayCastMapper), and cannot find a >> posting reporting the issue in the mailing list. >> >> I have a a scalar volume of vtkImagedata whose value ranges from 0 to >> 7035. By thresholding it at 255, I generate another volume with value >> range [0-255]. Then, I do volume renderings (both vtkVolumeTextureMapper3D >> and vtkVolumeRayCastMapper) of them seperately with the same opacity >> transfer function: >> >> vtkPiecewiseFunction opacityTransferFunction >> opacityTransferFunction AddPoint 50 0.0 >> opacityTransferFunction AddPoint 255 0.2 >> opacityTransferFunction ClampingOff >> >> Should I expect to have exactly the same renderings? Rendering with >> vtkVolumeTextureMapper3D produces a great difference while rendering with >> vtkVolumeRayCastMapper produces a slightly difference but still >> noticeable. Can anybody explain why? >> >> I have a tcl script to reproduce the "bug", and can let you have it if >> you're interested. >> >> Weiguang >> >> _______________________________________________ >> This is the private VTK discussion list. >> Please keep messages on-topic. Check the FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > From ManuelDavid.Tabas at alu.uclm.es Tue Oct 30 13:40:17 2007 From: ManuelDavid.Tabas at alu.uclm.es (TABAS CALLE, MANUEL DAVID) Date: Tue, 30 Oct 2007 18:40:17 +0100 Subject: [vtkusers] About vtkImageReader Message-ID: <200710301840.AA1225130156@alu.uclm.es> I?m trying to use vtkImageReader to do a program similar to Medical1.cxx, but I don?t know what type of files vtkImageReader can read and how to read all the slices of my data. Thank you. ___________________________________________________ Enviado a trav?s de http://alumnos.uclm.es/webmail From m26404030 at john.petra.ac.id Tue Oct 30 13:51:36 2007 From: m26404030 at john.petra.ac.id (m26404030 at john.petra.ac.id) Date: Wed, 31 Oct 2007 00:51:36 +0700 Subject: [vtkusers] similarity between two images (compare two images) Message-ID: <20071031005136.equ4ojjqt7owsc00@webmail.petra.ac.id> hi all, i want to ask a question... i have three 2D images, lets say image I, image II, and image III. and suppose i use image I as reference image. i want to determine/compare the similarity between image II and image I , and between image III and image I. (comparing based on their shape or pixel??) i need this because i have to choose one image which have more similarity with image I.. is there a vtk class to do this? or maybe someone know the algorithm to solve this problem.. thanx for the reply..^^ sorry if my english is bad.. From goodwin.lawlor at ucd.ie Tue Oct 30 14:10:37 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 30 Oct 2007 18:10:37 +0000 Subject: [vtkusers] Re: Compose with background In-Reply-To: <008e01c81ac9$6f314df0$4d93e9d0$@mx> References: <008e01c81ac9$6f314df0$4d93e9d0$@mx> Message-ID: Pedro, You can have a look how its done here: http://www.bioengineering-research.com/vtk/BackgroundImage.tcl hth Goodwin Pedro Pablo Mayorga Alvarez wrote: > I Want to draw a cylinder with a simply background (a Wall for example). > > I want this behavior: when i rotate the cylinder, then,the wall dont move. > > How can i do it? > > *_____________________________________* > > * * > > *Atte.* > > *M.C. Pedro Pablo Mayorga ?lvarez.* > > *pedro.mayorga at itesm.mx * > > *ITESM Campus Chiapas. * > > > > > ------------------------------------------------------------------------ > > _______________________________________________ > This is the private VTK discussion list. > Please keep messages on-topic. Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers From lxw4393 at rit.edu Tue Oct 30 15:26:16 2007 From: lxw4393 at rit.edu (Linwei Wang) Date: Tue, 30 Oct 2007 15:26:16 -0400 Subject: [vtkusers] Linking problem using vtk 5.0 with gcc and eclipse CDT on Mac OS Message-ID: <1F1A8A92-3D68-4330-9CD0-0DD6B1DBBB8B@rit.edu> Dear all, I used to use VTK on windows with C++, and recently I'm trying to switch to Mac OS 10.4.6..I'm using gcc with Eclipse CDT, and I've run into some situations similar to some articles I searched here. But I couldn't find a solution to it.....This should be a linking problem..... I've added the header & library file to the include and link path..but there are still all "undefined symbol"......Actually when I try to use matlab engine in another program it got the same linking problem of "undefined symbol"~~~I think it should be related to the library linking problem, but I could not figure out the reason.... After compiling, the linking error simply shows as: *** Build of configuration Debug for project VTKTest **** make all Building target: VTKTest Invoking: MacOS X C++ Linker g++ -L/Users/maomaowlw/Develop/VTKBuild/bin -o "VTKTest" ./ Rendering.o ./compare.o ./interactive.o ./srendering.o ./tool.o ./ vrendering.o /usr/bin/ld: Undefined symbols: vtkDataSet::GetScalarRange() vtkRenderer::New() vtkRenderer::AddActor(vtkProp*) vtkAlgorithm::GetOutputPort(int) vtkTIFFWriter::New() vtkClipDataSet::New() vtkLookupTable::SetTableRange(double*) vtkLookupTable::SetNumberOfTableValues(int) vtkLookupTable::New() vtkRenderWindow::New() vtkGeometryFilter::New() vtkPolyDataMapper::New() vtkPolyDataMapper::SetInput(vtkPolyData*) vtkPolyDataNormals::New() vtkUnstructuredGrid::New() vtkPolyDataAlgorithm::SetInput(vtkDataObject*) vtkPolyDataAlgorithm::GetOutput() vtkWindowToImageFilter::New() vtkWindowToImageFilter::SetInput(vtkWindow*) vtkRenderWindowInteractor::SetRenderWindow(vtkRenderWindow*) vtkRenderWindowInteractor::New() vtkUnstructuredGridAlgorithm::SetInput(vtkDataObject*) vtkUnstructuredGridAlgorithm::GetOutput() vtkActor::New() vtkPlane::New() vtkCutter::New() vtkMapper::SetLookupTable(vtkScalarsToColors*) vtkProp3D::AddPosition(double, double, double) vtkProp3D::RotateX(double) vtkProp3D::RotateZ(double) vtkPolyData::New() vtkPointWidget::GetPolyData(vtkPolyData*) vtkPointWidget::New() vtkProbeFilter::New() vtkProbeFilter::SetSource(vtkDataObject*) vtkPointLocator::New() vtkDataSetAlgorithm::SetInput(vtkDataSet*) vtkDataSetAlgorithm::GetOutput() vtkIdList::New() vtkActor2D::SetWidth(double) vtkActor2D::SetHeight(double) vtkProperty::New() vtkProperty::SetColor(double, double, double) vtkLookupTable::SetTableValue(int, double, double, double, double) vtkTextProperty::New() vtkContourFilter::New() vtkContourValues::GenerateValues(int, double, double) vtkDataSetMapper::New() vtkDataSetMapper::SetInput(vtkDataSet*) vtkRotationFilter::New() vtkScalarBarActor::New() vtkTransformFilter::New() vtkAbstractTransform::Update() vtkPointSetAlgorithm::SetInput(vtkPointSet*) vtkPointSetAlgorithm::GetOutput() vtkSmoothPolyDataFilter::New() vtkIterativeClosestPointTransform::New() vtkIterativeClosestPointTransform::SetSource(vtkDataSet*) vtkIterativeClosestPointTransform::SetTarget(vtkDataSet*) vtkActor::GetProperty() vtkActor::SetProperty(vtkProperty*) vtkProp3D::RotateY(double) vtkPolyData::InsertNextCell(int, int, int*) vtkPolyData::Allocate(int, int) vtkRenderer::ResetCamera() vtkCellArray::New() vtkDoubleArray::New() vtkUnstructuredGrid::InsertNextCell(int, vtkIdList*) vtkDataArrayTemplate::SetNumberOfValues(int) vtkDataArrayTemplate::WritePointer(int, int) vtkDataSetAttributes::SetScalars(vtkDataArray*) vtkTetra::New() vtkPoints::New() vtkRenderer::GetActiveCamera() vtkRenderer::AddLight(vtkLight*) vtkRenderer::AddVolume(vtkProp*) vtkVolumeProperty::SetScalarOpacity(int, vtkPiecewiseFunction*) vtkVolumeProperty::New() vtkVolumeProperty::SetColor(int, vtkColorTransferFunction*) vtkPiecewiseFunction::New() vtkPiecewiseFunction::AddPoint(double, double) vtkColorTransferFunction::AddRGBPoint(double, double, double, double) vtkColorTransferFunction::New() vtkUnstructuredGridVolumeRayCastMapper::New() vtkUnstructuredGridBunykRayCastFunction::New() vtkLight::New() vtkCamera::SetPosition(double, double, double) vtkCamera::SetFocalPoint(double, double, double) vtkCamera::ComputeViewPlaneNormal() vtkCamera::SetViewUp(double, double, double) vtkVolume::SetProperty(vtkVolumeProperty*) vtkVolume::New() vtkVolume::SetMapper(vtkAbstractVolumeMapper*) collect2: ld returned 1 exit status make: *** [VTKTest] Error 1 Is there anyone familiar with this problem?? I've spent much time to figure it out...I will be very appreciated with your help Sincerely, Linwei -------------- next part -------------- An HTML attachment was scrubbed... URL: From goodwin.lawlor at ucd.ie Tue Oct 30 16:37:42 2007 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Tue, 30 Oct 2007 20:37:42 +0000 Subject: [vtkusers] Re: vtk 5.0.3 and Tcl 8.4 In-Reply-To: <20071030142430.6F07F21C003@dx-mail.lanl.gov> References: <20071030142430.6F07F21C003@dx-mail.lanl.gov> Message-ID: <47279616.9090301@ucd.ie> Hi Jim, Did you build vtk? Sounds like tcl84.dll is not in your path. Alternatively, you can try http://www.bioengineering-research.com/vtk/vtkit.htm to download a vtk/tcl stand-alone executable. hth Goodwin Jim Harsh wrote: > I'm trying to use VTK after a long hiatus and have installed the latest > releases, vtk 5.0.3 with tcl8.4 on my Win XP box. When I click on a .tcl > file, the vtk.exe command window opens but I get an error box stating > that "This application has failed to start because tcl84.dll was not > found. Re-installing the application may fix this problem." It didn't, I > tried reinstalling vtk and tcl/tk. What environment variables should be > define? TC_LIBRARY, TCLLIBPATH are both pointing to the folder where > tcl84.dll is residing. > I looked in the FAQ and it talks about "fixes" to the ccmake process but > states that it only for VTK 4.2 and the fixes will not be required for > future releases. > > What did I miss? > > Thanks, > Jim > > > _______________________________________________ > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > From mstucky5 at cox.net Tue Oct 30 17:26:06 2007 From: mstucky5 at cox.net (Mark B Stucky) Date: Tue, 30 Oct 2007 17:26:06 -0400 Subject: [vtkusers] vtk 5.0.3 and Tcl 8.4 In-Reply-To: <20071030142430.6F07F21C003@dx-mail.lanl.gov> References: <20071030142430.6F07F21C003@dx-mail.lanl.gov> Message-ID: <4727A16E.6020404@cox.net> Jim Harsh wrote: > I'm trying to use VTK after a long hiatus and have installed the latest > releases, vtk 5.0.3 with tcl8.4 on my Win XP box. When I click on a .tcl > file, the vtk.exe command window opens but I get an error box stating > that "This application has failed to start because tcl84.dll was not > found. Re-installing the application may fix this problem." It didn't, I > tried reinstalling vtk and tcl/tk. What environment variables should be > define? TC_LIBRARY, TCLLIBPATH are both pointing to the folder where > tcl84.dll is residing. > I looked in the FAQ and it talks about "fixes" to the ccmake process but > states that it only for VTK 4.2 and the fixes will not be required for > future releases. > > What did I miss? > > Thanks, > Jim You might try setting the "TCLLIBPATH" environment variable... I set mine with the following: export TCLLIBPATH=C:/Utils/vtk/bin/Wrapping/Tcl/Debug Note: Your path and shell will probably be different... --Mark From pritham1002 at yahoo.co.in Tue Oct 30 19:48:11 2007 From: pritham1002 at yahoo.co.in (sai pritham) Date: Wed, 31 Oct 2007 05:18:11 +0530 (IST) Subject: [vtkusers] Re: vtk+ point cloud reconstructiong Message-ID: <487464.6890.qm@web94513.mail.in2.yahoo.com> Hi , I have a task of generating a surface from point data set. I have text file containing x y and z coordinates. The link mentioned in this email http://public.kitware.com/pipermail/vtkusers/attachments/20060526/257e3317/ReconstructSurface.obj doesn't seem to work. The following snippet seems to be wrong with the code int iNo = points->GetNumberOfPoints(); for (int i=0; iInsertNextCell(1,&i); data->SetPolys(polys); polys->Delete(); Could some one please help me with getting the proper code. I have done the following modification to the code int iNo = points->GetNumberOfPoints(); for (int i=0; iSetPolys(polys); } polys->Delete(); The result is that i get a arbitrary surface and at an offset distrance from the cloud of points. What i needed is the surface to be generated out of these points. Thanks a lot for your time Could some one modify the code and help me in getting the surface at the proper location Thanks Sai original message .... Hi, this might help. greets Ingo --- Dr.-Ing. Ingo H. de Boer Polytec GmbH Polytec-Platz 1-7, 76337 Waldbronn, Germany phone: ++49 7243 604 106 fax : ++49 7243 604 255 -----Original Message----- Subject: [vtkusers] vtk+ point cloud reconstructiong hi! Does anyone do the "from 3D point cloud to surface" using vtk! I only have the xyz of point cloud ,and I want to reconstruct the surface from the xyz. I am new guy to vtk! what should i do ,using vtk? Any help is appreciated. -------------- next part -------------- A non-text attachment was scrubbed... Name: ReconstructSurface.cpp Type: application/octet-stream Size: 4438 bytes Desc: ReconstructSurface.cpp Url : http://public.kitware.com/pipermail/vtkusers/attachments/20060526/257e3317/ReconstructSurface.obj Find a mall, hotel or ATM in any part of India. Go to http://in.maps.yahoo.com From lars.hegenbart at hs.fzk.de Wed Oct 31 08:42:03 2007 From: lars.hegenbart at hs.fzk.de (Lars Hegenbart) Date: Wed, 31 Oct 2007 13:42:03 +0100 Subject: [vtkusers] how to speed up vtkVoxelModeller? References: Message-ID: Dear VTK-Users, I am using vtkVoxelModeller (vtk5.0) to voxelise polygonal mesh (e.g. surface model made out off some ten-thousands quads). The target voxel dimensions are about 90 x 50 x 300 = 1.35e6. The problem is, that is very slow. On a WinXP Pentium4, 3.4 GHz machine it takes days to get one surface model voxelised. How can I possibly speed up vtkVoxelModeller? Here comes my code: vtkPolyData *polyOrgan = vtkPolyData::New(); polyOrgan->SetPoints(points); // points are generated before points->Delete(); polyOrgan->SetPolys(polys); // polys are generated before polys->Delete(); vtkCleanPolyData *polyOrganClean = vtkCleanPolyData::New(); polyOrganClean->SetInput(polyOrgan);// get rid of double definitions vtkVoxelModeller *voxelmacher = vtkVoxelModeller::New(); voxelmacher->SetSampleDimensions(90,50,300); voxelmacher->SetModelBounds( /* box just around the polydata */ ); voxelmacher->SetInput(polyOrganClean->GetOutput()); vtkDataSetWriter *aWriter = vtkDataSetWriter::New(); aWriter->SetFileName("afile.vtk"); aWriter->SetInputConnection(voxelmacher->GetOutputPort()); A performance check told me the following cpu-time fractions when my code running: 36.7% vtkQuad::EvaluatePosition(double*, double*, int&, double*, double&, double*) 19.4% vtkDataArrayTemplate::GetTuple(int, double*) 7.1% vtkPoints::GetPoint(int, double*) 4.5% vtkTriangle::ComputeNormal(double*, double*, double*, double*) 3.5% vtkQuad::InterpolationFunctions(double*, double*) 3.4% vtkQuad::InterpolationDerivs(double*, double*) Thanks in advance for any hints to speed up vtkVoxelModeller! Best regards Lars From nkwmailinglists at gmail.com Wed Oct 31 10:16:37 2007 From: nkwmailinglists at gmail.com (kent williams) Date: Wed, 31 Oct 2007 09:16:37 -0500 Subject: [vtkusers] Questions about implementing an enhanced VTK tracing facility. Message-ID: <44f773f50710310716q464e9259jc8bfe48ae23b8ee0@mail.gmail.com> I've been assigned the task of writing a new brain anatomy tracer. The goal of this program is to allow a user to manually trace a feature of brain anatomy in 3 Dimensions. I've done a quick prototype of this application using the vtkViewImage2DWithTracer widget, part of the vtkINRIA3D library ( http://www-sop.inria.fr/asclepios/software/vtkINRIA3D/index.php ). The work done as part of the vtinria3d project adds a lot of value to VTK and KWWidgets applications, but I need to integrate different behaviors into them. I'm writing to ask for suggestions of the best way to go about doing this. My goal is a tracer that can be used to generate a three-dimensional profile. This would differ from vtkViewImage2DWithTracer in these ways: 1. Instead of managing one outline, I need to allow one or more outlines per image slice. Internally this would be represented by a Map of sets of one or more outline (vtkPoints objects), indexed by the slice number. 2. When the user changes slices, only those outlines associated with the current slice are displayed. 3. Outlines should be visible, but not editable, when not in outline creation/edit mode. I know some of what is necessary for implementation: 1. Associate the map of outline sets with the viewer. 2. When the user change slices, change the points associated with the vtkImageTracerWidget. 3. Add actors to display the outlines not currently being created or edited. I'm new to VTK, so I'm don't completely understand all the interaction between the various VTK objects that control display and interaction of the outlines, and how to manipulate them. But a more immediate question is this: What is the best way to radically modify the behavior of existing vtk composite objects like vtkViewImage2DWithTracer? I can use the existing class, and maintain my outlines data structure outside of the class, but it seems like there are ways I'll need to change the internals to get the behavior I need. vtkViewImage2DWithTracer doesn't lend itself to subclassing, as none of the member functions I'd want to change are virtual. An even bigger challenge is to change the behavior of vtkImageTracerWidget. I thinks some of the event bindings are not optimal. 1. The left mouse button always returns the tracer to the ground state -- any existing trace is destroyed and you have to start over. Since the left mouse click is the single most common user mouse action, the result I've seen when people try to use the tracer is that they do a trace, and then click somewhere else in the viewport, and their trace goes away. 2. There are two trace modes -- free draw and rubber-band outline. You can edit a rubber band profile by moving vertices, adding vertices or deleting vertices, but a free draw outline can't be edited, just redone. Again vtkImageTracerWidget isn't particularly configurable without modification, and doesn't lend itself to subclassing. The quickest way to move forward with this project would be to copy the vtkViewImage2DWithTracer and vtkImageTracerWidget classes and modify them directly, but this doesn't seem optimal from a software development standpoint, as I end up with divergent classes that don't leverage the existing class hierarchies. The most useful example of properly done tracing is in applications like Photoshop or The Gimp: You can draw an outline defining a selection, and add to or subtract from it after the initial tracing is done. Ideally the tracer would behave very close to the way Photoshop selection behaves, though I don't think I have the time or patience to implement everything Photoshop does. From vtkusers at yoshinet.net Wed Oct 31 12:16:26 2007 From: vtkusers at yoshinet.net (David Vos) Date: Wed, 31 Oct 2007 10:16:26 -0600 Subject: [vtkusers] Running VTK on Linux, remote display to Sun 5.8 Message-ID: <16e39c510710310916l63750756i1fc538c689751d83@mail.gmail.com> Hello, I am running VTK 5.0.1 on Linux, Fedora Core 4. It runs fine when I run vtk on Linux, and display to my Mac. However, if I display to a Sun (SunOS 5.8), the program fails with the error: GLXUnsupportedPrivateRequest eventtype=0 resourceid=13 serial=411631 error_code=154 request_code=154 minor_code=17 I have tracked it down in vtkOpenGLTexture::Load(), where we are doing an "#ifdef GL_VERSION_1_1", then glGenTextures(). I have been able to avoid the error if I edit vtkOpenGLTexture.cxx and add the line "#undef GL_VERSION_1_1". It is interesting to note that on the Sun, GL/gl.h defines GL_VERSION_1_1. Is there a better way to avoid the error? What would be the best approach to my problem? Thanks, -David Vos From ManuelDavid.Tabas at alu.uclm.es Wed Oct 31 13:55:49 2007 From: ManuelDavid.Tabas at alu.uclm.es (TABAS CALLE, MANUEL DAVID) Date: Wed, 31 Oct 2007 18:55:49 +0100 Subject: [vtkusers] How to make a .pic file Message-ID: <200710311855.AA274923848@alu.uclm.es> I have some programs in vtk/java that can make a 3d object from a biorad .pic format,a format with a header of 76 bits and pictures (for exmple, it can contain lots slices to make a 3d object). I have the slices in .ppm and i want to make the 3d object, so i need to pass my 40 ppm slices to 1 biorad .pic. Does anybody can help me how to do it???? Thanks. ___________________________________________________ Enviado a trav?s de http://alumnos.uclm.es/webmail From Andy.Selvig at goodrich.com Wed Oct 31 15:50:17 2007 From: Andy.Selvig at goodrich.com (Selvig, Andy) Date: Wed, 31 Oct 2007 14:50:17 -0500 Subject: [vtkusers] Null vtkFloatArray pointer in vtkPoints::vtkPoints() Message-ID: <3F87CD0E4C05F14F82DE9F704A6F255B03971B01@msp0ex01.goodrich.root.local> VTK Users- I'm having an issue creating vtkPoints. Here's my setup: Windows XP, MSVC2005 VTK 5.0.3 dll debug Basically, vtkFloatArray::New() is creating a null pointer in vtkPoints::vtkPoints() : // from vtkpoints.cxx, line 56 vtkPoints::vtkPoints(int dataType) { this->Data = vtkFloatArray::New(); // value returned here is 0x00000000 this->Data->Register(this); // access violation raised here this->Data->Delete(); this->SetDataType(dataType); ... Understandably, an access violation is caused when a method is called on Data. I don't understand what would cause a constructor to return a null pointer. This particular constructor is called several dozen times before this error occurs. Here's the last chunk of my code in the stack: // create the points points = vtkPoints::New(); // error here points->SetNumberOfPoints(nPoints); points->SetData(gridData); gridData->Delete(); // create the polydata gridPolyData = vtkPolyData::New(); gridPolyData->SetPoints(points); gridPolyData->SetLines(cellArray); points->Delete(); cellArray->Delete(); // create mapper and actor m_gridMappers[i]->SetInput(gridPolyData); m_gridActors[i]->SetMapper(m_gridMappers[i]); gridPolyData->Delete(); The error happens on the first line. This whole chunk is inside a loop that executes several times before the error. gridData and cellArray are a vtkFloatArray and vtkCellArray that keep being re-instantiated each time through the loop. m_gridActors and m_gridMappers are arrays of vtkPolyDataMappers and vtkActors. Does anyone know why something like this would happen? Thanks in advance for your help. Regards, Andy Selvig From f.braennstroem at gmx.de Wed Oct 31 19:26:07 2007 From: f.braennstroem at gmx.de (Fabian Braennstroem) Date: Wed, 31 Oct 2007 23:26:07 +0000 Subject: [vtkusers] Re: Re: calculate normal of boundary References: Message-ID: Hi Pierre Barbier, Pierre Barbier de Reuille wrote: > Hello, > > so reading the file is the easy part. For that, you want to use > vtkImageReader2 (see documentation). > As for the normal of the boundary, the first question is: how is defined > this boundary? > If this is defined as an iso-surface of some function, then you can use > the vtkMarchingContourFilter object to find it and then vtkPolyDataNormals > to get the normals of your surface it should work. If you get the mesh by > any other means, you can still use vtkPolyDataNormals to get the normals > to the mesh. Thanks for your help! Maybe I forgot to explain, I read an ensight or vtk formated data file, so there might be a chance to get the wanted face directly... thanks! Fabian From danjwilson at gmail.com Wed Oct 31 18:30:27 2007 From: danjwilson at gmail.com (Dan Wilson) Date: Wed, 31 Oct 2007 23:30:27 +0100 Subject: [vtkusers] Cocoa VTK on Mac OS X 10.5 Message-ID: Hi, I'm trying to build the SimpleCocoaVTK example project from http://www.vtk.org/Wiki/Cocoa_VTK using Mac OS X 10.5 (Leopard), without success. While the VTK build itself appears to work correctly, the Xcode build of SimpleCocoaVTK fails during the linking stage with the errors below. I'm using an Intel Mac, and up-to-date source from the VTK CVS server. The relevant parts of CMakeCache.txt are: CMAKE_OSX_ARCHITECTURES:STRING=i386 CMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk VTK_USE_CARBON:BOOL=OFF VTK_USE_COCOA:BOOL=ON Has anyone else had any luck getting VTK to work on Leopard? Thanks, Dan Wilson. "___cxa_guard_abort", referenced from: vtkTimeStamp::Modified() in libvtkCommon.a(vtkTimeStamp.o) "___stderrp", referenced from: ___stderrp$non_lazy_ptr in libvtksys.a(SystemTools.o) ___stderrp$non_lazy_ptr in libvtktiff.a(tif_unix.o) ___stderrp$non_lazy_ptr in libvtkjpeg.a(jerror.o) ___stderrp$non_lazy_ptr in libvtkpng.a(pngrutil.o) ___stderrp$non_lazy_ptr in libvtkpng.a(pngerror.o) "_strerror$UNIX2003", referenced from: vtksys::SystemTools::GetLastSystemError() in libvtksys.a(SystemTools.o) vtkErrorCode::GetStringFromErrorCode(unsigned long)in libvtkCommon.a(vtkErrorCode.o) "_sysconf", referenced from: vtkMultiThreader::GetGlobalDefaultNumberOfThreads() in libvtkCommon.a(vtkMultiThreader.o) "std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)", referenced from: std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::erase(std::_Rb_tree_iterator >)in libvtkRendering.a(vtkRenderWindowInteractor.o) std::_Rb_tree >, std::_Select1st > >, std::less, std::allocator > > >::erase(std::_Rb_tree_iterator > >)in libvtkRendering.a(vtkProperty.o) std::_Rb_tree, std::_Select1st >, vtkObserverCompare, std::allocator > >::erase(std::_Rb_tree_iterator >)in libvtkRendering.a(vtkObserverMediator.o) std::_Rb_tree, std::less, std::allocator > ::erase (std::_Rb_tree_iterator)in libvtkCommon.a(vtkGarbageCollector.o) std::_Rb_tree, std::_Select1st >, std::less, std::allocator > >::erase(std::_Rb_tree_iterator >)in libvtkCommon.a(vtkGarbageCollector.o) "std::basic_stringstream, std::allocator >::str() const", referenced from: void vtkXMLDataElementVectorAttributeSet(vtkXMLDataElement*, char const*, int, unsigned long const*)in libvtkIO.a(vtkXMLDataElement.o) void vtkXMLDataElementVectorAttributeSet(vtkXMLDataElement*, char const*, int, int const*)in libvtkIO.a(vtkXMLDataElement.o) void vtkXMLDataElementVectorAttributeSet(vtkXMLDataElement*, char const*, int, float const*)in libvtkIO.a(vtkXMLDataElement.o) void vtkXMLDataElementVectorAttributeSet(vtkXMLDataElement*, char const*, int, double const*)in libvtkIO.a(vtkXMLDataElement.o) "std::basic_string, std::allocator >::replace(unsigned long, unsigned long, char const*)", referenced from: vtksys::SystemTools::ConvertToUnixSlashes(std::basic_string, std::allocator >&)in libvtksys.a(SystemTools.o) vtksys::SystemTools::ConvertToUnixSlashes(std::basic_string, std::allocator >&)in libvtksys.a(SystemTools.o) ... and so on. From sean at rogue-research.com Wed Oct 31 18:40:18 2007 From: sean at rogue-research.com (Sean McBride) Date: Wed, 31 Oct 2007 18:40:18 -0400 Subject: [vtkusers] Cocoa VTK on Mac OS X 10.5 In-Reply-To: References: Message-ID: <20071031224018.1038713259@smtp1.sympatico.ca> On 10/31/07 11:30 PM, Dan Wilson said: >I'm trying to build the SimpleCocoaVTK example project from http:// >www.vtk.org/Wiki/Cocoa_VTK > using Mac OS X 10.5 (Leopard), without success. I've _just_ put a new version, 1.3, online. You can be the 1st tester. :) >While the VTK build itself appears to work correctly, the Xcode build >of SimpleCocoaVTK fails during the linking stage with the errors below. It looks like VTK and SimpleCocoaVTK are not being built with the same SDK and deployment target. Since you have: >CMAKE_OSX_ARCHITECTURES:STRING=i386 >CMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk Make sure that SimpleCocoaVTK is also using the same SDK and that "deployment target" is set to 10.4. Or rebuild VTK and SimpleCocoaVTK both with the 10.5 SDK and 10.5 deployment target. Please let me know how it goes. Thanks, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From danjwilson at gmail.com Wed Oct 31 19:20:52 2007 From: danjwilson at gmail.com (Dan Wilson) Date: Thu, 1 Nov 2007 00:20:52 +0100 Subject: [vtkusers] Cocoa VTK on Mac OS X 10.5 In-Reply-To: <20071031224018.1038713259@smtp1.sympatico.ca> References: <20071031224018.1038713259@smtp1.sympatico.ca> Message-ID: <0125D923-4C42-4283-9146-000A05643289@gmail.com> Thanks for the extremely prompt response! > I've _just_ put a new version, 1.3, online. You can be the 1st > tester. :) > From the instructions here, I switched to using the system zlib, which I wasn't doing before. That seemed to cut down the number of linker errors from ~ 40 to 12. > It looks like VTK and SimpleCocoaVTK are not being built with the same > SDK and deployment target. Since you have: > >> CMAKE_OSX_ARCHITECTURES:STRING=i386 >> CMAKE_OSX_SYSROOT:STRING=/Developer/SDKs/MacOSX10.4u.sdk > > Make sure that SimpleCocoaVTK is also using the same SDK and that > "deployment target" is set to 10.4. I was building with the 10.4u SDK in both cases. :( So what this leaves me with is the following linker errors, which all look fairly similar: "_strerror$UNIX2003", referenced from: vtksys::SystemTools::GetLastSystemError() in libvtksys.a(SystemTools.o) vtkErrorCode::GetStringFromErrorCode(unsigned long)in libvtkCommon.a(vtkErrorCode.o) "_close$UNIX2003", referenced from: __tiffCloseProc in libvtktiff.a(tif_unix.o) "_strtod$UNIX2003", referenced from: _vtk_png_handle_sCAL in libvtkpng.a(pngrutil.o) _vtk_png_handle_sCAL in libvtkpng.a(pngrutil.o) "_usleep$UNIX2003", referenced from: vtksys::SystemTools::Delay(unsigned int)in libvtksys.a(SystemTools.o) vtksys::SystemTools::Delay(unsigned int)in libvtksys.a(SystemTools.o) "_mktime$UNIX2003", referenced from: vtksys::SystemTools::ConvertDateMacroString(char const*, long*)in libvtksys.a(SystemTools.o) vtksys::SystemTools::ConvertTimeStampMacroString(char const*, long*)in libvtksys.a(SystemTools.o) "_open$UNIX2003", referenced from: _vtk_TIFFOpen in libvtktiff.a(tif_unix.o) "_write$UNIX2003", referenced from: __tiffWriteProc in libvtktiff.a(tif_unix.o) "_sleep$UNIX2003", referenced from: vtksys::SystemTools::Delay(unsigned int)in libvtksys.a(SystemTools.o) "_read$UNIX2003", referenced from: __tiffReadProc in libvtktiff.a(tif_unix.o) "_realpath$DARWIN_EXTSN", referenced from: Realpath(char const*, std::basic_string, std::allocator >&)in libvtksys.a(SystemTools.o) "_clock$UNIX2003", referenced from: vtkTimerLog::GetCPUTime() in libvtkCommon.a(vtkTimerLog.o) "_chmod$UNIX2003", referenced from: vtksys::SystemTools::SetPermissions(char const*, unsigned short)in libvtksys.a(SystemTools.o) ld: symbol(s) not found collect2: ld returned 1 exit status Any ideas? The only other deviation from your instructions is that I'm not building universal binaries, just i386. Dan. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jzj109 at engr.psu.edu Wed Oct 31 19:48:23 2007 From: jzj109 at engr.psu.edu (Joby John) Date: Wed, 31 Oct 2007 19:48:23 -0400 Subject: [vtkusers] [Fwd: callback to manipulate actors?] Message-ID: <47291447.8040306@engr.psu.edu> Hello VTK users, I am new to VTK and I am trying to use "callback" to change the position of one of the actors in my renderWindow. How do I pass the actor (say for example an instance of vtkCylinderSource) to the callback and use SetCenter to move its position. My callback code looks as follows, %%%%%%%%%%%%%%%%%%%% class vtkMyCallback : public vtkCommand { public: static vtkMyCallback *New() { return new vtkMyCallback; } virtual void Execute(vtkObject *caller1, unsigned long, void*) { vtkRenderWindowInteractor *interact = reinterpret_cast(caller1); char* key = interact->GetKeySym(); if (*key=='n') { // How to change the position of the actor described below. Say using SetCenter(); } } %%%%%%%%%%%%%%%%%%%%%%%%%% The actor is defined in the main code as such vtkCylinderSource *C1 = vtkCylinderSource::New(); C1->SetCenter(5,1.5,0); C1->SetRadius(2); C1->SetHeight(1); C1->SetResolution(24); %%%%%%%%%%%%%%%%%%%%%%%%%% Thanks in advance, Joby.