From ken.martin at kitware.com Thu Feb 17 13:09:05 2000 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 17 Feb 2000 13:09:05 -0500 Subject: Test Message Message-ID: <4.2.0.58.20000217130729.00cf5740@pop.nycap.rr.com> Due to problems with the original vtkusers mailing list, we have moved the mailing list to vtkusers at public.kitware.com, this is a test and the mailing list may experience problems for the next few days. Please bear with us. - Thanks - Ken Martin From lisa.avila at kitware.com Thu Feb 17 16:06:27 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Thu, 17 Feb 2000 16:06:27 -0500 Subject: Test Message 2 In-Reply-To: <4.2.0.58.20000217130729.00cf5740@pop.nycap.rr.com> Message-ID: <4.2.0.58.20000217160500.0272fe50@pop.nycap.rr.com> Hello - this is just another test message to make sure the mailing list names are all valid. Lisa From glagau at cs.tu-berlin.de Thu Feb 17 19:26:15 2000 From: glagau at cs.tu-berlin.de (Jens Glagau) Date: Fri, 18 Feb 2000 01:26:15 +0100 (MET) Subject: inside/outside decision problem Message-ID: Dear vtkusers, i want to decide wether a polygon A is inside or outside of a given surface. Polygon A is connected with the surface with at least one edge (at polygon B, which is of course part of the surface). All points of polygon A are either outside of the surface or on the surface. The points of polygons are known, therefore especially the normal of polygon B and i know the point-ids which are in both polygons. Of course, this is a mathematical question and not one related directly to vtk, but i hope somebody sends me an answer. If my text is insufficent or unprecise, please tell me. Thanks in advance Jens From csyang at ict.ac.cn Thu Feb 17 20:49:59 2000 From: csyang at ict.ac.cn (csyang) Date: Fri, 18 Feb 2000 09:49:59 +0800 Subject: Hot wo use 'void SetLeftButtonPressMethod(void(*func)(void *),voi d *arg)' in vtkRenderWindowInterActor Message-ID: <00d101bf79b2$7bdbb880$572ae29f@ict.ac.cn> Hi,all: I want to use 'SetLeftButtonPressMethod(void(*func)(void *),void *arg)' to set camera only rotate by 'y-axis.How can I use it. thanks. csyang From vtk at helios.tel.uva.es Fri Feb 18 04:43:51 2000 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Fri, 18 Feb 2000 10:43:51 +0100 (CET) Subject: vtkVoxelModeller and vtkStructuredPointsWriter Message-ID: Hello vtk users, I'm trying to write the output of the filter vtkVoxelModeller and I only obtain 0's. I'm using VTK 2.4 (with VTK 2.0 it worked properly). The tcl program is basically the next: ------------------------------ vtkSphereSource sphereModel vtkVoxelModeller voxelModel voxelModel SetInput [sphereModel GetOutput] voxelModel SetSampleDimensions 21 21 21 vtkStructuredPointsWriter writer writer SetFileName prueba.vtk writer SetInput [voxelModel GetOutput] writer Write ------------------------------ The file obtained is the next: # vtk DataFile Version 2.0 vtk output ASCII DATASET STRUCTURED_POINTS DIMENSIONS 21 21 21 SPACING 0.14924 0.14683 0.15 ORIGIN -1.4924 -1.4683 -1.5 POINT_DATA 9261 SCALARS scalars int 1 LOOKUP_TABLE default 0 0 0 0 0 0 0 0 0 0 0 0 ... (skip) 0 0 0 0 0 0 Do you know what is wrong? Thanx in advance. Miguel. ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ From T.Hutton at eastman.ucl.ac.uk Fri Feb 18 04:55:48 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 18 Feb 2000 09:55:48 +0000 Subject: Proposed removal of vtkThinPlateSplineMeshWarp Message-ID: <3.0.5.32.20000218095548.00b067e0@144.82.123.1> Hi guys, The above class in the nightlies has become redundant, its functionality is now in vtkThinPlateSplineTransform. Unless there are howls of protest I'm going to remove vtkThinPlateSplineMeshWarp, OK? Will, is there anything you added that needs moving over to vtkThinPlateSplineTransform? Cheers, Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. From ehrhardt at medinf.mu-luebeck.de Fri Feb 18 05:47:25 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Fri, 18 Feb 2000 11:47:25 +0100 Subject: How to delete single cells from PolyData Message-ID: <38AD233D.C458F224@medinf.mu-luebeck.de> How can I delete a number of (randomly scattered) cells of different types from PolyData. If I use the DeleteCell method only the intern variable vtkCellTypes *Cells is affected. This variable is overwritten everytime BuildCells is called. There is no method to really delete the cells in the vtkCellArrays. thanks for any advice. Jan -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- From vetler at ifi.uio.no Fri Feb 18 06:19:51 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Fri, 18 Feb 2000 12:19:51 +0100 (MET) Subject: Hot wo use 'void SetLeftButtonPressMethod(void(*func)(void *),voi d *arg)' in vtkRenderWindowInterActor In-Reply-To: <00d101bf79b2$7bdbb880$572ae29f@ict.ac.cn> Message-ID: on 2000-02-18, owner-vtkusers at public.kitware.com wrote: > Hi,all: > I want to use 'SetLeftButtonPressMethod(void(*func)(void *),void *arg)' > to set camera only rotate by 'y-axis.How can I use it. I guess you would have to do something like this: void rotateY( void * ) { // rotate the scene } int main() { // set up the standard framework interactor->SetLeftButtonPressMethod( rotatY, 0 ); // do some more stuff return 0; } Note that if you want the function given as a parameter to be a function in a class, you'll have to do something a little different. vr From T.Hutton at eastman.ucl.ac.uk Fri Feb 18 07:15:14 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 18 Feb 2000 12:15:14 +0000 Subject: How to delete single cells from PolyData Message-ID: <3.0.5.32.20000218121514.00b03830@144.82.123.1> Mmm, I came across this, the official line is that us users are getting more sophisticated than anticipated. :) Can I suggest a vtkReallyDeleteThingsFilter, to actually delete those cells (or points) that have been marked for deletion. I don't mind writing it if this meets with approval, it would be useful for me too. Cheers, Tim. At 11:47 18/02/00 +0100, Jan wrote: >How can I delete a number of (randomly scattered) cells of different >types from PolyData. >If I use the DeleteCell method only the intern variable vtkCellTypes >*Cells is affected. This variable >is overwritten everytime BuildCells is called. There is no method to >really delete the cells in the vtkCellArrays. > >thanks for any advice. > > Jan >-- >----------------------- >Jan Ehrhardt >mailto:ehrhardt at medinf.mu-luebeck.de >----------------------- From pnin22 at yahoo.com Fri Feb 18 08:44:40 2000 From: pnin22 at yahoo.com (Igor Fridman) Date: Fri, 18 Feb 2000 05:44:40 -0800 (PST) Subject: Reading multiple parts from BYU file Message-ID: <20000218134440.22538.rocketmail@web220.mail.yahoo.com> Hello, I am trying to find an efficient way of extracting PolyDatas from a BYU file which has multiple parts in it. In doing so, I discovered the following problem: First I tried creating 1 reader object which reads the whole file. I set the part number to 1 and extract the PolyData (via GetOutput). Then I set the part number to 2 and extract the PolyData. It turns out, however, this gives me thesame dataset as for part 1, and I must Update the reader after setting a new part number. This, however, causes the reader to read the file again. This is quite cumbersome when the file exceeds 10 parts and 5MB, as I it must read the whole file 10 times! I tried creating as many readers as there are parts, but still each reader reads and stores the whole file, not just the part that I need. Any suggestions? Thanks in advance! ===== ================================================== Igor Fridman Naval Research Laboratory Vacuum Electronics Branch Code 6841 4555 Overlook Ave. S.W., Washington, DC 20375, USA ================================================== __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From j.biddiscombe at rl.ac.uk Fri Feb 18 08:54:36 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 13:54:36 +0000 Subject: 3.4 beta : Bug report : PolyDataMapper Message-ID: <3.0.5.32.20000218135436.013cfe20@exchange03.rl.ac.uk> If you create a valid polydata object... Perform some filter operation which return a subset of the polydata object (eg clipping) Iff the resulting filter output contains no points (and no cells - we hope) ie dataset->GetNumberOfPoints() return zero, then the bounding box of the dataset is set to be VTK_LARGE_FLOAT -VTK_LARGE_FLOAT etc or similar. When displaying an actor connected to a clipper or whatever that returns nothing, the mapper barfs and gives an invalid floating point operation. If the Dataset has points - BUT no cells, it works OK. Which incidentally means that if you try to save memory by reference counting a pointset, but mask some cells out (i.e. vtkReallyReallyDeleteCell !!!) then the Bounding box is set to that of the points and not that of the cells. This is really irrelevant, but might be worth looking at whilst doing the other. ttfn John B From adv_biologic at hotmail.com Fri Feb 18 10:02:24 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Fri, 18 Feb 2000 07:02:24 PST Subject: vtk 3.1 problem with ./configure. Unix guru's please help! Message-ID: <20000218150224.76093.qmail@hotmail.com> Dear fellow vtker's When I try to run "./configure" with the following switches ./configure --with-x --with-opengl --with-shared --with-patented --with-contrib --with-local I get the following output, ending in an error message. loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... g++ checking whether the C++ compiler (g++ ) works... yes checking whether the C++ compiler (g++ ) is a cross-compiler... yes checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking for ranlib... : checking for a BSD compatible install... ./install-sh -c checking how to run the C preprocessor... g++ checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include checking whether -R must be followed by a space... no checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... yes checking for connect... no checking for connect in -lsocket... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking whether byte ordering is bigendian... configure: error: can not run test program while cross compiling The config.log file is attached To which I reply with a big "Huh???". Looking at the log file, it seems that configure can't find the libraries ldnet and ldnet_stub. As far as I can make out, these are libraries that are DECnet (!!!) related. Why I (or more precisely vtk) would need them for a Solaris compilation is beyond me! One solution that was suggested is that I remove the confige.cache file. I tried this and still end up with the same error. Looking at the configure file, the offending lines appear to be # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn.Johnson at cl.cam.ac.uk says this is needed for Ultrix, if the X # libraries were built with DECnet support. And karl at cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 echo "configure:1351: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" Any insight into how I can fix this problem and get on with compiling vtk 3.1 would be most appreciated. Thanks. This occured with the nightly release vtk 3.1 on 16 Feb 2000. My system: Sun SPARC Ultra-60 Solaris 2.6 gcc-2.95.2 make-3.76.1 vtk 3.1 Btw, I've ./configured and compiled vtk 2.4 in the past with no problems (using gcc-2.8.1). Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 5652 bytes Desc: not available URL: From bill.hoffman at kitware.com Fri Feb 18 10:38:12 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Fri, 18 Feb 2000 10:38:12 -0500 Subject: vtk 3.1 problem with ./configure. Unix guru's please help! In-Reply-To: <20000218150224.76093.qmail@hotmail.com> Message-ID: <4.2.0.58.20000218103512.07000a20@pop.nycap.rr.com> The problem is not the ldnet stuff, but rather this: Your output says this: checking whether the C++ compiler (g++ ) is a cross-compiler... yes checking whether we are using GNU C++... yes This means that configure was not able to compile AND run a small c++ program using g++. It was able to compile and link, but the run failed, so configure assumed that it was a cross-compiler. From klingej at bme.ri.ccf.org Fri Feb 18 12:24:42 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Fri, 18 Feb 2000 12:24:42 -0500 Subject: adding new objects and building vtk Message-ID: <38AD805A.1C1A366F@bme.ri.ccf.org> I am trying to learn how to add new objects to vtk for my own use. I have built vtk on NT using the tcl wrappers. If I add my own class (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles in my vtkBin directory to add this new object? Is there a way to have pcmaker add the new object to the makefiles it generates? I would appreciate any advice on how to do this or caveats involved. Thanks, Jon -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From erics at umbc.edu Fri Feb 18 13:05:51 2000 From: erics at umbc.edu (Eric Schmitt) Date: Fri, 18 Feb 2000 13:05:51 -0500 Subject: Tcl/tk 8.3.0 Message-ID: Hi, I was wondering if anyone has compiled Vtk with the latest version of Tcl/Tk 8.3.0. I have successfully been able to compile the nightly build with Tcl/Tk 8.2.3. However, when I try to use the 8.3.0 version, I get unresolved external _TkWinChildProc at 16 I understand that this is due to calling conventions, but I can't figure out how to get them to be compatible. Does VTK use __stdcall or __cdecl or both? Which one is preferred? I'm fairly new to windows programming, and would like to use the right one. It seems Tcl/Tk has changed the way they compile. -Eric C. Eric Schmitt "To strive, to seek, to find, and not to yield." Tennyson Univ. of Maryland, Balto. County | CFI-IA, CP-ASEL,AMEL email: erics at umbc.edu | PADI Advanced Open Water Key fingerprint = 1D AB F2 DA 67 E7 14 84 DB B8 FD 67 A5 6D 08 B9 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From eduardo at cs.uno.edu Fri Feb 18 13:41:47 2000 From: eduardo at cs.uno.edu (Eduardo Kortright) Date: Fri, 18 Feb 2000 12:41:47 -0600 Subject: Question about mailing list, vtkCellArray/Tcl Message-ID: <38AD926B.A6D7E3BB@cs.uno.edu> First, is anybody out there? I subscribed (and received a confirmation) from the VTK users list at the GEMS site, but was never able to post anything (everything bounced back) or receive anything. Now I see that the mailing list is hosted by Kitware (did everyone who subscribed at GE just get dumped without notice?). Anyway, I have a question about accessing the individual cells in a vtkCellArray from inside Tcl. Does anyone know if there is a way to do this? Or is it necessary to program in C++ to access each cell? I have VTK 2.4, by the way, running on Linux. -- Eduardo Kortright Department of Computer Science eduardo at cs.uno.edu University of New Orleans Voice: (504) 280-6626 Lakefront Campus FAX: (504) 280-7228 New Orleans, LA 70148 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From mwasilewski at principiamathematica.com Fri Feb 18 14:00:46 2000 From: mwasilewski at principiamathematica.com (Dr. Marek Wasilewski) Date: Fri, 18 Feb 2000 19:00:46 -0000 Subject: Doxygen documentation finished In-Reply-To: <4.2.0.58.20000211103229.00cb61d0@sic.sp2mi.univ-poitiers.fr> Message-ID: Dear Sebastien I was interested to see your comment on using the tcl samples when learning about vtk - couldn't agree more. For various reasons, we wrote a small app. to extract which components are used in a particular sample along with any data files utilised. I know this is the other way around to your request (which samples use a specific class), but I thought you might be interested anyway. The results of the analysis for tcl, vtk 2.2 samples can be found at http://www.principiamathematica.co.uk/support/vtk/index.htm. I will perform the same analysis for 2.4 and extend the app. over the next few days to do what you requested unless someone has already done this off-line. Best regards, Marek > -----Original Message----- > From: owner-vtkusers at gsao.gso.med.ge.com > [mailto:owner-vtkusers at gsao.gso.med.ge.com]On Behalf Of Sebastien Barre > Sent: 11 February 2000 09:34 > To: j.stifter at medres.ch; edi at jasmine.med.upatras.gr > Cc: vtkusers at gsao.med.ge.com > Subject: Re: Doxygen documentation finished > > > At 13:18 10/02/00 +0100, Jan Stifter a ?crit: > > >On Thu, 10 Feb 2000 13:04:56 +0000, Edi > >wrote: > > > > > > > >The documentation is great , but sometimes it's also great to look in > > the tcl > > >examples. > > > > > >Is it possible to do the same with the examples, like having > a list of > > examples > > >using the object you are looking for ? > > > > > > > > > >the more we have, the more we want :-) > > > >doxygen don't know tcl. that means, it can not parse tcl code and > >extract class names, functions, ... and highlight it. you could > >integrate tcl examples as a doxygen tag e.g. "\example camera3.tcl" > >into the documentation of the class, so you would have a link in the > >class description to an example, but a tcl example itself can not be > >parsed. > > > >my goal was to produce a documentation _without_ changing anything on > >the vtk-code. you could do a lot more with doxygen, including > >examples, which would have all used classes highlighted... but this is > >up to kitware, since you have to change the header-files manually. > > > I'm working on that. A Perl script that would parse all > C++/Tcl/Java/Python > examples and put/update the according doxygen /example directive in the > source headers. Will be ready next week. > > -- > Sebastien BARRE > IRCOM-SIC, UMR-CNRS 6615 - Universit? de Poitiers > B?t. SP2MI, Bvd 3 - T?l?port 2, BP 179 F-86960 Futuroscope Cedex > Tel. : +33 (0)5 49 49 65 95 / 65 83, Fax : +33 (0)5 49 49 65 70 > http://www-sic.univ-poitiers.fr/barre/ ou http://www.hds.utc.fr/~barre/ > > > ------------------------------------------------------------------ > ----------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. Live long and prosper. > ------------------------------------------------------------------ > ----------- > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 18 14:58:32 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 19:58:32 -0000 Subject: Trouble with trianglefilter : Found cause Message-ID: <002801bf7a66$d75c3360$0100000a@jabhomepc1> After going through 30,000 polygons, I've finally found the problem. Below is contents of a vtk file containing just one polygon. Ok, so it has 340 points....but it takes not less than 150MB of memory on my machine to pass this through a vtkTriangleFilter. "Surely you must be joking" I hear you all cry. No sir. Not at all. Please could somone else try this... polydatareader->Trianglefilter->Display and read the following file. I suspect dubious behaviour from the recursive triangulate routine. thanks John B (I had to create about 6 filters to reduce the polygon set until just this one was left. I wish I'd thought of counting the number of points first). # vtk DataFile Version 3.0 vtk output ASCII DATASET POLYDATA POINTS 339 float 1025.7 -1788.9 75.9 1043.9 -1757.9 75.9 1045 -1758.5 75.9 1047 -1749.2 75.9 1050.6 -1750 75.9 1054 -1732.6 75.9 1054.3 -1732.7 75.9 1055.1 -1729 75.9 1059.3 -1729.4 75.9 1059.3 -1729.3 75.9 1059.5 -1728.3 75.9 1059.9 -1727.5 75.9 1060.6 -1726.9 75.9 1061.3 -1726.5 75.9 1062 -1726.2 75.9 1062 -1726 75.9 1061.6 -1725.7 75.9 1061 -1724.9 75.9 1060.8 -1724 75.9 1060.7 -1723.4 75.9 1060.7 -1722.6 75.9 1060.9 -1721.8 75.9 1061.3 -1721.2 75.9 1061.9 -1720.6 75.9 1062.6 -1720.4 75.9 1063.1 -1720.3 75.9 1063.2 -1719.9 75.9 1062.9 -1719.7 75.9 1062.3 -1719.3 75.9 1062 -1718.4 75.9 1061.9 -1717.4 75.9 1062 -1716.2 75.9 1062.5 -1715.3 75.9 1063.4 -1714.5 75.9 1064.6 -1714.1 75.9 1064.5 -1713.8 75.9 1063.7 -1713.1 75.9 1063.3 -1712.4 75.9 1063.2 -1711.3 75.9 1063.2 -1710.7 75.9 1063.5 -1709.9 75.9 1063.9 -1709.1 75.9 1064.5 -1708.5 75.9 1065.2 -1708.2 75.9 1065.6 -1708.1 75.9 1065.9 -1707.9 75.9 1065.7 -1707.6 75.9 1065.2 -1707.1 75.9 1064.7 -1706.5 75.9 1064.4 -1705.6 75.9 1064.5 -1704.6 75.9 1064.7 -1703.7 75.9 1065.2 -1703 75.9 1066.3 -1702.2 75.9 1067.1 -1701.9 75.9 1067.1 -1701.6 75.9 1066.2 -1700.6 75.9 1065.9 -1699.6 75.9 1065.9 -1698.6 75.9 1065.9 -1697.8 75.9 1066.6 -1696.9 75.9 1067.3 -1696.3 75.9 1068.1 -1695.9 75.9 1068.4 -1695.9 75.9 1068.5 -1695.6 75.9 1068.2 -1695.3 75.9 1067.5 -1694.7 75.9 1067.3 -1693.8 75.9 1067.2 -1692.8 75.9 1067.3 -1691.8 75.9 1067.7 -1690.9 75.9 1068.3 -1690.4 75.9 1069.2 -1690 75.9 1069.8 -1689.8 75.9 1069.8 -1689.6 75.9 1069.8 -1689.3 75.9 1069.1 -1688.7 75.9 1068.5 -1687.8 75.9 1068.3 -1686.7 75.9 1068.5 -1685.6 75.9 1069.2 -1684.9 75.9 1069.9 -1684.2 75.9 1070.7 -1683.8 75.9 1071 -1683.7 75.9 1067.4 -1683.2 75.9 1068.5 -1677.6 75.9 1073.9 -1678.3 75.9 1077.1 -1663.3 75.9 1072.7 -1662.4 75.9 1075.2 -1650.7 75.9 1079.5 -1651.6 75.9 1080.3 -1648.1 75.9 1076.1 -1647.2 75.9 1079.8 -1629.6 75.9 1084.4 -1630.5 75.9 1084.5 -1629.9 75.9 1070.6 -1608.5 75.9 1060.3 -1614.9 75.9 1058.4 -1626.3 75.9 1040.3 -1623.3 75.9 1042.5 -1611.1 75.9 1049.6 -1612.1 75.9 1049.4 -1611.2 75.9 1049.6 -1610.8 75.9 1049.8 -1610.5 75.9 1049.4 -1609.9 75.9 1048.6 -1609.9 75.9 1047.4 -1609.8 75.9 1046.3 -1609.5 75.9 1045.3 -1608.9 75.9 1044.4 -1608.2 75.9 1043.6 -1607.3 75.9 1042.5 -1607.8 75.9 1043 -1609.2 75.9 1034.8 -1610.6 75.9 1033.6 -1603.7 75.9 1033.3 -1603.7 75.9 1032.1 -1603.4 75.9 1030.7 -1602.9 75.9 1029.2 -1602 75.9 1027.7 -1601 75.9 1026.7 -1599.7 75.9 1026.1 -1598.4 75.9 1025.6 -1596.9 75.9 1025.2 -1595.3 75.9 1025.1 -1594.3 75.9 1025.2 -1592.9 75.9 1025.5 -1591.6 75.9 1026 -1590 75.9 1026.9 -1588.2 75.9 1028.1 -1586.8 75.9 1029.3 -1585.8 75.9 1030.9 -1585 75.9 1031.8 -1584.7 75.9 1033.5 -1584.3 75.9 1035.6 -1584.3 75.9 1036.8 -1584.4 75.9 1038.2 -1584.7 75.9 1039.5 -1585.4 75.9 1041.2 -1586.6 75.9 1042 -1587.3 75.9 1043.7 -1589.8 75.9 1044.2 -1591.3 75.9 1044.5 -1592.7 75.9 1044.5 -1594.5 75.9 1044.4 -1596 75.9 1044.2 -1597.3 75.9 1043.7 -1598.6 75.9 1043.1 -1599.3 75.9 1043.8 -1600 75.9 1043.8 -1599.9 75.9 1044.5 -1599.1 75.9 1045.6 -1598.4 75.9 1047.1 -1597.8 75.9 1048.5 -1597.7 75.9 1050 -1597.8 75.9 1051.6 -1598.5 75.9 1052.6 -1599.1 75.9 1053.6 -1600 75.9 1054.3 -1601.3 75.9 1054.7 -1602.6 75.9 1054.3 -1605.9 75.9 1058.2 -1606.2 75.9 1036.7 -1573.1 75.9 1016.2 -1586.5 75.9 996.3 -1557.3 75.9 1013.7 -1545.9 75.9 1011.4 -1542.4 75.9 1016.7 -1539 75.9 1018.9 -1542.4 75.9 1037.4 -1530.3 75.9 1035.8 -1527.7 75.9 1043.7 -1522.5 75.9 1106.1 -1615.9 75.9 1102.3 -1633.2 75.9 1103 -1634 75.9 1102.9 -1634.5 75.9 1107.8 -1635.5 75.9 1101.5 -1665.2 75.9 1096.7 -1664.2 75.9 1091.6 -1688.4 75.9 1093.6 -1688.6 75.9 1094.2 -1689.3 75.9 1094.7 -1690.4 75.9 1094.8 -1691.5 75.9 1094.6 -1692.4 75.9 1094.1 -1693.2 75.9 1093.5 -1693.8 75.9 1092.9 -1694 75.9 1092.2 -1694.2 75.9 1092.2 -1694.4 75.9 1092.8 -1695 75.9 1093.2 -1695.6 75.9 1093.5 -1696.6 75.9 1093.5 -1697.7 75.9 1093.2 -1698.4 75.9 1092.8 -1699.2 75.9 1092.3 -1699.6 75.9 1091.6 -1699.9 75.9 1091 -1700.1 75.9 1090.9 -1700.3 75.9 1091.4 -1700.8 75.9 1091.9 -1701.3 75.9 1092.3 -1702.4 75.9 1092.3 -1703.3 75.9 1092 -1704.2 75.9 1091.7 -1704.7 75.9 1091 -1705.5 75.9 1090.2 -1705.8 75.9 1089.2 -1705.9 75.9 1088.6 -1706 75.9 1088.5 -1706 75.9 1088.4 -1706.6 75.9 1089.3 -1707.1 75.9 1090.5 -1708.2 75.9 1090.8 -1709.4 75.9 1090.6 -1710.3 75.9 1090.3 -1711.2 75.9 1089.9 -1711.8 75.9 1089.2 -1712.1 75.9 1088.7 -1712.6 75.9 1088.3 -1712.7 75.9 1088.2 -1713 75.9 1089.4 -1713.9 75.9 1089.6 -1715 75.9 1089.5 -1716.3 75.9 1089.1 -1717.4 75.9 1088.4 -1718.1 75.9 1087.9 -1718.4 75.9 1087.3 -1718.6 75.9 1087.1 -1718.5 75.9 1087 -1719 75.9 1087.9 -1719.7 75.9 1088.4 -1720.8 75.9 1088.3 -1722.1 75.9 1087.7 -1723.3 75.9 1086.9 -1724 75.9 1085.7 -1724.4 75.9 1085 -1724.4 75.9 1084.7 -1724.3 75.9 1084.5 -1724.9 75.9 1085.6 -1725.4 75.9 1086.4 -1726.5 75.9 1086.9 -1727.8 75.9 1086.7 -1729.2 75.9 1086.1 -1730.1 75.9 1085.5 -1730.8 75.9 1084.4 -1731.2 75.9 1084.5 -1731.4 75.9 1084.9 -1731.6 75.9 1085.5 -1733 75.9 1085.6 -1734.5 75.9 1085.2 -1735.6 75.9 1084.6 -1736.5 75.9 1084 -1736.9 75.9 1083.3 -1737 75.9 1083.2 -1737.2 75.9 1083.2 -1737.3 75.9 1083.7 -1737.7 75.9 1084.3 -1738.5 75.9 1084.5 -1739.6 75.9 1084.2 -1740.9 75.9 1083.7 -1741.9 75.9 1082.9 -1742.6 75.9 1081.9 -1743 75.9 1081.2 -1745 75.9 1082.1 -1746 75.9 1082.5 -1747.2 75.9 1082.6 -1748.9 75.9 1082.1 -1750.2 75.9 1081.6 -1751.1 75.9 1081 -1751.7 75.9 1078.9 -1752.6 75.9 1078.7 -1753 75.9 1079.7 -1754.1 75.9 1080.2 -1754.9 75.9 1080.6 -1756 75.9 1080.6 -1757.3 75.9 1080.5 -1758.3 75.9 1080.1 -1759.3 75.9 1079.2 -1760.3 75.9 1078.3 -1760.9 75.9 1077.4 -1761.3 75.9 1077 -1761.3 75.9 1076.8 -1761.7 75.9 1077.3 -1762.1 75.9 1078 -1763 75.9 1078.7 -1763.9 75.9 1078.8 -1765.1 75.9 1078.7 -1766.3 75.9 1078.4 -1767.5 75.9 1077.6 -1768.6 75.9 1076.7 -1769.4 75.9 1075.7 -1769.8 75.9 1075 -1770 75.9 1074.9 -1770.4 75.9 1075.6 -1771.1 75.9 1076.3 -1772 75.9 1076.8 -1773.2 75.9 1076.9 -1774.6 75.9 1076.6 -1775.8 75.9 1076.1 -1776.9 75.9 1075.4 -1777.7 75.9 1074.4 -1778.3 75.9 1073.7 -1778.7 75.9 1073.2 -1778.7 75.9 1073.1 -1779.1 75.9 1073.8 -1779.7 75.9 1074.6 -1780.6 75.9 1074.9 -1781.6 75.9 1075.1 -1782.7 75.9 1075 -1783.9 75.9 1074.6 -1785.1 75.9 1073.9 -1786.2 75.9 1072.8 -1786.9 75.9 1071.7 -1787.2 75.9 1070.9 -1787.4 75.9 1069.6 -1787.3 75.9 1068.1 -1786.7 75.9 1066.9 -1785.6 75.9 1066.6 -1784.6 75.9 1066.3 -1783.7 75.9 1066.2 -1783.6 75.9 1065.8 -1783.5 75.9 1065.2 -1784.5 75.9 1064.3 -1785.1 75.9 1063.3 -1785.6 75.9 1062 -1785.7 75.9 1060.6 -1785.4 75.9 1059.4 -1784.9 75.9 1058.2 -1783.7 75.9 1057.8 -1782.4 75.9 1057.6 -1781.7 75.9 1057.1 -1781.7 75.9 1056.6 -1782.4 75.9 1055.1 -1783.5 75.9 1053.8 -1783.8 75.9 1053.1 -1783.8 75.9 1043.7 -1799.6 75.9 POLYGONS 1 340 339 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 18 18:09:56 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 23:09:56 -0000 Subject: vtk 3.1 beta : C++Builder problem Message-ID: <002901bf7a66$d94b5930$0100000a@jabhomepc1> Just in case anyone is following progress on C++Builder stuff... Edi sent me packages he'd built and they worked fine. The only difference in systems was that he has not installed the patches for BCB 4 I tried uninstalling BCB and reinstalling without adding patches. I then rebuilt the vtk libraries and recompiled my programs that use them. Same problem. Linker OBJ block memory error. One thing I noticed was that several classes I am using (some readers) were not included in Edi's compiled libraries. Guessing a problem with the sheer size and number of exports I removed about 20 classes from vtk_Graphics. Problem disappeared. vtk compiled and linker coped when building vtk based BCB programs. If anyone else is having trouble, try removing as many classes as possible that you don't need - it seems that the number of exports is just too large for BCB to cope. BCB5 is due out very soon (already shipping?) so maybe the problem will be addressed. Let's hope so. John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Madhavan.Lakshmiraghavan at Dartmouth.EDU Sat Feb 19 14:13:41 2000 From: Madhavan.Lakshmiraghavan at Dartmouth.EDU (Madhavan Lakshmiraghavan) Date: 19 Feb 2000 14:13:41 EST Subject: inside/outside decision problem Message-ID: <27795022@dasher.Dartmouth.EDU> Jens, I just dealt with a similar problem. Basically, you want the following equation: Do this. - pick a point on polygon A unconnected to B. Let its coordinates be (Xa, Ya, Za) - randonly pick a point on polygon B. Let its coordinates be (Xb, Yb, Zb) - Find the components of the unit normal for polygon B. Let it be (n1, n2, n3) Then, D = n1*(Xa-Xb) + n2*(Ya-Yb) + n3*(Za-Zb) where D is the perpendiculat distance from the above-picked point on polygon A to the plane of polygon B. If D is positive, then that point of polygon A lies 'above' polygon B assuming you define 'above' as the direction of the positive normal of B. Redefine your concept of 'inside' or 'outside' in terms of 'above' or 'below'. Hope this helps. Raghavan --- Jens Glagau wrote: Dear vtkusers, i want to decide wether a polygon A is inside or outside of a given surface. Polygon A is connected with the surface with at least one edge (at polygon B, which is of course part of the surface). All points of polygon A are either outside of the surface or on the surface. The points of polygons are known, therefore especially the normal of polygon B and i know the point-ids which are in both polygons. Of course, this is a mathematical question and not one related directly to vtk, but i hope somebody sends me an answer. If my text is insufficent or unprecise, please tell me. Thanks in advance Jens --- end of quote --- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ken.martin at kitware.com Sat Feb 19 15:44:58 2000 From: ken.martin at kitware.com (Ken Martin) Date: Sat, 19 Feb 2000 15:44:58 -0500 Subject: using/extending VTK via Java ? In-Reply-To: <200002192024.PAA12604@hobbes.seas.gwu.edu> Message-ID: <4.2.0.58.20000219153957.00c889d0@pop.nycap.rr.com> >[I sent this earlier in the week but the VTK mailing list seemed >to be down forseveral days. Just saw a msg come through, >so I'll try again .....] The mailing list has been moved. The old may still be functioning but you should now use vtkusers at public.kitware.com Generic Warning: In vtkJavaUtil.cxx, line 381 > GetPointerFromObject: vtk bad argument, type conversion failed > >General simplification/overview of code: > > // MyImplicitFunction derived from vtkImpliciFunction w/ required > functions > MyImplicitFunction bmodel = new MyImplicitFunction(); > //code to populate bmodel here > > vtkSampleFunction sampleblob = new vtkSampleFunction(); > samleblob.SetImplicitFunction(bmodel); > >The above internal addressing error occurs when I first try to use bmodel >in vtkSampleFunction. > >If I use a pre-defined function such as vtkSphere (instead of >MyImplicitFunction) >everything works fine. In fact, if I extend a vtkSphere, to make my own >class, >it also works fine. > >Now, here's where I'm starting to think my problem may be. >Remember, I'm using the Java interface here. > >Do I also have to implement the vtkImplicitFunction extended class >(i.e. MyImplicitFunction.cxx) in C++ and then wrap it with JNI >in order to extend the Java class? I have only extended the Java class. >My guess is tha the above error is stemming from a failure to find >a MyImplicitionFunction object address within the C++ naming space. > >Can you extend VTK classes via Java without also supplying the C++ You must implement your class as a C++ class, except if you are using the vtkProgramableFilter and related classes. In your case you must create a C++ subclass of vtkImplicitFunction, build VTK with that new class added and then you should be fine. The issue is that the calculations are all done in pure C++ code and there is no opportunity for the C++ code to invoke GetValue or GetGradient of a Java class without having the C++ classes interface to Java in a more invasive manner. - Ken -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From wlorens1 at nycap.rr.com Sat Feb 19 16:14:00 2000 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 19 Feb 2000 16:14:00 -0500 Subject: vtkVoxelModeller and vtkStructuredPointsWriter In-Reply-To: Message-ID: <4.2.2.20000219155858.00d332e0@pop.nycap.rr.com> Thanks for the bug report. This was badly broken after 2.4. I have checked in changes for both vtkDataReader and vtkDataWriter. To repair your 2.4, try the following: vtkDataWriter: change s = ((vtkBitArray *)data)->GetValue(i); to s = ((vtkBitArray *)data)->GetValue(idx); Add the else clause below: if ( !((idx+1)%8) ) { *fp << "\n"; } else { *fp << " "; } vtkDataReader if ( ! strncmp(type, "int", 3) ) -> if ( ! strncmp(type, "bit", 3) ) in ReadArray handling for bit arrays. I've modified a test script to check for this. Bill At 10:43 AM 2/18/00 +0100, Miguel Angel Martin Fernandez wrote: >Hello vtk users, > > I'm trying to write the output of the filter vtkVoxelModeller and >I only obtain 0's. I'm using VTK 2.4 (with VTK 2.0 it worked properly). > >The tcl program is basically the next: > >------------------------------ >vtkSphereSource sphereModel > >vtkVoxelModeller voxelModel > voxelModel SetInput [sphereModel GetOutput] > voxelModel SetSampleDimensions 21 21 21 > >vtkStructuredPointsWriter writer > writer SetFileName prueba.vtk > writer SetInput [voxelModel GetOutput] > writer Write >------------------------------ > >The file obtained is the next: > ># vtk DataFile Version 2.0 >vtk output >ASCII >DATASET STRUCTURED_POINTS >DIMENSIONS 21 21 21 >SPACING 0.14924 0.14683 0.15 >ORIGIN -1.4924 -1.4683 -1.5 >POINT_DATA 9261 >SCALARS scalars int 1 >LOOKUP_TABLE default >0 0 0 0 0 0 >0 0 0 0 0 0 >... (skip) >0 0 0 0 0 0 > > Do you know what is wrong? > > Thanx in advance. > > Miguel. > > ________________________________________________________ > _________(_ _)_________ > \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ > \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ > \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ > )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( > /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ > /???????(________________________________________________________)???????\ > /__________) (_____________\ > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Sun Feb 20 06:26:47 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Sun, 20 Feb 2000 11:26:47 -0000 Subject: Multiple Bugs and rewrite of vtkCleanPolyData Message-ID: <000001bf7b96$54c6f8a0$0100000a@jabhomepc1> I'm afraid that whilst examining vtkCleanPolyData I've found several bugs. At or near line 176 there's a newId instead of cellId which will cause celldata to be copied incorrectly. Much more seriously - the whole design is flawed - CellData is copied as below if ( numNewPts > 1 ) { newId = newLines->InsertNextCell(numNewPts,updatedPts); outputCD->CopyData (cd, cellId, newId); } This is very dubious, because if Verts exist, then newId should continue from the count left over from the vert cleaning, however InsertNextCell for the lines will start from zero (because InsertNextCell for the newLines will return 0,1,2,3 etc etc) , thus the CopyData(...) will copy to the wrong position. If polydata contains verts, lines, polys and strips the error will accumulate with each pass through the loops. I checked this and indeed it does. If only verts, lines, polys or strips exist then the filter works fine. The error only appears when mixes exist and cell data exists. I have rewritten the filter and added some new options bool ConvertLinesToPoints bool ConvertPolysToLines bool ConvertStripsToPolys So that if a poly is reduced to a line it can be aded to the lines cellarray (and ensure the celldata is copied correctly!!) Likewise a line reduced to a point can be added to the verts and a strip reduced to 3 points becomes a poly, 2 points a line and one point a vert. The full set is Line with 1 points -> Vert (if ConvertLinesToPoints=1) Poly with 2 points -> Line (if ConvertPolysToLines=1) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys=1) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints) I think that explains it OK. However, the main reason I was examining it was I was creating a vtkQuantizePolyDataPoints filter which will align (x,y,z components of) all points to 1,10,100 or 0.5,0.25 etc etc. ie quantize the point locations and I needed the degenerate lines to become points and polys to become lines - I wanted to use vtkCleanPolyData as a starting point. Having fixed vtkCleanPolyData, it becomes easy to simply insert a call to "QuantizePoint" before inserting the point into the points list, so why not just insert a virtual function in CleanPolyData which subclasses can override and it can be used as a basis for deriving new "cleaning" filters. Therefore I have two classes to submit. One is the improved and fixed vtkCleanPolyData and the other is a subclass called vtkQuantizePolyDataPoints which takes parameter called QFactor which can be any positive value like 0.5,1,2,4,10,20 etc etc Oh yes, I've also added an option SetToleranceToAbsolute/SetToleranceToRelative to vtkCleanPolyDataFilter which controls whether the tolerance is a fixed value like 5 or a fraction of the dataset bounding box length as previously. Where should I put the new classes? Thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Sun Feb 20 06:35:12 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Sun, 20 Feb 2000 11:35:12 -0000 Subject: vtkInteractorStyleFlight Keyboard help required Message-ID: <001401bf7b96$8d6328a0$0100000a@jabhomepc1> I have a vtkInteractorStyleFlight class to contribute, but I'd like a little advice please. On Win32 platforms virtual keycodes like VK_LEFT (left arrow) VK_RIGHT VK_UP VK_DOWN are used. How does one use the arrow keys on a unix box. I need to remove a platform specific test like if (keycode==VK_LEFT) then turn left.... and allow codes for arrow keys for other platforms. I'm not sure how best to do this. Can anyone advise thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vtk at helios.tel.uva.es Mon Feb 21 05:06:07 2000 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Mon, 21 Feb 2000 11:06:07 +0100 (CET) Subject: adding new objects and building vtk In-Reply-To: <38AD805A.1C1A366F@bme.ri.ccf.org> Message-ID: Hello, I've made a tcl script to allow creating new libraries for the user classes. It basically wraps the vtk files needed to compile the libraries. The problem is that it has been done for UNIX type OS. I really don't know if it's easy or not to make something similar for Windows, but I'm sure it can be done in a similar way. If you are in the mood, you can download the script in: ftp://helios.tel.uva.es/pub/vtkLocal2-4.tar I expect this helps :) If you only want to add some finished classes in a mono-user system, you can probably do it manually, like in the UNIX systems. Miguel. On Fri, 18 Feb 2000, Jon Klingensmith wrote: > > I am trying to learn how to add new objects to vtk for my own use. I > have built vtk on NT using the tcl wrappers. If I add my own class > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > in my > vtkBin directory to add this new object? Is there a way to have pcmaker > add > the new object to the makefiles it generates? > > I would appreciate any advice on how to do this or caveats involved. > > Thanks, > Jon > > -- > Jon D. Klingensmith > Department of Biomedical Engineering > The Cleveland Clinic Foundation > Lab Phone: 216-445-0591 > http://www.lerner.ccf.org/bme/ip/ > > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ehrhardt at medinf.mu-luebeck.de Mon Feb 21 06:22:26 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Mon, 21 Feb 2000 12:22:26 +0100 Subject: how to compute central line form surface objects Message-ID: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> I have surface objects of anatomical tube-like structures (e.g. vessels) How can I compute a central line (the skelett) of a surface object ? Thanks. Jan -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From jfavre at cscs.ch Mon Feb 21 07:23:35 2000 From: jfavre at cscs.ch (Jean Favre) Date: Mon, 21 Feb 2000 13:23:35 +0100 Subject: remove from list References: Message-ID: <38B12E47.F550B677@cscs.ch> Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From o.coulon at cs.ucl.ac.uk Mon Feb 21 08:28:21 2000 From: o.coulon at cs.ucl.ac.uk (Olivier Coulon) Date: Mon, 21 Feb 2000 13:28:21 +0000 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> Message-ID: <38B13D75.74047427@cs.ucl.ac.uk> Jan Ehrhardt wrote: > I have surface objects of anatomical tube-like structures (e.g. > vessels) > How can I compute a central line (the skelett) of a > surface object ? > > Thanks. > > Jan Jan, I think it is not a very simple problem. If your structure is a vessel, I guess orthogonal sections are not exact circles and they are not even exact ellipses. Therefore, the skeleton (in a morphological sense) is not gonna be a line (it can be a "piece of surface", or several lines). You can have a look at some kind of "medial axis" or "core" (see "Computation of Object Cores from grey-level images", B.S. Morse, PhD Thesis, University of North Carolina at Chapel Hill, 1994), but this not a straightforward implementation in your case If your surface is properly parameterised (i.e. one parameter r that goes "along" the vessel, and one parameter s that goes "around" it, see the figure below), you can get an approximation by computing for each value of r the barycenter of the section described by s. You'll then have a set of points which more or less describe some kind of "central line", depending on the quality of your parameterisation. ---------------------- ^ -> r |s ---------------------- I guess that the problem is that it is not obvious to define what is the "central line" of something which is not exactly a cylinder. - Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: o.coulon.vcf Type: text/x-vcard Size: 358 bytes Desc: Card for Olivier Coulon URL: From ehrhardt at medinf.mu-luebeck.de Mon Feb 21 09:34:00 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Mon, 21 Feb 2000 15:34:00 +0100 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> Message-ID: <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Oliver, yes it?s not properly defined what is the "central line". But I hope everyone knows what I mean. I have the suggested r parametrization implcitly in a special case: For surfaces of long-bones constructed from CT data I can use the z-coords as r. Well maybe this will work. I remember an equivalent problem: How to compute the way of camera in virtual (gastro-intestinal or bronchial) endoscopy ? Maybe anyone else has done this ?? Jan Olivier Coulon wrote: > > Jan Ehrhardt wrote: > > > I have surface objects of anatomical tube-like structures (e.g. > > vessels) > > How can I compute a central line (the skelett) of a > > surface object ? > > > > Thanks. > > > > Jan > > Jan, > > I think it is not a very simple problem. If your structure is a > vessel, I guess orthogonal sections are not exact circles and they are > not even exact ellipses. Therefore, the skeleton (in a morphological > sense) is not gonna be a line (it can be a "piece of surface", or > several lines). > You can have a look at some kind of "medial axis" or "core" (see > "Computation of Object Cores from grey-level images", B.S. Morse, PhD > Thesis, University of North Carolina at Chapel Hill, 1994), but this > not a straightforward implementation in your case > > If your surface is properly parameterised (i.e. one parameter r that > goes "along" the vessel, and one parameter s that goes "around" it, > see the figure below), you can get an approximation by computing for > each value of r the barycenter of the section described by s. You'll > then have a set of points which more or less describe some kind of > "central line", depending on the quality of your parameterisation. > > > ---------------------- > ^ -> r > |s > ---------------------- > > I guess that the problem is that it is not obvious to define what is > the "central line" of something which is not exactly a cylinder. > > - Olivier > > -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From o.coulon at cs.ucl.ac.uk Mon Feb 21 09:43:22 2000 From: o.coulon at cs.ucl.ac.uk (Olivier Coulon) Date: Mon, 21 Feb 2000 14:43:22 +0000 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Message-ID: <38B14F0A.2CD75512@cs.ucl.ac.uk> Jan Ehrhardt wrote: > Oliver, > > yes it?s not properly defined what is the "central line". But > I hope everyone knows what I mean. I completely see what you mean as well, but what I meant is that this is quite intuitive and I think (I might be wrong) that a mathematical (or at least algorithmic) definition is more difficult to obtain. Very best wishes anyway, - Olivier -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Adel.Abdallah at ensg.u-nancy.fr Mon Feb 21 09:58:56 2000 From: Adel.Abdallah at ensg.u-nancy.fr (Adel Abdallah) Date: Mon, 21 Feb 2000 15:58:56 +0100 Subject: Tr: how to compute central line form surface objects Message-ID: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> ----- Original Message ----- From: Olivier Coulon To: Jan Ehrhardt Cc: vtk users Sent: Monday, February 21, 2000 2:28 PM Subject: Re: how to compute central line form surface objects Jan Ehrhardt wrote: I have surface objects of anatomical tube-like structures (e.g. vessels) How can I compute a central line (the skelett) of a surface object ? Thanks. Jan Jan, I think it is not a very simple problem. If your structure is a vessel, I guess orthogonal sections are not exact circles and they are not even exact ellipses. Therefore, the skeleton (in a morphological sense) is not gonna be a line (it can be a "piece of surface", or several lines). You can have a look at some kind of "medial axis" or "core" (see "Computation of Object Cores from grey-level images", B.S. Morse, PhD Thesis, University of North Carolina at Chapel Hill, 1994), but this not a straightforward implementation in your case If your surface is properly parameterised (i.e. one parameter r that goes "along" the vessel, and one parameter s that goes "around" it, see the figure below), you can get an approximation by computing for each value of r the barycenter of the section described by s. You'll then have a set of points which more or less describe some kind of "central line", depending on the quality of your parameterisation. ---------------------- ^ -> r |s ---------------------- I guess that the problem is that it is not obvious to define what is the "central line" of something which is not exactly a cylinder. - Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From adv_biologic at hotmail.com Mon Feb 21 10:19:15 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Mon, 21 Feb 2000 07:19:15 PST Subject: Problem compiling vtk 3.1 with Solaris 2.6 Message-ID: <20000221151915.57039.qmail@hotmail.com> Dear fellow vtker's I'm trying to compile vtk 3.1 using the following system configuration Sun SPARC Ultra-60 Solaris 2.6 gcc 2.95.2 and ./configure --with-x --with-opengl --with-shared --with-patented --with-contrib --with-local The compilation chugs happily along, until it reaches the graphics directory, and tries to compile vtkXRenderWindowInteractor.cxx. At this point the following error occurs: make[1]: Entering directory `/export/home0/stuff/vtk/vtk/graphics' /usr/local/bin/g++ -g -O2 -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB -I./../local -DVTK_USE_LOCAL -DVTK_USE_OGLR -I/usr/openwin/share/include/ -I/usr/openwin/include -I./../common -c vtkXRenderWindowInteractor.cxx -o vtkXRenderWindowInteractor.o In file included from /usr/openwin/share/include/X11/Intrinsic.h:56, from vtkXRenderWindowInteractor.h:65, from vtkXRenderWindowInteractor.cxx:47: /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration `XAddHost' with no type /usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration `XAddHosts' with no type plus a massive dump of similar XSomething error messages. Any help / insight into this problem would be most appreciated. Thanks. Best regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Mon Feb 21 10:21:42 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Mon, 21 Feb 2000 10:21:42 -0500 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Message-ID: <38B15806.36060CF2@irus.rri.on.ca> > > I remember an equivalent problem: > How to compute the way of camera in virtual > (gastro-intestinal or bronchial) endoscopy ? > > Hi Jan, To automatically calculate the path of the camera is a difficult problem. However, check out this paper from Stanford University: Automated flight path planning for virtual endoscopy, Paik, Beaulieu, Jeffrey et al, Medical Physics 25(5), May 1998, p. 629. They find the medial axis transform by iterative thinning of the segmented structure. It was applied to virtual colonoscopy, one aorta and a bronchial tree Damini. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 21 10:28:05 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 21 Feb 2000 10:28:05 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> Message-ID: <38B15985.2A4AE234@bme.ri.ccf.org> My makefile.in looks like this.. would I just add the .h file after CONCRETE_H and the .cxx file after CONCRETE if its a concrete object? Thanks, Jon # # vtk library makefile # # NOTE !!! when adding a class, it must be added in one location. # Place it in the correct list based on whether it is only a .h file # and whether it is abstract or concrete. # ME = Local srcdir = @srcdir@ VPATH = @srcdir@ ABSTRACT_H = CONCRETE_H = ABSTRACT = CONCRETE =\ #------------------------------------------------------------------------------ # Autoconfig defines that can be overridden in user.make @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ #------------------------------------------------------------------------------ # Include user-editable defines. @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ #------------------------------------------------------------------------------ # Include the generated targets @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ # add in any extra libraies here KIT_LIBS = # standard stuff here KIT_OBJ = ${SRC_OBJ} KIT_TCL_OBJ = ${TCL_OBJ} KIT_NEWS = ${TCL_NEWS} KIT_FLAGS = PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} #------------------------------------------------------------------------------ # Include the generic stuff here @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ Damini Dey wrote: > Hi Jon, > > You have to manually edit the makefile.in in only one place, in > /vtk/local directory > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > in the /vtkbin directory > > Damini. > > > I am trying to learn how to add new objects to vtk for my own use. I > > have built vtk on NT using the tcl wrappers. If I add my own class > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > in my > > vtkBin directory to add this new object? Is there a way to have pcmaker > > add > > the new object to the makefiles it generates? > > > > I would appreciate any advice on how to do this or caveats involved. > > > > Thanks, > > Jon -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From millerjv at crd.ge.com Mon Feb 21 10:32:59 2000 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Mon, 21 Feb 2000 10:32:59 -0500 Subject: Multiple Bugs and rewrite of vtkCleanPolyData Message-ID: If want to send the files, I'll check them in. Thanks for the great work! Jim -----Original Message----- From: John Biddiscombe [mailto:j.biddiscombe at rl.ac.uk] Sent: Sunday, February 20, 2000 6:27 AM To: vtk Subject: Multiple Bugs and rewrite of vtkCleanPolyData I'm afraid that whilst examining vtkCleanPolyData I've found several bugs. At or near line 176 there's a newId instead of cellId which will cause celldata to be copied incorrectly. Much more seriously - the whole design is flawed - CellData is copied as below if ( numNewPts > 1 ) { newId = newLines->InsertNextCell(numNewPts,updatedPts); outputCD->CopyData (cd, cellId, newId); } This is very dubious, because if Verts exist, then newId should continue from the count left over from the vert cleaning, however InsertNextCell for the lines will start from zero (because InsertNextCell for the newLines will return 0,1,2,3 etc etc) , thus the CopyData(...) will copy to the wrong position. If polydata contains verts, lines, polys and strips the error will accumulate with each pass through the loops. I checked this and indeed it does. If only verts, lines, polys or strips exist then the filter works fine. The error only appears when mixes exist and cell data exists. I have rewritten the filter and added some new options bool ConvertLinesToPoints bool ConvertPolysToLines bool ConvertStripsToPolys So that if a poly is reduced to a line it can be aded to the lines cellarray (and ensure the celldata is copied correctly!!) Likewise a line reduced to a point can be added to the verts and a strip reduced to 3 points becomes a poly, 2 points a line and one point a vert. The full set is Line with 1 points -> Vert (if ConvertLinesToPoints=1) Poly with 2 points -> Line (if ConvertPolysToLines=1) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys=1) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints) I think that explains it OK. However, the main reason I was examining it was I was creating a vtkQuantizePolyDataPoints filter which will align (x,y,z components of) all points to 1,10,100 or 0.5,0.25 etc etc. ie quantize the point locations and I needed the degenerate lines to become points and polys to become lines - I wanted to use vtkCleanPolyData as a starting point. Having fixed vtkCleanPolyData, it becomes easy to simply insert a call to "QuantizePoint" before inserting the point into the points list, so why not just insert a virtual function in CleanPolyData which subclasses can override and it can be used as a basis for deriving new "cleaning" filters. Therefore I have two classes to submit. One is the improved and fixed vtkCleanPolyData and the other is a subclass called vtkQuantizePolyDataPoints which takes parameter called QFactor which can be any positive value like 0.5,1,2,4,10,20 etc etc Oh yes, I've also added an option SetToleranceToAbsolute/SetToleranceToRelative to vtkCleanPolyDataFilter which controls whether the tolerance is a fixed value like 5 or a fraction of the dataset bounding box length as previously. Where should I put the new classes? Thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Mon Feb 21 10:53:30 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Mon, 21 Feb 2000 10:53:30 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> <38B15985.2A4AE234@bme.ri.ccf.org> Message-ID: <38B15F7A.A7A53906@irus.rri.on.ca> Hi Jon, Say you have a class vtkMyClass.cxx and vtkMyClass.h Based on whether the class is abstract or concrete, you add it like this: EITHER under ABSTRACT = \ vtkMyClass OR under CONCRETE = \ vtkMyClass The ABSTRACT_H or CONCRETE_H places are for classes that are defined by .h files only (eg vtkActorCollection.h) Damini. > My makefile.in looks like this.. would I just add the .h file after CONCRETE_H > and the .cxx file after CONCRETE if its a concrete object? > > Thanks, > Jon > > # > # vtk library makefile > # > # NOTE !!! when adding a class, it must be added in one location. > # Place it in the correct list based on whether it is only a .h file > # and whether it is abstract or concrete. > # > ME = Local > > srcdir = @srcdir@ > VPATH = @srcdir@ > > ABSTRACT_H = > > CONCRETE_H = > > ABSTRACT = > > CONCRETE =\ > > #------------------------------------------------------------------------------ > > # Autoconfig defines that can be overridden in user.make > > @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ > > #------------------------------------------------------------------------------ > > # Include user-editable defines. > > @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ > > #------------------------------------------------------------------------------ > > # Include the generated targets > > @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ > > # add in any extra libraies here > KIT_LIBS = > > # standard stuff here > KIT_OBJ = ${SRC_OBJ} > KIT_TCL_OBJ = ${TCL_OBJ} > KIT_NEWS = ${TCL_NEWS} > KIT_FLAGS = > PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython > -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} > > VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} > TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} > > #------------------------------------------------------------------------------ > > # Include the generic stuff here > > @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ > > Damini Dey wrote: > > > Hi Jon, > > > > You have to manually edit the makefile.in in only one place, in > > /vtk/local directory > > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > > in the /vtkbin directory > > > > Damini. > > > > > I am trying to learn how to add new objects to vtk for my own use. I > > > have built vtk on NT using the tcl wrappers. If I add my own class > > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > > in my > > > vtkBin directory to add this new object? Is there a way to have pcmaker > > > add > > > the new object to the makefiles it generates? > > > > > > I would appreciate any advice on how to do this or caveats involved. > > > > > > Thanks, > > > Jon > > -- > Jon D. Klingensmith > Department of Biomedical Engineering > The Cleveland Clinic Foundation > Lab Phone: 216-445-0591 > http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Mon Feb 21 11:31:42 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Mon, 21 Feb 2000 08:31:42 PST Subject: The fix: Re: Problem compiling vtk 3.1 with Solaris 2.6. Message-ID: <20000221163142.91519.qmail@hotmail.com> Dear fellow vtker's The problem with compiling Unix (Solaris 2.6) X windows stuff using g++ is that the lastest version 2.95.2 is much more strict (ie., retentive) in its interpretation of ANSI standards. The fix is to edit user.make and set USER_CXXFLAGS = -fpermissive Also, I had a previous problem with ./configure failing. The fix was to set the shared library path LD_LIBRARY_PATH = /usr/local/lib (or wherever ones shared g++ library is located) and export it EXPORT LD_LIBRARY_PATH Thanks to everyone who responded. Best regards, Audrius >From: David Chelberg >To: audrius at adv-biologic.com >CC: chelberg at endor.cs.ohiou.edu >Subject: Re: Problem compiling vtk 3.1 with Solaris 2.6 >Date: Mon, 21 Feb 2000 11:13:16 -0500 > >If you receive a response, please let me know what you did to fix >this problem. > >Thanks, > > -- Dave Chelberg ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 21 11:32:15 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 21 Feb 2000 11:32:15 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> <38B15985.2A4AE234@bme.ri.ccf.org> <38B15F7A.A7A53906@irus.rri.on.ca> Message-ID: <38B1688F.185CB977@bme.ri.ccf.org> Hello Damini, Do I have to put the source in a specific directory? If I put the .cxx and .h file in my vtkSource/contrib directory (D:/vtkSource/contrib/vtkMyClass.cxx and D:/vtkSource/contrib/vtkMyClass.h) then do I have to specify that in Makefile.in ?? I listed the class like you suggested and ran pcmaker again, but it doesn't seem to do anything to the makefiles generate. Thanks for your help, Jon Damini Dey wrote: > Hi Jon, > > Say you have a class vtkMyClass.cxx and vtkMyClass.h > Based on whether the class is abstract or concrete, you add it like this: > > EITHER under > > ABSTRACT = \ > vtkMyClass > > OR under > > CONCRETE = \ > vtkMyClass > > The ABSTRACT_H or CONCRETE_H places are for classes that are defined by .h files > only > (eg vtkActorCollection.h) > > Damini. > > > My makefile.in looks like this.. would I just add the .h file after CONCRETE_H > > and the .cxx file after CONCRETE if its a concrete object? > > > > Thanks, > > Jon > > > > # > > # vtk library makefile > > # > > # NOTE !!! when adding a class, it must be added in one location. > > # Place it in the correct list based on whether it is only a .h file > > # and whether it is abstract or concrete. > > # > > ME = Local > > > > srcdir = @srcdir@ > > VPATH = @srcdir@ > > > > ABSTRACT_H = > > > > CONCRETE_H = > > > > ABSTRACT = > > > > CONCRETE =\ > > > > #------------------------------------------------------------------------------ > > > > # Autoconfig defines that can be overridden in user.make > > > > @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ > > > > #------------------------------------------------------------------------------ > > > > # Include user-editable defines. > > > > @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ > > > > #------------------------------------------------------------------------------ > > > > # Include the generated targets > > > > @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ > > > > # add in any extra libraies here > > KIT_LIBS = > > > > # standard stuff here > > KIT_OBJ = ${SRC_OBJ} > > KIT_TCL_OBJ = ${TCL_OBJ} > > KIT_NEWS = ${TCL_NEWS} > > KIT_FLAGS = > > PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython > > -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} > > > > VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} > > TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} > > > > #------------------------------------------------------------------------------ > > > > # Include the generic stuff here > > > > @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ > > > > Damini Dey wrote: > > > > > Hi Jon, > > > > > > You have to manually edit the makefile.in in only one place, in > > > /vtk/local directory > > > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > > > in the /vtkbin directory > > > > > > Damini. > > > > > > > I am trying to learn how to add new objects to vtk for my own use. I > > > > have built vtk on NT using the tcl wrappers. If I add my own class > > > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > > > in my > > > > vtkBin directory to add this new object? Is there a way to have pcmaker > > > > add > > > > the new object to the makefiles it generates? > > > > > > > > I would appreciate any advice on how to do this or caveats involved. > > > > > > > > Thanks, > > > > Jon > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From skrishna at cscs.ch Mon Feb 21 12:28:41 2000 From: skrishna at cscs.ch (Sathya Krishnamurthy (CSCS)) Date: Mon, 21 Feb 2000 18:28:41 +0100 Subject: A Small problem... References: Message-ID: <38B175C9.1BE02804@cscs.ch> Hello All I hit something.. but i dont know if it was a bug.. it was in.. vtkUnstructuredGrid::SetCells It occurs just in WindowsNT/VC++6.0/compiled vtk31beta for me.. the code works fine in Solaris/IRIX.. so i dont know exactly what is happening.. So somebody kindly elucidate.. void vtkUnstructuredGrid::SetCells(int *types, vtkCellArray *cells) { int i, npts, *pts; .... ... // build types for (i=0, cells->InitTraversal(); cells->GetNextCell(npts,pts); i++) { ............../// Here the program returns ............../// some arbitrary values .. after the array size.. ............../// so it goes over the bounds.. . ............../// so when it reaches the lastelement of the array ............../// GetNextCell gives me some big negative values for npts ............../// and crashes.. ............../// So i had to add a small hack like ............../// that is if the npts returns ............../// a large negative number.. if (npts < 0) break; this->Cells->InsertNextCell(types[i],cells->GetTraversalLocation(npts)); } } -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vetler at ifi.uio.no Mon Feb 21 13:01:42 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Mon, 21 Feb 2000 19:01:42 +0100 (MET) Subject: Problem compiling vtk 3.1 with Solaris 2.6 In-Reply-To: <20000221151915.57039.qmail@hotmail.com> Message-ID: on 2000-02-21, owner-vtkusers at public.kitware.com wrote: > Dear fellow vtker's > > I'm trying to compile vtk 3.1 using the following system configuration > > Sun SPARC Ultra-60 > Solaris 2.6 > gcc 2.95.2 > > and > > ./configure --with-x --with-opengl --with-shared --with-patented > --with-contrib --with-local > > The compilation chugs happily along, until it reaches the graphics > directory, and tries to compile vtkXRenderWindowInteractor.cxx. > At this point the following error occurs: > > make[1]: Entering directory `/export/home0/stuff/vtk/vtk/graphics' > /usr/local/bin/g++ -g -O2 -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS > -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. > -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING > -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB > -I./../local -DVTK_USE_LOCAL -DVTK_USE_OGLR -I/usr/openwin/share/include/ > -I/usr/openwin/include -I./../common -c vtkXRenderWindowInteractor.cxx > -o vtkXRenderWindowInteractor.o > In file included from /usr/openwin/share/include/X11/Intrinsic.h:56, > from vtkXRenderWindowInteractor.h:65, > from vtkXRenderWindowInteractor.cxx:47: > /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration > `XSetTransientForHint' with no type > /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration > `XActivateScreenSaver' with no type > /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration > `XAddHost' with no type > /usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration > `XAddHosts' with no type > > plus a massive dump of similar XSomething error messages. > > Any help / insight into this problem would be most appreciated. > Thanks. use the gcc switch '-fpermissive' when compiling (set it in the file 'users.make'). (perhaps this should be added to the FAQ?) vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vetler at ifi.uio.no Mon Feb 21 13:04:40 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Mon, 21 Feb 2000 19:04:40 +0100 (MET) Subject: The fix: Re: Problem compiling vtk 3.1 with Solaris 2.6. In-Reply-To: <20000221163142.91519.qmail@hotmail.com> Message-ID: on 2000-02-21, owner-vtkusers at public.kitware.com wrote: > Dear fellow vtker's > > The problem with compiling Unix (Solaris 2.6) > X windows stuff using g++ is that the lastest version 2.95.2 is much more > strict (ie., retentive) in its interpretation of ANSI standards. If you think gcc is strict, you should try using Sun Workshop C++ Compiler 5.0 with VTK. It produces an obscene amount of errors if you include vtk.h instead of each individual headerfile. vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cfrocha at icmc.sc.usp.br Mon Feb 21 13:53:01 2000 From: cfrocha at icmc.sc.usp.br (Billy) Date: Mon, 21 Feb 2000 15:53:01 -0300 (EST) Subject: remove from list In-Reply-To: <38B12E47.F550B677@cscs.ch> Message-ID: Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From burgett at ccpo.odu.edu Mon Feb 21 14:54:05 2000 From: burgett at ccpo.odu.edu (Russell Burgett) Date: Mon, 21 Feb 2000 14:54:05 -0500 Subject: remove from list Message-ID: <38B197DD.6998BDA6@ccpo.odu.edu> Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From human123 at bme.hanyang.ac.kr Mon Feb 21 22:15:44 2000 From: human123 at bme.hanyang.ac.kr (=?ks_c_5601-1987?B?wOW1v8el?=) Date: Tue, 22 Feb 2000 12:15:44 +0900 Subject: remove from list Message-ID: <006501bf7ce7$67ec6b20$815168a6@hanyang.ac.kr> Remove or Unscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob at cs.curtin.edu.au Mon Feb 21 22:46:42 2000 From: rob at cs.curtin.edu.au (Robert Iverach) Date: Tue, 22 Feb 2000 11:46:42 +0800 Subject: Remove Message-ID: <001e01bf7ce7$6f473350$49010786@cs.curtin.edu.au> Remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpikeman at soli.inav.net Mon Feb 21 23:12:20 2000 From: cpikeman at soli.inav.net (Christopher W. Piker) Date: Mon, 21 Feb 2000 22:12:20 -0600 Subject: remove from list Message-ID: <38B20CA4.63B8C05C@soli.inav.net> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dfchen at anet.ne.jp Tue Feb 22 00:29:31 2000 From: dfchen at anet.ne.jp (D. Chen) Date: Tue, 22 Feb 2000 14:29:31 +0900 Subject: Where to get (more) examples for windows? In-Reply-To: <38B20CA4.63B8C05C@soli.inav.net> References: <38B20CA4.63B8C05C@soli.inav.net> Message-ID: <38B21EBBA5.5356DFCHEN@192.9.200.91> http://public.kitware.com/cgi-bin/vtkfaq?req=recent&days=365250 says: 1.9. What's the best way to learn VTK? There are five things you might want to try: 1) Purchase the book "The Visualization Toolkit" ISBN 0-13-954694-4 from amazon.com. 2) Purchase the "VTK Users Guide" from Kitware 3) Download the source code and/or binaries (available on Windows) and work through the examples (there are 400-500 examples) Where to get (more) examples for windows? Thanks in advance for your kind help. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From markus.heller at charite.de Tue Feb 22 03:28:22 2000 From: markus.heller at charite.de (Markus Heller) Date: Tue, 22 Feb 2000 09:28:22 +0100 Subject: Parallel Projection and RenderLargeImage ? Message-ID: <38B248A6.2781@charite.de> Hi, I'm experiencing some trouble combining a camera with parallel projection and vtkRenderLargeImage. I've got something in Tcl like: set cam1 [ren1 GetActiveCamera] If I set: $cam1 ParallelProjectionOn the subsequent code: vtkRenderLargeImage renderLarge renderLarge SetInput ren1 renderLarge SetMagnification 5 does not work. If I leave out the line "$cam1 ParallelProjectionOn", I get a perspective projection and vtkRenderLargeImage works fine. I guess the problem is that magnification is handled different for parallel/perspective projection ??? Markus PS: I'm using a snapshot from early December '99. ------------------------------------------------------------------- Markus Heller mailto:heller at acm.org ------------------------------------------------------------------- Medizinische Fakultaet Charite, Humboldt-Universitaet zu Berlin Forschungslabor der Unfall- und Wiederherstellungschirurgie Augustenburger Platz 1 D-13353 Berlin Tel: +49 (0)30 450 59159 Fax: +49 (0)30 450 59969 e-mail: heller at acm.org, markus.heller at charite.de http://www.charite.de/biomechanik ------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Tue Feb 22 05:09:20 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Tue, 22 Feb 2000 10:09:20 +0000 Subject: Tr: how to compute central line form surface objects In-Reply-To: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> Message-ID: <3.0.5.32.20000222100920.00a957b0@144.82.123.1> At 15:58 21/02/00 +0100, you wrote: > ----- Original Message ----- >From: Olivier Coulon >To: Jan Ehrhardt >Cc: vtk users >Sent: Monday, February 21, 2000 2:28 PM >Subject: Re: how to compute central line form surface objects >Jan Ehrhardt wrote: > I have surface objects of anatomical tube-like structures (e.g. vessels) > How can I compute a central line (the skelett) of a surface object ? > Thanks. > Jan > >Jan, I think it is not a very simple problem. If your structure is a >vessel, I guess orthogonal sections are not exact circles and they are not >even exact ellipses. But if the cross-sections are approximately ellipses then you could use an ellipse-fitting routine. Use the polygon normals to get at the plane of cross section for the tube, then find the ring of points that intersect this plane. (Bit tricky, might have to reject distant intersections.) Then simply run a robust ellipse-fitting routine over the set of points and extract the center of the ellipse to give you the skeleton point. Repeat this along the tubes to build your central line. Code for ellipse-fitting attached, all credit to Maurizio Pilu et al. Will have to adapt to your purposes, it is set up to draw into a Microsoft Visual C++ MFC drawing context. Hope this helps, it is not an easy problem. Cheers, Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From squireson at bigfoot.com Tue Feb 22 20:39:25 2000 From: squireson at bigfoot.com (chris) Date: Tue, 22 Feb 2000 19:39:25 -0600 Subject: remove from list Message-ID: <38B33A4D.8BF20EB@bigfoot.com> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Tue Feb 22 08:06:14 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Tue, 22 Feb 2000 13:06:14 +0000 Subject: Tr: how to compute central line form surface objects In-Reply-To: <3.0.5.32.20000222100920.00a957b0@144.82.123.1> References: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> Message-ID: <3.0.5.32.20000222130614.00af6140@144.82.123.1> >Code for ellipse-fitting attached Sorry, forgot. Attached now. Tim. -------------- next part -------------- // PiluEllipseFit.h //************************************************************************** // This java code is an interactive demo of the first ellipse-specific // direct fitting method presented in the papers: // M. Pilu, A. Fitzgibbon, R.Fisher ``Ellipse-specific Direct // least-square Fitting '' , IEEE International Conference on Image // Processing, Lausanne, September 1996. (poscript) (HTML) // A. Fitzgibbon, M. Pilu , R.Fisher ``Direct least-square fitting of // Ellipses '' , International Conference on Pattern Recognition, Vienna, // August 1996. (poscript) - Extended version available as DAI Research // Paper #794 // The demo can be tried out at // http://www.dai.ed.ac.uk/students/maurizp/ElliFitDemo/demo.html // The code was written by Maurizio Pilu , University of Edinburgh. The // applet's graphic interface was much inspired by the Curve Applet // written by Michael Heinrichs at SFU, Vancouver: // http://fas.sfu.ca:80/1/cs/people/GradStudents/heinrica/personal/curve.html // Some math routines are from the "Numerical Recipes in C" by // Press/Teukolsky/Vettering/Flannery, Cambridge Uiniversity Press, // Second Edition (1988). PLEASE READ COPYRIGHT ISSUES ON THE NUMERICAL // RECIPES BOOK. // NOTE: Some parts of the program are rather scruffy. The author // will tidy it up whan he has some spare time. // DISCLAIMER: The authors and the department assume no responsabilities // whatsoever for any wrong use of this code. // COPYRIGHT: Any commercial use of the code and the method is forbidden // without written authorization from the authors. //************************************************************************** // mindless hack into c from java by tim hutton struct C2dVector { float x,y }; class PiluEllipseFit { public: void paint(C2dVector *points,int np,CDC *pDC,C2dVector *output_points=NULL) { double **D = new double*[np+1]; for(int c=0;cSetPixel(points[i].x,points[i].y,RGB(0,0,0)); } } // initialize the constraint matrix for(i=0;i<7;i++) for(j=0;j<7;j++) Const[i][j]=0; Const[1][3]=-2; Const[2][2]=1; Const[3][1]=-2; // method doesn't work for fewer than 6 points if (np<6) return; // Now first fill design matrix for (i=1; i <= np; i++) { tx = points[i-1].x; ty = points[i-1].y; D[i][1] = tx*tx; D[i][2] = tx*ty; D[i][3] = ty*ty; D[i][4] = tx; D[i][5] = ty; D[i][6] = 1.0; } //pm(Const,"Constraint"); // Now compute scatter matrix S A_TperB(D,D,(double**)S,np,6,np,6); //pm(S,"Scatter"); choldc((double**)S,6,(double**)L); //pm(L,"Cholesky"); inverse((double**)L,(double**)invL,6); //pm(invL,"inverse"); AperB_T((double**)Const,(double**)invL,(double**)temp,6,6,6,6); AperB((double**)invL,(double**)temp,(double**)C,6,6,6,6); //pm(C,"The C matrix"); jacobi((double**)C,6,d,(double**)V,nrot); //pm(V,"The Eigenvectors"); /* OK */ //pv(d,"The eigevalues"); A_TperB((double**)invL,(double**)V,(double**)sol,6,6,6,6); //pm(sol,"The GEV solution unnormalized"); /* SOl */ // Now normalize them for (j=1;j<=6;j++) /* Scan columns */ { double mod = 0.0; for (i=1;i<=6;i++) mod += sol[i][j]*sol[i][j]; for (i=1;i<=6;i++) sol[i][j] /= sqrt(mod); } //pm(sol,"The GEV solution"); /* SOl */ double zero=10e-20; double minev=10e+20; int solind=0; for (i=1; i<=6; i++) { if (d[i]<0 && fabs(d[i])>zero) solind = i; } // Now fetch the right solution for (j=1;j<=6;j++) pvec[j] = sol[j][solind]; //pv(pvec,"the solution"); // ...and plot it draw_conic(pvec,npts,XY); // actually draw to screen if desired if(pDC!=NULL) { for (i=1; iMoveTo((int)XY[1][i],(int)XY[2][i]); pDC->LineTo((int)XY[1][i+1],(int)XY[2][i+1]); } else { pDC->MoveTo((int)XY[1][i],(int)XY[2][i]); pDC->LineTo((int)XY[1][1],(int)XY[2][1]); } } } // return the ellipse points in output_points if desired if(output_points!=NULL) { for (i=1; i 4 && fabs(d[ip])+g == fabs(d[ip]) && fabs(d[iq])+g == fabs(d[iq])) a[ip][iq]=0.0; else if (fabs(a[ip][iq]) > tresh) { h=d[iq]-d[ip]; if (fabs(h)+g == fabs(h)) t=(a[ip][iq])/h; else { theta=0.5*h/(a[ip][iq]); t=1.0/(fabs(theta)+sqrt(1.0+theta*theta)); if (theta < 0.0) t = -t; } c=1.0/sqrt(1+t*t); s=t*c; tau=s/(1.0+c); h=t*a[ip][iq]; z[ip] -= h; z[iq] += h; d[ip] -= h; d[iq] += h; a[ip][iq]=0.0; for (j=1;j<=ip-1;j++) { ROTATE(a,j,ip,j,iq,tau,s); } for (j=ip+1;j<=iq-1;j++) { ROTATE(a,ip,j,j,iq,tau,s); } for (j=iq+1;j<=n;j++) { ROTATE(a,ip,j,iq,j,tau,s); } for (j=1;j<=n;j++) { ROTATE(v,j,ip,j,iq,tau,s); } ++nrot; } } } for (ip=1;ip<=n;ip++) { b[ip] += z[ip]; d[ip]=b[ip]; z[ip]=0.0; } } //printf("Too many iterations in routine JACOBI"); } // Perform the Cholesky decomposition // Return the lower triangular L such that L*L'=A void choldc(double **a, int n, double **l) { int i,j,k; double sum; double *p = new double[n+1]; for (i=1; i<=n; i++) { for (j=i; j<=n; j++) { for (sum=a[i][j],k=i-1;k>=1;k--) sum -= a[i][k]*a[j][k]; if (i == j) { if (sum<=0.0) // printf("\nA is not poitive definite!"); {} else p[i]=sqrt(sum); } else { a[j][i]=sum/p[i]; } } } for (i=1; i<=n; i++) for (j=i; j<=n; j++) if (i==j) l[i][i] = p[i]; else { l[j][i]=a[j][i]; l[i][j]=0.0; } } /********************************************************************/ /** Calcola la inversa della matrice B mettendo il risultato **/ /** in InvB . Il metodo usato per l'inversione e' quello di **/ /** Gauss-Jordan. N e' l'ordine della matrice . **/ /** ritorna 0 se l'inversione corretta altrimenti ritorna **/ /** SINGULAR . **/ /********************************************************************/ int inverse(double **TB, double **InvB, int N) { int k,i,j,p,q; double mult; double D,temp; double maxpivot; int npivot; double **B = new double*[N+1]; double **A = new double*[N+1]; double **C = new double*[N+1]; for(i=0;i=eps) { if (npivot!=k) for (j=k;j<=2*N+1;j++) { temp=A[npivot][j]; A[npivot][j]=A[k][j]; A[k][j]=temp; } ; D=A[k][k]; for (j=2*N+1;j>=k;j--) A[k][j]=A[k][j]/D; for (i=1;i<=N;i++) { if (i!=k) { mult=A[i][k]; for (j=2*N+1;j>=k;j--) A[i][j]=A[i][j]-mult*A[k][j] ; } } } else { // printf("\n The matrix may be singular !!") ; return(-1); }; } /** Copia il risultato nella matrice InvB ***/ for (k=1,p=1;k<=N;k++,p++) for (j=N+2,q=1;j<=2*N+1;j++,q++) InvB[p][q]=A[k][j]; return(0); } /* End of INVERSE */ void AperB(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_righA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_colA;l++) { _res[p][q]=_res[p][q]+_A[p][l]*_B[l][q]; } } } } void A_TperB(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_colA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_righA;l++) { _res[p][q]=_res[p][q]+_A[l][p]*_B[l][q]; } } } } void AperB_T(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_colA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_righA;l++) { _res[p][q]=_res[p][q]+_A[p][l]*_B[q][l]; } } } } void draw_conic(double *pvec, int nptsk, double **points) { int npts=nptsk/2; double *u[3]; double *Aiu[3]; double *L[3]; double *B[3]; double *Xpos[3]; double *Xneg[3]; double *ss1[3]; double *ss2[3]; double *uAiu[3]; for(int i=0;i<3;i++) { u[i] = new double[npts+1]; Aiu[i] = new double[npts+1]; L[i] = new double[npts+1]; B[i] = new double[npts+1]; Xpos[i] = new double[npts+1]; Xneg[i] = new double[npts+1]; ss1[i] = new double[npts+1]; ss2[i] = new double[npts+1]; uAiu[i] = new double[npts+1]; } double *lambda = new double[npts+1]; int c; double *A[3]; for(c=0;c<3;c++) A[c]=new double[3]; double *Ai[3]; for(c=0;c<3;c++) Ai[c]=new double[3]; double *Aib[3]; for(c=0;c<3;c++) Aib[c]=new double[2]; double *b[3]; for(c=0;c<3;c++) b[c]=new double[2]; double *r1[2]; for(c=0;c<2;c++) r1[c]=new double[2]; double Ao, Ax, Ay, Axx, Ayy, Axy; double pi = 3.14781; double theta; int j; double kk; Ao = pvec[6]; Ax = pvec[4]; Ay = pvec[5]; Axx = pvec[1]; Ayy = pvec[3]; Axy = pvec[2]; A[1][1] = Axx; A[1][2] = Axy/2; A[2][1] = Axy/2; A[2][2] = Ayy; b[1][1] = Ax; b[2][1] = Ay; // Generate normals linspace for (i=1, theta=0.0; i<=npts; i++, theta+=(pi/npts)) { u[1][i] = cos(theta); u[2][i] = sin(theta); } inverse((double**)A,(double**)Ai,2); AperB((double**)Ai,(double**)b,(double**)Aib,2,2,2,1); A_TperB((double**)b,(double**)Aib,(double**)r1,2,1,2,1); r1[1][1] = r1[1][1] - 4*Ao; AperB((double**)Ai,(double**)u,(double**)Aiu,2,2,2,npts); for (i=1; i<=2; i++) for (j=1; j<=npts; j++) uAiu[i][j] = u[i][j] * Aiu[i][j]; for (j=1; j<=npts; j++) { if ( (kk=(r1[1][1] / (uAiu[1][j]+uAiu[2][j]))) >= 0.0) lambda[j] = sqrt(kk); else lambda[j] = -1.0; } // Builds up B and L for (j=1; j<=npts; j++) L[1][j] = L[2][j] = lambda[j]; for (j=1; j<=npts; j++) { B[1][j] = b[1][1]; B[2][j] = b[2][1]; } for (j=1; j<=npts; j++) { ss1[1][j] = 0.5 * ( L[1][j] * u[1][j] - B[1][j]); ss1[2][j] = 0.5 * ( L[2][j] * u[2][j] - B[2][j]); ss2[1][j] = 0.5 * ( -L[1][j] * u[1][j] - B[1][j]); ss2[2][j] = 0.5 * ( -L[2][j] * u[2][j] - B[2][j]); } AperB((double**)Ai,(double**)ss1,(double**)Xpos,2,2,2,npts); AperB((double**)Ai,(double**)ss2,(double**)Xneg,2,2,2,npts); for (j=1; j<=npts; j++) { if (lambda[j]==-1.0) { points[1][j] = -1.0; points[2][j] = -1.0; points[1][j+npts] = -1.0; points[2][j+npts] = -1.0; } else { points[1][j] = Xpos[1][j]; points[2][j] = Xpos[2][j]; points[1][j+npts] = Xneg[1][j]; points[2][j+npts] = Xneg[2][j]; } } } }; From watanabe at moldyn.com Tue Feb 22 08:06:43 2000 From: watanabe at moldyn.com (Masa Watanabe) Date: Tue, 22 Feb 2000 08:06:43 -0500 Subject: remove from list Message-ID: <22E7F3D5131DD2119E3700A0C9D18F6D318227@adams.moldyn.com> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From will.schroeder at kitware.com Tue Feb 22 11:45:48 2000 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 22 Feb 2000 08:45:48 -0800 Subject: No subject Message-ID: <4.3.0.20000222083446.00b11f60@pop.nycap.rr.com> Hi Folks- I wanted to remind everybody on the list that there is an interesting workshop to be help in April: Visualization Development Environments 2000. Several of you have submitted abstracts for VTK, there is also room for anybody who wants to help visualize the data sets that the organizers will provide. Anyone who is interested in helping or who has questions please contact me directly. See http://rainbow.ncsc.org/vsw00/. I think we'll learn a lot. I was at Princeton yesterday talking to one of the organizers and he's expecting 100-200 people, which is a fairly intimate conference size, meaning (I hope) that we can meet lots of interesting people. Will -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From maja.malus at mf.uni-lj.si Tue Feb 22 08:52:08 2000 From: maja.malus at mf.uni-lj.si (Maja Malus) Date: Tue, 22 Feb 2000 14:52:08 +0100 Subject: Central line and path finder for Jan Ehrhardt Message-ID: <20000222135301.94B8816EA01@razor.arnes.si> A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1235 bytes Desc: not available URL: From inci at fh-aargau.ch Tue Feb 22 10:00:28 2000 From: inci at fh-aargau.ch (Ahmet Inci) Date: Tue, 22 Feb 2000 15:00:28 +0000 Subject: vtkCellLocator Message-ID: <38B2A48C.B5F3F759@fh-aargau.ch> I work with vtkCellLocator. My Programm worked well under vtk 2.4 in linux but I have problems under vtk 3.0 beta version december 1999. The Code is: vtkPolyData *data = vtkPolyData::New(); vtkCellLocator *Locator = vtkCellLocator::New(); int result,subid,cellid; float t,tol; float punkt0[3],epunkt[3],pccords[3],sp[3]; ... ... ... Locator->SetDataSet(data); Locator->BuildLocator(); ... ... ... result = Locator->IntersectWithLine(punkt0,epunkt,tol,t,sp,pcoords,subid,cellid); if ( result == 0) { // there doesn't exist a cell between punkt0 and epunkt ... ... } else { // ther exist a cell between punkt0 and epunkt } In vtk 2.4 if there doesn't exist a cell then the result was zero. But in vtk 3.0 the result is always zero. How can I find out in vtk 3.0 if there exist a cell between two points ? Thanks inci -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From l18596 at alunos.cc.fc.ul.pt Tue Feb 22 10:35:47 2000 From: l18596 at alunos.cc.fc.ul.pt (Luis Miguel Goncalves Lopes) Date: Tue, 22 Feb 2000 15:35:47 +0000 Subject: remove from list Message-ID: <3.0.5.32.20000222153547.00809100@alunos.cc.fc.ul.pt> remove **************************************************************************** ********************************************************* Luis Miguel Gon?alves Lopes Departamento de Quimica e Bioquimica, Faculdade de Ci?ncias da Universidade de Lisboa Instituto de Ciencia Aplicada e Tecnologia, Laboratorio de Bioqumica Aplicada Ed. ICAT, Campus da FCUL, Campo Grande, 1749-016 Lisboa, Portugal. Phone:+(351-21)- 750 0000 ext. 2746 Fax: +(351-21)- 757 3625 e-mail: l18596 at alunos.cc.fc.ul.pt **************************************************************************** ********************************************************* **************************************************************************** ************************************** -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From francis.bouchet at areall.com Tue Feb 22 10:52:54 2000 From: francis.bouchet at areall.com (Francis Bouchet) Date: Tue, 22 Feb 2000 16:52:54 +0100 Subject: DialogBox Visual C++ 5.0 Message-ID: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Hello, I'd like build a display with my images included in a Dialog box built with Visual C++ 5.0. Has anybody already experimented something like that? If so, could you show me how I should proceed ? Thank you, Francis. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From bat5 at po.cwru.edu Tue Feb 22 11:50:56 2000 From: bat5 at po.cwru.edu (Brian Alexander Todd) Date: Tue, 22 Feb 2000 11:50:56 -0500 Subject: DialogBox Visual C++ 5.0 In-Reply-To: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Message-ID: <3.0.1.32.20000222115056.01319b3c@pop.cwru.edu> At 04:52 PM 2/22/00 +0100, Francis Bouchet wrote: >Hello, > >I'd like build a display with my images included in a Dialog box built with >Visual C++ 5.0. >Has anybody already experimented something like that? >If so, could you show me how I should proceed ? > >Thank you, > >Francis. > > This is pretty much all you need to know. wxWindow* canvas = new wxWindow(); vtkWin32OpenGLRenderWindow* renWindow = vtkWin32OpenGLRenderWindow::New(); HWND hwnd; renWindow->SetWindowId( (HWND) canvas->GetHWND() ); This is for wxWindows (GUI toolkit) under MSW. I think if MSW has some sort of windows base class, it should work the same way just replacing wxWindow's with whatever the MFC window is. In fact I figured this out from the vtk MFC example. By the way, can anyone tell me what the analog for this is under GTK? e.g. How do you get vtk to render into a GTK window. Thanks, Brian Todd Brian Todd email: bat5 at po.cwru.edu N.O.B.L. home: (216) 791-2407 C.W.R.U. office: (216) 368-4209 Cleveland, OH 44106 fax: (216) 368-4969 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cantinn at IRO.UMontreal.CA Tue Feb 22 12:58:59 2000 From: cantinn at IRO.UMontreal.CA (Noa Mathieu Cantin) Date: Tue, 22 Feb 2000 12:58:59 -0500 (EST) Subject: remove from list (fwd) Message-ID: <200002221759.MAA26330@blb25.IRO.UMontreal.CA> Please, could anybody do something about this? I wrote to the admin of this majordomo but got no answer. It seems that after this mailling list had some problems, people that were formerly unregistered (like me...) are now re-registered. Could someone check this? thanks. Noa Cantin Forwarded message: > From owner-vtkusers at public.kitware.com Tue Feb 22 12:54:13 2000 > X-Authentication-Warning: public.kitware.com: majordomo set sender to owner-vtkusers at public.kitware.com using -f > Message-Id: <3.0.5.32.20000222153547.00809100 at alunos.cc.fc.ul.pt> > X-Sender: l18596 at alunos.cc.fc.ul.pt > X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) > Date: Tue, 22 Feb 2000 15:35:47 +0000 > To: vtkusers at public.kitware.com > From: Luis Miguel Goncalves Lopes > Subject: remove from list > Mime-Version: 1.0 > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from quoted-printable to 8bit by public.kitware.com id KAA20587 > Sender: owner-vtkusers at public.kitware.com > Precedence: bulk > > remove > > **************************************************************************** > ********************************************************* > Luis Miguel Gon?alves Lopes > Departamento de Quimica e Bioquimica, Faculdade de Ci?ncias da Universidade > de Lisboa > Instituto de Ciencia Aplicada e Tecnologia, > Laboratorio de Bioqumica Aplicada > Ed. ICAT, Campus da FCUL, Campo Grande, 1749-016 Lisboa, Portugal. > Phone:+(351-21)- 750 0000 ext. 2746 > Fax: +(351-21)- 757 3625 > e-mail: l18596 at alunos.cc.fc.ul.pt > **************************************************************************** > ********************************************************* > > > > > > **************************************************************************** > ************************************** > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From peter at synerdyne.com Tue Feb 22 13:18:17 2000 From: peter at synerdyne.com (Peter Diaconescu) Date: Tue, 22 Feb 2000 10:18:17 -0800 Subject: Remove from mailing list Message-ID: <001c01bf7d61$31285610$b501a8c0@peterpc2000> Please remove my e-mail address from your mailing list. Thank you Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at synerdyne.com Tue Feb 22 13:19:33 2000 From: peter at synerdyne.com (Peter Diaconescu) Date: Tue, 22 Feb 2000 10:19:33 -0800 Subject: Remove from mailing list Message-ID: <004d01bf7d61$5e5f8040$b501a8c0@peterpc2000> Remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.hoffman at kitware.com Tue Feb 22 13:39:20 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Tue, 22 Feb 2000 13:39:20 -0500 Subject: How to remove yourself from this list In-Reply-To: <004d01bf7d61$5e5f8040$b501a8c0@peterpc2000> Message-ID: <4.2.0.58.20000222132534.01db9920@pop.nycap.rr.com> Hello All, We recently moved the VTK mailing list from GE to Kitware. The list we used was a little bit out of date, so some people that were removed from the list may find themselves back on the list. Sorry about that. However, there does seem to be some confusion on how to get off the list. If you are on this list and do not want to be on the list, please follow these instructions: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . NOTE, that it is majordomo at public.kitware.com and NOT vtkusers at public.kitware.com. We have added a filter, so that the remove messages sent to vtkusers will no longer be sent to the list, but they will also not get you off the list. Further NOTE, if you subscribed from yogy at bar and attempt to unsubscribe from booboo at bar it will not work. You have to unsubscribe from the account that is on the list. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From chelberg at endor.cs.ohiou.edu Tue Feb 22 15:29:38 2000 From: chelberg at endor.cs.ohiou.edu (David Chelberg) Date: Tue, 22 Feb 2000 15:29:38 -0500 Subject: Streamlines in 2D/3D Message-ID: <200002222029.PAA26523@endor.cs.ohiou.edu> Does anyone have any code illustrating creation of streamlines in 2D? For example, suppose you have an image. You compute the gradient of the image. Push the gradient data into vectors. Then you want to find the "valleys" of the image. One way to do this is to go in the direction of the local gradient (the steepest descent). Another way of looking at the problem is that suppose you have a local surface grid. You want to determine where streams would flow if water was available at a particular position (an underground spring). Anyone have suggestions? Thanks, -- David Chelberg (chelberg at ohiou.edu) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at ncsa.uiuc.edu Tue Feb 22 15:37:23 2000 From: prajlich at ncsa.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 14:37:23 -0600 (CST) Subject: new vtkActorToPF In-Reply-To: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Message-ID: Hi vtkusers, for those of you that are interested in computing geometry with VTK but rendering with SGI's Performer, a new version of vtkActorToPF is available. vtkActorToPF allows you to develop interactive visualization applications for multi-headed displays like the CAVE very easily. New for Version 6.0: 1. Merges regular and parallel versions of vtkActorToPFTranslator into one release. 2. Many more examples. There are now 6 pfCAVE examples, 6 regular Performer examples, and the two versions of the parallel example. 3. Better error checking. For instance, if there are no normals, lighting will automatically be turned off for the geode. 4. Code for compiling a Performer vtk loader DSO. This DSO can be used in conjunction with "perfly." It allows you to load static geometry from any vtkPolyData file. -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at monet.astro.uiuc.edu Tue Feb 22 15:46:25 2000 From: prajlich at monet.astro.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 14:46:25 -0600 (CST) Subject: new vtkActorToPF Message-ID: <200002222046.OAA2641505@monet.astro.uiuc.edu> Hi vtkusers, for those of you that are interested in computing geometry with VTK but rendering with SGI's Performer, a new version of vtkActorToPF is available. vtkActorToPF allows you to develop interactive visualization applications for multi-headed displays like the CAVE very easily. New for Version 6.0: 1. Merges regular and parallel versions of vtkActorToPFTranslator into one release. 2. Many more examples. There are now 6 pfCAVE examples, 6 regular Performer examples, and the two versions of the parallel example. 3. Better error checking. For instance, if there are no normals, lighting will automatically be turned off for the geode. 4. Code for compiling a Performer vtk loader DSO. This DSO can be used in conjunction with "perfly." It allows you to load static geometry from any vtkPolyData file. -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at ncsa.uiuc.edu Tue Feb 22 16:37:36 2000 From: prajlich at ncsa.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 15:37:36 -0600 (CST) Subject: new vtkActorToPF In-Reply-To: Message-ID: The URL for vtkActorToPF is: http://hoback.ncsa.uiuc.edu/~prajlich/vtkActorToPF/ -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- On Tue, 22 Feb 2000, Paul John Rajlich wrote: > > Hi vtkusers, > > for those of you that are interested in computing geometry with VTK > but rendering with SGI's Performer, a new version of vtkActorToPF is > available. vtkActorToPF allows you to develop interactive visualization > applications for multi-headed displays like the CAVE very easily. > > New for Version 6.0: > > 1. Merges regular and parallel versions of vtkActorToPFTranslator into > one release. > 2. Many more examples. There are now 6 pfCAVE examples, 6 regular > Performer examples, and the two versions of the parallel example. > 3. Better error checking. For instance, if there are no normals, > lighting will automatically be turned off for the geode. > 4. Code for compiling a Performer vtk loader DSO. This DSO can be used > in conjunction with "perfly." It allows you to load static geometry > from any vtkPolyData file. > > -Paul > > ---------------------------------------------------------------------- > Paul J. Rajlich - prajlich at ncsa.uiuc.edu > Visualization and Virtual Environments > National Center for Supercomputing Applications > http://brighton.ncsa.uiuc.edu/~prajlich/ > ---------------------------------------------------------------------- > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 18:09:07 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 11:09:07 +1200 Subject: More precise clipping with implicit functions Message-ID: <4C25688D.007F2E1D.00@mail.forestresearch.co.nz> John, Just a report from the trenches. My work with clipping etc prompted me to update from vtk 2.2 to the latest nightly to try out Subdivision Surfaces. I am using Borland C Builder 3. PCMAKER, and the command line make, built the whole vtk DLL beautifully (applause to vtk). The only glitch (apart from some out-of-memory failures) was with vtkDirectory. This has conditional code for UNIX or WIN32, but is incompatible with Borland (findfirst, findnext). I cloned the whole WIN32 block and tweaked it with the Borland specific functions, which got it to compile OK. What is your experience with this?. I downloaded BCBvtkRenderWindow.zip from your page. The links to BCBvtkMappedRenderWindow.zip and vtkdemo.zip, which I was interested in, seemed to be broken. I got BCBvtkRenderWindow working quite painlessly (applause to you) with the following changes: BCBvtkRenderWindow.cpp: //DP if (FInteractor) tb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle()); if (FInteractor) tb = (vtkInteractorStyleTrackball *)FInteractor->GetInteractorStyle(); //DP BCBvtkRenderWindow.h: //DP __property Anchors; //DP __property Constraints; //DP __property OnCanResize; //DP __property OnConstrainedResize; BCBvtkRenderWindow does seem to suffer from one fault, which your earlier VTK_PANEL shared. That is if you re-size the app window larger, the render panel is sized up, but beyond a certain size the viewport is too small. The effect is as though you are looking at the scene through a fixed size window placed at the upper left of the panel. Any clues on how to fix this?. I tried using an ImplicitBoolean setup to get better clipping. It did work, but the resulting implicit function needs to be sampled at high resolution with vtkSampleFuntion. At (60*60*60) resolution, and a wait of about 2hrs, I got a result that was unacceptable. Forget that idea, especially with your data. I then tried vtkLinearSubdivisionFilter on my polygonal data (preceded by vtkTriangleFilter). Thanks to Bill Lorenson for the tip off about this class. This allowed much better interaction between the polydata and the implicit function, MUCH BETTER. For me this gives a perfectly acceptable solution, with 2 or 3 subdivision iterations the results are very good. I have some ideas about extending the Subdivision Surfaces code to make it a better suited for this type of problem, but first I would like to consider the issues in your application. I am not completely clear about your problem. This "fresnel zone", is it a cylindrical region?, which you want to intersect with a very large number of polygons (buildings), over a very long path?. regards Dave Pont -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 20:41:54 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 13:41:54 +1200 Subject: Borland specific code Message-ID: <4C25688E.000954C8.00@mail.forestresearch.co.nz> Bill, I have attached an excerpt from vtkDirectory.cxx that I modified and compiled OK with Borland C++Builder 3. As you can see I use the compiler defined macro __BORLANDC__ to allow me to include the appropriate headers and set up macros for the data declaration and function calls that are specific to the two WIN32 compilers. This allows one copy of the WIN32 implementation, which is a bit nicer for maintenance. My first hack was actually just a specific implementation for each compiler, but as the differences are very small the use of macros makes it much tidier. Please note that while this compiles under Borland I have not tested the code. I leave it to you to see if MSC and UNIX compilers like this code, and if it tests out OK. regards Dave Pont I amended the _WIN32 block (from about line 40) to be: // First windows style directory access #ifdef _WIN32 #include #include #include #include #ifdef __BORLANDC__ // support BORLAND specific directory access #include #define DECL_WIN32FILEDATA( data ) struct ffblk data #define WIN32FINDFIRST( buf, data ) findfirst(buf, data, 0) // 0=ordinary files #define WIN32FINDNEXT( srchHandle, data ) findnext(data) #define WIN32FINDCLOSE( srchHandle ) 0 // trick to allow good return value #else // MSC #include #include #include #include #include #define DECL_WIN32FILEDATA( data ) struct _finddata_t data #define WIN32FINDFIRST( buf, data ) _findfirst(buf, data) #define WIN32FINDNEXT( srchHandle, data ) _findnext(srchHandle, data) #define WIN32FINDCLOSE( srchHandle ) _findclose(srchHandle) #endif // MSC int vtkDirectory::Open(const char* name) { char* buf; int n = strlen(name); if (name[n - 1] == '/') { buf = new char[n + 1 + 1]; sprintf(buf, "%s*", name); } else { buf = new char[n + 2 + 1]; sprintf(buf, "%s/*", name); } DECL_WIN32FILEDATA( data );// data of current file // First count the number of files in the directory long srchHandle = WIN32FINDFIRST( buf, &data ); if (srchHandle == -1) { cerr << "can't open directory " << buf << endl; this->NumberOfFiles = 0; return 0; } this->NumberOfFiles = 1; while(WIN32FINDNEXT(srchHandle,&data) != -1) { this->NumberOfFiles++; } this->Files = new char*[this->NumberOfFiles]; // Now put them into the file array srchHandle = WIN32FINDFIRST( buf, &data ); delete [] buf; if (srchHandle == -1) { this->NumberOfFiles = 0; return 0; } // Loop through names int i = 0; do { this->Files[i] = strcpy(new char[strlen(data.ff_name)+1], data.ff_name); i++; } while (WIN32FINDNEXT( srchHandle, &data ) != -1); this->Path = strcpy(new char[strlen(name)+1], name); return WIN32FINDCLOSE(srchHandle) != -1; } #else // Unix style directory access -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From avner at jhu.edu Tue Feb 22 20:07:15 2000 From: avner at jhu.edu (Avner Aliphas) Date: Tue, 22 Feb 2000 20:07:15 -0500 Subject: SNAKES Message-ID: <38B332C3.71FF0647@jhu.edu> Does anyone know of an implementation of Snake Splines or Active Contours in The VTK Library. Thanks -Avner -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 20:59:47 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 13:59:47 +1200 Subject: More precise clipping with implicit functions Message-ID: <4C25688E.000AF809.00@mail.forestresearch.co.nz> John, Thanks for the pointer about window clipping, I did wonder about starting with a larger window!, so I will try that. I am running Windows 98 on a Dell Inspiron 7000 laptop with a "RAGE LT PRO AGP 2X" display adaptor. I might twiddle with hardware acceleration settings to see if I can make it behave better. No problem for me about your web page. The BCBvtkRenderWindow I downloaded worked fine, so I am very happy to have vtk so nicely integrated into the C Builder environment. Yes I think bounding the subdivision activity will be a very good first step. If it is just intersection with the SURFACE of the ellipse you are interested in, maybe you could clip away polydata from the interior too?. Keep me posted, as eventually we might be able to suggest some useful improvements to the Subdivision Surface classes. regards Dave Pont -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dnetherway at health.adelaide.edu.au Tue Feb 22 21:05:28 2000 From: dnetherway at health.adelaide.edu.au (David J. Netherway) Date: Wed, 23 Feb 2000 11:35:28 +0930 Subject: Querying the scalar value at a point Message-ID: <38B34068.398F6F06@health.adelaide.edu.au> Hello, I have been trying to get the interpolated scalar value at an internal point of a medical data volume with scalars in the range 0-4095. I have tried to use a point to probe the data as follows: vtkImageReader reader reader attributes etc vtkPoints point point Allocate 1 1 point SetPoint 0 $x $y $z vtkUnstructuredGrid pointUG pointUG SetPoints point vtkProbeFilter probe probe SetInput pointUG probe SetSource [reader GetOutput] # [[probe GetPointData] GetScalars] GetScalar 0 # the above line does not work: probe has no method GetPointData I also tried a structuredPoints approach vtkStructuredPoints pointSP pointSP SetOrigin $x $y $z pointSP SetDimensions 1 1 1 vtkProbeFilter probe probe SetInput pointSP probe SetSource [reader GetOutput] but still could not find a way query the probe position. I also tried to reslice at single point and failed. I was following the ViewerApp.tcl example at one stage. It gives a point that is not an interpolated poiint and I think only works if the data range is less that 255 (I am not sure about this latter point). In one variation a line similar to the following indicated that the datatype was incorrect. [probe GetOutput] GetScalarComponentAsFloat $x $y $z 0 Would someone please give me a pipeline that works for a basic problem that should be (and I expect is) quite simple. Thanks, David Netherway -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Wed Feb 23 00:06:57 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Tue, 22 Feb 2000 21:06:57 PST Subject: vtk 3.1: using vtkInteractorStyle Message-ID: <20000223050657.2915.qmail@hotmail.com> Dear fellow vkter's Trying to (re)compile code with vtk 3.1 instead of vtk 2.4, I've found out that the methods that generate mouse button, etc. callbacks now have their own (abstract) class, vtkInteractorStyle. The documentation briefly mentions that vtkInteractorStyle should not be instantiated directly, but via a "wrapper" class such as vtkRenderWindowInteractor. While I do the equivalent thing regularly in Java, I don't know the syntax to do this in C++. If someone could provide and example code fragment I'd greatly appreciate it. Thanks Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From a.anner at medres.ch Wed Feb 23 03:28:58 2000 From: a.anner at medres.ch (Anner Adrian) Date: Wed, 23 Feb 2000 09:28:58 +0100 Subject: SNAKES In-Reply-To: <38B332C3.71FF0647@jhu.edu> References: <38B332C3.71FF0647@jhu.edu> Message-ID: <18395.000223@medres.ch> Wednesday, February 23, 2000, 2:07:15 AM, you wrote: > Does anyone know of an implementation of Snake Splines or Active > Contours in The VTK Library. > Thanks > -Avner > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- Hello Avner, I was looking for the same some weeks ago but couldn't find anything. So I implemented my own snake-algorithm. I found different information on the internet over different kinds of snakes. Here are some interesting links which are worth to have al look at: http://iacl.ece.jhu.edu/projects/gvf/ http://www.cs.wisc.edu/computer-vision/projects/gsnake.html http://www.cc.gatech.edu/conferences/iuw/snakes/ http://caslab.bu.edu/course/cs585/P3/nbomberg/p3.html http://iris.usc.edu/Vision-Notes/bibliography/segment360.html#Active There is also a new implementation called Tamed Snakes, but the link is dead at the moment. http://shiva-biwi-main.ee.ethz.ch/~jhug/curriculum.html but if you are interested I could send you a pdf-file. I didn't implement the snake-algorithm in vtk, we are using qt http://www.troll.no/ to build the GUI, so I wrote a class that uses an image format from qt (QPixmap). It was quit a hard work to write this class. -- Best regards, Anner Adrian mailto:a.anner at medres.ch -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From pra at serv2.imm.dtu.dk Wed Feb 23 04:46:10 2000 From: pra at serv2.imm.dtu.dk (Per =?iso-8859-1?Q?R=F8nsholt?= Andresen) Date: Wed, 23 Feb 2000 10:46:10 +0100 Subject: DeepCopy in vtkPolyData and other data classes Message-ID: <38B3AC61.C7B66F42@serv2.imm.dtu.dk> Hi, I would like to copy one (poly-) dataset to another, but I've only found the function 'CopyStructure' in vtkPolyData. How do I make a 'DeepCopy'? (I hope, it's not necessary to write all the "if exists" and copy functions myself) Wouldn't it be nice to have a 'DeepCopy' in all the "data set classes"? Thanks in advance, Per -- ______________________________________________________________ Per Roensholt Andresen http://www.imm.dtu.dk/~pra Assistant Research Professor, Ph.D. Technical University of Denmark -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.biddiscombe at rl.ac.uk Wed Feb 23 05:09:43 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Wed, 23 Feb 2000 10:09:43 -0000 Subject: vtk 3.1: using vtkInteractorStyle References: <20000223050657.2915.qmail@hotmail.com> Message-ID: <002101bf7de6$1b84a090$0100000a@jabhomepc1> Here's a piece of code from a C++Builder component //-------------------------------------------------------------------------- - vtkRenderWindow * __fastcall BCBvtkRenderWindow::GetRenderWindow(void) { if (!FRenderWindow) { // Stuff the renderwindow into our window FRenderWindow = vtkRenderWindow::New(); FRenderWindow->SetParentId(Parent->Handle); FRenderWindow->SetWindowId(Handle); FRenderWindow->SwapBuffersOn(); // Clean and Frame to avoid unsightly garbage during initial // display which may be long when a complex scene is first rendered ((vtkWin32OpenGLRenderWindow*)FRenderWindow)->Clean(); FRenderWindow->Frame(); FInteractor = vtkWin32RenderWindowInteractor::New(); FInteractor->SetRenderWindow(FRenderWindow); FInteractor->SetInstallMessageProc(false); FInteractor->UpdateSize(Width,Height); FInteractor->Initialize(); Invalidate(); } return FRenderWindow; } You can see that we just need to set an interactor and that's it later on I use this code (but note that vtkInteractorStyleFlight isn't part of the main distribution yet, so ignore it) And note that interactorsylte trackball handles trackball and joystick modes! //-------------------------------------------------------------------------- - void __fastcall BCBvtkRenderWindow::SetInteractorMode(BCBvtkInteractorMode im) { if (im==IM_Trackball) { vtkInteractorStyleTrackball *iatb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle() ); if (!iatb) { iatb = vtkInteractorStyleTrackball::New(); FInteractor->SetInteractorStyle(iatb); iatb->Delete(); } iatb->SetTrackballModeToTrackball(); FInteractorMode = IM_Trackball; } else if (im==IM_Joystick) { vtkInteractorStyleTrackball *iatb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle() ); if (!iatb) { iatb = vtkInteractorStyleTrackball::New(); FInteractor->SetInteractorStyle(iatb); iatb->Delete(); } iatb->SetTrackballModeToJoystick(); FInteractorMode = IM_Joystick; } else if (im==IM_Flight) { vtkInteractorStyleFlight *iafl = vtkIsTypeMacro(vtkInteractorStyleFlight,FInteractor->GetInteractorStyle()); if (!iafl) { iafl = vtkInteractorStyleFlight::New(); FInteractor->SetInteractorStyle(iafl); iafl->Delete(); } FInteractorMode = IM_Flight; } } -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From jeronim0930 at netsgo.com Wed Feb 23 09:22:24 2000 From: jeronim0930 at netsgo.com (=?euc-kr?B?yKu9wrjw?=) Date: Wed, 23 Feb 2000 23:22:24 +0900 Subject: remove from list Message-ID: <000d01bf7e09$67f55500$9661dbd2@jeronimo> unsubscribe vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.hoffman at kitware.com Wed Feb 23 09:56:22 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Wed, 23 Feb 2000 09:56:22 -0500 Subject: news group Message-ID: <4.2.0.58.20000223094339.01d9f920@pop.nycap.rr.com> Hello, I have had several requests for a vtk newsgroup in addition to the mailing list. I am not sure how to set one up. However, it looks like someone in Leuven Belgium was doing something like a news group, but I think it is broken. The following messages are bouncing: kitware-vtk2news at marvin.kulnet kitware2news at marvin.kulnet.kuleuven.ac.be I have two questions: 1. Can the Lueven news be fixed? 2. Does someone else want to set up a news group that mirrors the list? Note: we do plan to have a digest (it is broken right now, but should be fixed soon...) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From redhat at newton.rex.dmu.ac.uk Wed Feb 23 10:40:47 2000 From: redhat at newton.rex.dmu.ac.uk (R. Mercado) Date: Wed, 23 Feb 2000 15:40:47 +0000 (GMT) Subject: Filtering vtkStructuredPoints Message-ID: Hello vtk users, I would like to filter a cube of structured points based on the scalar values (I would specify a range of values) and set the rest of the volume to zeros. In my application, a scalar tells what the material is at a particular location on the volume and I would like to select a volume with one specific material only - all other materials removed. Something like a band pass filter in one-dimensional signal processing. I found vtkContourFilter, but that would give me as a result vtkPolyData and not the vtkStructuredPoints that I want. I could not figure out a pipeline to solve this. Is there a pre-built filter to allow me to do that? Thanks for your input. R. Mercado -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From goodwin.lawlor at ucd.ie Wed Feb 23 12:13:25 2000 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 23 Feb 2000 17:13:25 +0000 Subject: Filtering vtkStructuredPoints References: Message-ID: <002a01bf7e21$4b725d70$b4172b89@ucd.ie> Straight from ../frog/segmented8.tcl vtkImageThreshold selectTissue selectTissue ThresholdBetween $TISSUE $TISSUE selectTissue SetInValue 255 selectTissue SetOutValue 0 selectTissue SetInput [$lastConnection GetOutput] $TISSUE is the scalar value of the tissue you want to exclusively select. You probably should look at the whole frog example... ../vtk/examplesTcl/frog/ Goodwin ----- Original Message ----- From: R. Mercado To: Sent: Wednesday, February 23, 2000 3:40 PM Subject: Filtering vtkStructuredPoints > Hello vtk users, > > I would like to filter a cube of structured points based on > the scalar values (I would specify a range of values) and set the rest of > the volume to zeros. > > In my application, a scalar tells what the material is at a particular > location on the volume and I would like to select a volume with one > specific material only - all other materials removed. Something like a > band pass filter in one-dimensional signal processing. > > I found vtkContourFilter, but that would give me as a result vtkPolyData > and not the vtkStructuredPoints that I want. > > I could not figure out a pipeline to solve this. Is there a pre-built > filter to allow me to do that? > > Thanks for your input. > > R. Mercado > > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Wed Feb 23 12:36:34 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Wed, 23 Feb 2000 09:36:34 PST Subject: vtk 3.1: still puzzling over vtkInteractorStyle Message-ID: <20000223173634.13816.qmail@hotmail.com> Dear fellow vtker's Still having trouble updating to vtk 3.1: vtkInteractorStyle vtkInteractorStyle myInteractorStyle = vtkInteractorStyle::New(); gives the following error message advImage.cpp:2415: no method `vtkInteractorStyle::New' advImage.cpp:2416: invalid use of undefined type `class vtkInteractorStyle' /export/home0/stuff/vtk/vtk/common/../graphics/vtkRenderWindowInteractor.h:64: forward declaration of `class vtkInteractorStyle Any insight into why everything except vtkInteractorStyle is compiling & loading would be appreciated. Solaris 2.6 g++ 2.95.2 with -fpermissive flag set Btw, does the vtk mailing list archive at the NCSA still exist? If so, what's its address? Has it moved? Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Wed Feb 23 13:39:08 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 23 Feb 2000 13:39:08 -0500 (EST) Subject: 32-bit textures Message-ID: Hi All, I've added some new methods to vtkTexture, but would like to check them by everyone before committing them: vtkTexture::SetQualityToDefault() vtkTexture::SetQualityTo16Bit() vtkTexture::SetQualityTo32Bit() These methods are needed on some systems to force VTK to use 32-bit texture maps. It can also be very useful to force VTK to use 16-bit texture maps to save memory e.g. when using textures for volume rendering. I'm also considering a SetQualityToIndex() method, which would allow VTK to transfer the texture to OpenGL as set of colormap indices [0,255] as well as the texture's lookup table. This would only be worthwhile on OpenGL implementations that can do color mapping in hardware, though -- is this a common feature of OpenGL video cards? - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dmsst59+ at pitt.edu Wed Feb 23 14:15:17 2000 From: dmsst59+ at pitt.edu (Damion Shelton) Date: Wed, 23 Feb 2000 14:15:17 -0500 Subject: vtk 3.1: still puzzling over vtkInteractorStyle - headers missing? In-Reply-To: <20000223173634.13816.qmail@hotmail.com> Message-ID: <2127544904.951315317@jaba5power.ortho.pitt.edu> I had a problem similar to this - I'm using vtkInteractorStyle in a VC++ 6.0 app by linking against the most recently distributed dll (in other words I'm not recompiling the whole thing). Rather than include specific classes, I included the vtk.h header under the assumption that this would take care of including the interactor headers also.... but, it didn't. Checking vtkGraphics.h revealed that vtkInteractorStyle.h and vtkInteractorStyleTrackball.h weren't present. After I added them, I had no problems compiling my program. I didn't think anything of it at the time, but now I'm wondering if this is a bug and not merely my ignorance. Perhaps this has been fixed in the nightlies....? I'm using the beta 3.1 build rather than the nightlies. As for the previous topic of how to use the vtkInteractorStyle class, here's how I use it. This is a much less advanced way of tackling the problem than the other reply posted today - I make the naive assumption that the style of the interactor is of type vtkInteractorStyleTrackball and cast the returned to value to conform to this assumption. In the context of my code it will never be anything else so I can get away with this.... but it's probably not the greatest programming technique. For determining current mode.... (note some of this syntax is MFC specific) void CRtkView::OnUpdateViewRotationJoystick(CCmdUI* pCmdUI) { vtkInteractorStyleTrackball* style; style = (vtkInteractorStyleTrackball*) this->Interactor->GetInteractorStyle(); pCmdUI->SetCheck(style->GetTrackballMode()==0); } For setting current mode.... void CRtkView::OnViewRotationJoystick() { // Change to joystick style rotation vtkInteractorStyleTrackball* style; style = (vtkInteractorStyleTrackball*) this->Interactor->GetInteractorStyle(); style->SetTrackballModeToJoystick(); } Hope this helps. -Damion- Damion Shelton University of Pittsburgh Musculoskeletal Research Center > Still having trouble updating to vtk 3.1: vtkInteractorStyle > > vtkInteractorStyle myInteractorStyle = vtkInteractorStyle::New(); > > gives the following error message > > advImage.cpp:2415: no method `vtkInteractorStyle::New' > advImage.cpp:2416: invalid use of undefined type `class > vtkInteractorStyle' > /export/home0/stuff/vtk/vtk/common/../graphics/vtkRenderWindowInteractor. > h:64: forward declaration of `class vtkInteractorStyle -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From human123 at bme.hanyang.ac.kr Wed Feb 23 20:36:38 2000 From: human123 at bme.hanyang.ac.kr (=?ks_c_5601-1987?B?wOW1v8el?=) Date: Thu, 24 Feb 2000 10:36:38 +0900 Subject: remove from list Message-ID: <004e01bf7e67$984a4a40$815168a6@hanyang.ac.kr> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnin22 at yahoo.com Wed Feb 23 22:18:41 2000 From: pnin22 at yahoo.com (Igor Fridman) Date: Wed, 23 Feb 2000 19:18:41 -0800 (PST) Subject: Reading multiple parts from file Message-ID: <20000224031841.14584.rocketmail@web222.mail.yahoo.com> Hello, I am trying to find an efficient way of extracting PolyDatas from a file which has multiple parts in it. In doing so, I discovered the following problem: First I tried creating 1 reader object which reads the whole file. I set the part number to 1 and extract the PolyData (via GetOutput). Then I set the part number to 2 and extract the PolyData. It turns out, however, this gives me thesame dataset as for part 1, and I must Update the reader after setting a new part number. This, however, causes the reader to read the file again. This is quite cumbersome when the file exceeds 10 parts and 5MB, as I it must read the whole file 10 times! I tried creating as many readers as there are parts but still each reader reads and stores the whole file, not just the part that I need. Any suggestions? Thanks in advance! (sorry if this is a repeat, not sure if original message got through) ===== ================================================== Igor Fridman Naval Research Laboratory Vacuum Electronics Branch Code 6841 4555 Overlook Ave. S.W., Washington, DC 20375, USA ================================================== __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From csyang at ict.ac.cn Wed Feb 23 23:05:07 2000 From: csyang at ict.ac.cn (csyang) Date: Thu, 24 Feb 2000 12:05:07 +0800 Subject: How to bulid VTK program in JDK1.2? Message-ID: <004701bf7e7c$5a9630a0$572ae29f@ict.ac.cn> Hi,all: I have installed jdk1.2 in d:\jdk1.2 and installed vtk24java in d:\vtk24java.Now,I want rebuild test.class use javac,but there are following errors.How can I do,thanks! error: File d:\vtk24win32src\java\vtk\vtkRenderWindow.class does not contain typ e vtkRenderWindow as expected, but type vtk.vtkRenderWindow. Please remove the f ile, or make sure it appears in the correct subdirectory of the class path. Regression.java:6: Class vtkRenderWindow not found. vtkRenderWindow renWin = new vtkRenderWindow(); ^ Regression.java:6: Class vtkRenderWindow not found. vtkRenderWindow renWin = new vtkRenderWindow(); ^ error: File d:\vtk24win32src\java\vtk\vtkRenderer.class does not contain type vt kRenderer as expected, but type vtk.vtkRenderer. Please remove the file, or make sure it appears in the correct subdirectory of the class path. Regression.java:7: Class vtkRenderer not found. vtkRenderer ren1 = new vtkRenderer(); ^ Regression.java:7: Class vtkRenderer not found. vtkRenderer ren1 = new vtkRenderer(); ^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcg at ksp.or.jp Thu Feb 24 18:16:53 2000 From: jcg at ksp.or.jp (Chunguang Jia) Date: Thu, 24 Feb 2000 17:16:53 -0600 Subject: License to sue some patent classes in commercial product Message-ID: <00d401bf7f1d$40dbd0b0$1018a8c0@BFL> Hi, all, I want to use some patented classes, such as the vtkMarchingCubes and the vtkDecimate in a commercial project. It is said that I should get a license from GE. Medical. Is there any one with such experience? Shall I pay some money to GE to get such a licence. Thanks, Chunguang Jia -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.deboer at ti.uni-mannheim.de Thu Feb 24 05:27:33 2000 From: m.deboer at ti.uni-mannheim.de (Martijn de Boer) Date: Thu, 24 Feb 2000 11:27:33 +0100 Subject: How to bulid VTK program in JDK1.2? References: <004701bf7e7c$5a9630a0$572ae29f@ict.ac.cn> Message-ID: <38B50795.F7E2EFC8@ti.uni-mannheim.de> Hi, this is probobly a problem with packages being in wrong directories. What is the command you issued for compiling? I you have a class Test which belongs to the package mypackage and have all .java files belonging to different packages in one directory, you need to issue the -d option in javac, i.e. javac -d . *.java. This will then create a dir mypackage and put the Test.class file into this directory. > csyang wrote: > > Hi,all: > I have installed jdk1.2 in d:\jdk1.2 and installed vtk24java in > d:\vtk24java.Now,I want rebuild test.class use javac,but there are > following errors.How can I do,thanks! > > error: File d:\vtk24win32src\java\vtk\vtkRenderWindow.class does not > contain typ > e vtkRenderWindow as expected, but type vtk.vtkRenderWindow. Please > remove the f > ile, or make sure it appears in the correct subdirectory of the class > path. > Regression.java:6: Class vtkRenderWindow not found. > vtkRenderWindow renWin = new vtkRenderWindow(); > ^ > Regression.java:6: Class vtkRenderWindow not found. > vtkRenderWindow renWin = new vtkRenderWindow(); > ^ > error: File d:\vtk24win32src\java\vtk\vtkRenderer.class does not > contain type vt > kRenderer as expected, but type vtk.vtkRenderer. Please remove the > file, or make > sure it appears in the correct subdirectory of the class path. > Regression.java:7: Class vtkRenderer not found. > vtkRenderer ren1 = new vtkRenderer(); > ^ > Regression.java:7: Class vtkRenderer not found. > vtkRenderer ren1 = new vtkRenderer(); > ^ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cates at rolle.engr.utk.edu Thu Feb 24 10:12:20 2000 From: cates at rolle.engr.utk.edu (Josh Cates) Date: Thu, 24 Feb 2000 10:12:20 -0500 (EST) Subject: VTK via Tcl/Tk problems Message-ID: Hello list, I have not been able to get my IRIX VTK --with-tcl --with-tk installation to work with my Tcl 8.2 and Tk 8.2 installations. When I invoke the ``vtk'' interpreter for Tcl scripts, rld tells me: %vtk foo.tcl vtk: rld: Error: unresolvable symbol in /usr/local/lib/libVTKGraphicsTcl.so: tkMainWindowList vtk: rld: Fatal Error: this executable has unresolvable symbols ...as if I am missing a tk library. It is not a LD_LIBRARY_PATH problem, and non-vtk Tcl/Tk scripts run on my system without any problems. Has anyone had a similar experience, or any ideas as to what I might be doing wrong? The Tcl/Tk libraries I have installed are libtk8.2.so and libtcl8.2.so. Thanks in advance for any advice you can give, Josh Cates. +--+--+--+--+--+--+--+--+--+--+--+-- Josh Cates Dept. of Electrical Engineering University of Tennessee, Knoxville Email: cates at rolle.engr.utk.edu Phone: (423) 974-6334 --+--+--+--+--+--+--+--+--+--+--+--+ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lefer at lil.univ-littoral.fr Thu Feb 24 10:27:13 2000 From: lefer at lil.univ-littoral.fr (Wilfrid Lefer) Date: Thu, 24 Feb 2000 16:27:13 +0100 Subject: Using OpenGL texture matrix in VTK? Message-ID: <38B54DD1.E0FE2A0D@lil.univ-littoral.fr> Hello, OpenGL offers the possibility to define a texture matrix, which is defined as teh identity matrix by default, the matrix being applied to all textures coordinates before rendering occurs. As far as I know, this operation is performed in hardware when a 3D graphics card is available and supports OpenGL. I would like to know whether I could make use of this feature with VTK. Does anybody have a response to my question (possible and why or not possible in VTK)? Thanks in advance for your help. Wilfrid. -- ____________________________________________________________________ | | | | Wilfrid LEFER | phone: (+33) 3.21.97.00.46 | | LIL, B.P. 719 | fax: (+33) 3.21.19.06.61 | | 62 228 CALAIS Cedex | e-mail: lefer at lil.univ-littoral.fr | | FRANCE | http://www-lil.univ-littoral.fr/~lefer | |__________________________|_________________________________________| -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Thu Feb 24 10:37:22 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Thu, 24 Feb 2000 15:37:22 +0000 Subject: vtkCellLocator In-Reply-To: <38B2A48C.B5F3F759@fh-aargau.ch> Message-ID: <3.0.5.32.20000224153722.00ced850@exchange03.rl.ac.uk> Ahmet, >I work with vtkCellLocator. My Programm worked well under vtk 2.4 in >linux but I have problems under vtk 3.0 beta version december 1999. ... >In vtk 2.4 if there doesn't exist a cell then the result was zero. But >in vtk 3.0 the result is always zero. ... >How can I find out in vtk 3.0 if there exist a cell between two points ? I've noticed this too. If you're desperate I can send you the latest version of vtkModifiedBSPTree which works, but you may not be able to use it as flexibly as CellLocator. If you can find a bug in vtkCellLocator..... I'll test CellLocator again because it was a few months ago that I noticed something odd and just gave up. John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Thu Feb 24 13:14:26 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Thu, 24 Feb 2000 13:14:26 -0500 Subject: vtkCellLocator References: <3.0.5.32.20000224153722.00ced850@exchange03.rl.ac.uk> Message-ID: <38B57502.5F63DE09@irus.rri.on.ca> I also had this problem a few months ago with vtk 3.0. With vtk 3.1 Beta, though, vtkCellLocator::IntersectWithLine finds intersections correctly for my dataset. If you find the bug I would also like to know ... Damini. > Ahmet, > > >I work with vtkCellLocator. My Programm worked well under vtk 2.4 in > >linux but I have problems under vtk 3.0 beta version december 1999. > ... > >In vtk 2.4 if there doesn't exist a cell then the result was zero. But > >in vtk 3.0 the result is always zero. > ... > >How can I find out in vtk 3.0 if there exist a cell between two points ? > > I've noticed this too. If you're desperate I can send you the latest > version of vtkModifiedBSPTree which works, but you may not be able to use > it as flexibly as CellLocator. > > If you can find a bug in vtkCellLocator..... > > I'll test CellLocator again because it was a few months ago that I noticed > something odd and just gave up. > > John B > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From eduardo at cs.uno.edu Thu Feb 24 19:52:30 2000 From: eduardo at cs.uno.edu (Eduardo Kortright) Date: Thu, 24 Feb 2000 18:52:30 -0600 Subject: Accessing cells from Tcl Message-ID: <38B5D24E.4E6C8E82@cs.uno.edu> Hello, Please excuse me if you receive a duplicate of this message. I have not seen my post on the list, so I am assuming it did not make it. Does anyone know how (if it can be done) to access the individual cells in a vtkCellArray from Tcl? I am reading polyvertices from a file, which are being read into a cell array; I need to triangulate each polyvertex, but can't figure out how to get at any of them in order to call the vtkCell method Triangulate. Any help/pointers will be greatly appreciated. -- Eduardo Kortright Department of Computer Science eduardo at cs.uno.edu University of New Orleans Voice: (504) 280-6626 Lakefront Campus FAX: (504) 280-7228 New Orleans, LA 70148 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Thu Feb 24 20:50:39 2000 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Thu, 24 Feb 2000 20:50:39 -0500 Subject: VTK via Tcl/Tk problems In-Reply-To: Message-ID: <20000225014428.AAA19660@mail4.nycap.rr.com@avila> Hi Josh, What version of VTK are you building? VTK 2.4 and before do not work with Tcl/Tk 8.2. If you move up to VTK 3.1 it should work for you, or move back to Tcl/Tk 8.0. Lisa At 10:12 AM 2/24/00 -0500, Josh Cates wrote: >Hello list, > >I have not been able to get my IRIX VTK --with-tcl --with-tk installation >to work with my Tcl 8.2 and Tk 8.2 installations. When I invoke the >``vtk'' interpreter for Tcl scripts, rld tells me: > > %vtk foo.tcl > > vtk: rld: Error: unresolvable symbol in > /usr/local/lib/libVTKGraphicsTcl.so: tkMainWindowList > > vtk: rld: Fatal Error: this executable has unresolvable symbols > >...as if I am missing a tk library. It is not a LD_LIBRARY_PATH problem, >and non-vtk Tcl/Tk scripts run on my system without any problems. > >Has anyone had a similar experience, or any ideas as to what I might be >doing wrong? The Tcl/Tk libraries I have installed are libtk8.2.so and >libtcl8.2.so. > >Thanks in advance for any advice you can give, > >Josh Cates. > > >+--+--+--+--+--+--+--+--+--+--+--+-- > Josh Cates > Dept. of Electrical Engineering > University of Tennessee, Knoxville > Email: cates at rolle.engr.utk.edu > Phone: (423) 974-6334 >--+--+--+--+--+--+--+--+--+--+--+--+ > > >-------------------------------------------------------------------- >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to >. For help, send message body containing >"info vtkusers" to the same address. >-------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From csyang at ict.ac.cn Thu Feb 24 22:05:18 2000 From: csyang at ict.ac.cn (csyang) Date: Fri, 25 Feb 2000 11:05:18 +0800 Subject: How to rebuild vtkjava.dll,if I want to modify the source of VTK? Message-ID: <009701bf7f3d$26305ea0$572ae29f@ict.ac.cn> -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas at mcube.fr Fri Feb 25 09:27:10 2000 From: thomas at mcube.fr (Thomas Demachy) Date: Fri, 25 Feb 2000 15:27:10 +0100 Subject: Contours References: Message-ID: <006701bf7f9c$991fff60$0501a8c0@mcube.fr> Hello, Try using vtkGeometryFilter. A good example is blow.tcl Thomas ----- Original Message ----- From: Alex Jesus Cuadros Vargas To: Sent: Friday, February 25, 2000 12:58 PM Subject: Contours Hello, I have a volume in a UnstructuredGrid formed by only tetrahedrons... somebody knows like obtaining the polygonos of contour? thanks Alex -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Ron.Jerome at nrc.ca Fri Feb 25 10:06:54 2000 From: Ron.Jerome at nrc.ca (Jerome, Ron) Date: Fri, 25 Feb 2000 10:06:54 -0500 Subject: Distributed collaborative visualization anyone? Message-ID: <83B0B0B52B02D311AA340004ACE8E1670E9624@nrcmrdex1.imsb.nrc.ca> Is anyone working on distributed collaborative visualization using VTK? If so I (maybe others) would like to here from you. Ron Jerome National Research Council Canada Rm. 241, Bldg. M-12 1500 Montreal Road Ottawa, ON K1A 0R6 1-613-993-5346 ron.jerome at nrc.ca -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Fri Feb 25 11:31:27 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Fri, 25 Feb 2000 08:31:27 PST Subject: vtk 3.1: vtkInteractorStyleUser callbacks Message-ID: <20000225163127.35131.qmail@hotmail.com> Dear vtker's Thanks to everyone who replied regarding my question on vtkInteractorStyle. (Btw, what is vtkTypeMacro and why whould/should I want to use it?) I'm now trying to use the subclass vtkInteractorStyleUser to set up several callbacks. However, the callbacks aren't calling back. Here's a code fragment: myCellPicker= vtkCellPicker::New(); // Used in GetScalarCallback myCellPicker->SetTolerance( 0.001); myInteractor = vtkXRenderWindowInteractor::New(); myInteractor->SetPicker( myCellPicker); myInteractorStyleUser = vtkInteractorStyleUser::New(); myInteractorStyleUser->SetInteractor( myInteractor) ; myInteractorStyleUser->SetLeftButtonPressMethod ( GetScalarCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetLeftButtonReleaseMethod ( NullCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetMiddleButtonPressMethod ( NullCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetMiddleButtonReleaseMethod ( NullCallback , (void *) myInteractorStyleUser ); GetScalarCallback returns the scalar value at a clicked point. NullCallback does nothing. These were tested and were working with vtk 2.4 I initially myInteractor in the method arguements. This was ignored to I tried myInteractorStyleUser. This too is being ignored. Any insight/help would be most appreciated. Thanks. Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 25 13:20:47 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 25 Feb 2000 18:20:47 -0000 Subject: vtk 3.1: vtkInteractorStyleUser callbacks References: <20000225163127.35131.qmail@hotmail.com> Message-ID: <000e01bf7fbd$0a1ca860$0100000a@jabhomepc1> > (Btw, what is vtkTypeMacro and why whould/should I want to use it?) If you get a pointer and you're not sure if its polydata, structuredpoints or whatever, you can if (object->IsA(vtkPolyData.....) look in vtkset.get.h for defs (right at the end). And the vtkIsTypeMacro you asked me about is just an older version I haven't removed from my code yet John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Fri Feb 25 14:06:55 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Fri, 25 Feb 2000 14:06:55 -0500 Subject: Testing help in the middle Message-ID: <4.2.0.58.20000225140625.00afe2d0@pop.nycap.rr.com> Testing if this message is filtered out.... Lisa -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acosine at taiwan.com Fri Feb 25 14:25:58 2000 From: acosine at taiwan.com (Cosine Cheng) Date: Sat, 26 Feb 2000 03:25:58 +0800 Subject: How to Showing 3 things in a VTK window Message-ID: <20000225192558.13474.qmail@taiwan.com> Hi: I wrote a VTK script that can change the color of a cube in the window. Then I start to think that how to put several things in ONE window but still have the control to each object. Say, I put a cube, a sphere, and a rectangular in one window. Then I can change the color INDIVIDUALLY for the cube, the sphere, and the rectangular to Red, Green, or Blue color. How can I do that? Below is my VTK script. # ui2.tcl catch {load vtktcl} source E:/WIN32APP/vtk24/examples/vtkInt.tcl vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkCubeSource cube vtkPolyDataMapper cubeMapper cubeMapper SetInput [cube GetOutput] vtkActor cubeActor cubeActor SetMapper cubeMapper [cubeActor GetProperty] SetColor 1 0 0 # these three functions are called by the buttons proc setR {} { [cubeActor GetProperty] SetColor 1 0 0 renWin Render } proc setG {} { [cubeActor GetProperty] SetColor 0 1 0 renWin Render } proc setB {} { [cubeActor GetProperty] SetColor 0 0 1 renWin Render } frame .f button .f.bR -text "red" -command setR button .f.bG -text "green" -command setG button .f.bB -text "blue" -command setB pack .f .f.bR .f.bG .f.bB ren AddActor cubeActor renWin Render _______________________________________________ Get your free email from http://freemail.taiwan.com powered by OutBlaze -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acosine at taiwan.com Fri Feb 25 14:39:03 2000 From: acosine at taiwan.com (Cosine Cheng) Date: Sat, 26 Feb 2000 03:39:03 +0800 Subject: How to show multiple things in a one window Message-ID: <20000225193903.13611.qmail@taiwan.com> Hi: I wrote a VTK script that can change the color of a cube in the window. Then I start to think that how to put several things in ONE window but still have the control to each object. Say, I put a cube, a sphere, and a rectangular in one window. Then I can change the color INDIVIDUALLY for the cube, the sphere, and the rectangular to Red, Green, or Blue color. How can I do that? Below is my VTK script. # ui2.tcl catch {load vtktcl} source E:/WIN32APP/vtk24/examples/vtkInt.tcl vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkCubeSource cube vtkPolyDataMapper cubeMapper cubeMapper SetInput [cube GetOutput] vtkActor cubeActor cubeActor SetMapper cubeMapper [cubeActor GetProperty] SetColor 1 0 0 # these three functions are called by the buttons proc setR {} { [cubeActor GetProperty] SetColor 1 0 0 renWin Render } proc setG {} { [cubeActor GetProperty] SetColor 0 1 0 renWin Render } proc setB {} { [cubeActor GetProperty] SetColor 0 0 1 renWin Render } frame .f button .f.bR -text "red" -command setR button .f.bG -text "green" -command setG button .f.bB -text "blue" -command setB pack .f .f.bR .f.bG .f.bB ren AddActor cubeActor renWin Render _______________________________________________ Get your free email from http://freemail.taiwan.com powered by OutBlaze -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From hsureinl at cse.msu.edu Fri Feb 25 19:34:01 2000 From: hsureinl at cse.msu.edu (Rein-Lien Hsu) Date: Fri, 25 Feb 2000 19:34:01 -0500 (EST) Subject: Vtk Compilation Errors Message-ID: Dear Sirs: While I bulit vtk (version 3.1), I got the problems. Error messages are appended to this email. I look forward to your suggestions. Thanks a lot. I guess the problem is about Xwindows. I did not use Mesa. So I comment out these lines in the file "user.make". #MESA_INCLUDE=-I/home/martink/storage/Mesa-1.2.6/include #MESA_LIB=/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/libMesaGL.a Is there any way I can check if our system support OpenGL, GL, Starbase or XGL? I am working on the UNIX (Solaris 7), and use the compiler g++. Best, Vincent Hsu =========BEGIN gmake[1]: Entering directory `/user/priptmp/vincent/vtk31/graphics' /opt/bin/g++ -isystem /usr/openwin/include -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I/usr/openwin/include -I./../common -I/soft/sparc/tcl/include -I/soft/sparc/tcl/include -I/home/schroede/montnaro/Python-1.4/Include -c vtkGraphicsFactory.cxx -o vtkGraphicsFactory.o vtkGraphicsFactory.cxx: In function `static class vtkObject * vtkGraphicsFactory::CreateInstance(const char *)': vtkGraphicsFactory.cxx:181: `vtkXRenderWindowInteractor' undeclared (first use this function) vtkGraphicsFactory.cxx:181: (Each undeclared identifier is reported only once vtkGraphicsFactory.cxx:181: for each function it appears in.) vtkGraphicsFactory.cxx:181: parse error before `::' gmake[1]: *** [vtkGraphicsFactory.o] Error 1 gmake[1]: Leaving directory `/user/priptmp/vincent/vtk31/graphics' gmake: *** [build_graphics] Error 2 ===========End -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From toman at marge.cyber-dyne.com Sat Feb 26 04:06:43 2000 From: toman at marge.cyber-dyne.com (Joseph Toman) Date: Sat, 26 Feb 2000 01:06:43 -0800 (PST) Subject: vtk newbie questions Message-ID: <200002260906.BAA25017@marge.cyber-dyne.com> Hi, 1) I'm trying to build vtk 3.1 on a Debian Linux system, using shared libraries and building the tcl interface. Every time I try to link vtk in the tcl directory I get : make[1]: Entering directory `/usr/local/vtk31/tcl' c++ -o vtk tkAppInit.o \ -L. -g -O2 -fPIC -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common -I/usr/include/tk8.0-int/generic -I/usr/include/tcl8.0-int/generic -DVTK_USE_TKWIDGET -I/usr/include/GL -DVTK_USE_MESA -I/usr/X11R6/include -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib -DVTK_USE_CONTRIB -rdynamic -L/usr/local/vtk31/contrib -lVTKContribTcl -lVTKContrib -L/usr/local/vtk31/imaging -lVTKImagingTcl -lVTKImaging -L/usr/local/vtk31/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon -L/usr/X11R6/lib /usr/lib/libMesaGL.a /usr/lib/libtk8.0.a /usr/lib/libtcl8.0.a -ldl -lpthread \ -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lm /usr/bin/../lib/libdl.a(dlsym.o): In function `doit.2': dlsym.o(.text+0x22): undefined reference to `_dl_default_scope' dlsym.o(.text+0x4c): undefined reference to `_dl_default_scope' collect2: ld returned 1 exit status so apparently dl_default_scope is not being found. Near as I can tell it's in libc , but explicity adding that in to the makefile doesn't help. Ideas? 2) I also need to use vtk with Borland C++ 5.01 and OWL. Has anyone derived a vtkWin32OWLRenderWindow or the equivalent ? It would save me a lot of work if I didn't have to reinvent the wheel. 3) Looking at the various VTK links I notice a dearth of C++ example code, outside of a couple "everything in main()" programs. I think this might be because IMHO the reference counting implementation leaves a lot to be desired and breaks a lot of the standard paradigms in C++. Let's face it, asking people not to use new and delete is a lot like asking people not to use int or char ;). The lack of copy constructors, or rather the inconsistency of whether MakeObject is a virtual copy constructor or a virtual default constructor doesn't help either. Anyhow, I would like to see how other C++ programmers get around these difficulties, so pointers to example code would be greatly appreciated. thanks in advance, J. Toman -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From m.deboer at ti.uni-mannheim.de Sat Feb 26 05:49:21 2000 From: m.deboer at ti.uni-mannheim.de (Martijn de Boer) Date: Sat, 26 Feb 2000 11:49:21 +0100 Subject: Hi All! References: Message-ID: <38B7AFB1.ED8A4E99@ti.uni-mannheim.de> Dear Maneesh, I put the libraries with a link into my site-packages dir. On my machine this looks like: martijn:~ > ls -l /usr/local/lib/python1.5/site-packages/ lrwxrwxrwx 1 root root 36 Feb 25 11:48 libVTKCommonPython.so -> /usr/local/lib/libVTKCommonPython.so lrwxrwxrwx 1 root root 38 Feb 25 11:48 libVTKGraphicsPython.so -> /usr/local/lib/libVTKGraphicsPython.so lrwxrwxrwx 1 root root 37 Feb 25 11:48 libVTKImagingPython.so -> /usr/local/lib/libVTKImagingPython.so lrwxrwxrwx 1 root root 38 Feb 25 11:48 libVTKPatentedPython.so -> /usr/local/lib/libVTKPatentedPython.so -rw-r--r-- 1 root root 27 Feb 25 11:48 vtkpython.pth the file vtkpython.pth contains the path to the python files for vtk: more /usr/local/lib/python1.5/site-packages/vtkpython.pth /usr/local/lib/vtk/python This configuration works fine, however be sure to have TKinter compiled with your python distribution, otherwhise many examples won't work! Martijn Maneesh Yadav wrote: > > Hi everybody, sorry to be so rude to bug with questions the moment I join > the list...but I really want to get started with VTK :), so I am having a > little trouble knowing where to put things to get stuff to work with > python.. > > > > I'm still a little shakey as to how python finds packages and modules (I > know the things that sit in site-packages get found automagically, but if > my python path is empty does it only look in what is inn > /usr/lib/python1.5?) but I am having a little trouble as to where to place > my symbolic links for the vtk libs. Should I just place all .so and .py > files in /usr/lib/python1.5 > (that's the base of my python installation)? Or should I make a package > with an __init__.py file? Sorry for the petty question but I just want to > make sure I do it right (it'll be a pain to clean up all those links if I > put it in usr/lib or something)... > > Thanks for the help, > Maneesh > > ----------------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. Live long and prosper. > ----------------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From tarifa at rpi.edu Sat Feb 26 17:01:42 2000 From: tarifa at rpi.edu (Asa'd Abu-Tarif) Date: Sat, 26 Feb 2000 17:01:42 -0500 Subject: Structured points from poly data set. References: <200002260906.BAA25017@marge.cyber-dyne.com> Message-ID: <001501bf80a5$10dc5ea0$992a1d18@nycap.rr.com> Hi, Is it possible to get a structured points data set from a poly data set? I have an algorithm to register a 3D volume (voxels) against a high level model (surfaces). I tried it for a cube but I generated the sampled cube manually (currently I'm working on synthetic data). Now, I want to be able to automatically get vtkStructuredPoints from a poly data set (say a cone or anything that I create from loading a cad model). So what I need is something sort of the reverse of (vtkStructuredPointsToPolyData). Is there a fileter that can do this for me? ps. I'm currently using vtk 2.4 with VC++ version 6.0. Thanks, Asad ================================== Asad A. Abu-Tarif Research Assistant, NY Center For Automation Technologies, RPI. Ph.D Student in Computer Engineering, Rensselaer Polytechnic Institute. 2104 Massachuasettes Ave, Apt 2C Troy, NY 12180 Tel: (518) 270-1796 Fax: (313) 557-6100 tarifa at rpi.edu ========================== -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Sat Feb 26 17:12:31 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 26 Feb 2000 17:12:31 -0500 (EST) Subject: vtk 3.1 Win32 problems Message-ID: Hi Ken, Will: I downloaded the vtk3.1 installers for Win32 and have found a few serious problems with them. They were dated 2/21/00 3:34pm. The most serious problem is that the python examples do not work, it looks like vtkpython.dll was build using an older version of the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll has a timestamp of 2/7/2034 -- something is definitely wrong here! Several of the Tcl examples have front/back clipping plane problems. These include: Decimate.tcl CSpline.tcl KSpline.tcl TPlane.tcl And the following tcl examples die with the complaint that vtkVolumeMapper doesn't have a SetScalarInput method: vol.tcl volSimple.tcl - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From krs at zappa.uncc.edu Mon Feb 28 00:21:28 2000 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Mon, 28 Feb 2000 00:21:28 -0500 Subject: imaging pipeline qn.. Message-ID: <38BA05D8.64DEA804@mail.cs.uncc.edu> I am using the imaging pipeline to perform some image processing, but I dont use the viewer. I am having difficulty in forcing the output of the imaging filters.. for instance I have a simple sequence as vtkImageData-->vtkImageClip--> (clipped scalars) I am trying to get the imaging data (scalars) from the above pipeline. I called Update() on the vtkImageClip() and try to get at the scalars by using the GetPointData() method, but the scalars are not there. I know vtkImageClip only sets the clipping extent, but how do I force it to execute so that I can retrieve the clipped image? I was able to do that (still not quite right) by sending this to vtkImageToStructuredPoints, but I do not think this would be necessary. Thanks. -- krs -- K.R.Subramanian Phone: (704) 547-4872 Department of Computer Science FAX: (704) 547-3516 UNC Charlotte, 228A Kennedy 9201 Univ. City Blvd. Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 WWW: http://www.cs.uncc.edu/~krs -------------- next part -------------- An HTML attachment was scrubbed... URL: From lefer at lil.univ-littoral.fr Mon Feb 28 04:38:59 2000 From: lefer at lil.univ-littoral.fr (Wilfrid Lefer) Date: Mon, 28 Feb 2000 10:38:59 +0100 Subject: Distributed collaborative visualization anyone? References: <83B0B0B52B02D311AA340004ACE8E1670E9624@nrcmrdex1.imsb.nrc.ca> Message-ID: <38BA4233.49FE981E@lil.univ-littoral.fr> Dear Ron, we are working on Web-based distributed visualization, although collaboration is not really the goal but of course all the tools that could come from our research could probably be useful for supporting collaborative work. VTK is used as the rendering engine in our applications. You can find information on our work by browsing our Web pages at www-lil.univ-littoral.fr/~lefer/VISC/visc.english.html More generally a working group on distributed visualization was built up during the '98 workshop on DVS in Research Triangle Park, NC. Information about this WG can be found at www-lil.univ-littoral.fr/~lefer/Web3Dgv Please tell me about your project. Best regards. Wilfrid. -- ____________________________________________________________________ | | | | Wilfrid LEFER | phone: (+33) 3.21.97.00.46 | | LIL, B.P. 719 | fax: (+33) 3.21.19.06.61 | | 62 228 CALAIS Cedex | e-mail: lefer at lil.univ-littoral.fr | | FRANCE | http://www-lil.univ-littoral.fr/~lefer | |__________________________|_________________________________________| -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Mon Feb 28 08:17:36 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Mon, 28 Feb 2000 08:17:36 -0500 Subject: vtk 3.1 Win32 problems In-Reply-To: Message-ID: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Hi David, Are you sure the examples that you are running came from the VTK 3.1 distribution? volSimple.tcl and vol.tcl no longer have SetScalarInput (it changed to SetInput a couple of revisions ago....). That makes me suspicious of the other problems as well. Lisa At 05:12 PM 2/26/00 -0500, David Gobbi wrote: >Hi Ken, Will: > >I downloaded the vtk3.1 installers for Win32 and have found a few >serious problems with them. They were dated 2/21/00 3:34pm. > >The most serious problem is that the python examples do not work, >it looks like vtkpython.dll was build using an older version of >the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll >has a timestamp of 2/7/2034 -- something is definitely wrong here! > >Several of the Tcl examples have front/back clipping plane problems. >These include: > >Decimate.tcl >CSpline.tcl >KSpline.tcl >TPlane.tcl > >And the following tcl examples die with the complaint that >vtkVolumeMapper doesn't have a SetScalarInput method: > >vol.tcl >volSimple.tcl > > - David > >-- > David Gobbi, MSc dgobbi at irus.rri.on.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > >-------------------------------------------------------------------- >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to >. For help, send message body containing >"info vtkusers" to the same address. >-------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Mon Feb 28 09:42:19 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Mon, 28 Feb 2000 14:42:19 +0000 Subject: vtkThinPlateSplineMeshWarp In-Reply-To: <4.2.0.58.20000203154208.00cfbbf0@sic.sp2mi.univ-poitiers.f r> References: <4.2.0.58.20000202222630.00c78900@pop.fr.clara.net> Message-ID: <3.0.5.32.20000228144219.00b613b0@144.82.123.1> At 17:43 03/02/00 +0100, you wrote: >At 20:19 02/02/00 -0500, David Gobbi a ?crit: >> > (sorry for the delay, I was in California) >> >>I'll be heading there is just a couple weeks -- too bad we missed each >>other :) > >I see, SPIE Medical Imaging. Well, I wish I could go there, but my paper >was accepted by SPIE Electronic Imaging first. Too bad :( > > > You meant r.log(r) ? > >>No! I meant r, as in r = sqrt(x^2 + y^2 + z^2), simply the distance >>between two points. > > > > U(r) = |r| : something wrong here I guess. > >>U(r) = r = |r| = fabs(r) = sqrt(x^2+y^2+z^2) are all the same thing. > >That's what I thought, when I wrote "something wrong here" that meant "I'm >a bit confused with the use of the distance instead of the r.log >formulation". Sorry for the confusion. > >>Well, the 'definitive' answer would be in F.L. Bookstein _Morphometric >>Tools for Landmark Data_ but someone else has it out of the library >>right now. And maybe each of us should work though the 3D energy >>integral to prove whether 'our' version has the properties expected. >> >>In Bookstein's paper 'Shape and the Information in Medical Images: >>A Decade of the Morphometric Synthesis,' Computer Vision and Image >>Understanding 66:97-118, he clearly states at the bottom of page 105: >> >> The formalism of the spline goes over to three-dimensional data >> almost unchanged -- the kernel is now |r|, the matrix Q now has >> four columns, and the integral in Eq. (4) has six terms instead >> of three ... >> >>I take this to mean that U(r) = r*r*log(r) only for 2D splines, and >>that U(r) = |r| for 3D splines. > >Hum, that's not obvious for me. I guess he just wanted to say that the >distance was the Euclidean one ? > >OK, I've got 12 articles in front of me, let me see... > >All right, if you do not mind, I'll send you two papers : > "Surface interpolation with radial basis functions for medical >imaging" (Carr) > "Creating surfaces from scaterred data using radial basis >functions" (Schaback) > >Both are reasoning in R^d, and the first one is a 3D application. >Could you please have a look at them ? >I'm quite sure the TPS is really r.log(r). If there is still a doubt, let's >send an email to Mr Bookstein, I already did once. Just been to a very nice talk by the man himself, I asked him about this very question. Without any doubt, the RBF you need for 3d TPS is |r|. He explained to me why this was so but I understood very little. :) Hope this is useful information. Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Bernhard at Hombitzer.com Mon Feb 28 09:53:45 2000 From: Bernhard at Hombitzer.com (Bernhard Hombitzer) Date: Mon, 28 Feb 2000 15:53:45 +0100 Subject: Extracting portions of meshes Message-ID: <38BA8BF9.68208A91@Hombitzer.com> Hi, does anybody know how to extract portions of meshes. I have seen, that vtkExtractUnstructedGrid is doing so, but my problem is, that I do not have a range(min/max) of points, I have a array/list of points. would be pleased, if someone have an idea for me best regards Berni -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Mon Feb 28 11:19:02 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 28 Feb 2000 11:19:02 -0500 (EST) Subject: vtk 3.1 Win32 problems In-Reply-To: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Message-ID: Hi Lisa, I re-checked, and I am indeed running VTK 3.1, dated 2/21/2000. I compiled the VTK 3.1 source, and there don't appear to be any problems with the source. These problems are exclusive to the Win32 binary installation on ftp://public.kitware.com. I've done a little checking to clarify the problems with the Win32 binaries. They are as follows: 1) the examples in vtk31Tcl.exe are identical to the examples in with vtk24tcl.exe. 2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll in vtk31Core.exe, it looks like it wasn't re-built during the final vtk3.1 build because it had a preposterous time stamp. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 28 Feb 2000, Lisa Sobierajski Avila wrote: > Hi David, > > Are you sure the examples that you are running came from the VTK 3.1 > distribution? volSimple.tcl and vol.tcl no longer have SetScalarInput (it > changed to SetInput a couple of revisions ago....). That makes me > suspicious of the other problems as well. > > Lisa > > > At 05:12 PM 2/26/00 -0500, David Gobbi wrote: > >Hi Ken, Will: > > > >I downloaded the vtk3.1 installers for Win32 and have found a few > >serious problems with them. They were dated 2/21/00 3:34pm. > > > >The most serious problem is that the python examples do not work, > >it looks like vtkpython.dll was build using an older version of > >the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll > >has a timestamp of 2/7/2034 -- something is definitely wrong here! > > > >Several of the Tcl examples have front/back clipping plane problems. > >These include: > > > >Decimate.tcl > >CSpline.tcl > >KSpline.tcl > >TPlane.tcl > > > >And the following tcl examples die with the complaint that > >vtkVolumeMapper doesn't have a SetScalarInput method: > > > >vol.tcl > >volSimple.tcl > > > > - David > > > >-- > > David Gobbi, MSc dgobbi at irus.rri.on.ca > > Advanced Imaging Research Group > > Robarts Research Institute, University of Western Ontario > > > >-------------------------------------------------------------------- > >This is the private VTK discussion list. Please keep messages on-topic. > >Check the FAQ at: > >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > >. For help, send message body containing > >"info vtkusers" to the same address. > >-------------------------------------------------------------------- > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 28 11:23:07 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 28 Feb 2000 11:23:07 -0500 Subject: ../vtkSource/contrib/examplesTcl/TestReslice.tcl Message-ID: <38BAA0EB.2411F61F@bme.ri.ccf.org> I am trying to use vtkImageReslice to view various slices in a volume of data. However, in the TestReslice.tcl example, the rotations are performed once on the data and then the vtkImageViewer::SetZSlice method is used to slice through the data with a slider control. Is it possible to use vtkImageReslice in this same way, but control the rotation angles interactively? I have set up a pipeline and interface to do this, but the rotations do not work in the manner I expected. The z rotation works fine, but if I change x and y, the data rotates right out of the field of view. However, if I just change the rotation in the pipeline manually, it works correctly and I can slice through the data at any x, y, or z angle, I just haven't been able to control the angles interactively. Can anyone help me with this? My pipeline is attached below with the tcl/tk interface also. Thanks, Jon --------------------------------------------------------------------------------- catch {load vtktcl} # Simple viewer for images. source vtkImageInclude.tcl set xRot 0 set yRot 0 set zRot 0 # Image pipeline vtkImageReader reader reader ReleaseDataFlagOff reader SetDataByteOrderToLittleEndian reader SetFileDimensionality 3 reader SetDataExtent 0 63 0 63 0 255 reader SetDataOrigin -32 -32 -128 reader SetDataSpacing 1.0 1.0 0.24 reader SetFileName "us3_proba.vol" reader SetDataScalarTypeToUnsignedChar reader UpdateWholeExtent vtkTransform transform transform RotateX $xRot transform RotateY $yRot transform RotateZ $zRot vtkImageReslice reslice reslice SetInput [reader GetOutput] reslice SetResliceTransform transform reslice InterpolateOn reslice SetOutputSpacing 0.3 0.3 0.3 reslice SetBackgroundLevel 127 vtkImageViewer viewer viewer SetInput [reslice GetOutput] viewer SetZSlice 60 viewer GrayScaleHintOn viewer SetColorWindow 255 viewer SetColorLevel 127 viewer Render source Interface.tcl #source Interface2.tcl ------------------------------------------------------------------------------------ # a simple user interface that manipulates window level. # places in the tcl top window. Looks for object named viewer # Take window level parameters from viewer proc InitializeInterface {} { global viewer sliceNumber xRot yRot zRot # Get parameters from viewer set w [viewer GetColorWindow] set l [viewer GetColorLevel] set sliceNumber [viewer GetZSlice] set zMin [viewer GetWholeZMin] set zMax [viewer GetWholeZMax] # frame for slice/window/level frame .image -borderwidth 3 -relief ridge label .image.l -text "Slice & Window/Level" \ -borderwidth 2 -relief raised scale .image.slice -from $zMin -to $zMax -orient horizontal \ -command SetSlice -variable sliceNumber -label slice scale .image.window -from 1 -to [expr $w * 2] -orient horizontal \ -command SetWindow -variable window -label window scale .image.level -from [expr $l - $w] -to [expr $l + $w] \ -orient horizontal -command SetLevel -label level # resolutions less than 1.0 if {$w < 10} { set res [expr 0.05 * $w] .image.window configure -resolution $res -from $res -to [expr 2.0 * $w] .image.level configure -resolution $res \ -from [expr 0.0 + $l - $w] -to [expr 0.0 + $l + $w] } .image.window set $w .image.level set $l pack .image.l .image.slice .image.window .image.level # frame for changing the rotation of data set frame .rotate -borderwidth 3 -relief ridge label .rotate.l -text "Rotation" \ -borderwidth 2 -relief raised set xRotSlide $xRot set yRotSlide $yRot set zRotSlide $zRot scale .rotate.x -from -180 -to 180 -orient horizontal \ -variable xRotSlide -command SetXRotate -label "x rotation" scale .rotate.y -from -180 -to 180 -orient horizontal \ -variable yRotSlide -command SetYRotate -label "y rotation" scale .rotate.z -from -180 -to 180 -orient horizontal \ -variable zRotSlide -command SetZRotate -label "z rotation" pack .rotate.l .rotate.x .rotate.y .rotate.z pack .image .rotate -side left } proc SetSlice slice { global viewer viewer SetZSlice $slice viewer Render } proc SetWindow window { global viewer viewer SetColorWindow $window viewer Render } proc SetLevel level { global viewer viewer SetColorLevel $level viewer Render } proc SetXRotate { rotate } { global viewer xRot yRot zRot transform RotateX [expr 0 - $xRot] transform RotateX $rotate set xRot $rotate reslice SetResliceTransform transform viewer Render } proc SetYRotate { rotate } { global viewer xRot yRot zRot transform RotateY [expr 0 - $yRot] transform RotateY $rotate set yRot $rotate reslice SetResliceTransform transform viewer Render } proc SetZRotate { rotate } { global viewer xRot yRot zRot transform RotateZ [expr 0 - $zRot] transform RotateZ $rotate set zRot $rotate reslice SetResliceTransform transform viewer Render } InitializeInterface viewer Render ---------------------------------------------------------------------------------- -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ken.martin at kitware.com Mon Feb 28 17:38:23 2000 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 28 Feb 2000 17:38:23 -0500 Subject: vtk 3.1 Win32 problems In-Reply-To: References: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Message-ID: <4.2.0.58.20000228173701.00dac8d0@pop.nycap.rr.com> There are new 3.1 binaries available that I belive should fix the issues you found. If they don't please let me know. - Thanks - Ken I've done a little checking to clarify the problems with the >Win32 binaries. They are as follows: > >1) the examples in vtk31Tcl.exe are identical to the examples in > with vtk24tcl.exe. > >2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll > in vtk31Core.exe, it looks like it wasn't re-built during the final > vtk3.1 build because it had a preposterous time stamp. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From strelitz at lanl.gov Tue Feb 29 06:14:15 2000 From: strelitz at lanl.gov (Richard Strelitz) Date: Tue, 29 Feb 2000 04:14:15 -0700 Subject: Vorticity Function in Streamers.cxx Message-ID: <38BBAA07.D351EC15@lanl.gov> Colleagues: vtkStreamers has a switch for computing Vorticity, and a place holder for it in the vtkStreamPoint structure. However, it seems to me from a closer examination of the code that the function for computing vorticity is only a stub. This surmise is corroborated by the lack of difference in output when a member of the vtkStream family is invoked with vorticity flag set on or off. Am I missing something, or is something missing? I'm in a whirl of my own. Please help me and if only for my eddy-fication (or eddy-cation, if you prefer additional punishment). Thank you, Richard Strelitz, SciVis staff at ACL-LANL -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Mon Feb 28 21:11:59 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 28 Feb 2000 21:11:59 -0500 (EST) Subject: vtk 3.1 Win32 problems In-Reply-To: <4.2.0.58.20000228173701.00dac8d0@pop.nycap.rr.com> Message-ID: Hi Ken, Thanks, all the problems that I reported earlier have been fixed. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 28 Feb 2000, Ken Martin wrote: > There are new 3.1 binaries available that I belive should fix the issues > you found. If they don't please let me know. > > - Thanks > - Ken > > I've done a little checking to clarify the problems with the > >Win32 binaries. They are as follows: > > > >1) the examples in vtk31Tcl.exe are identical to the examples in > > with vtk24tcl.exe. > > > >2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll > > in vtk31Core.exe, it looks like it wasn't re-built during the final > > vtk3.1 build because it had a preposterous time stamp. > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From chengyc at csie.nctu.edu.tw Tue Feb 29 00:10:02 2000 From: chengyc at csie.nctu.edu.tw (Julian Chen) Date: Tue, 29 Feb 2000 13:10:02 +0800 Subject: Iterative update viz pipeline Message-ID: <20000229131002.A60541@csie.nctu.edu.tw> Dear sir, We are currently working on a distributed simulation environment, which uses VTK as the data visualization engine. But recently, we're facing a problem. In our environment, we'll generate data repeatly, according different computation domain. And through the network, send the data to hosts and repeatlyusing VTK visualize the data, in the same dataset(according to VTK). Currently we're using Java binding of VTK. What's bothering us now is that the VTK part code hangs sometimes, during each iteration while updating the VTK visualization pipeline. The error read as, "0xxxx memory can be read. etc" in Windows platform. We're wondering if that's some bugs inside VTK C++ native code. Maybe some critical section problem. In the situation of rapidly updating the pipeline, such bugs slipped out noticable. If having any idea, please just drop me a mail. Any help is appreciate! Thanks for your help in advance. :-) Best regards -- Law of Software Envelopment: ``Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.'' E-mail: julian9 at mac.com URL:http://chengyc.spedia.net/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From reynhout at natlab.research.philips.com Tue Feb 29 09:22:21 2000 From: reynhout at natlab.research.philips.com ( O. Reynhout) Date: Tue, 29 Feb 2000 15:22:21 +0100 Subject: SetLeftButtonPressMethod in C++ Message-ID: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Hello, I have some problems with the SetLeftButtonPressMethod under VC++ 6.0. I found some documentation but it didn't help. This is what I found: "void vtkInteractorStyle::SetLeftButtonPressMethod (void(* f)(void *), void * arg) Callbacks so that the applicaiton can override the default behaviour." But I can't get it working. I made the following test-function: void Test(); How can I use the method???? SetLeftButtonPressMethod(Test, NULL) does not work. The compiler says: error C2664: 'SetLeftButtonPressMethod' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void *)' None of the functions with this name in scope match the target type I hope that anyone can help me, Greetings, Oscar Reynhout Philips NatLab \\\|||/// . ======= / \| O O | \ / \`___'/ # _| |_ (#) ( ) #\//|* *|\\ #\/( * )/ # ===== # ( U ) O # || || O(o)O .#---'| |`----. | `#----' `-----' \|/ ============================================================ s'Avonds & thuis: OscarReynhout at hetnet.nl Overdag: Reynhout at natlab.research.philips.com Weekend: Reynhout at chello.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorrit at lkeb.azl.nl Tue Feb 29 10:13:14 2000 From: jorrit at lkeb.azl.nl (Jorrit Schaap) Date: Tue, 29 Feb 2000 16:13:14 +0100 Subject: SetLeftButtonPressMethod in C++ References: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Message-ID: <38BBE20A.C730EA9A@lkeb.azl.nl> An HTML attachment was scrubbed... URL: From vetler at ifi.uio.no Tue Feb 29 10:31:22 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Tue, 29 Feb 2000 16:31:22 +0100 (MET) Subject: SetLeftButtonPressMethod in C++ In-Reply-To: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Message-ID: on 2000-02-29, owner-vtkusers at public.kitware.com wrote: > I have some problems with the SetLeftButtonPressMethod under VC++ 6.0. I found some documentation but it didn't help. This is what I found: > > "void vtkInteractorStyle::SetLeftButtonPressMethod (void(* f)(void *), void * arg) > Callbacks so that the applicaiton can override the default behaviour." > > > > But I can't get it working. I made the following test-function: > > void Test(); > > How can I use the method???? SetLeftButtonPressMethod(Test, NULL) does not work. The compiler says: > > error C2664: 'SetLeftButtonPressMethod' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void *)' > None of the functions with this name in scope match the target type > > I hope that anyone can help me, Try this: void Test( void* ) { // stuff goes here } SetLeftButtonPressMethod(Test, NULL); It works for me (GCC 2.95.2). vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dima at cs.ubc.ca Tue Feb 29 12:57:24 2000 From: dima at cs.ubc.ca (Dmitry Brodsky) Date: Tue, 29 Feb 2000 09:57:24 -0800 (PST) Subject: Polygonizing a surface Message-ID: <200002291757.JAA02105@cascade.cs.ubc.ca> Hello, I have just started using VTK and I was wondering if the following is possible. Given a point cloud, triangulate it and form a polygonal surface. I need to do this for some 3D model aquisition. For test purposes I have been using the vertex sets for existing models and feeding them into vtk as an unstructured grid where each vertex represents a cell. From there I have tried using the following pipelines: vtkUnstructuredGrid->vtkVoxelModeler->vtkContourFilter->vtkPolygonDataMapper... or vtkUnstructuredGrid->vtkGaussianSplatter->vtkContourFilter->vtkPolygon ... or vtkUnstructuredGrid->vtkImplicitModeler->vtkContourFilter->vtkPolygon ... >From the online manpages and intuitively it seems that vtkVoxelModeler should work the best but it doesn't. vtkImplicitModeler produces very coarse models and vtkGaussianSplatter works the best but produces very chubby models, as it should. What would be the best approach to this problem, is it doable in vtk? Thanks ttyl Dima -- Dima Brodsky dima at cs.ubc.ca 201-2366 Main Mall (604) 822-6179 (Office) Department of Computer Science (604) 822-2895 (DSG Lab) University of British Columbia, Canada (604) 822-5485 (FAX) Computers are like Old Testament gods; lots of rules and no mercy. (Joseph Campbell) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acvargas at icmc.sc.usp.br Tue Feb 29 14:04:39 2000 From: acvargas at icmc.sc.usp.br (Alex Jesus Cuadros Vargas) Date: Tue, 29 Feb 2000 16:04:39 -0300 (EST) Subject: Contours In-Reply-To: <006701bf7f9c$991fff60$0501a8c0@mcube.fr> Message-ID: Thank You Alex On Fri, 25 Feb 2000, Thomas Demachy wrote: > Hello, > > Try using vtkGeometryFilter. A good example is blow.tcl > > Thomas > > ----- Original Message ----- > From: Alex Jesus Cuadros Vargas > To: > Sent: Friday, February 25, 2000 12:58 PM > Subject: Contours > > > > Hello, > I have a volume in a UnstructuredGrid formed by only tetrahedrons... > somebody knows like obtaining the polygonos of contour? > > thanks > > Alex > > > > > > ----------------------------------------------------------------- /^/ | | ____| \ (___[) \ Alex Jes?s Cuadros Vargas (____[) | Instituto de Ci?ncias Matem?ticas e de Computa??o (___[) \ Universidade de S?o Paulo - S?o Carlos (__[)__ \ \ \ ----------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ken.martin at kitware.com Thu Feb 17 13:09:05 2000 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 17 Feb 2000 13:09:05 -0500 Subject: Test Message Message-ID: <4.2.0.58.20000217130729.00cf5740@pop.nycap.rr.com> Due to problems with the original vtkusers mailing list, we have moved the mailing list to vtkusers at public.kitware.com, this is a test and the mailing list may experience problems for the next few days. Please bear with us. - Thanks - Ken Martin From lisa.avila at kitware.com Thu Feb 17 16:06:27 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Thu, 17 Feb 2000 16:06:27 -0500 Subject: Test Message 2 In-Reply-To: <4.2.0.58.20000217130729.00cf5740@pop.nycap.rr.com> Message-ID: <4.2.0.58.20000217160500.0272fe50@pop.nycap.rr.com> Hello - this is just another test message to make sure the mailing list names are all valid. Lisa From glagau at cs.tu-berlin.de Thu Feb 17 19:26:15 2000 From: glagau at cs.tu-berlin.de (Jens Glagau) Date: Fri, 18 Feb 2000 01:26:15 +0100 (MET) Subject: inside/outside decision problem Message-ID: Dear vtkusers, i want to decide wether a polygon A is inside or outside of a given surface. Polygon A is connected with the surface with at least one edge (at polygon B, which is of course part of the surface). All points of polygon A are either outside of the surface or on the surface. The points of polygons are known, therefore especially the normal of polygon B and i know the point-ids which are in both polygons. Of course, this is a mathematical question and not one related directly to vtk, but i hope somebody sends me an answer. If my text is insufficent or unprecise, please tell me. Thanks in advance Jens From csyang at ict.ac.cn Thu Feb 17 20:49:59 2000 From: csyang at ict.ac.cn (csyang) Date: Fri, 18 Feb 2000 09:49:59 +0800 Subject: Hot wo use 'void SetLeftButtonPressMethod(void(*func)(void *),voi d *arg)' in vtkRenderWindowInterActor Message-ID: <00d101bf79b2$7bdbb880$572ae29f@ict.ac.cn> Hi,all: I want to use 'SetLeftButtonPressMethod(void(*func)(void *),void *arg)' to set camera only rotate by 'y-axis.How can I use it. thanks. csyang From vtk at helios.tel.uva.es Fri Feb 18 04:43:51 2000 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Fri, 18 Feb 2000 10:43:51 +0100 (CET) Subject: vtkVoxelModeller and vtkStructuredPointsWriter Message-ID: Hello vtk users, I'm trying to write the output of the filter vtkVoxelModeller and I only obtain 0's. I'm using VTK 2.4 (with VTK 2.0 it worked properly). The tcl program is basically the next: ------------------------------ vtkSphereSource sphereModel vtkVoxelModeller voxelModel voxelModel SetInput [sphereModel GetOutput] voxelModel SetSampleDimensions 21 21 21 vtkStructuredPointsWriter writer writer SetFileName prueba.vtk writer SetInput [voxelModel GetOutput] writer Write ------------------------------ The file obtained is the next: # vtk DataFile Version 2.0 vtk output ASCII DATASET STRUCTURED_POINTS DIMENSIONS 21 21 21 SPACING 0.14924 0.14683 0.15 ORIGIN -1.4924 -1.4683 -1.5 POINT_DATA 9261 SCALARS scalars int 1 LOOKUP_TABLE default 0 0 0 0 0 0 0 0 0 0 0 0 ... (skip) 0 0 0 0 0 0 Do you know what is wrong? Thanx in advance. Miguel. ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ From T.Hutton at eastman.ucl.ac.uk Fri Feb 18 04:55:48 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 18 Feb 2000 09:55:48 +0000 Subject: Proposed removal of vtkThinPlateSplineMeshWarp Message-ID: <3.0.5.32.20000218095548.00b067e0@144.82.123.1> Hi guys, The above class in the nightlies has become redundant, its functionality is now in vtkThinPlateSplineTransform. Unless there are howls of protest I'm going to remove vtkThinPlateSplineMeshWarp, OK? Will, is there anything you added that needs moving over to vtkThinPlateSplineTransform? Cheers, Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. From ehrhardt at medinf.mu-luebeck.de Fri Feb 18 05:47:25 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Fri, 18 Feb 2000 11:47:25 +0100 Subject: How to delete single cells from PolyData Message-ID: <38AD233D.C458F224@medinf.mu-luebeck.de> How can I delete a number of (randomly scattered) cells of different types from PolyData. If I use the DeleteCell method only the intern variable vtkCellTypes *Cells is affected. This variable is overwritten everytime BuildCells is called. There is no method to really delete the cells in the vtkCellArrays. thanks for any advice. Jan -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- From vetler at ifi.uio.no Fri Feb 18 06:19:51 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Fri, 18 Feb 2000 12:19:51 +0100 (MET) Subject: Hot wo use 'void SetLeftButtonPressMethod(void(*func)(void *),voi d *arg)' in vtkRenderWindowInterActor In-Reply-To: <00d101bf79b2$7bdbb880$572ae29f@ict.ac.cn> Message-ID: on 2000-02-18, owner-vtkusers at public.kitware.com wrote: > Hi,all: > I want to use 'SetLeftButtonPressMethod(void(*func)(void *),void *arg)' > to set camera only rotate by 'y-axis.How can I use it. I guess you would have to do something like this: void rotateY( void * ) { // rotate the scene } int main() { // set up the standard framework interactor->SetLeftButtonPressMethod( rotatY, 0 ); // do some more stuff return 0; } Note that if you want the function given as a parameter to be a function in a class, you'll have to do something a little different. vr From T.Hutton at eastman.ucl.ac.uk Fri Feb 18 07:15:14 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Fri, 18 Feb 2000 12:15:14 +0000 Subject: How to delete single cells from PolyData Message-ID: <3.0.5.32.20000218121514.00b03830@144.82.123.1> Mmm, I came across this, the official line is that us users are getting more sophisticated than anticipated. :) Can I suggest a vtkReallyDeleteThingsFilter, to actually delete those cells (or points) that have been marked for deletion. I don't mind writing it if this meets with approval, it would be useful for me too. Cheers, Tim. At 11:47 18/02/00 +0100, Jan wrote: >How can I delete a number of (randomly scattered) cells of different >types from PolyData. >If I use the DeleteCell method only the intern variable vtkCellTypes >*Cells is affected. This variable >is overwritten everytime BuildCells is called. There is no method to >really delete the cells in the vtkCellArrays. > >thanks for any advice. > > Jan >-- >----------------------- >Jan Ehrhardt >mailto:ehrhardt at medinf.mu-luebeck.de >----------------------- From pnin22 at yahoo.com Fri Feb 18 08:44:40 2000 From: pnin22 at yahoo.com (Igor Fridman) Date: Fri, 18 Feb 2000 05:44:40 -0800 (PST) Subject: Reading multiple parts from BYU file Message-ID: <20000218134440.22538.rocketmail@web220.mail.yahoo.com> Hello, I am trying to find an efficient way of extracting PolyDatas from a BYU file which has multiple parts in it. In doing so, I discovered the following problem: First I tried creating 1 reader object which reads the whole file. I set the part number to 1 and extract the PolyData (via GetOutput). Then I set the part number to 2 and extract the PolyData. It turns out, however, this gives me thesame dataset as for part 1, and I must Update the reader after setting a new part number. This, however, causes the reader to read the file again. This is quite cumbersome when the file exceeds 10 parts and 5MB, as I it must read the whole file 10 times! I tried creating as many readers as there are parts, but still each reader reads and stores the whole file, not just the part that I need. Any suggestions? Thanks in advance! ===== ================================================== Igor Fridman Naval Research Laboratory Vacuum Electronics Branch Code 6841 4555 Overlook Ave. S.W., Washington, DC 20375, USA ================================================== __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com From j.biddiscombe at rl.ac.uk Fri Feb 18 08:54:36 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 13:54:36 +0000 Subject: 3.4 beta : Bug report : PolyDataMapper Message-ID: <3.0.5.32.20000218135436.013cfe20@exchange03.rl.ac.uk> If you create a valid polydata object... Perform some filter operation which return a subset of the polydata object (eg clipping) Iff the resulting filter output contains no points (and no cells - we hope) ie dataset->GetNumberOfPoints() return zero, then the bounding box of the dataset is set to be VTK_LARGE_FLOAT -VTK_LARGE_FLOAT etc or similar. When displaying an actor connected to a clipper or whatever that returns nothing, the mapper barfs and gives an invalid floating point operation. If the Dataset has points - BUT no cells, it works OK. Which incidentally means that if you try to save memory by reference counting a pointset, but mask some cells out (i.e. vtkReallyReallyDeleteCell !!!) then the Bounding box is set to that of the points and not that of the cells. This is really irrelevant, but might be worth looking at whilst doing the other. ttfn John B From adv_biologic at hotmail.com Fri Feb 18 10:02:24 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Fri, 18 Feb 2000 07:02:24 PST Subject: vtk 3.1 problem with ./configure. Unix guru's please help! Message-ID: <20000218150224.76093.qmail@hotmail.com> Dear fellow vtker's When I try to run "./configure" with the following switches ./configure --with-x --with-opengl --with-shared --with-patented --with-contrib --with-local I get the following output, ending in an error message. loading cache ./config.cache checking for gcc... gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... yes checking whether gcc accepts -g... yes checking for c++... g++ checking whether the C++ compiler (g++ ) works... yes checking whether the C++ compiler (g++ ) is a cross-compiler... yes checking whether we are using GNU C++... yes checking whether g++ accepts -g... yes checking for ranlib... : checking for a BSD compatible install... ./install-sh -c checking how to run the C preprocessor... g++ checking for X... libraries /usr/openwin/lib, headers /usr/openwin/include checking whether -R must be followed by a space... no checking for dnet_ntoa in -ldnet... no checking for dnet_ntoa in -ldnet_stub... no checking for gethostbyname... no checking for gethostbyname in -lnsl... yes checking for connect... no checking for connect in -lsocket... yes checking for remove... yes checking for shmat... yes checking for IceConnectionNumber in -lICE... yes checking whether byte ordering is bigendian... configure: error: can not run test program while cross compiling The config.log file is attached To which I reply with a big "Huh???". Looking at the log file, it seems that configure can't find the libraries ldnet and ldnet_stub. As far as I can make out, these are libraries that are DECnet (!!!) related. Why I (or more precisely vtk) would need them for a Solaris compilation is beyond me! One solution that was suggested is that I remove the confige.cache file. I tried this and still end up with the same error. Looking at the configure file, the offending lines appear to be # Check for system-dependent libraries X programs must link with. # Do this before checking for the system-independent R6 libraries # (-lICE), since we may need -lsocket or whatever for X linking. if test "$ISC" = yes; then X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" else # Martyn.Johnson at cl.cam.ac.uk says this is needed for Ultrix, if the X # libraries were built with DECnet support. And karl at cs.umb.edu says # the Alpha needs dnet_stub (dnet does not exist). echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6 echo "configure:1351: checking for dnet_ntoa in -ldnet" >&5 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'` if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then echo $ac_n "(cached) $ac_c" 1>&6 else ac_save_LIBS="$LIBS" LIBS="-ldnet $LIBS" Any insight into how I can fix this problem and get on with compiling vtk 3.1 would be most appreciated. Thanks. This occured with the nightly release vtk 3.1 on 16 Feb 2000. My system: Sun SPARC Ultra-60 Solaris 2.6 gcc-2.95.2 make-3.76.1 vtk 3.1 Btw, I've ./configured and compiled vtk 2.4 in the past with no problems (using gcc-2.8.1). Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 5652 bytes Desc: not available URL: From bill.hoffman at kitware.com Fri Feb 18 10:38:12 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Fri, 18 Feb 2000 10:38:12 -0500 Subject: vtk 3.1 problem with ./configure. Unix guru's please help! In-Reply-To: <20000218150224.76093.qmail@hotmail.com> Message-ID: <4.2.0.58.20000218103512.07000a20@pop.nycap.rr.com> The problem is not the ldnet stuff, but rather this: Your output says this: checking whether the C++ compiler (g++ ) is a cross-compiler... yes checking whether we are using GNU C++... yes This means that configure was not able to compile AND run a small c++ program using g++. It was able to compile and link, but the run failed, so configure assumed that it was a cross-compiler. From klingej at bme.ri.ccf.org Fri Feb 18 12:24:42 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Fri, 18 Feb 2000 12:24:42 -0500 Subject: adding new objects and building vtk Message-ID: <38AD805A.1C1A366F@bme.ri.ccf.org> I am trying to learn how to add new objects to vtk for my own use. I have built vtk on NT using the tcl wrappers. If I add my own class (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles in my vtkBin directory to add this new object? Is there a way to have pcmaker add the new object to the makefiles it generates? I would appreciate any advice on how to do this or caveats involved. Thanks, Jon -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From erics at umbc.edu Fri Feb 18 13:05:51 2000 From: erics at umbc.edu (Eric Schmitt) Date: Fri, 18 Feb 2000 13:05:51 -0500 Subject: Tcl/tk 8.3.0 Message-ID: Hi, I was wondering if anyone has compiled Vtk with the latest version of Tcl/Tk 8.3.0. I have successfully been able to compile the nightly build with Tcl/Tk 8.2.3. However, when I try to use the 8.3.0 version, I get unresolved external _TkWinChildProc at 16 I understand that this is due to calling conventions, but I can't figure out how to get them to be compatible. Does VTK use __stdcall or __cdecl or both? Which one is preferred? I'm fairly new to windows programming, and would like to use the right one. It seems Tcl/Tk has changed the way they compile. -Eric C. Eric Schmitt "To strive, to seek, to find, and not to yield." Tennyson Univ. of Maryland, Balto. County | CFI-IA, CP-ASEL,AMEL email: erics at umbc.edu | PADI Advanced Open Water Key fingerprint = 1D AB F2 DA 67 E7 14 84 DB B8 FD 67 A5 6D 08 B9 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From eduardo at cs.uno.edu Fri Feb 18 13:41:47 2000 From: eduardo at cs.uno.edu (Eduardo Kortright) Date: Fri, 18 Feb 2000 12:41:47 -0600 Subject: Question about mailing list, vtkCellArray/Tcl Message-ID: <38AD926B.A6D7E3BB@cs.uno.edu> First, is anybody out there? I subscribed (and received a confirmation) from the VTK users list at the GEMS site, but was never able to post anything (everything bounced back) or receive anything. Now I see that the mailing list is hosted by Kitware (did everyone who subscribed at GE just get dumped without notice?). Anyway, I have a question about accessing the individual cells in a vtkCellArray from inside Tcl. Does anyone know if there is a way to do this? Or is it necessary to program in C++ to access each cell? I have VTK 2.4, by the way, running on Linux. -- Eduardo Kortright Department of Computer Science eduardo at cs.uno.edu University of New Orleans Voice: (504) 280-6626 Lakefront Campus FAX: (504) 280-7228 New Orleans, LA 70148 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From mwasilewski at principiamathematica.com Fri Feb 18 14:00:46 2000 From: mwasilewski at principiamathematica.com (Dr. Marek Wasilewski) Date: Fri, 18 Feb 2000 19:00:46 -0000 Subject: Doxygen documentation finished In-Reply-To: <4.2.0.58.20000211103229.00cb61d0@sic.sp2mi.univ-poitiers.fr> Message-ID: Dear Sebastien I was interested to see your comment on using the tcl samples when learning about vtk - couldn't agree more. For various reasons, we wrote a small app. to extract which components are used in a particular sample along with any data files utilised. I know this is the other way around to your request (which samples use a specific class), but I thought you might be interested anyway. The results of the analysis for tcl, vtk 2.2 samples can be found at http://www.principiamathematica.co.uk/support/vtk/index.htm. I will perform the same analysis for 2.4 and extend the app. over the next few days to do what you requested unless someone has already done this off-line. Best regards, Marek > -----Original Message----- > From: owner-vtkusers at gsao.gso.med.ge.com > [mailto:owner-vtkusers at gsao.gso.med.ge.com]On Behalf Of Sebastien Barre > Sent: 11 February 2000 09:34 > To: j.stifter at medres.ch; edi at jasmine.med.upatras.gr > Cc: vtkusers at gsao.med.ge.com > Subject: Re: Doxygen documentation finished > > > At 13:18 10/02/00 +0100, Jan Stifter a ?crit: > > >On Thu, 10 Feb 2000 13:04:56 +0000, Edi > >wrote: > > > > > > > >The documentation is great , but sometimes it's also great to look in > > the tcl > > >examples. > > > > > >Is it possible to do the same with the examples, like having > a list of > > examples > > >using the object you are looking for ? > > > > > > > > > >the more we have, the more we want :-) > > > >doxygen don't know tcl. that means, it can not parse tcl code and > >extract class names, functions, ... and highlight it. you could > >integrate tcl examples as a doxygen tag e.g. "\example camera3.tcl" > >into the documentation of the class, so you would have a link in the > >class description to an example, but a tcl example itself can not be > >parsed. > > > >my goal was to produce a documentation _without_ changing anything on > >the vtk-code. you could do a lot more with doxygen, including > >examples, which would have all used classes highlighted... but this is > >up to kitware, since you have to change the header-files manually. > > > I'm working on that. A Perl script that would parse all > C++/Tcl/Java/Python > examples and put/update the according doxygen /example directive in the > source headers. Will be ready next week. > > -- > Sebastien BARRE > IRCOM-SIC, UMR-CNRS 6615 - Universit? de Poitiers > B?t. SP2MI, Bvd 3 - T?l?port 2, BP 179 F-86960 Futuroscope Cedex > Tel. : +33 (0)5 49 49 65 95 / 65 83, Fax : +33 (0)5 49 49 65 70 > http://www-sic.univ-poitiers.fr/barre/ ou http://www.hds.utc.fr/~barre/ > > > ------------------------------------------------------------------ > ----------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. Live long and prosper. > ------------------------------------------------------------------ > ----------- > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 18 14:58:32 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 19:58:32 -0000 Subject: Trouble with trianglefilter : Found cause Message-ID: <002801bf7a66$d75c3360$0100000a@jabhomepc1> After going through 30,000 polygons, I've finally found the problem. Below is contents of a vtk file containing just one polygon. Ok, so it has 340 points....but it takes not less than 150MB of memory on my machine to pass this through a vtkTriangleFilter. "Surely you must be joking" I hear you all cry. No sir. Not at all. Please could somone else try this... polydatareader->Trianglefilter->Display and read the following file. I suspect dubious behaviour from the recursive triangulate routine. thanks John B (I had to create about 6 filters to reduce the polygon set until just this one was left. I wish I'd thought of counting the number of points first). # vtk DataFile Version 3.0 vtk output ASCII DATASET POLYDATA POINTS 339 float 1025.7 -1788.9 75.9 1043.9 -1757.9 75.9 1045 -1758.5 75.9 1047 -1749.2 75.9 1050.6 -1750 75.9 1054 -1732.6 75.9 1054.3 -1732.7 75.9 1055.1 -1729 75.9 1059.3 -1729.4 75.9 1059.3 -1729.3 75.9 1059.5 -1728.3 75.9 1059.9 -1727.5 75.9 1060.6 -1726.9 75.9 1061.3 -1726.5 75.9 1062 -1726.2 75.9 1062 -1726 75.9 1061.6 -1725.7 75.9 1061 -1724.9 75.9 1060.8 -1724 75.9 1060.7 -1723.4 75.9 1060.7 -1722.6 75.9 1060.9 -1721.8 75.9 1061.3 -1721.2 75.9 1061.9 -1720.6 75.9 1062.6 -1720.4 75.9 1063.1 -1720.3 75.9 1063.2 -1719.9 75.9 1062.9 -1719.7 75.9 1062.3 -1719.3 75.9 1062 -1718.4 75.9 1061.9 -1717.4 75.9 1062 -1716.2 75.9 1062.5 -1715.3 75.9 1063.4 -1714.5 75.9 1064.6 -1714.1 75.9 1064.5 -1713.8 75.9 1063.7 -1713.1 75.9 1063.3 -1712.4 75.9 1063.2 -1711.3 75.9 1063.2 -1710.7 75.9 1063.5 -1709.9 75.9 1063.9 -1709.1 75.9 1064.5 -1708.5 75.9 1065.2 -1708.2 75.9 1065.6 -1708.1 75.9 1065.9 -1707.9 75.9 1065.7 -1707.6 75.9 1065.2 -1707.1 75.9 1064.7 -1706.5 75.9 1064.4 -1705.6 75.9 1064.5 -1704.6 75.9 1064.7 -1703.7 75.9 1065.2 -1703 75.9 1066.3 -1702.2 75.9 1067.1 -1701.9 75.9 1067.1 -1701.6 75.9 1066.2 -1700.6 75.9 1065.9 -1699.6 75.9 1065.9 -1698.6 75.9 1065.9 -1697.8 75.9 1066.6 -1696.9 75.9 1067.3 -1696.3 75.9 1068.1 -1695.9 75.9 1068.4 -1695.9 75.9 1068.5 -1695.6 75.9 1068.2 -1695.3 75.9 1067.5 -1694.7 75.9 1067.3 -1693.8 75.9 1067.2 -1692.8 75.9 1067.3 -1691.8 75.9 1067.7 -1690.9 75.9 1068.3 -1690.4 75.9 1069.2 -1690 75.9 1069.8 -1689.8 75.9 1069.8 -1689.6 75.9 1069.8 -1689.3 75.9 1069.1 -1688.7 75.9 1068.5 -1687.8 75.9 1068.3 -1686.7 75.9 1068.5 -1685.6 75.9 1069.2 -1684.9 75.9 1069.9 -1684.2 75.9 1070.7 -1683.8 75.9 1071 -1683.7 75.9 1067.4 -1683.2 75.9 1068.5 -1677.6 75.9 1073.9 -1678.3 75.9 1077.1 -1663.3 75.9 1072.7 -1662.4 75.9 1075.2 -1650.7 75.9 1079.5 -1651.6 75.9 1080.3 -1648.1 75.9 1076.1 -1647.2 75.9 1079.8 -1629.6 75.9 1084.4 -1630.5 75.9 1084.5 -1629.9 75.9 1070.6 -1608.5 75.9 1060.3 -1614.9 75.9 1058.4 -1626.3 75.9 1040.3 -1623.3 75.9 1042.5 -1611.1 75.9 1049.6 -1612.1 75.9 1049.4 -1611.2 75.9 1049.6 -1610.8 75.9 1049.8 -1610.5 75.9 1049.4 -1609.9 75.9 1048.6 -1609.9 75.9 1047.4 -1609.8 75.9 1046.3 -1609.5 75.9 1045.3 -1608.9 75.9 1044.4 -1608.2 75.9 1043.6 -1607.3 75.9 1042.5 -1607.8 75.9 1043 -1609.2 75.9 1034.8 -1610.6 75.9 1033.6 -1603.7 75.9 1033.3 -1603.7 75.9 1032.1 -1603.4 75.9 1030.7 -1602.9 75.9 1029.2 -1602 75.9 1027.7 -1601 75.9 1026.7 -1599.7 75.9 1026.1 -1598.4 75.9 1025.6 -1596.9 75.9 1025.2 -1595.3 75.9 1025.1 -1594.3 75.9 1025.2 -1592.9 75.9 1025.5 -1591.6 75.9 1026 -1590 75.9 1026.9 -1588.2 75.9 1028.1 -1586.8 75.9 1029.3 -1585.8 75.9 1030.9 -1585 75.9 1031.8 -1584.7 75.9 1033.5 -1584.3 75.9 1035.6 -1584.3 75.9 1036.8 -1584.4 75.9 1038.2 -1584.7 75.9 1039.5 -1585.4 75.9 1041.2 -1586.6 75.9 1042 -1587.3 75.9 1043.7 -1589.8 75.9 1044.2 -1591.3 75.9 1044.5 -1592.7 75.9 1044.5 -1594.5 75.9 1044.4 -1596 75.9 1044.2 -1597.3 75.9 1043.7 -1598.6 75.9 1043.1 -1599.3 75.9 1043.8 -1600 75.9 1043.8 -1599.9 75.9 1044.5 -1599.1 75.9 1045.6 -1598.4 75.9 1047.1 -1597.8 75.9 1048.5 -1597.7 75.9 1050 -1597.8 75.9 1051.6 -1598.5 75.9 1052.6 -1599.1 75.9 1053.6 -1600 75.9 1054.3 -1601.3 75.9 1054.7 -1602.6 75.9 1054.3 -1605.9 75.9 1058.2 -1606.2 75.9 1036.7 -1573.1 75.9 1016.2 -1586.5 75.9 996.3 -1557.3 75.9 1013.7 -1545.9 75.9 1011.4 -1542.4 75.9 1016.7 -1539 75.9 1018.9 -1542.4 75.9 1037.4 -1530.3 75.9 1035.8 -1527.7 75.9 1043.7 -1522.5 75.9 1106.1 -1615.9 75.9 1102.3 -1633.2 75.9 1103 -1634 75.9 1102.9 -1634.5 75.9 1107.8 -1635.5 75.9 1101.5 -1665.2 75.9 1096.7 -1664.2 75.9 1091.6 -1688.4 75.9 1093.6 -1688.6 75.9 1094.2 -1689.3 75.9 1094.7 -1690.4 75.9 1094.8 -1691.5 75.9 1094.6 -1692.4 75.9 1094.1 -1693.2 75.9 1093.5 -1693.8 75.9 1092.9 -1694 75.9 1092.2 -1694.2 75.9 1092.2 -1694.4 75.9 1092.8 -1695 75.9 1093.2 -1695.6 75.9 1093.5 -1696.6 75.9 1093.5 -1697.7 75.9 1093.2 -1698.4 75.9 1092.8 -1699.2 75.9 1092.3 -1699.6 75.9 1091.6 -1699.9 75.9 1091 -1700.1 75.9 1090.9 -1700.3 75.9 1091.4 -1700.8 75.9 1091.9 -1701.3 75.9 1092.3 -1702.4 75.9 1092.3 -1703.3 75.9 1092 -1704.2 75.9 1091.7 -1704.7 75.9 1091 -1705.5 75.9 1090.2 -1705.8 75.9 1089.2 -1705.9 75.9 1088.6 -1706 75.9 1088.5 -1706 75.9 1088.4 -1706.6 75.9 1089.3 -1707.1 75.9 1090.5 -1708.2 75.9 1090.8 -1709.4 75.9 1090.6 -1710.3 75.9 1090.3 -1711.2 75.9 1089.9 -1711.8 75.9 1089.2 -1712.1 75.9 1088.7 -1712.6 75.9 1088.3 -1712.7 75.9 1088.2 -1713 75.9 1089.4 -1713.9 75.9 1089.6 -1715 75.9 1089.5 -1716.3 75.9 1089.1 -1717.4 75.9 1088.4 -1718.1 75.9 1087.9 -1718.4 75.9 1087.3 -1718.6 75.9 1087.1 -1718.5 75.9 1087 -1719 75.9 1087.9 -1719.7 75.9 1088.4 -1720.8 75.9 1088.3 -1722.1 75.9 1087.7 -1723.3 75.9 1086.9 -1724 75.9 1085.7 -1724.4 75.9 1085 -1724.4 75.9 1084.7 -1724.3 75.9 1084.5 -1724.9 75.9 1085.6 -1725.4 75.9 1086.4 -1726.5 75.9 1086.9 -1727.8 75.9 1086.7 -1729.2 75.9 1086.1 -1730.1 75.9 1085.5 -1730.8 75.9 1084.4 -1731.2 75.9 1084.5 -1731.4 75.9 1084.9 -1731.6 75.9 1085.5 -1733 75.9 1085.6 -1734.5 75.9 1085.2 -1735.6 75.9 1084.6 -1736.5 75.9 1084 -1736.9 75.9 1083.3 -1737 75.9 1083.2 -1737.2 75.9 1083.2 -1737.3 75.9 1083.7 -1737.7 75.9 1084.3 -1738.5 75.9 1084.5 -1739.6 75.9 1084.2 -1740.9 75.9 1083.7 -1741.9 75.9 1082.9 -1742.6 75.9 1081.9 -1743 75.9 1081.2 -1745 75.9 1082.1 -1746 75.9 1082.5 -1747.2 75.9 1082.6 -1748.9 75.9 1082.1 -1750.2 75.9 1081.6 -1751.1 75.9 1081 -1751.7 75.9 1078.9 -1752.6 75.9 1078.7 -1753 75.9 1079.7 -1754.1 75.9 1080.2 -1754.9 75.9 1080.6 -1756 75.9 1080.6 -1757.3 75.9 1080.5 -1758.3 75.9 1080.1 -1759.3 75.9 1079.2 -1760.3 75.9 1078.3 -1760.9 75.9 1077.4 -1761.3 75.9 1077 -1761.3 75.9 1076.8 -1761.7 75.9 1077.3 -1762.1 75.9 1078 -1763 75.9 1078.7 -1763.9 75.9 1078.8 -1765.1 75.9 1078.7 -1766.3 75.9 1078.4 -1767.5 75.9 1077.6 -1768.6 75.9 1076.7 -1769.4 75.9 1075.7 -1769.8 75.9 1075 -1770 75.9 1074.9 -1770.4 75.9 1075.6 -1771.1 75.9 1076.3 -1772 75.9 1076.8 -1773.2 75.9 1076.9 -1774.6 75.9 1076.6 -1775.8 75.9 1076.1 -1776.9 75.9 1075.4 -1777.7 75.9 1074.4 -1778.3 75.9 1073.7 -1778.7 75.9 1073.2 -1778.7 75.9 1073.1 -1779.1 75.9 1073.8 -1779.7 75.9 1074.6 -1780.6 75.9 1074.9 -1781.6 75.9 1075.1 -1782.7 75.9 1075 -1783.9 75.9 1074.6 -1785.1 75.9 1073.9 -1786.2 75.9 1072.8 -1786.9 75.9 1071.7 -1787.2 75.9 1070.9 -1787.4 75.9 1069.6 -1787.3 75.9 1068.1 -1786.7 75.9 1066.9 -1785.6 75.9 1066.6 -1784.6 75.9 1066.3 -1783.7 75.9 1066.2 -1783.6 75.9 1065.8 -1783.5 75.9 1065.2 -1784.5 75.9 1064.3 -1785.1 75.9 1063.3 -1785.6 75.9 1062 -1785.7 75.9 1060.6 -1785.4 75.9 1059.4 -1784.9 75.9 1058.2 -1783.7 75.9 1057.8 -1782.4 75.9 1057.6 -1781.7 75.9 1057.1 -1781.7 75.9 1056.6 -1782.4 75.9 1055.1 -1783.5 75.9 1053.8 -1783.8 75.9 1053.1 -1783.8 75.9 1043.7 -1799.6 75.9 POLYGONS 1 340 339 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 18 18:09:56 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 18 Feb 2000 23:09:56 -0000 Subject: vtk 3.1 beta : C++Builder problem Message-ID: <002901bf7a66$d94b5930$0100000a@jabhomepc1> Just in case anyone is following progress on C++Builder stuff... Edi sent me packages he'd built and they worked fine. The only difference in systems was that he has not installed the patches for BCB 4 I tried uninstalling BCB and reinstalling without adding patches. I then rebuilt the vtk libraries and recompiled my programs that use them. Same problem. Linker OBJ block memory error. One thing I noticed was that several classes I am using (some readers) were not included in Edi's compiled libraries. Guessing a problem with the sheer size and number of exports I removed about 20 classes from vtk_Graphics. Problem disappeared. vtk compiled and linker coped when building vtk based BCB programs. If anyone else is having trouble, try removing as many classes as possible that you don't need - it seems that the number of exports is just too large for BCB to cope. BCB5 is due out very soon (already shipping?) so maybe the problem will be addressed. Let's hope so. John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Madhavan.Lakshmiraghavan at Dartmouth.EDU Sat Feb 19 14:13:41 2000 From: Madhavan.Lakshmiraghavan at Dartmouth.EDU (Madhavan Lakshmiraghavan) Date: 19 Feb 2000 14:13:41 EST Subject: inside/outside decision problem Message-ID: <27795022@dasher.Dartmouth.EDU> Jens, I just dealt with a similar problem. Basically, you want the following equation: Do this. - pick a point on polygon A unconnected to B. Let its coordinates be (Xa, Ya, Za) - randonly pick a point on polygon B. Let its coordinates be (Xb, Yb, Zb) - Find the components of the unit normal for polygon B. Let it be (n1, n2, n3) Then, D = n1*(Xa-Xb) + n2*(Ya-Yb) + n3*(Za-Zb) where D is the perpendiculat distance from the above-picked point on polygon A to the plane of polygon B. If D is positive, then that point of polygon A lies 'above' polygon B assuming you define 'above' as the direction of the positive normal of B. Redefine your concept of 'inside' or 'outside' in terms of 'above' or 'below'. Hope this helps. Raghavan --- Jens Glagau wrote: Dear vtkusers, i want to decide wether a polygon A is inside or outside of a given surface. Polygon A is connected with the surface with at least one edge (at polygon B, which is of course part of the surface). All points of polygon A are either outside of the surface or on the surface. The points of polygons are known, therefore especially the normal of polygon B and i know the point-ids which are in both polygons. Of course, this is a mathematical question and not one related directly to vtk, but i hope somebody sends me an answer. If my text is insufficent or unprecise, please tell me. Thanks in advance Jens --- end of quote --- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ken.martin at kitware.com Sat Feb 19 15:44:58 2000 From: ken.martin at kitware.com (Ken Martin) Date: Sat, 19 Feb 2000 15:44:58 -0500 Subject: using/extending VTK via Java ? In-Reply-To: <200002192024.PAA12604@hobbes.seas.gwu.edu> Message-ID: <4.2.0.58.20000219153957.00c889d0@pop.nycap.rr.com> >[I sent this earlier in the week but the VTK mailing list seemed >to be down forseveral days. Just saw a msg come through, >so I'll try again .....] The mailing list has been moved. The old may still be functioning but you should now use vtkusers at public.kitware.com Generic Warning: In vtkJavaUtil.cxx, line 381 > GetPointerFromObject: vtk bad argument, type conversion failed > >General simplification/overview of code: > > // MyImplicitFunction derived from vtkImpliciFunction w/ required > functions > MyImplicitFunction bmodel = new MyImplicitFunction(); > //code to populate bmodel here > > vtkSampleFunction sampleblob = new vtkSampleFunction(); > samleblob.SetImplicitFunction(bmodel); > >The above internal addressing error occurs when I first try to use bmodel >in vtkSampleFunction. > >If I use a pre-defined function such as vtkSphere (instead of >MyImplicitFunction) >everything works fine. In fact, if I extend a vtkSphere, to make my own >class, >it also works fine. > >Now, here's where I'm starting to think my problem may be. >Remember, I'm using the Java interface here. > >Do I also have to implement the vtkImplicitFunction extended class >(i.e. MyImplicitFunction.cxx) in C++ and then wrap it with JNI >in order to extend the Java class? I have only extended the Java class. >My guess is tha the above error is stemming from a failure to find >a MyImplicitionFunction object address within the C++ naming space. > >Can you extend VTK classes via Java without also supplying the C++ You must implement your class as a C++ class, except if you are using the vtkProgramableFilter and related classes. In your case you must create a C++ subclass of vtkImplicitFunction, build VTK with that new class added and then you should be fine. The issue is that the calculations are all done in pure C++ code and there is no opportunity for the C++ code to invoke GetValue or GetGradient of a Java class without having the C++ classes interface to Java in a more invasive manner. - Ken -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From wlorens1 at nycap.rr.com Sat Feb 19 16:14:00 2000 From: wlorens1 at nycap.rr.com (Bill Lorensen) Date: Sat, 19 Feb 2000 16:14:00 -0500 Subject: vtkVoxelModeller and vtkStructuredPointsWriter In-Reply-To: Message-ID: <4.2.2.20000219155858.00d332e0@pop.nycap.rr.com> Thanks for the bug report. This was badly broken after 2.4. I have checked in changes for both vtkDataReader and vtkDataWriter. To repair your 2.4, try the following: vtkDataWriter: change s = ((vtkBitArray *)data)->GetValue(i); to s = ((vtkBitArray *)data)->GetValue(idx); Add the else clause below: if ( !((idx+1)%8) ) { *fp << "\n"; } else { *fp << " "; } vtkDataReader if ( ! strncmp(type, "int", 3) ) -> if ( ! strncmp(type, "bit", 3) ) in ReadArray handling for bit arrays. I've modified a test script to check for this. Bill At 10:43 AM 2/18/00 +0100, Miguel Angel Martin Fernandez wrote: >Hello vtk users, > > I'm trying to write the output of the filter vtkVoxelModeller and >I only obtain 0's. I'm using VTK 2.4 (with VTK 2.0 it worked properly). > >The tcl program is basically the next: > >------------------------------ >vtkSphereSource sphereModel > >vtkVoxelModeller voxelModel > voxelModel SetInput [sphereModel GetOutput] > voxelModel SetSampleDimensions 21 21 21 > >vtkStructuredPointsWriter writer > writer SetFileName prueba.vtk > writer SetInput [voxelModel GetOutput] > writer Write >------------------------------ > >The file obtained is the next: > ># vtk DataFile Version 2.0 >vtk output >ASCII >DATASET STRUCTURED_POINTS >DIMENSIONS 21 21 21 >SPACING 0.14924 0.14683 0.15 >ORIGIN -1.4924 -1.4683 -1.5 >POINT_DATA 9261 >SCALARS scalars int 1 >LOOKUP_TABLE default >0 0 0 0 0 0 >0 0 0 0 0 0 >... (skip) >0 0 0 0 0 0 > > Do you know what is wrong? > > Thanx in advance. > > Miguel. > > ________________________________________________________ > _________(_ _)_________ > \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ > \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ > \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ > )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( > /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ > /???????(________________________________________________________)???????\ > /__________) (_____________\ > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Sun Feb 20 06:26:47 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Sun, 20 Feb 2000 11:26:47 -0000 Subject: Multiple Bugs and rewrite of vtkCleanPolyData Message-ID: <000001bf7b96$54c6f8a0$0100000a@jabhomepc1> I'm afraid that whilst examining vtkCleanPolyData I've found several bugs. At or near line 176 there's a newId instead of cellId which will cause celldata to be copied incorrectly. Much more seriously - the whole design is flawed - CellData is copied as below if ( numNewPts > 1 ) { newId = newLines->InsertNextCell(numNewPts,updatedPts); outputCD->CopyData (cd, cellId, newId); } This is very dubious, because if Verts exist, then newId should continue from the count left over from the vert cleaning, however InsertNextCell for the lines will start from zero (because InsertNextCell for the newLines will return 0,1,2,3 etc etc) , thus the CopyData(...) will copy to the wrong position. If polydata contains verts, lines, polys and strips the error will accumulate with each pass through the loops. I checked this and indeed it does. If only verts, lines, polys or strips exist then the filter works fine. The error only appears when mixes exist and cell data exists. I have rewritten the filter and added some new options bool ConvertLinesToPoints bool ConvertPolysToLines bool ConvertStripsToPolys So that if a poly is reduced to a line it can be aded to the lines cellarray (and ensure the celldata is copied correctly!!) Likewise a line reduced to a point can be added to the verts and a strip reduced to 3 points becomes a poly, 2 points a line and one point a vert. The full set is Line with 1 points -> Vert (if ConvertLinesToPoints=1) Poly with 2 points -> Line (if ConvertPolysToLines=1) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys=1) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints) I think that explains it OK. However, the main reason I was examining it was I was creating a vtkQuantizePolyDataPoints filter which will align (x,y,z components of) all points to 1,10,100 or 0.5,0.25 etc etc. ie quantize the point locations and I needed the degenerate lines to become points and polys to become lines - I wanted to use vtkCleanPolyData as a starting point. Having fixed vtkCleanPolyData, it becomes easy to simply insert a call to "QuantizePoint" before inserting the point into the points list, so why not just insert a virtual function in CleanPolyData which subclasses can override and it can be used as a basis for deriving new "cleaning" filters. Therefore I have two classes to submit. One is the improved and fixed vtkCleanPolyData and the other is a subclass called vtkQuantizePolyDataPoints which takes parameter called QFactor which can be any positive value like 0.5,1,2,4,10,20 etc etc Oh yes, I've also added an option SetToleranceToAbsolute/SetToleranceToRelative to vtkCleanPolyDataFilter which controls whether the tolerance is a fixed value like 5 or a fraction of the dataset bounding box length as previously. Where should I put the new classes? Thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Sun Feb 20 06:35:12 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Sun, 20 Feb 2000 11:35:12 -0000 Subject: vtkInteractorStyleFlight Keyboard help required Message-ID: <001401bf7b96$8d6328a0$0100000a@jabhomepc1> I have a vtkInteractorStyleFlight class to contribute, but I'd like a little advice please. On Win32 platforms virtual keycodes like VK_LEFT (left arrow) VK_RIGHT VK_UP VK_DOWN are used. How does one use the arrow keys on a unix box. I need to remove a platform specific test like if (keycode==VK_LEFT) then turn left.... and allow codes for arrow keys for other platforms. I'm not sure how best to do this. Can anyone advise thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vtk at helios.tel.uva.es Mon Feb 21 05:06:07 2000 From: vtk at helios.tel.uva.es (Miguel Angel Martin Fernandez) Date: Mon, 21 Feb 2000 11:06:07 +0100 (CET) Subject: adding new objects and building vtk In-Reply-To: <38AD805A.1C1A366F@bme.ri.ccf.org> Message-ID: Hello, I've made a tcl script to allow creating new libraries for the user classes. It basically wraps the vtk files needed to compile the libraries. The problem is that it has been done for UNIX type OS. I really don't know if it's easy or not to make something similar for Windows, but I'm sure it can be done in a similar way. If you are in the mood, you can download the script in: ftp://helios.tel.uva.es/pub/vtkLocal2-4.tar I expect this helps :) If you only want to add some finished classes in a mono-user system, you can probably do it manually, like in the UNIX systems. Miguel. On Fri, 18 Feb 2000, Jon Klingensmith wrote: > > I am trying to learn how to add new objects to vtk for my own use. I > have built vtk on NT using the tcl wrappers. If I add my own class > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > in my > vtkBin directory to add this new object? Is there a way to have pcmaker > add > the new object to the makefiles it generates? > > I would appreciate any advice on how to do this or caveats involved. > > Thanks, > Jon > > -- > Jon D. Klingensmith > Department of Biomedical Engineering > The Cleveland Clinic Foundation > Lab Phone: 216-445-0591 > http://www.lerner.ccf.org/bme/ip/ > > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > ________________________________________________________ _________(_ _)_________ \????????(_ Miguel ?ngel Mart?n Fern?ndez _)????????/ \???????(_ ETSI Telecomunicaci?n, Universidad de Valladolid _)???????/ \??????(_ Campus Miguel Delibes, Camino del Cementerio, s/n _)??????/ )?????(_ e-mail: miguel at atenea.tel.uva.es _)?????( /??????(_ Tfno: +34-983-423000 Ext. 25548 _)??????\ /???????(________________________________________________________)???????\ /__________) (_____________\ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ehrhardt at medinf.mu-luebeck.de Mon Feb 21 06:22:26 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Mon, 21 Feb 2000 12:22:26 +0100 Subject: how to compute central line form surface objects Message-ID: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> I have surface objects of anatomical tube-like structures (e.g. vessels) How can I compute a central line (the skelett) of a surface object ? Thanks. Jan -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From jfavre at cscs.ch Mon Feb 21 07:23:35 2000 From: jfavre at cscs.ch (Jean Favre) Date: Mon, 21 Feb 2000 13:23:35 +0100 Subject: remove from list References: Message-ID: <38B12E47.F550B677@cscs.ch> Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From o.coulon at cs.ucl.ac.uk Mon Feb 21 08:28:21 2000 From: o.coulon at cs.ucl.ac.uk (Olivier Coulon) Date: Mon, 21 Feb 2000 13:28:21 +0000 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> Message-ID: <38B13D75.74047427@cs.ucl.ac.uk> Jan Ehrhardt wrote: > I have surface objects of anatomical tube-like structures (e.g. > vessels) > How can I compute a central line (the skelett) of a > surface object ? > > Thanks. > > Jan Jan, I think it is not a very simple problem. If your structure is a vessel, I guess orthogonal sections are not exact circles and they are not even exact ellipses. Therefore, the skeleton (in a morphological sense) is not gonna be a line (it can be a "piece of surface", or several lines). You can have a look at some kind of "medial axis" or "core" (see "Computation of Object Cores from grey-level images", B.S. Morse, PhD Thesis, University of North Carolina at Chapel Hill, 1994), but this not a straightforward implementation in your case If your surface is properly parameterised (i.e. one parameter r that goes "along" the vessel, and one parameter s that goes "around" it, see the figure below), you can get an approximation by computing for each value of r the barycenter of the section described by s. You'll then have a set of points which more or less describe some kind of "central line", depending on the quality of your parameterisation. ---------------------- ^ -> r |s ---------------------- I guess that the problem is that it is not obvious to define what is the "central line" of something which is not exactly a cylinder. - Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: o.coulon.vcf Type: text/x-vcard Size: 358 bytes Desc: Card for Olivier Coulon URL: From ehrhardt at medinf.mu-luebeck.de Mon Feb 21 09:34:00 2000 From: ehrhardt at medinf.mu-luebeck.de (Jan Ehrhardt) Date: Mon, 21 Feb 2000 15:34:00 +0100 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> Message-ID: <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Oliver, yes it?s not properly defined what is the "central line". But I hope everyone knows what I mean. I have the suggested r parametrization implcitly in a special case: For surfaces of long-bones constructed from CT data I can use the z-coords as r. Well maybe this will work. I remember an equivalent problem: How to compute the way of camera in virtual (gastro-intestinal or bronchial) endoscopy ? Maybe anyone else has done this ?? Jan Olivier Coulon wrote: > > Jan Ehrhardt wrote: > > > I have surface objects of anatomical tube-like structures (e.g. > > vessels) > > How can I compute a central line (the skelett) of a > > surface object ? > > > > Thanks. > > > > Jan > > Jan, > > I think it is not a very simple problem. If your structure is a > vessel, I guess orthogonal sections are not exact circles and they are > not even exact ellipses. Therefore, the skeleton (in a morphological > sense) is not gonna be a line (it can be a "piece of surface", or > several lines). > You can have a look at some kind of "medial axis" or "core" (see > "Computation of Object Cores from grey-level images", B.S. Morse, PhD > Thesis, University of North Carolina at Chapel Hill, 1994), but this > not a straightforward implementation in your case > > If your surface is properly parameterised (i.e. one parameter r that > goes "along" the vessel, and one parameter s that goes "around" it, > see the figure below), you can get an approximation by computing for > each value of r the barycenter of the section described by s. You'll > then have a set of points which more or less describe some kind of > "central line", depending on the quality of your parameterisation. > > > ---------------------- > ^ -> r > |s > ---------------------- > > I guess that the problem is that it is not obvious to define what is > the "central line" of something which is not exactly a cylinder. > > - Olivier > > -- ----------------------- Jan Ehrhardt mailto:ehrhardt at medinf.mu-luebeck.de ----------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From o.coulon at cs.ucl.ac.uk Mon Feb 21 09:43:22 2000 From: o.coulon at cs.ucl.ac.uk (Olivier Coulon) Date: Mon, 21 Feb 2000 14:43:22 +0000 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Message-ID: <38B14F0A.2CD75512@cs.ucl.ac.uk> Jan Ehrhardt wrote: > Oliver, > > yes it?s not properly defined what is the "central line". But > I hope everyone knows what I mean. I completely see what you mean as well, but what I meant is that this is quite intuitive and I think (I might be wrong) that a mathematical (or at least algorithmic) definition is more difficult to obtain. Very best wishes anyway, - Olivier -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Adel.Abdallah at ensg.u-nancy.fr Mon Feb 21 09:58:56 2000 From: Adel.Abdallah at ensg.u-nancy.fr (Adel Abdallah) Date: Mon, 21 Feb 2000 15:58:56 +0100 Subject: Tr: how to compute central line form surface objects Message-ID: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> ----- Original Message ----- From: Olivier Coulon To: Jan Ehrhardt Cc: vtk users Sent: Monday, February 21, 2000 2:28 PM Subject: Re: how to compute central line form surface objects Jan Ehrhardt wrote: I have surface objects of anatomical tube-like structures (e.g. vessels) How can I compute a central line (the skelett) of a surface object ? Thanks. Jan Jan, I think it is not a very simple problem. If your structure is a vessel, I guess orthogonal sections are not exact circles and they are not even exact ellipses. Therefore, the skeleton (in a morphological sense) is not gonna be a line (it can be a "piece of surface", or several lines). You can have a look at some kind of "medial axis" or "core" (see "Computation of Object Cores from grey-level images", B.S. Morse, PhD Thesis, University of North Carolina at Chapel Hill, 1994), but this not a straightforward implementation in your case If your surface is properly parameterised (i.e. one parameter r that goes "along" the vessel, and one parameter s that goes "around" it, see the figure below), you can get an approximation by computing for each value of r the barycenter of the section described by s. You'll then have a set of points which more or less describe some kind of "central line", depending on the quality of your parameterisation. ---------------------- ^ -> r |s ---------------------- I guess that the problem is that it is not obvious to define what is the "central line" of something which is not exactly a cylinder. - Olivier -------------- next part -------------- An HTML attachment was scrubbed... URL: From adv_biologic at hotmail.com Mon Feb 21 10:19:15 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Mon, 21 Feb 2000 07:19:15 PST Subject: Problem compiling vtk 3.1 with Solaris 2.6 Message-ID: <20000221151915.57039.qmail@hotmail.com> Dear fellow vtker's I'm trying to compile vtk 3.1 using the following system configuration Sun SPARC Ultra-60 Solaris 2.6 gcc 2.95.2 and ./configure --with-x --with-opengl --with-shared --with-patented --with-contrib --with-local The compilation chugs happily along, until it reaches the graphics directory, and tries to compile vtkXRenderWindowInteractor.cxx. At this point the following error occurs: make[1]: Entering directory `/export/home0/stuff/vtk/vtk/graphics' /usr/local/bin/g++ -g -O2 -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB -I./../local -DVTK_USE_LOCAL -DVTK_USE_OGLR -I/usr/openwin/share/include/ -I/usr/openwin/include -I./../common -c vtkXRenderWindowInteractor.cxx -o vtkXRenderWindowInteractor.o In file included from /usr/openwin/share/include/X11/Intrinsic.h:56, from vtkXRenderWindowInteractor.h:65, from vtkXRenderWindowInteractor.cxx:47: /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration `XSetTransientForHint' with no type /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration `XActivateScreenSaver' with no type /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration `XAddHost' with no type /usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration `XAddHosts' with no type plus a massive dump of similar XSomething error messages. Any help / insight into this problem would be most appreciated. Thanks. Best regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Mon Feb 21 10:21:42 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Mon, 21 Feb 2000 10:21:42 -0500 Subject: how to compute central line form surface objects References: <38B11FF2.F4C3A76E@medinf.mu-luebeck.de> <38B13D75.74047427@cs.ucl.ac.uk> <38B14CD8.FEDACEA0@medinf.mu-luebeck.de> Message-ID: <38B15806.36060CF2@irus.rri.on.ca> > > I remember an equivalent problem: > How to compute the way of camera in virtual > (gastro-intestinal or bronchial) endoscopy ? > > Hi Jan, To automatically calculate the path of the camera is a difficult problem. However, check out this paper from Stanford University: Automated flight path planning for virtual endoscopy, Paik, Beaulieu, Jeffrey et al, Medical Physics 25(5), May 1998, p. 629. They find the medial axis transform by iterative thinning of the segmented structure. It was applied to virtual colonoscopy, one aorta and a bronchial tree Damini. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 21 10:28:05 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 21 Feb 2000 10:28:05 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> Message-ID: <38B15985.2A4AE234@bme.ri.ccf.org> My makefile.in looks like this.. would I just add the .h file after CONCRETE_H and the .cxx file after CONCRETE if its a concrete object? Thanks, Jon # # vtk library makefile # # NOTE !!! when adding a class, it must be added in one location. # Place it in the correct list based on whether it is only a .h file # and whether it is abstract or concrete. # ME = Local srcdir = @srcdir@ VPATH = @srcdir@ ABSTRACT_H = CONCRETE_H = ABSTRACT = CONCRETE =\ #------------------------------------------------------------------------------ # Autoconfig defines that can be overridden in user.make @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ #------------------------------------------------------------------------------ # Include user-editable defines. @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ #------------------------------------------------------------------------------ # Include the generated targets @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ # add in any extra libraies here KIT_LIBS = # standard stuff here KIT_OBJ = ${SRC_OBJ} KIT_TCL_OBJ = ${TCL_OBJ} KIT_NEWS = ${TCL_NEWS} KIT_FLAGS = PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} #------------------------------------------------------------------------------ # Include the generic stuff here @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ Damini Dey wrote: > Hi Jon, > > You have to manually edit the makefile.in in only one place, in > /vtk/local directory > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > in the /vtkbin directory > > Damini. > > > I am trying to learn how to add new objects to vtk for my own use. I > > have built vtk on NT using the tcl wrappers. If I add my own class > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > in my > > vtkBin directory to add this new object? Is there a way to have pcmaker > > add > > the new object to the makefiles it generates? > > > > I would appreciate any advice on how to do this or caveats involved. > > > > Thanks, > > Jon -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From millerjv at crd.ge.com Mon Feb 21 10:32:59 2000 From: millerjv at crd.ge.com (Miller, James V (CRD)) Date: Mon, 21 Feb 2000 10:32:59 -0500 Subject: Multiple Bugs and rewrite of vtkCleanPolyData Message-ID: If want to send the files, I'll check them in. Thanks for the great work! Jim -----Original Message----- From: John Biddiscombe [mailto:j.biddiscombe at rl.ac.uk] Sent: Sunday, February 20, 2000 6:27 AM To: vtk Subject: Multiple Bugs and rewrite of vtkCleanPolyData I'm afraid that whilst examining vtkCleanPolyData I've found several bugs. At or near line 176 there's a newId instead of cellId which will cause celldata to be copied incorrectly. Much more seriously - the whole design is flawed - CellData is copied as below if ( numNewPts > 1 ) { newId = newLines->InsertNextCell(numNewPts,updatedPts); outputCD->CopyData (cd, cellId, newId); } This is very dubious, because if Verts exist, then newId should continue from the count left over from the vert cleaning, however InsertNextCell for the lines will start from zero (because InsertNextCell for the newLines will return 0,1,2,3 etc etc) , thus the CopyData(...) will copy to the wrong position. If polydata contains verts, lines, polys and strips the error will accumulate with each pass through the loops. I checked this and indeed it does. If only verts, lines, polys or strips exist then the filter works fine. The error only appears when mixes exist and cell data exists. I have rewritten the filter and added some new options bool ConvertLinesToPoints bool ConvertPolysToLines bool ConvertStripsToPolys So that if a poly is reduced to a line it can be aded to the lines cellarray (and ensure the celldata is copied correctly!!) Likewise a line reduced to a point can be added to the verts and a strip reduced to 3 points becomes a poly, 2 points a line and one point a vert. The full set is Line with 1 points -> Vert (if ConvertLinesToPoints=1) Poly with 2 points -> Line (if ConvertPolysToLines=1) Poly with 1 points -> Vert (if ConvertPolysToLines && ConvertLinesToPoints) Strp with 3 points -> Poly (if ConvertStripsToPolys=1) Strp with 2 points -> Line (if ConvertStripsToPolys && ConvertPolysToLines) Strp with 1 points -> Vert (if ConvertStripsToPolys && ConvertPolysToLines && ConvertLinesToPoints) I think that explains it OK. However, the main reason I was examining it was I was creating a vtkQuantizePolyDataPoints filter which will align (x,y,z components of) all points to 1,10,100 or 0.5,0.25 etc etc. ie quantize the point locations and I needed the degenerate lines to become points and polys to become lines - I wanted to use vtkCleanPolyData as a starting point. Having fixed vtkCleanPolyData, it becomes easy to simply insert a call to "QuantizePoint" before inserting the point into the points list, so why not just insert a virtual function in CleanPolyData which subclasses can override and it can be used as a basis for deriving new "cleaning" filters. Therefore I have two classes to submit. One is the improved and fixed vtkCleanPolyData and the other is a subclass called vtkQuantizePolyDataPoints which takes parameter called QFactor which can be any positive value like 0.5,1,2,4,10,20 etc etc Oh yes, I've also added an option SetToleranceToAbsolute/SetToleranceToRelative to vtkCleanPolyDataFilter which controls whether the tolerance is a fixed value like 5 or a fraction of the dataset bounding box length as previously. Where should I put the new classes? Thanks John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Mon Feb 21 10:53:30 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Mon, 21 Feb 2000 10:53:30 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> <38B15985.2A4AE234@bme.ri.ccf.org> Message-ID: <38B15F7A.A7A53906@irus.rri.on.ca> Hi Jon, Say you have a class vtkMyClass.cxx and vtkMyClass.h Based on whether the class is abstract or concrete, you add it like this: EITHER under ABSTRACT = \ vtkMyClass OR under CONCRETE = \ vtkMyClass The ABSTRACT_H or CONCRETE_H places are for classes that are defined by .h files only (eg vtkActorCollection.h) Damini. > My makefile.in looks like this.. would I just add the .h file after CONCRETE_H > and the .cxx file after CONCRETE if its a concrete object? > > Thanks, > Jon > > # > # vtk library makefile > # > # NOTE !!! when adding a class, it must be added in one location. > # Place it in the correct list based on whether it is only a .h file > # and whether it is abstract or concrete. > # > ME = Local > > srcdir = @srcdir@ > VPATH = @srcdir@ > > ABSTRACT_H = > > CONCRETE_H = > > ABSTRACT = > > CONCRETE =\ > > #------------------------------------------------------------------------------ > > # Autoconfig defines that can be overridden in user.make > > @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ > > #------------------------------------------------------------------------------ > > # Include user-editable defines. > > @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ > > #------------------------------------------------------------------------------ > > # Include the generated targets > > @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ > > # add in any extra libraies here > KIT_LIBS = > > # standard stuff here > KIT_OBJ = ${SRC_OBJ} > KIT_TCL_OBJ = ${TCL_OBJ} > KIT_NEWS = ${TCL_NEWS} > KIT_FLAGS = > PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython > -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} > > VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} > TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} > > #------------------------------------------------------------------------------ > > # Include the generic stuff here > > @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ > > Damini Dey wrote: > > > Hi Jon, > > > > You have to manually edit the makefile.in in only one place, in > > /vtk/local directory > > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > > in the /vtkbin directory > > > > Damini. > > > > > I am trying to learn how to add new objects to vtk for my own use. I > > > have built vtk on NT using the tcl wrappers. If I add my own class > > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > > in my > > > vtkBin directory to add this new object? Is there a way to have pcmaker > > > add > > > the new object to the makefiles it generates? > > > > > > I would appreciate any advice on how to do this or caveats involved. > > > > > > Thanks, > > > Jon > > -- > Jon D. Klingensmith > Department of Biomedical Engineering > The Cleveland Clinic Foundation > Lab Phone: 216-445-0591 > http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Mon Feb 21 11:31:42 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Mon, 21 Feb 2000 08:31:42 PST Subject: The fix: Re: Problem compiling vtk 3.1 with Solaris 2.6. Message-ID: <20000221163142.91519.qmail@hotmail.com> Dear fellow vtker's The problem with compiling Unix (Solaris 2.6) X windows stuff using g++ is that the lastest version 2.95.2 is much more strict (ie., retentive) in its interpretation of ANSI standards. The fix is to edit user.make and set USER_CXXFLAGS = -fpermissive Also, I had a previous problem with ./configure failing. The fix was to set the shared library path LD_LIBRARY_PATH = /usr/local/lib (or wherever ones shared g++ library is located) and export it EXPORT LD_LIBRARY_PATH Thanks to everyone who responded. Best regards, Audrius >From: David Chelberg >To: audrius at adv-biologic.com >CC: chelberg at endor.cs.ohiou.edu >Subject: Re: Problem compiling vtk 3.1 with Solaris 2.6 >Date: Mon, 21 Feb 2000 11:13:16 -0500 > >If you receive a response, please let me know what you did to fix >this problem. > >Thanks, > > -- Dave Chelberg ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 21 11:32:15 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 21 Feb 2000 11:32:15 -0500 Subject: adding new objects and building vtk References: <38AD805A.1C1A366F@bme.ri.ccf.org> <38AD91F4.78D5E2A5@irus.rri.on.ca> <38B15985.2A4AE234@bme.ri.ccf.org> <38B15F7A.A7A53906@irus.rri.on.ca> Message-ID: <38B1688F.185CB977@bme.ri.ccf.org> Hello Damini, Do I have to put the source in a specific directory? If I put the .cxx and .h file in my vtkSource/contrib directory (D:/vtkSource/contrib/vtkMyClass.cxx and D:/vtkSource/contrib/vtkMyClass.h) then do I have to specify that in Makefile.in ?? I listed the class like you suggested and ran pcmaker again, but it doesn't seem to do anything to the makefiles generate. Thanks for your help, Jon Damini Dey wrote: > Hi Jon, > > Say you have a class vtkMyClass.cxx and vtkMyClass.h > Based on whether the class is abstract or concrete, you add it like this: > > EITHER under > > ABSTRACT = \ > vtkMyClass > > OR under > > CONCRETE = \ > vtkMyClass > > The ABSTRACT_H or CONCRETE_H places are for classes that are defined by .h files > only > (eg vtkActorCollection.h) > > Damini. > > > My makefile.in looks like this.. would I just add the .h file after CONCRETE_H > > and the .cxx file after CONCRETE if its a concrete object? > > > > Thanks, > > Jon > > > > # > > # vtk library makefile > > # > > # NOTE !!! when adding a class, it must be added in one location. > > # Place it in the correct list based on whether it is only a .h file > > # and whether it is abstract or concrete. > > # > > ME = Local > > > > srcdir = @srcdir@ > > VPATH = @srcdir@ > > > > ABSTRACT_H = > > > > CONCRETE_H = > > > > ABSTRACT = > > > > CONCRETE =\ > > > > #------------------------------------------------------------------------------ > > > > # Autoconfig defines that can be overridden in user.make > > > > @MAKEINCLUDE@ @MAKEQUOTE at ../system.make at MAKEQUOTE@ > > > > #------------------------------------------------------------------------------ > > > > # Include user-editable defines. > > > > @MAKEINCLUDE@ @MAKEQUOTE at ../user.make at MAKEQUOTE@ > > > > #------------------------------------------------------------------------------ > > > > # Include the generated targets > > > > @MAKEINCLUDE@ @MAKEQUOTE at targets.make@MAKEQUOTE@ > > > > # add in any extra libraies here > > KIT_LIBS = > > > > # standard stuff here > > KIT_OBJ = ${SRC_OBJ} > > KIT_TCL_OBJ = ${TCL_OBJ} > > KIT_NEWS = ${TCL_NEWS} > > KIT_FLAGS = > > PYTHON_LIBS = -L../graphics -lVTKGraphicsPython -L../imaging -lVTKImagingPython > > -L../common -lVTKCommonPython ${XLIBS} ${GRAPHICS_API_LIBS} > > > > VTK_LIB_FILE = libVTK${ME}${VTK_LIB_EXT} > > TCL_LIB_FILE = libVTK${ME}Tcl${VTK_LIB_EXT} > > > > #------------------------------------------------------------------------------ > > > > # Include the generic stuff here > > > > @MAKEINCLUDE@ @MAKEQUOTE@@srcdir@/../Kits.make at MAKEQUOTE@ > > > > Damini Dey wrote: > > > > > Hi Jon, > > > > > > You have to manually edit the makefile.in in only one place, in > > > /vtk/local directory > > > (/vtk/contrib for vtk2.4 or lower version). Then run the pcmaker, and nmake > > > in the /vtkbin directory > > > > > > Damini. > > > > > > > I am trying to learn how to add new objects to vtk for my own use. I > > > > have built vtk on NT using the tcl wrappers. If I add my own class > > > > (vtkClass.h and vtkClass.cxx), do I have to manually edit the makefiles > > > > in my > > > > vtkBin directory to add this new object? Is there a way to have pcmaker > > > > add > > > > the new object to the makefiles it generates? > > > > > > > > I would appreciate any advice on how to do this or caveats involved. > > > > > > > > Thanks, > > > > Jon > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From skrishna at cscs.ch Mon Feb 21 12:28:41 2000 From: skrishna at cscs.ch (Sathya Krishnamurthy (CSCS)) Date: Mon, 21 Feb 2000 18:28:41 +0100 Subject: A Small problem... References: Message-ID: <38B175C9.1BE02804@cscs.ch> Hello All I hit something.. but i dont know if it was a bug.. it was in.. vtkUnstructuredGrid::SetCells It occurs just in WindowsNT/VC++6.0/compiled vtk31beta for me.. the code works fine in Solaris/IRIX.. so i dont know exactly what is happening.. So somebody kindly elucidate.. void vtkUnstructuredGrid::SetCells(int *types, vtkCellArray *cells) { int i, npts, *pts; .... ... // build types for (i=0, cells->InitTraversal(); cells->GetNextCell(npts,pts); i++) { ............../// Here the program returns ............../// some arbitrary values .. after the array size.. ............../// so it goes over the bounds.. . ............../// so when it reaches the lastelement of the array ............../// GetNextCell gives me some big negative values for npts ............../// and crashes.. ............../// So i had to add a small hack like ............../// that is if the npts returns ............../// a large negative number.. if (npts < 0) break; this->Cells->InsertNextCell(types[i],cells->GetTraversalLocation(npts)); } } -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vetler at ifi.uio.no Mon Feb 21 13:01:42 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Mon, 21 Feb 2000 19:01:42 +0100 (MET) Subject: Problem compiling vtk 3.1 with Solaris 2.6 In-Reply-To: <20000221151915.57039.qmail@hotmail.com> Message-ID: on 2000-02-21, owner-vtkusers at public.kitware.com wrote: > Dear fellow vtker's > > I'm trying to compile vtk 3.1 using the following system configuration > > Sun SPARC Ultra-60 > Solaris 2.6 > gcc 2.95.2 > > and > > ./configure --with-x --with-opengl --with-shared --with-patented > --with-contrib --with-local > > The compilation chugs happily along, until it reaches the graphics > directory, and tries to compile vtkXRenderWindowInteractor.cxx. > At this point the following error occurs: > > make[1]: Entering directory `/export/home0/stuff/vtk/vtk/graphics' > /usr/local/bin/g++ -g -O2 -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS > -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. > -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING > -I./../patented -DVTK_USE_PATENTED -I./../contrib -DVTK_USE_CONTRIB > -I./../local -DVTK_USE_LOCAL -DVTK_USE_OGLR -I/usr/openwin/share/include/ > -I/usr/openwin/include -I./../common -c vtkXRenderWindowInteractor.cxx > -o vtkXRenderWindowInteractor.o > In file included from /usr/openwin/share/include/X11/Intrinsic.h:56, > from vtkXRenderWindowInteractor.h:65, > from vtkXRenderWindowInteractor.cxx:47: > /usr/openwin/share/include/X11/Xlib.h:2063: ANSI C++ forbids declaration > `XSetTransientForHint' with no type > /usr/openwin/share/include/X11/Xlib.h:2071: ANSI C++ forbids declaration > `XActivateScreenSaver' with no type > /usr/openwin/share/include/X11/Xlib.h:2078: ANSI C++ forbids declaration > `XAddHost' with no type > /usr/openwin/share/include/X11/Xlib.h:2086: ANSI C++ forbids declaration > `XAddHosts' with no type > > plus a massive dump of similar XSomething error messages. > > Any help / insight into this problem would be most appreciated. > Thanks. use the gcc switch '-fpermissive' when compiling (set it in the file 'users.make'). (perhaps this should be added to the FAQ?) vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From vetler at ifi.uio.no Mon Feb 21 13:04:40 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Mon, 21 Feb 2000 19:04:40 +0100 (MET) Subject: The fix: Re: Problem compiling vtk 3.1 with Solaris 2.6. In-Reply-To: <20000221163142.91519.qmail@hotmail.com> Message-ID: on 2000-02-21, owner-vtkusers at public.kitware.com wrote: > Dear fellow vtker's > > The problem with compiling Unix (Solaris 2.6) > X windows stuff using g++ is that the lastest version 2.95.2 is much more > strict (ie., retentive) in its interpretation of ANSI standards. If you think gcc is strict, you should try using Sun Workshop C++ Compiler 5.0 with VTK. It produces an obscene amount of errors if you include vtk.h instead of each individual headerfile. vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cfrocha at icmc.sc.usp.br Mon Feb 21 13:53:01 2000 From: cfrocha at icmc.sc.usp.br (Billy) Date: Mon, 21 Feb 2000 15:53:01 -0300 (EST) Subject: remove from list In-Reply-To: <38B12E47.F550B677@cscs.ch> Message-ID: Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From burgett at ccpo.odu.edu Mon Feb 21 14:54:05 2000 From: burgett at ccpo.odu.edu (Russell Burgett) Date: Mon, 21 Feb 2000 14:54:05 -0500 Subject: remove from list Message-ID: <38B197DD.6998BDA6@ccpo.odu.edu> Remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From human123 at bme.hanyang.ac.kr Mon Feb 21 22:15:44 2000 From: human123 at bme.hanyang.ac.kr (=?ks_c_5601-1987?B?wOW1v8el?=) Date: Tue, 22 Feb 2000 12:15:44 +0900 Subject: remove from list Message-ID: <006501bf7ce7$67ec6b20$815168a6@hanyang.ac.kr> Remove or Unscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From rob at cs.curtin.edu.au Mon Feb 21 22:46:42 2000 From: rob at cs.curtin.edu.au (Robert Iverach) Date: Tue, 22 Feb 2000 11:46:42 +0800 Subject: Remove Message-ID: <001e01bf7ce7$6f473350$49010786@cs.curtin.edu.au> Remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From cpikeman at soli.inav.net Mon Feb 21 23:12:20 2000 From: cpikeman at soli.inav.net (Christopher W. Piker) Date: Mon, 21 Feb 2000 22:12:20 -0600 Subject: remove from list Message-ID: <38B20CA4.63B8C05C@soli.inav.net> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dfchen at anet.ne.jp Tue Feb 22 00:29:31 2000 From: dfchen at anet.ne.jp (D. Chen) Date: Tue, 22 Feb 2000 14:29:31 +0900 Subject: Where to get (more) examples for windows? In-Reply-To: <38B20CA4.63B8C05C@soli.inav.net> References: <38B20CA4.63B8C05C@soli.inav.net> Message-ID: <38B21EBBA5.5356DFCHEN@192.9.200.91> http://public.kitware.com/cgi-bin/vtkfaq?req=recent&days=365250 says: 1.9. What's the best way to learn VTK? There are five things you might want to try: 1) Purchase the book "The Visualization Toolkit" ISBN 0-13-954694-4 from amazon.com. 2) Purchase the "VTK Users Guide" from Kitware 3) Download the source code and/or binaries (available on Windows) and work through the examples (there are 400-500 examples) Where to get (more) examples for windows? Thanks in advance for your kind help. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From markus.heller at charite.de Tue Feb 22 03:28:22 2000 From: markus.heller at charite.de (Markus Heller) Date: Tue, 22 Feb 2000 09:28:22 +0100 Subject: Parallel Projection and RenderLargeImage ? Message-ID: <38B248A6.2781@charite.de> Hi, I'm experiencing some trouble combining a camera with parallel projection and vtkRenderLargeImage. I've got something in Tcl like: set cam1 [ren1 GetActiveCamera] If I set: $cam1 ParallelProjectionOn the subsequent code: vtkRenderLargeImage renderLarge renderLarge SetInput ren1 renderLarge SetMagnification 5 does not work. If I leave out the line "$cam1 ParallelProjectionOn", I get a perspective projection and vtkRenderLargeImage works fine. I guess the problem is that magnification is handled different for parallel/perspective projection ??? Markus PS: I'm using a snapshot from early December '99. ------------------------------------------------------------------- Markus Heller mailto:heller at acm.org ------------------------------------------------------------------- Medizinische Fakultaet Charite, Humboldt-Universitaet zu Berlin Forschungslabor der Unfall- und Wiederherstellungschirurgie Augustenburger Platz 1 D-13353 Berlin Tel: +49 (0)30 450 59159 Fax: +49 (0)30 450 59969 e-mail: heller at acm.org, markus.heller at charite.de http://www.charite.de/biomechanik ------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Tue Feb 22 05:09:20 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Tue, 22 Feb 2000 10:09:20 +0000 Subject: Tr: how to compute central line form surface objects In-Reply-To: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> Message-ID: <3.0.5.32.20000222100920.00a957b0@144.82.123.1> At 15:58 21/02/00 +0100, you wrote: > ----- Original Message ----- >From: Olivier Coulon >To: Jan Ehrhardt >Cc: vtk users >Sent: Monday, February 21, 2000 2:28 PM >Subject: Re: how to compute central line form surface objects >Jan Ehrhardt wrote: > I have surface objects of anatomical tube-like structures (e.g. vessels) > How can I compute a central line (the skelett) of a surface object ? > Thanks. > Jan > >Jan, I think it is not a very simple problem. If your structure is a >vessel, I guess orthogonal sections are not exact circles and they are not >even exact ellipses. But if the cross-sections are approximately ellipses then you could use an ellipse-fitting routine. Use the polygon normals to get at the plane of cross section for the tube, then find the ring of points that intersect this plane. (Bit tricky, might have to reject distant intersections.) Then simply run a robust ellipse-fitting routine over the set of points and extract the center of the ellipse to give you the skeleton point. Repeat this along the tubes to build your central line. Code for ellipse-fitting attached, all credit to Maurizio Pilu et al. Will have to adapt to your purposes, it is set up to draw into a Microsoft Visual C++ MFC drawing context. Hope this helps, it is not an easy problem. Cheers, Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From squireson at bigfoot.com Tue Feb 22 20:39:25 2000 From: squireson at bigfoot.com (chris) Date: Tue, 22 Feb 2000 19:39:25 -0600 Subject: remove from list Message-ID: <38B33A4D.8BF20EB@bigfoot.com> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Tue Feb 22 08:06:14 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Tue, 22 Feb 2000 13:06:14 +0000 Subject: Tr: how to compute central line form surface objects In-Reply-To: <3.0.5.32.20000222100920.00a957b0@144.82.123.1> References: <005301bf7c7c$2de478c0$ab305dc0@ensg.unancy.fr> Message-ID: <3.0.5.32.20000222130614.00af6140@144.82.123.1> >Code for ellipse-fitting attached Sorry, forgot. Attached now. Tim. -------------- next part -------------- // PiluEllipseFit.h //************************************************************************** // This java code is an interactive demo of the first ellipse-specific // direct fitting method presented in the papers: // M. Pilu, A. Fitzgibbon, R.Fisher ``Ellipse-specific Direct // least-square Fitting '' , IEEE International Conference on Image // Processing, Lausanne, September 1996. (poscript) (HTML) // A. Fitzgibbon, M. Pilu , R.Fisher ``Direct least-square fitting of // Ellipses '' , International Conference on Pattern Recognition, Vienna, // August 1996. (poscript) - Extended version available as DAI Research // Paper #794 // The demo can be tried out at // http://www.dai.ed.ac.uk/students/maurizp/ElliFitDemo/demo.html // The code was written by Maurizio Pilu , University of Edinburgh. The // applet's graphic interface was much inspired by the Curve Applet // written by Michael Heinrichs at SFU, Vancouver: // http://fas.sfu.ca:80/1/cs/people/GradStudents/heinrica/personal/curve.html // Some math routines are from the "Numerical Recipes in C" by // Press/Teukolsky/Vettering/Flannery, Cambridge Uiniversity Press, // Second Edition (1988). PLEASE READ COPYRIGHT ISSUES ON THE NUMERICAL // RECIPES BOOK. // NOTE: Some parts of the program are rather scruffy. The author // will tidy it up whan he has some spare time. // DISCLAIMER: The authors and the department assume no responsabilities // whatsoever for any wrong use of this code. // COPYRIGHT: Any commercial use of the code and the method is forbidden // without written authorization from the authors. //************************************************************************** // mindless hack into c from java by tim hutton struct C2dVector { float x,y }; class PiluEllipseFit { public: void paint(C2dVector *points,int np,CDC *pDC,C2dVector *output_points=NULL) { double **D = new double*[np+1]; for(int c=0;cSetPixel(points[i].x,points[i].y,RGB(0,0,0)); } } // initialize the constraint matrix for(i=0;i<7;i++) for(j=0;j<7;j++) Const[i][j]=0; Const[1][3]=-2; Const[2][2]=1; Const[3][1]=-2; // method doesn't work for fewer than 6 points if (np<6) return; // Now first fill design matrix for (i=1; i <= np; i++) { tx = points[i-1].x; ty = points[i-1].y; D[i][1] = tx*tx; D[i][2] = tx*ty; D[i][3] = ty*ty; D[i][4] = tx; D[i][5] = ty; D[i][6] = 1.0; } //pm(Const,"Constraint"); // Now compute scatter matrix S A_TperB(D,D,(double**)S,np,6,np,6); //pm(S,"Scatter"); choldc((double**)S,6,(double**)L); //pm(L,"Cholesky"); inverse((double**)L,(double**)invL,6); //pm(invL,"inverse"); AperB_T((double**)Const,(double**)invL,(double**)temp,6,6,6,6); AperB((double**)invL,(double**)temp,(double**)C,6,6,6,6); //pm(C,"The C matrix"); jacobi((double**)C,6,d,(double**)V,nrot); //pm(V,"The Eigenvectors"); /* OK */ //pv(d,"The eigevalues"); A_TperB((double**)invL,(double**)V,(double**)sol,6,6,6,6); //pm(sol,"The GEV solution unnormalized"); /* SOl */ // Now normalize them for (j=1;j<=6;j++) /* Scan columns */ { double mod = 0.0; for (i=1;i<=6;i++) mod += sol[i][j]*sol[i][j]; for (i=1;i<=6;i++) sol[i][j] /= sqrt(mod); } //pm(sol,"The GEV solution"); /* SOl */ double zero=10e-20; double minev=10e+20; int solind=0; for (i=1; i<=6; i++) { if (d[i]<0 && fabs(d[i])>zero) solind = i; } // Now fetch the right solution for (j=1;j<=6;j++) pvec[j] = sol[j][solind]; //pv(pvec,"the solution"); // ...and plot it draw_conic(pvec,npts,XY); // actually draw to screen if desired if(pDC!=NULL) { for (i=1; iMoveTo((int)XY[1][i],(int)XY[2][i]); pDC->LineTo((int)XY[1][i+1],(int)XY[2][i+1]); } else { pDC->MoveTo((int)XY[1][i],(int)XY[2][i]); pDC->LineTo((int)XY[1][1],(int)XY[2][1]); } } } // return the ellipse points in output_points if desired if(output_points!=NULL) { for (i=1; i 4 && fabs(d[ip])+g == fabs(d[ip]) && fabs(d[iq])+g == fabs(d[iq])) a[ip][iq]=0.0; else if (fabs(a[ip][iq]) > tresh) { h=d[iq]-d[ip]; if (fabs(h)+g == fabs(h)) t=(a[ip][iq])/h; else { theta=0.5*h/(a[ip][iq]); t=1.0/(fabs(theta)+sqrt(1.0+theta*theta)); if (theta < 0.0) t = -t; } c=1.0/sqrt(1+t*t); s=t*c; tau=s/(1.0+c); h=t*a[ip][iq]; z[ip] -= h; z[iq] += h; d[ip] -= h; d[iq] += h; a[ip][iq]=0.0; for (j=1;j<=ip-1;j++) { ROTATE(a,j,ip,j,iq,tau,s); } for (j=ip+1;j<=iq-1;j++) { ROTATE(a,ip,j,j,iq,tau,s); } for (j=iq+1;j<=n;j++) { ROTATE(a,ip,j,iq,j,tau,s); } for (j=1;j<=n;j++) { ROTATE(v,j,ip,j,iq,tau,s); } ++nrot; } } } for (ip=1;ip<=n;ip++) { b[ip] += z[ip]; d[ip]=b[ip]; z[ip]=0.0; } } //printf("Too many iterations in routine JACOBI"); } // Perform the Cholesky decomposition // Return the lower triangular L such that L*L'=A void choldc(double **a, int n, double **l) { int i,j,k; double sum; double *p = new double[n+1]; for (i=1; i<=n; i++) { for (j=i; j<=n; j++) { for (sum=a[i][j],k=i-1;k>=1;k--) sum -= a[i][k]*a[j][k]; if (i == j) { if (sum<=0.0) // printf("\nA is not poitive definite!"); {} else p[i]=sqrt(sum); } else { a[j][i]=sum/p[i]; } } } for (i=1; i<=n; i++) for (j=i; j<=n; j++) if (i==j) l[i][i] = p[i]; else { l[j][i]=a[j][i]; l[i][j]=0.0; } } /********************************************************************/ /** Calcola la inversa della matrice B mettendo il risultato **/ /** in InvB . Il metodo usato per l'inversione e' quello di **/ /** Gauss-Jordan. N e' l'ordine della matrice . **/ /** ritorna 0 se l'inversione corretta altrimenti ritorna **/ /** SINGULAR . **/ /********************************************************************/ int inverse(double **TB, double **InvB, int N) { int k,i,j,p,q; double mult; double D,temp; double maxpivot; int npivot; double **B = new double*[N+1]; double **A = new double*[N+1]; double **C = new double*[N+1]; for(i=0;i=eps) { if (npivot!=k) for (j=k;j<=2*N+1;j++) { temp=A[npivot][j]; A[npivot][j]=A[k][j]; A[k][j]=temp; } ; D=A[k][k]; for (j=2*N+1;j>=k;j--) A[k][j]=A[k][j]/D; for (i=1;i<=N;i++) { if (i!=k) { mult=A[i][k]; for (j=2*N+1;j>=k;j--) A[i][j]=A[i][j]-mult*A[k][j] ; } } } else { // printf("\n The matrix may be singular !!") ; return(-1); }; } /** Copia il risultato nella matrice InvB ***/ for (k=1,p=1;k<=N;k++,p++) for (j=N+2,q=1;j<=2*N+1;j++,q++) InvB[p][q]=A[k][j]; return(0); } /* End of INVERSE */ void AperB(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_righA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_colA;l++) { _res[p][q]=_res[p][q]+_A[p][l]*_B[l][q]; } } } } void A_TperB(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_colA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_righA;l++) { _res[p][q]=_res[p][q]+_A[l][p]*_B[l][q]; } } } } void AperB_T(double **_A, double **_B, double **_res, int _righA, int _colA, int _righB, int _colB) { int p,q,l; for (p=1;p<=_colA;p++) { for (q=1;q<=_colB;q++) { _res[p][q]=0.0; for (l=1;l<=_righA;l++) { _res[p][q]=_res[p][q]+_A[p][l]*_B[q][l]; } } } } void draw_conic(double *pvec, int nptsk, double **points) { int npts=nptsk/2; double *u[3]; double *Aiu[3]; double *L[3]; double *B[3]; double *Xpos[3]; double *Xneg[3]; double *ss1[3]; double *ss2[3]; double *uAiu[3]; for(int i=0;i<3;i++) { u[i] = new double[npts+1]; Aiu[i] = new double[npts+1]; L[i] = new double[npts+1]; B[i] = new double[npts+1]; Xpos[i] = new double[npts+1]; Xneg[i] = new double[npts+1]; ss1[i] = new double[npts+1]; ss2[i] = new double[npts+1]; uAiu[i] = new double[npts+1]; } double *lambda = new double[npts+1]; int c; double *A[3]; for(c=0;c<3;c++) A[c]=new double[3]; double *Ai[3]; for(c=0;c<3;c++) Ai[c]=new double[3]; double *Aib[3]; for(c=0;c<3;c++) Aib[c]=new double[2]; double *b[3]; for(c=0;c<3;c++) b[c]=new double[2]; double *r1[2]; for(c=0;c<2;c++) r1[c]=new double[2]; double Ao, Ax, Ay, Axx, Ayy, Axy; double pi = 3.14781; double theta; int j; double kk; Ao = pvec[6]; Ax = pvec[4]; Ay = pvec[5]; Axx = pvec[1]; Ayy = pvec[3]; Axy = pvec[2]; A[1][1] = Axx; A[1][2] = Axy/2; A[2][1] = Axy/2; A[2][2] = Ayy; b[1][1] = Ax; b[2][1] = Ay; // Generate normals linspace for (i=1, theta=0.0; i<=npts; i++, theta+=(pi/npts)) { u[1][i] = cos(theta); u[2][i] = sin(theta); } inverse((double**)A,(double**)Ai,2); AperB((double**)Ai,(double**)b,(double**)Aib,2,2,2,1); A_TperB((double**)b,(double**)Aib,(double**)r1,2,1,2,1); r1[1][1] = r1[1][1] - 4*Ao; AperB((double**)Ai,(double**)u,(double**)Aiu,2,2,2,npts); for (i=1; i<=2; i++) for (j=1; j<=npts; j++) uAiu[i][j] = u[i][j] * Aiu[i][j]; for (j=1; j<=npts; j++) { if ( (kk=(r1[1][1] / (uAiu[1][j]+uAiu[2][j]))) >= 0.0) lambda[j] = sqrt(kk); else lambda[j] = -1.0; } // Builds up B and L for (j=1; j<=npts; j++) L[1][j] = L[2][j] = lambda[j]; for (j=1; j<=npts; j++) { B[1][j] = b[1][1]; B[2][j] = b[2][1]; } for (j=1; j<=npts; j++) { ss1[1][j] = 0.5 * ( L[1][j] * u[1][j] - B[1][j]); ss1[2][j] = 0.5 * ( L[2][j] * u[2][j] - B[2][j]); ss2[1][j] = 0.5 * ( -L[1][j] * u[1][j] - B[1][j]); ss2[2][j] = 0.5 * ( -L[2][j] * u[2][j] - B[2][j]); } AperB((double**)Ai,(double**)ss1,(double**)Xpos,2,2,2,npts); AperB((double**)Ai,(double**)ss2,(double**)Xneg,2,2,2,npts); for (j=1; j<=npts; j++) { if (lambda[j]==-1.0) { points[1][j] = -1.0; points[2][j] = -1.0; points[1][j+npts] = -1.0; points[2][j+npts] = -1.0; } else { points[1][j] = Xpos[1][j]; points[2][j] = Xpos[2][j]; points[1][j+npts] = Xneg[1][j]; points[2][j+npts] = Xneg[2][j]; } } } }; From watanabe at moldyn.com Tue Feb 22 08:06:43 2000 From: watanabe at moldyn.com (Masa Watanabe) Date: Tue, 22 Feb 2000 08:06:43 -0500 Subject: remove from list Message-ID: <22E7F3D5131DD2119E3700A0C9D18F6D318227@adams.moldyn.com> remove -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From will.schroeder at kitware.com Tue Feb 22 11:45:48 2000 From: will.schroeder at kitware.com (Will Schroeder) Date: Tue, 22 Feb 2000 08:45:48 -0800 Subject: No subject Message-ID: <4.3.0.20000222083446.00b11f60@pop.nycap.rr.com> Hi Folks- I wanted to remind everybody on the list that there is an interesting workshop to be help in April: Visualization Development Environments 2000. Several of you have submitted abstracts for VTK, there is also room for anybody who wants to help visualize the data sets that the organizers will provide. Anyone who is interested in helping or who has questions please contact me directly. See http://rainbow.ncsc.org/vsw00/. I think we'll learn a lot. I was at Princeton yesterday talking to one of the organizers and he's expecting 100-200 people, which is a fairly intimate conference size, meaning (I hope) that we can meet lots of interesting people. Will -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From maja.malus at mf.uni-lj.si Tue Feb 22 08:52:08 2000 From: maja.malus at mf.uni-lj.si (Maja Malus) Date: Tue, 22 Feb 2000 14:52:08 +0100 Subject: Central line and path finder for Jan Ehrhardt Message-ID: <20000222135301.94B8816EA01@razor.arnes.si> A non-text attachment was scrubbed... Name: not available Type: text/enriched Size: 1235 bytes Desc: not available URL: From inci at fh-aargau.ch Tue Feb 22 10:00:28 2000 From: inci at fh-aargau.ch (Ahmet Inci) Date: Tue, 22 Feb 2000 15:00:28 +0000 Subject: vtkCellLocator Message-ID: <38B2A48C.B5F3F759@fh-aargau.ch> I work with vtkCellLocator. My Programm worked well under vtk 2.4 in linux but I have problems under vtk 3.0 beta version december 1999. The Code is: vtkPolyData *data = vtkPolyData::New(); vtkCellLocator *Locator = vtkCellLocator::New(); int result,subid,cellid; float t,tol; float punkt0[3],epunkt[3],pccords[3],sp[3]; ... ... ... Locator->SetDataSet(data); Locator->BuildLocator(); ... ... ... result = Locator->IntersectWithLine(punkt0,epunkt,tol,t,sp,pcoords,subid,cellid); if ( result == 0) { // there doesn't exist a cell between punkt0 and epunkt ... ... } else { // ther exist a cell between punkt0 and epunkt } In vtk 2.4 if there doesn't exist a cell then the result was zero. But in vtk 3.0 the result is always zero. How can I find out in vtk 3.0 if there exist a cell between two points ? Thanks inci -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From l18596 at alunos.cc.fc.ul.pt Tue Feb 22 10:35:47 2000 From: l18596 at alunos.cc.fc.ul.pt (Luis Miguel Goncalves Lopes) Date: Tue, 22 Feb 2000 15:35:47 +0000 Subject: remove from list Message-ID: <3.0.5.32.20000222153547.00809100@alunos.cc.fc.ul.pt> remove **************************************************************************** ********************************************************* Luis Miguel Gon?alves Lopes Departamento de Quimica e Bioquimica, Faculdade de Ci?ncias da Universidade de Lisboa Instituto de Ciencia Aplicada e Tecnologia, Laboratorio de Bioqumica Aplicada Ed. ICAT, Campus da FCUL, Campo Grande, 1749-016 Lisboa, Portugal. Phone:+(351-21)- 750 0000 ext. 2746 Fax: +(351-21)- 757 3625 e-mail: l18596 at alunos.cc.fc.ul.pt **************************************************************************** ********************************************************* **************************************************************************** ************************************** -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From francis.bouchet at areall.com Tue Feb 22 10:52:54 2000 From: francis.bouchet at areall.com (Francis Bouchet) Date: Tue, 22 Feb 2000 16:52:54 +0100 Subject: DialogBox Visual C++ 5.0 Message-ID: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Hello, I'd like build a display with my images included in a Dialog box built with Visual C++ 5.0. Has anybody already experimented something like that? If so, could you show me how I should proceed ? Thank you, Francis. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From bat5 at po.cwru.edu Tue Feb 22 11:50:56 2000 From: bat5 at po.cwru.edu (Brian Alexander Todd) Date: Tue, 22 Feb 2000 11:50:56 -0500 Subject: DialogBox Visual C++ 5.0 In-Reply-To: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Message-ID: <3.0.1.32.20000222115056.01319b3c@pop.cwru.edu> At 04:52 PM 2/22/00 +0100, Francis Bouchet wrote: >Hello, > >I'd like build a display with my images included in a Dialog box built with >Visual C++ 5.0. >Has anybody already experimented something like that? >If so, could you show me how I should proceed ? > >Thank you, > >Francis. > > This is pretty much all you need to know. wxWindow* canvas = new wxWindow(); vtkWin32OpenGLRenderWindow* renWindow = vtkWin32OpenGLRenderWindow::New(); HWND hwnd; renWindow->SetWindowId( (HWND) canvas->GetHWND() ); This is for wxWindows (GUI toolkit) under MSW. I think if MSW has some sort of windows base class, it should work the same way just replacing wxWindow's with whatever the MFC window is. In fact I figured this out from the vtk MFC example. By the way, can anyone tell me what the analog for this is under GTK? e.g. How do you get vtk to render into a GTK window. Thanks, Brian Todd Brian Todd email: bat5 at po.cwru.edu N.O.B.L. home: (216) 791-2407 C.W.R.U. office: (216) 368-4209 Cleveland, OH 44106 fax: (216) 368-4969 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cantinn at IRO.UMontreal.CA Tue Feb 22 12:58:59 2000 From: cantinn at IRO.UMontreal.CA (Noa Mathieu Cantin) Date: Tue, 22 Feb 2000 12:58:59 -0500 (EST) Subject: remove from list (fwd) Message-ID: <200002221759.MAA26330@blb25.IRO.UMontreal.CA> Please, could anybody do something about this? I wrote to the admin of this majordomo but got no answer. It seems that after this mailling list had some problems, people that were formerly unregistered (like me...) are now re-registered. Could someone check this? thanks. Noa Cantin Forwarded message: > From owner-vtkusers at public.kitware.com Tue Feb 22 12:54:13 2000 > X-Authentication-Warning: public.kitware.com: majordomo set sender to owner-vtkusers at public.kitware.com using -f > Message-Id: <3.0.5.32.20000222153547.00809100 at alunos.cc.fc.ul.pt> > X-Sender: l18596 at alunos.cc.fc.ul.pt > X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) > Date: Tue, 22 Feb 2000 15:35:47 +0000 > To: vtkusers at public.kitware.com > From: Luis Miguel Goncalves Lopes > Subject: remove from list > Mime-Version: 1.0 > Content-Type: text/plain; charset="iso-8859-1" > Content-Transfer-Encoding: 8bit > X-MIME-Autoconverted: from quoted-printable to 8bit by public.kitware.com id KAA20587 > Sender: owner-vtkusers at public.kitware.com > Precedence: bulk > > remove > > **************************************************************************** > ********************************************************* > Luis Miguel Gon?alves Lopes > Departamento de Quimica e Bioquimica, Faculdade de Ci?ncias da Universidade > de Lisboa > Instituto de Ciencia Aplicada e Tecnologia, > Laboratorio de Bioqumica Aplicada > Ed. ICAT, Campus da FCUL, Campo Grande, 1749-016 Lisboa, Portugal. > Phone:+(351-21)- 750 0000 ext. 2746 > Fax: +(351-21)- 757 3625 > e-mail: l18596 at alunos.cc.fc.ul.pt > **************************************************************************** > ********************************************************* > > > > > > **************************************************************************** > ************************************** > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From peter at synerdyne.com Tue Feb 22 13:18:17 2000 From: peter at synerdyne.com (Peter Diaconescu) Date: Tue, 22 Feb 2000 10:18:17 -0800 Subject: Remove from mailing list Message-ID: <001c01bf7d61$31285610$b501a8c0@peterpc2000> Please remove my e-mail address from your mailing list. Thank you Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: From peter at synerdyne.com Tue Feb 22 13:19:33 2000 From: peter at synerdyne.com (Peter Diaconescu) Date: Tue, 22 Feb 2000 10:19:33 -0800 Subject: Remove from mailing list Message-ID: <004d01bf7d61$5e5f8040$b501a8c0@peterpc2000> Remove -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.hoffman at kitware.com Tue Feb 22 13:39:20 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Tue, 22 Feb 2000 13:39:20 -0500 Subject: How to remove yourself from this list In-Reply-To: <004d01bf7d61$5e5f8040$b501a8c0@peterpc2000> Message-ID: <4.2.0.58.20000222132534.01db9920@pop.nycap.rr.com> Hello All, We recently moved the VTK mailing list from GE to Kitware. The list we used was a little bit out of date, so some people that were removed from the list may find themselves back on the list. Sorry about that. However, there does seem to be some confusion on how to get off the list. If you are on this list and do not want to be on the list, please follow these instructions: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . NOTE, that it is majordomo at public.kitware.com and NOT vtkusers at public.kitware.com. We have added a filter, so that the remove messages sent to vtkusers will no longer be sent to the list, but they will also not get you off the list. Further NOTE, if you subscribed from yogy at bar and attempt to unsubscribe from booboo at bar it will not work. You have to unsubscribe from the account that is on the list. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From chelberg at endor.cs.ohiou.edu Tue Feb 22 15:29:38 2000 From: chelberg at endor.cs.ohiou.edu (David Chelberg) Date: Tue, 22 Feb 2000 15:29:38 -0500 Subject: Streamlines in 2D/3D Message-ID: <200002222029.PAA26523@endor.cs.ohiou.edu> Does anyone have any code illustrating creation of streamlines in 2D? For example, suppose you have an image. You compute the gradient of the image. Push the gradient data into vectors. Then you want to find the "valleys" of the image. One way to do this is to go in the direction of the local gradient (the steepest descent). Another way of looking at the problem is that suppose you have a local surface grid. You want to determine where streams would flow if water was available at a particular position (an underground spring). Anyone have suggestions? Thanks, -- David Chelberg (chelberg at ohiou.edu) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at ncsa.uiuc.edu Tue Feb 22 15:37:23 2000 From: prajlich at ncsa.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 14:37:23 -0600 (CST) Subject: new vtkActorToPF In-Reply-To: <000c01bf7d4c$e3b15760$05c8c8c0@sfournier> Message-ID: Hi vtkusers, for those of you that are interested in computing geometry with VTK but rendering with SGI's Performer, a new version of vtkActorToPF is available. vtkActorToPF allows you to develop interactive visualization applications for multi-headed displays like the CAVE very easily. New for Version 6.0: 1. Merges regular and parallel versions of vtkActorToPFTranslator into one release. 2. Many more examples. There are now 6 pfCAVE examples, 6 regular Performer examples, and the two versions of the parallel example. 3. Better error checking. For instance, if there are no normals, lighting will automatically be turned off for the geode. 4. Code for compiling a Performer vtk loader DSO. This DSO can be used in conjunction with "perfly." It allows you to load static geometry from any vtkPolyData file. -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at monet.astro.uiuc.edu Tue Feb 22 15:46:25 2000 From: prajlich at monet.astro.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 14:46:25 -0600 (CST) Subject: new vtkActorToPF Message-ID: <200002222046.OAA2641505@monet.astro.uiuc.edu> Hi vtkusers, for those of you that are interested in computing geometry with VTK but rendering with SGI's Performer, a new version of vtkActorToPF is available. vtkActorToPF allows you to develop interactive visualization applications for multi-headed displays like the CAVE very easily. New for Version 6.0: 1. Merges regular and parallel versions of vtkActorToPFTranslator into one release. 2. Many more examples. There are now 6 pfCAVE examples, 6 regular Performer examples, and the two versions of the parallel example. 3. Better error checking. For instance, if there are no normals, lighting will automatically be turned off for the geode. 4. Code for compiling a Performer vtk loader DSO. This DSO can be used in conjunction with "perfly." It allows you to load static geometry from any vtkPolyData file. -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From prajlich at ncsa.uiuc.edu Tue Feb 22 16:37:36 2000 From: prajlich at ncsa.uiuc.edu (Paul John Rajlich) Date: Tue, 22 Feb 2000 15:37:36 -0600 (CST) Subject: new vtkActorToPF In-Reply-To: Message-ID: The URL for vtkActorToPF is: http://hoback.ncsa.uiuc.edu/~prajlich/vtkActorToPF/ -Paul ---------------------------------------------------------------------- Paul J. Rajlich - prajlich at ncsa.uiuc.edu Visualization and Virtual Environments National Center for Supercomputing Applications http://brighton.ncsa.uiuc.edu/~prajlich/ ---------------------------------------------------------------------- On Tue, 22 Feb 2000, Paul John Rajlich wrote: > > Hi vtkusers, > > for those of you that are interested in computing geometry with VTK > but rendering with SGI's Performer, a new version of vtkActorToPF is > available. vtkActorToPF allows you to develop interactive visualization > applications for multi-headed displays like the CAVE very easily. > > New for Version 6.0: > > 1. Merges regular and parallel versions of vtkActorToPFTranslator into > one release. > 2. Many more examples. There are now 6 pfCAVE examples, 6 regular > Performer examples, and the two versions of the parallel example. > 3. Better error checking. For instance, if there are no normals, > lighting will automatically be turned off for the geode. > 4. Code for compiling a Performer vtk loader DSO. This DSO can be used > in conjunction with "perfly." It allows you to load static geometry > from any vtkPolyData file. > > -Paul > > ---------------------------------------------------------------------- > Paul J. Rajlich - prajlich at ncsa.uiuc.edu > Visualization and Virtual Environments > National Center for Supercomputing Applications > http://brighton.ncsa.uiuc.edu/~prajlich/ > ---------------------------------------------------------------------- > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 18:09:07 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 11:09:07 +1200 Subject: More precise clipping with implicit functions Message-ID: <4C25688D.007F2E1D.00@mail.forestresearch.co.nz> John, Just a report from the trenches. My work with clipping etc prompted me to update from vtk 2.2 to the latest nightly to try out Subdivision Surfaces. I am using Borland C Builder 3. PCMAKER, and the command line make, built the whole vtk DLL beautifully (applause to vtk). The only glitch (apart from some out-of-memory failures) was with vtkDirectory. This has conditional code for UNIX or WIN32, but is incompatible with Borland (findfirst, findnext). I cloned the whole WIN32 block and tweaked it with the Borland specific functions, which got it to compile OK. What is your experience with this?. I downloaded BCBvtkRenderWindow.zip from your page. The links to BCBvtkMappedRenderWindow.zip and vtkdemo.zip, which I was interested in, seemed to be broken. I got BCBvtkRenderWindow working quite painlessly (applause to you) with the following changes: BCBvtkRenderWindow.cpp: //DP if (FInteractor) tb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle()); if (FInteractor) tb = (vtkInteractorStyleTrackball *)FInteractor->GetInteractorStyle(); //DP BCBvtkRenderWindow.h: //DP __property Anchors; //DP __property Constraints; //DP __property OnCanResize; //DP __property OnConstrainedResize; BCBvtkRenderWindow does seem to suffer from one fault, which your earlier VTK_PANEL shared. That is if you re-size the app window larger, the render panel is sized up, but beyond a certain size the viewport is too small. The effect is as though you are looking at the scene through a fixed size window placed at the upper left of the panel. Any clues on how to fix this?. I tried using an ImplicitBoolean setup to get better clipping. It did work, but the resulting implicit function needs to be sampled at high resolution with vtkSampleFuntion. At (60*60*60) resolution, and a wait of about 2hrs, I got a result that was unacceptable. Forget that idea, especially with your data. I then tried vtkLinearSubdivisionFilter on my polygonal data (preceded by vtkTriangleFilter). Thanks to Bill Lorenson for the tip off about this class. This allowed much better interaction between the polydata and the implicit function, MUCH BETTER. For me this gives a perfectly acceptable solution, with 2 or 3 subdivision iterations the results are very good. I have some ideas about extending the Subdivision Surfaces code to make it a better suited for this type of problem, but first I would like to consider the issues in your application. I am not completely clear about your problem. This "fresnel zone", is it a cylindrical region?, which you want to intersect with a very large number of polygons (buildings), over a very long path?. regards Dave Pont -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 20:41:54 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 13:41:54 +1200 Subject: Borland specific code Message-ID: <4C25688E.000954C8.00@mail.forestresearch.co.nz> Bill, I have attached an excerpt from vtkDirectory.cxx that I modified and compiled OK with Borland C++Builder 3. As you can see I use the compiler defined macro __BORLANDC__ to allow me to include the appropriate headers and set up macros for the data declaration and function calls that are specific to the two WIN32 compilers. This allows one copy of the WIN32 implementation, which is a bit nicer for maintenance. My first hack was actually just a specific implementation for each compiler, but as the differences are very small the use of macros makes it much tidier. Please note that while this compiles under Borland I have not tested the code. I leave it to you to see if MSC and UNIX compilers like this code, and if it tests out OK. regards Dave Pont I amended the _WIN32 block (from about line 40) to be: // First windows style directory access #ifdef _WIN32 #include #include #include #include #ifdef __BORLANDC__ // support BORLAND specific directory access #include #define DECL_WIN32FILEDATA( data ) struct ffblk data #define WIN32FINDFIRST( buf, data ) findfirst(buf, data, 0) // 0=ordinary files #define WIN32FINDNEXT( srchHandle, data ) findnext(data) #define WIN32FINDCLOSE( srchHandle ) 0 // trick to allow good return value #else // MSC #include #include #include #include #include #define DECL_WIN32FILEDATA( data ) struct _finddata_t data #define WIN32FINDFIRST( buf, data ) _findfirst(buf, data) #define WIN32FINDNEXT( srchHandle, data ) _findnext(srchHandle, data) #define WIN32FINDCLOSE( srchHandle ) _findclose(srchHandle) #endif // MSC int vtkDirectory::Open(const char* name) { char* buf; int n = strlen(name); if (name[n - 1] == '/') { buf = new char[n + 1 + 1]; sprintf(buf, "%s*", name); } else { buf = new char[n + 2 + 1]; sprintf(buf, "%s/*", name); } DECL_WIN32FILEDATA( data );// data of current file // First count the number of files in the directory long srchHandle = WIN32FINDFIRST( buf, &data ); if (srchHandle == -1) { cerr << "can't open directory " << buf << endl; this->NumberOfFiles = 0; return 0; } this->NumberOfFiles = 1; while(WIN32FINDNEXT(srchHandle,&data) != -1) { this->NumberOfFiles++; } this->Files = new char*[this->NumberOfFiles]; // Now put them into the file array srchHandle = WIN32FINDFIRST( buf, &data ); delete [] buf; if (srchHandle == -1) { this->NumberOfFiles = 0; return 0; } // Loop through names int i = 0; do { this->Files[i] = strcpy(new char[strlen(data.ff_name)+1], data.ff_name); i++; } while (WIN32FINDNEXT( srchHandle, &data ) != -1); this->Path = strcpy(new char[strlen(name)+1], name); return WIN32FINDCLOSE(srchHandle) != -1; } #else // Unix style directory access -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From avner at jhu.edu Tue Feb 22 20:07:15 2000 From: avner at jhu.edu (Avner Aliphas) Date: Tue, 22 Feb 2000 20:07:15 -0500 Subject: SNAKES Message-ID: <38B332C3.71FF0647@jhu.edu> Does anyone know of an implementation of Snake Splines or Active Contours in The VTK Library. Thanks -Avner -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From david.pont at forestresearch.co.nz Tue Feb 22 20:59:47 2000 From: david.pont at forestresearch.co.nz (david.pont at forestresearch.co.nz) Date: Wed, 23 Feb 2000 13:59:47 +1200 Subject: More precise clipping with implicit functions Message-ID: <4C25688E.000AF809.00@mail.forestresearch.co.nz> John, Thanks for the pointer about window clipping, I did wonder about starting with a larger window!, so I will try that. I am running Windows 98 on a Dell Inspiron 7000 laptop with a "RAGE LT PRO AGP 2X" display adaptor. I might twiddle with hardware acceleration settings to see if I can make it behave better. No problem for me about your web page. The BCBvtkRenderWindow I downloaded worked fine, so I am very happy to have vtk so nicely integrated into the C Builder environment. Yes I think bounding the subdivision activity will be a very good first step. If it is just intersection with the SURFACE of the ellipse you are interested in, maybe you could clip away polydata from the interior too?. Keep me posted, as eventually we might be able to suggest some useful improvements to the Subdivision Surface classes. regards Dave Pont -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dnetherway at health.adelaide.edu.au Tue Feb 22 21:05:28 2000 From: dnetherway at health.adelaide.edu.au (David J. Netherway) Date: Wed, 23 Feb 2000 11:35:28 +0930 Subject: Querying the scalar value at a point Message-ID: <38B34068.398F6F06@health.adelaide.edu.au> Hello, I have been trying to get the interpolated scalar value at an internal point of a medical data volume with scalars in the range 0-4095. I have tried to use a point to probe the data as follows: vtkImageReader reader reader attributes etc vtkPoints point point Allocate 1 1 point SetPoint 0 $x $y $z vtkUnstructuredGrid pointUG pointUG SetPoints point vtkProbeFilter probe probe SetInput pointUG probe SetSource [reader GetOutput] # [[probe GetPointData] GetScalars] GetScalar 0 # the above line does not work: probe has no method GetPointData I also tried a structuredPoints approach vtkStructuredPoints pointSP pointSP SetOrigin $x $y $z pointSP SetDimensions 1 1 1 vtkProbeFilter probe probe SetInput pointSP probe SetSource [reader GetOutput] but still could not find a way query the probe position. I also tried to reslice at single point and failed. I was following the ViewerApp.tcl example at one stage. It gives a point that is not an interpolated poiint and I think only works if the data range is less that 255 (I am not sure about this latter point). In one variation a line similar to the following indicated that the datatype was incorrect. [probe GetOutput] GetScalarComponentAsFloat $x $y $z 0 Would someone please give me a pipeline that works for a basic problem that should be (and I expect is) quite simple. Thanks, David Netherway -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Wed Feb 23 00:06:57 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Tue, 22 Feb 2000 21:06:57 PST Subject: vtk 3.1: using vtkInteractorStyle Message-ID: <20000223050657.2915.qmail@hotmail.com> Dear fellow vkter's Trying to (re)compile code with vtk 3.1 instead of vtk 2.4, I've found out that the methods that generate mouse button, etc. callbacks now have their own (abstract) class, vtkInteractorStyle. The documentation briefly mentions that vtkInteractorStyle should not be instantiated directly, but via a "wrapper" class such as vtkRenderWindowInteractor. While I do the equivalent thing regularly in Java, I don't know the syntax to do this in C++. If someone could provide and example code fragment I'd greatly appreciate it. Thanks Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From a.anner at medres.ch Wed Feb 23 03:28:58 2000 From: a.anner at medres.ch (Anner Adrian) Date: Wed, 23 Feb 2000 09:28:58 +0100 Subject: SNAKES In-Reply-To: <38B332C3.71FF0647@jhu.edu> References: <38B332C3.71FF0647@jhu.edu> Message-ID: <18395.000223@medres.ch> Wednesday, February 23, 2000, 2:07:15 AM, you wrote: > Does anyone know of an implementation of Snake Splines or Active > Contours in The VTK Library. > Thanks > -Avner > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- Hello Avner, I was looking for the same some weeks ago but couldn't find anything. So I implemented my own snake-algorithm. I found different information on the internet over different kinds of snakes. Here are some interesting links which are worth to have al look at: http://iacl.ece.jhu.edu/projects/gvf/ http://www.cs.wisc.edu/computer-vision/projects/gsnake.html http://www.cc.gatech.edu/conferences/iuw/snakes/ http://caslab.bu.edu/course/cs585/P3/nbomberg/p3.html http://iris.usc.edu/Vision-Notes/bibliography/segment360.html#Active There is also a new implementation called Tamed Snakes, but the link is dead at the moment. http://shiva-biwi-main.ee.ethz.ch/~jhug/curriculum.html but if you are interested I could send you a pdf-file. I didn't implement the snake-algorithm in vtk, we are using qt http://www.troll.no/ to build the GUI, so I wrote a class that uses an image format from qt (QPixmap). It was quit a hard work to write this class. -- Best regards, Anner Adrian mailto:a.anner at medres.ch -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From pra at serv2.imm.dtu.dk Wed Feb 23 04:46:10 2000 From: pra at serv2.imm.dtu.dk (Per =?iso-8859-1?Q?R=F8nsholt?= Andresen) Date: Wed, 23 Feb 2000 10:46:10 +0100 Subject: DeepCopy in vtkPolyData and other data classes Message-ID: <38B3AC61.C7B66F42@serv2.imm.dtu.dk> Hi, I would like to copy one (poly-) dataset to another, but I've only found the function 'CopyStructure' in vtkPolyData. How do I make a 'DeepCopy'? (I hope, it's not necessary to write all the "if exists" and copy functions myself) Wouldn't it be nice to have a 'DeepCopy' in all the "data set classes"? Thanks in advance, Per -- ______________________________________________________________ Per Roensholt Andresen http://www.imm.dtu.dk/~pra Assistant Research Professor, Ph.D. Technical University of Denmark -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.biddiscombe at rl.ac.uk Wed Feb 23 05:09:43 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Wed, 23 Feb 2000 10:09:43 -0000 Subject: vtk 3.1: using vtkInteractorStyle References: <20000223050657.2915.qmail@hotmail.com> Message-ID: <002101bf7de6$1b84a090$0100000a@jabhomepc1> Here's a piece of code from a C++Builder component //-------------------------------------------------------------------------- - vtkRenderWindow * __fastcall BCBvtkRenderWindow::GetRenderWindow(void) { if (!FRenderWindow) { // Stuff the renderwindow into our window FRenderWindow = vtkRenderWindow::New(); FRenderWindow->SetParentId(Parent->Handle); FRenderWindow->SetWindowId(Handle); FRenderWindow->SwapBuffersOn(); // Clean and Frame to avoid unsightly garbage during initial // display which may be long when a complex scene is first rendered ((vtkWin32OpenGLRenderWindow*)FRenderWindow)->Clean(); FRenderWindow->Frame(); FInteractor = vtkWin32RenderWindowInteractor::New(); FInteractor->SetRenderWindow(FRenderWindow); FInteractor->SetInstallMessageProc(false); FInteractor->UpdateSize(Width,Height); FInteractor->Initialize(); Invalidate(); } return FRenderWindow; } You can see that we just need to set an interactor and that's it later on I use this code (but note that vtkInteractorStyleFlight isn't part of the main distribution yet, so ignore it) And note that interactorsylte trackball handles trackball and joystick modes! //-------------------------------------------------------------------------- - void __fastcall BCBvtkRenderWindow::SetInteractorMode(BCBvtkInteractorMode im) { if (im==IM_Trackball) { vtkInteractorStyleTrackball *iatb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle() ); if (!iatb) { iatb = vtkInteractorStyleTrackball::New(); FInteractor->SetInteractorStyle(iatb); iatb->Delete(); } iatb->SetTrackballModeToTrackball(); FInteractorMode = IM_Trackball; } else if (im==IM_Joystick) { vtkInteractorStyleTrackball *iatb = vtkIsTypeMacro(vtkInteractorStyleTrackball,FInteractor->GetInteractorStyle() ); if (!iatb) { iatb = vtkInteractorStyleTrackball::New(); FInteractor->SetInteractorStyle(iatb); iatb->Delete(); } iatb->SetTrackballModeToJoystick(); FInteractorMode = IM_Joystick; } else if (im==IM_Flight) { vtkInteractorStyleFlight *iafl = vtkIsTypeMacro(vtkInteractorStyleFlight,FInteractor->GetInteractorStyle()); if (!iafl) { iafl = vtkInteractorStyleFlight::New(); FInteractor->SetInteractorStyle(iafl); iafl->Delete(); } FInteractorMode = IM_Flight; } } -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From jeronim0930 at netsgo.com Wed Feb 23 09:22:24 2000 From: jeronim0930 at netsgo.com (=?euc-kr?B?yKu9wrjw?=) Date: Wed, 23 Feb 2000 23:22:24 +0900 Subject: remove from list Message-ID: <000d01bf7e09$67f55500$9661dbd2@jeronimo> unsubscribe vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.hoffman at kitware.com Wed Feb 23 09:56:22 2000 From: bill.hoffman at kitware.com (Bill Hoffman) Date: Wed, 23 Feb 2000 09:56:22 -0500 Subject: news group Message-ID: <4.2.0.58.20000223094339.01d9f920@pop.nycap.rr.com> Hello, I have had several requests for a vtk newsgroup in addition to the mailing list. I am not sure how to set one up. However, it looks like someone in Leuven Belgium was doing something like a news group, but I think it is broken. The following messages are bouncing: kitware-vtk2news at marvin.kulnet kitware2news at marvin.kulnet.kuleuven.ac.be I have two questions: 1. Can the Lueven news be fixed? 2. Does someone else want to set up a news group that mirrors the list? Note: we do plan to have a digest (it is broken right now, but should be fixed soon...) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From redhat at newton.rex.dmu.ac.uk Wed Feb 23 10:40:47 2000 From: redhat at newton.rex.dmu.ac.uk (R. Mercado) Date: Wed, 23 Feb 2000 15:40:47 +0000 (GMT) Subject: Filtering vtkStructuredPoints Message-ID: Hello vtk users, I would like to filter a cube of structured points based on the scalar values (I would specify a range of values) and set the rest of the volume to zeros. In my application, a scalar tells what the material is at a particular location on the volume and I would like to select a volume with one specific material only - all other materials removed. Something like a band pass filter in one-dimensional signal processing. I found vtkContourFilter, but that would give me as a result vtkPolyData and not the vtkStructuredPoints that I want. I could not figure out a pipeline to solve this. Is there a pre-built filter to allow me to do that? Thanks for your input. R. Mercado -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From goodwin.lawlor at ucd.ie Wed Feb 23 12:13:25 2000 From: goodwin.lawlor at ucd.ie (Goodwin Lawlor) Date: Wed, 23 Feb 2000 17:13:25 +0000 Subject: Filtering vtkStructuredPoints References: Message-ID: <002a01bf7e21$4b725d70$b4172b89@ucd.ie> Straight from ../frog/segmented8.tcl vtkImageThreshold selectTissue selectTissue ThresholdBetween $TISSUE $TISSUE selectTissue SetInValue 255 selectTissue SetOutValue 0 selectTissue SetInput [$lastConnection GetOutput] $TISSUE is the scalar value of the tissue you want to exclusively select. You probably should look at the whole frog example... ../vtk/examplesTcl/frog/ Goodwin ----- Original Message ----- From: R. Mercado To: Sent: Wednesday, February 23, 2000 3:40 PM Subject: Filtering vtkStructuredPoints > Hello vtk users, > > I would like to filter a cube of structured points based on > the scalar values (I would specify a range of values) and set the rest of > the volume to zeros. > > In my application, a scalar tells what the material is at a particular > location on the volume and I would like to select a volume with one > specific material only - all other materials removed. Something like a > band pass filter in one-dimensional signal processing. > > I found vtkContourFilter, but that would give me as a result vtkPolyData > and not the vtkStructuredPoints that I want. > > I could not figure out a pipeline to solve this. Is there a pre-built > filter to allow me to do that? > > Thanks for your input. > > R. Mercado > > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Wed Feb 23 12:36:34 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Wed, 23 Feb 2000 09:36:34 PST Subject: vtk 3.1: still puzzling over vtkInteractorStyle Message-ID: <20000223173634.13816.qmail@hotmail.com> Dear fellow vtker's Still having trouble updating to vtk 3.1: vtkInteractorStyle vtkInteractorStyle myInteractorStyle = vtkInteractorStyle::New(); gives the following error message advImage.cpp:2415: no method `vtkInteractorStyle::New' advImage.cpp:2416: invalid use of undefined type `class vtkInteractorStyle' /export/home0/stuff/vtk/vtk/common/../graphics/vtkRenderWindowInteractor.h:64: forward declaration of `class vtkInteractorStyle Any insight into why everything except vtkInteractorStyle is compiling & loading would be appreciated. Solaris 2.6 g++ 2.95.2 with -fpermissive flag set Btw, does the vtk mailing list archive at the NCSA still exist? If so, what's its address? Has it moved? Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Wed Feb 23 13:39:08 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Wed, 23 Feb 2000 13:39:08 -0500 (EST) Subject: 32-bit textures Message-ID: Hi All, I've added some new methods to vtkTexture, but would like to check them by everyone before committing them: vtkTexture::SetQualityToDefault() vtkTexture::SetQualityTo16Bit() vtkTexture::SetQualityTo32Bit() These methods are needed on some systems to force VTK to use 32-bit texture maps. It can also be very useful to force VTK to use 16-bit texture maps to save memory e.g. when using textures for volume rendering. I'm also considering a SetQualityToIndex() method, which would allow VTK to transfer the texture to OpenGL as set of colormap indices [0,255] as well as the texture's lookup table. This would only be worthwhile on OpenGL implementations that can do color mapping in hardware, though -- is this a common feature of OpenGL video cards? - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dmsst59+ at pitt.edu Wed Feb 23 14:15:17 2000 From: dmsst59+ at pitt.edu (Damion Shelton) Date: Wed, 23 Feb 2000 14:15:17 -0500 Subject: vtk 3.1: still puzzling over vtkInteractorStyle - headers missing? In-Reply-To: <20000223173634.13816.qmail@hotmail.com> Message-ID: <2127544904.951315317@jaba5power.ortho.pitt.edu> I had a problem similar to this - I'm using vtkInteractorStyle in a VC++ 6.0 app by linking against the most recently distributed dll (in other words I'm not recompiling the whole thing). Rather than include specific classes, I included the vtk.h header under the assumption that this would take care of including the interactor headers also.... but, it didn't. Checking vtkGraphics.h revealed that vtkInteractorStyle.h and vtkInteractorStyleTrackball.h weren't present. After I added them, I had no problems compiling my program. I didn't think anything of it at the time, but now I'm wondering if this is a bug and not merely my ignorance. Perhaps this has been fixed in the nightlies....? I'm using the beta 3.1 build rather than the nightlies. As for the previous topic of how to use the vtkInteractorStyle class, here's how I use it. This is a much less advanced way of tackling the problem than the other reply posted today - I make the naive assumption that the style of the interactor is of type vtkInteractorStyleTrackball and cast the returned to value to conform to this assumption. In the context of my code it will never be anything else so I can get away with this.... but it's probably not the greatest programming technique. For determining current mode.... (note some of this syntax is MFC specific) void CRtkView::OnUpdateViewRotationJoystick(CCmdUI* pCmdUI) { vtkInteractorStyleTrackball* style; style = (vtkInteractorStyleTrackball*) this->Interactor->GetInteractorStyle(); pCmdUI->SetCheck(style->GetTrackballMode()==0); } For setting current mode.... void CRtkView::OnViewRotationJoystick() { // Change to joystick style rotation vtkInteractorStyleTrackball* style; style = (vtkInteractorStyleTrackball*) this->Interactor->GetInteractorStyle(); style->SetTrackballModeToJoystick(); } Hope this helps. -Damion- Damion Shelton University of Pittsburgh Musculoskeletal Research Center > Still having trouble updating to vtk 3.1: vtkInteractorStyle > > vtkInteractorStyle myInteractorStyle = vtkInteractorStyle::New(); > > gives the following error message > > advImage.cpp:2415: no method `vtkInteractorStyle::New' > advImage.cpp:2416: invalid use of undefined type `class > vtkInteractorStyle' > /export/home0/stuff/vtk/vtk/common/../graphics/vtkRenderWindowInteractor. > h:64: forward declaration of `class vtkInteractorStyle -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From human123 at bme.hanyang.ac.kr Wed Feb 23 20:36:38 2000 From: human123 at bme.hanyang.ac.kr (=?ks_c_5601-1987?B?wOW1v8el?=) Date: Thu, 24 Feb 2000 10:36:38 +0900 Subject: remove from list Message-ID: <004e01bf7e67$984a4a40$815168a6@hanyang.ac.kr> unsubscribe -------------- next part -------------- An HTML attachment was scrubbed... URL: From pnin22 at yahoo.com Wed Feb 23 22:18:41 2000 From: pnin22 at yahoo.com (Igor Fridman) Date: Wed, 23 Feb 2000 19:18:41 -0800 (PST) Subject: Reading multiple parts from file Message-ID: <20000224031841.14584.rocketmail@web222.mail.yahoo.com> Hello, I am trying to find an efficient way of extracting PolyDatas from a file which has multiple parts in it. In doing so, I discovered the following problem: First I tried creating 1 reader object which reads the whole file. I set the part number to 1 and extract the PolyData (via GetOutput). Then I set the part number to 2 and extract the PolyData. It turns out, however, this gives me thesame dataset as for part 1, and I must Update the reader after setting a new part number. This, however, causes the reader to read the file again. This is quite cumbersome when the file exceeds 10 parts and 5MB, as I it must read the whole file 10 times! I tried creating as many readers as there are parts but still each reader reads and stores the whole file, not just the part that I need. Any suggestions? Thanks in advance! (sorry if this is a repeat, not sure if original message got through) ===== ================================================== Igor Fridman Naval Research Laboratory Vacuum Electronics Branch Code 6841 4555 Overlook Ave. S.W., Washington, DC 20375, USA ================================================== __________________________________________________ Do You Yahoo!? Talk to your friends online with Yahoo! Messenger. http://im.yahoo.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From csyang at ict.ac.cn Wed Feb 23 23:05:07 2000 From: csyang at ict.ac.cn (csyang) Date: Thu, 24 Feb 2000 12:05:07 +0800 Subject: How to bulid VTK program in JDK1.2? Message-ID: <004701bf7e7c$5a9630a0$572ae29f@ict.ac.cn> Hi,all: I have installed jdk1.2 in d:\jdk1.2 and installed vtk24java in d:\vtk24java.Now,I want rebuild test.class use javac,but there are following errors.How can I do,thanks! error: File d:\vtk24win32src\java\vtk\vtkRenderWindow.class does not contain typ e vtkRenderWindow as expected, but type vtk.vtkRenderWindow. Please remove the f ile, or make sure it appears in the correct subdirectory of the class path. Regression.java:6: Class vtkRenderWindow not found. vtkRenderWindow renWin = new vtkRenderWindow(); ^ Regression.java:6: Class vtkRenderWindow not found. vtkRenderWindow renWin = new vtkRenderWindow(); ^ error: File d:\vtk24win32src\java\vtk\vtkRenderer.class does not contain type vt kRenderer as expected, but type vtk.vtkRenderer. Please remove the file, or make sure it appears in the correct subdirectory of the class path. Regression.java:7: Class vtkRenderer not found. vtkRenderer ren1 = new vtkRenderer(); ^ Regression.java:7: Class vtkRenderer not found. vtkRenderer ren1 = new vtkRenderer(); ^ -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcg at ksp.or.jp Thu Feb 24 18:16:53 2000 From: jcg at ksp.or.jp (Chunguang Jia) Date: Thu, 24 Feb 2000 17:16:53 -0600 Subject: License to sue some patent classes in commercial product Message-ID: <00d401bf7f1d$40dbd0b0$1018a8c0@BFL> Hi, all, I want to use some patented classes, such as the vtkMarchingCubes and the vtkDecimate in a commercial project. It is said that I should get a license from GE. Medical. Is there any one with such experience? Shall I pay some money to GE to get such a licence. Thanks, Chunguang Jia -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.deboer at ti.uni-mannheim.de Thu Feb 24 05:27:33 2000 From: m.deboer at ti.uni-mannheim.de (Martijn de Boer) Date: Thu, 24 Feb 2000 11:27:33 +0100 Subject: How to bulid VTK program in JDK1.2? References: <004701bf7e7c$5a9630a0$572ae29f@ict.ac.cn> Message-ID: <38B50795.F7E2EFC8@ti.uni-mannheim.de> Hi, this is probobly a problem with packages being in wrong directories. What is the command you issued for compiling? I you have a class Test which belongs to the package mypackage and have all .java files belonging to different packages in one directory, you need to issue the -d option in javac, i.e. javac -d . *.java. This will then create a dir mypackage and put the Test.class file into this directory. > csyang wrote: > > Hi,all: > I have installed jdk1.2 in d:\jdk1.2 and installed vtk24java in > d:\vtk24java.Now,I want rebuild test.class use javac,but there are > following errors.How can I do,thanks! > > error: File d:\vtk24win32src\java\vtk\vtkRenderWindow.class does not > contain typ > e vtkRenderWindow as expected, but type vtk.vtkRenderWindow. Please > remove the f > ile, or make sure it appears in the correct subdirectory of the class > path. > Regression.java:6: Class vtkRenderWindow not found. > vtkRenderWindow renWin = new vtkRenderWindow(); > ^ > Regression.java:6: Class vtkRenderWindow not found. > vtkRenderWindow renWin = new vtkRenderWindow(); > ^ > error: File d:\vtk24win32src\java\vtk\vtkRenderer.class does not > contain type vt > kRenderer as expected, but type vtk.vtkRenderer. Please remove the > file, or make > sure it appears in the correct subdirectory of the class path. > Regression.java:7: Class vtkRenderer not found. > vtkRenderer ren1 = new vtkRenderer(); > ^ > Regression.java:7: Class vtkRenderer not found. > vtkRenderer ren1 = new vtkRenderer(); > ^ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From cates at rolle.engr.utk.edu Thu Feb 24 10:12:20 2000 From: cates at rolle.engr.utk.edu (Josh Cates) Date: Thu, 24 Feb 2000 10:12:20 -0500 (EST) Subject: VTK via Tcl/Tk problems Message-ID: Hello list, I have not been able to get my IRIX VTK --with-tcl --with-tk installation to work with my Tcl 8.2 and Tk 8.2 installations. When I invoke the ``vtk'' interpreter for Tcl scripts, rld tells me: %vtk foo.tcl vtk: rld: Error: unresolvable symbol in /usr/local/lib/libVTKGraphicsTcl.so: tkMainWindowList vtk: rld: Fatal Error: this executable has unresolvable symbols ...as if I am missing a tk library. It is not a LD_LIBRARY_PATH problem, and non-vtk Tcl/Tk scripts run on my system without any problems. Has anyone had a similar experience, or any ideas as to what I might be doing wrong? The Tcl/Tk libraries I have installed are libtk8.2.so and libtcl8.2.so. Thanks in advance for any advice you can give, Josh Cates. +--+--+--+--+--+--+--+--+--+--+--+-- Josh Cates Dept. of Electrical Engineering University of Tennessee, Knoxville Email: cates at rolle.engr.utk.edu Phone: (423) 974-6334 --+--+--+--+--+--+--+--+--+--+--+--+ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lefer at lil.univ-littoral.fr Thu Feb 24 10:27:13 2000 From: lefer at lil.univ-littoral.fr (Wilfrid Lefer) Date: Thu, 24 Feb 2000 16:27:13 +0100 Subject: Using OpenGL texture matrix in VTK? Message-ID: <38B54DD1.E0FE2A0D@lil.univ-littoral.fr> Hello, OpenGL offers the possibility to define a texture matrix, which is defined as teh identity matrix by default, the matrix being applied to all textures coordinates before rendering occurs. As far as I know, this operation is performed in hardware when a 3D graphics card is available and supports OpenGL. I would like to know whether I could make use of this feature with VTK. Does anybody have a response to my question (possible and why or not possible in VTK)? Thanks in advance for your help. Wilfrid. -- ____________________________________________________________________ | | | | Wilfrid LEFER | phone: (+33) 3.21.97.00.46 | | LIL, B.P. 719 | fax: (+33) 3.21.19.06.61 | | 62 228 CALAIS Cedex | e-mail: lefer at lil.univ-littoral.fr | | FRANCE | http://www-lil.univ-littoral.fr/~lefer | |__________________________|_________________________________________| -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Thu Feb 24 10:37:22 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Thu, 24 Feb 2000 15:37:22 +0000 Subject: vtkCellLocator In-Reply-To: <38B2A48C.B5F3F759@fh-aargau.ch> Message-ID: <3.0.5.32.20000224153722.00ced850@exchange03.rl.ac.uk> Ahmet, >I work with vtkCellLocator. My Programm worked well under vtk 2.4 in >linux but I have problems under vtk 3.0 beta version december 1999. ... >In vtk 2.4 if there doesn't exist a cell then the result was zero. But >in vtk 3.0 the result is always zero. ... >How can I find out in vtk 3.0 if there exist a cell between two points ? I've noticed this too. If you're desperate I can send you the latest version of vtkModifiedBSPTree which works, but you may not be able to use it as flexibly as CellLocator. If you can find a bug in vtkCellLocator..... I'll test CellLocator again because it was a few months ago that I noticed something odd and just gave up. John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ddey at irus.rri.on.ca Thu Feb 24 13:14:26 2000 From: ddey at irus.rri.on.ca (Damini Dey) Date: Thu, 24 Feb 2000 13:14:26 -0500 Subject: vtkCellLocator References: <3.0.5.32.20000224153722.00ced850@exchange03.rl.ac.uk> Message-ID: <38B57502.5F63DE09@irus.rri.on.ca> I also had this problem a few months ago with vtk 3.0. With vtk 3.1 Beta, though, vtkCellLocator::IntersectWithLine finds intersections correctly for my dataset. If you find the bug I would also like to know ... Damini. > Ahmet, > > >I work with vtkCellLocator. My Programm worked well under vtk 2.4 in > >linux but I have problems under vtk 3.0 beta version december 1999. > ... > >In vtk 2.4 if there doesn't exist a cell then the result was zero. But > >in vtk 3.0 the result is always zero. > ... > >How can I find out in vtk 3.0 if there exist a cell between two points ? > > I've noticed this too. If you're desperate I can send you the latest > version of vtkModifiedBSPTree which works, but you may not be able to use > it as flexibly as CellLocator. > > If you can find a bug in vtkCellLocator..... > > I'll test CellLocator again because it was a few months ago that I noticed > something odd and just gave up. > > John B > > -------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. > -------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From eduardo at cs.uno.edu Thu Feb 24 19:52:30 2000 From: eduardo at cs.uno.edu (Eduardo Kortright) Date: Thu, 24 Feb 2000 18:52:30 -0600 Subject: Accessing cells from Tcl Message-ID: <38B5D24E.4E6C8E82@cs.uno.edu> Hello, Please excuse me if you receive a duplicate of this message. I have not seen my post on the list, so I am assuming it did not make it. Does anyone know how (if it can be done) to access the individual cells in a vtkCellArray from Tcl? I am reading polyvertices from a file, which are being read into a cell array; I need to triangulate each polyvertex, but can't figure out how to get at any of them in order to call the vtkCell method Triangulate. Any help/pointers will be greatly appreciated. -- Eduardo Kortright Department of Computer Science eduardo at cs.uno.edu University of New Orleans Voice: (504) 280-6626 Lakefront Campus FAX: (504) 280-7228 New Orleans, LA 70148 -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Thu Feb 24 20:50:39 2000 From: lisa.avila at kitware.com (Lisa S. Avila) Date: Thu, 24 Feb 2000 20:50:39 -0500 Subject: VTK via Tcl/Tk problems In-Reply-To: Message-ID: <20000225014428.AAA19660@mail4.nycap.rr.com@avila> Hi Josh, What version of VTK are you building? VTK 2.4 and before do not work with Tcl/Tk 8.2. If you move up to VTK 3.1 it should work for you, or move back to Tcl/Tk 8.0. Lisa At 10:12 AM 2/24/00 -0500, Josh Cates wrote: >Hello list, > >I have not been able to get my IRIX VTK --with-tcl --with-tk installation >to work with my Tcl 8.2 and Tk 8.2 installations. When I invoke the >``vtk'' interpreter for Tcl scripts, rld tells me: > > %vtk foo.tcl > > vtk: rld: Error: unresolvable symbol in > /usr/local/lib/libVTKGraphicsTcl.so: tkMainWindowList > > vtk: rld: Fatal Error: this executable has unresolvable symbols > >...as if I am missing a tk library. It is not a LD_LIBRARY_PATH problem, >and non-vtk Tcl/Tk scripts run on my system without any problems. > >Has anyone had a similar experience, or any ideas as to what I might be >doing wrong? The Tcl/Tk libraries I have installed are libtk8.2.so and >libtcl8.2.so. > >Thanks in advance for any advice you can give, > >Josh Cates. > > >+--+--+--+--+--+--+--+--+--+--+--+-- > Josh Cates > Dept. of Electrical Engineering > University of Tennessee, Knoxville > Email: cates at rolle.engr.utk.edu > Phone: (423) 974-6334 >--+--+--+--+--+--+--+--+--+--+--+--+ > > >-------------------------------------------------------------------- >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to >. For help, send message body containing >"info vtkusers" to the same address. >-------------------------------------------------------------------- > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From csyang at ict.ac.cn Thu Feb 24 22:05:18 2000 From: csyang at ict.ac.cn (csyang) Date: Fri, 25 Feb 2000 11:05:18 +0800 Subject: How to rebuild vtkjava.dll,if I want to modify the source of VTK? Message-ID: <009701bf7f3d$26305ea0$572ae29f@ict.ac.cn> -------------- next part -------------- An HTML attachment was scrubbed... URL: From thomas at mcube.fr Fri Feb 25 09:27:10 2000 From: thomas at mcube.fr (Thomas Demachy) Date: Fri, 25 Feb 2000 15:27:10 +0100 Subject: Contours References: Message-ID: <006701bf7f9c$991fff60$0501a8c0@mcube.fr> Hello, Try using vtkGeometryFilter. A good example is blow.tcl Thomas ----- Original Message ----- From: Alex Jesus Cuadros Vargas To: Sent: Friday, February 25, 2000 12:58 PM Subject: Contours Hello, I have a volume in a UnstructuredGrid formed by only tetrahedrons... somebody knows like obtaining the polygonos of contour? thanks Alex -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Ron.Jerome at nrc.ca Fri Feb 25 10:06:54 2000 From: Ron.Jerome at nrc.ca (Jerome, Ron) Date: Fri, 25 Feb 2000 10:06:54 -0500 Subject: Distributed collaborative visualization anyone? Message-ID: <83B0B0B52B02D311AA340004ACE8E1670E9624@nrcmrdex1.imsb.nrc.ca> Is anyone working on distributed collaborative visualization using VTK? If so I (maybe others) would like to here from you. Ron Jerome National Research Council Canada Rm. 241, Bldg. M-12 1500 Montreal Road Ottawa, ON K1A 0R6 1-613-993-5346 ron.jerome at nrc.ca -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From adv_biologic at hotmail.com Fri Feb 25 11:31:27 2000 From: adv_biologic at hotmail.com (Audrius Stundzia) Date: Fri, 25 Feb 2000 08:31:27 PST Subject: vtk 3.1: vtkInteractorStyleUser callbacks Message-ID: <20000225163127.35131.qmail@hotmail.com> Dear vtker's Thanks to everyone who replied regarding my question on vtkInteractorStyle. (Btw, what is vtkTypeMacro and why whould/should I want to use it?) I'm now trying to use the subclass vtkInteractorStyleUser to set up several callbacks. However, the callbacks aren't calling back. Here's a code fragment: myCellPicker= vtkCellPicker::New(); // Used in GetScalarCallback myCellPicker->SetTolerance( 0.001); myInteractor = vtkXRenderWindowInteractor::New(); myInteractor->SetPicker( myCellPicker); myInteractorStyleUser = vtkInteractorStyleUser::New(); myInteractorStyleUser->SetInteractor( myInteractor) ; myInteractorStyleUser->SetLeftButtonPressMethod ( GetScalarCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetLeftButtonReleaseMethod ( NullCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetMiddleButtonPressMethod ( NullCallback , (void *) myInteractorStyleUser ); myInteractorStyleUser->SetMiddleButtonReleaseMethod ( NullCallback , (void *) myInteractorStyleUser ); GetScalarCallback returns the scalar value at a clicked point. NullCallback does nothing. These were tested and were working with vtk 2.4 I initially myInteractor in the method arguements. This was ignored to I tried myInteractorStyleUser. This too is being ignored. Any insight/help would be most appreciated. Thanks. Regards, Audrius ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From j.biddiscombe at rl.ac.uk Fri Feb 25 13:20:47 2000 From: j.biddiscombe at rl.ac.uk (John Biddiscombe) Date: Fri, 25 Feb 2000 18:20:47 -0000 Subject: vtk 3.1: vtkInteractorStyleUser callbacks References: <20000225163127.35131.qmail@hotmail.com> Message-ID: <000e01bf7fbd$0a1ca860$0100000a@jabhomepc1> > (Btw, what is vtkTypeMacro and why whould/should I want to use it?) If you get a pointer and you're not sure if its polydata, structuredpoints or whatever, you can if (object->IsA(vtkPolyData.....) look in vtkset.get.h for defs (right at the end). And the vtkIsTypeMacro you asked me about is just an older version I haven't removed from my code yet John B -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Fri Feb 25 14:06:55 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Fri, 25 Feb 2000 14:06:55 -0500 Subject: Testing help in the middle Message-ID: <4.2.0.58.20000225140625.00afe2d0@pop.nycap.rr.com> Testing if this message is filtered out.... Lisa -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acosine at taiwan.com Fri Feb 25 14:25:58 2000 From: acosine at taiwan.com (Cosine Cheng) Date: Sat, 26 Feb 2000 03:25:58 +0800 Subject: How to Showing 3 things in a VTK window Message-ID: <20000225192558.13474.qmail@taiwan.com> Hi: I wrote a VTK script that can change the color of a cube in the window. Then I start to think that how to put several things in ONE window but still have the control to each object. Say, I put a cube, a sphere, and a rectangular in one window. Then I can change the color INDIVIDUALLY for the cube, the sphere, and the rectangular to Red, Green, or Blue color. How can I do that? Below is my VTK script. # ui2.tcl catch {load vtktcl} source E:/WIN32APP/vtk24/examples/vtkInt.tcl vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkCubeSource cube vtkPolyDataMapper cubeMapper cubeMapper SetInput [cube GetOutput] vtkActor cubeActor cubeActor SetMapper cubeMapper [cubeActor GetProperty] SetColor 1 0 0 # these three functions are called by the buttons proc setR {} { [cubeActor GetProperty] SetColor 1 0 0 renWin Render } proc setG {} { [cubeActor GetProperty] SetColor 0 1 0 renWin Render } proc setB {} { [cubeActor GetProperty] SetColor 0 0 1 renWin Render } frame .f button .f.bR -text "red" -command setR button .f.bG -text "green" -command setG button .f.bB -text "blue" -command setB pack .f .f.bR .f.bG .f.bB ren AddActor cubeActor renWin Render _______________________________________________ Get your free email from http://freemail.taiwan.com powered by OutBlaze -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acosine at taiwan.com Fri Feb 25 14:39:03 2000 From: acosine at taiwan.com (Cosine Cheng) Date: Sat, 26 Feb 2000 03:39:03 +0800 Subject: How to show multiple things in a one window Message-ID: <20000225193903.13611.qmail@taiwan.com> Hi: I wrote a VTK script that can change the color of a cube in the window. Then I start to think that how to put several things in ONE window but still have the control to each object. Say, I put a cube, a sphere, and a rectangular in one window. Then I can change the color INDIVIDUALLY for the cube, the sphere, and the rectangular to Red, Green, or Blue color. How can I do that? Below is my VTK script. # ui2.tcl catch {load vtktcl} source E:/WIN32APP/vtk24/examples/vtkInt.tcl vtkRenderer ren vtkRenderWindow renWin renWin AddRenderer ren vtkRenderWindowInteractor iren iren SetRenderWindow renWin vtkCubeSource cube vtkPolyDataMapper cubeMapper cubeMapper SetInput [cube GetOutput] vtkActor cubeActor cubeActor SetMapper cubeMapper [cubeActor GetProperty] SetColor 1 0 0 # these three functions are called by the buttons proc setR {} { [cubeActor GetProperty] SetColor 1 0 0 renWin Render } proc setG {} { [cubeActor GetProperty] SetColor 0 1 0 renWin Render } proc setB {} { [cubeActor GetProperty] SetColor 0 0 1 renWin Render } frame .f button .f.bR -text "red" -command setR button .f.bG -text "green" -command setG button .f.bB -text "blue" -command setB pack .f .f.bR .f.bG .f.bB ren AddActor cubeActor renWin Render _______________________________________________ Get your free email from http://freemail.taiwan.com powered by OutBlaze -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From hsureinl at cse.msu.edu Fri Feb 25 19:34:01 2000 From: hsureinl at cse.msu.edu (Rein-Lien Hsu) Date: Fri, 25 Feb 2000 19:34:01 -0500 (EST) Subject: Vtk Compilation Errors Message-ID: Dear Sirs: While I bulit vtk (version 3.1), I got the problems. Error messages are appended to this email. I look forward to your suggestions. Thanks a lot. I guess the problem is about Xwindows. I did not use Mesa. So I comment out these lines in the file "user.make". #MESA_INCLUDE=-I/home/martink/storage/Mesa-1.2.6/include #MESA_LIB=/home/martink/storage/Mesa-1.2.6/lib-sun4-solaris/libMesaGL.a Is there any way I can check if our system support OpenGL, GL, Starbase or XGL? I am working on the UNIX (Solaris 7), and use the compiler g++. Best, Vincent Hsu =========BEGIN gmake[1]: Entering directory `/user/priptmp/vincent/vtk31/graphics' /opt/bin/g++ -isystem /usr/openwin/include -fPIC -DVTK_WORDS_BIGENDIAN -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I. -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I/usr/openwin/include -I./../common -I/soft/sparc/tcl/include -I/soft/sparc/tcl/include -I/home/schroede/montnaro/Python-1.4/Include -c vtkGraphicsFactory.cxx -o vtkGraphicsFactory.o vtkGraphicsFactory.cxx: In function `static class vtkObject * vtkGraphicsFactory::CreateInstance(const char *)': vtkGraphicsFactory.cxx:181: `vtkXRenderWindowInteractor' undeclared (first use this function) vtkGraphicsFactory.cxx:181: (Each undeclared identifier is reported only once vtkGraphicsFactory.cxx:181: for each function it appears in.) vtkGraphicsFactory.cxx:181: parse error before `::' gmake[1]: *** [vtkGraphicsFactory.o] Error 1 gmake[1]: Leaving directory `/user/priptmp/vincent/vtk31/graphics' gmake: *** [build_graphics] Error 2 ===========End -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From toman at marge.cyber-dyne.com Sat Feb 26 04:06:43 2000 From: toman at marge.cyber-dyne.com (Joseph Toman) Date: Sat, 26 Feb 2000 01:06:43 -0800 (PST) Subject: vtk newbie questions Message-ID: <200002260906.BAA25017@marge.cyber-dyne.com> Hi, 1) I'm trying to build vtk 3.1 on a Debian Linux system, using shared libraries and building the tcl interface. Every time I try to link vtk in the tcl directory I get : make[1]: Entering directory `/usr/local/vtk31/tcl' c++ -o vtk tkAppInit.o \ -L. -g -O2 -fPIC -DVTK_USE_PTHREADS -D_HP_NO_FAST_MACROS -DHAVE_LIMITS_H -DHAVE_UNISTD_H -I. -I./../common -I/usr/include/tk8.0-int/generic -I/usr/include/tcl8.0-int/generic -DVTK_USE_TKWIDGET -I/usr/include/GL -DVTK_USE_MESA -I/usr/X11R6/include -I./../graphics -DVTK_USE_GRAPHICS -I./../imaging -DVTK_USE_IMAGING -I./../contrib -DVTK_USE_CONTRIB -rdynamic -L/usr/local/vtk31/contrib -lVTKContribTcl -lVTKContrib -L/usr/local/vtk31/imaging -lVTKImagingTcl -lVTKImaging -L/usr/local/vtk31/graphics -lVTKGraphicsTcl -lVTKGraphics -L../common -lVTKCommonTcl -lVTKCommon -L/usr/X11R6/lib /usr/lib/libMesaGL.a /usr/lib/libtk8.0.a /usr/lib/libtcl8.0.a -ldl -lpthread \ -L/usr/X11R6/lib -lXext -lXt -lSM -lICE -lX11 -lm /usr/bin/../lib/libdl.a(dlsym.o): In function `doit.2': dlsym.o(.text+0x22): undefined reference to `_dl_default_scope' dlsym.o(.text+0x4c): undefined reference to `_dl_default_scope' collect2: ld returned 1 exit status so apparently dl_default_scope is not being found. Near as I can tell it's in libc , but explicity adding that in to the makefile doesn't help. Ideas? 2) I also need to use vtk with Borland C++ 5.01 and OWL. Has anyone derived a vtkWin32OWLRenderWindow or the equivalent ? It would save me a lot of work if I didn't have to reinvent the wheel. 3) Looking at the various VTK links I notice a dearth of C++ example code, outside of a couple "everything in main()" programs. I think this might be because IMHO the reference counting implementation leaves a lot to be desired and breaks a lot of the standard paradigms in C++. Let's face it, asking people not to use new and delete is a lot like asking people not to use int or char ;). The lack of copy constructors, or rather the inconsistency of whether MakeObject is a virtual copy constructor or a virtual default constructor doesn't help either. Anyhow, I would like to see how other C++ programmers get around these difficulties, so pointers to example code would be greatly appreciated. thanks in advance, J. Toman -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From m.deboer at ti.uni-mannheim.de Sat Feb 26 05:49:21 2000 From: m.deboer at ti.uni-mannheim.de (Martijn de Boer) Date: Sat, 26 Feb 2000 11:49:21 +0100 Subject: Hi All! References: Message-ID: <38B7AFB1.ED8A4E99@ti.uni-mannheim.de> Dear Maneesh, I put the libraries with a link into my site-packages dir. On my machine this looks like: martijn:~ > ls -l /usr/local/lib/python1.5/site-packages/ lrwxrwxrwx 1 root root 36 Feb 25 11:48 libVTKCommonPython.so -> /usr/local/lib/libVTKCommonPython.so lrwxrwxrwx 1 root root 38 Feb 25 11:48 libVTKGraphicsPython.so -> /usr/local/lib/libVTKGraphicsPython.so lrwxrwxrwx 1 root root 37 Feb 25 11:48 libVTKImagingPython.so -> /usr/local/lib/libVTKImagingPython.so lrwxrwxrwx 1 root root 38 Feb 25 11:48 libVTKPatentedPython.so -> /usr/local/lib/libVTKPatentedPython.so -rw-r--r-- 1 root root 27 Feb 25 11:48 vtkpython.pth the file vtkpython.pth contains the path to the python files for vtk: more /usr/local/lib/python1.5/site-packages/vtkpython.pth /usr/local/lib/vtk/python This configuration works fine, however be sure to have TKinter compiled with your python distribution, otherwhise many examples won't work! Martijn Maneesh Yadav wrote: > > Hi everybody, sorry to be so rude to bug with questions the moment I join > the list...but I really want to get started with VTK :), so I am having a > little trouble knowing where to put things to get stuff to work with > python.. > > > > I'm still a little shakey as to how python finds packages and modules (I > know the things that sit in site-packages get found automagically, but if > my python path is empty does it only look in what is inn > /usr/lib/python1.5?) but I am having a little trouble as to where to place > my symbolic links for the vtk libs. Should I just place all .so and .py > files in /usr/lib/python1.5 > (that's the base of my python installation)? Or should I make a package > with an __init__.py file? Sorry for the petty question but I just want to > make sure I do it right (it'll be a pain to clean up all those links if I > put it in usr/lib or something)... > > Thanks for the help, > Maneesh > > ----------------------------------------------------------------------------- > This is the private VTK discussion list. Please keep messages on-topic. > Check the FAQ at: > To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > . For help, send message body containing > "info vtkusers" to the same address. Live long and prosper. > ----------------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From tarifa at rpi.edu Sat Feb 26 17:01:42 2000 From: tarifa at rpi.edu (Asa'd Abu-Tarif) Date: Sat, 26 Feb 2000 17:01:42 -0500 Subject: Structured points from poly data set. References: <200002260906.BAA25017@marge.cyber-dyne.com> Message-ID: <001501bf80a5$10dc5ea0$992a1d18@nycap.rr.com> Hi, Is it possible to get a structured points data set from a poly data set? I have an algorithm to register a 3D volume (voxels) against a high level model (surfaces). I tried it for a cube but I generated the sampled cube manually (currently I'm working on synthetic data). Now, I want to be able to automatically get vtkStructuredPoints from a poly data set (say a cone or anything that I create from loading a cad model). So what I need is something sort of the reverse of (vtkStructuredPointsToPolyData). Is there a fileter that can do this for me? ps. I'm currently using vtk 2.4 with VC++ version 6.0. Thanks, Asad ================================== Asad A. Abu-Tarif Research Assistant, NY Center For Automation Technologies, RPI. Ph.D Student in Computer Engineering, Rensselaer Polytechnic Institute. 2104 Massachuasettes Ave, Apt 2C Troy, NY 12180 Tel: (518) 270-1796 Fax: (313) 557-6100 tarifa at rpi.edu ========================== -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Sat Feb 26 17:12:31 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Sat, 26 Feb 2000 17:12:31 -0500 (EST) Subject: vtk 3.1 Win32 problems Message-ID: Hi Ken, Will: I downloaded the vtk3.1 installers for Win32 and have found a few serious problems with them. They were dated 2/21/00 3:34pm. The most serious problem is that the python examples do not work, it looks like vtkpython.dll was build using an older version of the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll has a timestamp of 2/7/2034 -- something is definitely wrong here! Several of the Tcl examples have front/back clipping plane problems. These include: Decimate.tcl CSpline.tcl KSpline.tcl TPlane.tcl And the following tcl examples die with the complaint that vtkVolumeMapper doesn't have a SetScalarInput method: vol.tcl volSimple.tcl - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From krs at zappa.uncc.edu Mon Feb 28 00:21:28 2000 From: krs at zappa.uncc.edu (K.R.Subramanian) Date: Mon, 28 Feb 2000 00:21:28 -0500 Subject: imaging pipeline qn.. Message-ID: <38BA05D8.64DEA804@mail.cs.uncc.edu> I am using the imaging pipeline to perform some image processing, but I dont use the viewer. I am having difficulty in forcing the output of the imaging filters.. for instance I have a simple sequence as vtkImageData-->vtkImageClip--> (clipped scalars) I am trying to get the imaging data (scalars) from the above pipeline. I called Update() on the vtkImageClip() and try to get at the scalars by using the GetPointData() method, but the scalars are not there. I know vtkImageClip only sets the clipping extent, but how do I force it to execute so that I can retrieve the clipped image? I was able to do that (still not quite right) by sending this to vtkImageToStructuredPoints, but I do not think this would be necessary. Thanks. -- krs -- K.R.Subramanian Phone: (704) 547-4872 Department of Computer Science FAX: (704) 547-3516 UNC Charlotte, 228A Kennedy 9201 Univ. City Blvd. Email: krs at cs.uncc.edu Charlotte, NC 28223-0001 WWW: http://www.cs.uncc.edu/~krs -------------- next part -------------- An HTML attachment was scrubbed... URL: From lefer at lil.univ-littoral.fr Mon Feb 28 04:38:59 2000 From: lefer at lil.univ-littoral.fr (Wilfrid Lefer) Date: Mon, 28 Feb 2000 10:38:59 +0100 Subject: Distributed collaborative visualization anyone? References: <83B0B0B52B02D311AA340004ACE8E1670E9624@nrcmrdex1.imsb.nrc.ca> Message-ID: <38BA4233.49FE981E@lil.univ-littoral.fr> Dear Ron, we are working on Web-based distributed visualization, although collaboration is not really the goal but of course all the tools that could come from our research could probably be useful for supporting collaborative work. VTK is used as the rendering engine in our applications. You can find information on our work by browsing our Web pages at www-lil.univ-littoral.fr/~lefer/VISC/visc.english.html More generally a working group on distributed visualization was built up during the '98 workshop on DVS in Research Triangle Park, NC. Information about this WG can be found at www-lil.univ-littoral.fr/~lefer/Web3Dgv Please tell me about your project. Best regards. Wilfrid. -- ____________________________________________________________________ | | | | Wilfrid LEFER | phone: (+33) 3.21.97.00.46 | | LIL, B.P. 719 | fax: (+33) 3.21.19.06.61 | | 62 228 CALAIS Cedex | e-mail: lefer at lil.univ-littoral.fr | | FRANCE | http://www-lil.univ-littoral.fr/~lefer | |__________________________|_________________________________________| -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From lisa.avila at kitware.com Mon Feb 28 08:17:36 2000 From: lisa.avila at kitware.com (Lisa Sobierajski Avila) Date: Mon, 28 Feb 2000 08:17:36 -0500 Subject: vtk 3.1 Win32 problems In-Reply-To: Message-ID: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Hi David, Are you sure the examples that you are running came from the VTK 3.1 distribution? volSimple.tcl and vol.tcl no longer have SetScalarInput (it changed to SetInput a couple of revisions ago....). That makes me suspicious of the other problems as well. Lisa At 05:12 PM 2/26/00 -0500, David Gobbi wrote: >Hi Ken, Will: > >I downloaded the vtk3.1 installers for Win32 and have found a few >serious problems with them. They were dated 2/21/00 3:34pm. > >The most serious problem is that the python examples do not work, >it looks like vtkpython.dll was build using an older version of >the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll >has a timestamp of 2/7/2034 -- something is definitely wrong here! > >Several of the Tcl examples have front/back clipping plane problems. >These include: > >Decimate.tcl >CSpline.tcl >KSpline.tcl >TPlane.tcl > >And the following tcl examples die with the complaint that >vtkVolumeMapper doesn't have a SetScalarInput method: > >vol.tcl >volSimple.tcl > > - David > >-- > David Gobbi, MSc dgobbi at irus.rri.on.ca > Advanced Imaging Research Group > Robarts Research Institute, University of Western Ontario > >-------------------------------------------------------------------- >This is the private VTK discussion list. Please keep messages on-topic. >Check the FAQ at: >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to >. For help, send message body containing >"info vtkusers" to the same address. >-------------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From T.Hutton at eastman.ucl.ac.uk Mon Feb 28 09:42:19 2000 From: T.Hutton at eastman.ucl.ac.uk (Tim Hutton) Date: Mon, 28 Feb 2000 14:42:19 +0000 Subject: vtkThinPlateSplineMeshWarp In-Reply-To: <4.2.0.58.20000203154208.00cfbbf0@sic.sp2mi.univ-poitiers.f r> References: <4.2.0.58.20000202222630.00c78900@pop.fr.clara.net> Message-ID: <3.0.5.32.20000228144219.00b613b0@144.82.123.1> At 17:43 03/02/00 +0100, you wrote: >At 20:19 02/02/00 -0500, David Gobbi a ?crit: >> > (sorry for the delay, I was in California) >> >>I'll be heading there is just a couple weeks -- too bad we missed each >>other :) > >I see, SPIE Medical Imaging. Well, I wish I could go there, but my paper >was accepted by SPIE Electronic Imaging first. Too bad :( > > > You meant r.log(r) ? > >>No! I meant r, as in r = sqrt(x^2 + y^2 + z^2), simply the distance >>between two points. > > > > U(r) = |r| : something wrong here I guess. > >>U(r) = r = |r| = fabs(r) = sqrt(x^2+y^2+z^2) are all the same thing. > >That's what I thought, when I wrote "something wrong here" that meant "I'm >a bit confused with the use of the distance instead of the r.log >formulation". Sorry for the confusion. > >>Well, the 'definitive' answer would be in F.L. Bookstein _Morphometric >>Tools for Landmark Data_ but someone else has it out of the library >>right now. And maybe each of us should work though the 3D energy >>integral to prove whether 'our' version has the properties expected. >> >>In Bookstein's paper 'Shape and the Information in Medical Images: >>A Decade of the Morphometric Synthesis,' Computer Vision and Image >>Understanding 66:97-118, he clearly states at the bottom of page 105: >> >> The formalism of the spline goes over to three-dimensional data >> almost unchanged -- the kernel is now |r|, the matrix Q now has >> four columns, and the integral in Eq. (4) has six terms instead >> of three ... >> >>I take this to mean that U(r) = r*r*log(r) only for 2D splines, and >>that U(r) = |r| for 3D splines. > >Hum, that's not obvious for me. I guess he just wanted to say that the >distance was the Euclidean one ? > >OK, I've got 12 articles in front of me, let me see... > >All right, if you do not mind, I'll send you two papers : > "Surface interpolation with radial basis functions for medical >imaging" (Carr) > "Creating surfaces from scaterred data using radial basis >functions" (Schaback) > >Both are reasoning in R^d, and the first one is a 3D application. >Could you please have a look at them ? >I'm quite sure the TPS is really r.log(r). If there is still a doubt, let's >send an email to Mr Bookstein, I already did once. Just been to a very nice talk by the man himself, I asked him about this very question. Without any doubt, the RBF you need for 3d TPS is |r|. He explained to me why this was so but I understood very little. :) Hope this is useful information. Tim. --------------------------------------------------------------------------- Tim Hutton, Research Assistant Email: T.Hutton at eastman.ucl.ac.uk MINORI Project Eternal: T.Hutton at excite.co.uk Dental and Medical Informatics http://www.eastman.ucl.ac.uk/~dmi/MINORI Eastman Dental Institute, UCL Tel: [+44] (0207) 915 2344 256 Gray's Inn Road, London WC1X 8LD, UK Fax: [+44] (0207) 915 2303 --------------------------------------------------------------------------- This email represents the views of the sender alone and must not be construed as representing the views of the Eastman Dental Institute. It may contain confidential information and may be protected by law as a legally privileged document and copyright work. Its content should not be disclosed and it should not be given or copied to anyone other than the person(s) named or referenced above. If you have received this email in error, please contact the sender. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From Bernhard at Hombitzer.com Mon Feb 28 09:53:45 2000 From: Bernhard at Hombitzer.com (Bernhard Hombitzer) Date: Mon, 28 Feb 2000 15:53:45 +0100 Subject: Extracting portions of meshes Message-ID: <38BA8BF9.68208A91@Hombitzer.com> Hi, does anybody know how to extract portions of meshes. I have seen, that vtkExtractUnstructedGrid is doing so, but my problem is, that I do not have a range(min/max) of points, I have a array/list of points. would be pleased, if someone have an idea for me best regards Berni -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Mon Feb 28 11:19:02 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 28 Feb 2000 11:19:02 -0500 (EST) Subject: vtk 3.1 Win32 problems In-Reply-To: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Message-ID: Hi Lisa, I re-checked, and I am indeed running VTK 3.1, dated 2/21/2000. I compiled the VTK 3.1 source, and there don't appear to be any problems with the source. These problems are exclusive to the Win32 binary installation on ftp://public.kitware.com. I've done a little checking to clarify the problems with the Win32 binaries. They are as follows: 1) the examples in vtk31Tcl.exe are identical to the examples in with vtk24tcl.exe. 2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll in vtk31Core.exe, it looks like it wasn't re-built during the final vtk3.1 build because it had a preposterous time stamp. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 28 Feb 2000, Lisa Sobierajski Avila wrote: > Hi David, > > Are you sure the examples that you are running came from the VTK 3.1 > distribution? volSimple.tcl and vol.tcl no longer have SetScalarInput (it > changed to SetInput a couple of revisions ago....). That makes me > suspicious of the other problems as well. > > Lisa > > > At 05:12 PM 2/26/00 -0500, David Gobbi wrote: > >Hi Ken, Will: > > > >I downloaded the vtk3.1 installers for Win32 and have found a few > >serious problems with them. They were dated 2/21/00 3:34pm. > > > >The most serious problem is that the python examples do not work, > >it looks like vtkpython.dll was build using an older version of > >the VTK source than vtkdll.dll was. Yikes! The vtkpython.dll > >has a timestamp of 2/7/2034 -- something is definitely wrong here! > > > >Several of the Tcl examples have front/back clipping plane problems. > >These include: > > > >Decimate.tcl > >CSpline.tcl > >KSpline.tcl > >TPlane.tcl > > > >And the following tcl examples die with the complaint that > >vtkVolumeMapper doesn't have a SetScalarInput method: > > > >vol.tcl > >volSimple.tcl > > > > - David > > > >-- > > David Gobbi, MSc dgobbi at irus.rri.on.ca > > Advanced Imaging Research Group > > Robarts Research Institute, University of Western Ontario > > > >-------------------------------------------------------------------- > >This is the private VTK discussion list. Please keep messages on-topic. > >Check the FAQ at: > >To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to > >. For help, send message body containing > >"info vtkusers" to the same address. > >-------------------------------------------------------------------- > > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From klingej at bme.ri.ccf.org Mon Feb 28 11:23:07 2000 From: klingej at bme.ri.ccf.org (Jon Klingensmith) Date: Mon, 28 Feb 2000 11:23:07 -0500 Subject: ../vtkSource/contrib/examplesTcl/TestReslice.tcl Message-ID: <38BAA0EB.2411F61F@bme.ri.ccf.org> I am trying to use vtkImageReslice to view various slices in a volume of data. However, in the TestReslice.tcl example, the rotations are performed once on the data and then the vtkImageViewer::SetZSlice method is used to slice through the data with a slider control. Is it possible to use vtkImageReslice in this same way, but control the rotation angles interactively? I have set up a pipeline and interface to do this, but the rotations do not work in the manner I expected. The z rotation works fine, but if I change x and y, the data rotates right out of the field of view. However, if I just change the rotation in the pipeline manually, it works correctly and I can slice through the data at any x, y, or z angle, I just haven't been able to control the angles interactively. Can anyone help me with this? My pipeline is attached below with the tcl/tk interface also. Thanks, Jon --------------------------------------------------------------------------------- catch {load vtktcl} # Simple viewer for images. source vtkImageInclude.tcl set xRot 0 set yRot 0 set zRot 0 # Image pipeline vtkImageReader reader reader ReleaseDataFlagOff reader SetDataByteOrderToLittleEndian reader SetFileDimensionality 3 reader SetDataExtent 0 63 0 63 0 255 reader SetDataOrigin -32 -32 -128 reader SetDataSpacing 1.0 1.0 0.24 reader SetFileName "us3_proba.vol" reader SetDataScalarTypeToUnsignedChar reader UpdateWholeExtent vtkTransform transform transform RotateX $xRot transform RotateY $yRot transform RotateZ $zRot vtkImageReslice reslice reslice SetInput [reader GetOutput] reslice SetResliceTransform transform reslice InterpolateOn reslice SetOutputSpacing 0.3 0.3 0.3 reslice SetBackgroundLevel 127 vtkImageViewer viewer viewer SetInput [reslice GetOutput] viewer SetZSlice 60 viewer GrayScaleHintOn viewer SetColorWindow 255 viewer SetColorLevel 127 viewer Render source Interface.tcl #source Interface2.tcl ------------------------------------------------------------------------------------ # a simple user interface that manipulates window level. # places in the tcl top window. Looks for object named viewer # Take window level parameters from viewer proc InitializeInterface {} { global viewer sliceNumber xRot yRot zRot # Get parameters from viewer set w [viewer GetColorWindow] set l [viewer GetColorLevel] set sliceNumber [viewer GetZSlice] set zMin [viewer GetWholeZMin] set zMax [viewer GetWholeZMax] # frame for slice/window/level frame .image -borderwidth 3 -relief ridge label .image.l -text "Slice & Window/Level" \ -borderwidth 2 -relief raised scale .image.slice -from $zMin -to $zMax -orient horizontal \ -command SetSlice -variable sliceNumber -label slice scale .image.window -from 1 -to [expr $w * 2] -orient horizontal \ -command SetWindow -variable window -label window scale .image.level -from [expr $l - $w] -to [expr $l + $w] \ -orient horizontal -command SetLevel -label level # resolutions less than 1.0 if {$w < 10} { set res [expr 0.05 * $w] .image.window configure -resolution $res -from $res -to [expr 2.0 * $w] .image.level configure -resolution $res \ -from [expr 0.0 + $l - $w] -to [expr 0.0 + $l + $w] } .image.window set $w .image.level set $l pack .image.l .image.slice .image.window .image.level # frame for changing the rotation of data set frame .rotate -borderwidth 3 -relief ridge label .rotate.l -text "Rotation" \ -borderwidth 2 -relief raised set xRotSlide $xRot set yRotSlide $yRot set zRotSlide $zRot scale .rotate.x -from -180 -to 180 -orient horizontal \ -variable xRotSlide -command SetXRotate -label "x rotation" scale .rotate.y -from -180 -to 180 -orient horizontal \ -variable yRotSlide -command SetYRotate -label "y rotation" scale .rotate.z -from -180 -to 180 -orient horizontal \ -variable zRotSlide -command SetZRotate -label "z rotation" pack .rotate.l .rotate.x .rotate.y .rotate.z pack .image .rotate -side left } proc SetSlice slice { global viewer viewer SetZSlice $slice viewer Render } proc SetWindow window { global viewer viewer SetColorWindow $window viewer Render } proc SetLevel level { global viewer viewer SetColorLevel $level viewer Render } proc SetXRotate { rotate } { global viewer xRot yRot zRot transform RotateX [expr 0 - $xRot] transform RotateX $rotate set xRot $rotate reslice SetResliceTransform transform viewer Render } proc SetYRotate { rotate } { global viewer xRot yRot zRot transform RotateY [expr 0 - $yRot] transform RotateY $rotate set yRot $rotate reslice SetResliceTransform transform viewer Render } proc SetZRotate { rotate } { global viewer xRot yRot zRot transform RotateZ [expr 0 - $zRot] transform RotateZ $rotate set zRot $rotate reslice SetResliceTransform transform viewer Render } InitializeInterface viewer Render ---------------------------------------------------------------------------------- -- Jon D. Klingensmith Department of Biomedical Engineering The Cleveland Clinic Foundation Lab Phone: 216-445-0591 http://www.lerner.ccf.org/bme/ip/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From ken.martin at kitware.com Mon Feb 28 17:38:23 2000 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 28 Feb 2000 17:38:23 -0500 Subject: vtk 3.1 Win32 problems In-Reply-To: References: <4.2.0.58.20000228081517.027b1ad0@pop.nycap.rr.com> Message-ID: <4.2.0.58.20000228173701.00dac8d0@pop.nycap.rr.com> There are new 3.1 binaries available that I belive should fix the issues you found. If they don't please let me know. - Thanks - Ken I've done a little checking to clarify the problems with the >Win32 binaries. They are as follows: > >1) the examples in vtk31Tcl.exe are identical to the examples in > with vtk24tcl.exe. > >2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll > in vtk31Core.exe, it looks like it wasn't re-built during the final > vtk3.1 build because it had a preposterous time stamp. -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From strelitz at lanl.gov Tue Feb 29 06:14:15 2000 From: strelitz at lanl.gov (Richard Strelitz) Date: Tue, 29 Feb 2000 04:14:15 -0700 Subject: Vorticity Function in Streamers.cxx Message-ID: <38BBAA07.D351EC15@lanl.gov> Colleagues: vtkStreamers has a switch for computing Vorticity, and a place holder for it in the vtkStreamPoint structure. However, it seems to me from a closer examination of the code that the function for computing vorticity is only a stub. This surmise is corroborated by the lack of difference in output when a member of the vtkStream family is invoked with vorticity flag set on or off. Am I missing something, or is something missing? I'm in a whirl of my own. Please help me and if only for my eddy-fication (or eddy-cation, if you prefer additional punishment). Thank you, Richard Strelitz, SciVis staff at ACL-LANL -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dgobbi at irus.rri.on.ca Mon Feb 28 21:11:59 2000 From: dgobbi at irus.rri.on.ca (David Gobbi) Date: Mon, 28 Feb 2000 21:11:59 -0500 (EST) Subject: vtk 3.1 Win32 problems In-Reply-To: <4.2.0.58.20000228173701.00dac8d0@pop.nycap.rr.com> Message-ID: Hi Ken, Thanks, all the problems that I reported earlier have been fixed. - David -- David Gobbi, MSc dgobbi at irus.rri.on.ca Advanced Imaging Research Group Robarts Research Institute, University of Western Ontario On Mon, 28 Feb 2000, Ken Martin wrote: > There are new 3.1 binaries available that I belive should fix the issues > you found. If they don't please let me know. > > - Thanks > - Ken > > I've done a little checking to clarify the problems with the > >Win32 binaries. They are as follows: > > > >1) the examples in vtk31Tcl.exe are identical to the examples in > > with vtk24tcl.exe. > > > >2) the vtkpython.dll in vtk31Python.exe does not match the vtkdll.dll > > in vtk31Core.exe, it looks like it wasn't re-built during the final > > vtk3.1 build because it had a preposterous time stamp. > -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From chengyc at csie.nctu.edu.tw Tue Feb 29 00:10:02 2000 From: chengyc at csie.nctu.edu.tw (Julian Chen) Date: Tue, 29 Feb 2000 13:10:02 +0800 Subject: Iterative update viz pipeline Message-ID: <20000229131002.A60541@csie.nctu.edu.tw> Dear sir, We are currently working on a distributed simulation environment, which uses VTK as the data visualization engine. But recently, we're facing a problem. In our environment, we'll generate data repeatly, according different computation domain. And through the network, send the data to hosts and repeatlyusing VTK visualize the data, in the same dataset(according to VTK). Currently we're using Java binding of VTK. What's bothering us now is that the VTK part code hangs sometimes, during each iteration while updating the VTK visualization pipeline. The error read as, "0xxxx memory can be read. etc" in Windows platform. We're wondering if that's some bugs inside VTK C++ native code. Maybe some critical section problem. In the situation of rapidly updating the pipeline, such bugs slipped out noticable. If having any idea, please just drop me a mail. Any help is appreciate! Thanks for your help in advance. :-) Best regards -- Law of Software Envelopment: ``Every program attempts to expand until it can read mail. Those programs which cannot so expand are replaced by ones which can.'' E-mail: julian9 at mac.com URL:http://chengyc.spedia.net/ -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From reynhout at natlab.research.philips.com Tue Feb 29 09:22:21 2000 From: reynhout at natlab.research.philips.com ( O. Reynhout) Date: Tue, 29 Feb 2000 15:22:21 +0100 Subject: SetLeftButtonPressMethod in C++ Message-ID: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Hello, I have some problems with the SetLeftButtonPressMethod under VC++ 6.0. I found some documentation but it didn't help. This is what I found: "void vtkInteractorStyle::SetLeftButtonPressMethod (void(* f)(void *), void * arg) Callbacks so that the applicaiton can override the default behaviour." But I can't get it working. I made the following test-function: void Test(); How can I use the method???? SetLeftButtonPressMethod(Test, NULL) does not work. The compiler says: error C2664: 'SetLeftButtonPressMethod' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void *)' None of the functions with this name in scope match the target type I hope that anyone can help me, Greetings, Oscar Reynhout Philips NatLab \\\|||/// . ======= / \| O O | \ / \`___'/ # _| |_ (#) ( ) #\//|* *|\\ #\/( * )/ # ===== # ( U ) O # || || O(o)O .#---'| |`----. | `#----' `-----' \|/ ============================================================ s'Avonds & thuis: OscarReynhout at hetnet.nl Overdag: Reynhout at natlab.research.philips.com Weekend: Reynhout at chello.nl -------------- next part -------------- An HTML attachment was scrubbed... URL: From jorrit at lkeb.azl.nl Tue Feb 29 10:13:14 2000 From: jorrit at lkeb.azl.nl (Jorrit Schaap) Date: Tue, 29 Feb 2000 16:13:14 +0100 Subject: SetLeftButtonPressMethod in C++ References: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Message-ID: <38BBE20A.C730EA9A@lkeb.azl.nl> An HTML attachment was scrubbed... URL: From vetler at ifi.uio.no Tue Feb 29 10:31:22 2000 From: vetler at ifi.uio.no (Vetle Roeim) Date: Tue, 29 Feb 2000 16:31:22 +0100 (MET) Subject: SetLeftButtonPressMethod in C++ In-Reply-To: <01aa01bf82c0$647600d0$56a78b82@natlab.research.philips.com> Message-ID: on 2000-02-29, owner-vtkusers at public.kitware.com wrote: > I have some problems with the SetLeftButtonPressMethod under VC++ 6.0. I found some documentation but it didn't help. This is what I found: > > "void vtkInteractorStyle::SetLeftButtonPressMethod (void(* f)(void *), void * arg) > Callbacks so that the applicaiton can override the default behaviour." > > > > But I can't get it working. I made the following test-function: > > void Test(); > > How can I use the method???? SetLeftButtonPressMethod(Test, NULL) does not work. The compiler says: > > error C2664: 'SetLeftButtonPressMethod' : cannot convert parameter 1 from 'void (void)' to 'void (__cdecl *)(void *)' > None of the functions with this name in scope match the target type > > I hope that anyone can help me, Try this: void Test( void* ) { // stuff goes here } SetLeftButtonPressMethod(Test, NULL); It works for me (GCC 2.95.2). vr -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From dima at cs.ubc.ca Tue Feb 29 12:57:24 2000 From: dima at cs.ubc.ca (Dmitry Brodsky) Date: Tue, 29 Feb 2000 09:57:24 -0800 (PST) Subject: Polygonizing a surface Message-ID: <200002291757.JAA02105@cascade.cs.ubc.ca> Hello, I have just started using VTK and I was wondering if the following is possible. Given a point cloud, triangulate it and form a polygonal surface. I need to do this for some 3D model aquisition. For test purposes I have been using the vertex sets for existing models and feeding them into vtk as an unstructured grid where each vertex represents a cell. From there I have tried using the following pipelines: vtkUnstructuredGrid->vtkVoxelModeler->vtkContourFilter->vtkPolygonDataMapper... or vtkUnstructuredGrid->vtkGaussianSplatter->vtkContourFilter->vtkPolygon ... or vtkUnstructuredGrid->vtkImplicitModeler->vtkContourFilter->vtkPolygon ... >From the online manpages and intuitively it seems that vtkVoxelModeler should work the best but it doesn't. vtkImplicitModeler produces very coarse models and vtkGaussianSplatter works the best but produces very chubby models, as it should. What would be the best approach to this problem, is it doable in vtk? Thanks ttyl Dima -- Dima Brodsky dima at cs.ubc.ca 201-2366 Main Mall (604) 822-6179 (Office) Department of Computer Science (604) 822-2895 (DSG Lab) University of British Columbia, Canada (604) 822-5485 (FAX) Computers are like Old Testament gods; lots of rules and no mercy. (Joseph Campbell) -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. -------------------------------------------------------------------- From acvargas at icmc.sc.usp.br Tue Feb 29 14:04:39 2000 From: acvargas at icmc.sc.usp.br (Alex Jesus Cuadros Vargas) Date: Tue, 29 Feb 2000 16:04:39 -0300 (EST) Subject: Contours In-Reply-To: <006701bf7f9c$991fff60$0501a8c0@mcube.fr> Message-ID: Thank You Alex On Fri, 25 Feb 2000, Thomas Demachy wrote: > Hello, > > Try using vtkGeometryFilter. A good example is blow.tcl > > Thomas > > ----- Original Message ----- > From: Alex Jesus Cuadros Vargas > To: > Sent: Friday, February 25, 2000 12:58 PM > Subject: Contours > > > > Hello, > I have a volume in a UnstructuredGrid formed by only tetrahedrons... > somebody knows like obtaining the polygonos of contour? > > thanks > > Alex > > > > > > ----------------------------------------------------------------- /^/ | | ____| \ (___[) \ Alex Jes?s Cuadros Vargas (____[) | Instituto de Ci?ncias Matem?ticas e de Computa??o (___[) \ Universidade de S?o Paulo - S?o Carlos (__[)__ \ \ \ ----------------------------------------------------------------- -------------------------------------------------------------------- This is the private VTK discussion list. Please keep messages on-topic. Check the FAQ at: To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to . For help, send message body containing "info vtkusers" to the same address. --------------------------------------------------------------------