From hadas.judah at gmail.com Mon Jan 1 03:24:15 2018 From: hadas.judah at gmail.com (VTKJunky) Date: Mon, 1 Jan 2018 01:24:15 -0700 (MST) Subject: [vtkusers] Setting vtkImageData from regular float array Message-ID: <1514795055423-0.post@n5.nabble.com> I have float array which represents a 2-D image. I'd like to set it into vtkImageData, but can't work out how to do this. The problem is, all the examples use a vtkReader to read in the data, I already have the data. Any help would be greatly appreciated, Thanks! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From g.bogle at auckland.ac.nz Mon Jan 1 04:20:19 2018 From: g.bogle at auckland.ac.nz (Gib Bogle) Date: Mon, 1 Jan 2018 09:20:19 +0000 Subject: [vtkusers] Setting vtkImageData from regular float array In-Reply-To: <1514795055423-0.post@n5.nabble.com> References: <1514795055423-0.post@n5.nabble.com> Message-ID: <1514798416910.77466@auckland.ac.nz> There is probably a better way, but one way is to create an ITK image then convert it to a VTK image: https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertAnitkImageTovtkImageData/Documentation.html It is easy to create an ITK image, allocate the buffer then copy your data into the buffer. Of course this requires you to have ITK installed. ________________________________________ From: vtkusers on behalf of VTKJunky Sent: Monday, 1 January 2018 9:24 p.m. To: vtkusers at vtk.org Subject: [vtkusers] Setting vtkImageData from regular float array I have float array which represents a 2-D image. I'd like to set it into vtkImageData, but can't work out how to do this. The problem is, all the examples use a vtkReader to read in the data, I already have the data. Any help would be greatly appreciated, Thanks! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers From ben.boeckel at kitware.com Mon Jan 1 09:53:07 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 1 Jan 2018 09:53:07 -0500 Subject: [vtkusers] Many VTK build tests fail when run from Jenkins/Bamboo or VNC display, even when DISPLAY is set to good opengl-enabled display In-Reply-To: <13811c29-73cd-f4b5-5e59-c527ad063946@internode.on.net> References: <20171222155053.GB13083@megas.kitware.com> <20171227134646.GA13765@megas.kitware.com> <13811c29-73cd-f4b5-5e59-c527ad063946@internode.on.net> Message-ID: <20180101145307.GB23312@megas.kitware.com> On Mon, Jan 01, 2018 at 13:58:17 +1030, John wrote: > MESA_GL_VERSION_OVERRIDE=3.2 made a huge difference to running the tests > on vnc. > > With the override set, I'm able to run tests on vnc with only 102 > failures, and most of those failures are from the TestGPURayCast group. > So there's obviously something about that group which doesn't like the > VNC/Mesa, but almost everything else is good. Your Mesa build probably lacks floating point texture support. Most distros disable it due to patent licensing issues. Building it yourself (assuming a license) would suffice. I'd recommend *not* overwriting the system Mesa, but using LD_LIBRARY_PATH instead. > I do find this situation incredibly frustrating and utterly depressing > though. Once again, I wonder why I ever began to use Linux. What sort of > utter garbage is this, when having a monitor turn off due to DPMS > suddenly breaks applications?!?! This is nvidia behavior, not Linux/Mesa/etc. behavior (I have no such issues with the nouveau driver). Their driver "optimize" on-screen draws that aren't actually being displayed by just not doing them. You can see this if you overlap a window partially on top of a test window and see a black rectangle in that area. There may be some obscure setting in their settings app to disable this. If so, I'd like to know about it as well ;) (I haven't been in there in ages, so it may be new). --Ben From ben.boeckel at kitware.com Mon Jan 1 09:56:18 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 1 Jan 2018 09:56:18 -0500 Subject: [vtkusers] issue on Visual Studio 2015 vtkNetDCF and external library HDF5 HL In-Reply-To: References: Message-ID: <20180101145618.GC23312@megas.kitware.com> On Sat, Dec 30, 2017 at 17:59:27 +0000, Waldo Valenzuela wrote: > I am compiling VTK 8.1 with external HDF5 on Windows, Linux and Mac. > Linux and Mac no problem, BUT in Windows with Visual Studio 2015, I > have the following LINK errors when the vtkNetDCF library is compiled: > > libhdf5_hl.lib(H5DS.obj) : error LNK2019: unresolved external symbol H5T_STD_REF_OBJ_g referenced in function H5DS_get_REFLIST_type > 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_STD_REF_DSETREG_g referenced in function H5LT_dtype_to_text > 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_FORTRAN_S1_g referenced in function H5LT_dtype_to_text > 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_FORTRAN_S1_g > 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_NATIVE_LONG_g referenced in function H5LT_dtype_to_text > 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_NATIVE_LONG_g > 1>libhdf5_hl.lib(H5LT.obj) : error LNK2019: unresolved external symbol H5T_NATIVE_ULONG_g referenced in function H5LT_dtype_to_text > 1>libhdf5_hl.lib(H5LTparse.obj) : error LNK2001: unresolved external symbol H5T_NATIVE_ULONG_g > > Any idea what is this error is about, I have to compile HDF5 with an special option? The netcdf in VTK right now uses HDF5's 1.6 API, so you can't configure it with HDF5_ENABLE_DEPRECATED_SYMBOLS=OFF. Though looking at the error, it seems that libhdf5 is missing some symbols that libhdf5_hl is expecting to exist. What HDF5 are you building? --Ben From aron.helser at kitware.com Mon Jan 1 10:32:23 2018 From: aron.helser at kitware.com (Aron Helser) Date: Mon, 1 Jan 2018 10:32:23 -0500 Subject: [vtkusers] Setting vtkImageData from regular float array In-Reply-To: <1514798416910.77466@auckland.ac.nz> References: <1514795055423-0.post@n5.nabble.com> <1514798416910.77466@auckland.ac.nz> Message-ID: HI! Check out this example: https://lorensen.github.io/VTKExamples/site/Cxx/ImageData/ImageIteratorDemo/ it shows how to iterate through image data and modify it's value. You can assign values from your float array. HTH, Aron On Mon, Jan 1, 2018 at 4:20 AM, Gib Bogle wrote: > There is probably a better way, but one way is to create an ITK image then > convert it to a VTK image: > > https://itk.org/ITKExamples/src/Bridge/VtkGlue/ > ConvertAnitkImageTovtkImageData/Documentation.html > > It is easy to create an ITK image, allocate the buffer then copy your data > into the buffer. Of course this requires you to have ITK installed. > ________________________________________ > From: vtkusers on behalf of VTKJunky < > hadas.judah at gmail.com> > Sent: Monday, 1 January 2018 9:24 p.m. > To: vtkusers at vtk.org > Subject: [vtkusers] Setting vtkImageData from regular float array > > I have float array which represents a 2-D image. I'd like to set it into > vtkImageData, but can't work out how to do this. The problem is, all the > examples use a vtkReader to read in the data, I already have the data. > > > Any help would be greatly appreciated, > Thanks! > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jan 1 11:25:06 2018 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 1 Jan 2018 09:25:06 -0700 Subject: [vtkusers] Setting vtkImageData from regular float array In-Reply-To: References: <1514795055423-0.post@n5.nabble.com> <1514798416910.77466@auckland.ac.nz> Message-ID: The most direct way of creating an image from an array is vtkImageImport: https://lorensen.github.io/VTKExamples/site/Cxx/Images/ImageImport/ https://www.vtk.org/doc/nightly/html/classvtkImageImport.html The vtkImageImport class provides two methods for using your array as vtkImageData: CopyImportVoidPointer(ptr) -> copy the array into the vtkImageData SetImportVoidPointer(ptr) -> use your array directly (do not copy) - David On Mon, Jan 1, 2018 at 8:32 AM, Aron Helser wrote: > HI! > Check out this example: > https://lorensen.github.io/VTKExamples/site/Cxx/ > ImageData/ImageIteratorDemo/ > > it shows how to iterate through image data and modify it's value. You can > assign values from your float array. > HTH, > Aron > > On Mon, Jan 1, 2018 at 4:20 AM, Gib Bogle wrote: > >> There is probably a better way, but one way is to create an ITK image >> then convert it to a VTK image: >> >> https://itk.org/ITKExamples/src/Bridge/VtkGlue/ConvertAnitkI >> mageTovtkImageData/Documentation.html >> >> It is easy to create an ITK image, allocate the buffer then copy your >> data into the buffer. Of course this requires you to have ITK installed. >> ________________________________________ >> From: vtkusers on behalf of VTKJunky < >> hadas.judah at gmail.com> >> Sent: Monday, 1 January 2018 9:24 p.m. >> To: vtkusers at vtk.org >> Subject: [vtkusers] Setting vtkImageData from regular float array >> >> I have float array which represents a 2-D image. I'd like to set it into >> vtkImageData, but can't work out how to do this. The problem is, all the >> examples use a vtkReader to read in the data, I already have the data. >> >> >> Any help would be greatly appreciated, >> Thanks! >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From thangam at mie.utoronto.ca Mon Jan 1 15:25:42 2018 From: thangam at mie.utoronto.ca (Thangam Natarajan) Date: Mon, 1 Jan 2018 15:25:42 -0500 Subject: [vtkusers] animate actors by iterating through a list of points with vtk timer callback function - causing huge slow down during rendering Message-ID: <06A6618F-AA45-4055-AA7A-077C11795FC9@mie.utoronto.ca> Hi all, I have a file (pandas + hdf --> final.h5) that contains positions of "seed points" over time. It is of the format (tuple with x,y,z positions): t = 0\ t = 1\ t = 2\ 0 (33.8 18.0 36.6) 0 (35.7 17.9 37.1) 0 (33.3 17.9 39.4) 1 (32.3 18.0 38.5) 1 (33.8 18.0 36.6) 1 (35.7 17.9 37.1) 2 (34.8 17.9 40.1) 2 (32.3 18.0 38.5) 2 (33.8 18.0 36.6) 3 (32.2 18.0 38.8) 3 (34.8 17.9 40.1) 3 (32.3 18.0 38.5) 4 (35.3 18.0 39.9) 4 (32.2 18.0 38.8) 4 (34.8 17.9 40.1) 5 (34.4 17.9 37.0) 5 (35.3 18.0 39.9) 5 (32.2 18.0 38.8) I am trying to animate the path these 6 "seed points" inside a 3d pipe model by iterating them over time(t). I used the sphere animation example and wrote the following code: import vtk import os #needed for directory listing & sorting import numpy as np import pandas as pd seeds = 6 timeS = 3 class vtkTimerCallback(): def __init__(self): self.i = 0 def execute(self, obj, event): for i in range(len(timeS)-1): for sd in range(len(seeds)): self.sphereActor[sd].SetPosition(finalMatrixh5[i][sd]) iren = obj iren.GetRenderWindow().Render() finalMatrixh5 = pd.read_hdf('final.h5', 'endFrame', mode='r') def main(): # Create a sphere sphere = vtk.vtkSphereSource() sphere.SetRadius(0.25) sphere.SetThetaResolution(4) sphere.SetPhiResolution(4) sphereMapper = vtk.vtkPolyDataMapper() sphereMapper.SetInputConnection(sphere.GetOutputPort()) actorlist = list() ren1 = vtk.vtkRenderer() sphereActor = [vtk.vtkActor() for i in range(len(seeds))] for obj in sphereActor: actorlist.append(obj) for sd in range(len(seeds)): sphereActor[sd].SetMapper(sphereMapper) ren1.AddActor(sphereActor[sd]) ren1.SetBackground(0.1, 0.2, 0.4) renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren1) renWin.SetSize(1600, 1600) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) style = vtk.vtkInteractorStyleTrackballCamera() iren.SetInteractorStyle(style) renWin.Render() # # Sign up to receive TimerEvent iren.Initialize() #initialize the rendering process cb = vtkTimerCallback() cb.sphereActor = sphereActor iren.AddObserver('TimerEvent', cb.execute) iren.CreateRepeatingTimer(200) iren.Start() if __name__ == '__main__': main() This does the job in creating spheres for the number of "seed points" and moves the spheres in the correct manner. However, the movement of these spheres are so slow and the window freezes such that no interaction is possible or super slow (zoom in, rotation etc.). Instead of 6 seed points even if I try to iterate a single seed through the points, it is so memory hogging and terribly slow. I am not sure where I am going wrong as this should be a straight forward animation with vtk where a few spheres move through their respective positions over time. Something wrong with the way I am adding actors or iterating? Any pointers? I am happy to try any other method to do this as well (perhaps, with Qt?) Thanks a lot. regards Thangam. -------------- next part -------------- An HTML attachment was scrubbed... URL: From elainejiang8 at gmail.com Mon Jan 1 21:44:19 2018 From: elainejiang8 at gmail.com (Elaine Jiang) Date: Tue, 2 Jan 2018 10:44:19 +0800 Subject: [vtkusers] Rectilinear grid to structured grid In-Reply-To: References: <1513643772242-0.post@n5.nabble.com> Message-ID: Hi, The vtkMultiBlock3DPlotReader from the example above does not seem to be compatible with rectilinear grid data sets. Is there a similar reader for rectilinear grids? Thanks, Elaine On Tue, Dec 19, 2017 at 9:00 AM, Bill Lorensen wrote: > Look at this: > https://lorensen.github.io/VTKExamples/site/Cxx/VolumeRendering/ > PseudoVolumeRendering/ > > > > On Mon, Dec 18, 2017 at 7:36 PM, elainejiang8 > wrote: > > Hi all, > > > > I am trying to volume render a data set, but the data set given was in > > rectilinear grid form. Is there a way to convert rectilinear grids to > > structured grids so that I can use the volume rendering functions (color > > transfer function etc.)? If not, is there another way I can volume > render a > > rectilinear data set? > > > > Thanks, > > Elaine > > > > > > > > -- > > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > https://vtk.org/mailman/listinfo/vtkusers > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jeff.baumes at kitware.com Tue Jan 2 09:52:31 2018 From: jeff.baumes at kitware.com (Jeff Baumes) Date: Tue, 02 Jan 2018 14:52:31 +0000 Subject: [vtkusers] How to retrieve individual value from a vtkTable in Java In-Reply-To: References: Message-ID: vtkTable's GetRow method returns a vtkVariantArray ( https://www.vtk.org/doc/nightly/html/classvtkTable.html) which may be what is causing trouble. This is necessary because though columns have a single type, rows cut across columns so must be variant arrays. Perhaps try GetColumn() instead, which you may have better luck using as a standard array? On Fri, Dec 22, 2017 at 9:02 AM Jean-Max Redonnet wrote: > Hi, > > I did a K-Means clustering following the C++ example ( > https://lorensen.github.io/VTKExamples/site/Cxx/InfoVis/KMeansClustering/ > ). > > vtkTable kmeansInputData = new vtkTable(); > kmeansInputData.AddColumn(output.GetPointData().GetVectors()); // > output object is a polydata with vectors attached resulting from previous > calculation > > vtkKMeansStatistics kMeansStatistics = new vtkKMeansStatistics(); > kMeansStatistics.SetInputData(kmeansInputData); > kMeansStatistics.SetColumnStatus(kmeansInputData.GetColumnName(0), > 1); > kMeansStatistics.SetColumnStatus(kmeansInputData.GetColumnName(1), > 1); > kMeansStatistics.SetColumnStatus(kmeansInputData.GetColumnName(2), > 1); > // kMeansStatistics.SetColumnStatus( "Testing", 1 ); > kMeansStatistics.RequestSelectedColumns(); > kMeansStatistics.SetAssessOption(true); > kMeansStatistics.SetDefaultNumberOfClusters(3); > kMeansStatistics.Update(); > > kMeansStatistics.GetOutput().Dump(32, -1); // dump shows the > clustering is OK > > vtkIntArray clusterArray = new vtkIntArray(); > clusterArray.SetNumberOfComponents(1); > clusterArray.SetName("ClusterId"); > > for(int r = 0; r < kMeansStatistics.GetOutput().GetNumberOfRows(); > r++){ > // at this point the C++ instruction to retrieve information is > // vtkVariant v = kMeansStatistics->GetOutput()->GetValue(r, > kMeansStatistics->GetOutput()->GetNumberOfColumns() - 1); > // ... > } > > AFAIK vtkVariant does not exists in Java. I tried to get row first using > vtkAbstractArray a = kMeansStatistics.GetOutput().GetRow(r); > My debugger indicates array a is instance of vtkFloatArray, but java cast > doesn't work, thus I can't retrieve the value > I guess SafeDownCast is the good method to do that, but can't find it in > java wrapper. > > So, I can't figure out the right way to retrieve individual value from a > vtkTable in Java. > > Any help would be really appreciated > > jMax > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From majid.msadeghi at yahoo.com Tue Jan 2 10:28:38 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Tue, 2 Jan 2018 15:28:38 +0000 (UTC) Subject: [vtkusers] How to orient faces of a polydata? References: <665160827.8051104.1514906918537.ref@mail.yahoo.com> Message-ID: <665160827.8051104.1514906918537@mail.yahoo.com> Dear All, I am exrtuding a 2D polygon using vtkLinearExtrusionFilter, the resulting polydata has misoriented faces on the mesh, meaning that for a closed mesh, faces inside and outside direction is mixed up. (for example when I open the data with meshlab and look at the normals, some are pointing in and some outwards) How is it possible to orient order of each triangle vertices in a mesh so that there is a consistancy betwwen all faces? Thanks for the help. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vorpal at internode.on.net Tue Jan 2 10:31:45 2018 From: vorpal at internode.on.net (John) Date: Wed, 3 Jan 2018 02:01:45 +1030 Subject: [vtkusers] Many VTK build tests fail when run from Jenkins/Bamboo or VNC display, even when DISPLAY is set to good opengl-enabled display In-Reply-To: <20180101145307.GB23312@megas.kitware.com> References: <20171222155053.GB13083@megas.kitware.com> <20171227134646.GA13765@megas.kitware.com> <13811c29-73cd-f4b5-5e59-c527ad063946@internode.on.net> <20180101145307.GB23312@megas.kitware.com> Message-ID: aah, thanks muchly for the info Ben. I'll see if I can find a mesa with floating point texture support on rpmforge or somewhere, or build it myself & use LD_blah as you suggested. Also. it does make me feel a little better knowing the DPMS issues are due to a very nvidia-specific optimisation :-) Cheers & regards, John On 2018-01-02 1:23 AM, Ben Boeckel wrote: > On Mon, Jan 01, 2018 at 13:58:17 +1030, John wrote: >> MESA_GL_VERSION_OVERRIDE=3.2 made a huge difference to running the tests >> on vnc. >> >> With the override set, I'm able to run tests on vnc with only 102 >> failures, and most of those failures are from the TestGPURayCast group. >> So there's obviously something about that group which doesn't like the >> VNC/Mesa, but almost everything else is good. > > Your Mesa build probably lacks floating point texture support. Most > distros disable it due to patent licensing issues. Building it yourself > (assuming a license) would suffice. I'd recommend *not* overwriting the > system Mesa, but using LD_LIBRARY_PATH instead. > >> I do find this situation incredibly frustrating and utterly depressing >> though. Once again, I wonder why I ever began to use Linux. What sort of >> utter garbage is this, when having a monitor turn off due to DPMS >> suddenly breaks applications?!?! > > This is nvidia behavior, not Linux/Mesa/etc. behavior (I have no such > issues with the nouveau driver). Their driver "optimize" on-screen draws > that aren't actually being displayed by just not doing them. You can see > this if you overlap a window partially on top of a test window and see a > black rectangle in that area. There may be some obscure setting in their > settings app to disable this. If so, I'd like to know about it as well > ;) (I haven't been in there in ages, so it may be new). > > --Ben > From ken.martin at kitware.com Tue Jan 2 11:39:32 2018 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 2 Jan 2018 11:39:32 -0500 Subject: [vtkusers] [vtk-developers] ANN: VTK Book Figures completed In-Reply-To: References: Message-ID: Very Nice! On Mon, Dec 18, 2017 at 5:40 PM, Bill Lorensen wrote: > Folks, > > Andrew Maclean and I have successfully revived 112 examples from the > VTK Book. This covers all figures that were generated by VTK code. A > few figures were generated with "mystery" codes and are not included. > > Most of the figures were created by Tcl scripts and 30 C++ programs. > Andrew also converted many of the figure examples to Python. > > All of the figure examples are part of the VTKExamples repo and can be > viewed here: > https://lorensen.github.io/VTKExamples/site/VTKBookFigures/ > > Each Book example has an image that is regression tested every night. > Also, a link to the original code is provided. Most of the scripts > were deleted from the repo many years ago. > > The VTKExamples https://lorensen.github.io/VTKExamples/site/ now contains: > > C++ examples: 948 > CSharp examples: 121 > Python examples: 161 > Java examples: 18 > Total examples: 1248 > > This effort means that the "once lost" figure examples will live on. > > Old Guys Rule! > > Bill > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtk-developers > > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Jan 2 11:47:44 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 2 Jan 2018 08:47:44 -0800 Subject: [vtkusers] How to orient faces of a polydata? In-Reply-To: <665160827.8051104.1514906918537@mail.yahoo.com> References: <665160827.8051104.1514906918537.ref@mail.yahoo.com> <665160827.8051104.1514906918537@mail.yahoo.com> Message-ID: Can you post a small, compilable example that illustrates the problem? On Tue, Jan 2, 2018 at 7:28 AM, Majid Mohammad sadeghi via vtkusers wrote: > Dear All, > > I am exrtuding a 2D polygon using vtkLinearExtrusionFilter, the resulting > polydata has misoriented faces on the mesh, meaning that for a closed mesh, > faces inside and outside direction is mixed up. (for example when I open the > data with meshlab and look at the normals, some are pointing in and some > outwards) > > How is it possible to orient order of each triangle vertices in a mesh so > that there is a consistancy betwwen all faces? > > Thanks for the help. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From alican1812 at hotmail.com Tue Jan 2 14:59:40 2018 From: alican1812 at hotmail.com (alican) Date: Tue, 2 Jan 2018 12:59:40 -0700 (MST) Subject: [vtkusers] How to delete all nodes in the vtkContourWidget without crashes? In-Reply-To: References: Message-ID: <1514923180544-0.post@n5.nabble.com> Probably a late and an unnecessary answer, but I think you should turn the widget off first: drawWidget->Off(); and only then to try and clear nodes. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From polly_sukting at hotmail.com Tue Jan 2 21:58:34 2018 From: polly_sukting at hotmail.com (Polly Lina) Date: Tue, 2 Jan 2018 19:58:34 -0700 (MST) Subject: [vtkusers] vtkThreshold: how to change the parameter to colour instead of remove the areas In-Reply-To: <1514574494642-0.post@n5.nabble.com> References: <1514574494642-0.post@n5.nabble.com> Message-ID: <1514948314079-0.post@n5.nabble.com> Hello Doug, Thank you so much for your response. -----Please refer to the images attached----- Referring to your suggestion (3), I understand this is the fastest method as you mentioned. I rendered the mean curvature by applying the lut colour. But the areas shown are not as clean as how I wanted as in extracted by ThresholdByLower. The areas in Green colour are extracted clearly from vtkThreshold. Actually, I want to utilize the threshold for this research. My work is to visualize the "hole areas" then calculate the centroids of them. I am thinking if there is anyway to change the function of vtkThreshold from either (a) or (b) a) NOT to remove the areas but to PAINT the areas with a different colour OR b) DELETE the areas which meet the criterions but KEEP the areas which DOES NOT meet the criterions It is because the areas that do not meet the criterions are meaningful for my research. And also I followed your suggestion (1), I created two mappers and two actors, (ThresholdByLower=0.085 and ThresholdByUpper=0.085). However, the areas extracted by ThresholdByLower are exhibited correctly (Red colour). But the areas that exhibited by ThresholdByUpper (This is the area that I need) are not shown preferably (Blue colour). Adjacent areas disappeared. So I wonder how this should be connected. "ThresholdByLower-Criterion is cells whose scalars are less or equal to lower threshold. ThresholdByUpper-Criterion is cells whose scalars are greater or equal to upper threshold." Thank you again! Happy New Year! Best wishes, Polly -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From robert.aungst at gmail.com Tue Jan 2 22:30:45 2018 From: robert.aungst at gmail.com (Robby Aungst) Date: Tue, 2 Jan 2018 21:30:45 -0600 Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: <1514585486023-0.post@n5.nabble.com> References: <1514585486023-0.post@n5.nabble.com> Message-ID: Thanks. I tried a similar approach but I have a number of filters lined up so I can't cast things back to polydata at the end without breaking everything. I basically need to be able to do the same thing (manually add the arrays back in), but without having to create new polydata. I guess I need a filter that adds array data to the poly data? Does something like that exist? Is there any other way around this? On Fri, Dec 29, 2017 at 4:11 PM, Charles Kind wrote: > Dear Robby, > > Below is a function where I warp points back by half a vector in order that > the vector glyph arrow is drawn later on with the center of the vector in > plane. You will note that I create the warp vector field, apply it to the > warp, copy these points to a polydata then extract all relevant arrays and > copy the whole lot back. This may not be the correct way of doing things, I > am just hacking at VTK, but it works. If you designated arrays as vector or > scalar you will need to do that again afterwards. > > # Generate warp vectors, these vectors warp the point data > # Warp centers vectors on plane, but warps base geometry > def CenterVectors(self): > numPoints = self.thinPD.GetNumberOfPoints() > mtrans = vtk.vtkFloatArray() > mtrans.SetNumberOfTuples(numPoints) > mtrans.SetNumberOfComponents(3) > mtrans.SetNumberOfValues(3*numPoints) > mtrans.SetName("mtrans") > # Warp of -(1/2)v centers vectors if vector origin is z=0 plane > for x in range(numPoints): > mtrans.SetTuple3(x, \ > -self.thinPD.GetPointData().GetAbstractArray('m').\ > GetTuple(x)[0]/2, \ > -self.thinPD.GetPointData().GetAbstractArray('m').\ > GetTuple(x)[1]/2, \ > -self.thinPD.GetPointData().GetAbstractArray('m').\ > GetTuple(x)[2]/2) > wpd = vtk.vtkPolyData() > wpd.SetPoints(self.thinPD.GetPoints()) > wpd.GetPointData().SetVectors(mtrans) > # Warp vector origins > warpVector = vtk.vtkWarpVector() > warpVector.SetInputData(wpd) > warpVector.Update() > # Cast warped points and original vectors into PolyData > warped = vtk.vtkPolyData() > warped.SetPoints(warpVector.GetOutput().GetPoints()) > noarrays = self.thinPD.GetPointData().GetNumberOfArrays() > for x in range(noarrays): > warped.GetPointData().AddArray(self.thinPD.GetPointData()\ > .GetAbstractArray(x)) > self.thinPD = warped > > Luck, > > Charlie > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From majid.msadeghi at yahoo.com Wed Jan 3 04:17:03 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Wed, 3 Jan 2018 09:17:03 +0000 (UTC) Subject: [vtkusers] How to orient faces of a polydata? In-Reply-To: References: <665160827.8051104.1514906918537.ref@mail.yahoo.com> <665160827.8051104.1514906918537@mail.yahoo.com> Message-ID: <1834792010.8614559.1514971023452@mail.yahoo.com> This code should work to create the mesh. I have also attached the produced mesh in .stl and .off format for possible evaluation. ??? double tube_radious = 2.5; ?? ?double MaxToppt[3]; ?? ?MaxToppt[2]=15; ?? ?double center1[3] = { 0, 0, 0 }; ?? ?double CornerPt1[3]; ?? ?double CornerPt2[3]; ?? ?double CornerPt3[3]; ?? ?double CornerPt4[3]; ?? ?double CornerPt5[3]; ?? ?double CornerPt6[3]; ?? ?CornerPt2[0] = center1[0] + tube_radious + 1; ?? ?CornerPt2[1] = center1[1] - 10; ?? ?CornerPt1[0] = center1[0] - tube_radious - 1; ; ?? ?CornerPt1[1] = center1[1] - 10; ?? ?CornerPt3[0] = center1[0] + tube_radious + 1; ?? ?CornerPt3[1] = center1[1]; ?? ?CornerPt4[0] = center1[0] + tube_radious; ?? ?CornerPt4[1] = center1[1] + MaxToppt[2] + 10; ?? ?CornerPt5[0] = center1[0] - tube_radious - (MaxToppt[2] + 10) * 0.7; ?? ?CornerPt5[1] = center1[1] + (MaxToppt[2] + 10) * 0.7; ?? ?CornerPt6[0] = center1[0] - tube_radious - 1; ?? ?CornerPt6[1] = center1[1]; ?? ?CornerPt1[2] = 0; ?? ?CornerPt2[2] = 0; ?? ?CornerPt3[2] = 0; ?? ?CornerPt4[2] = 0; ?? ?CornerPt5[2] = 0; ?? ?CornerPt6[2] = 0; ?? ?vtkSmartPointer pointsImp_first = vtkSmartPointer::New(); ?? ?pointsImp_first->InsertNextPoint(CornerPt1); ?? ?pointsImp_first->InsertNextPoint(CornerPt2); ?? ?pointsImp_first->InsertNextPoint(CornerPt3); ?? ?pointsImp_first->InsertNextPoint(CornerPt4); ?? ?pointsImp_first->InsertNextPoint(CornerPt5); ?? ?pointsImp_first->InsertNextPoint(CornerPt6); ?? ?vtkSmartPointer polygonsImp_first = vtkSmartPointer::New();// Add the polygon to a list of polygons ?? ?polygonsImp_first->Allocate(4, 6); ?? ?polygonsImp_first->InsertNextCell(3); ?? ?polygonsImp_first->InsertCellPoint(0); ?? ?polygonsImp_first->InsertCellPoint(1); ?? ?polygonsImp_first->InsertCellPoint(2); ?? ?polygonsImp_first->InsertNextCell(3); ?? ?polygonsImp_first->InsertCellPoint(0); ?? ?polygonsImp_first->InsertCellPoint(2); ?? ?polygonsImp_first->InsertCellPoint(5); ?? ?polygonsImp_first->InsertNextCell(3); ?? ?polygonsImp_first->InsertCellPoint(2); ?? ?polygonsImp_first->InsertCellPoint(3); ?? ?polygonsImp_first->InsertCellPoint(5); ?? ?polygonsImp_first->InsertNextCell(3); ?? ?polygonsImp_first->InsertCellPoint(3); ?? ?polygonsImp_first->InsertCellPoint(4); ?? ?polygonsImp_first->InsertCellPoint(5); ?? ?vtkSmartPointer polygonPolyImp_first = vtkSmartPointer::New(); ?? ?polygonPolyImp_first->Initialize(); ?? ?polygonPolyImp_first->SetPoints(pointsImp_first); ?? ?polygonPolyImp_first->SetPolys(polygonsImp_first); ?? ?//****************************************** Transform ?? ?vtkSmartPointer RotatetwicetranslateTransform = vtkSmartPointer::New(); ?? ?RotatetwicetranslateTransform->RotateWXYZ(90, 0, 1, 0);//rotate around y(0,1,0) axis ?? ?RotatetwicetranslateTransform->RotateWXYZ(90, 0, 0, 1); ?? ?RotatetwicetranslateTransform->Translate(0, 0, 8); ?? ?vtkSmartPointer RotatetwiceFilter = vtkSmartPointer::New(); ?? ?RotatetwiceFilter->SetInputData(polygonPolyImp_first); ?? ?RotatetwiceFilter->SetTransform(RotatetwicetranslateTransform); ?? ?RotatetwiceFilter->Update(); ?? ?vtkSmartPointer allpolygonestransformed = vtkSmartPointer::New(); ?? ?allpolygonestransformed = RotatetwiceFilter->GetOutput(); ?? ?// Show transformed polygon ?? ?//vtkSmartPointer trandformedmapper = vtkSmartPointer::New(); ?? ?//trandformedmapper->SetInputData(allpolygonestransformed); ?? ?//vtkSmartPointer transformedactor = vtkSmartPointer::New(); ?? ?//transformedactor->SetMapper(trandformedmapper); ?? ?//transformedactor->GetProperty()->SetColor(1, 0, 0); ?? ?// ?? ?//renderer->AddActor(transformedactor); ?? ?//this->ui.qvtkWidget->GetRenderWindow()->Render(); ?? ?//********************************************************** ?? ?// Extrude the contour along the normal to the plane which the contour lies on. ?? ?vtkSmartPointer extrudeFilter4 = vtkSmartPointer::New(); ?? ?extrudeFilter4->SetInputData(allpolygonestransformed); ?? ?extrudeFilter4->SetScaleFactor(-18); ?? ?extrudeFilter4->SetExtrusionTypeToNormalExtrusion(); ?? ?extrudeFilter4->SetVector(1, 0, 0); ?? ?extrudeFilter4->Update(); ?? ?vtkSmartPointer ExtrudedTri = vtkSmartPointer::New(); ?? ?ExtrudedTri->SetInputConnection(extrudeFilter4->GetOutputPort()); ?? ?ExtrudedTri->Update(); ?? ?vtkSmartPointer extruded = vtkSmartPointer::New(); ?? ?extruded = ExtrudedTri->GetOutput(); ?? ?vtkSmartPointer Clean = vtkSmartPointer::New(); ?? ?Clean->SetInputData(extruded); ?? ?Clean->SetTolerance(0.0); ?? ?Clean->PointMergingOn(); ?? ?Clean->ConvertLinesToPointsOn(); ?? ?Clean->ConvertPolysToLinesOn(); ?? ?Clean->ConvertStripsToPolysOn(); ?? ?Clean->Update(); ?? ? ?? ?vtkSmartPointer alltriclean = vtkSmartPointer::New(); ?? ?alltriclean = Clean->GetOutput(); ?? ? ?? ?vtkSmartPointer stlWriter0 = vtkSmartPointer::New(); ?? ?stlWriter0->SetFileName("C:\\alltricleansubdividedsASCII.stl"); ?? ?stlWriter0->SetFileTypeToASCII(); ?? ?stlWriter0->SetInputData(alltriclean); ?? ?stlWriter0->Update(); ?? ?stlWriter0->Write(); Thank you so much. On Tuesday, January 2, 2018, 6:47:45 PM GMT+2, Bill Lorensen wrote: Can you post a small, compilable example that illustrates the problem? On Tue, Jan 2, 2018 at 7:28 AM, Majid Mohammad sadeghi via vtkusers wrote: > Dear All, > > I am exrtuding a 2D polygon using vtkLinearExtrusionFilter, the resulting > polydata has misoriented faces on the mesh, meaning that for a closed mesh, > faces inside and outside direction is mixed up. (for example when I open the > data with meshlab and look at the normals, some are pointing in and some > outwards) > > How is it possible to orient order of each triangle vertices in a mesh so > that there is a consistancy betwwen all faces? > > Thanks for the help. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: alltricleansubdividedsASCII.stl Type: application/octet-stream Size: 2671 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: alltricleansubdividedsASCII_OpenMesh.off Type: application/octet-stream Size: 626 bytes Desc: not available URL: From alican1812 at hotmail.com Wed Jan 3 08:01:09 2018 From: alican1812 at hotmail.com (alican) Date: Wed, 3 Jan 2018 06:01:09 -0700 (MST) Subject: [vtkusers] Need to pick a cell and it's neighbors In-Reply-To: <1344372523205-5715152.post@n5.nabble.com> References: <1343922344085-5715057.post@n5.nabble.com> <1343924842690-5715059.post@n5.nabble.com> <1343931837123-5715061.post@n5.nabble.com> <1344330494952-5715136.post@n5.nabble.com> <1344372523205-5715152.post@n5.nabble.com> Message-ID: <1514984469888-0.post@n5.nabble.com> For future users: https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellEdgeNeighbors -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From charles.kind at bristol.ac.uk Wed Jan 3 08:49:04 2018 From: charles.kind at bristol.ac.uk (Charles Kind) Date: Wed, 3 Jan 2018 06:49:04 -0700 (MST) Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: References: <1514585486023-0.post@n5.nabble.com> Message-ID: <1514987344289-0.post@n5.nabble.com> As long as the arrays match the points you can move them between VTK data structures. I move arrays freely between polydata and structured grid in particular due to the nature of my research. I am not sure of your exact set up, maybe some pseudo code would help me understand. In my current VTK app I reconstruct with nearly every change/filter apart from subsampling which requires all arrays attached, some arrays I leave in their original data formats and only copy them over before creating actors and rendering. Again this may not be the 'correct' way of doing things and can be horribly memory intensive. Charlie -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From pechnikov at mobigroup.ru Wed Jan 3 12:20:01 2018 From: pechnikov at mobigroup.ru (Alexey Pechnikov) Date: Thu, 4 Jan 2018 00:20:01 +0700 Subject: [vtkusers] Show picture on polygonal (seismic) line for some depth range Message-ID: I have seismic line coordinates (x1,y1), (x2,y2), ..., (xn,yn) and a single picture for known depth range (z1,z2) for the full seismic line. How to place the picture on it? Should I make a set of planes for the seismic line segments and place slices of the picture on these planes? Maybe is exists a better way? Where could I look for code examples (python preferred but I can convert c++ samples too)? -- Best regards, Alexey Pechnikov. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jan 3 14:02:17 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 3 Jan 2018 11:02:17 -0800 Subject: [vtkusers] Need to pick a cell and it's neighbors In-Reply-To: <1514984469888-0.post@n5.nabble.com> References: <1343922344085-5715057.post@n5.nabble.com> <1343924842690-5715059.post@n5.nabble.com> <1343931837123-5715061.post@n5.nabble.com> <1344330494952-5715136.post@n5.nabble.com> <1344372523205-5715152.post@n5.nabble.com> <1514984469888-0.post@n5.nabble.com> Message-ID: Please use the new examples at: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/CellEdgeNeighbors/ We are deprecating the old wiki example site. On Wed, Jan 3, 2018 at 5:01 AM, alican wrote: > For future users: > https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/CellEdgeNeighbors > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From luciano.geronimo.fnord at gmail.com Wed Jan 3 18:22:52 2018 From: luciano.geronimo.fnord at gmail.com (Luciano Geronimo) Date: Wed, 3 Jan 2018 21:22:52 -0200 Subject: [vtkusers] VTK build for android fails Message-ID: Good day, Following the instructions at https://blog.kitware.com/building-vtk-for-mobile-architectures/ I pulled VTK from git, installed the Android Studio 3.0.1 and NDK16b. I set ANDROID_ARCH_ABI = armeabi ANDROID_EXECUTABLE = /home/luciano/Android/Sdk/tools/android ANDROID_NATIVE_API_LEVEL = 21 ANDROID_NDK = /home/luciano/android-ndk-r16b VTK_ANDROID_BUILD = true When I run sudo make in the build directory the build fails with : [ 12%] Building C object ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/src/base/ftdebug.c.o [ 12%] Building C object ThirdParty/freetype/vtkfreetype/CMakeFiles/vtkfreetype.dir/builds/unix/ftsystem.c.o [ 13%] Building C object ThirdParty/tiff/vtktiff/libtiff/CMakeFiles/vtktiff.dir/__/port/dummy.c.o [ 13%] Linking C static library ../../../../lib/libvtktiff-9.0.a [ 13%] Linking C static library ../../../lib/libvtkfreetype-9.0.a [ 13%] Built target vtktiff [ 13%] Built target vtkfreetype Makefile:129: recipe for target 'all' failed make[3]: *** [all] Error 2 CMakeFiles/vtk-android.dir/build.make:111: recipe for target 'CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build' failed make[2]: *** [CMakeExternals/Prefix/vtk-android-21-armeabi/src/vtk-android-stamp/vtk-android-build] Error 2 CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/vtk-android.dir/all' failed make[1]: *** [CMakeFiles/vtk-android.dir/all] Error 2 Makefile:94: recipe for target 'all' failed make: *** [all] Error 2 My android SDK is in /home/luciano/Android/sdk and my NDK is in /home/luciano/android-ndk-r16b My system is a x64 ubuntu 16 building using gcc. VTK build for desktop works fine. What am I doing wrong? How can I build and use VTK in android? -------------- next part -------------- An HTML attachment was scrubbed... URL: From hyleihy at 126.com Wed Jan 3 19:55:26 2018 From: hyleihy at 126.com (l) Date: Thu, 4 Jan 2018 08:55:26 +0800 (CST) Subject: [vtkusers] help, I have two technical questions to help. Message-ID: <255409b4.f7a.160beaa6587.Coremail.hyleihy@126.com> Dear expert? I want to build implicit surface model of trigonometric function, not vtkQuadric . I use the class of vtkImplicitFunction, but I don't know how to express this equation. So, I try to rewrite VTK class vtkSphere. I just replace the class name to mySphere, the rest is the same. But, in the MS VS2010, compile error: error LNK2001: "__declspec(dllimport) public: static class mySphere * __cdecl mySphere::New(void)" I am very confused, I only modify the name. Is there any missing library? Please help me about the two questions: 1) How to express the implicit surface like trigonometric function. 2) Modify vtkImplicitFunction class what matters needing attention. Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From tamim.boubou at gmail.com Thu Jan 4 02:47:23 2018 From: tamim.boubou at gmail.com (Tamim) Date: Thu, 4 Jan 2018 00:47:23 -0700 (MST) Subject: [vtkusers] multiple boxWidgets Message-ID: <1515052043043-0.post@n5.nabble.com> Hello everybody, I'm relatively new to classes and VTK in general and I need to insert multiple boxWidgets every time a specific key is pressed.....I found and example about keyPressEvents : KeyPressEvent my question is what am I supposed to change in the code in order to create a boxWidget instead of writing something on the console window. any simple explanation would be great Thanks -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From vtk12af6bc42 at kant.sophonet.de Thu Jan 4 08:35:00 2018 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Thu, 04 Jan 2018 14:35:00 +0100 Subject: [vtkusers] Offscreen rendering problems on headless Ubuntu Message-ID: Hi list, happy new year! I have compiled VTK 8.1.0 on a headless Ubuntu 16.04 with OSMesa support (flags: -D VTK_RENDERING_BACKEND="OpenGL2" -D VTK_OPENGL_HAS_OSMESA=True). Using python (for example), I see an error about an unsupported OpenGL version (see below). However, Ubuntu comes with mesa 17.2.4 (which should be recent enough). Moreover, glxinfo shows "OpenGL core profile version string: 3.3 (Core Profile) Mesa 17.2.4. Any clues what went wrong? Thanks, Sophonet In [1]: import vtk In [2]: rw = vtk.vtkRenderWindow() In [3]: rw.SetOffScreenRendering(1) In [4]: rw.Render() ERROR: In /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797 vtkOSOpenGLRenderWindow (0x1991250): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. From robert.aungst at gmail.com Thu Jan 4 13:07:31 2018 From: robert.aungst at gmail.com (Robby Aungst) Date: Thu, 4 Jan 2018 12:07:31 -0600 Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: <1514987344289-0.post@n5.nabble.com> References: <1514585486023-0.post@n5.nabble.com> <1514987344289-0.post@n5.nabble.com> Message-ID: Thanks. I need to do everything in terms of pipeline connections. Casting back to polydata works for if you're doing everything as a stand-alone dataset, but as far as I'm aware, you can't do that in terms of a pipeline. My pipeline is: vtkPolyData->vtkExtractSelectedIds->vtkWarpVector->vtkDistan ceToCamera->vtkGlyph3D I add the points and arrays to the polydata at the beginning. They just aren't around anymore by the time I get to vtkGlyph3D and it seems like vtkWarpVector is the culprit. Everything is connected with SetInputConnection and it seems that polydata doesn't have an output port so it has to be at the beginning and can't get created in the middle. I can't use your workaround to get the arrays back in there. :/ On Wed, Jan 3, 2018 at 7:49 AM, Charles Kind wrote: > As long as the arrays match the points you can move them between VTK data > structures. I move arrays freely between polydata and structured grid in > particular due to the nature of my research. I am not sure of your exact > set > up, maybe some pseudo code would help me understand. > In my current VTK app I reconstruct with nearly every change/filter apart > from subsampling which requires all arrays attached, some arrays I leave in > their original data formats and only copy them over before creating actors > and rendering. Again this may not be the 'correct' way of doing things and > can be horribly memory intensive. > > Charlie > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From powerhak at naver.com Fri Jan 5 00:07:42 2018 From: powerhak at naver.com (Aleph) Date: Thu, 4 Jan 2018 22:07:42 -0700 (MST) Subject: [vtkusers] Hole on Mesh(stl) Message-ID: <1515128862655-0.post@n5.nabble.com> Hello everybody, The reason why i am posting now is because of a problem of making hole. i thought that, for making hole i would use vtkCylinder(implicit function) and vtkClipPolyData. In addition, i wanted to control the position of hole with boxWidget. I had finished to make boxWidget and it worked well(rotate, translate) But i couldn't find out how to locate the implicit function(cylinder) to boxWidget. i will show you my codes. ----------------------------------------------------------------------- void VTK_guide::LoadBoxWidgetWithCylinder() { vtkSmartPointer t = vtkSmartPointer::New(); vtkSmartPointer cyl = vtkSmartPointer::New(); cyl->SetRadius(1); cyl->SetTransform(t); sample->SetSampleDimensions(10, 10, 10); sample->SetImplicitFunction(cyl); double value = 2.0; double xmin = -value, xmax = value, ymin = -value, ymax = value, zmin = -value, zmax = value; sample->SetModelBounds(xmin, xmax, ymin, ymax, zmin, zmax); vtkSmartPointer contours = vtkSmartPointer::New(); contours->SetInputConnection(sample->GetOutputPort()); contours->GenerateValues(1, 1, 1); vtkSmartPointer contourMapper = vtkSmartPointer::New(); contourMapper->SetInputConnection(contours->GetOutputPort()); vtkSmartPointer contourActor = vtkSmartPointer::New(); contourActor->SetMapper(contourMapper); boxWidget2->SetInputConnection(contours->GetOutputPort()); boxWidget2->SetInteractor(mpVtkMainRendering->GetInteractor()); boxWidget2->SetProp3D(contourActor); boxWidget2->SetPlaceFactor(1.25); boxWidget2->PlaceWidget(); boxWidget2->SetHandleSize(0.0025); vtkSmartPointer callback = vtkSmartPointer::New(); boxWidget2->AddObserver(vtkCommand::InteractionEvent, callback); boxWidget2->On(); mpVtkMainRendering->GetRenderer()->AddActor(contourActor); mpVtkMainRendering->GetInteractor()->Start(); } ------------------------------------------------------------------------------and void VTK_guide::HoleMaking() { vtkSmartPointer trans = vtkSmartPointer::New(); trans->Translate(boxWidget2->GetProp3D()->GetPosition()); trans->Update(); vtkImplicitFunction *cyl2; cyl2 = sample->GetImplicitFunction(); cyl2->SetTransform(trans); cyl2->Modified(); vtkSmartPointer clipper = vtkSmartPointer::New(); clipper->SetInputData(mpMeshData->GetPolyDataOutput()); //clipper->SetClipFunction(sample->GetImplicitFunction()); clipper->SetClipFunction(cyl2); clipper->SetValue(0.0); clipper->Update(); vtkSmartPointer polydata = vtkSmartPointer::New(); polydata = clipper->GetOutput(); vtkSmartPointer clipMapper = vtkSmartPointer::New(); clipMapper->SetInputData(polydata); vtkSmartPointer clipActor = vtkSmartPointer::New(); clipActor->SetMapper(clipMapper); clipActor->GetProperty()->SetInterpolationToPhong(); mpVtkMainRendering->GetRenderer()->AddActor(clipActor); } Could you please tell me why it doesn't work? Thank you -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From leonid_dulman at yahoo.co.uk Fri Jan 5 02:29:25 2018 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Fri, 5 Jan 2018 07:29:25 +0000 (UTC) Subject: [vtkusers] VTKAda version 8.1.0 release 05/01/2018 References: <1085809026.1259305.1515137365938.ref@mail.yahoo.com> Message-ID: <1085809026.1259305.1515137365938@mail.yahoo.com> I'm pleased to announce VTKAda version 8.1.0? free edition? release 05/01/2018VTKAda is Ada-2012? port to VTK (Visualization Toolkit by Kitware, Inc) and Qt5 application and UI framework by NokiaVTK version 8.1.0, Qt version 5.10.0 open source and vtkc.dll,vtkc2.dll,qt5c.dll(libvtkc.so,libvtkc2.so,libqt5c.so) were built with Microsoft Visual Studio 2015? in Windows (WIN32)and gcc? in Linux? x86-64Package was tested with gnat gpl 2017 ada compiler in Windows 10? 64bit,Debian 9.2 x86-64 As a role ADA is used in embeded systems, but with VTKADA(+QTADA) you can build any desktop applications with?powerful 2D/3D rendering and imaging (games, animations, emulations) GUI, Database connection, server/client, Internet browsing and many others thinks. VTKADA you can be used without QTADA subsystem? Qt5Ada and VTKAda for Windows, Linux (Unix) is available fromhttps://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing (google drive. It can be mounted as virtual drive or directory or viewed with Web Browser)?? Leonid Dulman (leonid.dulman at gmail.com) -------------- next part -------------- An HTML attachment was scrubbed... URL: From rppatil3210 at gmail.com Fri Jan 5 03:52:28 2018 From: rppatil3210 at gmail.com (rohit) Date: Fri, 5 Jan 2018 01:52:28 -0700 (MST) Subject: [vtkusers] Getting EXCEPTION_ACCESS_VIOLATION error in Windows server 2016 Message-ID: <1515142348288-0.post@n5.nabble.com> Hello All, I am getting following error on Windows server 2016, but the same build can be run on other systems without any error, Please help me out. Thank You in advance # # A fatal error has been detected by the Java Runtime Environment: # # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x0000000000000000, pid=9196, tid=0x0000000000002048 # # JRE version: Java(TM) SE Runtime Environment (8.0_131-b11) (build 1.8.0_131-b11) # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.131-b11 mixed mode windows-amd64 compressed oops) # Problematic frame: # C 0x0000000000000000 # # Core dump written. Default location: C:\Program Files\New Folder\hs_err_pid9196.mdmp # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. # --------------- T H R E A D --------------- Current thread (0x00000000305f4000): JavaThread "AWT-EventQueue-0" [_thread_in_native, id=8264, stack(0x0000000044ac0000,0x0000000044bc0000)] siginfo: ExceptionCode=0xc0000005, ExceptionInformation=0x0000000000000008 0x0000000000000000 -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From charles.kind at bristol.ac.uk Fri Jan 5 04:44:15 2018 From: charles.kind at bristol.ac.uk (Charles Kind) Date: Fri, 5 Jan 2018 02:44:15 -0700 (MST) Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: References: <1514585486023-0.post@n5.nabble.com> <1514987344289-0.post@n5.nabble.com> Message-ID: <1515145455753-0.post@n5.nabble.com> Robby, Could you print to console, or whatever, the datastructure before and after WarpVectors and let me see them? ie In Python I just use print(datastructure). Charlie -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From vtk12af6bc42 at kant.sophonet.de Fri Jan 5 09:42:39 2018 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Fri, 05 Jan 2018 15:42:39 +0100 Subject: [vtkusers] Offscreen rendering problems on headless Ubuntu In-Reply-To: References: Message-ID: One more update: First of all some correction: glxinfo of course shows the X rendering capabilities, not the OSMesa ones, so glxinfo is not the tool of choice. Then: It seems that Ubuntu's mesa (16.04 update) does not ship with llvmpipe drivers for OSMesa, so I have built OSMesa myself, without X, based on Utkarsh's hints at https://blog.kitware.com/messing-with-mesa-for-paraview-5-0vtk-7-0/. However, it seems that no OpenGL extensions are available (see output below). Any hint how mesa needs to be compiled / what runtime variables need to be set in order to support OpenGL extensions in OSMesa? Thanks, Sophonet Debug output: In [1]: import vtk In [2]: rw = vtk.vtkRenderWindow() In [3]: rw.SetOffScreenRendering(1) In [4]: rw.Render() ERROR: In /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 797 vtkOSOpenGLRenderWindow (0x2ebb060): GL version 2.1 with the gpu_shader4 extension is not supported by your graphics driver but is required for the new OpenGL rendering backend. Please update your OpenGL driver. If you are using Mesa please make sure you have version 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. In [5]: print(rw.ReportCapabilities()) OpenGL vendor string: VMware, Inc. OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits) OpenGL version string: 3.3 (Core Profile) Mesa 17.3.1 OpenGL extensions: ---- (No OpenGL extensions are reported) On 2018-01-04 14:35, Sophonet wrote: > Hi list, happy new year! > > I have compiled VTK 8.1.0 on a headless Ubuntu 16.04 with OSMesa > support (flags: -D VTK_RENDERING_BACKEND="OpenGL2" -D > VTK_OPENGL_HAS_OSMESA=True). > > Using python (for example), I see an error about an unsupported OpenGL > version (see below). However, Ubuntu comes with mesa 17.2.4 (which > should be recent enough). Moreover, glxinfo shows "OpenGL core profile > version string: 3.3 (Core Profile) Mesa 17.2.4. > > Any clues what went wrong? > > Thanks, > > Sophonet > > > In [1]: import vtk > In [2]: rw = vtk.vtkRenderWindow() > In [3]: rw.SetOffScreenRendering(1) > In [4]: rw.Render() > ERROR: In > /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 797 > vtkOSOpenGLRenderWindow (0x1991250): GL version 2.1 with the > gpu_shader4 extension is not supported by your graphics driver but is > required for the new OpenGL rendering backend. Please update your > OpenGL driver. If you are using Mesa please make sure you have version > 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers From vtk12af6bc42 at kant.sophonet.de Fri Jan 5 10:19:17 2018 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Fri, 05 Jan 2018 16:19:17 +0100 Subject: [vtkusers] Offscreen rendering problems on headless Ubuntu In-Reply-To: References: Message-ID: <1a2ec5064cbc7afa8bc109c40b63fc19@kant.sophonet.de> For the files: This seemed to do the trick with the : https://www.vtk.org/pipermail/vtk-developers/2017-November/035592.html Even though print(rw.ReportCapabilities()) did not reveal any extensions, rendering now works... hope that this gets fixed some time. Thanks, Sophonet On 2018-01-05 15:42, Sophonet wrote: > One more update: > > First of all some correction: glxinfo of course shows the X rendering > capabilities, not the OSMesa ones, so glxinfo is not the tool of > choice. > > Then: It seems that Ubuntu's mesa (16.04 update) does not ship with > llvmpipe drivers for OSMesa, so I have built OSMesa myself, without X, > based on Utkarsh's hints at > https://blog.kitware.com/messing-with-mesa-for-paraview-5-0vtk-7-0/. > > However, it seems that no OpenGL extensions are available (see output > below). > > Any hint how mesa needs to be compiled / what runtime variables need > to be set in order to support OpenGL extensions in OSMesa? > > Thanks, > > Sophonet > > > Debug output: > In [1]: import vtk > In [2]: rw = vtk.vtkRenderWindow() > In [3]: rw.SetOffScreenRendering(1) > In [4]: rw.Render() > ERROR: In > /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 797 > vtkOSOpenGLRenderWindow (0x2ebb060): GL version 2.1 with the > gpu_shader4 extension is not supported by your graphics driver but is > required for the new OpenGL rendering backend. Please update your > OpenGL driver. If you are using Mesa please make sure you have version > 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. > > In [5]: print(rw.ReportCapabilities()) > OpenGL vendor string: VMware, Inc. > OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits) > OpenGL version string: 3.3 (Core Profile) Mesa 17.3.1 > OpenGL extensions: > > ---- (No OpenGL extensions are reported) > > > On 2018-01-04 14:35, Sophonet wrote: >> Hi list, happy new year! >> >> I have compiled VTK 8.1.0 on a headless Ubuntu 16.04 with OSMesa >> support (flags: -D VTK_RENDERING_BACKEND="OpenGL2" -D >> VTK_OPENGL_HAS_OSMESA=True). >> >> Using python (for example), I see an error about an unsupported OpenGL >> version (see below). However, Ubuntu comes with mesa 17.2.4 (which >> should be recent enough). Moreover, glxinfo shows "OpenGL core profile >> version string: 3.3 (Core Profile) Mesa 17.2.4. >> >> Any clues what went wrong? >> >> Thanks, >> >> Sophonet >> >> >> In [1]: import vtk >> In [2]: rw = vtk.vtkRenderWindow() >> In [3]: rw.SetOffScreenRendering(1) >> In [4]: rw.Render() >> ERROR: In >> /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, >> line 797 >> vtkOSOpenGLRenderWindow (0x1991250): GL version 2.1 with the >> gpu_shader4 extension is not supported by your graphics driver but is >> required for the new OpenGL rendering backend. Please update your >> OpenGL driver. If you are using Mesa please make sure you have version >> 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers From robert.aungst at gmail.com Fri Jan 5 10:48:51 2018 From: robert.aungst at gmail.com (Robby Aungst) Date: Fri, 5 Jan 2018 09:48:51 -0600 Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: <1515145455753-0.post@n5.nabble.com> References: <1514585486023-0.post@n5.nabble.com> <1514987344289-0.post@n5.nabble.com> <1515145455753-0.post@n5.nabble.com> Message-ID: Here's what it looks like after I create the poly data: vtkPolyData (000000000FB4D290) Debug: Off Modified Time: 18815 Reference Count: 1 Registered Events: (none) Information: 000000000FB3EDD0 Data Released: False Global Release Data: Off UpdateTime: 0 Field Data: Debug: Off Modified Time: 18719 Reference Count: 1 Registered Events: (none) Number Of Arrays: 0 Number Of Components: 0 Number Of Tuples: 0 Number Of Points: 19 Number Of Cells: 0 Cell Data: Debug: Off Modified Time: 18811 Reference Count: 1 Registered Events: Registered Observers: vtkObserver (000000000FAFB950) Event: 33 EventName: ModifiedEvent Command: 000000000FB3ECE0 Priority: 0 Tag: 1 Number Of Arrays: 1 Array 0 name = objtypes2 Number Of Components: 1 Number Of Tuples: 19 Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) Scalars: (none) Vectors: (none) Normals: (none) TCoords: (none) Tensors: (none) GlobalIds: (none) PedigreeIds: (none) EdgeFlag: (none) Point Data: Debug: Off Modified Time: 18814 Reference Count: 1 Registered Events: Registered Observers: vtkObserver (000000000FAFBB30) Event: 33 EventName: ModifiedEvent Command: 000000000FB3ECE0 Priority: 0 Tag: 1 Number Of Arrays: 2 Array 0 name = objtypes Array 1 name = ZeroDColors Number Of Components: 4 Number Of Tuples: 19 Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) Scalars: Debug: Off Modified Time: 18771 Reference Count: 2 Registered Events: (none) Name: ZeroDColors Data type: unsigned char Size: 93 MaxId: 56 NumberOfComponents: 3 Information: 000000000FB3ED80 Debug: Off Modified Time: 18770 Reference Count: 1 Registered Events: (none) Name: ZeroDColors Number Of Components: 3 Number Of Tuples: 19 Size: 93 MaxId: 56 LookupTable: (none) Vectors: (none) Normals: (none) TCoords: (none) Tensors: (none) GlobalIds: (none) PedigreeIds: (none) EdgeFlag: (none) Bounds: Xmin,Xmax: (-485.801, 63.3056) Ymin,Ymax: (-54.0469, 53.9257) Zmin,Zmax: (23.6906, 163.528) Compute Time: 21365 Number Of Points: 19 Point Coordinates: 000000000FAED710 Locator: 0000000000000000 Number Of Vertices: 0 Number Of Lines: 0 Number Of Polygons: 0 Number Of Triangle Strips: 0 Number Of Pieces: 1 Piece: -1 Ghost Level: 0 Here's what it looks like after it passes through the vtkWarpVector (it's now an unstructured grid instead of poly data, and the arrays are now missing): vtkWarpVector (000000000AAFAAB0) Debug: Off Modified Time: 21598 Reference Count: 2 Registered Events: (none) Executive: 000000000A2DBCD0 ErrorCode: No error Information: 000000000F697940 AbortExecute: Off Progress: 1 Progress Text: (None) Scale Factor: 10 vtkUnstructuredGrid (000000000FD7C8A0) Debug: Off Modified Time: 21553 Reference Count: 2 Registered Events: (none) Information: 000000000FB43920 Data Released: False Global Release Data: Off UpdateTime: 21561 Field Data: Debug: Off Modified Time: 21543 Reference Count: 1 Registered Events: (none) Number Of Arrays: 0 Number Of Components: 0 Number Of Tuples: 0 Number Of Points: 0 Number Of Cells: 0 Cell Data: Debug: Off Modified Time: 21551 Reference Count: 1 Registered Events: Registered Observers: vtkObserver (000000000FD856E0) Event: 33 EventName: ModifiedEvent Command: 000000000FB43AB0 Priority: 0 Tag: 1 Number Of Arrays: 0 Number Of Components: 0 Number Of Tuples: 0 Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) Scalars: (none) Vectors: (none) Normals: (none) TCoords: (none) Tensors: (none) GlobalIds: (none) PedigreeIds: (none) EdgeFlag: (none) Point Data: Debug: Off Modified Time: 21553 Reference Count: 1 Registered Events: Registered Observers: vtkObserver (000000000FD858F0) Event: 33 EventName: ModifiedEvent Command: 000000000FB43AB0 Priority: 0 Tag: 1 Number Of Arrays: 0 Number Of Components: 0 Number Of Tuples: 0 Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) Scalars: (none) Vectors: (none) Normals: (none) TCoords: (none) Tensors: (none) GlobalIds: (none) PedigreeIds: (none) EdgeFlag: (none) Bounds: Xmin,Xmax: (1, -1) Ymin,Ymax: (1, -1) Zmin,Zmax: (1, -1) Compute Time: 0 Number Of Points: 0 Point Coordinates: 0000000000000000 Locator: 0000000000000000 Number Of Pieces: 1 Piece: 0 Ghost Level: 0 I posted a simple example earlier in the thread that replicates the behavior I'm seeing. Thanks for your help! On Fri, Jan 5, 2018 at 3:44 AM, Charles Kind wrote: > Robby, > > Could you print to console, or whatever, the datastructure before and after > WarpVectors and let me see them? ie In Python I just use > print(datastructure). > > Charlie > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yvan.mokwinski at gmail.com Fri Jan 5 15:06:05 2018 From: yvan.mokwinski at gmail.com (Yvan Mokwinski) Date: Fri, 5 Jan 2018 13:06:05 -0700 Subject: [vtkusers] The VTM file format and the multiblock datasets Message-ID: Hello, I'm struggling with the VTM file format and I need help. I have a correct VTM file with few blocks as unstructured grids: Now I want to define 'groups' that I can check/unchecked when I visualize the file with Paraview. First group "MyFirstGroup" pointing to H3b_2 and H2_b1 Second group "MySecondGroup" pointing to H2_b1 and H1b_1 Third group "MyThirdGroup" H3b_2 and H1b_1 How can I do that? Any help would be very appreciated. Regards, Yvan Mokwinski -------------- next part -------------- An HTML attachment was scrubbed... URL: From mrezababaee at gmail.com Sat Jan 6 08:12:48 2018 From: mrezababaee at gmail.com (Mohammadreza Babaee) Date: Sat, 6 Jan 2018 14:12:48 +0100 Subject: [vtkusers] Texture is corrupted after cleaning Polydata Message-ID: Dear all, I have a Polydata model with its texture. The model has several duplicated vertices. I used VtkCleanData to remove those vertices. However, I see that the texture is corupted and it contains several edges. Can you please help me how I can resolve this issue. Best regads, eza -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Sat Jan 6 12:22:11 2018 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sat, 6 Jan 2018 10:22:11 -0700 (MST) Subject: [vtkusers] Error by update vtk - now to version 8.1.0 Message-ID: <1515259331781-0.post@n5.nabble.com> Hi there, I'm trying to update vtk again, now to version 8.1. For this I set the corresponding values in Cmake (as before with JavaWrapper, OpenGL2 etc). But now also the module vtkDicom and also the path for GDCM are set. (I tried the GDCM-version 2.6.6 and 2.8.0.) CMake makes no mistakes and creates the corresponding files. But if I want to create (or compile) the project in Visual Studio 2017 on a 64Bit Windows, I get the following error: Error (active) E0020 The identifier ""_P_WAIT"" is not defined. in file: "dicomfind.cxx" Error C2065 "_P_WAIT": undeclared identifier in file: "dicomfind.cxx" Can someone help me? Thanks in advance -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From charles.kind at bristol.ac.uk Sat Jan 6 14:26:59 2018 From: charles.kind at bristol.ac.uk (Charles Kind) Date: Sat, 6 Jan 2018 12:26:59 -0700 (MST) Subject: [vtkusers] Visualise 2d polydata Message-ID: <1515266819693-0.post@n5.nabble.com> Dear All, I am having a VTK blank and need help. I have a polydata made up of 2d (512*512) points and an unsignedchar array of colors attached. I just want to generate a surface from this with the colors. How do I do this. I know the data is correct as I happily use a superset of it for various 3d interactive renderings. Charlie -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From agpsuau at gmail.com Sun Jan 7 16:57:33 2018 From: agpsuau at gmail.com (Adrien Suau) Date: Sun, 7 Jan 2018 22:57:33 +0100 Subject: [vtkusers] [MPI][Parallel writer] How to use them? In-Reply-To: <7a52a276-b065-fa5a-ef7d-b56e1d5559bf@gmail.com> References: <7a52a276-b065-fa5a-ef7d-b56e1d5559bf@gmail.com> Message-ID: <55fa48fc-7c2e-94ce-1eac-137c15851e7a@gmail.com> Hi, I'm currently trying to find a correct documentation on how to use parallel writers provided by VTK with MPI. After something like 2h of research on the web, here I am! Either I really don't know how to search information, or there is no documentation at all about how to use the parallel reader/writers of VTK... My problem: I have several MPI processes (for the moment on my machine, in local, but they will be distributed on several machines after). Each of them owns data (points on a cubic region) I want to gather and plot on a single graph. What I tried: Assuming all the code presented below is executed on each MPI process, and the local data of the current process is stored in "vtkSmartPointer data": * Something I found in this test file from VTK (but seems out of date as I don't have the method SetWriteMetaFile). ??? vtkSmartPointer pwriter = vtkSmartPointer::New(); ??? std::string parallel_filename = std::string("Dataset_") + std::to_string(m_dataset_index) + std::string(".pvtp"); ??? pwriter->SetFileName(parallel_filename.c_str()); ??? pwriter->SetInputData(data); ??? pwriter->Write(); * Something I guessed from this blog . ??? // And we can save it on each process ??? std::string filename = std::string("Dataset_") + std::to_string(m_dataset_index) + std::string("_") ?????????????????????????? + std::to_string(m_rank) + std::string(".vtp"); ??? writer->SetFileName(filename.c_str()); #if VTK_MAJOR_VERSION <= 5 ??? writer->SetInput(data); #else ??? writer->SetInputData(data); #endif ??? writer->Write(); ??? if(m_rank == 0) { ??????? std::string parallel_filename = std::string("Dataset_") + std::to_string(m_dataset_index) + std::string(".pvtp"); ??????? vtkSmartPointer pwriter = vtkSmartPointer::New(); ??????? pwriter->SetFileName(parallel_filename.c_str()); ??????? pwriter->SetNumberOfPieces(m_size); ??????? pwriter->SetStartPiece(0); ??????? pwriter->SetEndPiece(m_size-1); #if VTK_MAJOR_VERSION <= 5 ??????? pwriter->SetInput(data); #else ??????? pwriter->SetInputData(data); #endif ??????? pwriter->Update(); ??? } None of them worked: the first one only create the .vtp file for process 0 (and the .ptvp file also), and the second one create 4 identical .tvp files (and I checked, the processes don't have the same data). So here my question: What is the correct way to use the parallel writers of VTK? Thanks for your time, I hope this was not a stupid question easily answered by something I didn't found on the internet... -------------- next part -------------- An HTML attachment was scrubbed... URL: From iamdpak at gmail.com Mon Jan 8 00:18:36 2018 From: iamdpak at gmail.com (vinmean) Date: Sun, 7 Jan 2018 22:18:36 -0700 (MST) Subject: [vtkusers] 3D warp transform examples Message-ID: <1515388716515-0.post@n5.nabble.com> I have a 3D object which I need to twist and turn flexibly to reshape. For example, moving the top layer of the below grid should flexibly bend all the vertical poles of the grid. So there should be some resistance to the imposed transformation. Is it possible to create such an effect using vtk? Please guide me with examples Thank you -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From tamim.boubou at gmail.com Mon Jan 8 06:30:06 2018 From: tamim.boubou at gmail.com (Tamim) Date: Mon, 8 Jan 2018 04:30:06 -0700 (MST) Subject: [vtkusers] Run-time Boxwidget question Message-ID: <1515411006677-0.post@n5.nabble.com> Hello I'm wondering if it's possible to create more than one boxWidget during the runtime of the program(i.e : when I press a certain character ...a new boxWidget appears on the screen) Is there anyway to do so ? Thanks -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Mon Jan 8 08:32:45 2018 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 8 Jan 2018 08:32:45 -0500 Subject: [vtkusers] Run-time Boxwidget question In-Reply-To: <1515411006677-0.post@n5.nabble.com> References: <1515411006677-0.post@n5.nabble.com> Message-ID: Yes, you can have multiple box widgets at a time. On Mon, Jan 8, 2018 at 6:30 AM, Tamim wrote: > Hello > > I'm wondering if it's possible to create more than one boxWidget during the > runtime of the program(i.e : when I press a certain character ...a new > boxWidget appears on the screen) > > Is there anyway to do so ? > > > Thanks > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tamim.boubou at gmail.com Mon Jan 8 08:46:00 2018 From: tamim.boubou at gmail.com (Tamim) Date: Mon, 8 Jan 2018 06:46:00 -0700 (MST) Subject: [vtkusers] Run-time Boxwidget question In-Reply-To: References: <1515411006677-0.post@n5.nabble.com> Message-ID: <1515419160803-0.post@n5.nabble.com> Could you provide me with some details please ? I'm new to VTK . So far I'm able to create the first boxWidget and I'm also able to get the user's input There's a link to my code : multiple boxwidgets -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Mon Jan 8 08:56:27 2018 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 8 Jan 2018 08:56:27 -0500 Subject: [vtkusers] Offscreen rendering problems on headless Ubuntu In-Reply-To: <1a2ec5064cbc7afa8bc109c40b63fc19@kant.sophonet.de> References: <1a2ec5064cbc7afa8bc109c40b63fc19@kant.sophonet.de> Message-ID: Yes, Andy made a change in VTK master recently (last week?) that I think may fix the issue. Hopefully :-) On Fri, Jan 5, 2018 at 10:19 AM, Sophonet wrote: > For the files: This seemed to do the trick with the : > > https://www.vtk.org/pipermail/vtk-developers/2017-November/035592.html > > Even though print(rw.ReportCapabilities()) did not reveal any extensions, > rendering now works... hope that this gets fixed some time. > > Thanks, > > Sophonet > > > On 2018-01-05 15:42, Sophonet wrote: > >> One more update: >> >> First of all some correction: glxinfo of course shows the X rendering >> capabilities, not the OSMesa ones, so glxinfo is not the tool of >> choice. >> >> Then: It seems that Ubuntu's mesa (16.04 update) does not ship with >> llvmpipe drivers for OSMesa, so I have built OSMesa myself, without X, >> based on Utkarsh's hints at >> https://blog.kitware.com/messing-with-mesa-for-paraview-5-0vtk-7-0/. >> >> However, it seems that no OpenGL extensions are available (see output >> below). >> >> Any hint how mesa needs to be compiled / what runtime variables need >> to be set in order to support OpenGL extensions in OSMesa? >> >> Thanks, >> >> Sophonet >> >> >> Debug output: >> In [1]: import vtk >> In [2]: rw = vtk.vtkRenderWindow() >> In [3]: rw.SetOffScreenRendering(1) >> In [4]: rw.Render() >> ERROR: In >> /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/ >> vtkOpenGLRenderWindow.cxx, >> line 797 >> vtkOSOpenGLRenderWindow (0x2ebb060): GL version 2.1 with the >> gpu_shader4 extension is not supported by your graphics driver but is >> required for the new OpenGL rendering backend. Please update your >> OpenGL driver. If you are using Mesa please make sure you have version >> 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. >> >> In [5]: print(rw.ReportCapabilities()) >> OpenGL vendor string: VMware, Inc. >> OpenGL renderer string: llvmpipe (LLVM 5.0, 256 bits) >> OpenGL version string: 3.3 (Core Profile) Mesa 17.3.1 >> OpenGL extensions: >> >> ---- (No OpenGL extensions are reported) >> >> >> On 2018-01-04 14:35, Sophonet wrote: >> >>> Hi list, happy new year! >>> >>> I have compiled VTK 8.1.0 on a headless Ubuntu 16.04 with OSMesa >>> support (flags: -D VTK_RENDERING_BACKEND="OpenGL2" -D >>> VTK_OPENGL_HAS_OSMESA=True). >>> >>> Using python (for example), I see an error about an unsupported OpenGL >>> version (see below). However, Ubuntu comes with mesa 17.2.4 (which >>> should be recent enough). Moreover, glxinfo shows "OpenGL core profile >>> version string: 3.3 (Core Profile) Mesa 17.2.4. >>> >>> Any clues what went wrong? >>> >>> Thanks, >>> >>> Sophonet >>> >>> >>> In [1]: import vtk >>> In [2]: rw = vtk.vtkRenderWindow() >>> In [3]: rw.SetOffScreenRendering(1) >>> In [4]: rw.Render() >>> ERROR: In >>> /home/CODE1/dep14473/SW/source/VTK-8.1.0/Rendering/OpenGL2/ >>> vtkOpenGLRenderWindow.cxx, >>> line 797 >>> vtkOSOpenGLRenderWindow (0x1991250): GL version 2.1 with the >>> gpu_shader4 extension is not supported by your graphics driver but is >>> required for the new OpenGL rendering backend. Please update your >>> OpenGL driver. If you are using Mesa please make sure you have version >>> 10.6.5 or later and make sure your driver in Mesa supports OpenGL 3.2. >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >>> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.paasche at gmail.com Mon Jan 8 09:50:05 2018 From: johan.paasche at gmail.com (KitKat) Date: Mon, 8 Jan 2018 07:50:05 -0700 (MST) Subject: [vtkusers] 3D visualisation of 3-dimensionnal data Message-ID: <1515423005622-0.post@n5.nabble.com> Hello, I actually work with 3-dimensionnal images on vtkImageData and vtkImageActor / vtkImageSliceMapper supports For example 500 slices of 500 * 500 pixels I can for now only naviguate through slices I would Like to know if there was any relatively light and simple way to display them in 3D, e.g voxels, where the blacks pixels would be transparent, only letting me see the withe pixels in a "cube" reepresnetation of the data. Thank you by advance for your responses -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From pratamaistiadi27 at gmail.com Mon Jan 8 10:59:44 2018 From: pratamaistiadi27 at gmail.com (123tompel) Date: Mon, 8 Jan 2018 08:59:44 -0700 (MST) Subject: [vtkusers] Activiz 7.1.1 Binary Build In-Reply-To: References: Message-ID: <1515427184405-0.post@n5.nabble.com> Hi Mark, Thanks for the Build, I already download the binaries and try to debug some codes that I have. I have one issue though, I get this error: DllNotFoundException: Unable to load DLL 'Kitware.VTK.vtkRenderingOpenGL2.Unmanaged.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E) My code is basically rendering a 3D vtkimagedata using vtkFixedPointVolumeRayCastMapper, and it has been succesfully build with ActiViz 5.8. Maybe I am missing something? Best regards, Temi -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From dan.lipsa at kitware.com Mon Jan 8 11:50:12 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 8 Jan 2018 11:50:12 -0500 Subject: [vtkusers] Visualise 2d polydata In-Reply-To: <1515266819693-0.post@n5.nabble.com> References: <1515266819693-0.post@n5.nabble.com> Message-ID: Charlie, You'll need to generate a mesh from your points https://lorensen.github.io/VTKExamples/site/Python/Modelling/DelaunayMesh/ add the array of colors to the mesh and then show the mesh This example shows how to show a mesh colored by a scalar https://lorensen.github.io/VTKExamples/site/Cxx/VisualizationAlgorithms/TubesFromSplines/ On Sat, Jan 6, 2018 at 2:26 PM, Charles Kind wrote: > Dear All, > > I am having a VTK blank and need help. I have a polydata made up of 2d > (512*512) points and an unsignedchar array of colors attached. I just want > to generate a surface from this with the colors. How do I do this. > > I know the data is correct as I happily use a superset of it for various 3d > interactive renderings. > > Charlie > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charles.kind at bristol.ac.uk Mon Jan 8 12:37:38 2018 From: charles.kind at bristol.ac.uk (Charles Kind) Date: Mon, 8 Jan 2018 10:37:38 -0700 (MST) Subject: [vtkusers] Visualise 2d polydata In-Reply-To: References: <1515266819693-0.post@n5.nabble.com> Message-ID: <1515433058998-0.post@n5.nabble.com> Thank you, that worked well, feel a bit silly now! :) -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From 278124177 at qq.com Mon Jan 8 20:18:28 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Tue, 9 Jan 2018 09:18:28 +0800 Subject: [vtkusers] QVTKWIDEGET2 Message-ID: Hi QVTKWidget2 was deprecated for VTK 8.1 and will be removed in a future version. So what should i use to instead qvtkwidget2? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andx_roo at live.com Mon Jan 8 22:40:27 2018 From: Andx_roo at live.com (Andaharoo) Date: Mon, 8 Jan 2018 20:40:27 -0700 (MST) Subject: [vtkusers] 3D visualisation of 3-dimensionnal data In-Reply-To: <1515423005622-0.post@n5.nabble.com> References: <1515423005622-0.post@n5.nabble.com> Message-ID: <1515469227777-0.post@n5.nabble.com> What you are describing sounds like volume rendering. VTK has a long history of volume rendering. You can feed a vtkImageData to a vtkSmartVolumeMapper, then give the mapper to the vtkVolume, and give the volume to the viewer. Then you use the transfer functions to define what intensities you do and do not want to see. vtkVolume has a vtkVolumeProperty which has a rgb transfer function and scalar opacity function. So I can assign an opacity of 0 to intensity 0 (black pixels) and opacity 1 to everything else. Or assign the color red to pixels of intensities 0 and so on... Here are some nice default settings. Very similar to Paraviews: vtkVolumeProperty* prop = volume->GetProperty(); prop->GetRGBTransferFunction()->SetColorSpaceToDiverging(); prop->SetInterpolationTypeToLinear(); prop->SetAmbient(0.5); prop->SetDiffuse(0.5); prop->SetSpecular(0.2); // Set the default transfer function double maxIntensity = resource->getVTKImageData()->GetScalarRange()[1]; // Max value in the image prop->GetRGBTransferFunction()->RemoveAllPoints(); prop->GetScalarOpacity()->RemoveAllPoints(); prop->GetRGBTransferFunction()->AddRGBPoint(0.0, 0.23, 0.3, 0.75); prop->GetRGBTransferFunction()->AddRGBPoint(maxIntensity, 0.7, 0.0, 0.15); prop->GetScalarOpacity()->AddPoint(0.0, 0.0); prop->GetScalarOpacity()->AddPoint(maxIntensity, 1.0); -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From elvis.stansvik at orexplore.com Tue Jan 9 02:50:21 2018 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 9 Jan 2018 08:50:21 +0100 Subject: [vtkusers] QVTKWIDEGET2 In-Reply-To: References: Message-ID: Den 9 jan. 2018 2:26 fm skrev "????" <278124177 at qq.com>: Hi QVTKWidget2 was deprecated for VTK 8.1 and will be removed in a future version. So what should i use to instead qvtkwidget2? That would be QVTKOpenGLWidget, which is based on the QOpenGLWidgetof Qt 5. See https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html and https://lorensen.github.io/VTKExamples/site/Cxx/Qt/RenderWindowNoUiFile/ for a very basic example. More Qt examples at https://lorensen.github.io/VTKExamples/site/Cxx/#qt Take note that with the new QVTKOpenGLWidget, you need to set the default QSurfaceFormat before creating your Qapplication. The examples docs show how. HTH, Elvis _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/ opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From agatakrason at gmail.com Tue Jan 9 03:44:16 2018 From: agatakrason at gmail.com (=?UTF-8?Q?Agata_Kraso=C5=84?=) Date: Tue, 9 Jan 2018 09:44:16 +0100 Subject: [vtkusers] holes filling in decimated mesh Message-ID: Hello vtk users, I have a decimated mesh. But after decimation I got mesh with holes. I would like to fill these holes. I tried fill holes example in vtk. But it doesn't work in this case. Could You help me please ? Is it possible to fix this issue in vtk ? Best, Agata -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: deciamted_mesh.png Type: image/png Size: 162518 bytes Desc: not available URL: From johan.paasche at gmail.com Tue Jan 9 09:06:00 2018 From: johan.paasche at gmail.com (KitKat) Date: Tue, 9 Jan 2018 07:06:00 -0700 (MST) Subject: [vtkusers] 3D visualisation of 3-dimensionnal data In-Reply-To: <1515469227777-0.post@n5.nabble.com> References: <1515423005622-0.post@n5.nabble.com> <1515469227777-0.post@n5.nabble.com> Message-ID: <1515506760168-0.post@n5.nabble.com> Thank you very much, that's exactly what i was looking for :) -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bill.lorensen at gmail.com Tue Jan 9 10:32:49 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 9 Jan 2018 07:32:49 -0800 Subject: [vtkusers] holes filling in decimated mesh In-Reply-To: References: Message-ID: Try applying PreserveTopologyOn() to your decimate instance... On Tue, Jan 9, 2018 at 12:44 AM, Agata Kraso? wrote: > Hello vtk users, > > I have a decimated mesh. But after decimation I got mesh with holes. > I would like to fill these holes. I tried fill holes example in vtk. But it > doesn't work in this case. > Could You help me please ? Is it possible to fix this issue in vtk ? > > Best, > Agata > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From jellby at yahoo.com Tue Jan 9 11:57:08 2018 From: jellby at yahoo.com (=?UTF-8?Q?Ignacio_Fern=c3=a1ndez_Galv=c3=a1n?=) Date: Tue, 9 Jan 2018 17:57:08 +0100 Subject: [vtkusers] Enable depth peeling after initialization Message-ID: <0fae38fc-ad72-611b-adb2-d17eae00d4a5@yahoo.com> Hi all, I'm trying to enable depth peeling with VTK. Currently my goal is using it with Mayavi and python. My problem, and a sample code, is in https://stackoverflow.com/questions/47738246/depth-peeling-in-mayavi. I think the reason is that depth peeling must be enabled before initializing the window, but Mayavi initializes the window as soon as it is declared, so changing the settings after does nothing. Consider the following simple, pure VTK, code: #============================================================= import vtk init_before = True ren = vtk.vtkRenderer() renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) ren.SetBackground([.2, .2, .2]) if init_before: # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) iren.Initialize() # enable depth peeling ren.SetUseDepthPeeling(1) ren.SetOcclusionRatio(0.1) ren.SetMaximumNumberOfPeels(100) renWin.SetMultiSamples(0) renWin.SetAlphaBitPlanes(1) if not init_before: # create a renderwindowinteractor iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) iren.Initialize() # create source source = vtk.vtkCylinderSource() source.SetCenter(0, 0, 0) source.SetRadius(5.0) source.SetHeight(7.0) source.SetResolution(100) source.Update() # mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInputData(source.GetOutput()) # actor actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().SetOpacity(0.5) # assign actor to the renderer ren.AddActor(actor) ren.ResetCamera() # enable user interface interactor renWin.Render() print ren.GetLastRenderingUsedDepthPeeling() iren.Start() #============================================================= With init_before=False I get that depth peeling was used, but not with init_before=True. Is there anything I can do to force and update of the render window to pick up the new settings? I tried iren.Reinitialize() to no avail. The only way I could find was removing renWin and iren and creating new ones, but that doesn't help with Mayavi. Thanks, Ignacio From luc_j_bourhis at mac.com Tue Jan 9 12:02:59 2018 From: luc_j_bourhis at mac.com (ljbo) Date: Tue, 9 Jan 2018 10:02:59 -0700 (MST) Subject: [vtkusers] Build VTK Python wrappers with custom openssl in Python Message-ID: <1515517379818-0.post@n5.nabble.com> I need to (1) build my own OpenSSL, then (2) build my own Python to use that custom OpenSSL, and then (3) build VTK with support for Python wrappers. I managed (1) and (2) but failed at (3). I configured VTK as follow The build stops here: and many more errors: they all come from the fact that my custom OpenSSL is not found I think. But how can I convinced VTK build system to add a -L/path/to/my/lib when building vtkpython? I tried setting CMAKE_EXE_LINKER_FLAGS_INIT on the command-line but to no avail. I also checked that Python knows it has been build with custom flags, just in case CMake would be told to use that. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Tue Jan 9 13:00:03 2018 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 9 Jan 2018 13:00:03 -0500 Subject: [vtkusers] Enable depth peeling after initialization In-Reply-To: <0fae38fc-ad72-611b-adb2-d17eae00d4a5@yahoo.com> References: <0fae38fc-ad72-611b-adb2-d17eae00d4a5@yahoo.com> Message-ID: For VTK version 6.2 I think you are correct. Depth peeling (more specifically alpha bitplanes probably) might have to be turned on before the window is created. For more recent versions of VTK I don't believe that is still the case. On Tue, Jan 9, 2018 at 11:57 AM, Ignacio Fern?ndez Galv?n via vtkusers < vtkusers at vtk.org> wrote: > Hi all, > > I'm trying to enable depth peeling with VTK. Currently my goal is using it > with Mayavi and python. My problem, and a sample code, is in > https://stackoverflow.com/questions/47738246/depth-peeling-in-mayavi. > > I think the reason is that depth peeling must be enabled before > initializing the window, but Mayavi initializes the window as soon as it is > declared, so changing the settings after does nothing. Consider the > following simple, pure VTK, code: > > #============================================================= > import vtk > > init_before = True > > ren = vtk.vtkRenderer() > renWin = vtk.vtkRenderWindow() > renWin.AddRenderer(ren) > ren.SetBackground([.2, .2, .2]) > > if init_before: > # create a renderwindowinteractor > iren = vtk.vtkRenderWindowInteractor() > iren.SetRenderWindow(renWin) > iren.Initialize() > > # enable depth peeling > ren.SetUseDepthPeeling(1) > ren.SetOcclusionRatio(0.1) > ren.SetMaximumNumberOfPeels(100) > renWin.SetMultiSamples(0) > renWin.SetAlphaBitPlanes(1) > > if not init_before: > # create a renderwindowinteractor > iren = vtk.vtkRenderWindowInteractor() > iren.SetRenderWindow(renWin) > iren.Initialize() > > # create source > source = vtk.vtkCylinderSource() > source.SetCenter(0, 0, 0) > source.SetRadius(5.0) > source.SetHeight(7.0) > source.SetResolution(100) > source.Update() > > # mapper > mapper = vtk.vtkPolyDataMapper() > mapper.SetInputData(source.GetOutput()) > > # actor > actor = vtk.vtkActor() > actor.SetMapper(mapper) > actor.GetProperty().SetOpacity(0.5) > > # assign actor to the renderer > ren.AddActor(actor) > ren.ResetCamera() > > # enable user interface interactor > renWin.Render() > print ren.GetLastRenderingUsedDepthPeeling() > iren.Start() > #============================================================= > > With init_before=False I get that depth peeling was used, but not with > init_before=True. > > Is there anything I can do to force and update of the render window to > pick up the new settings? I tried iren.Reinitialize() to no avail. The only > way I could find was removing renWin and iren and creating new ones, but > that doesn't help with Mayavi. > > Thanks, > Ignacio > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.marsh at usask.ca Tue Jan 9 18:32:09 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Tue, 9 Jan 2018 17:32:09 -0600 Subject: [vtkusers] Don't build vtkproj4? Message-ID: Hi, Is there a way to stop vtkproj4 from being built? It seems to be conflicting with another version of proj4 I am building for my application. Cheers Chris -------------- next part -------------- An HTML attachment was scrubbed... URL: From chenshaoqiang at buaa.edu.cn Tue Jan 9 23:28:25 2018 From: chenshaoqiang at buaa.edu.cn (chensq) Date: Wed, 10 Jan 2018 12:28:25 +0800 Subject: [vtkusers] How to use ColorByArrayComponent? Message-ID: <60D8B35BFBC04F56B2F4E26256802DAF@chensqPC> Hello vtkers. I used to think that I can use vtkMapper?s ColorByArrayComponent to set a array component to transfer value to color just as the scalar data. So, I added just one line of code : pMapper->ColorByArrayComponent("aArrayName", 0); But there is nothing happened! Now, I have to copy values in the array into scalar data. Does anyone can tell me what I have done wrong? Sincerely Chen. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bakkari.abdelkhalek at hotmail.fr Wed Jan 10 04:33:47 2018 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Wed, 10 Jan 2018 09:33:47 +0000 Subject: [vtkusers] vtkSTLReader and QString Message-ID: Hi All, I tried to read an STL file using vtkSTLReader from a directory as follows: ------------------------- QString fileName = QFileDialog::getOpenFileName( this, tr("Open File"), "C:\\", tr("Mesh (*.stl *.vtk)")); if (fileName.isNull()) //user cancelled return EXIT_FAILURE; m_imagePath = fileName; //Create an STL reader for reading the file vtkSmartPointer reader = vtkSmartPointer::New(); //reader->SetFileName(pathName.c_str()); reader->SetFileName(fileName.toStdString()); reader->Update(); ------------------------- But, I've got the following error : 'vtkAbstractPolyDataReader::SetFileName' : cannot convert parameter 1 from 'std::string' to 'const char *' Could you please propose a solution for this issue? -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Wed Jan 10 07:13:55 2018 From: DLRdave at aol.com (David Cole) Date: Wed, 10 Jan 2018 07:13:55 -0500 Subject: [vtkusers] vtkSTLReader and QString In-Reply-To: References: Message-ID: Have you tried "reader->SetFileName(fileName.toStdString().c_str());" ? On Wed, Jan 10, 2018 at 4:33 AM, Abdelkhalek Bakkari wrote: > Hi All, > > > I tried to read an STL file using vtkSTLReader from a directory as > follows: > > > > ------------------------- > > QString fileName = QFileDialog::getOpenFileName( this, tr("Open File"), > "C:\\", tr("Mesh (*.stl *.vtk)")); > if (fileName.isNull()) //user cancelled > return EXIT_FAILURE; > > m_imagePath = fileName; > //Create an STL reader for reading the file > vtkSmartPointer reader = vtkSmartPointer::New(); > //reader->SetFileName(pathName.c_str()); > reader->SetFileName(fileName.toStdString()); > reader->Update(); > ------------------------- > > > But, I've got the following error : > > 'vtkAbstractPolyDataReader::SetFileName' : cannot convert parameter 1 from > 'std::string' to 'const char *' > > > Could you please propose a solution for this issue? > > > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > From ben.boeckel at kitware.com Wed Jan 10 07:58:44 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 10 Jan 2018 07:58:44 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: Message-ID: <20180110125844.GA1305@megas.kitware.com> On Tue, Jan 09, 2018 at 17:32:09 -0600, Chris Marsh wrote: > Is there a way to stop vtkproj4 from being built? It seems to be > conflicting with another version of proj4 I am building for my application. You can tell VTK to use an external proj4 using VTK_USE_SYSTEM_libproj4. --Ben From shawn.waldon at kitware.com Wed Jan 10 09:24:38 2018 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Wed, 10 Jan 2018 09:24:38 -0500 Subject: [vtkusers] vtkSTLReader and QString In-Reply-To: References: Message-ID: On Wed, Jan 10, 2018 at 7:13 AM, David Cole via vtkusers wrote: > Have you tried > > "reader->SetFileName(fileName.toStdString().c_str());" > > ? > > If your filename may have international characters in it, you will want filename.toLocal8Bit().data() instead. But filename.toStdString().c_str() will work fine with only ASCII in the filename. HTH, Shawn > > > On Wed, Jan 10, 2018 at 4:33 AM, Abdelkhalek Bakkari > wrote: > > Hi All, > > > > > > I tried to read an STL file using vtkSTLReader from a directory as > > follows: > > > > > > > > ------------------------- > > > > QString fileName = QFileDialog::getOpenFileName( this, tr("Open File"), > > "C:\\", tr("Mesh (*.stl *.vtk)")); > > if (fileName.isNull()) //user cancelled > > return EXIT_FAILURE; > > > > m_imagePath = fileName; > > //Create an STL reader for reading the file > > vtkSmartPointer reader = vtkSmartPointer: > :New(); > > //reader->SetFileName(pathName.c_str()); > > reader->SetFileName(fileName.toStdString()); > > reader->Update(); > > ------------------------- > > > > > > But, I've got the following error : > > > > 'vtkAbstractPolyDataReader::SetFileName' : cannot convert parameter 1 > from > > 'std::string' to 'const char *' > > > > > > Could you please propose a solution for this issue? > > > > > > > > > > > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > https://vtk.org/mailman/listinfo/vtkusers > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhurkulis at gmail.com Wed Jan 10 09:55:48 2018 From: zhurkulis at gmail.com (nolvis) Date: Wed, 10 Jan 2018 07:55:48 -0700 (MST) Subject: [vtkusers] Matlabs imfill alternative? Message-ID: <1515596148218-0.post@n5.nabble.com> Hello, is there any alternative method in VTK, similliar to matlabs image-processing toolboxes method Imfill ? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From chris.marsh at usask.ca Wed Jan 10 10:24:53 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Wed, 10 Jan 2018 09:24:53 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: <20180110125844.GA1305@megas.kitware.com> References: <20180110125844.GA1305@megas.kitware.com> Message-ID: Great, thanks! I am custom building proj4. What is the best way to tell VTK's CMake where to look for proj4? Cheers Chris On 10 January 2018 at 06:58, Ben Boeckel wrote: > On Tue, Jan 09, 2018 at 17:32:09 -0600, Chris Marsh wrote: > > Is there a way to stop vtkproj4 from being built? It seems to be > > conflicting with another version of proj4 I am building for my > application. > > You can tell VTK to use an external proj4 using VTK_USE_SYSTEM_libproj4. > > --Ben > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Wed Jan 10 10:36:01 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 10 Jan 2018 10:36:01 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> Message-ID: <20180110153601.GA21857@megas.kitware.com> On Wed, Jan 10, 2018 at 09:24:53 -0600, Chris Marsh wrote: > Great, thanks! > > I am custom building proj4. What is the best way to tell VTK's CMake where > to look for proj4? The find module seems to use the LIBPROJ4_DIR environment variable if available. It should be the install prefix of proj4. --Ben From ltriana at uclv.cu Wed Jan 10 06:21:50 2018 From: ltriana at uclv.cu (=?iso-8859-1?Q?Laura_P=E9rez_Triana?=) Date: Wed, 10 Jan 2018 12:21:50 +0100 Subject: [vtkusers] compiling vtk for Android Message-ID: <000e01d38a05$39409640$abc1c2c0$@uclv.cu> Why the class vtkScalarBarActor does not exists in VTK 7 compiled for Android. I have tried to use it, also I tried to import it manually, but none of these work Also I?m getting several errors compiling vtk 8 for Android in this environment: Windows 10 Cmake 3.8.0 CodeBlocks 16.01 Anyone can help me to resolve the problems? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From koopman.mk at gmail.com Wed Jan 10 12:31:31 2018 From: koopman.mk at gmail.com (Martijn Koopman) Date: Wed, 10 Jan 2018 18:31:31 +0100 Subject: [vtkusers] QVTKWIDEGET2 In-Reply-To: References: Message-ID: Hi, See also https://github.com/martijnkoopman/Qt-VTK-viewer It is a template project I use for Qt + VTK. Regards, Martijn Op 9 jan. 2018 08:50 schreef "Elvis Stansvik" : > Den 9 jan. 2018 2:26 fm skrev "????" <278124177 at qq.com>: > > Hi > QVTKWidget2 was deprecated for VTK 8.1 and will be removed in a future > version. So what should i use to instead qvtkwidget2? > > > That would be QVTKOpenGLWidget, which is based on the QOpenGLWidgetof Qt 5. > > See > > https://www.vtk.org/doc/nightly/html/classQVTKOpenGLWidget.html > > and > > https://lorensen.github.io/VTKExamples/site/Cxx/Qt/RenderWindowNoUiFile/ > > for a very basic example. > > More Qt examples at > > https://lorensen.github.io/VTKExamples/site/Cxx/#qt > > Take note that with the new QVTKOpenGLWidget, you need to set the default > QSurfaceFormat before creating your Qapplication. The examples docs show > how. > > HTH, Elvis > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zhurkulis at gmail.com Wed Jan 10 13:57:29 2018 From: zhurkulis at gmail.com (nolvis) Date: Wed, 10 Jan 2018 11:57:29 -0700 (MST) Subject: [vtkusers] vtkSTLReader and QString In-Reply-To: References: Message-ID: <1515610649731-0.post@n5.nabble.com> Convert string to c string fileName.toStdString().c_str() -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From marcus.hanwell at kitware.com Wed Jan 10 14:13:48 2018 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 10 Jan 2018 14:13:48 -0500 Subject: [vtkusers] vtkSTLReader and QString In-Reply-To: References: Message-ID: On Wed, Jan 10, 2018 at 9:24 AM, Shawn Waldon wrote: > > On Wed, Jan 10, 2018 at 7:13 AM, David Cole via vtkusers > wrote: > >> Have you tried >> >> "reader->SetFileName(fileName.toStdString().c_str());" >> >> ? >> >> If your filename may have international characters in it, you will want > filename.toLocal8Bit().data() instead. But filename.toStdString().c_str() > will work fine with only ASCII in the filename. > > I have been bitten by this a few times, when dealing with files, the STL, etc you really need to be careful to use toLocal8Bit(), see https://bugreports.qt.io/browse/QTBUG-39086 for some further background. You will of course be fine until you encounter non Latin characters, so toLatin1 or toStdString may work out for common use cases with US-based users. Marcus -------------- next part -------------- An HTML attachment was scrubbed... URL: From patriciop at gmail.com Wed Jan 10 15:05:27 2018 From: patriciop at gmail.com (Patricio Palma C.) Date: Wed, 10 Jan 2018 20:05:27 +0000 Subject: [vtkusers] Second order data interpolation Message-ID: Hello, I am interested in using second order interpolation for visualization and probing. Do vtkProbeFilter and vtkBandedPolyDataContourFilter support second order interpolation? Regards Patricio -- Patricio Palma C. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Wed Jan 10 17:44:20 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Wed, 10 Jan 2018 22:44:20 +0000 Subject: [vtkusers] Coincident topology questions Message-ID: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> Hi -- How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology methods? I can't find an explanation for 'factor' and 'units'. The attached screenshot shows a surface representation of a grid of rectangular voxels and a wire-frame grid of tetrahedra. Four of the tetrahedral elements are also drawn with a surface representation in red and are supposed to obscure the voxels, but a mix of tex and voxel is drawn instead. The surfaces of the voxels and the tetrahedral are coplanar. They don't share nodes and edges, but the points on the x=0 face all have x=0 exactly. Is the coincident topology resolution machinery expected to work in this case? I'm using vtk 8.1.0. Thanks. -- Steve -------------- next part -------------- A non-text attachment was scrubbed... Name: PythonScreenSnapz002.png Type: image/png Size: 220315 bytes Desc: PythonScreenSnapz002.png URL: From ken.martin at kitware.com Wed Jan 10 19:51:46 2018 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 10 Jan 2018 19:51:46 -0500 Subject: [vtkusers] Coincident topology questions In-Reply-To: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> Message-ID: Here is part of an old email that has some description You can use the relative settings if the two coincident polygons are in two different mappers. * On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote: *>>>>>* I wanted to take a second to write up a recent change I made to how VTK *>>* (on the OpenGL2 backend) can handle coincident geometry. Previously VTK *>>* supported global values for specifying a polygonal offset to push surfaces *>>* forward or back in the zbuffer. This was often used to draw a surface back *>>* a bit in the zbuffer, and then draw the same surface in wireframe mode at *>>* the normal z location. The result was a wireframe overlaid on top of the *>>* surface. This approach faced a couple limitations. Every surface was offset *>>* the same amount and there was no way to offset points from lines. To *>>* address this I have added a few methods to vtkMapper to specify global line *>>* and point offsets as well as ivars to hold local offsets per mapper. The *>>* global methods look like: *>>>>* static void SetResolveCoincidentTopologyLineOffsetParameters( *>>* double factor, double units); *>>>>* while the instance methods look like: *>>>>* void SetRelativeCoincidentTopologyLineOffsetParameters( *>>* double factor, double units); *>>>>* Both signatures use two parameters which are worth mentioning. The first *>>* factor is how much to shift the zbuffer based on how quickly the z values *>>* of the surface or line changes. This may seem complicated but it addresses *>>* a simple issue. Due to rasterization issues, surfaces and lines with sharp *>>* zvalue slopes are more prone to noise in the zvalues they produce. To *>>* combat that, we offset them by an amount that is based on their z slope. If *>>* the surface is perpendicular to the view direction the factor is *>>* irrelevant, but the more the surface is at a sharp angle to the view *>>* direction, the more the factor comes into play. A value of 1.0 to 2.0 is *>>* fairly typical for the factor. The second parameter is the units, a *>>* constant offset to the zbuffer. It is currently specified conservatively in *>>* terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is *>>* a good place to start. For rendering points we do not have a slope so those *>>* methods only take the units argument. *>>>>* I have changed the global defaults so that surfaces are offset at *>>* 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new *>>* test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top *>>* of lines on top of a surface while rendering the points first and the *>>* surface last (the opposite order of their visibility). *>>>>* Thanks *>>* Ken* On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > Hi -- > > How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology > methods? I can't find an explanation for 'factor' and 'units'. > > The attached screenshot shows a surface representation of a grid of > rectangular voxels and a wire-frame grid of tetrahedra. Four of the > tetrahedral elements are also drawn with a surface representation in red > and are supposed to obscure the voxels, but a mix of tex and voxel is drawn > instead. The surfaces of the voxels and the tetrahedral are coplanar. > They don't share nodes and edges, but the points on the x=0 face all have > x=0 exactly. Is the coincident topology resolution machinery expected to > work in this case? > > I'm using vtk 8.1.0. > > Thanks. > > -- Steve > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bastian.heller at isko-engineers.de Thu Jan 11 00:45:35 2018 From: bastian.heller at isko-engineers.de (Heller, Bastian) Date: Thu, 11 Jan 2018 05:45:35 +0000 Subject: [vtkusers] vtkMultiBlockDataSets: Pipeline does not get updated in Release 8 Message-ID: Hello everyone, i am developing a tool where I need to visualize geometries consisting of multiple (>100) blocks as unstructured grids. In order to handle these structures efficiently, i?d like to use vtkMultiBlockDataSets. Geometries are extracted using a vtkGeometryFilter, connected to a vtkCompositePolyDataMapper2. The code I am using to link the elements is as follows: vtkSmartPointer exec = vtkSmartPointer::New(); vtkAlgorithm::SetDefaultExecutivePrototype(exec); /* Create a display attributes set for the mapper */ vtkSmartPointer spAttribs = vtkSmartPointer::New(); /* Datasets */ vtkSmartPointer _spMbMeshes = vtkSmartPointer::New(); _spMbMeshes->SetNumberOfBlocks(0); /* Filters and mappers */ vtkSmartPointer _spMeshFilter = vtkSmartPointer::New(); vtkSmartPointer _spMeshMapper = vtkSmartPointer::New(); vtkSmartPointer _spMeshActor = vtkSmartPointer::New(); /* Create connections */ _spMeshMapper->SetCompositeDataDisplayAttributes(spAttribs); _spMeshFilter->SetInputData(this->_spMbMeshes); _spMeshMapper->SetInputConnection(this->_spMeshFilter->GetOutputPort()); _spMeshActor->SetMapper(this->_spMeshMapper); /* Add actors to renderer */ _spRenderer->AddActor(this->_spMeshActor); Now, when I add blocks to the multiblock (_spMbMeshes), in VTK 7.1.1, everything executes correctly and the elements are shown. However, when I switch to VTK 8.1, only one of the datasets I added will be shown (which seemed to be the last one added to the block). I didn?t find any information in the changelogs, regarding this issue. My question: Where am I going wrong and what do I have to change to make this code work in VTK 8? Thank you very much in advance. Yours, Bastian Bastian Heller CAE Prozesse und Optimierung - Services & Development ISKO engineers AG Marie-Curie-Stra?e 2, 85055 Ingolstadt Fon: +49 8458 3112-286 Fax: +49 8458 3112-199 Mail: bastian.heller at isko-engineers.de [cid:image6d0d3a.JPG at 14162914.41988cf9] http://www.isko-engineers.de http://www.simuspace.de Folgen Sie uns auf: [Xing] [Twitter] [Google Plus] Sitz der AG: D-80807 Muenchen, Registergericht Muenchen HRB 129 078 Vorsitzender des Aufsichtsrates: Michael Welzel Vorstand: Michael Probst, Michael Krause USt-IdNr.: DE 812 837 909 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image6d0d3a.JPG Type: image/jpeg Size: 34269 bytes Desc: image6d0d3a.JPG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image506c05.PNG Type: image/png Size: 1089 bytes Desc: image506c05.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image87cf75.PNG Type: image/png Size: 696 bytes Desc: image87cf75.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image5ed8f8.PNG Type: image/png Size: 819 bytes Desc: image5ed8f8.PNG URL: From 278124177 at qq.com Thu Jan 11 03:41:03 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Thu, 11 Jan 2018 16:41:03 +0800 Subject: [vtkusers] How to render volume on mac Message-ID: i can not find a class like vktGpuvolumemapper to render volume on mac?so is there any way to do this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bakkari.abdelkhalek at hotmail.fr Thu Jan 11 06:11:32 2018 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Thu, 11 Jan 2018 11:11:32 +0000 Subject: [vtkusers] visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes Message-ID: Dear ALL, I would like to visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes. Is there any VTK pipeline to get it done, please ? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Thu Jan 11 11:19:33 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 11 Jan 2018 08:19:33 -0800 Subject: [vtkusers] visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes In-Reply-To: References: Message-ID: https://lorensen.github.io/VTKExamples/site/Cxx/Medical/MedicalDemo3/ On Thu, Jan 11, 2018 at 3:11 AM, Abdelkhalek Bakkari wrote: > Dear ALL, > > > I would like to visualize vtkPolyData with CORONAL, SAGITALL and AXIAL > planes. > > Is there any VTK pipeline to get it done, please ? > > > Regards, > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From bakkari.abdelkhalek at hotmail.fr Thu Jan 11 11:27:24 2018 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Thu, 11 Jan 2018 16:27:24 +0000 Subject: [vtkusers] visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes In-Reply-To: References: , Message-ID: Thank you for your answer. But, my input is a mesh and not an image : /Create an VTK reader for reading the file vtkSmartPointer readerVtk = vtkSmartPointer::New(); readerVtk->SetFileName(fileName.toStdString().c_str()); readerVtk->Update(); //// Convert the mesh to polydata vtkPolyData* output = readerVtk->GetPolyDataOutput(); Kind regards, ________________________________ From: Bill Lorensen Sent: 11 January 2018 17:19 To: Abdelkhalek Bakkari Cc: VTK Mailing List Subject: Re: [vtkusers] visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Florensen.github.io%2FVTKExamples%2Fsite%2FCxx%2FMedical%2FMedicalDemo3%2F&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=RV6ISJfkVpiTXOmyfbFLQ3ilYxzrXvOokbxCRjxgKR4%3D&reserved=0 On Thu, Jan 11, 2018 at 3:11 AM, Abdelkhalek Bakkari wrote: > Dear ALL, > > > I would like to visualize vtkPolyData with CORONAL, SAGITALL and AXIAL > planes. > > Is there any VTK pipeline to get it done, please ? > > > Regards, > > > _______________________________________________ > Powered by https://eur02.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=cvKzkInY%2Fl1hSNzZf%2BDcO8JiMz33C4mllarpQaIlAyw%3D&reserved=0 > > Visit other Kitware open-source projects at > https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=KHRMGvkFgnVjHouOu%2FAQ%2F%2F4%2FkFWxxKmj83I4xHuAqNw%3D&reserved=0 > > Please keep messages on-topic and check the VTK FAQ at: > https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=3s60WathOJPh3dNC2B9cvYbSHBSiaQJIES%2BPMTdAeWQ%3D&reserved=0 > > Search the list archives at: https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=O%2F5DLCGeJv%2BqL2vT0z20%2Fi6%2B4nSN2UykYTFw5Q8j%2Fjs%3D&reserved=0 > > Follow this link to subscribe/unsubscribe: > https://eur02.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7C%7Cd3cce4b6cccc4c3c86d708d5590f1a5d%7C84df9e7fe9f640afb435aaaaaaaaaaaa%7C1%7C0%7C636512843754185800&sdata=n46WnjjvCNSTYk60cNBcXtfw5M%2FEX3NjAL4DhQqZmyQ%3D&reserved=0 > -- Unpaid intern in BillsBasement at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.marsh at usask.ca Thu Jan 11 12:41:40 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Thu, 11 Jan 2018 11:41:40 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: <20180110153601.GA21857@megas.kitware.com> References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> Message-ID: Thanks for the details. This doesn't seem to be working for me though. I've tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as well as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however neither works. I still see the vtklibproj4 in the output of ldd. Any suggestions? On 10 January 2018 at 09:36, Ben Boeckel wrote: > On Wed, Jan 10, 2018 at 09:24:53 -0600, Chris Marsh wrote: > > Great, thanks! > > > > I am custom building proj4. What is the best way to tell VTK's CMake > where > > to look for proj4? > > The find module seems to use the LIBPROJ4_DIR environment variable if > available. It should be the install prefix of proj4. > > --Ben > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Thu Jan 11 14:29:37 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Thu, 11 Jan 2018 14:29:37 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> Message-ID: <20180111192937.GA11091@megas.kitware.com> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: > Thanks for the details. This doesn't seem to be working for me though. I've > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as well > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however neither > works. I still see the vtklibproj4 in the output of ldd. CMake should be getting the flag. If you do: grep -i proj4 CMakeCache.txt do any variables stand out as potentially being set to use the internal one? --Ben From stephen.langer at nist.gov Thu Jan 11 14:30:41 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Thu, 11 Jan 2018 19:30:41 +0000 Subject: [vtkusers] Coincident topology questions In-Reply-To: References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> Message-ID: So if I use vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); and mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); then polygons drawn with that mapper should obscure coincident polygons drawn with other mappers? That's not happening. What am I missing? -- Steve From: Ken Martin Date: Wednesday, January 10, 2018 at 7:52 PM To: "Langer, Stephen A. (Fed)" Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] Coincident topology questions Here is part of an old email that has some description You can use the relative settings if the two coincident polygons are in two different mappers. On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote: > >> >> I wanted to take a second to write up a recent change I made to how VTK >> (on the OpenGL2 backend) can handle coincident geometry. Previously VTK >> supported global values for specifying a polygonal offset to push surfaces >> forward or back in the zbuffer. This was often used to draw a surface back >> a bit in the zbuffer, and then draw the same surface in wireframe mode at >> the normal z location. The result was a wireframe overlaid on top of the >> surface. This approach faced a couple limitations. Every surface was offset >> the same amount and there was no way to offset points from lines. To >> address this I have added a few methods to vtkMapper to specify global line >> and point offsets as well as ivars to hold local offsets per mapper. The >> global methods look like: >> >> static void SetResolveCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> while the instance methods look like: >> >> void SetRelativeCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> Both signatures use two parameters which are worth mentioning. The first >> factor is how much to shift the zbuffer based on how quickly the z values >> of the surface or line changes. This may seem complicated but it addresses >> a simple issue. Due to rasterization issues, surfaces and lines with sharp >> zvalue slopes are more prone to noise in the zvalues they produce. To >> combat that, we offset them by an amount that is based on their z slope. If >> the surface is perpendicular to the view direction the factor is >> irrelevant, but the more the surface is at a sharp angle to the view >> direction, the more the factor comes into play. A value of 1.0 to 2.0 is >> fairly typical for the factor. The second parameter is the units, a >> constant offset to the zbuffer. It is currently specified conservatively in >> terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is >> a good place to start. For rendering points we do not have a slope so those >> methods only take the units argument. >> >> I have changed the global defaults so that surfaces are offset at >> 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new >> test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top >> of lines on top of a surface while rendering the points first and the >> surface last (the opposite order of their visibility). >> >> Thanks >> Ken On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) > wrote: Hi -- How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology methods? I can't find an explanation for 'factor' and 'units'. The attached screenshot shows a surface representation of a grid of rectangular voxels and a wire-frame grid of tetrahedra. Four of the tetrahedral elements are also drawn with a surface representation in red and are supposed to obscure the voxels, but a mix of tex and voxel is drawn instead. The surfaces of the voxels and the tetrahedral are coplanar. They don't share nodes and edges, but the points on the x=0 face all have x=0 exactly. Is the coincident topology resolution machinery expected to work in this case? I'm using vtk 8.1.0. Thanks. -- Steve _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Jan 11 14:41:33 2018 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 11 Jan 2018 14:41:33 -0500 Subject: [vtkusers] Coincident topology questions In-Reply-To: References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> Message-ID: Yes, that should work and -3, -3 is pretty reasonable for values. Something odd is going on. Can you give a bit more detail or a snippet of code? On Thu, Jan 11, 2018 at 2:30 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > So if I use > > vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); > > and > > mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); > > then polygons drawn with that mapper should obscure coincident polygons > drawn with other mappers? That's not happening. What am I missing? > > > > -- Steve > > > > *From: *Ken Martin > *Date: *Wednesday, January 10, 2018 at 7:52 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Here is part of an old email that has some description > > > > You can use the relative settings if the two coincident polygons are in > two different mappers. > > > > * On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote:* > > > > > >> > > >>* I wanted to take a second to write up a recent change I made to how VTK* > > >>* (on the OpenGL2 backend) can handle coincident geometry. Previously VTK* > > >>* supported global values for specifying a polygonal offset to push surfaces* > > >>* forward or back in the zbuffer. This was often used to draw a surface back* > > >>* a bit in the zbuffer, and then draw the same surface in wireframe mode at* > > >>* the normal z location. The result was a wireframe overlaid on top of the* > > >>* surface. This approach faced a couple limitations. Every surface was offset* > > >>* the same amount and there was no way to offset points from lines. To* > > >>* address this I have added a few methods to vtkMapper to specify global line* > > >>* and point offsets as well as ivars to hold local offsets per mapper. The* > > >>* global methods look like:* > > >> > > >>* static void SetResolveCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* while the instance methods look like:* > > >> > > >>* void SetRelativeCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* Both signatures use two parameters which are worth mentioning. The first* > > >>* factor is how much to shift the zbuffer based on how quickly the z values* > > >>* of the surface or line changes. This may seem complicated but it addresses* > > >>* a simple issue. Due to rasterization issues, surfaces and lines with sharp* > > >>* zvalue slopes are more prone to noise in the zvalues they produce. To* > > >>* combat that, we offset them by an amount that is based on their z slope. If* > > >>* the surface is perpendicular to the view direction the factor is* > > >>* irrelevant, but the more the surface is at a sharp angle to the view* > > >>* direction, the more the factor comes into play. A value of 1.0 to 2.0 is* > > >>* fairly typical for the factor. The second parameter is the units, a* > > >>* constant offset to the zbuffer. It is currently specified conservatively in* > > >>* terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is* > > >>* a good place to start. For rendering points we do not have a slope so those* > > >>* methods only take the units argument.* > > >> > > >>* I have changed the global defaults so that surfaces are offset at* > > >>* 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new* > > >>* test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top* > > >>* of lines on top of a surface while rendering the points first and the* > > >>* surface last (the opposite order of their visibility).* > > >> > > >>* Thanks* > > >>* Ken* > > > > > > On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > Hi -- > > How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology > methods? I can't find an explanation for 'factor' and 'units'. > > The attached screenshot shows a surface representation of a grid of > rectangular voxels and a wire-frame grid of tetrahedra. Four of the > tetrahedral elements are also drawn with a surface representation in red > and are supposed to obscure the voxels, but a mix of tex and voxel is drawn > instead. The surfaces of the voxels and the tetrahedral are coplanar. > They don't share nodes and edges, but the points on the x=0 face all have > x=0 exactly. Is the coincident topology resolution machinery expected to > work in this case? > > I'm using vtk 8.1.0. > > Thanks. > > -- Steve > > > _______________________________________________ > Powered by www.kitware.com > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Thu Jan 11 17:17:07 2018 From: juch at zhaw.ch (normanius) Date: Thu, 11 Jan 2018 15:17:07 -0700 (MST) Subject: [vtkusers] VTK with python wrapping Message-ID: <1515709027552-0.post@n5.nabble.com> Dear allI build VTK 8.1.0 from source with python support enabled. Everything works fine as long as I build and install either for python 2.7 or python 3.5 separately. Here is the build instructions I use for building VTK on Mac: If I use different installation targets and , I can import vtk at the following locations without any problems:However if I set VTK_INSTALL_DIR_PY2 equal to $VTK_INSTALL_DIR_PY3, I will get an error for the version that was installed second. I cannot follow why this problem occurs at all, because the installed wrapper binaries (for instance libvtkRenderingCorePython27D-8.1.dylib and libvtkRenderingCorePython35D-8.1.dylib), are separate from each other. And also otool (on Mac) indicates that binaries actually point to the right parts. Also, I removed vtk otherwise from the system, so there is not a third version that interferes with the installation...Do you have an idea where the problem comes from?The error message by the way looks like this for me:Many thanks for any hints on this! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Jan 11 17:49:04 2018 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 11 Jan 2018 15:49:04 -0700 Subject: [vtkusers] VTK with python wrapping In-Reply-To: <1515709027552-0.post@n5.nabble.com> References: <1515709027552-0.post@n5.nabble.com> Message-ID: Hi Normanius, You will have to turn off the following C++ VTK modules, since they use the Python C API but don't have the Python version number as part of their library name: FiltersPython MPI4Py RenderingMatplotlib This should get you a bit further along. - David On Thu, Jan 11, 2018 at 3:17 PM, normanius wrote: > Dear all I build VTK 8.1.0 from source with python support enabled. > Everything works fine as long as I build and install either for python 2.7 > or python 3.5 separately. Here is the build instructions I use for building > VTK on Mac: > > VTK_INSTALL_DIR="/opt/dev/versions/vtk/vtk-8.1.0-qt5-shared" > mkdir build-python3.5 > cd build-python3.5 > cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release \ > -DVTK_WRAP_PYTHON=ON \ > -DBUILD_EXAMPLES=OFF \ > -DBUILD_SHARED_LIBS=ON \ > -DBUILD_TESTING=OFF \ > -DCMAKE_INSTALL_PREFIX="$VTK_INSTALL_DIR" \ > -DCMAKE_MACOSX_RPATH=ON \ > -DCMAKE_INSTALL_RPATH="$VTK_INSTALL_DIR/lib" \ > -DVTK_PYTHON_VERSION=3 \ > -DPYTHON_EXECUTABLE="/Library/Frameworks/Python.framework/Versions/3.5/bin/python3" \ > -DPYTHON_INCLUDE_DIR="/Library/Frameworks/Python.framework/Versions/3.5/include/python3.5m/" \ > -DPYTHON_LIBRARY="/Library/Frameworks/Python.framework/Versions/3.5/lib/libpython3.5.dylib" \ > -DVTK_Group_Qt=ON \ > -DVTK_QT_VERSION=5 \ > -DCMAKE_PREFIX_PATH="$QT_DIR/.." > ninja > ninja install > > mkdir build-python2.7 > cd build-python2.7 > # Same installation target! > VTK_INSTALL_DIR="/opt/dev/versions/vtk/vtk-8.1.0-qt5-shared" > cmake -G Ninja .. -DCMAKE_BUILD_TYPE=Release \ > -DVTK_WRAP_PYTHON=ON \ > -DBUILD_EXAMPLES=OFF \ > -DBUILD_SHARED_LIBS=ON \ > -DBUILD_TESTING=OFF \ > -DCMAKE_INSTALL_PREFIX="$VTK_INSTALL_DIR" \ > -DCMAKE_MACOSX_RPATH=ON \ > -DCMAKE_INSTALL_RPATH="$VTK_INSTALL_DIR/lib" \ > -DVTK_PYTHON_VERSION=2 \ > -DPYTHON_EXECUTABLE="/Library/Frameworks/Python.framework/Versions/2.7/bin/python2" \ > -DPYTHON_INCLUDE_DIR="/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7/" \ > -DPYTHON_LIBRARY="/Library/Frameworks/Python.framework/Versions/2.7/lib/libpython2.7.dylib" \ > -DVTK_Group_Qt=ON \ > -DVTK_QT_VERSION=5 \ > -DCMAKE_PREFIX_PATH="$QT_DIR/.." > > If I use different installation targets > > VTK_INSTALL_DIR_PY2 > > and > > VTK_INSTALL_DIR_PY3 > > , I can import vtk at the following locations without any problems: > > cd $VTK_INSTALL_DIR_PY2/lib/python2.7/site-packages; python -c "import vtk" # No error > cd $VTK_INSTALL_DIR_PY3/lib/python3.5/site-packages; python -c "import vtk" # No error > > However if I set VTK_INSTALL_DIR_PY2 equal to $VTK_INSTALL_DIR_PY3, I will > get an error for the version that was installed second. I cannot follow why > this problem occurs at all, because the installed wrapper binaries (for > instance libvtkRenderingCorePython27D-8.1.dylib and > libvtkRenderingCorePython35D-8.1.dylib), are separate from each other. > And also otool (on Mac) indicates that binaries actually point to the right > parts. Also, I removed vtk otherwise from the system, so there is not a > third version that interferes with the installation... Do you have an idea > where the problem comes from? The error message by the way looks like this > for me: > > import vtk > --------------------------------------------------------------------------- > ImportError Traceback (most recent call last) > /opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/python3.5/site-packages/vtk/vtkFiltersPython.py in () > 4 # use relative import for installed modules > ----> 5 from .vtkFiltersPythonPython import * > 6 except ImportError: > > ImportError: dlopen(/opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/python3.5/site-packages/vtk/vtkFiltersPythonPython.so, 2): Symbol not found: __Py_ZeroStruct > Referenced from: /opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/libvtkWrappingPython27Core-8.1.1.dylib > Expected in: flat namespace > in /opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/libvtkWrappingPython27Core-8.1.1.dylib > > During handling of the above exception, another exception occurred: > > ImportError Traceback (most recent call last) > in () > ----> 1 import vtk > > /opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/python3.5/site-packages/vtk/__init__.py in () > 48 from .vtkFiltersPoints import * > 49 from .vtkFiltersProgrammable import * > ---> 50 from .vtkFiltersPython import * > 51 from .vtkFiltersSMP import * > 52 from .vtkFiltersSelection import * > > /opt/dev/versions/vtk/vtk-8.1.0-qt5-shared/lib/python3.5/site-packages/vtk/vtkFiltersPython.py in () > 7 # during build and testing, the modules will be elsewhere, > 8 # e.g. in lib directory or Release/Debug config directories > ----> 9 from vtkFiltersPythonPython import * > > ImportError: No module named 'vtkFiltersPythonPython' > > Many thanks for any hints on this! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Thu Jan 11 18:51:02 2018 From: juch at zhaw.ch (normanius) Date: Thu, 11 Jan 2018 16:51:02 -0700 (MST) Subject: [vtkusers] VTK with python wrapping In-Reply-To: References: <1515709027552-0.post@n5.nabble.com> Message-ID: <1515714662217-0.post@n5.nabble.com> Aaah, this could be the reason! :) Thanks for the quick reply. Can I disable the FiltersPython module also within the CMake interface? Or do I have to edit CMake source files? I was not able to figure it out. The other modules were the following, I guess. Module_vtkmpi4py Module_vtkRenderingMatplotlib -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From david.gobbi at gmail.com Thu Jan 11 19:03:07 2018 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 11 Jan 2018 17:03:07 -0700 Subject: [vtkusers] VTK with python wrapping In-Reply-To: <1515714662217-0.post@n5.nabble.com> References: <1515709027552-0.post@n5.nabble.com> <1515714662217-0.post@n5.nabble.com> Message-ID: Hmm, for some reason cmake doesn't provide an option to disable FiltersPython. Hopefully someone reading this will know why. If you delete Filters/Python/module.cmake from the source code, the module will not be built. I meant Module_vtkParallelMPI4Py (and Module_vtkRenderingMatplotlib) - David On Thu, Jan 11, 2018 at 4:51 PM, normanius wrote: > Aaah, this could be the reason! :) Thanks for the quick reply. > > Can I disable the FiltersPython module also within the CMake interface? Or > do I have to edit CMake source files? I was not able to figure it out. > > The other modules were the following, I guess. > Module_vtkmpi4py > Module_vtkRenderingMatplotlib > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.marsh at usask.ca Thu Jan 11 19:40:52 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Thu, 11 Jan 2018 18:40:52 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: <20180111192937.GA11091@megas.kitware.com> References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Looks like something is setting PROJ4_INCLUDE_DIR PROJ4_LIBRARY to the system's proj4. I use a custom findproj4 that only looks where I tell it. then I see that LIB_FILES:INTERNAL contains vtkproj4 LIB_FILES just holds all my 3rd party libraries I need to link against. Chris Marsh PhD Candidate chrismarsh.ca 121 Research Drive University of Saskatchewan On 11 January 2018 at 13:29, Ben Boeckel wrote: > On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: > > Thanks for the details. This doesn't seem to be working for me though. > I've > > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as > well > > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however neither > > works. I still see the vtklibproj4 in the output of ldd. > > CMake should be getting the flag. If you do: > > grep -i proj4 CMakeCache.txt > > do any variables stand out as potentially being set to use the internal > one? > > --Ben > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Thu Jan 11 20:43:14 2018 From: juch at zhaw.ch (normanius) Date: Thu, 11 Jan 2018 18:43:14 -0700 (MST) Subject: [vtkusers] VTK with python wrapping In-Reply-To: References: <1515709027552-0.post@n5.nabble.com> <1515714662217-0.post@n5.nabble.com> Message-ID: <1515721394551-0.post@n5.nabble.com> Thanks again for the note. I'll maybe try this. I also found your issue on gitlab: https://gitlab.kitware.com/vtk/vtk/issues/17062 , so you guys are aware of the problem as well. I just figured out that my PyQt5 and Qt/qmake versions do not match for Python2 and Python3 - so I have more hassles to solve first :::( -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From powerhak at naver.com Fri Jan 12 03:10:05 2018 From: powerhak at naver.com (Aleph) Date: Fri, 12 Jan 2018 01:10:05 -0700 (MST) Subject: [vtkusers] Mesh Copy - Boolean Operation Message-ID: <1515744605741-0.post@n5.nabble.com> Hi, Is there any way to duplicate boolean operation on the same mesh? 1. Do BooleanOperating(difference) on a mesh 2. Do BooleanOperating(Union) again next to the 1's position (the same mesh file) when i did it, the first one was disappeared(difference boolean). Anybody knows how to do it? Cheers Aleph -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From majid.msadeghi at yahoo.com Fri Jan 12 03:38:52 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Fri, 12 Jan 2018 08:38:52 +0000 (UTC) Subject: [vtkusers] Mesh Copy - Boolean Operation In-Reply-To: <1515744605741-0.post@n5.nabble.com> References: <1515744605741-0.post@n5.nabble.com> Message-ID: <895445565.1717305.1515746332163@mail.yahoo.com> I am not sure what you want to do, but you can always save the result of the first boolean operation in a new polydata, and then perform the second boolean on the result of the first boolean operation. On Friday, January 12, 2018, 10:10:21 AM GMT+2, Aleph wrote: Hi, Is there any way to duplicate boolean operation on the same mesh? 1. Do BooleanOperating(difference) on a mesh 2. Do BooleanOperating(Union) again next to the 1's position (the same mesh file) when i did it, the first one was disappeared(difference boolean). Anybody knows how to do it? Cheers Aleph -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From 278124177 at qq.com Fri Jan 12 06:55:29 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Fri, 12 Jan 2018 19:55:29 +0800 Subject: [vtkusers] streamline Message-ID: i have a .vtk file and display it with vtkpolydatamapper, how can i display this file with streamline? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: FBCDD131 at 2BA34813.31A2585A.png.jpg Type: image/jpeg Size: 180048 bytes Desc: not available URL: From jellby at yahoo.com Fri Jan 12 07:45:40 2018 From: jellby at yahoo.com (=?UTF-8?Q?Ignacio_Fern=c3=a1ndez_Galv=c3=a1n?=) Date: Fri, 12 Jan 2018 13:45:40 +0100 Subject: [vtkusers] Depth peeling and Qt Message-ID: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> Hi all, I'm trying to get depth peeling and Qt interface to work together with VTK 6.2.0 (Ubuntu 16.04) and python, and I'm not having much success. Depth peeling with "plain" VTK works fine (http://vtk.1045678.n5.nabble.com/Enable-depth-peeling-after-initialization-td5746070.html), but then problems start I can't try PyQt4 because "import vtk" crashes (see https://gitlab.kitware.com/vtk/vtk/issues/16009). So I modified https://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt to work with PyQt5. I also modified QVTKRenderWindowInteractor to use PyQt5 and configure the RenderWindow with: self._RenderWindow.SetMultiSamples(0) self._RenderWindow.SetAlphaBitPlanes(1) but (a): the sphere looks weird, like some facets being inside out and not being rendered, and (b): depth peeling is not enabled with the translucent object that works without Qt. If I use an external (non-Qt) render window, it works fine, but then the event loop conflicts with Qt and I get a working VTK window and a frozen Qt interface. I would appreciate some help or a working example, or even the assertion that it will never work. Thanks, Ignacio From sankhesh.jhaveri at kitware.com Fri Jan 12 08:48:51 2018 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Fri, 12 Jan 2018 13:48:51 +0000 Subject: [vtkusers] Depth peeling and Qt In-Reply-To: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> References: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> Message-ID: Hi Ignacio, In general, depth peeling is known to work with VTK and Qt5. Are you using the QVTKOpenGLWidget ? Could you post your modifications somewhere for us to see? Thanks, Sankhesh ? On Fri, Jan 12, 2018 at 7:45 AM Ignacio Fern?ndez Galv?n via vtkusers < vtkusers at vtk.org> wrote: > Hi all, > > I'm trying to get depth peeling and Qt interface to work together with > VTK 6.2.0 (Ubuntu 16.04) and python, and I'm not having much success. > > Depth peeling with "plain" VTK works fine > ( > http://vtk.1045678.n5.nabble.com/Enable-depth-peeling-after-initialization-td5746070.html > ), > but then problems start > > I can't try PyQt4 because "import vtk" crashes (see > https://gitlab.kitware.com/vtk/vtk/issues/16009). > > So I modified > https://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt to work > with PyQt5. I also modified QVTKRenderWindowInteractor to use PyQt5 and > configure the RenderWindow with: > > self._RenderWindow.SetMultiSamples(0) > self._RenderWindow.SetAlphaBitPlanes(1) > > but (a): the sphere looks weird, like some facets being inside out and > not being rendered, and (b): depth peeling is not enabled with the > translucent object that works without Qt. > > If I use an external (non-Qt) render window, it works fine, but then the > event loop conflicts with Qt and I get a working VTK window and a frozen > Qt interface. > > I would appreciate some help or a working example, or even the assertion > that it will never work. > > Thanks, > Ignacio > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Fri Jan 12 09:15:54 2018 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Fri, 12 Jan 2018 14:15:54 +0000 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Dan Lipsa made last changes perhaps he may have some suggestions. - aashish On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh wrote: > Looks like something is setting > PROJ4_INCLUDE_DIR > PROJ4_LIBRARY > to the system's proj4. I use a custom findproj4 that only looks where I > tell it. > > then I see that > LIB_FILES:INTERNAL > contains vtkproj4 > LIB_FILES just holds all my 3rd party libraries I need to link against. > > Chris Marsh > PhD Candidate > chrismarsh.ca > > 121 Research Drive > University of Saskatchewan > > On 11 January 2018 at 13:29, Ben Boeckel wrote: > >> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >> > Thanks for the details. This doesn't seem to be working for me though. >> I've >> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as >> well >> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >> neither >> > works. I still see the vtklibproj4 in the output of ldd. >> >> CMake should be getting the flag. If you do: >> >> grep -i proj4 CMakeCache.txt >> >> do any variables stand out as potentially being set to use the internal >> one? >> >> --Ben >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jellby at yahoo.com Fri Jan 12 09:50:37 2018 From: jellby at yahoo.com (=?UTF-8?Q?Ignacio_Fern=c3=a1ndez_Galv=c3=a1n?=) Date: Fri, 12 Jan 2018 15:50:37 +0100 Subject: [vtkusers] Depth peeling and Qt In-Reply-To: References: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> Message-ID: <128ad318-98cc-7f1b-1493-4959cd3e6976@yahoo.com> On 12/01/18, at 14:48, Sankhesh Jhaveri wrote: > > In general, depth peeling is known to work with VTK and Qt5. > Are you using the QVTKOpenGLWidget > ? > Could you post your modifications somewhere for us to see? > I'm not using QVTKOpenGLWidget directly, I'm just using QVTKRenderWindowInteractor, as in https://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt My modified EmbedPyQt.py: #============================================== #!/usr/bin/env python import sys import vtk from PyQt5.QtWidgets import QApplication, QFrame, QPushButton, QVBoxLayout, QMainWindow, QFrame from QVTKRenderWindowInteractor_5 import QVTKRenderWindowInteractor class MainWindow(QMainWindow): def __init__(self, parent = None): QMainWindow.__init__(self, parent) self.frame = QFrame() self.vl = QVBoxLayout() self.vtkWidget = QVTKRenderWindowInteractor(self.frame) self.vl.addWidget(self.vtkWidget) self.ren = vtk.vtkRenderer() self.ren.UseDepthPeelingOn() self.ren.SetOcclusionRatio(0.01) self.ren.SetMaximumNumberOfPeels(20) self.vtkWidget.GetRenderWindow().AddRenderer(self.ren) self.iren = self.vtkWidget.GetRenderWindow().GetInteractor() # Create source source = vtk.vtkSphereSource() source.SetCenter(0, 0, 0) source.SetRadius(5.0) # Create a mapper mapper = vtk.vtkPolyDataMapper() mapper.SetInputConnection(source.GetOutputPort()) # Create an actor actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().SetOpacity(0.5) self.ren.AddActor(actor) self.ren.ResetCamera() self.frame.setLayout(self.vl) self.setCentralWidget(self.frame) self.show() self.iren.Initialize() if __name__ == "__main__": app = QApplication(sys.argv) window = MainWindow() print window.ren.GetLastRenderingUsedDepthPeeling() sys.exit(app.exec_()) #============================================== and QVTKRenderWindowInteractor_5.py is the same as https://gitlab.kitware.com/vtk/vtk/blob/1cea85a8d40114374c329c8d26d92c4356df678a/Wrapping/Python/vtk/qt5/QVTKRenderWindowInteractor.py with just a couple of changes: $ diff -c QVTKRenderWindowInteractor.py QVTKRenderWindowInteractor_5.py *** QVTKRenderWindowInteractor.py 2018-01-12 14:59:18.194879513 +0100 --- QVTKRenderWindowInteractor_5.py 2018-01-12 15:32:09.765069627 +0100 *************** *** 164,169 **** --- 164,171 ---- self._RenderWindow = rw else: self._RenderWindow = vtk.vtkRenderWindow() + self._RenderWindow.SetMultiSamples(0) + self._RenderWindow.SetAlphaBitPlanes(1) WId = self.winId() *************** *** 366,372 **** self._Iren.KeyReleaseEvent() def wheelEvent(self, ev): ! if ev.delta() >= 0: self._Iren.MouseWheelForwardEvent() else: self._Iren.MouseWheelBackwardEvent() --- 368,374 ---- self._Iren.KeyReleaseEvent() def wheelEvent(self, ev): ! if ev.angleDelta().y() >= 0: self._Iren.MouseWheelForwardEvent() else: self._Iren.MouseWheelBackwardEvent() From shawn.waldon at kitware.com Fri Jan 12 09:54:41 2018 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Fri, 12 Jan 2018 09:54:41 -0500 Subject: [vtkusers] Depth peeling and Qt In-Reply-To: References: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> Message-ID: Hi Ignacio, IIRC, VTK 6.2 was before VTK had real support for Qt5 and there were still some major issues with VTK + Qt5 (as you have noticed). You will either have to backport changes or update to a newer VTK. I think VTK 8.1 may be the first release since QVTKOpenGLWidget (full Qt5 support) was added, although it may have been in 8.0. You could try backporting QVTKOpenGLWidget, but I'm not sure how difficult that will be (it requires Qt 5.5 or 5.6 minimum I think). Also, QVTKOpenGLWidget only works with the newer "OpenGL2" rendering backend which was still experimental in VTK 6.2. So you may have trouble with that too. Your easiest approach would probably be to use a newer VTK. HTH, Shawn On Fri, Jan 12, 2018 at 8:48 AM, Sankhesh Jhaveri < sankhesh.jhaveri at kitware.com> wrote: > Hi Ignacio, > > In general, depth peeling is known to work with VTK and Qt5. > Are you using the QVTKOpenGLWidget > ? > Could you post your modifications somewhere for us to see? > > Thanks, > Sankhesh > ? > > On Fri, Jan 12, 2018 at 7:45 AM Ignacio Fern?ndez Galv?n via vtkusers < > vtkusers at vtk.org> wrote: > >> Hi all, >> >> I'm trying to get depth peeling and Qt interface to work together with >> VTK 6.2.0 (Ubuntu 16.04) and python, and I'm not having much success. >> >> Depth peeling with "plain" VTK works fine >> (http://vtk.1045678.n5.nabble.com/Enable-depth-peeling- >> after-initialization-td5746070.html), >> but then problems start >> >> I can't try PyQt4 because "import vtk" crashes (see >> https://gitlab.kitware.com/vtk/vtk/issues/16009). >> >> So I modified >> https://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt to work >> with PyQt5. I also modified QVTKRenderWindowInteractor to use PyQt5 and >> configure the RenderWindow with: >> >> self._RenderWindow.SetMultiSamples(0) >> self._RenderWindow.SetAlphaBitPlanes(1) >> >> but (a): the sphere looks weird, like some facets being inside out and >> not being rendered, and (b): depth peeling is not enabled with the >> translucent object that works without Qt. >> >> If I use an external (non-Qt) render window, it works fine, but then the >> event loop conflicts with Qt and I get a working VTK window and a frozen >> Qt interface. >> >> I would appreciate some help or a working example, or even the assertion >> that it will never work. >> >> Thanks, >> Ignacio >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/ >> opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > > > -- > Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware > | (518) 881-4417 > ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Fri Jan 12 10:35:15 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Fri, 12 Jan 2018 10:35:15 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Chris, 1. Going back to the beginning of the thread, I don't understand why vtklibproj conflicts with another proj, given that we mangle all names. Can you send us the errors. 2. If you do want to build with the system proj4 Can you send up the output of: cat CMakeCache.txt | grep LIBPROJ This is what I have: LIBPROJ4_INCLUDE_DIR:PATH=/usr/include LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 LIBPROJ_BINDIR:PATH=bin LIBPROJ_DATADIR:PATH=share/proj LIBPROJ_DOCDIR:PATH=doc/proj LIBPROJ_INCLUDEDIR:PATH=include LIBPROJ_LIBDIR:PATH=lib LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so LIBPROJ_USE_THREAD:BOOL=ON //Use system-installed LIBPROJ4 VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ4_LIBRARIES LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 //MODIFIED property for variable: LIBPROJ4_LIBRARIES LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON //ADVANCED property for variable: LIBPROJ_BINDIR LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_DATADIR LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_DOCDIR LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_INCLUDEDIR LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_LIBDIR LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_M_LIB LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 //ADVANCED property for variable: LIBPROJ_USE_THREAD LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON Make sure LIBPROJ4_INCLUDE_DIR LIBPROJ4_LIBRARIES VTK_USE_SYSTEM_LIBPROJ4 have the correct values. All those are cmake variables, you change them using ccmake or cmake-gui. After that you call: cmake . make On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Dan Lipsa made last changes perhaps he may have some suggestions. > > - aashish > > On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh wrote: > >> Looks like something is setting >> PROJ4_INCLUDE_DIR >> PROJ4_LIBRARY >> to the system's proj4. I use a custom findproj4 that only looks where I >> tell it. >> >> then I see that >> LIB_FILES:INTERNAL >> contains vtkproj4 >> LIB_FILES just holds all my 3rd party libraries I need to link against. >> >> Chris Marsh >> PhD Candidate >> chrismarsh.ca >> >> 121 Research Drive >> >> University of Saskatchewan >> >> >> On 11 January 2018 at 13:29, Ben Boeckel wrote: >> >>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>> > Thanks for the details. This doesn't seem to be working for me though. >>> I've >>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as >>> well >>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>> neither >>> > works. I still see the vtklibproj4 in the output of ldd. >>> >>> CMake should be getting the flag. If you do: >>> >>> grep -i proj4 CMakeCache.txt >>> >>> do any variables stand out as potentially being set to use the internal >>> one? >>> >>> --Ben >>> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/ >> opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Fri Jan 12 10:46:19 2018 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Fri, 12 Jan 2018 15:46:19 +0000 Subject: [vtkusers] Depth peeling and Qt In-Reply-To: References: <00df27b4-ea8b-f1d4-241a-4b8969bcbdcc@yahoo.com> Message-ID: Hi Ignacio, I totally overlooked that you are using VTK 6.2. As Shawn pointed out, VTK gained better Qt5 support with QVTKOpenGLWidget which was added in 8.0. Hth, Sankhesh ? On Fri, Jan 12, 2018 at 9:55 AM Shawn Waldon wrote: > Hi Ignacio, > > IIRC, VTK 6.2 was before VTK had real support for Qt5 and there were still > some major issues with VTK + Qt5 (as you have noticed). You will either > have to backport changes or update to a newer VTK. I think VTK 8.1 may be > the first release since QVTKOpenGLWidget (full Qt5 support) was added, > although it may have been in 8.0. You could try backporting > QVTKOpenGLWidget, but I'm not sure how difficult that will be (it requires > Qt 5.5 or 5.6 minimum I think). Also, QVTKOpenGLWidget only works with the > newer "OpenGL2" rendering backend which was still experimental in VTK 6.2. > So you may have trouble with that too. Your easiest approach would > probably be to use a newer VTK. > > HTH, > Shawn > > On Fri, Jan 12, 2018 at 8:48 AM, Sankhesh Jhaveri < > sankhesh.jhaveri at kitware.com> wrote: > >> Hi Ignacio, >> >> In general, depth peeling is known to work with VTK and Qt5. >> Are you using the QVTKOpenGLWidget >> ? >> Could you post your modifications somewhere for us to see? >> >> Thanks, >> Sankhesh >> ? >> >> On Fri, Jan 12, 2018 at 7:45 AM Ignacio Fern?ndez Galv?n via vtkusers < >> vtkusers at vtk.org> wrote: >> >>> Hi all, >>> >>> I'm trying to get depth peeling and Qt interface to work together with >>> VTK 6.2.0 (Ubuntu 16.04) and python, and I'm not having much success. >>> >>> Depth peeling with "plain" VTK works fine >>> ( >>> http://vtk.1045678.n5.nabble.com/Enable-depth-peeling-after-initialization-td5746070.html >>> ), >>> but then problems start >>> >>> I can't try PyQt4 because "import vtk" crashes (see >>> https://gitlab.kitware.com/vtk/vtk/issues/16009). >>> >>> So I modified >>> https://www.vtk.org/Wiki/VTK/Examples/Python/Widgets/EmbedPyQt to work >>> with PyQt5. I also modified QVTKRenderWindowInteractor to use PyQt5 and >>> configure the RenderWindow with: >>> >>> self._RenderWindow.SetMultiSamples(0) >>> self._RenderWindow.SetAlphaBitPlanes(1) >>> >>> but (a): the sphere looks weird, like some facets being inside out and >>> not being rendered, and (b): depth peeling is not enabled with the >>> translucent object that works without Qt. >>> >>> If I use an external (non-Qt) render window, it works fine, but then the >>> event loop conflicts with Qt and I get a working VTK window and a frozen >>> Qt interface. >>> >>> I would appreciate some help or a working example, or even the assertion >>> that it will never work. >>> >>> Thanks, >>> Ignacio >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >>> >> >> >> -- >> Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware >> | (518) 881-4417 >> ? >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> >> > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.marsh at usask.ca Fri Jan 12 15:32:51 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Fri, 12 Jan 2018 14:32:51 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi Dan, I'm trying to figure out the issue I detail here: http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PROJ-4-with-quot- quot-td5338323.html http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6- Failed-to-initialize-PROJ-4-with-quot-quot-td5338107.html Effectively the error is that GDAL seems to call the incorrect library/something happens, and the projection fails. In an effort to resolve this I was looking at my binary via LDD and found $ ldd ~/build-release/bin/Release/CHM | grep proj4 libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/ lib/VTK/lib/libvtkproj4-8.0.so.1 (0x00002b517aa36000) libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 (0x00002b51944d2000) If I use patchelf (https://github.com/NixOS/patchelf) to strip libvtkproj4-8.0.so.1 from my binary, my code runs without the error. I don't quite understand why I don't have this problem on other machines though. Looking at other machines I compile on (using a custom VTK build) I don't see any reference to the VTK libproj4 via ldd. Thus I attributed the error to vtkproj4 inclusion. However if you mangle names, then I agree I don't understand why this is happening. Cheers Chris On 12 January 2018 at 09:35, Dan Lipsa wrote: > Chris, > > 1. Going back to the beginning of the thread, I don't understand why > vtklibproj conflicts with another proj, given that we mangle all names. Can > you send us the errors. > > 2. If you do want to build with the system proj4 > > Can you send up the output of: > cat CMakeCache.txt | grep LIBPROJ > > This is what I have: > LIBPROJ4_INCLUDE_DIR:PATH=/usr/include > LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 > LIBPROJ_BINDIR:PATH=bin > LIBPROJ_DATADIR:PATH=share/proj > LIBPROJ_DOCDIR:PATH=doc/proj > LIBPROJ_INCLUDEDIR:PATH=include > LIBPROJ_LIBDIR:PATH=lib > LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so > LIBPROJ_USE_THREAD:BOOL=ON > //Use system-installed LIBPROJ4 > VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON > //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR > LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ4_LIBRARIES > LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 > //MODIFIED property for variable: LIBPROJ4_LIBRARIES > LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON > //ADVANCED property for variable: LIBPROJ_BINDIR > LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_DATADIR > LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_DOCDIR > LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_INCLUDEDIR > LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_LIBDIR > LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_M_LIB > LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: LIBPROJ_USE_THREAD > LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 > //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 > VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 > //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 > VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON > > > Make sure > LIBPROJ4_INCLUDE_DIR > LIBPROJ4_LIBRARIES > VTK_USE_SYSTEM_LIBPROJ4 > have the correct values. > > All those are cmake variables, you change them using ccmake or cmake-gui. > After that you call: > > cmake . > make > > > > On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> Dan Lipsa made last changes perhaps he may have some suggestions. >> >> - aashish >> >> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh wrote: >> >>> Looks like something is setting >>> PROJ4_INCLUDE_DIR >>> PROJ4_LIBRARY >>> to the system's proj4. I use a custom findproj4 that only looks where I >>> tell it. >>> >>> then I see that >>> LIB_FILES:INTERNAL >>> contains vtkproj4 >>> LIB_FILES just holds all my 3rd party libraries I need to link against. >>> >>> Chris Marsh >>> PhD Candidate >>> chrismarsh.ca >>> >>> 121 Research Drive >>> >>> University of Saskatchewan >>> >>> >>> On 11 January 2018 at 13:29, Ben Boeckel >>> wrote: >>> >>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>> > Thanks for the details. This doesn't seem to be working for me >>>> though. I've >>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line as >>>> well >>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>>> neither >>>> > works. I still see the vtklibproj4 in the output of ldd. >>>> >>>> CMake should be getting the flag. If you do: >>>> >>>> grep -i proj4 CMakeCache.txt >>>> >>>> do any variables stand out as potentially being set to use the internal >>>> one? >>>> >>>> --Ben >>>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alican1812 at hotmail.com Sat Jan 13 06:08:58 2018 From: alican1812 at hotmail.com (alican) Date: Sat, 13 Jan 2018 04:08:58 -0700 (MST) Subject: [vtkusers] Nonlinear scaling of vtkPolyData Message-ID: <1515841738135-0.post@n5.nabble.com> Hello, I need to apply a nolinear scaling to my polydata. Like in a *Fig. B* ,instead of Fig.A (Sorry, I am not that good at drawing, but let's presume that these figures are cylinders and a cone) What is the best VTK way to achieve that? *What I have tried:* I tried to break my data into strips using vtkStripper and then to apply a different scale value to each strip, and then apply a new points' values to an original polydata. It was not smooth and very slow. If it matters, my polydata will always have between 10,000 to 20,000 vertices, it will never be larger. Thanks, AC -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From jackkykokoko at gmail.com Mon Jan 15 01:23:47 2018 From: jackkykokoko at gmail.com (jackyko1991) Date: Sun, 14 Jan 2018 23:23:47 -0700 (MST) Subject: [vtkusers] process.h conflict with windows header Message-ID: <1515997427033-0.post@n5.nabble.com> Hi I am trying to write a multithreaded program with boost::asio the boost::asio library is calling process.h to find _beginthreadex function from the header file, this is ok when using vtk 7 or older versions. When I upgrade to vtk 8, the process.h direct to vtk process.h instead of windows own c++ header, this confuse the boost library and cannot find the suitable built in function. Is it a bug in the latest release of vtk? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ben.boeckel at kitware.com Mon Jan 15 09:32:19 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 15 Jan 2018 09:32:19 -0500 Subject: [vtkusers] process.h conflict with windows header In-Reply-To: <1515997427033-0.post@n5.nabble.com> References: <1515997427033-0.post@n5.nabble.com> Message-ID: <20180115143219.GA2269@megas.kitware.com> On Sun, Jan 14, 2018 at 23:23:47 -0700, jackyko1991 wrote: > Hi I am trying to write a multithreaded program with boost::asio > > the boost::asio library is calling process.h to find _beginthreadex function > from the header file, this is ok when using vtk 7 or older versions. > > When I upgrade to vtk 8, the process.h direct to vtk process.h instead of > windows own c++ header, this confuse the boost library and cannot find the > suitable built in function. What header is this? VTK prefixes all of its include files with `vtk`. I'm not seeing one by that name in the source tree at least. --Ben From jackkykokoko at gmail.com Mon Jan 15 09:40:08 2018 From: jackkykokoko at gmail.com (jackyko1991) Date: Mon, 15 Jan 2018 07:40:08 -0700 (MST) Subject: [vtkusers] process.h conflict with windows header In-Reply-To: <20180115143219.GA2269@megas.kitware.com> References: <1515997427033-0.post@n5.nabble.com> <20180115143219.GA2269@megas.kitware.com> Message-ID: <1516027208892-0.post@n5.nabble.com> boost::asio includes in its header file when i use vtk 7 or older, this header point to the windows own header file however in vtk8, it points to Utilities/KWSys/vtksys/Process.h.in -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From dan.lipsa at kitware.com Mon Jan 15 11:03:30 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 15 Jan 2018 11:03:30 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi Chris, Is VTK in the call stack for the errors you described? If not, I think it is not involved in the errors. vtkproj should not interfere with proj, but you can make VTK use the system proj with the method described earlier. Is the message you are getting from proj saying that the string you pass is not valid? Maybe somebody overrides that memory? Try run your program though valgrind and/or comment out chunks of code trying to see who causes your error. Hope this helps, Dan On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh wrote: > Hi Dan, > > I'm trying to figure out the issue I detail here: > http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize- > PROJ-4-with-quot-quot-td5338323.html > http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed- > to-initialize-PROJ-4-with-quot-quot-td5338107.html > > Effectively the error is that GDAL seems to call the incorrect > library/something happens, and the projection fails. > > In an effort to resolve this I was looking at my binary via LDD and found > $ ldd ~/build-release/bin/Release/CHM | grep proj4 > libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 > (0x00002b517aa36000) > libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 > (0x00002b51944d2000) > > If I use patchelf (https://github.com/NixOS/patchelf) to strip > libvtkproj4-8.0.so.1 from my binary, my code runs without the error. > > I don't quite understand why I don't have this problem on other machines > though. Looking at other machines I compile on (using a custom VTK build) I > don't see any reference to the VTK libproj4 via ldd. > > Thus I attributed the error to vtkproj4 inclusion. However if you mangle > names, then I agree I don't understand why this is happening. > > Cheers > Chris > > > On 12 January 2018 at 09:35, Dan Lipsa wrote: > >> Chris, >> >> 1. Going back to the beginning of the thread, I don't understand why >> vtklibproj conflicts with another proj, given that we mangle all names. Can >> you send us the errors. >> >> 2. If you do want to build with the system proj4 >> >> Can you send up the output of: >> cat CMakeCache.txt | grep LIBPROJ >> >> This is what I have: >> LIBPROJ4_INCLUDE_DIR:PATH=/usr/include >> LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 >> LIBPROJ_BINDIR:PATH=bin >> LIBPROJ_DATADIR:PATH=share/proj >> LIBPROJ_DOCDIR:PATH=doc/proj >> LIBPROJ_INCLUDEDIR:PATH=include >> LIBPROJ_LIBDIR:PATH=lib >> LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so >> LIBPROJ_USE_THREAD:BOOL=ON >> //Use system-installed LIBPROJ4 >> VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON >> //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR >> LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ4_LIBRARIES >> LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 >> //MODIFIED property for variable: LIBPROJ4_LIBRARIES >> LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON >> //ADVANCED property for variable: LIBPROJ_BINDIR >> LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_DATADIR >> LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_DOCDIR >> LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_INCLUDEDIR >> LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_LIBDIR >> LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_M_LIB >> LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: LIBPROJ_USE_THREAD >> LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 >> //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >> VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 >> //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >> VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON >> >> >> Make sure >> LIBPROJ4_INCLUDE_DIR >> LIBPROJ4_LIBRARIES >> VTK_USE_SYSTEM_LIBPROJ4 >> have the correct values. >> >> All those are cmake variables, you change them using ccmake or cmake-gui. >> After that you call: >> >> cmake . >> make >> >> >> >> On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >>> Dan Lipsa made last changes perhaps he may have some suggestions. >>> >>> - aashish >>> >>> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh >>> wrote: >>> >>>> Looks like something is setting >>>> PROJ4_INCLUDE_DIR >>>> PROJ4_LIBRARY >>>> to the system's proj4. I use a custom findproj4 that only looks where I >>>> tell it. >>>> >>>> then I see that >>>> LIB_FILES:INTERNAL >>>> contains vtkproj4 >>>> LIB_FILES just holds all my 3rd party libraries I need to link against. >>>> >>>> Chris Marsh >>>> PhD Candidate >>>> chrismarsh.ca >>>> >>>> 121 Research Drive >>>> >>>> University of Saskatchewan >>>> >>>> >>>> On 11 January 2018 at 13:29, Ben Boeckel >>>> wrote: >>>> >>>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>>> > Thanks for the details. This doesn't seem to be working for me >>>>> though. I've >>>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line >>>>> as well >>>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>>>> neither >>>>> > works. I still see the vtklibproj4 in the output of ldd. >>>>> >>>>> CMake should be getting the flag. If you do: >>>>> >>>>> grep -i proj4 CMakeCache.txt >>>>> >>>>> do any variables stand out as potentially being set to use the internal >>>>> one? >>>>> >>>>> --Ben >>>>> >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> https://vtk.org/mailman/listinfo/vtkusers >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Mon Jan 15 14:48:10 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 15 Jan 2018 14:48:10 -0500 Subject: [vtkusers] process.h conflict with windows header In-Reply-To: <1516027208892-0.post@n5.nabble.com> References: <1515997427033-0.post@n5.nabble.com> <20180115143219.GA2269@megas.kitware.com> <1516027208892-0.post@n5.nabble.com> Message-ID: <20180115194810.GA23937@megas.kitware.com> On Mon, Jan 15, 2018 at 07:40:08 -0700, jackyko1991 wrote: > boost::asio includes in its header file > > when i use vtk 7 or older, this header point to the windows own header file > > however in vtk8, it points to Utilities/KWSys/vtksys/Process.h.in Ah, case insensitivity. Try installing VTK rather than using the build tree. The headers should be put under a `vtksys` directory rather than being available right in the VTK header directory. --Ben From stephan.lenz at tu-bs.de Tue Jan 16 03:49:57 2018 From: stephan.lenz at tu-bs.de (Stephan Lenz) Date: Tue, 16 Jan 2018 09:49:57 +0100 Subject: [vtkusers] vtkPNGWriter: Write reduced vtkUnstructuredGrid field data to PNG-file via vtkResampleWithDataset Message-ID: Hello everybody, I have problems setting up a pipeline to write data to an PNG-file. I have a 2-D simulation on a large rectangular non-uniform grid ( ~60.000.000 Cells ). For visualization of the results I would like to write PNG files (or other Imagefiles) in order to create an animation. I am already able to write VTK-ImageData files (.vti) and make an animation in Paraview. Nevertheless I would prefer to generate the animation directly from images, as the simulation domain should fill the whole animation domain. With paraview fitting the simulation domain seamlessly in the view is not trivial. My current pipeline is: ????????? // this adapter function couples my simulation datastructures to VTK ??????????? vtkSmartPointer grid = getVtkUnstructuredGrid(dataBase); ??????????? // generate the field data ??????????? vtkSmartPointer data = vtkSmartPointer::New(); ??????????? data->SetNumberOfComponents( 1 ); ??????????? data->SetName( "T" ); ??????????? for( Idx cellIdx = 0; cellIdx < numberOfCells; cellIdx++ ){ ??????????????? unsigned char value = getValue( cellIdx ); ??????????????? data->InsertNextValue( Tint ); ??????????? } ??????????? grid->GetCellData()->AddArray( data ); ??????????? // define the grid for the output ??????????? vtkSmartPointer image = vtkSmartPointer::New(); ??????????? image->SetDimensions(512+1,256+1,1); ??????????? image->SetSpacing( L/512, H/256, 0 ); ??????????? // resample the field data to the coarser vtkImageData ??????????? vtkSmartPointer resample = vtkSmartPointer::New(); ??????????? resample->SetSourceData( grid ); ??????????? resample->SetInputData( image ); ??????????? // write the data to PNG-file (does not work!) ??????????? vtkSmartPointer writerPNG = vtkSmartPointer::New(); ??????????? writerPNG->SetFileName( ( simulationName + ".png").c_str() ); ??????????? writerPNG->SetInputData( resample->GetOutput() ); ??????????? writerPNG->Write(); ??????????? // write the data to VTI-file (works!) ??????????? vtkSmartPointer writer = vtkSmartPointer::New(); ??????????? writer->SetFileName( ( simulationName + "." + writer->GetDefaultFileExtension() ).c_str() ); ??????????? writer->SetDataMode( vtkXMLWriter::Binary ); ??????????? writer->SetInputData( resample->GetOutput() ); ??????????? writer->Write(); The above code compiles and runs without errors, but I do not get any PNG-Files. The VTI-files are written and I can open them in Paraview, as usual. I tried many different things, but did not get single PNG-file out of this. When I, for example, change writerPNG->SetInputData( resample->GetOutput() ); to writerPNG->SetInputConnection( resample->GetOutputPort() ); I get a VTK Error message, that says "PNGWriter only supports unsigned char and unsigned short inputs". But as far as I see it the field data is unsigned char and this is confirmed by Paraview, when I look into the VTI-files (generated with both SetInputData and SetInputConnection). Do you see any obvious mistakes I make? How do I have to set up such a pipeline to get a PNG (or other image file) output. I would be glad for any help. Thank you very much, Stephan Lenz From majid.msadeghi at yahoo.com Tue Jan 16 04:40:53 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Tue, 16 Jan 2018 09:40:53 +0000 (UTC) Subject: [vtkusers] InteractorStyle Subclassing References: <169573414.1647520.1516095653470.ref@mail.yahoo.com> Message-ID: <169573414.1647520.1516095653470@mail.yahoo.com> Dear All, What I am trying to do is: Based on the position of the mouse click in the window, if no actor is clicked on, then move the camera (like InteractorStyleTrackballCamera) but if the mouse is clicked on an actor(and there are different actors in the scene), then move the actor (like InteractorStyleTrackballActor). Also limit the motion type of the actor to a specific translation or rotation. The way I think I might be able to do it is: Write my own interactor style with a combination of trackballActor and trackballCamera after I check the pickposition of the mouse. My question is: Am I in the right path? Can I do it in a faster or better way? Is there a widget which might help me? Thank you all. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Jan 16 08:36:56 2018 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 16 Jan 2018 08:36:56 -0500 Subject: [vtkusers] vtkPNGWriter: Write reduced vtkUnstructuredGrid field data to PNG-file via vtkResampleWithDataset In-Reply-To: References: Message-ID: My guess is that the PNG writer expect three components, not a single component array. vtkImageAppendComponents would be one way to make a three tuple, but it would be more straightforward to do it in the array construction with SetNumberOfComponents(3) followed by yourloop { InsertNextTuple3(Tint,Tint,Tint); } David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Jan 16, 2018 at 3:49 AM, Stephan Lenz wrote: > Hello everybody, > > I have problems setting up a pipeline to write data to an PNG-file. > > I have a 2-D simulation on a large rectangular non-uniform grid ( > ~60.000.000 Cells ). For visualization of the results I would like to write > PNG files (or other Imagefiles) in order to create an animation. > > I am already able to write VTK-ImageData files (.vti) and make an > animation in Paraview. Nevertheless I would prefer to generate the > animation directly from images, as the simulation domain should fill the > whole animation domain. With paraview fitting the simulation domain > seamlessly in the view is not trivial. > > My current pipeline is: > > // this adapter function couples my simulation datastructures to > VTK > vtkSmartPointer grid = > getVtkUnstructuredGrid(dataBase); > > // generate the field data > vtkSmartPointer data = > vtkSmartPointer::New(); > data->SetNumberOfComponents( 1 ); > data->SetName( "T" ); > for( Idx cellIdx = 0; cellIdx < numberOfCells; cellIdx++ ){ > unsigned char value = getValue( cellIdx ); > data->InsertNextValue( Tint ); > } > grid->GetCellData()->AddArray( data ); > > // define the grid for the output > vtkSmartPointer image = > vtkSmartPointer::New(); > image->SetDimensions(512+1,256+1,1); > image->SetSpacing( L/512, H/256, 0 ); > > // resample the field data to the coarser vtkImageData > vtkSmartPointer resample = > vtkSmartPointer::New(); > resample->SetSourceData( grid ); > resample->SetInputData( image ); > > // write the data to PNG-file (does not work!) > vtkSmartPointer writerPNG = > vtkSmartPointer::New(); > writerPNG->SetFileName( ( simulationName + ".png").c_str() ); > writerPNG->SetInputData( resample->GetOutput() ); > writerPNG->Write(); > > // write the data to VTI-file (works!) > vtkSmartPointer writer = > vtkSmartPointer::New(); > writer->SetFileName( ( simulationName + "." + > writer->GetDefaultFileExtension() ).c_str() ); > writer->SetDataMode( vtkXMLWriter::Binary ); > writer->SetInputData( resample->GetOutput() ); > writer->Write(); > > The above code compiles and runs without errors, but I do not get any > PNG-Files. The VTI-files are written and I can open them in Paraview, as > usual. I tried many different things, but did not get single PNG-file out > of this. > > When I, for example, change > > writerPNG->SetInputData( resample->GetOutput() ); > > to > > writerPNG->SetInputConnection( resample->GetOutputPort() ); > > I get a VTK Error message, that says "PNGWriter only supports unsigned > char and unsigned short inputs". But as far as I see it the field data is > unsigned char and this is confirmed by Paraview, when I look into the > VTI-files (generated with both SetInputData and SetInputConnection). > > Do you see any obvious mistakes I make? How do I have to set up such a > pipeline to get a PNG (or other image file) output. I would be glad for any > help. > > Thank you very much, > > Stephan Lenz > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Jan 16 08:51:31 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 16 Jan 2018 08:51:31 -0500 Subject: [vtkusers] InteractorStyle Subclassing In-Reply-To: <169573414.1647520.1516095653470@mail.yahoo.com> References: <169573414.1647520.1516095653470.ref@mail.yahoo.com> <169573414.1647520.1516095653470@mail.yahoo.com> Message-ID: That sounds like a reasonable approach to me. - Cory On Tue, Jan 16, 2018 at 4:40 AM, Majid Mohammad sadeghi via vtkusers wrote: > Dear All, > > What I am trying to do is: > > Based on the position of the mouse click in the window, if no actor is > clicked on, then move the camera (like InteractorStyleTrackballCamera) but > if the mouse is clicked on an actor(and there are different actors in the > scene), then move the actor (like InteractorStyleTrackballActor). Also limit > the motion type of the actor to a specific translation or rotation. > > The way I think I might be able to do it is: > > Write my own interactor style with a combination of trackballActor and > trackballCamera after I check the pickposition of the mouse. > > My question is: > > Am I in the right path? Can I do it in a faster or better way? Is there a > widget which might help me? > > Thank you all. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From bill.lorensen at gmail.com Tue Jan 16 09:37:54 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 16 Jan 2018 06:37:54 -0800 Subject: [vtkusers] vtkPNGWriter: Write reduced vtkUnstructuredGrid field data to PNG-file via vtkResampleWithDataset In-Reply-To: References: Message-ID: After resample->SetInputData( image ); do resample->Update(); On Tue, Jan 16, 2018 at 5:36 AM, David E DeMarle wrote: > My guess is that the PNG writer expect three components, not a single > component array. vtkImageAppendComponents would be one way to make a three > tuple, but it would be more straightforward to do it in the array > construction with > SetNumberOfComponents(3) followed by > yourloop { > InsertNextTuple3(Tint,Tint,Tint); > } > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Jan 16, 2018 at 3:49 AM, Stephan Lenz wrote: >> >> Hello everybody, >> >> I have problems setting up a pipeline to write data to an PNG-file. >> >> I have a 2-D simulation on a large rectangular non-uniform grid ( >> ~60.000.000 Cells ). For visualization of the results I would like to write >> PNG files (or other Imagefiles) in order to create an animation. >> >> I am already able to write VTK-ImageData files (.vti) and make an >> animation in Paraview. Nevertheless I would prefer to generate the animation >> directly from images, as the simulation domain should fill the whole >> animation domain. With paraview fitting the simulation domain seamlessly in >> the view is not trivial. >> >> My current pipeline is: >> >> // this adapter function couples my simulation datastructures to >> VTK >> vtkSmartPointer grid = >> getVtkUnstructuredGrid(dataBase); >> >> // generate the field data >> vtkSmartPointer data = >> vtkSmartPointer::New(); >> data->SetNumberOfComponents( 1 ); >> data->SetName( "T" ); >> for( Idx cellIdx = 0; cellIdx < numberOfCells; cellIdx++ ){ >> unsigned char value = getValue( cellIdx ); >> data->InsertNextValue( Tint ); >> } >> grid->GetCellData()->AddArray( data ); >> >> // define the grid for the output >> vtkSmartPointer image = >> vtkSmartPointer::New(); >> image->SetDimensions(512+1,256+1,1); >> image->SetSpacing( L/512, H/256, 0 ); >> >> // resample the field data to the coarser vtkImageData >> vtkSmartPointer resample = >> vtkSmartPointer::New(); >> resample->SetSourceData( grid ); >> resample->SetInputData( image ); >> >> // write the data to PNG-file (does not work!) >> vtkSmartPointer writerPNG = >> vtkSmartPointer::New(); >> writerPNG->SetFileName( ( simulationName + ".png").c_str() ); >> writerPNG->SetInputData( resample->GetOutput() ); >> writerPNG->Write(); >> >> // write the data to VTI-file (works!) >> vtkSmartPointer writer = >> vtkSmartPointer::New(); >> writer->SetFileName( ( simulationName + "." + >> writer->GetDefaultFileExtension() ).c_str() ); >> writer->SetDataMode( vtkXMLWriter::Binary ); >> writer->SetInputData( resample->GetOutput() ); >> writer->Write(); >> >> The above code compiles and runs without errors, but I do not get any >> PNG-Files. The VTI-files are written and I can open them in Paraview, as >> usual. I tried many different things, but did not get single PNG-file out of >> this. >> >> When I, for example, change >> >> writerPNG->SetInputData( resample->GetOutput() ); >> >> to >> >> writerPNG->SetInputConnection( resample->GetOutputPort() ); >> >> I get a VTK Error message, that says "PNGWriter only supports unsigned >> char and unsigned short inputs". But as far as I see it the field data is >> unsigned char and this is confirmed by Paraview, when I look into the >> VTI-files (generated with both SetInputData and SetInputConnection). >> >> Do you see any obvious mistakes I make? How do I have to set up such a >> pipeline to get a PNG (or other image file) output. I would be glad for any >> help. >> >> Thank you very much, >> >> Stephan Lenz >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From DLRdave at aol.com Tue Jan 16 10:06:34 2018 From: DLRdave at aol.com (David Cole) Date: Tue, 16 Jan 2018 10:06:34 -0500 Subject: [vtkusers] InteractorStyle Subclassing In-Reply-To: References: <169573414.1647520.1516095653470.ref@mail.yahoo.com> <169573414.1647520.1516095653470@mail.yahoo.com> Message-ID: It does sound reasonable. I work on a project where we do this: subclass the trackballActor interactor style and then instantiate and hold a camera interactor style that we delegate to "when appropriate", and the when appropriate is based on whether the trackballActor interaction prop is null or not at mouse down time. Totally works. I'd point you to it, but it's not publicly available open source at this point... Good luck! David C. On Tue, Jan 16, 2018 at 8:51 AM, Cory Quammen wrote: > That sounds like a reasonable approach to me. > > - Cory > > On Tue, Jan 16, 2018 at 4:40 AM, Majid Mohammad sadeghi via vtkusers > wrote: >> Dear All, >> >> What I am trying to do is: >> >> Based on the position of the mouse click in the window, if no actor is >> clicked on, then move the camera (like InteractorStyleTrackballCamera) but >> if the mouse is clicked on an actor(and there are different actors in the >> scene), then move the actor (like InteractorStyleTrackballActor). Also limit >> the motion type of the actor to a specific translation or rotation. >> >> The way I think I might be able to do it is: >> >> Write my own interactor style with a combination of trackballActor and >> trackballCamera after I check the pickposition of the mouse. >> >> My question is: >> >> Am I in the right path? Can I do it in a faster or better way? Is there a >> widget which might help me? >> >> Thank you all. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers From jayavardhanravi at outlook.com Tue Jan 16 11:41:21 2018 From: jayavardhanravi at outlook.com (Jay) Date: Tue, 16 Jan 2018 09:41:21 -0700 (MST) Subject: [vtkusers] Qt/VTK application unable to make transforms using the vtkTransform Message-ID: <1516120881677-0.post@n5.nabble.com> I tried to make the QT/VTK application using the vtkEventQtSlotConnect(). When i try to make the transform in the slot function the application crashes. Pseudo code: // created the actor vtkActor actor = new vtkActor; vtkTransfor trans = new vtkTransform; // created the event vtkEventQtSlotConnect(xx,xxx,xx,slot(slotFunction)); // slotfunction void slotFunction() { trans = vtkTransform::SafeDownCast(actor->getUserTransform()); trans->Identity(); /// this is where application crashes or stops running trans->RotateX(10); trans->Update(); renderWindow->Render(); } Any suggestion would be helpful. Regards, Jay -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From chris.marsh at usask.ca Tue Jan 16 14:17:08 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Tue, 16 Jan 2018 13:17:08 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi all, Thanks for the detailed thoughts. Is the message you are getting from proj saying that the string you pass is > not valid? > Correct. However, I've verified with both the GDAL and proj4 mailing lists that the string is correct. The string is actually output from proj4 itself, so I have substantial confidence in it. > Maybe somebody overrides that memory? > Try run your program though valgrind and/or comment out chunks of code > trying to see who causes your error. > Valgrind and the Intel memory tools show no memory corruption. Is VTK in the call stack for the errors you described? If not, I think it > is not involved in the errors. GDAL, as I understand, dynamically opens the .so at runtime, so it's tough to figure out exactly what it is doing. Looking at the backtrace in gdb shows that it appears to be calling into the system proj4 before it segfaults. If I use patchelf to strip the vtkproj4 reference, it is then fine. If use patchelf to strip the system proj4 leaving the vtkproj4, I get the same error and segfault. I *suspect* GDAL is doing the wrong thing here and loading the wrong library for some calls. This is all to say, I don't think it's a VTK problem per se, but is for whatever reason, conflicting on this system. Further weirdness is that on the machines this works 100%, I don't see any reference to libvtkproj4. I'll follow up after I rebuild everything again with the VTK system proj4. Thanks very much, Cheers Chris University of Saskatchewan On 15 January 2018 at 10:03, Dan Lipsa wrote: > Hi Chris, > Is VTK in the call stack for the errors you described? If not, I think it > is not involved in the errors. > > vtkproj should not interfere with proj, but you can make VTK use the > system proj with the method described earlier. > > Is the message you are getting from proj saying that the string you pass > is not valid? Maybe somebody overrides that memory? > Try run your program though valgrind and/or comment out chunks of code > trying to see who causes your error. > Hope this helps, > Dan > > > > On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh wrote: > >> Hi Dan, >> >> I'm trying to figure out the issue I detail here: >> http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PRO >> J-4-with-quot-quot-td5338323.html >> http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed- >> to-initialize-PROJ-4-with-quot-quot-td5338107.html >> >> Effectively the error is that GDAL seems to call the incorrect >> library/something happens, and the projection fails. >> >> In an effort to resolve this I was looking at my binary via LDD and found >> $ ldd ~/build-release/bin/Release/CHM | grep proj4 >> libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> (0x00002b517aa36000) >> libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 >> (0x00002b51944d2000) >> >> If I use patchelf (https://github.com/NixOS/patchelf) to strip >> libvtkproj4-8.0.so.1 from my binary, my code runs without the error. >> >> I don't quite understand why I don't have this problem on other machines >> though. Looking at other machines I compile on (using a custom VTK build) I >> don't see any reference to the VTK libproj4 via ldd. >> >> Thus I attributed the error to vtkproj4 inclusion. However if you mangle >> names, then I agree I don't understand why this is happening. >> >> Cheers >> Chris >> >> >> On 12 January 2018 at 09:35, Dan Lipsa wrote: >> >>> Chris, >>> >>> 1. Going back to the beginning of the thread, I don't understand why >>> vtklibproj conflicts with another proj, given that we mangle all names. Can >>> you send us the errors. >>> >>> 2. If you do want to build with the system proj4 >>> >>> Can you send up the output of: >>> cat CMakeCache.txt | grep LIBPROJ >>> >>> This is what I have: >>> LIBPROJ4_INCLUDE_DIR:PATH=/usr/include >>> LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 >>> LIBPROJ_BINDIR:PATH=bin >>> LIBPROJ_DATADIR:PATH=share/proj >>> LIBPROJ_DOCDIR:PATH=doc/proj >>> LIBPROJ_INCLUDEDIR:PATH=include >>> LIBPROJ_LIBDIR:PATH=lib >>> LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so >>> LIBPROJ_USE_THREAD:BOOL=ON >>> //Use system-installed LIBPROJ4 >>> VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON >>> //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR >>> LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ4_LIBRARIES >>> LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 >>> //MODIFIED property for variable: LIBPROJ4_LIBRARIES >>> LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON >>> //ADVANCED property for variable: LIBPROJ_BINDIR >>> LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_DATADIR >>> LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_DOCDIR >>> LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_INCLUDEDIR >>> LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_LIBDIR >>> LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_M_LIB >>> LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: LIBPROJ_USE_THREAD >>> LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 >>> //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>> VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 >>> //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>> VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON >>> >>> >>> Make sure >>> LIBPROJ4_INCLUDE_DIR >>> LIBPROJ4_LIBRARIES >>> VTK_USE_SYSTEM_LIBPROJ4 >>> have the correct values. >>> >>> All those are cmake variables, you change them using ccmake or cmake-gui. >>> After that you call: >>> >>> cmake . >>> make >>> >>> >>> >>> On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < >>> aashish.chaudhary at kitware.com> wrote: >>> >>>> Dan Lipsa made last changes perhaps he may have some suggestions. >>>> >>>> - aashish >>>> >>>> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh >>>> wrote: >>>> >>>>> Looks like something is setting >>>>> PROJ4_INCLUDE_DIR >>>>> PROJ4_LIBRARY >>>>> to the system's proj4. I use a custom findproj4 that only looks where >>>>> I tell it. >>>>> >>>>> then I see that >>>>> LIB_FILES:INTERNAL >>>>> contains vtkproj4 >>>>> LIB_FILES just holds all my 3rd party libraries I need to link against. >>>>> >>>>> Chris Marsh >>>>> PhD Candidate >>>>> chrismarsh.ca >>>>> >>>>> 121 Research Drive >>>>> >>>>> University of Saskatchewan >>>>> >>>>> >>>>> On 11 January 2018 at 13:29, Ben Boeckel >>>>> wrote: >>>>> >>>>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>>>> > Thanks for the details. This doesn't seem to be working for me >>>>>> though. I've >>>>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line >>>>>> as well >>>>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>>>>> neither >>>>>> > works. I still see the vtklibproj4 in the output of ldd. >>>>>> >>>>>> CMake should be getting the flag. If you do: >>>>>> >>>>>> grep -i proj4 CMakeCache.txt >>>>>> >>>>>> do any variables stand out as potentially being set to use the >>>>>> internal >>>>>> one? >>>>>> >>>>>> --Ben >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> https://vtk.org/mailman/listinfo/vtkusers >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayavardhanravi at outlook.com Wed Jan 17 10:49:27 2018 From: jayavardhanravi at outlook.com (Jay) Date: Wed, 17 Jan 2018 08:49:27 -0700 (MST) Subject: [vtkusers] Qt/VTK application unable to make transforms using the vtkTransform In-Reply-To: <1516120881677-0.post@n5.nabble.com> References: <1516120881677-0.post@n5.nabble.com> Message-ID: <1516204167643-0.post@n5.nabble.com> I tried to solved by checking the transform object exists in the memory. The vtkTransform object was deleted so there was memory access violation exception. By allocating the memory correctly the issue was solved. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From stephen.langer at nist.gov Wed Jan 17 18:52:02 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Wed, 17 Jan 2018 23:52:02 +0000 Subject: [vtkusers] Coincident topology questions In-Reply-To: References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> Message-ID: <356FC1A4-D905-41C9-93FA-40E6DEA22FD6@nist.gov> Hi Ken -- I've attached a short program that reproduces the problem. It creates a rectilinear grid (gray checkerboard pattern) and an unstructured grid (red tetrahedra). The surfaces of some of the tetrahedra are coincident with the outer surfaces of the checkerboard. If you rotate the view, the tetrahedra are not drawn correctly. I've tested this with vtk 8.1.0 on macOS 10.12.6 (using vtk built for cocoa) and on Ubuntu 17.10 (running under VirtualBox on macOS). Thanks for taking a look at it. -- Steve From: Ken Martin Date: Thursday, January 11, 2018 at 2:41 PM To: "Langer, Stephen A. (Fed)" Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] Coincident topology questions Yes, that should work and -3, -3 is pretty reasonable for values. Something odd is going on. Can you give a bit more detail or a snippet of code? On Thu, Jan 11, 2018 at 2:30 PM, Langer, Stephen A. (Fed) > wrote: So if I use vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); and mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); then polygons drawn with that mapper should obscure coincident polygons drawn with other mappers? That's not happening. What am I missing? -- Steve From: Ken Martin > Date: Wednesday, January 10, 2018 at 7:52 PM To: "Langer, Stephen A. (Fed)" > Cc: "vtkusers at vtk.org" > Subject: Re: [vtkusers] Coincident topology questions Here is part of an old email that has some description You can use the relative settings if the two coincident polygons are in two different mappers. On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote: > >> >> I wanted to take a second to write up a recent change I made to how VTK >> (on the OpenGL2 backend) can handle coincident geometry. Previously VTK >> supported global values for specifying a polygonal offset to push surfaces >> forward or back in the zbuffer. This was often used to draw a surface back >> a bit in the zbuffer, and then draw the same surface in wireframe mode at >> the normal z location. The result was a wireframe overlaid on top of the >> surface. This approach faced a couple limitations. Every surface was offset >> the same amount and there was no way to offset points from lines. To >> address this I have added a few methods to vtkMapper to specify global line >> and point offsets as well as ivars to hold local offsets per mapper. The >> global methods look like: >> >> static void SetResolveCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> while the instance methods look like: >> >> void SetRelativeCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> Both signatures use two parameters which are worth mentioning. The first >> factor is how much to shift the zbuffer based on how quickly the z values >> of the surface or line changes. This may seem complicated but it addresses >> a simple issue. Due to rasterization issues, surfaces and lines with sharp >> zvalue slopes are more prone to noise in the zvalues they produce. To >> combat that, we offset them by an amount that is based on their z slope. If >> the surface is perpendicular to the view direction the factor is >> irrelevant, but the more the surface is at a sharp angle to the view >> direction, the more the factor comes into play. A value of 1.0 to 2.0 is >> fairly typical for the factor. The second parameter is the units, a >> constant offset to the zbuffer. It is currently specified conservatively in >> terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is >> a good place to start. For rendering points we do not have a slope so those >> methods only take the units argument. >> >> I have changed the global defaults so that surfaces are offset at >> 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new >> test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top >> of lines on top of a surface while rendering the points first and the >> surface last (the opposite order of their visibility). >> >> Thanks >> Ken On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) > wrote: Hi -- How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology methods? I can't find an explanation for 'factor' and 'units'. The attached screenshot shows a surface representation of a grid of rectangular voxels and a wire-frame grid of tetrahedra. Four of the tetrahedral elements are also drawn with a surface representation in red and are supposed to obscure the voxels, but a mix of tex and voxel is drawn instead. The surfaces of the voxels and the tetrahedral are coplanar. They don't share nodes and edges, but the points on the x=0 face all have x=0 exactly. Is the coincident topology resolution machinery expected to work in this case? I'm using vtk 8.1.0. Thanks. -- Steve _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tetsandcubes.C Type: application/octet-stream Size: 7765 bytes Desc: tetsandcubes.C URL: From powerhak at naver.com Wed Jan 17 19:55:15 2018 From: powerhak at naver.com (Aleph) Date: Wed, 17 Jan 2018 17:55:15 -0700 (MST) Subject: [vtkusers] PolyData Opacity with QSlider Message-ID: <1516236915135-0.post@n5.nabble.com> Hi, Is there anybody who knows how to connect polydata with QSlider? I'd tried to control polydata opacity with QSlider, but it didn't work. For connecting those two, i need to use 'connect' function. One of instances of 'connect' is receiver and it must be QObject. But i don't know how to transfer polydata(or only opacity value) to QObject. If you know the way, please reply. Thanks. Cheers Aleph -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From dobashisuguru at gmail.com Wed Jan 17 22:24:11 2018 From: dobashisuguru at gmail.com (sdobashi) Date: Wed, 17 Jan 2018 20:24:11 -0700 (MST) Subject: [vtkusers] Wiki example "PolyDataContourToImageData" does not seem to work properly Message-ID: <1516245851731-0.post@n5.nabble.com> Hi everyone, Wiki example "PolyDataContourToImageData" does not seem to work properly: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataContourToImageData/ The output image "labelImage" is not a (filled) circle but has all zero values. However, if I replace extruder-> SetExtrusionTypeToNormalExtrusion (); to extruder-> SetExtrusionTypeToVectorExtrusion (); it seems work properly. Any updates have been done as for vtkPolyDataToImageStencil or something? or is there something wrong with me? I'm using the latest build at this time (commit: a23006d5008c55b2804e36225d4eda3f6147b949) and Visual Studio 2015. Any advice would be much appreciated. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bill.lorensen at gmail.com Thu Jan 18 00:38:09 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 17 Jan 2018 21:38:09 -0800 Subject: [vtkusers] Wiki example "PolyDataContourToImageData" does not seem to work properly In-Reply-To: <1516245851731-0.post@n5.nabble.com> References: <1516245851731-0.post@n5.nabble.com> Message-ID: I'll take a look. On Wed, Jan 17, 2018 at 7:24 PM, sdobashi wrote: > Hi everyone, > > Wiki example "PolyDataContourToImageData" does not seem to work properly: > https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataContourToImageData/ > > The output image "labelImage" is not a (filled) circle but has all zero > values. > > However, if I replace > > extruder-> SetExtrusionTypeToNormalExtrusion (); > > to > > extruder-> SetExtrusionTypeToVectorExtrusion (); > > it seems work properly. > > Any updates have been done as for vtkPolyDataToImageStencil or something? > or is there something wrong with me? > > I'm using the latest build at this time (commit: > a23006d5008c55b2804e36225d4eda3f6147b949) > and Visual Studio 2015. > > Any advice would be much appreciated. > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From bill.lorensen at gmail.com Thu Jan 18 01:10:48 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 17 Jan 2018 22:10:48 -0800 Subject: [vtkusers] Wiki example "PolyDataContourToImageData" does not seem to work properly In-Reply-To: References: <1516245851731-0.post@n5.nabble.com> Message-ID: You fix is correct. I'll update the example. Thanks Bill On Wed, Jan 17, 2018 at 9:38 PM, Bill Lorensen wrote: > I'll take a look. > > > On Wed, Jan 17, 2018 at 7:24 PM, sdobashi wrote: >> Hi everyone, >> >> Wiki example "PolyDataContourToImageData" does not seem to work properly: >> https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/PolyDataContourToImageData/ >> >> The output image "labelImage" is not a (filled) circle but has all zero >> values. >> >> However, if I replace >> >> extruder-> SetExtrusionTypeToNormalExtrusion (); >> >> to >> >> extruder-> SetExtrusionTypeToVectorExtrusion (); >> >> it seems work properly. >> >> Any updates have been done as for vtkPolyDataToImageStencil or something? >> or is there something wrong with me? >> >> I'm using the latest build at this time (commit: >> a23006d5008c55b2804e36225d4eda3f6147b949) >> and Visual Studio 2015. >> >> Any advice would be much appreciated. >> >> >> >> -- >> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers > > > > -- > Unpaid intern in BillsBasement at noware dot com -- Unpaid intern in BillsBasement at noware dot com From dobashisuguru at gmail.com Thu Jan 18 01:22:10 2018 From: dobashisuguru at gmail.com (sdobashi) Date: Wed, 17 Jan 2018 23:22:10 -0700 (MST) Subject: [vtkusers] Wiki example "PolyDataContourToImageData" does not seem to work properly In-Reply-To: References: <1516245851731-0.post@n5.nabble.com> Message-ID: <1516256530314-0.post@n5.nabble.com> Hi Bill, Thank you very much for your prompt response! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From 278124177 at qq.com Thu Jan 18 05:52:02 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Thu, 18 Jan 2018 18:52:02 +0800 Subject: [vtkusers] volumeRendering error with light Message-ID: when i add vtklight to the renderer and then use the vtkgpuvolumemapper to render a volume, the error has happened at this float status = light->GetSwitch(); if (status > 0.0) { double* aColor = light->GetAmbientColor(); double* dColor = light->GetDiffuseColor(); double* sColor = light->GetDiffuseColor(); double intensity = light->GetIntensity(); lightAmbientColor[numberOfLights][0] = aColor[0] * intensity; lightAmbientColor[numberOfLights][1] = aColor[1] * intensity; lightAmbientColor[numberOfLights][2] = aColor[2] * intensity; lightDiffuseColor[numberOfLights][0] = dColor[0] * intensity; lightDiffuseColor[numberOfLights][1] = dColor[1] * intensity; lightDiffuseColor[numberOfLights][2] = dColor[2] * intensity; lightSpecularColor[numberOfLights][0] = sColor[0] * intensity; lightSpecularColor[numberOfLights][1] = sColor[1] * intensity; lightSpecularColor[numberOfLights][2] = sColor[2] * intensity; 0x00007FFF5705CA91 (vtkRenderingVolumeOpenGL2-8.1.dll) -------------- next part -------------- An HTML attachment was scrubbed... URL: From nicolas.cedilnik at inria.fr Thu Jan 18 09:45:52 2018 From: nicolas.cedilnik at inria.fr (Nicolas Cedilnik) Date: Thu, 18 Jan 2018 15:45:52 +0100 Subject: [vtkusers] =?utf-8?q?Represent_2_different_scalars=C2=A0at_once?= =?utf-8?q?=3F?= Message-ID: Hi all, I'm looking for a way to visualize 2 different scalars on a unique rendering of a mesh. My idea would be to represent one scalars with a standard LUT such as JET (despite its being considered harmful), and to use the other scalars as a way to "modulate" this LUT. The second scalar could be used as a brightness/luminance/(any suggestion?) parameter over this LUT. Does this make any sense? Is this easily achievable with VTK? Thanks for your help, -- Nicolas From aashish.chaudhary at kitware.com Thu Jan 18 10:21:27 2018 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 18 Jan 2018 15:21:27 +0000 Subject: [vtkusers] volumeRendering error with light In-Reply-To: References: Message-ID: can you provide more details on the error? On Thu, Jan 18, 2018 at 5:52 AM ???? <278124177 at qq.com> wrote: > when i add vtklight to the renderer and then use the vtkgpuvolumemapper to > render a volume, the error has happened at this float status = > light->GetSwitch(); > if (status > 0.0) > { > double* aColor = light->GetAmbientColor(); > double* dColor = light->GetDiffuseColor(); > double* sColor = light->GetDiffuseColor(); > double intensity = light->GetIntensity(); > lightAmbientColor[numberOfLights][0] = aColor[0] * intensity; > lightAmbientColor[numberOfLights][1] = aColor[1] * intensity; > lightAmbientColor[numberOfLights][2] = aColor[2] * intensity; > lightDiffuseColor[numberOfLights][0] = dColor[0] * intensity; > lightDiffuseColor[numberOfLights][1] = dColor[1] * intensity; > lightDiffuseColor[numberOfLights][2] = dColor[2] * intensity; > lightSpecularColor[numberOfLights][0] = sColor[0] * intensity; > lightSpecularColor[numberOfLights][1] = sColor[1] * intensity; > lightSpecularColor[numberOfLights][2] = sColor[2] * intensity; > 0x00007FFF5705CA91 (vtkRenderingVolumeOpenGL2-8.1.dll) > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Thu Jan 18 10:57:35 2018 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 18 Jan 2018 15:57:35 +0000 Subject: [vtkusers] PolyData Opacity with QSlider In-Reply-To: <1516236915135-0.post@n5.nabble.com> References: <1516236915135-0.post@n5.nabble.com> Message-ID: Hi, Have your polydata object be accessible to a QObject derived class. Define a slot like changeOpacity in that same class and connect the slider?s valueChanged signal to that slot. The slot function can then change the opacity of the polydata based on the value of the slider. Hope that helps. Sankhesh ? On Wed, Jan 17, 2018 at 7:55 PM Aleph wrote: > Hi, > > Is there anybody who knows how to connect polydata with QSlider? > > I'd tried to control polydata opacity with QSlider, but it didn't work. > > For connecting those two, i need to use 'connect' function. > > One of instances of 'connect' is receiver and it must be QObject. > > But i don't know how to transfer polydata(or only opacity value) to > QObject. > > If you know the way, please reply. > > Thanks. > > Cheers > Aleph > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Thu Jan 18 12:24:03 2018 From: vianamp at gmail.com (matheus_viana) Date: Thu, 18 Jan 2018 10:24:03 -0700 (MST) Subject: [vtkusers] Fatal Python error: PyThreadState_Get: no current thread In-Reply-To: References: <7AE6EEEF-61E5-4C9E-B55F-EE78748F70CE@decisionvis.com> <0206B11A-E8C0-4D3D-BD83-A46D83D4F89D@decisionvis.com> Message-ID: <1516296243467-0.post@n5.nabble.com> Hi guys. What is the current status of this is issue? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From vianamp at gmail.com Thu Jan 18 12:36:04 2018 From: vianamp at gmail.com (matheus_viana) Date: Thu, 18 Jan 2018 10:36:04 -0700 (MST) Subject: [vtkusers] Problems Installing VTK-Python on OSX In-Reply-To: References: Message-ID: <1516296964356-0.post@n5.nabble.com> Hi Ranveer. Did you fix this problem? I was also able to get "import vtk" working on vtkpython, but not on python. And all my imports are fine: >>> import vtk >>> print(vtk.__file__) /Users/mviana/build/VTK-7.0.0/Wrapping/Python/vtk/__init__.py >>> import vtkCommonCorePython >>> print(vtkCommonCorePython.__file__) /Users/mviana/build/VTK-7.0.0/lib/vtkCommonCorePython.so One thing I observed was that if I run /usr/bin/vtkpython, then I get this error: mviana at Matheuss-MacBook-Pro:/$ vtkpython dyld: Library not loaded: @rpath/libpython3.6m.dylib Referenced from: /usr/local/bin/vtkpython Reason: image not found Abort trap: 6 However, if I run vtkpython from build directory, everything works fine. Any help is welcomed :) -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From Andx_roo at live.com Thu Jan 18 20:38:38 2018 From: Andx_roo at live.com (Andaharoo) Date: Thu, 18 Jan 2018 18:38:38 -0700 (MST) Subject: [vtkusers] Contour/Outside Faces of Tetrahedral Mesh Filter Message-ID: <1516325918718-0.post@n5.nabble.com> I'm looking for a filter to the find the "contour" of a tetrahedral mesh. IE: The outside faces. Faces that aren't shared by any two tetrahedron in the mesh. Does this exist or should I just write it myself? Thanks -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From Andx_roo at live.com Fri Jan 19 00:47:31 2018 From: Andx_roo at live.com (Andaharoo) Date: Thu, 18 Jan 2018 22:47:31 -0700 (MST) Subject: [vtkusers] PolyData Opacity with QSlider In-Reply-To: <1516236915135-0.post@n5.nabble.com> References: <1516236915135-0.post@n5.nabble.com> Message-ID: <1516340851740-0.post@n5.nabble.com> Not entirely sure what you need but in my program I connect to the valueChanged(int) signal emitted by a QSlider. So for example: connect(slider, SIGNAL(valueChanged(int)), this, SLOT(sliderChanged(int))); Which would connect to my sliderChanged(int) function. Then you can just do something like: void sliderChanged(int newValue) { actor->GetProperty()->SetOpacity(static_cast(newValue) / 100.0); } Then as long as your pipeline is setup like vtkPolyData -> vtkPolyDataMapper -> vtkActor and that actor is added to the renderer you should be fine. You might need to call update on your qvtkwidget. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From Andx_roo at live.com Fri Jan 19 00:57:17 2018 From: Andx_roo at live.com (Andaharoo) Date: Thu, 18 Jan 2018 22:57:17 -0700 (MST) Subject: [vtkusers] visualize vtkPolyData with CORONAL, SAGITALL and AXIAL planes In-Reply-To: References: Message-ID: <1516341437259-0.post@n5.nabble.com> You can cut a vtkPolyData (a mesh) with a plane and display it with vtkCutter vtkSmartPointer polyCutter = vtkSmartPointer::New(); polyCutter->SetCutFunction(Create a vtkPlane and set it here); polyCutter->SetInputData(Poly Data Here); polyCutter->Update(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(polyCutter->GetOutput()); mapper->ScalarVisibilityOff(); vtkSmartPointer sliceActor = vtkSmartPointer::New(); sliceActor->SetMappper(mapper); sliceActor->GetProperty()->LightingOff(); sliceActor->GetProperty()->SetColor(1.0, 0.0, 0.0); sliceActor->GetProperty()->SetLineWidth(2.0); renderer->AddActor(sliceActor); -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From felipebordeu at gmail.com Fri Jan 19 02:46:20 2018 From: felipebordeu at gmail.com (Felipe Bordeu) Date: Fri, 19 Jan 2018 08:46:20 +0100 Subject: [vtkusers] Contour/Outside Faces of Tetrahedral Mesh Filter In-Reply-To: <1516325918718-0.post@n5.nabble.com> References: <1516325918718-0.post@n5.nabble.com> Message-ID: Normally the extract surface of ParaView will do the job. or the GeometryFilter of VTK ( https://www.vtk.org/doc/nightly/html/classvtkGeometryFilter.html) Felipe Le 19 janv. 2018 02:38, "Andaharoo" a ?crit : > I'm looking for a filter to the find the "contour" of a tetrahedral mesh. > IE: > The outside faces. Faces that aren't shared by any two tetrahedron in the > mesh. Does this exist or should I just write it myself? Thanks > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Fri Jan 19 03:53:25 2018 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Fri, 19 Jan 2018 08:53:25 +0000 Subject: [vtkusers] wedge: different node ordering Message-ID: Hi everyone, Recently, a meshio user came up with an interesting problem in wedge node ordering when reading VTK files. The VTK specification [2] lists this [3] ordering, but a file in the wild had that [4]. They look almost identical at first sight, and in fact they both list wo triangles, where the `k`th node of the first is connected to the `k`th node of the second. In the ordering in the specification, however, the second triangle normal points towards the first triangle, while in the the other, the first triangle normal points towards the second triangle. ParaView will happily display both variants, but I'm wondering if the second case if formally covered by the specification. (The issue was discovered when doing FEM computations where the second variant led to negative Jacobians.) Cheers, Nico [1] https://github.com/nschloe/meshio/issues/185 [2] https://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf [3] https://user-images.githubusercontent.com/9031253/35021239-dbb37d7a-fae4-11e7-8534-167726495bd8.png [4] https://user-images.githubusercontent.com/181628/35061681-40a8ee76-fbc2-11e7-9fe3-caeff268738a.png -------------- next part -------------- An HTML attachment was scrubbed... URL: From rogertrullo at gmail.com Fri Jan 19 04:18:05 2018 From: rogertrullo at gmail.com (trullro1) Date: Fri, 19 Jan 2018 02:18:05 -0700 (MST) Subject: [vtkusers] Number of Points in Marching Cubes Message-ID: <1516353485627-0.post@n5.nabble.com> Hi everyone, I have a question about the marching cubes algorithm in VTK. I am actually working in a machine learning area, so I am not very familiar with graphics, I hope this question makes sense. So I have some 3D binary images, which I convert to a mesh using the marching cubes algorithm. The thing is that I have several of these meshes that I want to align, so that I can use a machine learning algorithm on this data. The problem is that the algorithms I have seen for alignment, need that all the shapes have the same number of points (Please correct me if I am wrong). So my question is, is there a way to have the marching cubes algorithm to produce a fixed number of points so that I can use the alignment algorithms? Or do you know about a better way to do it? Thanks!! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From liuchao.uk at hotmail.com Fri Jan 19 05:24:11 2018 From: liuchao.uk at hotmail.com (=?gb2312?B?wfUgs6w=?=) Date: Fri, 19 Jan 2018 10:24:11 +0000 Subject: [vtkusers] Polyline in vtkCell Message-ID: Hello VTK users, I am looking for a way of determining whether the polyline in a vtkCell is a straight line or curved polyline. The reason is that the cutter output needs to be written in custom format and if the polyline is a straight line, I can simply use the first point and last point to represent this polyline as a "line" to reduce the output file size. The data I deal with is read from STL (open surface). Language is Python. I have tried analysing the slope of each segment of the polyline. It works but speed is an issue. Any suggestions are welcomed! Many thanks. Cheers, Chao -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephan.lenz at tu-bs.de Fri Jan 19 05:40:50 2018 From: stephan.lenz at tu-bs.de (Stephan Lenz) Date: Fri, 19 Jan 2018 11:40:50 +0100 Subject: [vtkusers] vtkPNGWriter: Write reduced vtkUnstructuredGrid field data to PNG-file via vtkResampleWithDataset In-Reply-To: References: Message-ID: Thank you very much for your help. Both suggestions did not do the trick, though. I found out that my mistake was to assume that the vtkPNGWriter could access the PointData arrays of the vtkImageData. What I had to do is, to assign the array to the PointData Scalar. Then the PNG output works very well. Below, I shortly post the solution to my problem: void writePNG( vtkDataObject * inputData, int nx, int ny, double L, double H, std::string filename ) { ??? vtkSmartPointer image = vtkSmartPointer::New(); ??? image->SetDimensions( nx, ny, 1 ); ??? image->SetSpacing( L / ( nx - 1 ), H / ( ny - 1 ), 0 ); ??? vtkSmartPointer resample = vtkSmartPointer::New(); ??? resample->SetSourceData( inputData ); ??? resample->SetInputData( image ); ??? resample->Update(); ??? vtkSmartPointer image2 = (vtkImageData*) resample->GetOutput(); ??? image2->GetPointData()->SetScalars( image2->GetPointData()->GetArray( 0 ) ); ??? vtkSmartPointer writerPNG = vtkSmartPointer::New(); ??? writerPNG->SetFileName( ( filename + ".png" ).c_str() ); ??? writerPNG->SetInputData( image2 ); ??? writerPNG->Write(); } This function assumes that the vtkDataObject inputData has only one PointData array. If it has multiple image2->GetPointData()->GetArray( 0 ) has to be changed to image2->GetPointData()->GetArray("nameOfTheArray"). This PointData array has to be unsigned char or unsigned short (I tested only the former). It can be one component for a gray scale PNG or three components for a color PNG. I guess this is a nice and short way to reduce simulation data to images bypassing Paraview. Best regards Stephan Lenz Am 16.01.2018 um 15:37 schrieb Bill Lorensen: > After > resample->SetInputData( image ); > do > resample->Update(); > > > On Tue, Jan 16, 2018 at 5:36 AM, David E DeMarle > wrote: >> My guess is that the PNG writer expect three components, not a single >> component array. vtkImageAppendComponents would be one way to make a three >> tuple, but it would be more straightforward to do it in the array >> construction with >> SetNumberOfComponents(3) followed by >> yourloop { >> InsertNextTuple3(Tint,Tint,Tint); >> } >> >> >> David E DeMarle >> Kitware, Inc. >> Principal Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Tue, Jan 16, 2018 at 3:49 AM, Stephan Lenz wrote: >>> Hello everybody, >>> >>> I have problems setting up a pipeline to write data to an PNG-file. >>> >>> I have a 2-D simulation on a large rectangular non-uniform grid ( >>> ~60.000.000 Cells ). For visualization of the results I would like to write >>> PNG files (or other Imagefiles) in order to create an animation. >>> >>> I am already able to write VTK-ImageData files (.vti) and make an >>> animation in Paraview. Nevertheless I would prefer to generate the animation >>> directly from images, as the simulation domain should fill the whole >>> animation domain. With paraview fitting the simulation domain seamlessly in >>> the view is not trivial. >>> >>> My current pipeline is: >>> >>> // this adapter function couples my simulation datastructures to >>> VTK >>> vtkSmartPointer grid = >>> getVtkUnstructuredGrid(dataBase); >>> >>> // generate the field data >>> vtkSmartPointer data = >>> vtkSmartPointer::New(); >>> data->SetNumberOfComponents( 1 ); >>> data->SetName( "T" ); >>> for( Idx cellIdx = 0; cellIdx < numberOfCells; cellIdx++ ){ >>> unsigned char value = getValue( cellIdx ); >>> data->InsertNextValue( Tint ); >>> } >>> grid->GetCellData()->AddArray( data ); >>> >>> // define the grid for the output >>> vtkSmartPointer image = >>> vtkSmartPointer::New(); >>> image->SetDimensions(512+1,256+1,1); >>> image->SetSpacing( L/512, H/256, 0 ); >>> >>> // resample the field data to the coarser vtkImageData >>> vtkSmartPointer resample = >>> vtkSmartPointer::New(); >>> resample->SetSourceData( grid ); >>> resample->SetInputData( image ); >>> >>> // write the data to PNG-file (does not work!) >>> vtkSmartPointer writerPNG = >>> vtkSmartPointer::New(); >>> writerPNG->SetFileName( ( simulationName + ".png").c_str() ); >>> writerPNG->SetInputData( resample->GetOutput() ); >>> writerPNG->Write(); >>> >>> // write the data to VTI-file (works!) >>> vtkSmartPointer writer = >>> vtkSmartPointer::New(); >>> writer->SetFileName( ( simulationName + "." + >>> writer->GetDefaultFileExtension() ).c_str() ); >>> writer->SetDataMode( vtkXMLWriter::Binary ); >>> writer->SetInputData( resample->GetOutput() ); >>> writer->Write(); >>> >>> The above code compiles and runs without errors, but I do not get any >>> PNG-Files. The VTI-files are written and I can open them in Paraview, as >>> usual. I tried many different things, but did not get single PNG-file out of >>> this. >>> >>> When I, for example, change >>> >>> writerPNG->SetInputData( resample->GetOutput() ); >>> >>> to >>> >>> writerPNG->SetInputConnection( resample->GetOutputPort() ); >>> >>> I get a VTK Error message, that says "PNGWriter only supports unsigned >>> char and unsigned short inputs". But as far as I see it the field data is >>> unsigned char and this is confirmed by Paraview, when I look into the >>> VTI-files (generated with both SetInputData and SetInputConnection). >>> >>> Do you see any obvious mistakes I make? How do I have to set up such a >>> pipeline to get a PNG (or other image file) output. I would be glad for any >>> help. >>> >>> Thank you very much, >>> >>> Stephan Lenz >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > > From cory.quammen at kitware.com Fri Jan 19 07:43:30 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 19 Jan 2018 07:43:30 -0500 Subject: [vtkusers] Polyline in vtkCell In-Reply-To: References: Message-ID: Chao, I am not aware of any VTK functionality built in to simplify straight poly lines to a single line segment. - Cory On Fri, Jan 19, 2018 at 5:24 AM, ? ? wrote: > Hello VTK users, > > I am looking for a way of determining whether the polyline in a vtkCell is a > straight line or curved polyline. The reason is that the cutter output needs > to be written in custom format and if the polyline is a straight line, I can > simply use the first point and last point to represent this polyline as a > "line" to reduce the output file size. > > The data I deal with is read from STL (open surface). Language is Python. > > I have tried analysing the slope of each segment of the polyline. It works > but speed is an issue. > > Any suggestions are welcomed! Many thanks. > > Cheers, > Chao > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From vtk12af6bc42 at kant.sophonet.de Fri Jan 19 09:25:33 2018 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Fri, 19 Jan 2018 15:25:33 +0100 Subject: [vtkusers] Feed two vtkImageSlice with different resolution / spacing into vtkRectilinearSwipe Message-ID: <31db75bf4779c750715f38caf789afb7@kant.sophonet.de> Hi list, in an application, I would like to combine two images with vtkRectilinearSwipe. However, docs say that spacing and resolution need to match. Obviously I could use vtkImageReslice to adjust them for a first image to match the ones of a second image, but for large 3D vtkImageData sets, memory footprint just for visualization might not be necessary. Therefore, I was wondering about a lazy but fast approach of just reslicing one vtkImageSlice (which I have from a vtkImageResliceMapper) to another for eventually feeding the two into vtkRectilinearSwipe. Any ideas? Thanks, Sophonet From lasso at queensu.ca Fri Jan 19 10:45:07 2018 From: lasso at queensu.ca (Andras Lasso) Date: Fri, 19 Jan 2018 15:45:07 +0000 Subject: [vtkusers] Number of Points in Marching Cubes In-Reply-To: <1516353485627-0.post@n5.nabble.com> References: <1516353485627-0.post@n5.nabble.com> Message-ID: For non-rigid registration of 3D binary images, I would recommend computing signed distance map image from each image, and then align the distance maps using intensity-based image registration. This method does not require exact match of the surfaces, you get a warping transform as a result. You can compute the distance map in VTK (https://www.vtk.org/doc/nightly/html/classvtkImplicitModeller.html) but for registration you need to use a registration toolkit, such as ITK or ElastiX. If you want to try how well this approach works on your data without doing any programming, you can use 3D Slicer application with Segment Registration extension (https://www.slicer.org, https://github.com/SlicerRt/SegmentRegistration). If registration works well for you using the GUI, then you can automate the processing using Python scripting. Andras -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of trullro1 Sent: Friday, January 19, 2018 4:18 AM To: vtkusers at vtk.org Subject: [vtkusers] Number of Points in Marching Cubes Hi everyone, I have a question about the marching cubes algorithm in VTK. I am actually working in a machine learning area, so I am not very familiar with graphics, I hope this question makes sense. So I have some 3D binary images, which I convert to a mesh using the marching cubes algorithm. The thing is that I have several of these meshes that I want to align, so that I can use a machine learning algorithm on this data. The problem is that the algorithms I have seen for alignment, need that all the shapes have the same number of points (Please correct me if I am wrong). So my question is, is there a way to have the marching cubes algorithm to produce a fixed number of points so that I can use the alignment algorithms? Or do you know about a better way to do it? Thanks!! -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=%2B%2BP9evaQvsuDr%2BgwOdZqF9F%2FIQZxhUtUcO%2BzYttTJ3k%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=thTFQTExZr%2Bg4xVaWjMt74EtJEY5igO%2BQqwgg3zSuNE%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=jIk%2BIKIWX69A6epauVuP1L97ZfONshnanUQnrQPww0w%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=Ak4lMF7%2BZHUJmXBcPcAN6dPxbnv735Ahak%2FyD%2BJVHts%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=FVW0D6M6ttKS0UKbXmMudJFXnlygFPhMi%2FRdqhYwa5U%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7C99b2921d02f145cca7db08d55f1d90bb%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519502951961135&sdata=LVXkEviOqO%2BrCzSZnNeMvMgWz2B%2FfNZvvfO7%2B%2F1p9SE%3D&reserved=0 From rogertrullo at gmail.com Fri Jan 19 11:04:06 2018 From: rogertrullo at gmail.com (trullro1) Date: Fri, 19 Jan 2018 09:04:06 -0700 (MST) Subject: [vtkusers] Number of Points in Marching Cubes In-Reply-To: References: <1516353485627-0.post@n5.nabble.com> Message-ID: <1516377846400-0.post@n5.nabble.com> Thanks Andras! I hadn't thought about that! Now the thing is that I want to build a shape machine learning model, so probably I will need point to point correspondence to build feature vectors. But I think your idea can be the first step since now the shapes would be are roughly aligned. You think that makes sense? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From lasso at queensu.ca Fri Jan 19 11:13:09 2018 From: lasso at queensu.ca (Andras Lasso) Date: Fri, 19 Jan 2018 16:13:09 +0000 Subject: [vtkusers] Number of Points in Marching Cubes In-Reply-To: <1516377846400-0.post@n5.nabble.com> References: <1516353485627-0.post@n5.nabble.com> <1516377846400-0.post@n5.nabble.com> Message-ID: The result of the registration is a transform that gives you exact correspondence between each point positions between the images, not just a rough initial alignment. Of course you can use a simple rigid transform in the image registration step and then you only get an approximate alignment. But if you only need an approximate alignment you can just as well align using center of gravity, moments, etc. Andras -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of trullro1 Sent: Friday, January 19, 2018 11:04 AM To: vtkusers at vtk.org Subject: Re: [vtkusers] Number of Points in Marching Cubes Thanks Andras! I hadn't thought about that! Now the thing is that I want to build a shape machine learning model, so probably I will need point to point correspondence to build feature vectors. But I think your idea can be the first step since now the shapes would be are roughly aligned. You think that makes sense? -- Sent from: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fvtk.1045678.n5.nabble.com%2FVTK-Users-f1224199.html&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=dnQx70yr7NlvbuFpgdVCDRmOKIOcsM2g1sJttD5LDA0%3D&reserved=0 _______________________________________________ Powered by https://na01.safelinks.protection.outlook.com/?url=www.kitware.com&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=gA%2F%2F8F0gu0Z4v1SZtOg0XoJjRlsz3b7yS1JQtrDHZ6E%3D&reserved=0 Visit other Kitware open-source projects at https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.kitware.com%2Fopensource%2Fopensource.html&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=erCiUaZKtPifPZ61XcNoF2%2FbmitqKWS47hH2Tlf1qFc%3D&reserved=0 Please keep messages on-topic and check the VTK FAQ at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.vtk.org%2FWiki%2FVTK_FAQ&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=gNmCV3W2dTY%2FvO8BLooKbWEWwTNJTTMD6gCEWuK%2B2zA%3D&reserved=0 Search the list archives at: https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmarkmail.org%2Fsearch%2F%3Fq%3Dvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=9UwxhfbTyYd8cSH22v07pCf8%2FFvbxGG2SyVrhZiTCT4%3D&reserved=0 Follow this link to subscribe/unsubscribe: https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fvtk.org%2Fmailman%2Flistinfo%2Fvtkusers&data=02%7C01%7Classo%40queensu.ca%7Cf45381525ff743b5d0b608d55f564702%7Cd61ecb3b38b142d582c4efb2838b925c%7C1%7C0%7C636519746541577110&sdata=%2BGfSQref5jDqNHVECAc1lt6xf%2FGIiDWkxxCJLmUzLAk%3D&reserved=0 From rogertrullo at gmail.com Fri Jan 19 11:50:12 2018 From: rogertrullo at gmail.com (trullro1) Date: Fri, 19 Jan 2018 09:50:12 -0700 (MST) Subject: [vtkusers] Number of Points in Marching Cubes In-Reply-To: References: <1516353485627-0.post@n5.nabble.com> <1516377846400-0.post@n5.nabble.com> Message-ID: <1516380612501-0.post@n5.nabble.com> Thanks! I think I get it, I will try to use the resulting transform then. I already have ITK. Best, -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From andy.bauer at kitware.com Fri Jan 19 13:24:37 2018 From: andy.bauer at kitware.com (Andy Bauer) Date: Fri, 19 Jan 2018 13:24:37 -0500 Subject: [vtkusers] wedge: different node ordering In-Reply-To: References: Message-ID: Hi Nico, Unfortunately, #3 is wrong (even though it's in some of the VTK publications) and the only way to really determine that is by looking at the wedge cell. I believe that it renders properly because the cell faces are still the same, just the normals are wrong. Doing analytical operations may or may not be incorrect (e.g. Jacobian is negative for #3 as you noticed but maybe slicing may be correct). In my opinion this is an inconsistency with the cell specification since every other 3D cell type has ordering such that the normal will point outward from the cell when using the right-hand rule to determine normals. As a side note on this, you can see nearly all cell types (not polygons or polyhedra) using the vtkCellTypeSource (VTK) or the Unstructured Cell Types source (PV). See https://blog.kitware.com/new-vtk-source-for-generating-different-cell-types/ for more details. Cheers, Andy On Fri, Jan 19, 2018 at 3:53 AM, Nico Schl?mer wrote: > Hi everyone, > > Recently, a meshio user came up with an interesting problem in wedge node > ordering when reading VTK files. The VTK specification [2] lists this [3] > ordering, but a file in the wild had that [4]. They look almost identical > at first sight, and in fact they both list wo triangles, where the `k`th > node of the first is connected to the `k`th node of the second. In the > ordering in the specification, however, the second triangle normal points > towards the first triangle, while in the the other, the first triangle > normal points towards the second triangle. > > ParaView will happily display both variants, but I'm wondering if the > second case if formally covered by the specification. > > (The issue was discovered when doing FEM computations where the second > variant led to negative Jacobians.) > > Cheers, > Nico > > [1] https://github.com/nschloe/meshio/issues/185 > [2] https://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf > [3] https://user-images.githubusercontent.com/9031253/ > 35021239-dbb37d7a-fae4-11e7-8534-167726495bd8.png > [4] https://user-images.githubusercontent.com/181628/ > 35061681-40a8ee76-fbc2-11e7-9fe3-caeff268738a.png > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robertsawko at gmail.com Sat Jan 20 04:50:48 2018 From: robertsawko at gmail.com (robert.sawko) Date: Sat, 20 Jan 2018 02:50:48 -0700 (MST) Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid Message-ID: <1516441848429-0.post@n5.nabble.com> Dear VTKiers, I am pretty new to programming with VTK although I have worked indirectly with it through ParaView. I am in process of learning some of the basics. I'd like to check whether post-processing I am attempting is possible. I have a collection of VTU/VTK files containing unstructured grids. They represent 3D contour surfaces. I'd like to be able to iterate through all the surfaces in a file, compute their area and if they're closed surfaces, compute the volume enclosed. I learnt that I can compute volume and surfaces through vtkMassProperties object, but I tried this only on predefined sources e.g. cylinder or sphere. I also learnt that I can open my files with vtkXMLUnstructuredGridReader. Could anyone give me a hint on how to put the things together. My objective is, I feel, on the border of VTK focus. It's not strictly speaking visualisaiton, but post-processing. Roughly speaking I'd like to have the following: vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); for loop over all separate 3D contour surfaces if surface is closed: create vtkMassPropties and get volume Sorry, this may still look pretty vague, but I would appreciate any advice. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From robertsawko at gmail.com Sat Jan 20 10:06:32 2018 From: robertsawko at gmail.com (Robert Sawko) Date: Sat, 20 Jan 2018 08:06:32 -0700 (MST) Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid In-Reply-To: <1516441848429-0.post@n5.nabble.com> References: <1516441848429-0.post@n5.nabble.com> Message-ID: <1516460792980-0.post@n5.nabble.com> After some more googling, cross-checking in PV I think I can achieve what I want by using vtkConnectivityFilter and perhaps combining it with threshold filter. It doesn't look elegant but it gets me where I want as I want to simply extract each connected region. Then I can combine it with this example: https://cmake.org/Wiki/VTK/Examples/Cxx/PolyData/ClosedSurface I still don't know how to do my conversion from XMLUnstructuredGridReader, but I am looking into it... -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bill.lorensen at gmail.com Sat Jan 20 10:31:52 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 20 Jan 2018 07:31:52 -0800 Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid In-Reply-To: <1516460792980-0.post@n5.nabble.com> References: <1516441848429-0.post@n5.nabble.com> <1516460792980-0.post@n5.nabble.com> Message-ID: Please use the new VTK Examples site at: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/ClosedSurface/ We are deprecating the old site. Also, if you are just learning VTK, you may want to look at: https://lorensen.github.io/VTKExamples/site/VTKBookFigures/ It tells you how to get the free book online and implements the book's examples is C== and Python. Enjoy VTK, Bill On Sat, Jan 20, 2018 at 7:06 AM, Robert Sawko wrote: > After some more googling, cross-checking in PV I think I can achieve what I > want by using vtkConnectivityFilter and perhaps combining it with threshold > filter. It doesn't look elegant but it gets me where I want as I want to > simply extract each connected region. Then I can combine it with this > example: > > https://cmake.org/Wiki/VTK/Examples/Cxx/PolyData/ClosedSurface > > I still don't know how to do my conversion from XMLUnstructuredGridReader, > but I am looking into it... > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From robertsawko at gmail.com Sat Jan 20 11:02:22 2018 From: robertsawko at gmail.com (Robert Sawko) Date: Sat, 20 Jan 2018 09:02:22 -0700 (MST) Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid In-Reply-To: References: <1516441848429-0.post@n5.nabble.com> <1516460792980-0.post@n5.nabble.com> Message-ID: <1516464142166-0.post@n5.nabble.com> I seem to be close but not quite there. I am attaching my minimal code below. I am testing it on a file which contains 3 surfaces and I am using "ExtractSpecifiedRegion" mode to get each surface. When I render it the results look correct but the "is surface closed code" consistently returns "not closed", which I find a bit surprisng as on inspection it seems that all surfaces are actually closed. If you have any thoughts on this or how to simplify the code below, please let me know. #include #include #include #include #include #include #include #include int main ( int argc, char *argv[] ) { //parse command line arguments if(argc != 2) { std::cerr << "Usage: " << argv[0] << " Filename(.vtu)" << std::endl; return EXIT_FAILURE; } std::string filename = argv[1]; //read all the data from the file vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(filename.c_str()); reader->Update(); vtkSmartPointer connectivity = vtkSmartPointer::New(); connectivity->SetInputConnection(reader->GetOutputPort()); connectivity->SetExtractionModeToSpecifiedRegions(); connectivity->InitializeSpecifiedRegionList(); connectivity->Update(); std::cout << "Number of extracted regions: " << connectivity->GetNumberOfExtractedRegions() << "\nNumber of output ports: " << connectivity->GetNumberOfOutputPorts() << "\nExtraction mode: " << connectivity->GetExtractionModeAsString() << " (" << connectivity->GetExtractionMode() << ")" << std::endl; vtkSmartPointer geometry = vtkSmartPointer::New(); geometry->SetInputConnection(connectivity->GetOutputPort()); geometry->Update(); vtkSmartPointer featureEdges = vtkSmartPointer::New(); featureEdges->SetInputConnection(geometry->GetOutputPort()); vtkSmartPointer mass = vtkSmartPointer::New(); mass->SetInputConnection(geometry->GetOutputPort()); for(int i = 0; i < connectivity->GetNumberOfExtractedRegions(); i++) { connectivity->AddSpecifiedRegion(i); featureEdges->Update(); int numberOfOpenEdges = featureEdges->GetOutput()->GetNumberOfCells(); mass->Update(); std::cout << "Region " << i << "\n\tSurface area: " << mass->GetSurfaceArea(); if(numberOfOpenEdges > 0) { std::cout << "\n\tSurface is not closed" << std::endl; } else { std::cout << "\n\tSurface is closed" << std::endl; std::cout << "\n\tVolume is: " << mass->GetVolume() << std::endl; } } return EXIT_SUCCESS; } -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From robertsawko at gmail.com Sat Jan 20 12:10:43 2018 From: robertsawko at gmail.com (Robert Sawko) Date: Sat, 20 Jan 2018 10:10:43 -0700 (MST) Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid In-Reply-To: <1516464142166-0.post@n5.nabble.com> References: <1516441848429-0.post@n5.nabble.com> <1516460792980-0.post@n5.nabble.com> <1516464142166-0.post@n5.nabble.com> Message-ID: <1516468243364-0.post@n5.nabble.com> @Bill thanks for the welcome message! I downloaded the book. As for my minimal example I missed the featureEdges->FeatureEdgesOff(); featureEdges->BoundaryEdgesOn(); featureEdges->NonManifoldEdgesOn(); and the connectivity->DeleteSpecifiedRegion(i); I think I solved my original problem i.e. iterating over connected regions, but I am a bit stuck on the closed surface detection. I understand that vtkFeatureEdge filter is meant to extract edges which satisfy certain criteria particularly being a boundary edge, but I am just puzzled as my data set doesn't appaer to contain edges. I am currently playing with PV with the same filter and the edges indeed disappear if I select compatible options in the GUI. Please let me know if you have any suggestions. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From robertsawko at gmail.com Sat Jan 20 12:26:50 2018 From: robertsawko at gmail.com (Robert Sawko) Date: Sat, 20 Jan 2018 10:26:50 -0700 (MST) Subject: [vtkusers] Iterate over disjoint surfaces of an unstructured grid In-Reply-To: <1516468243364-0.post@n5.nabble.com> References: <1516441848429-0.post@n5.nabble.com> <1516460792980-0.post@n5.nabble.com> <1516464142166-0.post@n5.nabble.com> <1516468243364-0.post@n5.nabble.com> Message-ID: <1516469210831-0.post@n5.nabble.com> After further debug runs with ParaView I found that my test data set has corrupted edges which sit just below the surface. This is, I think, a problem of the code which generated the surfaces rather than the filter. Please see below. The surface may be "closed" but the the boundary edge exists and therfore the test fails. Again, I would appreciate suggestions, but all in all I think my initial problem is solved. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From alican1812 at hotmail.com Sat Jan 20 13:08:21 2018 From: alican1812 at hotmail.com (alican) Date: Sat, 20 Jan 2018 11:08:21 -0700 (MST) Subject: [vtkusers] Please, how to get vtkPolydata with a texture applied from vtkActor? Message-ID: <1516471701691-0.post@n5.nabble.com> I have an actor that is set with polydata clipped from another polydata. Afterward I am adding a texture to this actor. All works as expected. Now, in another place of my program I want to get a polydata, including texture, from this actor and append it to another polydata using vtkAppendPolyData filter. How can I do this? If I am using actor->getMapper()-> getInput() there is no texture. Thanks. AC vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->SetRadius(radius); sphereSource->SetCenter(closestPoint); sphereSource->Modified(); vtkSmartPointer clipper = vtkSmartPointer::New(); clipper->SetInputData(somePolyData); clipper->SetValue(0); clipper->InsideOutOn(); clipper->SetClipFunction(sphereSource); clipper->Modified(); clipper->Update(); vtkSmartPointer tmapper = vtkSmartPointer::New(); tmapper->SetInputConnection(clipper->GetOutputPort()); vtkSmartPointer pngReader = vtkSmartPointer::New(); pngReader->SetFileName(texture.toUtf8()); pngReader->Update(); vtkSmartPointer atext = vtkSmartPointer::New(); atext->SetInputConnection(pngReader->GetOutputPort()); atext->InterpolateOff(); atext->SetRepeat(false); atext->SetEdgeClamp(false); atext->Update(); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(clipper->GetOutput()); mapper->Update(); mapper->SetInputConnection(tmapper->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); actor->SetTexture(atext); actor->Modified(); myView->addActor(actor); myView->update(); -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bastian.heller at isko-engineers.de Mon Jan 22 02:02:36 2018 From: bastian.heller at isko-engineers.de (Heller, Bastian) Date: Mon, 22 Jan 2018 07:02:36 +0000 Subject: [vtkusers] Writing field data of vtkMultiBlockDataSet using vtkXMLMultiBlockDataWriter Message-ID: <7835340e2390413bad1bc50a0b89fc85@exchange1s0.ISKO.NET> Hi everyone, I have a large number of unstructured grids (>1000), which are grouped into vtkMultiBlockDataSets as follows: vtkMultiBlockDataSet (Root) vtkMultiBlockDataSet (SubTree 1) vtkUnstructuredGrid vtkUnstructuredGrid vtkMultiBlockDataSet (SubTree 2) ? ? Every subtree consists of several unstructured grids. These grids share the same field data, so I?ve assigned the field data to the subtrees (lets say SubTree 1 has a string array and an int array in its field data). My problem is: the field data of the subtrees is not written by vtkXMLMultiBlockDataWriter. How can I get this writer to write the field data? Thank you very much in advance. Best regards Bastian Heller Bastian Heller CAE Prozesse und Optimierung - Services & Development ISKO engineers AG Marie-Curie-Stra?e 2, 85055 Ingolstadt Fon: +49 8458 3112-286 Fax: +49 8458 3112-199 Mail: bastian.heller at isko-engineers.de [cid:imagec1f062.JPG at a5d77dea.4881ccb7] http://www.isko-engineers.de http://www.simuspace.de Folgen Sie uns auf: [Xing] [Twitter] [Google Plus] Sitz der AG: D-80807 Muenchen, Registergericht Muenchen HRB 129 078 Vorsitzender des Aufsichtsrates: Michael Welzel Vorstand: Michael Probst, Michael Krause USt-IdNr.: DE 812 837 909 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: imagec1f062.JPG Type: image/jpeg Size: 34269 bytes Desc: imagec1f062.JPG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image59e74b.PNG Type: image/png Size: 1089 bytes Desc: image59e74b.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image558e4b.PNG Type: image/png Size: 696 bytes Desc: image558e4b.PNG URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image9df1fc.PNG Type: image/png Size: 819 bytes Desc: image9df1fc.PNG URL: From johan.paasche at gmail.com Mon Jan 22 07:11:22 2018 From: johan.paasche at gmail.com (KitKat) Date: Mon, 22 Jan 2018 05:11:22 -0700 (MST) Subject: [vtkusers] Skeletonization 3D Message-ID: <1516623082595-0.post@n5.nabble.com> Hello, I am looking for a tool able to extract the centerline (skeletonize) of a structure in a 3D image, if possible without changing length. What i am passing is a 500 * 500 * 500 vtkImageData composed of char either at 0 or 1 (binary Image), and i would like to thin it until I have a 1-voxel wide line structure corresponding to the centerline, or median axis of the input image. I know ITK has a thinningfilter, but after looking the source code i saw that it only take 2D images. Does someone know if such a tool exists and is compatible with VTK ? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From chamara at piurimaging.com Mon Jan 22 09:52:02 2018 From: chamara at piurimaging.com (Jayalath Chamara) Date: Mon, 22 Jan 2018 14:52:02 +0000 Subject: [vtkusers] Skeletonization 3D In-Reply-To: <1516623082595-0.post@n5.nabble.com> References: <1516623082595-0.post@n5.nabble.com> Message-ID: Hi, I have used itkbinarythinningfilter for 3d skeletonization of vascular structures. So, for 3d data you can use the same filter. Best, Jaya ________________________________ From: vtkusers on behalf of KitKat Sent: Monday, January 22, 2018 1:11:22 PM To: vtkusers at vtk.org Subject: [vtkusers] Skeletonization 3D Hello, I am looking for a tool able to extract the centerline (skeletonize) of a structure in a 3D image, if possible without changing length. What i am passing is a 500 * 500 * 500 vtkImageData composed of char either at 0 or 1 (binary Image), and i would like to thin it until I have a 1-voxel wide line structure corresponding to the centerline, or median axis of the input image. I know ITK has a thinningfilter, but after looking the source code i saw that it only take 2D images. Does someone know if such a tool exists and is compatible with VTK ? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Mon Jan 22 12:20:53 2018 From: lasso at queensu.ca (Andras Lasso) Date: Mon, 22 Jan 2018 17:20:53 +0000 Subject: [vtkusers] Skeletonization 3D In-Reply-To: References: <1516623082595-0.post@n5.nabble.com> Message-ID: VMTK (http://www.vmtk.org/) has a number of sophisticated VTK/ITK-based tools for skeletonization and centerline extraction, which work for complex, branching structures. Andras From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Jayalath Chamara Sent: Monday, January 22, 2018 9:52 AM To: KitKat ; vtkusers at vtk.org Subject: Re: [vtkusers] Skeletonization 3D Hi, I have used itkbinarythinningfilter for 3d skeletonization of vascular structures. So, for 3d data you can use the same filter. Best, Jaya ________________________________ From: vtkusers > on behalf of KitKat > Sent: Monday, January 22, 2018 1:11:22 PM To: vtkusers at vtk.org Subject: [vtkusers] Skeletonization 3D Hello, I am looking for a tool able to extract the centerline (skeletonize) of a structure in a 3D image, if possible without changing length. What i am passing is a 500 * 500 * 500 vtkImageData composed of char either at 0 or 1 (binary Image), and i would like to thin it until I have a 1-voxel wide line structure corresponding to the centerline, or median axis of the input image. I know ITK has a thinningfilter, but after looking the source code i saw that it only take 2D images. Does someone know if such a tool exists and is compatible with VTK ? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From gdeee at web.de Mon Jan 22 12:55:02 2018 From: gdeee at web.de (gde23) Date: Mon, 22 Jan 2018 10:55:02 -0700 (MST) Subject: [vtkusers] vtkContextView with QVTKOpenGLWidget - SetRenderWindow / update data Message-ID: <1516643702671-0.post@n5.nabble.com> Hi, i want to render a vtkContextView inside a QVTKOpenGLWidget For this i have a function that takes some points and plots them void plot::ScatterPolt2D(vtkSmartPointer inputData, std::string &unit, double pv_val) { vtkNew contextView; vtkNew chart; contextView->GetScene()->AddItem(chart); vtkSmartPointer points = chart->AddPlot(vtkChart::POINTS); points->SetInputData(inputData, 0, 1); contextView->SetRenderWindow(m_vtk_widget->GetRenderWindow()); m_vtk_widget->GetRenderWindow()->Render(); } however when i try to update the data (and call the function again) the program crashes I guess because of some memory corruption with a not released smartPointer probabely from here?? contextView->SetRenderWindow(m_vtk_widget->GetRenderWindow()); -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From Andx_roo at live.com Mon Jan 22 23:04:52 2018 From: Andx_roo at live.com (Andaharoo) Date: Mon, 22 Jan 2018 21:04:52 -0700 (MST) Subject: [vtkusers] Simplify Mesh Filter? Message-ID: <1516680292397-0.post@n5.nabble.com> Is there a filter that can remove coplanar triangles? IE: Many coplanar triangles become just a few. I tried vtkCleanPolyData and I've tried vtkDecimatePro with 0.0 decimation? That didn't even make sense but I didn't know what else to try. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From baljci at hotmail.com Tue Jan 23 03:26:43 2018 From: baljci at hotmail.com (Boris Basic) Date: Tue, 23 Jan 2018 08:26:43 +0000 Subject: [vtkusers] How to disable linking with GL2PS VTK module? Message-ID: Hi, When generating a Visual Studio project using CMake, project which depends on vtkRenderingOpenGL2, the following preprocessor definition is added to the vcxproj: "vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2)". This requires the project to link with vtkRenderingGL2PSOpenGL2. But as my project does not require GL2PS, I would like to get rid of this forced dependency, but could not find how to remove or change the autoinit definition. Is it possible to do that? Cheers, Boris -------------- next part -------------- An HTML attachment was scrubbed... URL: From johan.paasche at gmail.com Tue Jan 23 04:26:58 2018 From: johan.paasche at gmail.com (KitKat) Date: Tue, 23 Jan 2018 02:26:58 -0700 (MST) Subject: [vtkusers] Skeletonization 3D In-Reply-To: <1516623082595-0.post@n5.nabble.com> References: <1516623082595-0.post@n5.nabble.com> Message-ID: <1516699618526-0.post@n5.nabble.com> Ok thanks i will have a look with ITK first, otherwise i made an algorithm that seems to work in most cases I find it strange because in the source code of ITKBinary imageFilter there are hard-coded 2 dimensions check ... Anyway i will give it a try Thanks again for your replies ! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From pkorir at ebi.ac.uk Tue Jan 23 04:45:17 2018 From: pkorir at ebi.ac.uk (Paul Korir) Date: Tue, 23 Jan 2018 09:45:17 +0000 Subject: [vtkusers] Simplify Mesh Filter? In-Reply-To: <1516680292397-0.post@n5.nabble.com> References: <1516680292397-0.post@n5.nabble.com> Message-ID: <39176440-8ad2-bc74-3c94-9c5ab6fbc467@ebi.ac.uk> I think you are on the right track with vtkDecimatePro. There are quite a number of examples available at https://lorensen.github.io/VTKExamples/site/Python/ Paul K. Korir, PhD Scientific Programmer EMBL-EBI 01223494422 On 23/01/2018 04:04, Andaharoo wrote: > Is there a filter that can remove coplanar triangles? IE: Many coplanar > triangles become just a few. I tried vtkCleanPolyData and I've tried > vtkDecimatePro with 0.0 decimation? That didn't even make sense but I didn't > know what else to try. > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers From bill.lorensen at gmail.com Tue Jan 23 09:52:14 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 23 Jan 2018 06:52:14 -0800 Subject: [vtkusers] Simplify Mesh Filter? In-Reply-To: <1516680292397-0.post@n5.nabble.com> References: <1516680292397-0.post@n5.nabble.com> Message-ID: If you set decimatepro with PreserveTopologyOn() and FeatureAngle to a small number like 1 degrees... On Jan 22, 2018 8:04 PM, "Andaharoo" wrote: > Is there a filter that can remove coplanar triangles? IE: Many coplanar > triangles become just a few. I tried vtkCleanPolyData and I've tried > vtkDecimatePro with 0.0 decimation? That didn't even make sense but I > didn't > know what else to try. > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.aungst at gmail.com Tue Jan 23 12:04:17 2018 From: robert.aungst at gmail.com (Robby Aungst) Date: Tue, 23 Jan 2018 11:04:17 -0600 Subject: [vtkusers] vtkWarpVector/vtkGlyph3D array problem In-Reply-To: References: <1514585486023-0.post@n5.nabble.com> <1514987344289-0.post@n5.nabble.com> <1515145455753-0.post@n5.nabble.com> Message-ID: As an update, I ended up figuring this out. Because I didn't yet have any vectors set on my polydata, vtkWarpVector escaped before it got to the code that copies the arrays over. This occurs at line 219 of https://gitlab.kitware.com/vtk/vtk/blob/master/Filters/General/vtkWarpVector.cxx. The copying would have occured at lines 244-246. My workaround was to set the vectors as all zeros, and then update them later if I wanted to warp them. Thanks for all the help. On Fri, Jan 5, 2018 at 9:48 AM, Robby Aungst wrote: > Here's what it looks like after I create the poly data: > > vtkPolyData (000000000FB4D290) > Debug: Off > Modified Time: 18815 > Reference Count: 1 > Registered Events: (none) > Information: 000000000FB3EDD0 > Data Released: False > Global Release Data: Off > UpdateTime: 0 > Field Data: > Debug: Off > Modified Time: 18719 > Reference Count: 1 > Registered Events: (none) > Number Of Arrays: 0 > Number Of Components: 0 > Number Of Tuples: 0 > Number Of Points: 19 > Number Of Cells: 0 > Cell Data: > Debug: Off > Modified Time: 18811 > Reference Count: 1 > Registered Events: > Registered Observers: > vtkObserver (000000000FAFB950) > Event: 33 > EventName: ModifiedEvent > Command: 000000000FB3ECE0 > Priority: 0 > Tag: 1 > Number Of Arrays: 1 > Array 0 name = objtypes2 > Number Of Components: 1 > Number Of Tuples: 19 > Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) > Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) > Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) > Scalars: (none) > Vectors: (none) > Normals: (none) > TCoords: (none) > Tensors: (none) > GlobalIds: (none) > PedigreeIds: (none) > EdgeFlag: (none) > Point Data: > Debug: Off > Modified Time: 18814 > Reference Count: 1 > Registered Events: > Registered Observers: > vtkObserver (000000000FAFBB30) > Event: 33 > EventName: ModifiedEvent > Command: 000000000FB3ECE0 > Priority: 0 > Tag: 1 > Number Of Arrays: 2 > Array 0 name = objtypes > Array 1 name = ZeroDColors > Number Of Components: 4 > Number Of Tuples: 19 > Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) > Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) > Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) > Scalars: > Debug: Off > Modified Time: 18771 > Reference Count: 2 > Registered Events: (none) > Name: ZeroDColors > Data type: unsigned char > Size: 93 > MaxId: 56 > NumberOfComponents: 3 > Information: 000000000FB3ED80 > Debug: Off > Modified Time: 18770 > Reference Count: 1 > Registered Events: (none) > Name: ZeroDColors > Number Of Components: 3 > Number Of Tuples: 19 > Size: 93 > MaxId: 56 > LookupTable: (none) > Vectors: (none) > Normals: (none) > TCoords: (none) > Tensors: (none) > GlobalIds: (none) > PedigreeIds: (none) > EdgeFlag: (none) > Bounds: > Xmin,Xmax: (-485.801, 63.3056) > Ymin,Ymax: (-54.0469, 53.9257) > Zmin,Zmax: (23.6906, 163.528) > Compute Time: 21365 > Number Of Points: 19 > Point Coordinates: 000000000FAED710 > Locator: 0000000000000000 > Number Of Vertices: 0 > Number Of Lines: 0 > Number Of Polygons: 0 > Number Of Triangle Strips: 0 > Number Of Pieces: 1 > Piece: -1 > Ghost Level: 0 > > Here's what it looks like after it passes through the vtkWarpVector (it's > now an unstructured grid instead of poly data, and the arrays are now > missing): > > vtkWarpVector (000000000AAFAAB0) > Debug: Off > Modified Time: 21598 > Reference Count: 2 > Registered Events: (none) > Executive: 000000000A2DBCD0 > ErrorCode: No error > Information: 000000000F697940 > AbortExecute: Off > Progress: 1 > Progress Text: (None) > Scale Factor: 10 > > > vtkUnstructuredGrid (000000000FD7C8A0) > Debug: Off > Modified Time: 21553 > Reference Count: 2 > Registered Events: (none) > Information: 000000000FB43920 > Data Released: False > Global Release Data: Off > UpdateTime: 21561 > Field Data: > Debug: Off > Modified Time: 21543 > Reference Count: 1 > Registered Events: (none) > Number Of Arrays: 0 > Number Of Components: 0 > Number Of Tuples: 0 > Number Of Points: 0 > Number Of Cells: 0 > Cell Data: > Debug: Off > Modified Time: 21551 > Reference Count: 1 > Registered Events: > Registered Observers: > vtkObserver (000000000FD856E0) > Event: 33 > EventName: ModifiedEvent > Command: 000000000FB43AB0 > Priority: 0 > Tag: 1 > Number Of Arrays: 0 > Number Of Components: 0 > Number Of Tuples: 0 > Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) > Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) > Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) > Scalars: (none) > Vectors: (none) > Normals: (none) > TCoords: (none) > Tensors: (none) > GlobalIds: (none) > PedigreeIds: (none) > EdgeFlag: (none) > Point Data: > Debug: Off > Modified Time: 21553 > Reference Count: 1 > Registered Events: > Registered Observers: > vtkObserver (000000000FD858F0) > Event: 33 > EventName: ModifiedEvent > Command: 000000000FB43AB0 > Priority: 0 > Tag: 1 > Number Of Arrays: 0 > Number Of Components: 0 > Number Of Tuples: 0 > Copy Tuple Flags: ( 1 1 1 1 1 0 1 1 ) > Interpolate Flags: ( 1 1 1 1 1 0 0 1 ) > Pass Through Flags: ( 1 1 1 1 1 1 1 1 ) > Scalars: (none) > Vectors: (none) > Normals: (none) > TCoords: (none) > Tensors: (none) > GlobalIds: (none) > PedigreeIds: (none) > EdgeFlag: (none) > Bounds: > Xmin,Xmax: (1, -1) > Ymin,Ymax: (1, -1) > Zmin,Zmax: (1, -1) > Compute Time: 0 > Number Of Points: 0 > Point Coordinates: 0000000000000000 > Locator: 0000000000000000 > Number Of Pieces: 1 > Piece: 0 > Ghost Level: 0 > > I posted a simple example earlier in the thread that replicates the > behavior I'm seeing. Thanks for your help! > > > On Fri, Jan 5, 2018 at 3:44 AM, Charles Kind > wrote: > >> Robby, >> >> Could you print to console, or whatever, the datastructure before and >> after >> WarpVectors and let me see them? ie In Python I just use >> print(datastructure). >> >> Charlie >> >> >> >> -- >> Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From allison.vacanti at kitware.com Tue Jan 23 13:10:02 2018 From: allison.vacanti at kitware.com (Allie Vacanti) Date: Tue, 23 Jan 2018 13:10:02 -0500 Subject: [vtkusers] How to disable linking with GL2PS VTK module? In-Reply-To: References: Message-ID: vtkRenderingGL2PSOpenGL2 is an implementation detail that bridges the rendering library and gl2ps without creating a direct dependency on gl2ps. By design, linking to it should not pull in the actual gl2ps library as a dependency. I'm not aware of any way to disable this module, AFAIK it seems to be autoenabled it implements a pure abstract interface in vtkRenderingOpenGL2. Someone with more knowledge of the details for the IMPLEMENTS keyword in the module system may know of a trick that I'm not aware of, though. HTH, Allie On Tue, Jan 23, 2018 at 3:26 AM, Boris Basic wrote: > Hi, > > > When generating a Visual Studio project using CMake, project which depends > on vtkRenderingOpenGL2, the following preprocessor definition is added to > the vcxproj: "vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2)". > This requires the project to link with vtkRenderingGL2PSOpenGL2. But as > my project does not require GL2PS, I would like to get rid of this forced > dependency, but could not find how to remove or change the autoinit > definition. Is it possible to do that? > > > Cheers, > > Boris > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From james.shi at sbcglobal.net Tue Jan 23 17:18:18 2018 From: james.shi at sbcglobal.net (James Shi) Date: Tue, 23 Jan 2018 22:18:18 +0000 (UTC) Subject: [vtkusers] Bug with vtkImplicitPlaneWidget2? References: <253380768.3673634.1516745898485.ref@mail.yahoo.com> Message-ID: <253380768.3673634.1516745898485@mail.yahoo.com> Hi everyone, I noticed that if I reset the camera after turning on vtkImplicitPlaneWidget2, nothing is visible, but if I reset the camera before, everything looks fine.? Am I not supposed to reset the camera after turning on the widget, or is there a bug?? I'm using VTK 8.0.1 and Python 3.6.3.Here is the broken version: import vtk cone = vtk.vtkConeSource()mapper = vtk.vtkPolyDataMapper()actor = vtk.vtkActor()renderer = vtk.vtkRenderer()window = vtk.vtkRenderWindow()interactor = vtk.vtkRenderWindowInteractor() mapper.SetInputConnection(cone.GetOutputPort())actor.SetMapper(mapper)renderer.AddActor(actor)window.AddRenderer(renderer)interactor.SetRenderWindow(window) widget = vtk.vtkImplicitPlaneWidget2()widget.CreateDefaultRepresentation()rep = widget.GetImplicitPlaneRepresentation()widget.SetInteractor(interactor)rep.SetWidgetBounds(cone.GetOutput().GetBounds())widget.On()renderer.ResetCamera() interactor.Start() Working version for comparison (notice only the renderer.ResetCamera() line moved): import vtk cone = vtk.vtkConeSource()mapper = vtk.vtkPolyDataMapper()actor = vtk.vtkActor()renderer = vtk.vtkRenderer()window = vtk.vtkRenderWindow()interactor = vtk.vtkRenderWindowInteractor() mapper.SetInputConnection(cone.GetOutputPort())actor.SetMapper(mapper)renderer.AddActor(actor)window.AddRenderer(renderer)interactor.SetRenderWindow(window)renderer.ResetCamera() widget = vtk.vtkImplicitPlaneWidget2()widget.CreateDefaultRepresentation()rep = widget.GetImplicitPlaneRepresentation()widget.SetInteractor(interactor)rep.SetWidgetBounds(cone.GetOutput().GetBounds())widget.On() interactor.Start() I tried printing the bounds of all props, and one of them (I think the sphere in vtkImplicitPlaneRepresentation) has bounds (0.0, 0.0, 0.0, 0.0, -1e+299, 1e+299), which may have caused the issue.? Also, I tried using vtkBoxWidget2 for comparison, and this widget didn't have any issue. Thanks,James -------------- next part -------------- An HTML attachment was scrubbed... URL: From baljci at hotmail.com Wed Jan 24 03:31:28 2018 From: baljci at hotmail.com (Boris Basic) Date: Wed, 24 Jan 2018 08:31:28 +0000 Subject: [vtkusers] How to disable linking with GL2PS VTK module? In-Reply-To: References: , Message-ID: Thanks! Actually I found a hack by adding "#undef vtkRenderingOpenGL2_AUTOINIT" in one header of my project. Though it's not very elegant, it did the job. Best, Boris ________________________________ De : Allie Vacanti Envoy? : mardi 23 janvier 2018 19:10 ? : Boris Basic Cc : vtk vtk Objet : Re: [vtkusers] How to disable linking with GL2PS VTK module? vtkRenderingGL2PSOpenGL2 is an implementation detail that bridges the rendering library and gl2ps without creating a direct dependency on gl2ps. By design, linking to it should not pull in the actual gl2ps library as a dependency. I'm not aware of any way to disable this module, AFAIK it seems to be autoenabled it implements a pure abstract interface in vtkRenderingOpenGL2. Someone with more knowledge of the details for the IMPLEMENTS keyword in the module system may know of a trick that I'm not aware of, though. HTH, Allie On Tue, Jan 23, 2018 at 3:26 AM, Boris Basic > wrote: Hi, When generating a Visual Studio project using CMake, project which depends on vtkRenderingOpenGL2, the following preprocessor definition is added to the vcxproj: "vtkRenderingOpenGL2_AUTOINIT=1(vtkRenderingGL2PSOpenGL2)". This requires the project to link with vtkRenderingGL2PSOpenGL2. But as my project does not require GL2PS, I would like to get rid of this forced dependency, but could not find how to remove or change the autoinit definition. Is it possible to do that? Cheers, Boris _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From alican1812 at hotmail.com Wed Jan 24 05:11:54 2018 From: alican1812 at hotmail.com (alican) Date: Wed, 24 Jan 2018 03:11:54 -0700 (MST) Subject: [vtkusers] vtkPolygonalSurfacePointPlacer takes 7 seconds to place a point. Message-ID: <1516788714658-0.post@n5.nabble.com> This piece of code takes 7 seconds for one point on 40,000 points' polydata. Is it an expected performance? Is there something I can do to improve it? Unfortunately, I cannot decimate, the data should be preserved as is. Thank you, AC vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(input);// of vtkPolyData type vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer interactor = vtkSmartPointer::New(); interactor->SetRenderWindow(renderWindow); renderer->AddActor(actor); vtkSmartPointer contourWidget = vtkSmartPointer::New(); contourWidget->SetInteractor(interactor); vtkOrientedGlyphContourRepresentation* rep = vtkOrientedGlyphContourRepresentation::SafeDownCast(contourWidget->GetRepresentation()); vtkPolygonalSurfaceContourLineInterpolator * lip = vtkPolygonalSurfaceContourLineInterpolator::New(); lip->GetPolys()->AddItem(input); rep->SetLineInterpolator(lip); vtkSmartPointer pointPlacer = vtkSmartPointer::New(); pointPlacer->AddProp(actor); pointPlacer->GetPolys()->AddItem(input); //pointPlacer->SnapToClosestPointOn(); rep->GetLinesProperty()->SetColor(1, 0, 0); rep->GetLinesProperty()->SetLineWidth(3.0); rep->SetPointPlacer(pointPlacer); contourWidget->EnabledOn(); renderer->ResetCamera(); renderWindow->Render(); interactor->Initialize(); interactor->Start(); -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ben.boeckel at kitware.com Wed Jan 24 08:36:05 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 24 Jan 2018 08:36:05 -0500 Subject: [vtkusers] How to disable linking with GL2PS VTK module? In-Reply-To: References: Message-ID: <20180124133605.GA20878@megas.kitware.com> On Wed, Jan 24, 2018 at 08:31:28 +0000, Boris Basic wrote: > Actually I found a hack by adding "#undef > vtkRenderingOpenGL2_AUTOINIT" in one header of my project. Though it's > not very elegant, it did the job. How are you calling `find_package(VTK)`? If you don't give components, all compiled modules are loaded and assumed to be used at once, hence the autoinit. You can also use `vtk_module_config` to set `VTK_LIBRARIES` up with a subset of modules (at least based on the examples). --Ben From ken.martin at kitware.com Wed Jan 24 09:22:14 2018 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 24 Jan 2018 09:22:14 -0500 Subject: [vtkusers] Coincident topology questions In-Reply-To: <356FC1A4-D905-41C9-93FA-40E6DEA22FD6@nist.gov> References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> <356FC1A4-D905-41C9-93FA-40E6DEA22FD6@nist.gov> Message-ID: Ahh I think I see what the issue is. If you want to try it I think it can be fixed in vtkDataSetMapper.cxx around line 134. It copies a bunch of properties from itself to a polydata mapper that does the rendering. But it does not copy the coincident settings so they are ignored. I think it can be fixed with the following changes https://gitlab.kitware.com/vtk/vtk/merge_requests/3836/diffs if you want to give it a try. On Wed, Jan 17, 2018 at 6:52 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > Hi Ken -- > > > > I've attached a short program that reproduces the problem. It creates a > rectilinear grid (gray checkerboard pattern) and an unstructured grid (red > tetrahedra). The surfaces of some of the tetrahedra are coincident with > the outer surfaces of the checkerboard. If you rotate the view, the > tetrahedra are not drawn correctly. > > > > I've tested this with vtk 8.1.0 on macOS 10.12.6 (using vtk built for > cocoa) and on Ubuntu 17.10 (running under VirtualBox on macOS). > > > > Thanks for taking a look at it. > > > > -- Steve > > > > > > *From: *Ken Martin > *Date: *Thursday, January 11, 2018 at 2:41 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Yes, that should work and -3, -3 is pretty reasonable for values. > Something odd is going on. Can you give a bit more detail or a snippet of > code? > > > > > > On Thu, Jan 11, 2018 at 2:30 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > So if I use > > vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); > > and > > mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); > > then polygons drawn with that mapper should obscure coincident polygons > drawn with other mappers? That's not happening. What am I missing? > > > > -- Steve > > > > *From: *Ken Martin > *Date: *Wednesday, January 10, 2018 at 7:52 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Here is part of an old email that has some description > > > > You can use the relative settings if the two coincident polygons are in > two different mappers. > > > > * On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote:* > > > > > >> > > >>* I wanted to take a second to write up a recent change I made to how VTK* > > >>* (on the OpenGL2 backend) can handle coincident geometry. Previously VTK* > > >>* supported global values for specifying a polygonal offset to push surfaces* > > >>* forward or back in the zbuffer. This was often used to draw a surface back* > > >>* a bit in the zbuffer, and then draw the same surface in wireframe mode at* > > >>* the normal z location. The result was a wireframe overlaid on top of the* > > >>* surface. This approach faced a couple limitations. Every surface was offset* > > >>* the same amount and there was no way to offset points from lines. To* > > >>* address this I have added a few methods to vtkMapper to specify global line* > > >>* and point offsets as well as ivars to hold local offsets per mapper. The* > > >>* global methods look like:* > > >> > > >>* static void SetResolveCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* while the instance methods look like:* > > >> > > >>* void SetRelativeCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* Both signatures use two parameters which are worth mentioning. The first* > > >>* factor is how much to shift the zbuffer based on how quickly the z values* > > >>* of the surface or line changes. This may seem complicated but it addresses* > > >>* a simple issue. Due to rasterization issues, surfaces and lines with sharp* > > >>* zvalue slopes are more prone to noise in the zvalues they produce. To* > > >>* combat that, we offset them by an amount that is based on their z slope. If* > > >>* the surface is perpendicular to the view direction the factor is* > > >>* irrelevant, but the more the surface is at a sharp angle to the view* > > >>* direction, the more the factor comes into play. A value of 1.0 to 2.0 is* > > >>* fairly typical for the factor. The second parameter is the units, a* > > >>* constant offset to the zbuffer. It is currently specified conservatively in* > > >>* terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is* > > >>* a good place to start. For rendering points we do not have a slope so those* > > >>* methods only take the units argument.* > > >> > > >>* I have changed the global defaults so that surfaces are offset at* > > >>* 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new* > > >>* test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top* > > >>* of lines on top of a surface while rendering the points first and the* > > >>* surface last (the opposite order of their visibility).* > > >> > > >>* Thanks* > > >>* Ken* > > > > > > On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > Hi -- > > How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology > methods? I can't find an explanation for 'factor' and 'units'. > > The attached screenshot shows a surface representation of a grid of > rectangular voxels and a wire-frame grid of tetrahedra. Four of the > tetrahedral elements are also drawn with a surface representation in red > and are supposed to obscure the voxels, but a mix of tex and voxel is drawn > instead. The surfaces of the voxels and the tetrahedral are coplanar. > They don't share nodes and edges, but the points on the x=0 face all have > x=0 exactly. Is the coincident topology resolution machinery expected to > work in this case? > > I'm using vtk 8.1.0. > > Thanks. > > -- Steve > > > _______________________________________________ > Powered by www.kitware.com > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Wed Jan 24 10:39:22 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Wed, 24 Jan 2018 15:39:22 +0000 Subject: [vtkusers] Coincident topology questions In-Reply-To: References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> <356FC1A4-D905-41C9-93FA-40E6DEA22FD6@nist.gov> Message-ID: <8B656AE9-FC27-4CE8-81A2-A8FBF302841A@nist.gov> Hi Ken -- Yes, that seems to work. Thank you! Is there an error in the documentation for vtkMapper::SetResolveCoincidentTopologyToPolygonOffset()? It says that it does not distinguish vertices and lines from one another, but that appears not to be the case. -- Steve From: Ken Martin Date: Wednesday, January 24, 2018 at 9:22 AM To: "Langer, Stephen A. (Fed)" Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] Coincident topology questions Ahh I think I see what the issue is. If you want to try it I think it can be fixed in vtkDataSetMapper.cxx around line 134. It copies a bunch of properties from itself to a polydata mapper that does the rendering. But it does not copy the coincident settings so they are ignored. I think it can be fixed with the following changes https://gitlab.kitware.com/vtk/vtk/merge_requests/3836/diffs if you want to give it a try. On Wed, Jan 17, 2018 at 6:52 PM, Langer, Stephen A. (Fed) > wrote: Hi Ken -- I've attached a short program that reproduces the problem. It creates a rectilinear grid (gray checkerboard pattern) and an unstructured grid (red tetrahedra). The surfaces of some of the tetrahedra are coincident with the outer surfaces of the checkerboard. If you rotate the view, the tetrahedra are not drawn correctly. I've tested this with vtk 8.1.0 on macOS 10.12.6 (using vtk built for cocoa) and on Ubuntu 17.10 (running under VirtualBox on macOS). Thanks for taking a look at it. -- Steve From: Ken Martin > Date: Thursday, January 11, 2018 at 2:41 PM To: "Langer, Stephen A. (Fed)" > Cc: "vtkusers at vtk.org" > Subject: Re: [vtkusers] Coincident topology questions Yes, that should work and -3, -3 is pretty reasonable for values. Something odd is going on. Can you give a bit more detail or a snippet of code? On Thu, Jan 11, 2018 at 2:30 PM, Langer, Stephen A. (Fed) > wrote: So if I use vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); and mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); then polygons drawn with that mapper should obscure coincident polygons drawn with other mappers? That's not happening. What am I missing? -- Steve From: Ken Martin > Date: Wednesday, January 10, 2018 at 7:52 PM To: "Langer, Stephen A. (Fed)" > Cc: "vtkusers at vtk.org" > Subject: Re: [vtkusers] Coincident topology questions Here is part of an old email that has some description You can use the relative settings if the two coincident polygons are in two different mappers. On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote: > >> >> I wanted to take a second to write up a recent change I made to how VTK >> (on the OpenGL2 backend) can handle coincident geometry. Previously VTK >> supported global values for specifying a polygonal offset to push surfaces >> forward or back in the zbuffer. This was often used to draw a surface back >> a bit in the zbuffer, and then draw the same surface in wireframe mode at >> the normal z location. The result was a wireframe overlaid on top of the >> surface. This approach faced a couple limitations. Every surface was offset >> the same amount and there was no way to offset points from lines. To >> address this I have added a few methods to vtkMapper to specify global line >> and point offsets as well as ivars to hold local offsets per mapper. The >> global methods look like: >> >> static void SetResolveCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> while the instance methods look like: >> >> void SetRelativeCoincidentTopologyLineOffsetParameters( >> double factor, double units); >> >> Both signatures use two parameters which are worth mentioning. The first >> factor is how much to shift the zbuffer based on how quickly the z values >> of the surface or line changes. This may seem complicated but it addresses >> a simple issue. Due to rasterization issues, surfaces and lines with sharp >> zvalue slopes are more prone to noise in the zvalues they produce. To >> combat that, we offset them by an amount that is based on their z slope. If >> the surface is perpendicular to the view direction the factor is >> irrelevant, but the more the surface is at a sharp angle to the view >> direction, the more the factor comes into play. A value of 1.0 to 2.0 is >> fairly typical for the factor. The second parameter is the units, a >> constant offset to the zbuffer. It is currently specified conservatively in >> terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is >> a good place to start. For rendering points we do not have a slope so those >> methods only take the units argument. >> >> I have changed the global defaults so that surfaces are offset at >> 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new >> test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top >> of lines on top of a surface while rendering the points first and the >> surface last (the opposite order of their visibility). >> >> Thanks >> Ken On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) > wrote: Hi -- How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology methods? I can't find an explanation for 'factor' and 'units'. The attached screenshot shows a surface representation of a grid of rectangular voxels and a wire-frame grid of tetrahedra. Four of the tetrahedral elements are also drawn with a surface representation in red and are supposed to obscure the voxels, but a mix of tex and voxel is drawn instead. The surfaces of the voxels and the tetrahedral are coplanar. They don't share nodes and edges, but the points on the x=0 face all have x=0 exactly. Is the coincident topology resolution machinery expected to work in this case? I'm using vtk 8.1.0. Thanks. -- Steve _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Jan 24 11:07:02 2018 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 24 Jan 2018 11:07:02 -0500 Subject: [vtkusers] Coincident topology questions In-Reply-To: <8B656AE9-FC27-4CE8-81A2-A8FBF302841A@nist.gov> References: <62A2ABE9-2E92-4E71-9F72-1548FB13392E@nist.gov> <356FC1A4-D905-41C9-93FA-40E6DEA22FD6@nist.gov> <8B656AE9-FC27-4CE8-81A2-A8FBF302841A@nist.gov> Message-ID: Yes, the documentation is out of date. That documentation was correct for the old OpenGL backend, but the new code is more capable. I'll try to remember to update it. On Wed, Jan 24, 2018 at 10:39 AM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > Hi Ken -- > > > > Yes, that seems to work. Thank you! > > > > Is there an error in the documentation for vtkMapper:: > SetResolveCoincidentTopologyToPolygonOffset()? It says that it does not > distinguish vertices and lines from one another, but that appears not to be > the case. > > > > -- Steve > > > > *From: *Ken Martin > *Date: *Wednesday, January 24, 2018 at 9:22 AM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Ahh I think I see what the issue is. If you want to try it I think it can > be fixed in vtkDataSetMapper.cxx around line 134. It copies a bunch of > properties from itself to a polydata mapper that does the rendering. But it > does not copy the coincident settings so they are ignored. I think it can > be fixed with the following changes > > > > https://gitlab.kitware.com/vtk/vtk/merge_requests/3836/diffs > > > > > if you want to give it a try. > > > > > > > > On Wed, Jan 17, 2018 at 6:52 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > Hi Ken -- > > > > I've attached a short program that reproduces the problem. It creates a > rectilinear grid (gray checkerboard pattern) and an unstructured grid (red > tetrahedra). The surfaces of some of the tetrahedra are coincident with > the outer surfaces of the checkerboard. If you rotate the view, the > tetrahedra are not drawn correctly. > > > > I've tested this with vtk 8.1.0 on macOS 10.12.6 (using vtk built for > cocoa) and on Ubuntu 17.10 (running under VirtualBox on macOS). > > > > Thanks for taking a look at it. > > > > -- Steve > > > > > > *From: *Ken Martin > *Date: *Thursday, January 11, 2018 at 2:41 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Yes, that should work and -3, -3 is pretty reasonable for values. > Something odd is going on. Can you give a bit more detail or a snippet of > code? > > > > > > On Thu, Jan 11, 2018 at 2:30 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > So if I use > > vtkMapper::SetResolveCoincidentTopologyToPolygonOffset(); > > and > > mapper->SetRelativeCoincidentTopologyPolygonOffsetParameters(-3,- 3); > > then polygons drawn with that mapper should obscure coincident polygons > drawn with other mappers? That's not happening. What am I missing? > > > > -- Steve > > > > *From: *Ken Martin > *Date: *Wednesday, January 10, 2018 at 7:52 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] Coincident topology questions > > > > Here is part of an old email that has some description > > > > You can use the relative settings if the two coincident polygons are in > two different mappers. > > > > * On Tue, Dec 1, 2015 at 1:29 PM, Ken Martin > wrote:* > > > > > >> > > >>* I wanted to take a second to write up a recent change I made to how VTK* > > >>* (on the OpenGL2 backend) can handle coincident geometry. Previously VTK* > > >>* supported global values for specifying a polygonal offset to push surfaces* > > >>* forward or back in the zbuffer. This was often used to draw a surface back* > > >>* a bit in the zbuffer, and then draw the same surface in wireframe mode at* > > >>* the normal z location. The result was a wireframe overlaid on top of the* > > >>* surface. This approach faced a couple limitations. Every surface was offset* > > >>* the same amount and there was no way to offset points from lines. To* > > >>* address this I have added a few methods to vtkMapper to specify global line* > > >>* and point offsets as well as ivars to hold local offsets per mapper. The* > > >>* global methods look like:* > > >> > > >>* static void SetResolveCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* while the instance methods look like:* > > >> > > >>* void SetRelativeCoincidentTopologyLineOffsetParameters(* > > >>* double factor, double units);* > > >> > > >>* Both signatures use two parameters which are worth mentioning. The first* > > >>* factor is how much to shift the zbuffer based on how quickly the z values* > > >>* of the surface or line changes. This may seem complicated but it addresses* > > >>* a simple issue. Due to rasterization issues, surfaces and lines with sharp* > > >>* zvalue slopes are more prone to noise in the zvalues they produce. To* > > >>* combat that, we offset them by an amount that is based on their z slope. If* > > >>* the surface is perpendicular to the view direction the factor is* > > >>* irrelevant, but the more the surface is at a sharp angle to the view* > > >>* direction, the more the factor comes into play. A value of 1.0 to 2.0 is* > > >>* fairly typical for the factor. The second parameter is the units, a* > > >>* constant offset to the zbuffer. It is currently specified conservatively in* > > >>* terms of a 16bit zbuffer for the OpenGL backend so a value of 1.0 to 2.0 is* > > >>* a good place to start. For rendering points we do not have a slope so those* > > >>* methods only take the units argument.* > > >> > > >>* I have changed the global defaults so that surfaces are offset at* > > >>* 2.0,2.0, lines are offset at 1.0,1.0, and points are at 0.0. There is a new* > > >>* test in OpenGL2/Testing/CXX/TestCoincident.cxx that renders points on top* > > >>* of lines on top of a surface while rendering the points first and the* > > >>* surface last (the opposite order of their visibility).* > > >> > > >>* Thanks* > > >>* Ken* > > > > > > On Wed, Jan 10, 2018 at 5:44 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > Hi -- > > How does one set the arguments to the various vtkMapper::SetRelativeCoincidentTopology > methods? I can't find an explanation for 'factor' and 'units'. > > The attached screenshot shows a surface representation of a grid of > rectangular voxels and a wire-frame grid of tetrahedra. Four of the > tetrahedral elements are also drawn with a surface representation in red > and are supposed to obscure the voxels, but a mix of tex and voxel is drawn > instead. The surfaces of the voxels and the tetrahedral are coplanar. > They don't share nodes and edges, but the points on the x=0 face all have > x=0 exactly. Is the coincident topology resolution machinery expected to > work in this case? > > I'm using vtk 8.1.0. > > Thanks. > > -- Steve > > > _______________________________________________ > Powered by www.kitware.com > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > > > > > > -- > > Ken Martin PhD > > Distinguished Engineer > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > > > This communication, including all attachments, contains confidential and > legally privileged information, and it is intended only for the use of the > addressee. Access to this email by anyone else is unauthorized. If you are > not the intended recipient, any disclosure, copying, distribution or any > action taken in reliance on it is prohibited and may be unlawful. If you > received this communication in error please notify us immediately and > destroy the original message. Thank you. > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fromseattle at gmail.com Wed Jan 24 19:42:20 2018 From: fromseattle at gmail.com (From Seattle) Date: Wed, 24 Jan 2018 16:42:20 -0800 Subject: [vtkusers] vtkXMLImageDataWriter issue with image origin Message-ID: Hi, I am using vtkXMLImageDataWriter to convert image file from nrrd format to vti format. What I realized is that after conversion, the data origin is set to (0, 0, 0), where as the original image origin is not at (0, 0, 0). Does anyone know why it's doing that? The following are the conversion code I used, verified that the origin parameter is not (0, 0, 0). typedef uint8_t AnatomyPixelType; const unsigned int Dimension3 = 3; typedef itk::Image VolImageType; itk::ImageFileReader::Pointer reader = itk::ImageFileReader::New(); itk::ImageToVTKImageFilter::Pointer filter = itk::ImageToVTKImageFilter::New(); vtkSmartPointer writer = vtkSmartPointer::New(); reader->SetFileName(fileName.c_str()); filter->SetInput(reader->GetOutput()); filter->Update(); vtkSmartPointer imageData = filter->GetOutput(); double origin[3]; imageData->GetOrigin(origin); std::string outFileName = fileName.substr(0, fileName.length() - 5); outFileName += ".vti"; writer->SetInputData(filter->GetOutput()); writer->SetFileName(outFileName.c_str()); writer->Write(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From baljci at hotmail.com Thu Jan 25 04:36:44 2018 From: baljci at hotmail.com (Boris Basic) Date: Thu, 25 Jan 2018 09:36:44 +0000 Subject: [vtkusers] How to disable linking with GL2PS VTK module? In-Reply-To: <20180124133605.GA20878@megas.kitware.com> References: , <20180124133605.GA20878@megas.kitware.com> Message-ID: Hi Ben, I was calling 'find_package(VTK 8.1 REQUIRED)'. Giving components corrected the problem. Thanks! Boris ________________________________ De : Ben Boeckel Envoy? : mercredi 24 janvier 2018 14:36 ? : Boris Basic Cc : vtk vtk Objet : Re: [vtkusers] How to disable linking with GL2PS VTK module? On Wed, Jan 24, 2018 at 08:31:28 +0000, Boris Basic wrote: > Actually I found a hack by adding "#undef > vtkRenderingOpenGL2_AUTOINIT" in one header of my project. Though it's > not very elegant, it did the job. How are you calling `find_package(VTK)`? If you don't give components, all compiled modules are loaded and assumed to be used at once, hence the autoinit. You can also use `vtk_module_config` to set `VTK_LIBRARIES` up with a subset of modules (at least based on the examples). --Ben -------------- next part -------------- An HTML attachment was scrubbed... URL: From majid.msadeghi at yahoo.com Thu Jan 25 06:27:59 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Thu, 25 Jan 2018 11:27:59 +0000 (UTC) Subject: [vtkusers] scaling polydata References: <1537095886.134454.1516879679752.ref@mail.yahoo.com> Message-ID: <1537095886.134454.1516879679752@mail.yahoo.com> Dear All, When I scale a polydata by a uniform scale like: (2,2,2) , the data aslo moves a bit towards a direction depending on where the origin is located in relation to the polydata. Is there a way to make the scaling transformation work as if each surface is moved relative to its normal? (I want an effect like an offset of the shape) I know there is vtkwarpvector but I can not give its output to a plydata. (or maybe I am wrong!) Any help? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Jan 25 07:21:01 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 25 Jan 2018 07:21:01 -0500 Subject: [vtkusers] scaling polydata In-Reply-To: <1537095886.134454.1516879679752@mail.yahoo.com> References: <1537095886.134454.1516879679752.ref@mail.yahoo.com> <1537095886.134454.1516879679752@mail.yahoo.com> Message-ID: vtkWarpVector should produce a vtkPolyData. If it doesn't you can always use vtkDataSetSurface to get a vtkPolyData surface from the output of vtkWarpVector. - Cory On Thu, Jan 25, 2018 at 6:27 AM, Majid Mohammad sadeghi via vtkusers wrote: > Dear All, > > When I scale a polydata by a uniform scale like: (2,2,2) , the data aslo > moves a bit towards a direction depending on where the origin is located in > relation to the polydata. > > Is there a way to make the scaling transformation work as if each surface is > moved relative to its normal? (I want an effect like an offset of the shape) > > I know there is vtkwarpvector but I can not give its output to a plydata. > (or maybe I am wrong!) > > Any help? > > Thanks. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From bill.lorensen at gmail.com Thu Jan 25 09:23:29 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 25 Jan 2018 06:23:29 -0800 Subject: [vtkusers] ANN: VTKBookFigures have been Python'ed Message-ID: Folks, Our colleague Andrew Maclean has accomplished an amazing task. He has created python equivalents of the 114 C++ examples in the VTK Book. Each C++ example in https://lorensen.github.io/VTKExamples/site/VTKBookFigures/ now contains a hyperlink to the python example. Users now can compare the C++ and Python implementations. Also, in the C++ and Python summary pages, examples that have an equivalent in the other language, link to that example. Cross-reference links in the book figure, C++ and Python summary, are generated automatically. If you see Andrew Maclean in a trip Downunder, please say "G'day" and buy him a beer. -- Unpaid intern in BillsParadise at noware dot com From lgazoni at gmail.com Thu Jan 25 18:05:22 2018 From: lgazoni at gmail.com (Leandro Gazoni) Date: Thu, 25 Jan 2018 21:05:22 -0200 Subject: [vtkusers] Annotations in a vtkchartXY Message-ID: Dear all, I would like to include a floating window with text on a vtkchartxy graphic. it's possible? If you know the way, please reply. Thanks. Regards, Leandro Gazoni -------------- next part -------------- An HTML attachment was scrubbed... URL: From landinghere at 163.com Fri Jan 26 01:29:56 2018 From: landinghere at 163.com (landings) Date: Thu, 25 Jan 2018 23:29:56 -0700 (MST) Subject: [vtkusers] What does white models and blue models mean? Message-ID: <1516948196499-0.post@n5.nabble.com> I use mapper and renderer with default settings, but some models are white and some are blue. These models all have point data with them. So what's the difference? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From 278124177 at qq.com Fri Jan 26 02:57:13 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Fri, 26 Jan 2018 15:57:13 +0800 Subject: [vtkusers] vtkStreamLineTracer Message-ID: I have a .vtk file , how can i use the vtkstreamTracer to create streamline form this file? -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Fri Jan 26 03:13:57 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 26 Jan 2018 09:13:57 +0100 Subject: [vtkusers] vtkStreamLineTracer In-Reply-To: References: Message-ID: Hello a .vtk file can be of any vtk datatype. To use the vtkStreamTracer, you need a volumic data with at least a vectoriel point or cell data on it. Best, Mathieu Westphal On Fri, Jan 26, 2018 at 8:57 AM, ???? <278124177 at qq.com> wrote: > I have a .vtk file , how can i use the vtkstreamTracer to create > streamline form this file? > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Fri Jan 26 03:27:40 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 26 Jan 2018 09:27:40 +0100 Subject: [vtkusers] vtkStreamLineTracer In-Reply-To: References: Message-ID: Please find this example here : https://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines Mathieu Westphal On Fri, Jan 26, 2018 at 9:18 AM, ???? <278124177 at qq.com> wrote: > > the .vtk file is converted from.trk file the .vtk file can you give me > an example to use the vtkstreamtracer please? > > ------------------ ???? ------------------ > *???:* "Mathieu Westphal";; > *????:* 2018?1?26?(???) ??4:13 > *???:* "????"<278124177 at qq.com>; > *??:* "vtkusers"; > *??:* Re: [vtkusers] vtkStreamLineTracer > > Hello > > a .vtk file can be of any vtk datatype. To use the vtkStreamTracer, you > need a volumic data with at least a vectoriel point or cell data on it. > > Best, > > Mathieu Westphal > > On Fri, Jan 26, 2018 at 8:57 AM, ???? <278124177 at qq.com> wrote: > >> I have a .vtk file , how can i use the vtkstreamTracer to create >> streamline form this file? >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 278124177 at qq.com Fri Jan 26 03:38:47 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Fri, 26 Jan 2018 16:38:47 +0800 Subject: [vtkusers] =?gb18030?b?u9i4tKO6ICB2dGtTdHJlYW1MaW5lVHJhY2Vy?= In-Reply-To: References: Message-ID: I've seen this example and i use the vtk8.1 and can not find streamline.h , is there something wrong with my vtk ? thanks. ------------------ ???? ------------------ ???: "Mathieu Westphal"; ????: 2018?1?26?(???) ??4:27 ???: "????"<278124177 at qq.com>; "vtkusers"; ??: Re: [vtkusers] vtkStreamLineTracer Please find this example here : https://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines Mathieu Westphal On Fri, Jan 26, 2018 at 9:18 AM, ???? <278124177 at qq.com> wrote: the .vtk file is converted from.trk file the .vtk file can you give me an example to use the vtkstreamtracer please? ------------------ ???? ------------------ ???: "Mathieu Westphal";; ????: 2018?1?26?(???) ??4:13 ???: "????"<278124177 at qq.com>; ??: "vtkusers"; ??: Re: [vtkusers] vtkStreamLineTracer Hello a .vtk file can be of any vtk datatype. To use the vtkStreamTracer, you need a volumic data with at least a vectoriel point or cell data on it. Best, Mathieu Westphal On Fri, Jan 26, 2018 at 8:57 AM, ???? <278124177 at qq.com> wrote: I have a .vtk file , how can i use the vtkstreamTracer to create streamline form this file? _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.westphal at kitware.com Fri Jan 26 03:42:08 2018 From: mathieu.westphal at kitware.com (Mathieu Westphal) Date: Fri, 26 Jan 2018 09:42:08 +0100 Subject: [vtkusers] vtkStreamLineTracer In-Reply-To: References: Message-ID: Sorry I did not link the right code sorry. Here is a updated example https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/Kitchen/ You can find lots of other examples here : https://lorensen.github.io/VTKExamples/site/Cxx/ Best, Mathieu Westphal On Fri, Jan 26, 2018 at 9:38 AM, ???? <278124177 at qq.com> wrote: > I've seen this example and i use the vtk8.1 and can not find streamline.h > , is there something wrong with my vtk ? thanks. > > > ------------------ ???? ------------------ > *???:* "Mathieu Westphal"; > *????:* 2018?1?26?(???) ??4:27 > *???:* "????"<278124177 at qq.com>; "vtkusers"; > *??:* Re: [vtkusers] vtkStreamLineTracer > > Please find this example here : > https://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines > > > > Mathieu Westphal > > On Fri, Jan 26, 2018 at 9:18 AM, ???? <278124177 at qq.com> wrote: > >> >> the .vtk file is converted from.trk file the .vtk file can you give >> me an example to use the vtkstreamtracer please? >> >> ------------------ ???? ------------------ >> *???:* "Mathieu Westphal";; >> *????:* 2018?1?26?(???) ??4:13 >> *???:* "????"<278124177 at qq.com>; >> *??:* "vtkusers"; >> *??:* Re: [vtkusers] vtkStreamLineTracer >> >> Hello >> >> a .vtk file can be of any vtk datatype. To use the vtkStreamTracer, you >> need a volumic data with at least a vectoriel point or cell data on it. >> >> Best, >> >> Mathieu Westphal >> >> On Fri, Jan 26, 2018 at 8:57 AM, ???? <278124177 at qq.com> wrote: >> >>> I have a .vtk file , how can i use the vtkstreamTracer to create >>> streamline form this file? >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From majid.msadeghi at yahoo.com Fri Jan 26 04:30:39 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Fri, 26 Jan 2018 09:30:39 +0000 (UTC) Subject: [vtkusers] scaling polydata In-Reply-To: References: <1537095886.134454.1516879679752.ref@mail.yahoo.com> <1537095886.134454.1516879679752@mail.yahoo.com> Message-ID: <872202210.850986.1516959039634@mail.yahoo.com> I have 2 questions: 1.Why is this compile error happening? ?? ?vtkSmartPointer normals =vtkSmartPointer::New(); ?? ?normals->SetInputData(notSmoothedRotatedX); ?? ?normals->SplittingOff(); ?? ?vtkSmartPointer warp =vtkSmartPointer::New(); ?? ?warp->SetInputConnection(normals->GetOutputPort()); ?? ?warp->SetInputArrayToProcess(0, 0, 0,vtkDataObject::FIELD_ASSOCIATION_POINTS,vtkDataSetAttributes::NORMALS); ?? ?warp->SetScaleFactor(1.2); ?? ?warp->Update(); ????????vtkSmartPointer warped_poly = vtkSmartPointer::New();????warped_poly = warp; error C2664: 'vtkPolyData *vtkSmartPointer::CheckType(T *)': cannot convert argument 1 from 'vtkWarpVector *' to 'vtkPolyData *' 2. I wonder why sometimes in VTK a vtkpolydata is created without using a smart pointer? Like in this example: https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter Thanks. On Thursday, January 25, 2018, 2:21:03 PM GMT+2, Cory Quammen wrote: vtkWarpVector should produce a vtkPolyData. If it doesn't you can always use vtkDataSetSurface to get a vtkPolyData surface from the output of vtkWarpVector. - Cory On Thu, Jan 25, 2018 at 6:27 AM, Majid Mohammad sadeghi via vtkusers wrote: > Dear All, > > When I scale a polydata by a uniform scale like: (2,2,2) , the data aslo > moves a bit towards a direction depending on where the origin is located in > relation to the polydata. > > Is there a way to make the scaling transformation work as if each surface is > moved relative to its normal? (I want an effect like an offset of the shape) > > I know there is vtkwarpvector but I can not give its output to a plydata. > (or maybe I am wrong!) > > Any help? > > Thanks. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Fri Jan 26 06:45:44 2018 From: vianamp at gmail.com (matheus_viana) Date: Fri, 26 Jan 2018 04:45:44 -0700 (MST) Subject: [vtkusers] How to use concatenation in vtkTransform Message-ID: <1516967144568-0.post@n5.nabble.com> Hi guys. Simple question about concatenation of matrices in a transform. Does the vtkTransformFilter use all the matrices concatenated in the vtkTransform? Thanks a lot, -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From vianamp at gmail.com Fri Jan 26 06:47:09 2018 From: vianamp at gmail.com (matheus_viana) Date: Fri, 26 Jan 2018 04:47:09 -0700 (MST) Subject: [vtkusers] How to use concatenation in vtkTransform In-Reply-To: <1516967144568-0.post@n5.nabble.com> References: <1516967144568-0.post@n5.nabble.com> Message-ID: <1516967229830-0.post@n5.nabble.com> I found this might also be relevant here: http://vtk.1045678.n5.nabble.com/how-to-concatenate-transformations-tt4308627.html -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From vianamp at gmail.com Fri Jan 26 07:46:53 2018 From: vianamp at gmail.com (matheus_viana) Date: Fri, 26 Jan 2018 05:46:53 -0700 (MST) Subject: [vtkusers] How to use concatenation in vtkTransform In-Reply-To: <1516967144568-0.post@n5.nabble.com> References: <1516967144568-0.post@n5.nabble.com> Message-ID: <1516970813854-0.post@n5.nabble.com> Hi guys. I found the answer is yes. Thank you. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bill.lorensen at gmail.com Fri Jan 26 09:38:35 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 26 Jan 2018 06:38:35 -0800 Subject: [vtkusers] vtkStreamLineTracer In-Reply-To: References: Message-ID: Thta example uses the deprectaed The class vtkStreamlines. The new class is vtkStreamTracer. Also please look at the new VTK Examples sitre at https://lorensen.github.io/VTKExamples/site/ The wiki site is no longer supported. Here is an example: https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/StreamLines/ Bill On Fri, Jan 26, 2018 at 12:27 AM, Mathieu Westphal wrote: > Please find this example here : > https://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StreamLines > > > > Mathieu Westphal > > On Fri, Jan 26, 2018 at 9:18 AM, ???? <278124177 at qq.com> wrote: >> >> >> the .vtk file is converted from.trk file the .vtk file can you give me >> an example to use the vtkstreamtracer please? >> >> ------------------ ???? ------------------ >> ???: "Mathieu Westphal";; >> ????: 2018?1?26?(???) ??4:13 >> ???: "????"<278124177 at qq.com>; >> ??: "vtkusers"; >> ??: Re: [vtkusers] vtkStreamLineTracer >> >> Hello >> >> a .vtk file can be of any vtk datatype. To use the vtkStreamTracer, you >> need a volumic data with at least a vectoriel point or cell data on it. >> >> Best, >> >> Mathieu Westphal >> >> On Fri, Jan 26, 2018 at 8:57 AM, ???? <278124177 at qq.com> wrote: >>> >>> I have a .vtk file , how can i use the vtkstreamTracer to create >>> streamline form this file? >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> https://vtk.org/mailman/listinfo/vtkusers >>> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsParadise at noware dot com From bill.lorensen at gmail.com Fri Jan 26 09:50:21 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 26 Jan 2018 06:50:21 -0800 Subject: [vtkusers] scaling polydata In-Reply-To: <872202210.850986.1516959039634@mail.yahoo.com> References: <1537095886.134454.1516879679752.ref@mail.yahoo.com> <1537095886.134454.1516879679752@mail.yahoo.com> <872202210.850986.1516959039634@mail.yahoo.com> Message-ID: 1. The error message tells you what is wrong. You need: warped_poly=warp->GetOutput(); 2. Please go to this site: https://lorensen.github.io/VTKExamples/site/ for examples. The wiki site is not supported any more Try looking at the VTK Book(which is free). https://www.vtk.org/vtk-textbook/ And the examples from the book: https://lorensen.github.io/VTKExamples/site/VTKBookFigures/ On Fri, Jan 26, 2018 at 1:30 AM, Majid Mohammad sadeghi via vtkusers wrote: > I have 2 questions: > > 1.Why is this compile error happening? > > vtkSmartPointer normals > =vtkSmartPointer::New(); > normals->SetInputData(notSmoothedRotatedX); > normals->SplittingOff(); > > vtkSmartPointer warp > =vtkSmartPointer::New(); > warp->SetInputConnection(normals->GetOutputPort()); > warp->SetInputArrayToProcess(0, 0, > 0,vtkDataObject::FIELD_ASSOCIATION_POINTS,vtkDataSetAttributes::NORMALS); > warp->SetScaleFactor(1.2); > warp->Update(); > > vtkSmartPointer warped_poly = > vtkSmartPointer::New(); > warped_poly = warp; > > error C2664: 'vtkPolyData *vtkSmartPointer::CheckType(T *)': > cannot convert argument 1 from 'vtkWarpVector *' to 'vtkPolyData *' > > > 2. I wonder why sometimes in VTK a vtkpolydata is created without using a > smart pointer? > > Like in this example: > > https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter > > Thanks. > > > On Thursday, January 25, 2018, 2:21:03 PM GMT+2, Cory Quammen > wrote: > > > vtkWarpVector should produce a vtkPolyData. If it doesn't you can > always use vtkDataSetSurface to get a vtkPolyData surface from the > output of vtkWarpVector. > > - Cory > > On Thu, Jan 25, 2018 at 6:27 AM, Majid Mohammad sadeghi via vtkusers > wrote: >> Dear All, >> >> When I scale a polydata by a uniform scale like: (2,2,2) , the data aslo >> moves a bit towards a direction depending on where the origin is located >> in >> relation to the polydata. >> >> Is there a way to make the scaling transformation work as if each surface >> is >> moved relative to its normal? (I want an effect like an offset of the >> shape) >> >> I know there is vtkwarpvector but I can not give its output to a plydata. >> (or maybe I am wrong!) >> >> Any help? >> >> Thanks. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers > >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsParadise at noware dot com From cory.quammen at kitware.com Fri Jan 26 10:20:39 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 26 Jan 2018 10:20:39 -0500 Subject: [vtkusers] What does white models and blue models mean? In-Reply-To: <1516948196499-0.post@n5.nabble.com> References: <1516948196499-0.post@n5.nabble.com> Message-ID: My guess is that some of the surfaces are being colored by the default color map and some are not. Perhaps some have active scalar arrays and some do not. To get consistent behavior, call vtkMapper::SetScalarVisibility (int), 0 to turn color mapping off and 1 to turn it on. HTH, Cory On Fri, Jan 26, 2018 at 1:29 AM, landings wrote: > I use mapper and renderer with default settings, but some models are white > and some are blue. These models all have point data with them. So what's the > difference? > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers -- Cory Quammen Staff R&D Engineer Kitware, Inc. From 312438111 at qq.com Fri Jan 26 22:14:43 2018 From: 312438111 at qq.com (=?gb18030?B?0e7B+Lb5x+A=?=) Date: Sat, 27 Jan 2018 11:14:43 +0800 Subject: [vtkusers] VTK helper Message-ID: Hello , I was troubled by a question.As we all known,VTK can display coronal,cross section and sagittal plane.Now I want both to show one of that three at the same qvtkwidget and display in different qvtkwidget.With right mouse button,I want to switch them according to willing.But the question is if I switch the image,the qvtkwidget which displaed the image previously was empty.In other word, vtkResliceImageViewer can only display coronal(cross section ,sagittal plane ) for once.I have to new a vtkResliceImageViewer,but if that the interaction was disappeared.I need your help.I will appreciate if you repay.Thanks. Julia -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Sat Jan 27 15:11:36 2018 From: bebe0705 at colorado.edu (BBerco) Date: Sat, 27 Jan 2018 13:11:36 -0700 (MST) Subject: [vtkusers] vtkOpenGLSkybox and cubic texture map orientation Message-ID: <1517083896189-0.post@n5.nabble.com> I am trying to display a skybox environment using the vtkOpenGLSkybox class. The documentation of vtkSkybox says that a texture cube must be provided. I used this one I'm providing the skybox actor with a cube source. But s you can see below, the texture is not properly mapped. Any advice? main.cpp: * #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(int, char *[]) { // Read texture file vtkSmartPointer readerFactory = vtkSmartPointer::New(); vtkImageReader2 *imageReader = readerFactory ->CreateImageReader2("../map.png"); imageReader->SetFileName("../map.png"); // Create texture vtkSmartPointer texture =vtkSmartPointer::New(); texture->SetInputConnection(imageReader->GetOutputPort()); // Create a cube vtkSmartPointer skybox_source = vtkSmartPointer::New(); vtkSmartPointer skybox_mapper = vtkSmartPointer::New(); skybox_mapper->SetInputConnection(skybox_source->GetOutputPort()); // Create the skybox vtkSmartPointer skybox = vtkSmartPointer::New(); skybox -> SetTexture(texture); skybox -> SetMapper(skybox_mapper); // Create a sphere vtkSmartPointer sphereSource = vtkSmartPointer::New(); sphereSource->SetCenter(0.0, 0.0, 0.0); sphereSource->SetRadius(5.0); vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(sphereSource->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); // renderer->AddActor(actor); renderer->AddActor(skybox); // renderer->SetBackground(.3, .6, .3); // Background color green renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } * -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Sat Jan 27 15:22:10 2018 From: ken.martin at kitware.com (Ken Martin) Date: Sat, 27 Jan 2018 15:22:10 -0500 Subject: [vtkusers] vtkOpenGLSkybox and cubic texture map orientation In-Reply-To: <1517083896189-0.post@n5.nabble.com> References: <1517083896189-0.post@n5.nabble.com> Message-ID: Here is a rough example (maybe not 100% but close, I just grabbed the key parts form TestCubeMap2.cxx. It uses 6 square textures and assembles them into a cube map. const char* fpath[] = { "Data/skybox/posx.jpg", "Data/skybox/negx.jpg", "Data/skybox/posy.jpg", "Data/skybox/negy.jpg", "Data/skybox/posz.jpg", "Data/skybox/negz.jpg" }; vtkNew texture; texture->CubeMapOn(); texture->InterpolateOn(); texture->RepeatOff(); texture->EdgeClampOn(); // mipmapping works on many systems but is not // core 3.2 for cube maps. VTK will silently // ignore it if it is not supported. texture->MipmapOn(); for (int i = 0; i < 6; i++) { vtkNew imgReader; imgReader->SetFileName( vtkTestUtilities::ExpandDataFileName(argc, argv, fpath[i])); vtkNew flip; flip->SetInputConnection(imgReader->GetOutputPort()); flip->SetFilteredAxis(1); // flip y axis texture->SetInputConnection(i, flip->GetOutputPort(0)); } vtkNew world; world->SetTexture(texture); renderer->AddActor(world); On Sat, Jan 27, 2018 at 3:11 PM, BBerco wrote: > I am trying to display a skybox environment using the vtkOpenGLSkybox > class. > > The documentation of vtkSkybox says that a texture cube must be provided. I > used this one > source=lnms&tbm=isch&sa=X&ved=0ahUKEwjiw7q09PjYAhVSyGMKHYKVA > q8Q_AUICigB&biw=1280&bih=703#imgrc=-t5W2ikSKVWtQM:> > > I'm providing the skybox actor with a cube source. But s you can see below, > the texture is not properly mapped. > > Any advice? > > 2018-01-27_at_13.png> > > > main.cpp: > * > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > int main(int, char *[]) > { > > > > // Read texture file > vtkSmartPointer readerFactory = > vtkSmartPointer::New(); > vtkImageReader2 *imageReader = readerFactory > ->CreateImageReader2("../map.png"); > > imageReader->SetFileName("../map.png"); > > // Create texture > vtkSmartPointer texture =vtkSmartPointer::New(); > texture->SetInputConnection(imageReader->GetOutputPort()); > > > // Create a cube > vtkSmartPointer skybox_source = > vtkSmartPointer::New(); > > > vtkSmartPointer skybox_mapper = > vtkSmartPointer::New(); > skybox_mapper->SetInputConnection(skybox_source->GetOutputPort()); > > // Create the skybox > vtkSmartPointer skybox = > vtkSmartPointer::New(); > > skybox -> SetTexture(texture); > skybox -> SetMapper(skybox_mapper); > > > > > > // Create a sphere > vtkSmartPointer sphereSource = > vtkSmartPointer::New(); > sphereSource->SetCenter(0.0, 0.0, 0.0); > sphereSource->SetRadius(5.0); > > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputConnection(sphereSource->GetOutputPort()); > > vtkSmartPointer actor = > vtkSmartPointer::New(); > actor->SetMapper(mapper); > > vtkSmartPointer renderer = > vtkSmartPointer::New(); > vtkSmartPointer renderWindow = > vtkSmartPointer::New(); > renderWindow->AddRenderer(renderer); > vtkSmartPointer renderWindowInteractor = > vtkSmartPointer::New(); > renderWindowInteractor->SetRenderWindow(renderWindow); > > // renderer->AddActor(actor); > renderer->AddActor(skybox); > > // renderer->SetBackground(.3, .6, .3); // Background color green > > renderWindow->Render(); > renderWindowInteractor->Start(); > > return EXIT_SUCCESS; > } > * > > > > > > > > > > > > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Sat Jan 27 16:04:11 2018 From: bebe0705 at colorado.edu (BBerco) Date: Sat, 27 Jan 2018 14:04:11 -0700 (MST) Subject: [vtkusers] vtkOpenGLSkybox and cubic texture map orientation In-Reply-To: References: <1517083896189-0.post@n5.nabble.com> Message-ID: <1517087051390-0.post@n5.nabble.com> It works great, thanks! One thing though: it seems that vtkTestUtilities.h does not exist anymore? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From tamim.boubou at gmail.com Sun Jan 28 04:03:58 2018 From: tamim.boubou at gmail.com (Tamim) Date: Sun, 28 Jan 2018 02:03:58 -0700 (MST) Subject: [vtkusers] QVTKWidget, pclVisulaizer,VTK Message-ID: <1517130238995-0.post@n5.nabble.com> Hello all , I've been trying to add pclVisulizer to QVTKWidget and to that window I want to add and interact with a vtkboxWidget2 the code is something like this but it's crashing....any ideas ? pclVisualizer(new pcl::visualization::PCLVisualizer("PCL Visualizer")) qvtkWidget_pclViewer = new QVTKWidget; ui->splitterVertical->addWidget(qvtkWidget_pclViewer); qvtkWidget_pclViewer->SetRenderWindow(pclVisualizer->getRenderWindow()); pclVisualizer->getRenderWindow()->AddRenderer(m_renderer_p); m_interactor_p = pclVisualizer->getRenderWindow()->GetInteractor(); m_interactor_p->SetRenderWindow(m_renderwindow_p); double bounds_a[6]={0,4,0,4,0,4}; vtkSmartPointer boxWidget = vtkSmartPointer::New(); boxWidget->SetInteractor(m_interactor_p); boxWidget->GetRepresentation()->SetPlaceFactor(1.25); boxWidget->GetRepresentation()->PlaceWidget(bounds_a); m_renderer_p->Render(); qvtkwidget_pclViewer->Update(); any help would be great Thanks. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From 278124177 at qq.com Sun Jan 28 20:51:03 2018 From: 278124177 at qq.com (=?gb18030?B?zui3qM7ozOw=?=) Date: Mon, 29 Jan 2018 09:51:03 +0800 Subject: [vtkusers] error build vtk8.01 for IOS Message-ID: i tried to bulid vtk for ios and meet may errors blow, i hope to konw wich step i've done wrong thans. Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output: Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_1aa6f/fast" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1aa6f.dir/build.make CMakeFiles/cmTC_1aa6f.dir/build Building C object CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_1aa6f /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1aa6f.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_1aa6f.dir/CheckSymbolExists.c.o -o cmTC_1aa6f ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output: Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_54f13/fast" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_54f13.dir/build.make CMakeFiles/cmTC_54f13.dir/build Building C object CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_54f13 /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_54f13.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_54f13.dir/CheckSymbolExists.c.o -o cmTC_54f13 ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output: Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_3323b/fast" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_3323b.dir/build.make CMakeFiles/cmTC_3323b.dir/build Building C object CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -o CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_3323b /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_3323b.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS10.3.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_3323b.dir/CheckSymbolExists.c.o -o cmTC_3323b ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) Compiling the C compiler identification source file "CMakeCCompilerId.c" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/gcc Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libSystem.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed. Compiler: /Applications/Xcode.app/Contents/Developer/usr/bin/g++ Build flags: ;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode;-miphoneos-version-min=10.3;-fvisibility=hidden;-fvisibility-inlines-hidden;-fembed-bitcode Id flags: The output was: 1 ld: building for iOS simulator, but linking against dylib built for OSX, file '/usr/lib/libc++.dylib' for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) Performing Test VTK_UNDEFINED_SYMBOLS_ALLOWED failed with the following output: Change Dir: /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp Run Build Command:"/usr/bin/make" "cmTC_1b878/fast" /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_1b878.dir/build.make CMakeFiles/cmTC_1b878.dir/build Building C object CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -o CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o -c /Users/cc/Documents/work/vtk/VTK-8.1.0-BIN/CMakeExternals/Build/vtk-ios-device-arm64/CMakeFiles/CMakeTmp/CheckSymbolExists.c Linking C executable cmTC_1b878 /Applications/CMake.app/Contents/bin/cmake -E cmake_link_script CMakeFiles/cmTC_1b878.dir/link.txt --verbose=1 /Applications/Xcode.app/Contents/Developer/usr/bin/gcc -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -miphoneos-version-min=10.3 -fvisibility=hidden -fvisibility-inlines-hidden -fembed-bitcode -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS11.2.sdk -Wl,-headerpad_max_install_names CMakeFiles/cmTC_1b878.dir/CheckSymbolExists.c.o -o cmTC_1b878 ld: warning: -headerpad_max_install_names is ignored when used with -bitcode_bundle (Xcode setting ENABLE_BITCODE=YES) -------------- next part -------------- An HTML attachment was scrubbed... URL: From 312438111 at qq.com Sun Jan 28 21:12:01 2018 From: 312438111 at qq.com (=?gb18030?B?0e7B+Lb5x+A=?=) Date: Mon, 29 Jan 2018 10:12:01 +0800 Subject: [vtkusers] VTK show dicom Message-ID: Hello , I was troubled by a question.As we all known,VTK can display coronal,cross section and sagittal plane.Now I want both to show one of that three at the same qvtkwidget and display in different qvtkwidget.With right mouse button,I want to switch them according to willing.But the question is if I switch the DICOM image,the qvtkwidget which displayed the DICOM image previously was empty.In other word, vtkResliceImageViewer can only display coronal(cross section ,sagittal plane ) for once.I have to new a vtkResliceImageViewer,but if that the interaction was disappeared.I need your help. I will appreciate if you repay.Thanks. Julia -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Sun Jan 28 23:08:14 2018 From: bebe0705 at colorado.edu (BBerco) Date: Sun, 28 Jan 2018 21:08:14 -0700 (MST) Subject: [vtkusers] Shadow casting: vtkFrameBufferObject.h not found in example code Message-ID: <1517198894770-0.post@n5.nabble.com> I am developing an app where I am rendering an asteroid and a landing trajectory. I was wondering how I could enable "self-shadowing" so as to have "hills" on the asteroid casting a shadow behind them. I tried to run what seems to be the related vtk example , but the build fails as *vtkFrameBufferObject.h* could not be found. Is there a different approach than the one presented in the example? I imagine that creating a light source not aligned with the camera axis would not be sufficient. Thanks in advance! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From alessandro.volz at gmail.com Mon Jan 29 04:42:48 2018 From: alessandro.volz at gmail.com (Alessandro Volz) Date: Mon, 29 Jan 2018 10:42:48 +0100 Subject: [vtkusers] vtkVolumeRayCast* gone in VTK 8.1.0 Message-ID: <3305169A-7546-4A9A-B9A0-1AD72B5D28C5@gmail.com> Hi, I am switching a project from VTK 8.0.1 to 8.1.0, and noticed that the vtkVolumeRayCast* classes are gone. They are used in this project, so I'm looking for a replacement. I found out they've been deprecated a couple years ago: https://gitlab.kitware.com/vtk/vtk/commit/bc6c71ea79dc7bd7523b81aa1d1b5e6a98d57daf Any suggestions as to how to achieve the same result with a different pipeline? Best, Alessandro From majid.msadeghi at yahoo.com Mon Jan 29 04:55:13 2018 From: majid.msadeghi at yahoo.com (Majid Mohammad sadeghi) Date: Mon, 29 Jan 2018 09:55:13 +0000 (UTC) Subject: [vtkusers] scaling polydata In-Reply-To: References: <1537095886.134454.1516879679752.ref@mail.yahoo.com> <1537095886.134454.1516879679752@mail.yahoo.com> <872202210.850986.1516959039634@mail.yahoo.com> Message-ID: <1926133894.2542074.1517219713258@mail.yahoo.com> Dear Bill, Thanks for your time. Ofcourse I tried "warped_poly=warp->GetOutput();" before sending the email. It does not work!? It gives the following error: error C2679: binary '=': no operator found which takes a right-hand operand of type 'vtkPointSet *' (or there is no acceptable conversion) Since Cory told "vtkWarpVector should produce a vtkPolyData" I thought "warped_poly = warp;" might work. Ok I was wrong. There should be sth else going on here. As in the same example in the new site, still vtksmartpointer is not used for this case. There should be a reason for that: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DataSetSurfaceFilter/ vtkPolyData* polydata = surfaceFilter->GetOutput(); I finally could get the data using vtkDataSetSurfaceFilter as Cory said. But still I dont undersatand the problem with direct polydata and why not smart pointer? Any help? Thanks. On Friday, January 26, 2018, 4:50:22 PM GMT+2, Bill Lorensen wrote: 1. The error message tells you what is wrong. You need: warped_poly=warp->GetOutput(); 2. Please go to this site: https://lorensen.github.io/VTKExamples/site/ for examples. The wiki site is not supported any more Try looking at the VTK Book(which is free). https://www.vtk.org/vtk-textbook/ And the examples from the book: https://lorensen.github.io/VTKExamples/site/VTKBookFigures/ On Fri, Jan 26, 2018 at 1:30 AM, Majid Mohammad sadeghi via vtkusers wrote: > I have 2 questions: > > 1.Why is this compile error happening? > >? ? vtkSmartPointer normals > =vtkSmartPointer::New(); >? ? normals->SetInputData(notSmoothedRotatedX); >? ? normals->SplittingOff(); > >? ? vtkSmartPointer warp > =vtkSmartPointer::New(); >? ? warp->SetInputConnection(normals->GetOutputPort()); >? ? warp->SetInputArrayToProcess(0, 0, > 0,vtkDataObject::FIELD_ASSOCIATION_POINTS,vtkDataSetAttributes::NORMALS); >? ? warp->SetScaleFactor(1.2); >? ? warp->Update(); > >? ? vtkSmartPointer warped_poly = > vtkSmartPointer::New(); >? ? warped_poly = warp; > > error C2664: 'vtkPolyData *vtkSmartPointer::CheckType(T *)': > cannot convert argument 1 from 'vtkWarpVector *' to 'vtkPolyData *' > > > 2. I wonder why sometimes in VTK a vtkpolydata is created without using a > smart pointer? > > Like in this example: > > https://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/DataSetSurfaceFilter > > Thanks. > > > On Thursday, January 25, 2018, 2:21:03 PM GMT+2, Cory Quammen > wrote: > > > vtkWarpVector should produce a vtkPolyData. If it doesn't you can > always use vtkDataSetSurface to get a vtkPolyData surface from the > output of vtkWarpVector. > > - Cory > > On Thu, Jan 25, 2018 at 6:27 AM, Majid Mohammad sadeghi via vtkusers > wrote: >> Dear All, >> >> When I scale a polydata by a uniform scale like: (2,2,2) , the data aslo >> moves a bit towards a direction depending on where the origin is located >> in >> relation to the polydata. >> >> Is there a way to make the scaling transformation work as if each surface >> is >> moved relative to its normal? (I want an effect like an offset of the >> shape) >> >> I know there is vtkwarpvector but I can not give its output to a plydata. >> (or maybe I am wrong!) >> >> Any help? >> >> Thanks. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> https://vtk.org/mailman/listinfo/vtkusers > >> > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsParadise at noware dot com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Mon Jan 29 09:11:49 2018 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Mon, 29 Jan 2018 14:11:49 +0000 Subject: [vtkusers] vtkVolumeRayCast* gone in VTK 8.1.0 In-Reply-To: <3305169A-7546-4A9A-B9A0-1AD72B5D28C5@gmail.com> References: <3305169A-7546-4A9A-B9A0-1AD72B5D28C5@gmail.com> Message-ID: Hi Alessandro, Those classes had been deprecated since VTK 7.0. They were removed in version 8.1.0 The modern approach to volume rendering in VTK is using the vtkGPUVolumeRayCastMapper . There are some examples as well as tests that show how to set it up. Hope this helps. Best, Sankhesh ? On Mon, Jan 29, 2018 at 4:42 AM Alessandro Volz wrote: > Hi, > > I am switching a project from VTK 8.0.1 to 8.1.0, and noticed that the > vtkVolumeRayCast* classes are gone. They are used in this project, so I'm > looking for a replacement. > > I found out they've been deprecated a couple years ago: > > https://gitlab.kitware.com/vtk/vtk/commit/bc6c71ea79dc7bd7523b81aa1d1b5e6a98d57daf > > Any suggestions as to how to achieve the same result with a different > pipeline? > > Best, > > Alessandro > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashahrior.91994 at gmail.com Mon Jan 29 09:49:27 2018 From: ashahrior.91994 at gmail.com (Ashef Shahrior) Date: Mon, 29 Jan 2018 20:49:27 +0600 Subject: [vtkusers] Beginners Guideline Help Message-ID: Hello, I am a complete beginner with VTK. My project supervisor in the department has assigned me a project on VTK and ITK. But I am not getting anywhere since I don't have a clue on how to start off with VTK. Can anyone please help me with step by step procedures about how to learn VTK effectively? Thanks in advance. PS. I have programming experience in C, C++ and Java. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Jan 29 09:53:49 2018 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 29 Jan 2018 09:53:49 -0500 Subject: [vtkusers] Beginners Guideline Help In-Reply-To: References: Message-ID: Hi Ashef, Welcome to VTK. To get started, please see the VTK textbook: https://www.vtk.org/vtk-textbook/ There is a PDF version you can download for free. After that, the examples are probably your best bet for gaining experience with VTK: https://lorensen.github.io/VTKExamples/site/ Good luck getting started with your project. Best regards, Cory On Mon, Jan 29, 2018 at 9:49 AM, Ashef Shahrior wrote: > Hello, I am a complete beginner with VTK. My project supervisor in the > department has assigned me a project on VTK and ITK. But I am not getting > anywhere since I don't have a clue on how to start off with VTK. Can anyone > please help me with step by step procedures about how to learn VTK > effectively? Thanks in advance. > PS. I have programming experience in C, C++ and Java. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From ashahrior.91994 at gmail.com Mon Jan 29 09:56:49 2018 From: ashahrior.91994 at gmail.com (Ashef Shahrior) Date: Mon, 29 Jan 2018 20:56:49 +0600 Subject: [vtkusers] Beginners Guideline Help In-Reply-To: References: Message-ID: This is great, thank you so much! On Jan 29, 2018 8:53 PM, "Cory Quammen" wrote: > Hi Ashef, > > Welcome to VTK. To get started, please see the VTK textbook: > > https://www.vtk.org/vtk-textbook/ > > There is a PDF version you can download for free. > > After that, the examples are probably your best bet for gaining > experience with VTK: > > https://lorensen.github.io/VTKExamples/site/ > > Good luck getting started with your project. > > Best regards, > Cory > > On Mon, Jan 29, 2018 at 9:49 AM, Ashef Shahrior > wrote: > > Hello, I am a complete beginner with VTK. My project supervisor in the > > department has assigned me a project on VTK and ITK. But I am not getting > > anywhere since I don't have a clue on how to start off with VTK. Can > anyone > > please help me with step by step procedures about how to learn VTK > > effectively? Thanks in advance. > > PS. I have programming experience in C, C++ and Java. > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > https://vtk.org/mailman/listinfo/vtkusers > > > > > > -- > Cory Quammen > Staff R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Mon Jan 29 09:59:16 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Mon, 29 Jan 2018 09:59:16 -0500 Subject: [vtkusers] Beginners Guideline Help In-Reply-To: References: Message-ID: Ashef, You can also try VTK Users guide https://www.vtk.org/vtk-users-guide/ for a guide with less emphasis on visualization algorithms and more on how to use VTK. On Mon, Jan 29, 2018 at 9:49 AM, Ashef Shahrior wrote: > Hello, I am a complete beginner with VTK. My project supervisor in the > department has assigned me a project on VTK and ITK. But I am not getting > anywhere since I don't have a clue on how to start off with VTK. Can anyone > please help me with step by step procedures about how to learn VTK > effectively? Thanks in advance. > PS. I have programming experience in C, C++ and Java. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Mon Jan 29 11:23:09 2018 From: bebe0705 at colorado.edu (BBerco) Date: Mon, 29 Jan 2018 09:23:09 -0700 (MST) Subject: [vtkusers] Shadow casting: vtkFrameBufferObject.h not found in example code In-Reply-To: <1517198894770-0.post@n5.nabble.com> References: <1517198894770-0.post@n5.nabble.com> Message-ID: <1517242989552-0.post@n5.nabble.com> After a bit more digging, it seems that vtkFrameBufferObject.h was not copied to /usr/local/include/vtk-8.1/ upon running *make install* although it was present in the tarball. Is there a reason for this, like platform dependence or something of the kind? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ken.martin at kitware.com Mon Jan 29 11:38:19 2018 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 29 Jan 2018 11:38:19 -0500 Subject: [vtkusers] Shadow casting: vtkFrameBufferObject.h not found in example code In-Reply-To: <1517242989552-0.post@n5.nabble.com> References: <1517198894770-0.post@n5.nabble.com> <1517242989552-0.post@n5.nabble.com> Message-ID: An example of shadows https://gitlab.kitware.com/vtk/vtk/blob/master/Rendering/OpenGL2/Testing/Cxx/TestShadowMapPass.cxx vtkFrameBufferObject.h is from the old rendering engine, probably not installed as you probably built the new rendering engine. On Mon, Jan 29, 2018 at 11:23 AM, BBerco wrote: > After a bit more digging, it seems that vtkFrameBufferObject.h was not > copied > to /usr/local/include/vtk-8.1/ upon running *make install* although it was > present in the tarball. Is there a reason for this, like platform > dependence > or something of the kind? > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Mon Jan 29 15:08:01 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Mon, 29 Jan 2018 20:08:01 +0000 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports Message-ID: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> Hi -- I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd been building vtk with Cocoa because with X11 vtk was complaining that it couldn't find OpenGL version 3.2 or later. I'm using macports to install OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since vtk gets the version number from glew. I tried tracing though the process of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), but found the glew code to be amazingly opaque. All I know for sure is that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are empty, but the glew source code *does* set them, in glewContextInit() in glew.c. I don't know what it sets them *to*, though. I'm using the latest vtk from git master, but the problem occurred with released versions too. I don't know if this is a vtk problem or a macports problem or a mesa problem, but I didn't get a helpful answer from the macports list. Any advice would be much appreciated. Thanks. -- Steve From ken.martin at kitware.com Mon Jan 29 15:21:42 2018 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 29 Jan 2018 15:21:42 -0500 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> Message-ID: I'm pretty sure OSX comes with OpenGL and OSX always provides at least OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX wizard, but generally default vtk builds straight out of the box last I checked. Maybe try a clean VTK build using all the defaults and see if that works. On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > Hi -- > > I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd > been building vtk with Cocoa because with X11 vtk was complaining that it > couldn't find OpenGL version 3.2 or later. I'm using macports to install > OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. > > I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since > vtk gets the version number from glew. I tried tracing though the process > of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), > but found the glew code to be amazingly opaque. All I know for sure is > that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are > empty, but the glew source code *does* set them, in glewContextInit() in > glew.c. I don't know what it sets them *to*, though. > > I'm using the latest vtk from git master, but the problem occurred with > released versions too. > > I don't know if this is a vtk problem or a macports problem or a mesa > problem, but I didn't get a helpful answer from the macports list. Any > advice would be much appreciated. > > Thanks. > > -- Steve > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Mon Jan 29 15:28:01 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 29 Jan 2018 15:28:01 -0500 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> Message-ID: <20180129202801.GA19808@megas.kitware.com> On Mon, Jan 29, 2018 at 20:08:01 +0000, Langer, Stephen A. (Fed) wrote: > I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, > since vtk gets the version number from glew. I tried tracing though > the process of getting the version number, starting with > vtkOpenGLRenderWindow::OpenGLInitContext(), but found the glew code to > be amazingly opaque. All I know for sure is that in vtk's > OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are empty, > but the glew source code *does* set them, in glewContextInit() in > glew.c. I don't know what it sets them *to*, though. Was a profile requested? If no profile is requested, Mesa gives back a Compat context which it doesn't support beyond 2.1 (its 3.x contexts don't support some Compat functionality). VTK should be requesting a Core profile which will get the right context. You can force Mesa to give a Compat profile of a higher version by setting the MESA_GL_OVERRIDE environment variable to 3.2 or the like. --Ben From stephen.langer at nist.gov Mon Jan 29 22:06:00 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Tue, 30 Jan 2018 03:06:00 +0000 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> Message-ID: <4B3E5AB5-14C9-4C99-8469-874F10BEDA43@nist.gov> OSX does come with OpenGL, but not the X11 parts of it. There's no glx.h in /System/Library/Frameworks/OpenGL.framework/Headers, and the libraries don't define glXChooseFBConfig and other symbols used by VTK. Just firing up ccmake and not making any changes to the configuration gives VTK_USE_X=OFF and VTK_USE_COCOA=ON, but I want them the other way around. Changing those two settings but nothing else makes it try to link to the OpenGL.framework, and the build fails because the framework doesn't support X11. Pointing OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY, and OPENGL_glu_LIBRARY to the mesa components lets VTK build, but it gives a warning at run time when it checks the OpenGL version, and then crashes. The reason for doing this is that many (most?) ports in macports use X11 instead of Cocoa/Quartz, and it's difficult to mix the two. Our software will be easier to distribute if it can be built to use either X11 or Cocoa. Also, we're using gtk2, and it works better in X11. (Someday we'll upgrade to gtk3?) -- Steve From: Ken Martin Date: Monday, January 29, 2018 at 3:21 PM To: "Langer, Stephen A. (Fed)" Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports I'm pretty sure OSX comes with OpenGL and OSX always provides at least OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX wizard, but generally default vtk builds straight out of the box last I checked. Maybe try a clean VTK build using all the defaults and see if that works. On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) > wrote: Hi -- I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd been building vtk with Cocoa because with X11 vtk was complaining that it couldn't find OpenGL version 3.2 or later. I'm using macports to install OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since vtk gets the version number from glew. I tried tracing though the process of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), but found the glew code to be amazingly opaque. All I know for sure is that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are empty, but the glew source code *does* set them, in glewContextInit() in glew.c. I don't know what it sets them *to*, though. I'm using the latest vtk from git master, but the problem occurred with released versions too. I don't know if this is a vtk problem or a macports problem or a mesa problem, but I didn't get a helpful answer from the macports list. Any advice would be much appreciated. Thanks. -- Steve _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: https://vtk.org/mailman/listinfo/vtkusers -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jan 29 22:33:57 2018 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Jan 2018 20:33:57 -0700 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <4B3E5AB5-14C9-4C99-8469-874F10BEDA43@nist.gov> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <4B3E5AB5-14C9-4C99-8469-874F10BEDA43@nist.gov> Message-ID: Hi Steve, If you install xquartz, you should see glx.h in /usr/X11R6/include. On OS X, X11 always had its own GL headers and libraries inside /usr/X11R6/include and /usr/X11R6/lib. You'd definitely have to link to those libraries, rather than linking to OpenGL.framework. I remember that VTK-X11 on OS X was a well-supported configuration back in 2005 or so. - David On Mon, Jan 29, 2018 at 8:06 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > OSX does come with OpenGL, but not the X11 parts of it. There's no glx.h > in /System/Library/Frameworks/OpenGL.framework/Headers, and the libraries > don't define glXChooseFBConfig and other symbols used by VTK. > > > > Just firing up ccmake and not making any changes to the configuration > gives VTK_USE_X=OFF and VTK_USE_COCOA=ON, but I want them the other way > around. Changing those two settings but nothing else makes it try to link > to the OpenGL.framework, and the build fails because the framework doesn't > support X11. Pointing OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY, and > OPENGL_glu_LIBRARY to the mesa components lets VTK build, but it gives a > warning at run time when it checks the OpenGL version, and then crashes. > > > > The reason for doing this is that many (most?) ports in macports use X11 > instead of Cocoa/Quartz, and it's difficult to mix the two. Our software > will be easier to distribute if it can be built to use either X11 or > Cocoa. Also, we're using gtk2, and it works better in X11. (Someday > we'll upgrade to gtk3?) > > > > -- Steve > > > > *From: *Ken Martin > *Date: *Monday, January 29, 2018 at 3:21 PM > *To: *"Langer, Stephen A. (Fed)" > *Cc: *"vtkusers at vtk.org" > *Subject: *Re: [vtkusers] vtk getting wrong OpenGL version number from > mesa and macports > > > > I'm pretty sure OSX comes with OpenGL and OSX always provides at least > OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX > wizard, but generally default vtk builds straight out of the box last I > checked. Maybe try a clean VTK build using all the defaults and see if that > works. > > > > On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > > Hi -- > > I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd > been building vtk with Cocoa because with X11 vtk was complaining that it > couldn't find OpenGL version 3.2 or later. I'm using macports to install > OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. > > I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since > vtk gets the version number from glew. I tried tracing though the process > of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), > but found the glew code to be amazingly opaque. All I know for sure is > that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are > empty, but the glew source code *does* set them, in glewContextInit() in > glew.c. I don't know what it sets them *to*, though. > > I'm using the latest vtk from git master, but the problem occurred with > released versions too. > > I don't know if this is a vtk problem or a macports problem or a mesa > problem, but I didn't get a helpful answer from the macports list. Any > advice would be much appreciated. > > Thanks. > > -- Steve > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Jan 29 23:15:34 2018 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 29 Jan 2018 21:15:34 -0700 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <4B3E5AB5-14C9-4C99-8469-874F10BEDA43@nist.gov> Message-ID: Hmm, I just checked and /usr/X11R6 is just a symlink to /opt/X11, so the latter is probably the better place to look. On Mon, Jan 29, 2018 at 8:33 PM, David Gobbi wrote: > Hi Steve, > > If you install xquartz, you should see glx.h in /usr/X11R6/include. On OS > X, X11 always had its own GL headers and libraries inside > /usr/X11R6/include and /usr/X11R6/lib. You'd definitely have to link to > those libraries, rather than linking to OpenGL.framework. > > I remember that VTK-X11 on OS X was a well-supported configuration back in > 2005 or so. > > - David > > > On Mon, Jan 29, 2018 at 8:06 PM, Langer, Stephen A. (Fed) < > stephen.langer at nist.gov> wrote: > >> OSX does come with OpenGL, but not the X11 parts of it. There's no glx.h >> in /System/Library/Frameworks/OpenGL.framework/Headers, and the >> libraries don't define glXChooseFBConfig and other symbols used by VTK. >> >> >> >> Just firing up ccmake and not making any changes to the configuration >> gives VTK_USE_X=OFF and VTK_USE_COCOA=ON, but I want them the other way >> around. Changing those two settings but nothing else makes it try to link >> to the OpenGL.framework, and the build fails because the framework doesn't >> support X11. Pointing OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY, and >> OPENGL_glu_LIBRARY to the mesa components lets VTK build, but it gives a >> warning at run time when it checks the OpenGL version, and then crashes. >> >> >> >> The reason for doing this is that many (most?) ports in macports use X11 >> instead of Cocoa/Quartz, and it's difficult to mix the two. Our software >> will be easier to distribute if it can be built to use either X11 or >> Cocoa. Also, we're using gtk2, and it works better in X11. (Someday >> we'll upgrade to gtk3?) >> >> >> >> -- Steve >> >> >> >> *From: *Ken Martin >> *Date: *Monday, January 29, 2018 at 3:21 PM >> *To: *"Langer, Stephen A. (Fed)" >> *Cc: *"vtkusers at vtk.org" >> *Subject: *Re: [vtkusers] vtk getting wrong OpenGL version number from >> mesa and macports >> >> >> >> I'm pretty sure OSX comes with OpenGL and OSX always provides at least >> OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX >> wizard, but generally default vtk builds straight out of the box last I >> checked. Maybe try a clean VTK build using all the defaults and see if that >> works. >> >> >> >> On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) < >> stephen.langer at nist.gov> wrote: >> >> Hi -- >> >> I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd >> been building vtk with Cocoa because with X11 vtk was complaining that it >> couldn't find OpenGL version 3.2 or later. I'm using macports to install >> OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. >> >> I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since >> vtk gets the version number from glew. I tried tracing though the process >> of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), >> but found the glew code to be amazingly opaque. All I know for sure is >> that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are >> empty, but the glew source code *does* set them, in glewContextInit() in >> glew.c. I don't know what it sets them *to*, though. >> >> I'm using the latest vtk from git master, but the problem occurred with >> released versions too. >> >> I don't know if this is a vtk problem or a macports problem or a mesa >> problem, but I didn't get a helpful answer from the macports list. Any >> advice would be much appreciated. >> >> Thanks. >> >> -- Steve >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.esneault at gmail.com Tue Jan 30 04:17:09 2018 From: simon.esneault at gmail.com (Simon Esneault) Date: Tue, 30 Jan 2018 10:17:09 +0100 Subject: [vtkusers] Blue artefact on complex scene with VTK 8.1 + QVTKWidget + OSX and Intel chipset Message-ID: Hello community After the migration to VTK 8.1 (from VTK 7.1), we are seing strange blue artefact in one of our scene as it can be seen in the following snapshots. And I'm having real hard time debugging that ... https://pasteboard.co/H5irkgl.png https://pasteboard.co/H5irBQ4.png The context is as follow : - Qt 5.3.2 on OSX and Intel chipset (Iris or HD > 4000) - VTK 8.1 - 3 layered vtkRenderer in one vtkRenderWindow in a QVTKWidget - GPUVolumeRendering on the first layer, some vtkActor/Polydata on the second layer, and some vtkActor2D/vtkTextActor on the third layer. This bug only appears after the view has been "reparented" (the user can choose different "layout") and is triggered when we add a new vtkPolyData to be rendered. If the user move the scene, all goes back to normal. It look like we're seing some garbage blue buffer, but I have no clue where to look at... Anyone have experienced something like this ? Thanks a lot PS: I know QVTKWidget is deprecated and we should move to QVTKOpenGLWidget, but our app is quite big and moving to Qt >= Qt 5.4 has some other implication so that is not solution for now ... -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From kor1581 at gmail.com Tue Jan 30 07:09:22 2018 From: kor1581 at gmail.com (ran) Date: Tue, 30 Jan 2018 05:09:22 -0700 (MST) Subject: [vtkusers] How can set vtkLineWidget2 end point with mouse events? Message-ID: <1517314162091-0.post@n5.nabble.com> Hi, I'm using vtkLineWidget2 to draw line in vtkResliceImageViewer window. My intention is to draw the line with mouse drag. ie. set the first point in line with left mouse down event and second point in left mouse button up event after triggering the vtkLineWidget2::on() (as like vtkDistanceWidget). Now when call vtkLineWidget2::on(), a point is appearing in window and need to drag the handles to create line. How can I draw the line with vtkLineWidget2 by setting the end points in mouse events like vtkDistanceWidget operation. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From ben.boeckel at kitware.com Tue Jan 30 09:33:33 2018 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 30 Jan 2018 09:33:33 -0500 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <84B5F496-C9B3-48C9-82DF-10BA3DE3E111@nist.gov> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <20180129202801.GA19808@megas.kitware.com> <84B5F496-C9B3-48C9-82DF-10BA3DE3E111@nist.gov> Message-ID: <20180130143333.GD5056@megas.kitware.com> [ Adding the list back to CC. Please keep the list in the loop. ] On Tue, Jan 30, 2018 at 03:17:25 +0000, Langer, Stephen A. (Fed) wrote: > I'm not explicitly requesting any profile -- I'm just trying to use > vtkXOpenGLRenderWindow, which is being created by > vtkRenderWindow::New(). I asked since you said you were looking at the requests; I assume the profile is in there around the same area. > Is MESA_GL_OVERRIDE a run time variable, or do I set it when building > mesa or vtk? Setting it at run time doesn't do anything, unless I'm > doing it wrong.. I tried Sorry, I have this one history item floating around that I really need to purge (done now). It's actually called `MESA_GL_VERSION_OVERRIDE`. > % MESA_GL_OVERRIDE=3.2 [my program] > and it gave the same warnings as before. This is the right way of using it, just the wrong name :) . --Ben From thomas_sgouros at brown.edu Tue Jan 30 10:30:06 2018 From: thomas_sgouros at brown.edu (Sgouros, Thomas) Date: Tue, 30 Jan 2018 10:30:06 -0500 Subject: [vtkusers] vtkgluPickMatrix.h missing Message-ID: Hello all: I compiled VTK 8.1.0 with the Module_vtkRenderingExternal and Module_vtkRenderingFreeType set to ON. Now I get an error that my code (that compiled ok with VTK 8.0.0) cannot find vtkgluPickMatrix.h. I can see this file in the VTK source, but don't know what module must be included to get it to install. Any suggestions? Is there a list somewhere of what code is in which cmake compile modules? Thank you, -Tom -------------- next part -------------- An HTML attachment was scrubbed... URL: From beatrix.schober at gmail.com Tue Jan 30 11:05:46 2018 From: beatrix.schober at gmail.com (Beatrix Schober) Date: Tue, 30 Jan 2018 17:05:46 +0100 Subject: [vtkusers] (no subject) Message-ID: Hello, I am wondering, what is the best way to show/hide pixels with z-value = 0. Source is vtkPolyData (x, y, z with z as height) and I want to hide or show the z-values, which are 0. Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From beatrix.schober at gmail.com Tue Jan 30 11:07:25 2018 From: beatrix.schober at gmail.com (Beatrix Schober) Date: Tue, 30 Jan 2018 17:07:25 +0100 Subject: [vtkusers] How to hide pixels with specific z-value Message-ID: Hello, I am wondering, what is the best way to show/hide pixels with z-value = 0. Source is vtkPolyData (x, y, z with z as height) and I want to hide or show the z-values, which are 0. Thank you very much! -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Tue Jan 30 15:17:12 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Tue, 30 Jan 2018 20:17:12 +0000 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <20180130143333.GD5056@megas.kitware.com> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <20180129202801.GA19808@megas.kitware.com> <84B5F496-C9B3-48C9-82DF-10BA3DE3E111@nist.gov> <20180130143333.GD5056@megas.kitware.com> Message-ID: <0900CC97-D934-4219-AA16-A9A425ADC0EC@nist.gov> Hi Ben -- Setting MESA_GL_VERSION_OVERRIDE doesn't change anything. However, the plot thickens. From within vtkXOpenGLRenderWindow::WindowInitialize(): (1) vtkXOpenGLRenderWindow::CreateAWindow(), in the block under the comment "try for 32 context", is successfully creating an OpenGL 4.5 context (independent of the value of MESA_GL_VERSION_OVERRIDE). (2) Then vtkOpenGLRenderWindow::OpenGLInitContext() calls glewInit() and finds that GLEW_VERSION_3_1 and GLEW_VERSION_3_2 aren't set, which they should be if the GL version is 4.5, right? I don't really understand the difference between GL_VERSION and GLEW_VERSION_x_y. Changing the setting of VTK_USE_SYSTEM_GLEW doesn't affect this behavior. I made sure to uninstall macports' glew after turning off VTK_USE_SYSTEM_GLEW. Sorry about forgetting to CC the list earlier! -- Steve ?On 1/30/18, 9:33 AM, "Ben Boeckel" wrote: [ Adding the list back to CC. Please keep the list in the loop. ] On Tue, Jan 30, 2018 at 03:17:25 +0000, Langer, Stephen A. (Fed) wrote: > I'm not explicitly requesting any profile -- I'm just trying to use > vtkXOpenGLRenderWindow, which is being created by > vtkRenderWindow::New(). I asked since you said you were looking at the requests; I assume the profile is in there around the same area. > Is MESA_GL_OVERRIDE a run time variable, or do I set it when building > mesa or vtk? Setting it at run time doesn't do anything, unless I'm > doing it wrong.. I tried Sorry, I have this one history item floating around that I really need to purge (done now). It's actually called `MESA_GL_VERSION_OVERRIDE`. > % MESA_GL_OVERRIDE=3.2 [my program] > and it gave the same warnings as before. This is the right way of using it, just the wrong name :) . --Ben From ken.martin at kitware.com Tue Jan 30 15:55:38 2018 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 30 Jan 2018 15:55:38 -0500 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: <0900CC97-D934-4219-AA16-A9A425ADC0EC@nist.gov> References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <20180129202801.GA19808@megas.kitware.com> <84B5F496-C9B3-48C9-82DF-10BA3DE3E111@nist.gov> <20180130143333.GD5056@megas.kitware.com> <0900CC97-D934-4219-AA16-A9A425ADC0EC@nist.gov> Message-ID: On Tue, Jan 30, 2018 at 3:17 PM, Langer, Stephen A. (Fed) < stephen.langer at nist.gov> wrote: > From within vtkXOpenGLRenderWindow::WindowInitialize(): > > (1) vtkXOpenGLRenderWindow::CreateAWindow(), in the block under the > comment "try for 32 context", is successfully creating an OpenGL 4.5 > context (independent of the value of MESA_GL_VERSION_OVERRIDE). > > That is good. > (2) Then vtkOpenGLRenderWindow::OpenGLInitContext() calls glewInit() and > finds that GLEW_VERSION_3_1 and GLEW_VERSION_3_2 aren't set, which they > should be if the GL version is 4.5, right? I don't really understand the > difference between GL_VERSION and GLEW_VERSION_x_y. > > Yes, with 4.5 you also have 3.1 and 3.2. The glew that comes with VTK is modified to fix an issue in the original glew that caused glew to think it did not have 3.1/3.2 when on OSX. Maybe somehow a system glew is still being picked up. > Changing the setting of VTK_USE_SYSTEM_GLEW doesn't affect this behavior. > I made sure to uninstall macports' glew after turning off > VTK_USE_SYSTEM_GLEW. > > Sorry about forgetting to CC the list earlier! > > -- Steve > > ?On 1/30/18, 9:33 AM, "Ben Boeckel" wrote: > > [ Adding the list back to CC. Please keep the list in the loop. ] > > On Tue, Jan 30, 2018 at 03:17:25 +0000, Langer, Stephen A. (Fed) wrote: > > I'm not explicitly requesting any profile -- I'm just trying to use > > vtkXOpenGLRenderWindow, which is being created by > > vtkRenderWindow::New(). > > I asked since you said you were looking at the requests; I assume the > profile is in there around the same area. > > > Is MESA_GL_OVERRIDE a run time variable, or do I set it when building > > mesa or vtk? Setting it at run time doesn't do anything, unless I'm > > doing it wrong.. I tried > > Sorry, I have this one history item floating around that I really need > to purge (done now). It's actually called `MESA_GL_VERSION_OVERRIDE`. > > > % MESA_GL_OVERRIDE=3.2 [my program] > > and it gave the same warnings as before. > > This is the right way of using it, just the wrong name :) . > > --Ben > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From bebe0705 at colorado.edu Tue Jan 30 16:00:23 2018 From: bebe0705 at colorado.edu (BBerco) Date: Tue, 30 Jan 2018 14:00:23 -0700 (MST) Subject: [vtkusers] Shadow casting: vtkFrameBufferObject.h not found in example code In-Reply-To: References: <1517198894770-0.post@n5.nabble.com> <1517242989552-0.post@n5.nabble.com> Message-ID: <1517346023844-0.post@n5.nabble.com> Thanks, I was able to build and run the example. Unfortunately I'm having issues when I'm turning up the mutual shadowing in my application, built around a qvtkwidget Upon clicking on a GUI element, I'm executing the following code (directly taken from the example) that should turn on mutual shadowing (that is, an actor can cast a shadow over another actor). To this end, I've added a scene light to the renderer and removed the default headlight. Two things: 1: Although the scene exactly behaves like it should, vtk is displaying a warning message on my terminal, claiming that a " light has unknown light type" . I created the scene light by passing 0 to the SetLightType(int) method. 2: If at least one actor is displayed in the renderer, Render() runs into a segmentation fault (see comment at the very bottom of the code). Also, provided that I get the mutual shadowing to work, is there a way to dynamically update the shadow locations or is this a static process that needs to be repeated? * vtkSmartPointer shadows = vtkSmartPointer::New(); vtkSmartPointer seq = vtkSmartPointer::New(); vtkSmartPointer passes =vtkSmartPointer::New(); passes -> AddItem(shadows -> GetShadowMapBakerPass()); passes -> AddItem(shadows); seq -> SetPasses(passes); vtkSmartPointer cameraP = vtkSmartPointer::New(); cameraP->SetDelegatePass(seq); vtkOpenGLRenderer *glrenderer = vtkOpenGLRenderer::SafeDownCast(this -> parent -> get_renderer()); glrenderer->SetPass(cameraP); // segfaults inside Render() this -> parent -> qvtkWidget -> GetRenderWindow() -> Render();* -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From chris.marsh at usask.ca Tue Jan 30 16:26:38 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Tue, 30 Jan 2018 15:26:38 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi all, I have some updates on this. I recently discovered the LD_DEBUG=bindings linker tool, so I can see what is happening. There appear to be many cases where either the proj4 library I built or my executable bind to symbols in libvtkproj. A few examples shown here. 'After patch elf' is when I use patchelf with --replace-needed to remove libvtkproj.so As built 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_prime_meridians' 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_list' 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol `stdout' [GLIBC_2.2.5] 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_ellps' 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_datums' After patch elf 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_prime_meridians' 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_list' 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol `stdout' [GLIBC_2.2.5] 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_ellps' 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_datums' Another example: As built 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol `stderr' [GLIBC_2.2.5] 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_units' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aea' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aeqd' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_airy' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aitoff' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_alsk' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_apian' 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august' after patchelf 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_units' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aea' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aeqd' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_airy' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_aitoff' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_alsk' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_apian' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august' 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal symbol `pj_s_august' Building VTK with system proj4 does correctly 'solve' the problem. Can provide more details if required. Cheers Chris On 16 January 2018 at 13:17, Chris Marsh wrote: > Hi all, > > Thanks for the detailed thoughts. > > Is the message you are getting from proj saying that the string you pass >> is not valid? >> > Correct. However, I've verified with both the GDAL and proj4 mailing lists > that the string is correct. The string is actually output from proj4 > itself, so I have substantial confidence in it. > > >> Maybe somebody overrides that memory? >> Try run your program though valgrind and/or comment out chunks of code >> trying to see who causes your error. >> > Valgrind and the Intel memory tools show no memory corruption. > > Is VTK in the call stack for the errors you described? If not, I think it >> is not involved in the errors. > > GDAL, as I understand, dynamically opens the .so at runtime, so it's tough > to figure out exactly what it is doing. Looking at the backtrace in gdb > shows that it appears to be calling into the system proj4 before it > segfaults. > > If I use patchelf to strip the vtkproj4 reference, it is then fine. If > use patchelf to strip the system proj4 leaving the vtkproj4, I get the same > error and segfault. > > I *suspect* GDAL is doing the wrong thing here and loading the wrong > library for some calls. This is all to say, I don't think it's a VTK > problem per se, but is for whatever reason, conflicting on this system. > > Further weirdness is that on the machines this works 100%, I don't see any > reference to libvtkproj4. > > I'll follow up after I rebuild everything again with the VTK system proj4. > > Thanks very much, > > Cheers > Chris > > > University of Saskatchewan > > On 15 January 2018 at 10:03, Dan Lipsa wrote: > >> Hi Chris, >> Is VTK in the call stack for the errors you described? If not, I think it >> is not involved in the errors. >> >> vtkproj should not interfere with proj, but you can make VTK use the >> system proj with the method described earlier. >> >> Is the message you are getting from proj saying that the string you pass >> is not valid? Maybe somebody overrides that memory? >> Try run your program though valgrind and/or comment out chunks of code >> trying to see who causes your error. >> Hope this helps, >> Dan >> >> >> >> On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh >> wrote: >> >>> Hi Dan, >>> >>> I'm trying to figure out the issue I detail here: >>> http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PRO >>> J-4-with-quot-quot-td5338323.html >>> http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed- >>> to-initialize-PROJ-4-with-quot-quot-td5338107.html >>> >>> Effectively the error is that GDAL seems to call the incorrect >>> library/something happens, and the projection fails. >>> >>> In an effort to resolve this I was looking at my binary via LDD and found >>> $ ldd ~/build-release/bin/Release/CHM | grep proj4 >>> libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >>> (0x00002b517aa36000) >>> libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 >>> (0x00002b51944d2000) >>> >>> If I use patchelf (https://github.com/NixOS/patchelf) to strip >>> libvtkproj4-8.0.so.1 from my binary, my code runs without the error. >>> >>> I don't quite understand why I don't have this problem on other machines >>> though. Looking at other machines I compile on (using a custom VTK build) I >>> don't see any reference to the VTK libproj4 via ldd. >>> >>> Thus I attributed the error to vtkproj4 inclusion. However if you mangle >>> names, then I agree I don't understand why this is happening. >>> >>> Cheers >>> Chris >>> >>> >>> On 12 January 2018 at 09:35, Dan Lipsa wrote: >>> >>>> Chris, >>>> >>>> 1. Going back to the beginning of the thread, I don't understand why >>>> vtklibproj conflicts with another proj, given that we mangle all names. Can >>>> you send us the errors. >>>> >>>> 2. If you do want to build with the system proj4 >>>> >>>> Can you send up the output of: >>>> cat CMakeCache.txt | grep LIBPROJ >>>> >>>> This is what I have: >>>> LIBPROJ4_INCLUDE_DIR:PATH=/usr/include >>>> LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 >>>> LIBPROJ_BINDIR:PATH=bin >>>> LIBPROJ_DATADIR:PATH=share/proj >>>> LIBPROJ_DOCDIR:PATH=doc/proj >>>> LIBPROJ_INCLUDEDIR:PATH=include >>>> LIBPROJ_LIBDIR:PATH=lib >>>> LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so >>>> LIBPROJ_USE_THREAD:BOOL=ON >>>> //Use system-installed LIBPROJ4 >>>> VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON >>>> //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR >>>> LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ4_LIBRARIES >>>> LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 >>>> //MODIFIED property for variable: LIBPROJ4_LIBRARIES >>>> LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON >>>> //ADVANCED property for variable: LIBPROJ_BINDIR >>>> LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_DATADIR >>>> LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_DOCDIR >>>> LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_INCLUDEDIR >>>> LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_LIBDIR >>>> LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_M_LIB >>>> LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: LIBPROJ_USE_THREAD >>>> LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 >>>> //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>> VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 >>>> //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>> VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON >>>> >>>> >>>> Make sure >>>> LIBPROJ4_INCLUDE_DIR >>>> LIBPROJ4_LIBRARIES >>>> VTK_USE_SYSTEM_LIBPROJ4 >>>> have the correct values. >>>> >>>> All those are cmake variables, you change them using ccmake or >>>> cmake-gui. >>>> After that you call: >>>> >>>> cmake . >>>> make >>>> >>>> >>>> >>>> On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < >>>> aashish.chaudhary at kitware.com> wrote: >>>> >>>>> Dan Lipsa made last changes perhaps he may have some suggestions. >>>>> >>>>> - aashish >>>>> >>>>> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh >>>>> wrote: >>>>> >>>>>> Looks like something is setting >>>>>> PROJ4_INCLUDE_DIR >>>>>> PROJ4_LIBRARY >>>>>> to the system's proj4. I use a custom findproj4 that only looks where >>>>>> I tell it. >>>>>> >>>>>> then I see that >>>>>> LIB_FILES:INTERNAL >>>>>> contains vtkproj4 >>>>>> LIB_FILES just holds all my 3rd party libraries I need to link >>>>>> against. >>>>>> >>>>>> Chris Marsh >>>>>> PhD Candidate >>>>>> chrismarsh.ca >>>>>> >>>>>> 121 Research Drive >>>>>> >>>>>> University of Saskatchewan >>>>>> >>>>>> >>>>>> On 11 January 2018 at 13:29, Ben Boeckel >>>>>> wrote: >>>>>> >>>>>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>>>>> > Thanks for the details. This doesn't seem to be working for me >>>>>>> though. I've >>>>>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command line >>>>>>> as well >>>>>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>>>>>> neither >>>>>>> > works. I still see the vtklibproj4 in the output of ldd. >>>>>>> >>>>>>> CMake should be getting the flag. If you do: >>>>>>> >>>>>>> grep -i proj4 CMakeCache.txt >>>>>>> >>>>>>> do any variables stand out as potentially being set to use the >>>>>>> internal >>>>>>> one? >>>>>>> >>>>>>> --Ben >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at >>>>>> http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> https://vtk.org/mailman/listinfo/vtkusers >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Tue Jan 30 17:08:18 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Tue, 30 Jan 2018 22:08:18 +0000 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <20180129202801.GA19808@megas.kitware.com> <84B5F496-C9B3-48C9-82DF-10BA3DE3E111@nist.gov> <20180130143333.GD5056@megas.kitware.com> <0900CC97-D934-4219-AA16-A9A425ADC0EC@nist.gov> Message-ID: <9254E192-5453-4B15-8DAF-466CCE86FD6B@nist.gov> On 1/30/18, 3:55 PM, "Ken Martin" > wrote: On Tue, Jan 30, 2018 at 3:17 PM, Langer, Stephen A. (Fed) > wrote: From within vtkXOpenGLRenderWindow::WindowInitialize(): (1) vtkXOpenGLRenderWindow::CreateAWindow(), in the block under the comment "try for 32 context", is successfully creating an OpenGL 4.5 context (independent of the value of MESA_GL_VERSION_OVERRIDE). That is good. (2) Then vtkOpenGLRenderWindow::OpenGLInitContext() calls glewInit() and finds that GLEW_VERSION_3_1 and GLEW_VERSION_3_2 aren't set, which they should be if the GL version is 4.5, right? I don't really understand the difference between GL_VERSION and GLEW_VERSION_x_y. Yes, with 4.5 you also have 3.1 and 3.2. The glew that comes with VTK is modified to fix an issue in the original glew that caused glew to think it did not have 3.1/3.2 when on OSX. Maybe somehow a system glew is still being picked up. It's definitely using the VTK glew when I turn VTK_USE_SYSTEM_GLEW off. I uninstalled the macports glew to be sure. I modified glewContextInit() in VTK's glew.c to print the GL version, and it's printing 2.1. The full version string is "s=2.1 ATI-1.51.8". I haven't figured out where *that* comes from -- it's returned by glGetString(GL_VERSION) but the mesa source is very hard to navigate. -- Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephen.langer at nist.gov Tue Jan 30 17:13:31 2018 From: stephen.langer at nist.gov (Langer, Stephen A. (Fed)) Date: Tue, 30 Jan 2018 22:13:31 +0000 Subject: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports In-Reply-To: References: <37D63EDD-4303-4C57-8281-F7B17718FED0@nist.gov> <4B3E5AB5-14C9-4C99-8469-874F10BEDA43@nist.gov> Message-ID: <941BED3D-D642-4CA1-8699-56788F3AB5AD@nist.gov> I think that macports' xorg-server port is supposed to be the same as xquartz, but I downloaded xquartz to see what was in it, and I does provide glx.h while xorg-server does not. For simplicity (hah!) I'd like to keep as much as possible of the installation within macports, so I'd rather not install xquartz. Perhaps I'll have to give up on that. -- Steve On 1/29/18, 11:16 PM, "David Gobbi" > wrote: Hmm, I just checked and /usr/X11R6 is just a symlink to /opt/X11, so the latter is probably the better place to look. On Mon, Jan 29, 2018 at 8:33 PM, David Gobbi > wrote: Hi Steve, If you install xquartz, you should see glx.h in /usr/X11R6/include. On OS X, X11 always had its own GL headers and libraries inside /usr/X11R6/include and /usr/X11R6/lib. You'd definitely have to link to those libraries, rather than linking to OpenGL.framework. I remember that VTK-X11 on OS X was a well-supported configuration back in 2005 or so. - David On Mon, Jan 29, 2018 at 8:06 PM, Langer, Stephen A. (Fed) > wrote: OSX does come with OpenGL, but not the X11 parts of it. There's no glx.h in /System/Library/Frameworks/OpenGL.framework/Headers, and the libraries don't define glXChooseFBConfig and other symbols used by VTK. Just firing up ccmake and not making any changes to the configuration gives VTK_USE_X=OFF and VTK_USE_COCOA=ON, but I want them the other way around. Changing those two settings but nothing else makes it try to link to the OpenGL.framework, and the build fails because the framework doesn't support X11. Pointing OPENGL_INCLUDE_DIR, OPENGL_gl_LIBRARY, and OPENGL_glu_LIBRARY to the mesa components lets VTK build, but it gives a warning at run time when it checks the OpenGL version, and then crashes. The reason for doing this is that many (most?) ports in macports use X11 instead of Cocoa/Quartz, and it's difficult to mix the two. Our software will be easier to distribute if it can be built to use either X11 or Cocoa. Also, we're using gtk2, and it works better in X11. (Someday we'll upgrade to gtk3?) -- Steve From: Ken Martin > Date: Monday, January 29, 2018 at 3:21 PM To: "Langer, Stephen A. (Fed)" > Cc: "vtkusers at vtk.org" > Subject: Re: [vtkusers] vtk getting wrong OpenGL version number from mesa and macports I'm pretty sure OSX comes with OpenGL and OSX always provides at least OpenGL 3.2 as of any version of OSX in the past few years. I'm not an OSX wizard, but generally default vtk builds straight out of the box last I checked. Maybe try a clean VTK build using all the defaults and see if that works. On Mon, Jan 29, 2018 at 3:08 PM, Langer, Stephen A. (Fed) > wrote: Hi -- I'm revisiting earler efforts to get vtk working with X11 on macOS. I'd been building vtk with Cocoa because with X11 vtk was complaining that it couldn't find OpenGL version 3.2 or later. I'm using macports to install OpenGL (mesa), and supposedly it's providing version 4.5 of OpenGL. I've tried building vtk both with and without VTK_USE_SYSTEM_GLEW, since vtk gets the version number from glew. I tried tracing though the process of getting the version number, starting with vtkOpenGLRenderWindow::OpenGLInitContext(), but found the glew code to be amazingly opaque. All I know for sure is that in vtk's OpenGLInitContext, GLEW_VERSION_3_2 and GLEW_VERSION_3_1 are empty, but the glew source code *does* set them, in glewContextInit() in glew.c. I don't know what it sets them *to*, though. I'm using the latest vtk from git master, but the problem occurred with released versions too. I don't know if this is a vtk problem or a macports problem or a mesa problem, but I didn't get a helpful answer from the macports list. Any advice would be much appreciated. Thanks. -- Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Tue Jan 30 17:35:12 2018 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Tue, 30 Jan 2018 17:35:12 -0500 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi Chris, Thanks for investigating this. Indeed, looking the the so file, there are some symbols that we are not mangling, which cause the problems you've seen. I believe this was caused by updating of the version of the library we are including without updating the list of symbols we are mangling. We'll fix this shortly, Dan On Tue, Jan 30, 2018 at 4:26 PM, Chris Marsh wrote: > Hi all, > > I have some updates on this. I recently discovered the LD_DEBUG=bindings > linker tool, so I can see what is happening. > > There appear to be many cases where either the proj4 library I built or my > executable bind to symbols in libvtkproj. > > A few examples shown here. 'After patch elf' is when I use patchelf with > --replace-needed to remove libvtkproj.so > > As built > 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: > normal symbol `pj_prime_meridians' > 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: > normal symbol `pj_list' > 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol > `stdout' [GLIBC_2.2.5] > 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: > normal symbol `pj_ellps' > 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: > normal symbol `pj_datums' > > After patch elf > > 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal > symbol `pj_prime_meridians' > 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal > symbol `pj_list' > 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol > `stdout' [GLIBC_2.2.5] > 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal > symbol `pj_ellps' > 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: normal > symbol `pj_datums' > > > Another example: > > As built > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/bin/Release/CHM > [0]: normal symbol `stderr' [GLIBC_2.2.5] > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_units' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aea' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aeqd' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_airy' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_aitoff' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_alsk' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `pj_s_apian' > 21340: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august' > > > after patchelf > > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_units' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aea' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_aea' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aeqd' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_aeqd' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_airy' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_airy' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_aitoff' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_aitoff' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_alsk' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_alsk' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_apian' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_apian' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: normal symbol `vtk_pj_august' > 21259: binding file /home/cbm038/build-release/ > lib/VTK/lib/libvtkproj4-8.0.so.1 [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 > [0]: normal symbol `pj_s_august' > > > Building VTK with system proj4 does correctly 'solve' the problem. > > Can provide more details if required. > > Cheers > Chris > > On 16 January 2018 at 13:17, Chris Marsh wrote: > >> Hi all, >> >> Thanks for the detailed thoughts. >> >> Is the message you are getting from proj saying that the string you pass >>> is not valid? >>> >> Correct. However, I've verified with both the GDAL and proj4 mailing >> lists that the string is correct. The string is actually output from proj4 >> itself, so I have substantial confidence in it. >> >> >>> Maybe somebody overrides that memory? >>> Try run your program though valgrind and/or comment out chunks of code >>> trying to see who causes your error. >>> >> Valgrind and the Intel memory tools show no memory corruption. >> >> Is VTK in the call stack for the errors you described? If not, I think it >>> is not involved in the errors. >> >> GDAL, as I understand, dynamically opens the .so at runtime, so it's >> tough to figure out exactly what it is doing. Looking at the backtrace in >> gdb shows that it appears to be calling into the system proj4 before it >> segfaults. >> >> If I use patchelf to strip the vtkproj4 reference, it is then fine. If >> use patchelf to strip the system proj4 leaving the vtkproj4, I get the same >> error and segfault. >> >> I *suspect* GDAL is doing the wrong thing here and loading the wrong >> library for some calls. This is all to say, I don't think it's a VTK >> problem per se, but is for whatever reason, conflicting on this system. >> >> Further weirdness is that on the machines this works 100%, I don't see >> any reference to libvtkproj4. >> >> I'll follow up after I rebuild everything again with the VTK system proj4. >> >> Thanks very much, >> >> Cheers >> Chris >> >> >> University of Saskatchewan >> >> On 15 January 2018 at 10:03, Dan Lipsa wrote: >> >>> Hi Chris, >>> Is VTK in the call stack for the errors you described? If not, I think >>> it is not involved in the errors. >>> >>> vtkproj should not interfere with proj, but you can make VTK use the >>> system proj with the method described earlier. >>> >>> Is the message you are getting from proj saying that the string you pass >>> is not valid? Maybe somebody overrides that memory? >>> Try run your program though valgrind and/or comment out chunks of code >>> trying to see who causes your error. >>> Hope this helps, >>> Dan >>> >>> >>> >>> On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh >>> wrote: >>> >>>> Hi Dan, >>>> >>>> I'm trying to figure out the issue I detail here: >>>> http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PRO >>>> J-4-with-quot-quot-td5338323.html >>>> http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed- >>>> to-initialize-PROJ-4-with-quot-quot-td5338107.html >>>> >>>> Effectively the error is that GDAL seems to call the incorrect >>>> library/something happens, and the projection fails. >>>> >>>> In an effort to resolve this I was looking at my binary via LDD and >>>> found >>>> $ ldd ~/build-release/bin/Release/CHM | grep proj4 >>>> libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >>>> (0x00002b517aa36000) >>>> libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 >>>> (0x00002b51944d2000) >>>> >>>> If I use patchelf (https://github.com/NixOS/patchelf) to strip >>>> libvtkproj4-8.0.so.1 from my binary, my code runs without the error. >>>> >>>> I don't quite understand why I don't have this problem on other >>>> machines though. Looking at other machines I compile on (using a custom VTK >>>> build) I don't see any reference to the VTK libproj4 via ldd. >>>> >>>> Thus I attributed the error to vtkproj4 inclusion. However if you >>>> mangle names, then I agree I don't understand why this is happening. >>>> >>>> Cheers >>>> Chris >>>> >>>> >>>> On 12 January 2018 at 09:35, Dan Lipsa wrote: >>>> >>>>> Chris, >>>>> >>>>> 1. Going back to the beginning of the thread, I don't understand why >>>>> vtklibproj conflicts with another proj, given that we mangle all names. Can >>>>> you send us the errors. >>>>> >>>>> 2. If you do want to build with the system proj4 >>>>> >>>>> Can you send up the output of: >>>>> cat CMakeCache.txt | grep LIBPROJ >>>>> >>>>> This is what I have: >>>>> LIBPROJ4_INCLUDE_DIR:PATH=/usr/include >>>>> LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 >>>>> LIBPROJ_BINDIR:PATH=bin >>>>> LIBPROJ_DATADIR:PATH=share/proj >>>>> LIBPROJ_DOCDIR:PATH=doc/proj >>>>> LIBPROJ_INCLUDEDIR:PATH=include >>>>> LIBPROJ_LIBDIR:PATH=lib >>>>> LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so >>>>> LIBPROJ_USE_THREAD:BOOL=ON >>>>> //Use system-installed LIBPROJ4 >>>>> VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON >>>>> //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR >>>>> LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ4_LIBRARIES >>>>> LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 >>>>> //MODIFIED property for variable: LIBPROJ4_LIBRARIES >>>>> LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON >>>>> //ADVANCED property for variable: LIBPROJ_BINDIR >>>>> LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_DATADIR >>>>> LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_DOCDIR >>>>> LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_INCLUDEDIR >>>>> LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_LIBDIR >>>>> LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_M_LIB >>>>> LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: LIBPROJ_USE_THREAD >>>>> LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 >>>>> //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>>> VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 >>>>> //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>>> VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON >>>>> >>>>> >>>>> Make sure >>>>> LIBPROJ4_INCLUDE_DIR >>>>> LIBPROJ4_LIBRARIES >>>>> VTK_USE_SYSTEM_LIBPROJ4 >>>>> have the correct values. >>>>> >>>>> All those are cmake variables, you change them using ccmake or >>>>> cmake-gui. >>>>> After that you call: >>>>> >>>>> cmake . >>>>> make >>>>> >>>>> >>>>> >>>>> On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < >>>>> aashish.chaudhary at kitware.com> wrote: >>>>> >>>>>> Dan Lipsa made last changes perhaps he may have some suggestions. >>>>>> >>>>>> - aashish >>>>>> >>>>>> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh >>>>>> wrote: >>>>>> >>>>>>> Looks like something is setting >>>>>>> PROJ4_INCLUDE_DIR >>>>>>> PROJ4_LIBRARY >>>>>>> to the system's proj4. I use a custom findproj4 that only looks >>>>>>> where I tell it. >>>>>>> >>>>>>> then I see that >>>>>>> LIB_FILES:INTERNAL >>>>>>> contains vtkproj4 >>>>>>> LIB_FILES just holds all my 3rd party libraries I need to link >>>>>>> against. >>>>>>> >>>>>>> Chris Marsh >>>>>>> PhD Candidate >>>>>>> chrismarsh.ca >>>>>>> >>>>>>> 121 Research Drive >>>>>>> >>>>>>> University of Saskatchewan >>>>>>> >>>>>>> >>>>>>> On 11 January 2018 at 13:29, Ben Boeckel >>>>>>> wrote: >>>>>>> >>>>>>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>>>>>> > Thanks for the details. This doesn't seem to be working for me >>>>>>>> though. I've >>>>>>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command >>>>>>>> line as well >>>>>>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", however >>>>>>>> neither >>>>>>>> > works. I still see the vtklibproj4 in the output of ldd. >>>>>>>> >>>>>>>> CMake should be getting the flag. If you do: >>>>>>>> >>>>>>>> grep -i proj4 CMakeCache.txt >>>>>>>> >>>>>>>> do any variables stand out as potentially being set to use the >>>>>>>> internal >>>>>>>> one? >>>>>>>> >>>>>>>> --Ben >>>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Powered by www.kitware.com >>>>>>> >>>>>>> Visit other Kitware open-source projects at >>>>>>> http://www.kitware.com/opensource/opensource.html >>>>>>> >>>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>>> >>>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>>> >>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>> https://vtk.org/mailman/listinfo/vtkusers >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From simon.esneault at gmail.com Tue Jan 30 17:48:33 2018 From: simon.esneault at gmail.com (Simon Esneault) Date: Tue, 30 Jan 2018 23:48:33 +0100 Subject: [vtkusers] Blue artefact on complex scene with VTK 8.1 + QVTKWidget + OSX and Intel chipset In-Reply-To: References: Message-ID: I forgot to say that the same code does not produce any blue artefact on an Nvidia or ATI card, and we were not able to reproduce this visual glitch on Windows either. If that can help ... Thanks Simon Le 30 janv. 2018 10:17, "Simon Esneault" a ?crit : Hello community After the migration to VTK 8.1 (from VTK 7.1), we are seing strange blue artefact in one of our scene as it can be seen in the following snapshots. And I'm having real hard time debugging that ... https://pasteboard.co/H5irkgl.png https://pasteboard.co/H5irBQ4.png The context is as follow : - Qt 5.3.2 on OSX and Intel chipset (Iris or HD > 4000) - VTK 8.1 - 3 layered vtkRenderer in one vtkRenderWindow in a QVTKWidget - GPUVolumeRendering on the first layer, some vtkActor/Polydata on the second layer, and some vtkActor2D/vtkTextActor on the third layer. This bug only appears after the view has been "reparented" (the user can choose different "layout") and is triggered when we add a new vtkPolyData to be rendered. If the user move the scene, all goes back to normal. It look like we're seing some garbage blue buffer, but I have no clue where to look at... Anyone have experienced something like this ? Thanks a lot PS: I know QVTKWidget is deprecated and we should move to QVTKOpenGLWidget, but our app is quite big and moving to Qt >= Qt 5.4 has some other implication so that is not solution for now ... -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.marsh at usask.ca Tue Jan 30 17:59:53 2018 From: chris.marsh at usask.ca (Chris Marsh) Date: Tue, 30 Jan 2018 16:59:53 -0600 Subject: [vtkusers] Don't build vtkproj4? In-Reply-To: References: <20180110125844.GA1305@megas.kitware.com> <20180110153601.GA21857@megas.kitware.com> <20180111192937.GA11091@megas.kitware.com> Message-ID: Hi, That is great to hear! Cheers Chris On 30 January 2018 at 16:35, Dan Lipsa wrote: > Hi Chris, > Thanks for investigating this. > Indeed, looking the the so file, there are some symbols that we are not > mangling, which cause the problems you've seen. > I believe this was caused by updating of the version of the library we are > including without updating the list of symbols we are mangling. > We'll fix this shortly, > > Dan > > > On Tue, Jan 30, 2018 at 4:26 PM, Chris Marsh wrote: > >> Hi all, >> >> I have some updates on this. I recently discovered the LD_DEBUG=bindings >> linker tool, so I can see what is happening. >> >> There appear to be many cases where either the proj4 library I built or >> my executable bind to symbols in libvtkproj. >> >> A few examples shown here. 'After patch elf' is when I use patchelf with >> --replace-needed to remove libvtkproj.so >> >> As built >> 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_prime_meridians' >> 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_list' >> 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol >> `stdout' [GLIBC_2.2.5] >> 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_ellps' >> 21340: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_datums' >> >> After patch elf >> >> 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_prime_meridians' >> 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_list' >> 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol >> `stdout' [GLIBC_2.2.5] >> 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_ellps' >> 21259: binding file /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_datums' >> >> >> Another example: >> >> As built >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/bin/Release/CHM [0]: normal symbol >> `stderr' [GLIBC_2.2.5] >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_units' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aea' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_aea' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aeqd' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_aeqd' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_airy' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_airy' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aitoff' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_aitoff' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_alsk' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_alsk' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_apian' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `pj_s_apian' >> 21340: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_august' >> >> >> after patchelf >> >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_units' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aea' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_aea' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aeqd' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_aeqd' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_airy' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_airy' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_aitoff' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_aitoff' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_alsk' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_alsk' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_apian' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_apian' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 [0]: >> normal symbol `vtk_pj_august' >> 21259: binding file /home/cbm038/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >> [0] to /home/cbm038/build-release/lib/proj4/lib/libproj.so.12 [0]: >> normal symbol `pj_s_august' >> >> >> Building VTK with system proj4 does correctly 'solve' the problem. >> >> Can provide more details if required. >> >> Cheers >> Chris >> >> On 16 January 2018 at 13:17, Chris Marsh wrote: >> >>> Hi all, >>> >>> Thanks for the detailed thoughts. >>> >>> Is the message you are getting from proj saying that the string you pass >>>> is not valid? >>>> >>> Correct. However, I've verified with both the GDAL and proj4 mailing >>> lists that the string is correct. The string is actually output from proj4 >>> itself, so I have substantial confidence in it. >>> >>> >>>> Maybe somebody overrides that memory? >>>> Try run your program though valgrind and/or comment out chunks of code >>>> trying to see who causes your error. >>>> >>> Valgrind and the Intel memory tools show no memory corruption. >>> >>> Is VTK in the call stack for the errors you described? If not, I think >>>> it is not involved in the errors. >>> >>> GDAL, as I understand, dynamically opens the .so at runtime, so it's >>> tough to figure out exactly what it is doing. Looking at the backtrace in >>> gdb shows that it appears to be calling into the system proj4 before it >>> segfaults. >>> >>> If I use patchelf to strip the vtkproj4 reference, it is then fine. If >>> use patchelf to strip the system proj4 leaving the vtkproj4, I get the same >>> error and segfault. >>> >>> I *suspect* GDAL is doing the wrong thing here and loading the wrong >>> library for some calls. This is all to say, I don't think it's a VTK >>> problem per se, but is for whatever reason, conflicting on this system. >>> >>> Further weirdness is that on the machines this works 100%, I don't see >>> any reference to libvtkproj4. >>> >>> I'll follow up after I rebuild everything again with the VTK system >>> proj4. >>> >>> Thanks very much, >>> >>> Cheers >>> Chris >>> >>> >>> University of Saskatchewan >>> >>> On 15 January 2018 at 10:03, Dan Lipsa wrote: >>> >>>> Hi Chris, >>>> Is VTK in the call stack for the errors you described? If not, I think >>>> it is not involved in the errors. >>>> >>>> vtkproj should not interfere with proj, but you can make VTK use the >>>> system proj with the method described earlier. >>>> >>>> Is the message you are getting from proj saying that the string you >>>> pass is not valid? Maybe somebody overrides that memory? >>>> Try run your program though valgrind and/or comment out chunks of code >>>> trying to see who causes your error. >>>> Hope this helps, >>>> Dan >>>> >>>> >>>> >>>> On Fri, Jan 12, 2018 at 3:32 PM, Chris Marsh >>>> wrote: >>>> >>>>> Hi Dan, >>>>> >>>>> I'm trying to figure out the issue I detail here: >>>>> http://osgeo-org.1560.x6.nabble.com/Failed-to-initialize-PRO >>>>> J-4-with-quot-quot-td5338323.html >>>>> http://osgeo-org.1560.x6.nabble.com/gdal-dev-ERROR-6-Failed- >>>>> to-initialize-PROJ-4-with-quot-quot-td5338107.html >>>>> >>>>> Effectively the error is that GDAL seems to call the incorrect >>>>> library/something happens, and the projection fails. >>>>> >>>>> In an effort to resolve this I was looking at my binary via LDD and >>>>> found >>>>> $ ldd ~/build-release/bin/Release/CHM | grep proj4 >>>>> libvtkproj4-8.0.so.1 => /home/cmarsh/build-release/lib/VTK/lib/libvtkproj4-8.0.so.1 >>>>> (0x00002b517aa36000) >>>>> libproj.so.0 => /home/cmarsh/build-release/lib/proj4/lib/libproj.so.0 >>>>> (0x00002b51944d2000) >>>>> >>>>> If I use patchelf (https://github.com/NixOS/patchelf) to strip >>>>> libvtkproj4-8.0.so.1 from my binary, my code runs without the error. >>>>> >>>>> I don't quite understand why I don't have this problem on other >>>>> machines though. Looking at other machines I compile on (using a custom VTK >>>>> build) I don't see any reference to the VTK libproj4 via ldd. >>>>> >>>>> Thus I attributed the error to vtkproj4 inclusion. However if you >>>>> mangle names, then I agree I don't understand why this is happening. >>>>> >>>>> Cheers >>>>> Chris >>>>> >>>>> >>>>> On 12 January 2018 at 09:35, Dan Lipsa wrote: >>>>> >>>>>> Chris, >>>>>> >>>>>> 1. Going back to the beginning of the thread, I don't understand why >>>>>> vtklibproj conflicts with another proj, given that we mangle all names. Can >>>>>> you send us the errors. >>>>>> >>>>>> 2. If you do want to build with the system proj4 >>>>>> >>>>>> Can you send up the output of: >>>>>> cat CMakeCache.txt | grep LIBPROJ >>>>>> >>>>>> This is what I have: >>>>>> LIBPROJ4_INCLUDE_DIR:PATH=/usr/include >>>>>> LIBPROJ4_LIBRARIES:FILEPATH=/usr/lib/x86_64-linux-gnu/libproj.so.12 >>>>>> LIBPROJ_BINDIR:PATH=bin >>>>>> LIBPROJ_DATADIR:PATH=share/proj >>>>>> LIBPROJ_DOCDIR:PATH=doc/proj >>>>>> LIBPROJ_INCLUDEDIR:PATH=include >>>>>> LIBPROJ_LIBDIR:PATH=lib >>>>>> LIBPROJ_M_LIB:FILEPATH=/usr/lib/x86_64-linux-gnu/libm.so >>>>>> LIBPROJ_USE_THREAD:BOOL=ON >>>>>> //Use system-installed LIBPROJ4 >>>>>> VTK_USE_SYSTEM_LIBPROJ4:BOOL=ON >>>>>> //ADVANCED property for variable: LIBPROJ4_INCLUDE_DIR >>>>>> LIBPROJ4_INCLUDE_DIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ4_LIBRARIES >>>>>> LIBPROJ4_LIBRARIES-ADVANCED:INTERNAL=1 >>>>>> //MODIFIED property for variable: LIBPROJ4_LIBRARIES >>>>>> LIBPROJ4_LIBRARIES-MODIFIED:INTERNAL=ON >>>>>> //ADVANCED property for variable: LIBPROJ_BINDIR >>>>>> LIBPROJ_BINDIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_DATADIR >>>>>> LIBPROJ_DATADIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_DOCDIR >>>>>> LIBPROJ_DOCDIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_INCLUDEDIR >>>>>> LIBPROJ_INCLUDEDIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_LIBDIR >>>>>> LIBPROJ_LIBDIR-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_M_LIB >>>>>> LIBPROJ_M_LIB-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: LIBPROJ_USE_THREAD >>>>>> LIBPROJ_USE_THREAD-ADVANCED:INTERNAL=1 >>>>>> //ADVANCED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>>>> VTK_USE_SYSTEM_LIBPROJ4-ADVANCED:INTERNAL=1 >>>>>> //MODIFIED property for variable: VTK_USE_SYSTEM_LIBPROJ4 >>>>>> VTK_USE_SYSTEM_LIBPROJ4-MODIFIED:INTERNAL=ON >>>>>> >>>>>> >>>>>> Make sure >>>>>> LIBPROJ4_INCLUDE_DIR >>>>>> LIBPROJ4_LIBRARIES >>>>>> VTK_USE_SYSTEM_LIBPROJ4 >>>>>> have the correct values. >>>>>> >>>>>> All those are cmake variables, you change them using ccmake or >>>>>> cmake-gui. >>>>>> After that you call: >>>>>> >>>>>> cmake . >>>>>> make >>>>>> >>>>>> >>>>>> >>>>>> On Fri, Jan 12, 2018 at 9:15 AM, Aashish Chaudhary < >>>>>> aashish.chaudhary at kitware.com> wrote: >>>>>> >>>>>>> Dan Lipsa made last changes perhaps he may have some suggestions. >>>>>>> >>>>>>> - aashish >>>>>>> >>>>>>> On Thu, Jan 11, 2018 at 7:41 PM Chris Marsh >>>>>>> wrote: >>>>>>> >>>>>>>> Looks like something is setting >>>>>>>> PROJ4_INCLUDE_DIR >>>>>>>> PROJ4_LIBRARY >>>>>>>> to the system's proj4. I use a custom findproj4 that only looks >>>>>>>> where I tell it. >>>>>>>> >>>>>>>> then I see that >>>>>>>> LIB_FILES:INTERNAL >>>>>>>> contains vtkproj4 >>>>>>>> LIB_FILES just holds all my 3rd party libraries I need to link >>>>>>>> against. >>>>>>>> >>>>>>>> Chris Marsh >>>>>>>> PhD Candidate >>>>>>>> chrismarsh.ca >>>>>>>> >>>>>>>> 121 Research Drive >>>>>>>> >>>>>>>> University of Saskatchewan >>>>>>>> >>>>>>>> >>>>>>>> On 11 January 2018 at 13:29, Ben Boeckel >>>>>>>> wrote: >>>>>>>> >>>>>>>>> On Thu, Jan 11, 2018 at 11:41:40 -0600, Chris Marsh wrote: >>>>>>>>> > Thanks for the details. This doesn't seem to be working for me >>>>>>>>> though. I've >>>>>>>>> > tried passing VTK_USE_SYSTEM_libproj4 to cmake on the command >>>>>>>>> line as well >>>>>>>>> > as defining it as a CXXFLAG='-D VTK_USE_SYSTEM_libproj4", >>>>>>>>> however neither >>>>>>>>> > works. I still see the vtklibproj4 in the output of ldd. >>>>>>>>> >>>>>>>>> CMake should be getting the flag. If you do: >>>>>>>>> >>>>>>>>> grep -i proj4 CMakeCache.txt >>>>>>>>> >>>>>>>>> do any variables stand out as potentially being set to use the >>>>>>>>> internal >>>>>>>>> one? >>>>>>>>> >>>>>>>>> --Ben >>>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Powered by www.kitware.com >>>>>>>> >>>>>>>> Visit other Kitware open-source projects at >>>>>>>> http://www.kitware.com/opensource/opensource.html >>>>>>>> >>>>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>>>> >>>>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>>>> >>>>>>>> Follow this link to subscribe/unsubscribe: >>>>>>>> https://vtk.org/mailman/listinfo/vtkusers >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From iamdpak at gmail.com Wed Jan 31 02:08:36 2018 From: iamdpak at gmail.com (vinmean) Date: Wed, 31 Jan 2018 00:08:36 -0700 (MST) Subject: [vtkusers] Where is the math behind world to display coordinates and vice versa, implemented in vtk? Message-ID: <1517382516204-0.post@n5.nabble.com> I want to recreate the transformation from display to world and world to display coordinate system. Where is the math behind coordinate conversion implemented? I am unable to trace it from the viewport class that provides the member function WorldToDisplay and DisplayToWorld. renderer->SetWorldPoint(wrld_cord); renderer->WorldToDisplay(); renderer->GetDisplayPoint(scr_cord); Please point me to the math either in the code or in some tutorials. -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From staubchen03 at gmail.com Wed Jan 31 06:17:43 2018 From: staubchen03 at gmail.com (Tanja Gerasimenko) Date: Wed, 31 Jan 2018 14:17:43 +0300 Subject: [vtkusers] Default view is half transparent Message-ID: Hello! I'm very new in vtk and I'm trying to visualize a triangular mesh describing a geometry (something like stl) with vtk and Qt. The result seems to be half transparent or something like that (see the picture). When I visualize it using Paraview it looks like as a solid. I've tried to auto orient normals and use ReverseSense but without success. Could you please tell me, what am I doing wrong? Thank you. The code is: vtkSmartPointer points = vtkSmartPointer::New(); ??? points->SetNumberOfPoints(surf_mesh.pt.size()); ??? for (uint i=0; iSetPoint(i, surf_mesh.pt[i].x, surf_mesh.pt[i].y, surf_mesh.pt[i].z); ??? }; ??? vtkSmartPointer polys = vtkSmartPointer::New(); ??? for (uint i=0; iInsertNextCell(3); ??????? polys->InsertCellPoint(surf_mesh.tr[i].p1); ??????? polys->InsertCellPoint(surf_mesh.tr[i].p2); ??????? polys->InsertCellPoint(surf_mesh.tr[i].p3); ??? }; ??? vtkPolyData * polydata = vtkPolyData::New(); ??? polydata->SetPoints(points); ??? polydata->SetPolys(polys); ??? vtkSmartPointer mapper = vtkSmartPointer::New(); ??? mapper->SetInputData(polydata); ??? vtkSmartPointer actor = vtkSmartPointer::New(); ??? actor->SetMapper(mapper); ??? actor->GetProperty()->SetRepresentationToSurface(); ??? actor->GetProperty()->SetFrontfaceCulling(0); ??? actor->GetProperty()->SetBackfaceCulling(0); ??? renderer->AddActor(actor); ??? renderer->ResetCamera(); -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # vtk DataFile Version 2.0 2D mesh ASCII DATASET POLYDATA POINTS 1120 double -53.5646 7.2681 0.5000 -55.5646 7.2681 0.5000 -53.5798 7.4418 0.5000 -53.6249 7.6102 0.5000 -53.6986 7.7681 0.5000 -53.7986 7.9109 0.5000 -53.9218 8.0342 0.5000 -54.0646 8.1342 0.5000 -54.2226 8.2078 0.5000 -54.3910 8.2529 0.5000 -54.5646 8.2681 0.5000 -54.7383 8.2529 0.5000 -54.9067 8.2078 0.5000 -55.0646 8.1342 0.5000 -55.2074 8.0342 0.5000 -55.3307 7.9109 0.5000 -55.4307 7.7681 0.5000 -55.5043 7.6102 0.5000 -55.5494 7.4418 0.5000 -55.5646 7.2681 2.0000 -53.5646 7.2681 2.0000 -53.5798 7.4418 2.0000 -53.6249 7.6102 2.0000 -53.6986 7.7681 2.0000 -53.7986 7.9109 2.0000 -53.9218 8.0342 2.0000 -54.0646 8.1342 2.0000 -54.2226 8.2078 2.0000 -54.3910 8.2529 2.0000 -54.5646 8.2681 2.0000 -54.7383 8.2529 2.0000 -54.9067 8.2078 2.0000 -55.0646 8.1342 2.0000 -55.2074 8.0342 2.0000 -55.3307 7.9109 2.0000 -55.4307 7.7681 2.0000 -55.5043 7.6102 2.0000 -55.5494 7.4418 2.0000 -55.5494 7.0945 2.0000 -55.5043 6.9261 2.0000 -55.4307 6.7681 2.0000 -55.3307 6.6254 2.0000 -55.2074 6.5021 2.0000 -55.0646 6.4021 2.0000 -54.9067 6.3284 2.0000 -54.7383 6.2833 2.0000 -54.5646 6.2681 2.0000 -54.3910 6.2833 2.0000 -54.2226 6.3284 2.0000 -54.0646 6.4021 2.0000 -53.9218 6.5021 2.0000 -53.7986 6.6254 2.0000 -53.6986 6.7681 2.0000 -53.6249 6.9261 2.0000 -53.5798 7.0945 2.0000 -48.0646 7.2681 2.0000 -50.0646 7.2681 2.0000 -48.0798 7.4418 2.0000 -48.1249 7.6102 2.0000 -48.1986 7.7681 2.0000 -48.2986 7.9109 2.0000 -48.4218 8.0342 2.0000 -48.5646 8.1342 2.0000 -48.7226 8.2078 2.0000 -48.8910 8.2529 2.0000 -49.0646 8.2681 2.0000 -49.2383 8.2529 2.0000 -49.4067 8.2078 2.0000 -49.5646 8.1342 2.0000 -49.7074 8.0342 2.0000 -49.8307 7.9109 2.0000 -49.9307 7.7681 2.0000 -50.0043 7.6102 2.0000 -50.0494 7.4418 2.0000 -50.0494 7.0945 2.0000 -50.0043 6.9261 2.0000 -49.9307 6.7681 2.0000 -49.8307 6.6254 2.0000 -49.7074 6.5021 2.0000 -49.5646 6.4021 2.0000 -49.4067 6.3284 2.0000 -49.2383 6.2833 2.0000 -49.0646 6.2681 2.0000 -48.8910 6.2833 2.0000 -48.7226 6.3284 2.0000 -48.5646 6.4021 2.0000 -48.4218 6.5021 2.0000 -48.2986 6.6254 2.0000 -48.1986 6.7681 2.0000 -48.1249 6.9261 2.0000 -48.0798 7.0945 2.0000 -42.5646 7.2681 2.0000 -44.5646 7.2681 2.0000 -42.5798 7.4418 2.0000 -42.6249 7.6102 2.0000 -42.6986 7.7681 2.0000 -42.7986 7.9109 2.0000 -42.9218 8.0342 2.0000 -43.0646 8.1342 2.0000 -43.2226 8.2078 2.0000 -43.3910 8.2529 2.0000 -43.5646 8.2681 2.0000 -43.7383 8.2529 2.0000 -43.9067 8.2078 2.0000 -44.0646 8.1342 2.0000 -44.2074 8.0342 2.0000 -44.3307 7.9109 2.0000 -44.4307 7.7681 2.0000 -44.5043 7.6102 2.0000 -44.5494 7.4418 2.0000 -44.5494 7.0945 2.0000 -44.5043 6.9261 2.0000 -44.4307 6.7681 2.0000 -44.3307 6.6254 2.0000 -44.2074 6.5021 2.0000 -44.0646 6.4021 2.0000 -43.9067 6.3284 2.0000 -43.7383 6.2833 2.0000 -43.5646 6.2681 2.0000 -43.3910 6.2833 2.0000 -43.2226 6.3284 2.0000 -43.0646 6.4021 2.0000 -42.9218 6.5021 2.0000 -42.7986 6.6254 2.0000 -42.6986 6.7681 2.0000 -42.6249 6.9261 2.0000 -42.5798 7.0945 2.0000 -59.1045 13.3818 2.0000 -59.1045 0.8818 2.0000 -39.1045 13.3818 2.0000 -39.1045 0.8818 2.0000 -48.0646 7.2681 0.5000 -50.0646 7.2681 0.5000 -48.0798 7.4418 0.5000 -48.1249 7.6102 0.5000 -48.1986 7.7681 0.5000 -48.2986 7.9109 0.5000 -48.4218 8.0342 0.5000 -48.5646 8.1342 0.5000 -48.7226 8.2078 0.5000 -48.8910 8.2529 0.5000 -49.0646 8.2681 0.5000 -49.2383 8.2529 0.5000 -49.4067 8.2078 0.5000 -49.5646 8.1342 0.5000 -49.7074 8.0342 0.5000 -49.8307 7.9109 0.5000 -49.9307 7.7681 0.5000 -50.0043 7.6102 0.5000 -50.0494 7.4418 0.5000 -42.5646 7.2681 0.5000 -44.5646 7.2681 0.5000 -42.5798 7.4418 0.5000 -42.6249 7.6102 0.5000 -42.6986 7.7681 0.5000 -42.7986 7.9109 0.5000 -42.9218 8.0342 0.5000 -43.0646 8.1342 0.5000 -43.2226 8.2078 0.5000 -43.3910 8.2529 0.5000 -43.5646 8.2681 0.5000 -43.7383 8.2529 0.5000 -43.9067 8.2078 0.5000 -44.0646 8.1342 0.5000 -44.2074 8.0342 0.5000 -44.3307 7.9109 0.5000 -44.4307 7.7681 0.5000 -44.5043 7.6102 0.5000 -44.5494 7.4418 0.5000 -44.5494 7.0945 0.5000 -44.5043 6.9261 0.5000 -44.4307 6.7681 0.5000 -44.3307 6.6254 0.5000 -44.2074 6.5021 0.5000 -44.0646 6.4021 0.5000 -43.9067 6.3284 0.5000 -43.7383 6.2833 0.5000 -43.5646 6.2681 0.5000 -43.3910 6.2833 0.5000 -43.2226 6.3284 0.5000 -43.0646 6.4021 0.5000 -42.9218 6.5021 0.5000 -42.7986 6.6254 0.5000 -42.6986 6.7681 0.5000 -42.6249 6.9261 0.5000 -42.5798 7.0945 0.5000 -59.1045 13.3818 0.0000 -59.1045 0.8818 0.0000 -39.1045 0.8818 0.0000 -39.1045 13.3818 0.0000 -55.5494 7.0945 0.5000 -55.5043 6.9261 0.5000 -55.4307 6.7681 0.5000 -55.3307 6.6254 0.5000 -55.2074 6.5021 0.5000 -55.0646 6.4021 0.5000 -54.9067 6.3284 0.5000 -54.7383 6.2833 0.5000 -54.5646 6.2681 0.5000 -54.3910 6.2833 0.5000 -54.2226 6.3284 0.5000 -54.0646 6.4021 0.5000 -53.9218 6.5021 0.5000 -53.7986 6.6254 0.5000 -53.6986 6.7681 0.5000 -53.6249 6.9261 0.5000 -53.5798 7.0945 0.5000 -50.0494 7.0945 0.5000 -50.0043 6.9261 0.5000 -49.9307 6.7681 0.5000 -49.8307 6.6254 0.5000 -49.7074 6.5021 0.5000 -49.5646 6.4021 0.5000 -49.4067 6.3284 0.5000 -49.2383 6.2833 0.5000 -49.0646 6.2681 0.5000 -48.8910 6.2833 0.5000 -48.7226 6.3284 0.5000 -48.5646 6.4021 0.5000 -48.4218 6.5021 0.5000 -48.2986 6.6254 0.5000 -48.1986 6.7681 0.5000 -48.1249 6.9261 0.5000 -48.0798 7.0945 0.5000 -54.7646 6.0342 0.0000 -54.3646 6.0342 0.0000 -54.6316 6.0199 0.0000 -54.4977 6.0199 0.0000 -55.5311 6.4755 0.0000 -55.4817 6.4187 0.0000 -55.4288 6.3650 0.0000 -55.3729 6.3146 0.0000 -55.3140 6.2676 0.0000 -55.2523 6.2243 0.0000 -55.1882 6.1848 0.0000 -55.1218 6.1492 0.0000 -55.0534 6.1177 0.0000 -54.9832 6.0903 0.0000 -54.9115 6.0672 0.0000 -54.8386 6.0485 0.0000 -56.1497 6.7681 0.0000 -56.0992 6.7665 0.0000 -56.0490 6.7618 0.0000 -55.9991 6.7538 0.0000 -55.9498 6.7428 0.0000 -55.9014 6.7286 0.0000 -55.8539 6.7114 0.0000 -55.8076 6.6913 0.0000 -55.7626 6.6682 0.0000 -55.7192 6.6424 0.0000 -55.6775 6.6139 0.0000 -55.6377 6.5828 0.0000 -55.6000 6.5493 0.0000 -55.5644 6.5135 0.0000 -58.1373 6.7681 0.0000 -58.1373 7.7681 0.0000 -56.1497 7.7681 0.0000 -55.5311 8.0608 0.0000 -55.5644 8.0228 0.0000 -55.6000 7.9870 0.0000 -55.6377 7.9534 0.0000 -55.6775 7.9224 0.0000 -55.7192 7.8939 0.0000 -55.7626 7.8680 0.0000 -55.8076 7.8450 0.0000 -55.8539 7.8249 0.0000 -55.9014 7.8077 0.0000 -55.9498 7.7935 0.0000 -55.9991 7.7824 0.0000 -56.0490 7.7745 0.0000 -56.0992 7.7697 0.0000 -54.7646 8.5020 0.0000 -54.8386 8.4877 0.0000 -54.9115 8.4690 0.0000 -54.9832 8.4460 0.0000 -55.0534 8.4186 0.0000 -55.1218 8.3871 0.0000 -55.1882 8.3515 0.0000 -55.2523 8.3120 0.0000 -55.3140 8.2686 0.0000 -55.3729 8.2217 0.0000 -55.4288 8.1713 0.0000 -55.4817 8.1176 0.0000 -54.3646 8.5020 0.0000 -54.4977 8.5163 0.0000 -54.6316 8.5163 0.0000 -53.5981 8.0608 0.0000 -53.6476 8.1176 0.0000 -53.7004 8.1713 0.0000 -53.7564 8.2217 0.0000 -53.8153 8.2686 0.0000 -53.8769 8.3120 0.0000 -53.9410 8.3515 0.0000 -54.0074 8.3871 0.0000 -54.0758 8.4186 0.0000 -54.1460 8.4460 0.0000 -54.2177 8.4690 0.0000 -54.2907 8.4877 0.0000 -52.9795 7.7681 0.0000 -53.0300 7.7697 0.0000 -53.0803 7.7745 0.0000 -53.1302 7.7824 0.0000 -53.1794 7.7935 0.0000 -53.2279 7.8077 0.0000 -53.2754 7.8249 0.0000 -53.3217 7.8450 0.0000 -53.3666 7.8680 0.0000 -53.4100 7.8939 0.0000 -53.4517 7.9224 0.0000 -53.4915 7.9534 0.0000 -53.5293 7.9870 0.0000 -53.5649 8.0228 0.0000 -50.6497 7.7681 0.0000 -50.0311 8.0608 0.0000 -50.0644 8.0228 0.0000 -50.1000 7.9870 0.0000 -50.1377 7.9534 0.0000 -50.1775 7.9224 0.0000 -50.2192 7.8939 0.0000 -50.2626 7.8680 0.0000 -50.3076 7.8450 0.0000 -50.3539 7.8249 0.0000 -50.4014 7.8077 0.0000 -50.4498 7.7935 0.0000 -50.4991 7.7824 0.0000 -50.5490 7.7745 0.0000 -50.5992 7.7697 0.0000 -48.0981 8.0608 0.0000 -48.1719 8.1430 0.0000 -48.2526 8.2184 0.0000 -48.3396 8.2864 0.0000 -48.4324 8.3464 0.0000 -48.5300 8.3980 0.0000 -48.6318 8.4408 0.0000 -48.7370 8.4745 0.0000 -48.8448 8.4987 0.0000 -48.9543 8.5133 0.0000 -49.0646 8.5181 0.0000 -49.1750 8.5133 0.0000 -49.2845 8.4987 0.0000 -49.3922 8.4745 0.0000 -49.4974 8.4408 0.0000 -49.5993 8.3980 0.0000 -49.6969 8.3464 0.0000 -49.7896 8.2864 0.0000 -49.8767 8.2184 0.0000 -49.9574 8.1430 0.0000 -47.4795 7.7681 0.0000 -47.5300 7.7697 0.0000 -47.5803 7.7745 0.0000 -47.6302 7.7824 0.0000 -47.6794 7.7935 0.0000 -47.7279 7.8077 0.0000 -47.7754 7.8249 0.0000 -47.8217 7.8450 0.0000 -47.8666 7.8680 0.0000 -47.9100 7.8939 0.0000 -47.9517 7.9224 0.0000 -47.9915 7.9534 0.0000 -48.0293 7.9870 0.0000 -48.0649 8.0228 0.0000 -45.1497 7.7681 0.0000 -44.5311 8.0608 0.0000 -44.5644 8.0228 0.0000 -44.6000 7.9870 0.0000 -44.6377 7.9534 0.0000 -44.6775 7.9224 0.0000 -44.7192 7.8939 0.0000 -44.7626 7.8680 0.0000 -44.8076 7.8450 0.0000 -44.8539 7.8249 0.0000 -44.9014 7.8077 0.0000 -44.9498 7.7935 0.0000 -44.9991 7.7824 0.0000 -45.0490 7.7745 0.0000 -45.0992 7.7697 0.0000 -43.7646 8.5020 0.0000 -43.8386 8.4877 0.0000 -43.9115 8.4690 0.0000 -43.9832 8.4460 0.0000 -44.0534 8.4186 0.0000 -44.1218 8.3871 0.0000 -44.1882 8.3515 0.0000 -44.2523 8.3120 0.0000 -44.3140 8.2686 0.0000 -44.3729 8.2217 0.0000 -44.4288 8.1713 0.0000 -44.4817 8.1176 0.0000 -43.3646 8.5020 0.0000 -43.4977 8.5163 0.0000 -43.6316 8.5163 0.0000 -42.5981 8.0608 0.0000 -42.6476 8.1176 0.0000 -42.7004 8.1713 0.0000 -42.7564 8.2217 0.0000 -42.8153 8.2686 0.0000 -42.8769 8.3120 0.0000 -42.9410 8.3515 0.0000 -43.0074 8.3871 0.0000 -43.0758 8.4186 0.0000 -43.1460 8.4460 0.0000 -43.2177 8.4690 0.0000 -43.2907 8.4877 0.0000 -41.9795 7.7681 0.0000 -42.0300 7.7697 0.0000 -42.0803 7.7745 0.0000 -42.1302 7.7824 0.0000 -42.1794 7.7935 0.0000 -42.2279 7.8077 0.0000 -42.2754 7.8249 0.0000 -42.3217 7.8450 0.0000 -42.3666 7.8680 0.0000 -42.4100 7.8939 0.0000 -42.4517 7.9224 0.0000 -42.4915 7.9534 0.0000 -42.5293 7.9870 0.0000 -42.5649 8.0228 0.0000 -39.9957 7.7681 0.0000 -39.9957 6.7681 0.0000 -41.9795 6.7681 0.0000 -42.5981 6.4755 0.0000 -42.5649 6.5135 0.0000 -42.5293 6.5493 0.0000 -42.4915 6.5828 0.0000 -42.4517 6.6139 0.0000 -42.4100 6.6424 0.0000 -42.3666 6.6682 0.0000 -42.3217 6.6913 0.0000 -42.2754 6.7114 0.0000 -42.2279 6.7286 0.0000 -42.1794 6.7428 0.0000 -42.1302 6.7538 0.0000 -42.0803 6.7618 0.0000 -42.0300 6.7665 0.0000 -43.3646 6.0342 0.0000 -43.2907 6.0485 0.0000 -43.2177 6.0672 0.0000 -43.1460 6.0903 0.0000 -43.0758 6.1177 0.0000 -43.0074 6.1492 0.0000 -42.9410 6.1848 0.0000 -42.8769 6.2243 0.0000 -42.8153 6.2676 0.0000 -42.7564 6.3146 0.0000 -42.7004 6.3650 0.0000 -42.6476 6.4187 0.0000 -43.7646 6.0342 0.0000 -43.6316 6.0199 0.0000 -43.4977 6.0199 0.0000 -44.5311 6.4755 0.0000 -44.4817 6.4187 0.0000 -44.4288 6.3650 0.0000 -44.3729 6.3146 0.0000 -44.3140 6.2676 0.0000 -44.2523 6.2243 0.0000 -44.1882 6.1848 0.0000 -44.1218 6.1492 0.0000 -44.0534 6.1177 0.0000 -43.9832 6.0903 0.0000 -43.9115 6.0672 0.0000 -43.8386 6.0485 0.0000 -45.1497 6.7681 0.0000 -45.0992 6.7665 0.0000 -45.0490 6.7618 0.0000 -44.9991 6.7538 0.0000 -44.9498 6.7428 0.0000 -44.9014 6.7286 0.0000 -44.8539 6.7114 0.0000 -44.8076 6.6913 0.0000 -44.7626 6.6682 0.0000 -44.7192 6.6424 0.0000 -44.6775 6.6139 0.0000 -44.6377 6.5828 0.0000 -44.6000 6.5493 0.0000 -44.5644 6.5135 0.0000 -47.4795 6.7681 0.0000 -48.0981 6.4755 0.0000 -48.0649 6.5135 0.0000 -48.0293 6.5493 0.0000 -47.9915 6.5828 0.0000 -47.9517 6.6139 0.0000 -47.9100 6.6424 0.0000 -47.8666 6.6682 0.0000 -47.8217 6.6913 0.0000 -47.7754 6.7114 0.0000 -47.7279 6.7286 0.0000 -47.6794 6.7428 0.0000 -47.6302 6.7538 0.0000 -47.5803 6.7618 0.0000 -47.5300 6.7665 0.0000 -50.0311 6.4755 0.0000 -49.9574 6.3932 0.0000 -49.8767 6.3178 0.0000 -49.7896 6.2499 0.0000 -49.6969 6.1898 0.0000 -49.5993 6.1382 0.0000 -49.4974 6.0955 0.0000 -49.3922 6.0618 0.0000 -49.2845 6.0376 0.0000 -49.1750 6.0230 0.0000 -49.0646 6.0181 0.0000 -48.9543 6.0230 0.0000 -48.8448 6.0376 0.0000 -48.7370 6.0618 0.0000 -48.6318 6.0955 0.0000 -48.5300 6.1382 0.0000 -48.4324 6.1898 0.0000 -48.3396 6.2499 0.0000 -48.2526 6.3178 0.0000 -48.1719 6.3932 0.0000 -50.6497 6.7681 0.0000 -50.5992 6.7665 0.0000 -50.5490 6.7618 0.0000 -50.4991 6.7538 0.0000 -50.4498 6.7428 0.0000 -50.4014 6.7286 0.0000 -50.3539 6.7114 0.0000 -50.3076 6.6913 0.0000 -50.2626 6.6682 0.0000 -50.2192 6.6424 0.0000 -50.1775 6.6139 0.0000 -50.1377 6.5828 0.0000 -50.1000 6.5493 0.0000 -50.0644 6.5135 0.0000 -52.9795 6.7681 0.0000 -53.5981 6.4755 0.0000 -53.5649 6.5135 0.0000 -53.5293 6.5493 0.0000 -53.4915 6.5828 0.0000 -53.4517 6.6139 0.0000 -53.4100 6.6424 0.0000 -53.3666 6.6682 0.0000 -53.3217 6.6913 0.0000 -53.2754 6.7114 0.0000 -53.2279 6.7286 0.0000 -53.1794 6.7428 0.0000 -53.1302 6.7538 0.0000 -53.0803 6.7618 0.0000 -53.0300 6.7665 0.0000 -54.2907 6.0485 0.0000 -54.2177 6.0672 0.0000 -54.1460 6.0903 0.0000 -54.0758 6.1177 0.0000 -54.0074 6.1492 0.0000 -53.9410 6.1848 0.0000 -53.8769 6.2243 0.0000 -53.8153 6.2676 0.0000 -53.7564 6.3146 0.0000 -53.7004 6.3650 0.0000 -53.6476 6.4187 0.0000 -44.5311 8.0608 0.1000 -45.1497 7.7681 0.1000 -44.5644 8.0228 0.1000 -44.6000 7.9870 0.1000 -44.6377 7.9534 0.1000 -44.6775 7.9224 0.1000 -44.7192 7.8939 0.1000 -44.7626 7.8680 0.1000 -44.8076 7.8450 0.1000 -44.8539 7.8249 0.1000 -44.9014 7.8077 0.1000 -44.9498 7.7935 0.1000 -44.9991 7.7824 0.1000 -45.0490 7.7745 0.1000 -45.0992 7.7697 0.1000 -47.4795 7.7681 0.1000 -48.0981 8.0608 0.1000 -47.5300 7.7697 0.1000 -47.5803 7.7745 0.1000 -47.6302 7.7824 0.1000 -47.6794 7.7935 0.1000 -47.7279 7.8077 0.1000 -47.7754 7.8249 0.1000 -47.8217 7.8450 0.1000 -47.8666 7.8680 0.1000 -47.9100 7.8939 0.1000 -47.9517 7.9224 0.1000 -47.9915 7.9534 0.1000 -48.0293 7.9870 0.1000 -48.0649 8.0228 0.1000 -50.0311 8.0608 0.1000 -48.1719 8.1430 0.1000 -48.2526 8.2184 0.1000 -48.3396 8.2864 0.1000 -48.4324 8.3464 0.1000 -48.5300 8.3980 0.1000 -48.6318 8.4408 0.1000 -48.7370 8.4745 0.1000 -48.8448 8.4987 0.1000 -48.9543 8.5133 0.1000 -49.0646 8.5181 0.1000 -49.1750 8.5133 0.1000 -49.2845 8.4987 0.1000 -49.3922 8.4745 0.1000 -49.4974 8.4408 0.1000 -49.5993 8.3980 0.1000 -49.6969 8.3464 0.1000 -49.7896 8.2864 0.1000 -49.8767 8.2184 0.1000 -49.9574 8.1430 0.1000 -50.6497 7.7681 0.1000 -50.0644 8.0228 0.1000 -50.1000 7.9870 0.1000 -50.1377 7.9534 0.1000 -50.1775 7.9224 0.1000 -50.2192 7.8939 0.1000 -50.2626 7.8680 0.1000 -50.3076 7.8450 0.1000 -50.3539 7.8249 0.1000 -50.4014 7.8077 0.1000 -50.4498 7.7935 0.1000 -50.4991 7.7824 0.1000 -50.5490 7.7745 0.1000 -50.5992 7.7697 0.1000 -52.9795 7.7681 0.1000 -53.5981 8.0608 0.1000 -53.0300 7.7697 0.1000 -53.0803 7.7745 0.1000 -53.1302 7.7824 0.1000 -53.1794 7.7935 0.1000 -53.2279 7.8077 0.1000 -53.2754 7.8249 0.1000 -53.3217 7.8450 0.1000 -53.3666 7.8680 0.1000 -53.4100 7.8939 0.1000 -53.4517 7.9224 0.1000 -53.4915 7.9534 0.1000 -53.5293 7.9870 0.1000 -53.5649 8.0228 0.1000 -54.3646 8.5020 0.1000 -53.6476 8.1176 0.1000 -53.7004 8.1713 0.1000 -53.7564 8.2217 0.1000 -53.8153 8.2686 0.1000 -53.8769 8.3120 0.1000 -53.9410 8.3515 0.1000 -54.0074 8.3871 0.1000 -54.0758 8.4186 0.1000 -54.1460 8.4460 0.1000 -54.2177 8.4690 0.1000 -54.2907 8.4877 0.1000 -54.3646 6.0342 0.1000 -53.5981 6.4755 0.1000 -54.2907 6.0485 0.1000 -54.2177 6.0672 0.1000 -54.1460 6.0903 0.1000 -54.0758 6.1177 0.1000 -54.0074 6.1492 0.1000 -53.9410 6.1848 0.1000 -53.8769 6.2243 0.1000 -53.8153 6.2676 0.1000 -53.7564 6.3146 0.1000 -53.7004 6.3650 0.1000 -53.6476 6.4187 0.1000 -52.9795 6.7681 0.1000 -53.5649 6.5135 0.1000 -53.5293 6.5493 0.1000 -53.4915 6.5828 0.1000 -53.4517 6.6139 0.1000 -53.4100 6.6424 0.1000 -53.3666 6.6682 0.1000 -53.3217 6.6913 0.1000 -53.2754 6.7114 0.1000 -53.2279 6.7286 0.1000 -53.1794 6.7428 0.1000 -53.1302 6.7538 0.1000 -53.0803 6.7618 0.1000 -53.0300 6.7665 0.1000 -50.6497 6.7681 0.1000 -50.0311 6.4755 0.1000 -50.5992 6.7665 0.1000 -50.5490 6.7618 0.1000 -50.4991 6.7538 0.1000 -50.4498 6.7428 0.1000 -50.4014 6.7286 0.1000 -50.3539 6.7114 0.1000 -50.3076 6.6913 0.1000 -50.2626 6.6682 0.1000 -50.2192 6.6424 0.1000 -50.1775 6.6139 0.1000 -50.1377 6.5828 0.1000 -50.1000 6.5493 0.1000 -50.0644 6.5135 0.1000 -48.0981 6.4755 0.1000 -49.9574 6.3932 0.1000 -49.8767 6.3178 0.1000 -49.7896 6.2499 0.1000 -49.6969 6.1898 0.1000 -49.5993 6.1382 0.1000 -49.4974 6.0955 0.1000 -49.3922 6.0618 0.1000 -49.2845 6.0376 0.1000 -49.1750 6.0230 0.1000 -49.0646 6.0181 0.1000 -48.9543 6.0230 0.1000 -48.8448 6.0376 0.1000 -48.7370 6.0618 0.1000 -48.6318 6.0955 0.1000 -48.5300 6.1382 0.1000 -48.4324 6.1898 0.1000 -48.3396 6.2499 0.1000 -48.2526 6.3178 0.1000 -48.1719 6.3932 0.1000 -47.4795 6.7681 0.1000 -48.0649 6.5135 0.1000 -48.0293 6.5493 0.1000 -47.9915 6.5828 0.1000 -47.9517 6.6139 0.1000 -47.9100 6.6424 0.1000 -47.8666 6.6682 0.1000 -47.8217 6.6913 0.1000 -47.7754 6.7114 0.1000 -47.7279 6.7286 0.1000 -47.6794 6.7428 0.1000 -47.6302 6.7538 0.1000 -47.5803 6.7618 0.1000 -47.5300 6.7665 0.1000 -45.1497 6.7681 0.1000 -44.5311 6.4755 0.1000 -45.0992 6.7665 0.1000 -45.0490 6.7618 0.1000 -44.9991 6.7538 0.1000 -44.9498 6.7428 0.1000 -44.9014 6.7286 0.1000 -44.8539 6.7114 0.1000 -44.8076 6.6913 0.1000 -44.7626 6.6682 0.1000 -44.7192 6.6424 0.1000 -44.6775 6.6139 0.1000 -44.6377 6.5828 0.1000 -44.6000 6.5493 0.1000 -44.5644 6.5135 0.1000 -43.7646 6.0342 0.1000 -44.4817 6.4187 0.1000 -44.4288 6.3650 0.1000 -44.3729 6.3146 0.1000 -44.3140 6.2676 0.1000 -44.2523 6.2243 0.1000 -44.1882 6.1848 0.1000 -44.1218 6.1492 0.1000 -44.0534 6.1177 0.1000 -43.9832 6.0903 0.1000 -43.9115 6.0672 0.1000 -43.8386 6.0485 0.1000 -43.7646 8.5020 0.1000 -43.8386 8.4877 0.1000 -43.9115 8.4690 0.1000 -43.9832 8.4460 0.1000 -44.0534 8.4186 0.1000 -44.1218 8.3871 0.1000 -44.1882 8.3515 0.1000 -44.2523 8.3120 0.1000 -44.3140 8.2686 0.1000 -44.3729 8.2217 0.1000 -44.4288 8.1713 0.1000 -44.4817 8.1176 0.1000 -47.9985 7.2681 0.1000 -50.1307 7.2681 0.1000 -48.0147 7.4533 0.1000 -48.0628 7.6328 0.1000 -48.1414 7.8012 0.1000 -48.2480 7.9534 0.1000 -48.3794 8.0848 0.1000 -48.5316 8.1914 0.1000 -48.7000 8.2699 0.1000 -48.8795 8.3180 0.1000 -49.0646 8.3342 0.1000 -49.2498 8.3180 0.1000 -49.4293 8.2699 0.1000 -49.5977 8.1914 0.1000 -49.7499 8.0848 0.1000 -49.8813 7.9534 0.1000 -49.9879 7.8012 0.1000 -50.0664 7.6328 0.1000 -50.1145 7.4533 0.1000 -50.1145 7.0830 0.1000 -50.0664 6.9035 0.1000 -49.9879 6.7351 0.1000 -49.8813 6.5829 0.1000 -49.7499 6.4515 0.1000 -49.5977 6.3449 0.1000 -49.4293 6.2663 0.1000 -49.2498 6.2182 0.1000 -49.0646 6.2020 0.1000 -48.8795 6.2182 0.1000 -48.7000 6.2663 0.1000 -48.5316 6.3449 0.1000 -48.3794 6.4515 0.1000 -48.2480 6.5829 0.1000 -48.1414 6.7351 0.1000 -48.0628 6.9035 0.1000 -48.0147 7.0830 0.1000 -39.9957 7.7681 0.1000 -39.9957 6.7681 0.1000 -41.9795 7.7681 0.1000 -42.5981 8.0608 0.1000 -42.0300 7.7697 0.1000 -42.0803 7.7745 0.1000 -42.1302 7.7824 0.1000 -42.1794 7.7935 0.1000 -42.2279 7.8077 0.1000 -42.2754 7.8249 0.1000 -42.3217 7.8450 0.1000 -42.3666 7.8680 0.1000 -42.4100 7.8939 0.1000 -42.4517 7.9224 0.1000 -42.4915 7.9534 0.1000 -42.5293 7.9870 0.1000 -42.5649 8.0228 0.1000 -43.3646 8.5020 0.1000 -42.6476 8.1176 0.1000 -42.7004 8.1713 0.1000 -42.7564 8.2217 0.1000 -42.8153 8.2686 0.1000 -42.8769 8.3120 0.1000 -42.9410 8.3515 0.1000 -43.0074 8.3871 0.1000 -43.0758 8.4186 0.1000 -43.1460 8.4460 0.1000 -43.2177 8.4690 0.1000 -43.2907 8.4877 0.1000 -43.3646 6.0342 0.1000 -42.5981 6.4755 0.1000 -43.2907 6.0485 0.1000 -43.2177 6.0672 0.1000 -43.1460 6.0903 0.1000 -43.0758 6.1177 0.1000 -43.0074 6.1492 0.1000 -42.9410 6.1848 0.1000 -42.8769 6.2243 0.1000 -42.8153 6.2676 0.1000 -42.7564 6.3146 0.1000 -42.7004 6.3650 0.1000 -42.6476 6.4187 0.1000 -41.9795 6.7681 0.1000 -42.5649 6.5135 0.1000 -42.5293 6.5493 0.1000 -42.4915 6.5828 0.1000 -42.4517 6.6139 0.1000 -42.4100 6.6424 0.1000 -42.3666 6.6682 0.1000 -42.3217 6.6913 0.1000 -42.2754 6.7114 0.1000 -42.2279 6.7286 0.1000 -42.1794 6.7428 0.1000 -42.1302 6.7538 0.1000 -42.0803 6.7618 0.1000 -42.0300 6.7665 0.1000 -58.1373 6.7681 0.1000 -58.1373 7.7681 0.1000 -56.1497 6.7681 0.1000 -55.5311 6.4755 0.1000 -56.0992 6.7665 0.1000 -56.0490 6.7618 0.1000 -55.9991 6.7538 0.1000 -55.9498 6.7428 0.1000 -55.9014 6.7286 0.1000 -55.8539 6.7114 0.1000 -55.8076 6.6913 0.1000 -55.7626 6.6682 0.1000 -55.7192 6.6424 0.1000 -55.6775 6.6139 0.1000 -55.6377 6.5828 0.1000 -55.6000 6.5493 0.1000 -55.5644 6.5135 0.1000 -54.7646 6.0342 0.1000 -55.4817 6.4187 0.1000 -55.4288 6.3650 0.1000 -55.3729 6.3146 0.1000 -55.3140 6.2676 0.1000 -55.2523 6.2243 0.1000 -55.1882 6.1848 0.1000 -55.1218 6.1492 0.1000 -55.0534 6.1177 0.1000 -54.9832 6.0903 0.1000 -54.9115 6.0672 0.1000 -54.8386 6.0485 0.1000 -54.7646 8.5020 0.1000 -55.5311 8.0608 0.1000 -54.8386 8.4877 0.1000 -54.9115 8.4690 0.1000 -54.9832 8.4460 0.1000 -55.0534 8.4186 0.1000 -55.1218 8.3871 0.1000 -55.1882 8.3515 0.1000 -55.2523 8.3120 0.1000 -55.3140 8.2686 0.1000 -55.3729 8.2217 0.1000 -55.4288 8.1713 0.1000 -55.4817 8.1176 0.1000 -56.1497 7.7681 0.1000 -55.5644 8.0228 0.1000 -55.6000 7.9870 0.1000 -55.6377 7.9534 0.1000 -55.6775 7.9224 0.1000 -55.7192 7.8939 0.1000 -55.7626 7.8680 0.1000 -55.8076 7.8450 0.1000 -55.8539 7.8249 0.1000 -55.9014 7.8077 0.1000 -55.9498 7.7935 0.1000 -55.9991 7.7824 0.1000 -56.0490 7.7745 0.1000 -56.0992 7.7697 0.1000 -55.8146 7.2681 0.4500 -55.8146 7.2681 0.1500 -53.3146 7.2681 0.1500 -55.7956 7.0511 0.1500 -55.7392 6.8406 0.1500 -55.6472 6.6431 0.1500 -55.5222 6.4647 0.1500 -55.3681 6.3106 0.1500 -55.1896 6.1856 0.1500 -54.9922 6.0935 0.1500 -54.7817 6.0371 0.1500 -54.5646 6.0181 0.1500 -54.3476 6.0371 0.1500 -54.1371 6.0935 0.1500 -53.9396 6.1856 0.1500 -53.7611 6.3106 0.1500 -53.6071 6.4647 0.1500 -53.4821 6.6431 0.1500 -53.3900 6.8406 0.1500 -53.3336 7.0511 0.1500 -53.3146 7.2681 0.4500 -55.7956 7.0511 0.4500 -55.7392 6.8406 0.4500 -55.6472 6.6431 0.4500 -55.5222 6.4647 0.4500 -55.3681 6.3106 0.4500 -55.1896 6.1856 0.4500 -54.9922 6.0935 0.4500 -54.7817 6.0371 0.4500 -54.5646 6.0181 0.4500 -54.3476 6.0371 0.4500 -54.1371 6.0935 0.4500 -53.9396 6.1856 0.4500 -53.7611 6.3106 0.4500 -53.6071 6.4647 0.4500 -53.4821 6.6431 0.4500 -53.3900 6.8406 0.4500 -53.3336 7.0511 0.4500 -53.3336 7.4852 0.4500 -53.3900 7.6957 0.4500 -53.4821 7.8931 0.4500 -53.6071 8.0716 0.4500 -53.7611 8.2257 0.4500 -53.9396 8.3507 0.4500 -54.1371 8.4428 0.4500 -54.3476 8.4991 0.4500 -54.5646 8.5181 0.4500 -54.7817 8.4991 0.4500 -54.9922 8.4428 0.4500 -55.1896 8.3507 0.4500 -55.3681 8.2257 0.4500 -55.5222 8.0716 0.4500 -55.6472 7.8931 0.4500 -55.7392 7.6957 0.4500 -55.7956 7.4852 0.4500 -53.3336 7.4852 0.1500 -53.3900 7.6957 0.1500 -53.4821 7.8931 0.1500 -53.6071 8.0716 0.1500 -53.7611 8.2257 0.1500 -53.9396 8.3507 0.1500 -54.1371 8.4428 0.1500 -54.3476 8.4991 0.1500 -54.5646 8.5181 0.1500 -54.7817 8.4991 0.1500 -54.9922 8.4428 0.1500 -55.1896 8.3507 0.1500 -55.3681 8.2257 0.1500 -55.5222 8.0716 0.1500 -55.6472 7.8931 0.1500 -55.7392 7.6957 0.1500 -55.7956 7.4852 0.1500 -47.8146 7.2681 0.4500 -50.3146 7.2681 0.4500 -47.8336 7.4852 0.4500 -47.8900 7.6957 0.4500 -47.9821 7.8931 0.4500 -48.1071 8.0716 0.4500 -48.2611 8.2257 0.4500 -48.4396 8.3507 0.4500 -48.6371 8.4428 0.4500 -48.8476 8.4991 0.4500 -49.0646 8.5181 0.4500 -49.2817 8.4991 0.4500 -49.4922 8.4428 0.4500 -49.6896 8.3507 0.4500 -49.8681 8.2257 0.4500 -50.0222 8.0716 0.4500 -50.1472 7.8931 0.4500 -50.2392 7.6957 0.4500 -50.2956 7.4852 0.4500 -47.8146 7.2681 0.1500 -50.3146 7.2681 0.1500 -47.8336 7.4852 0.1500 -47.8900 7.6957 0.1500 -47.9821 7.8931 0.1500 -48.1071 8.0716 0.1500 -48.2611 8.2257 0.1500 -48.4396 8.3507 0.1500 -48.6371 8.4428 0.1500 -48.8476 8.4991 0.1500 -49.0646 8.5181 0.1500 -49.2817 8.4991 0.1500 -49.4922 8.4428 0.1500 -49.6896 8.3507 0.1500 -49.8681 8.2257 0.1500 -50.0222 8.0716 0.1500 -50.1472 7.8931 0.1500 -50.2392 7.6957 0.1500 -50.2956 7.4852 0.1500 -50.2956 7.0511 0.1500 -50.2392 6.8406 0.1500 -50.1472 6.6431 0.1500 -50.0222 6.4647 0.1500 -49.8681 6.3106 0.1500 -49.6896 6.1856 0.1500 -49.4922 6.0935 0.1500 -49.2817 6.0371 0.1500 -49.0646 6.0181 0.1500 -48.8476 6.0371 0.1500 -48.6371 6.0935 0.1500 -48.4396 6.1856 0.1500 -48.2611 6.3106 0.1500 -48.1071 6.4647 0.1500 -47.9821 6.6431 0.1500 -47.8900 6.8406 0.1500 -47.8336 7.0511 0.1500 -50.2956 7.0511 0.4500 -50.2392 6.8406 0.4500 -50.1472 6.6431 0.4500 -50.0222 6.4647 0.4500 -49.8681 6.3106 0.4500 -49.6896 6.1856 0.4500 -49.4922 6.0935 0.4500 -49.2817 6.0371 0.4500 -49.0646 6.0181 0.4500 -48.8476 6.0371 0.4500 -48.6371 6.0935 0.4500 -48.4396 6.1856 0.4500 -48.2611 6.3106 0.4500 -48.1071 6.4647 0.4500 -47.9821 6.6431 0.4500 -47.8900 6.8406 0.4500 -47.8336 7.0511 0.4500 -44.8146 7.2681 0.4500 -44.8146 7.2681 0.1500 -42.3146 7.2681 0.1500 -44.7956 7.0511 0.1500 -44.7392 6.8406 0.1500 -44.6472 6.6431 0.1500 -44.5222 6.4647 0.1500 -44.3681 6.3106 0.1500 -44.1896 6.1856 0.1500 -43.9922 6.0935 0.1500 -43.7817 6.0371 0.1500 -43.5646 6.0181 0.1500 -43.3476 6.0371 0.1500 -43.1371 6.0935 0.1500 -42.9396 6.1856 0.1500 -42.7611 6.3106 0.1500 -42.6071 6.4647 0.1500 -42.4821 6.6431 0.1500 -42.3900 6.8406 0.1500 -42.3336 7.0511 0.1500 -42.3146 7.2681 0.4500 -44.7956 7.0511 0.4500 -44.7392 6.8406 0.4500 -44.6472 6.6431 0.4500 -44.5222 6.4647 0.4500 -44.3681 6.3106 0.4500 -44.1896 6.1856 0.4500 -43.9922 6.0935 0.4500 -43.7817 6.0371 0.4500 -43.5646 6.0181 0.4500 -43.3476 6.0371 0.4500 -43.1371 6.0935 0.4500 -42.9396 6.1856 0.4500 -42.7611 6.3106 0.4500 -42.6071 6.4647 0.4500 -42.4821 6.6431 0.4500 -42.3900 6.8406 0.4500 -42.3336 7.0511 0.4500 -42.3336 7.4852 0.4500 -42.3900 7.6957 0.4500 -42.4821 7.8931 0.4500 -42.6071 8.0716 0.4500 -42.7611 8.2257 0.4500 -42.9396 8.3507 0.4500 -43.1371 8.4428 0.4500 -43.3476 8.4991 0.4500 -43.5646 8.5181 0.4500 -43.7817 8.4991 0.4500 -43.9922 8.4428 0.4500 -44.1896 8.3507 0.4500 -44.3681 8.2257 0.4500 -44.5222 8.0716 0.4500 -44.6472 7.8931 0.4500 -44.7392 7.6957 0.4500 -44.7956 7.4852 0.4500 -42.3336 7.4852 0.1500 -42.3900 7.6957 0.1500 -42.4821 7.8931 0.1500 -42.6071 8.0716 0.1500 -42.7611 8.2257 0.1500 -42.9396 8.3507 0.1500 -43.1371 8.4428 0.1500 -43.3476 8.4991 0.1500 -43.5646 8.5181 0.1500 -43.7817 8.4991 0.1500 -43.9922 8.4428 0.1500 -44.1896 8.3507 0.1500 -44.3681 8.2257 0.1500 -44.5222 8.0716 0.1500 -44.6472 7.8931 0.1500 -44.7392 7.6957 0.1500 -44.7956 7.4852 0.1500 POLYGONS 2224 8896 3 21 0 2 3 21 20 0 3 22 2 3 3 22 21 2 3 23 3 4 3 23 22 3 3 24 4 5 3 24 23 4 3 25 5 6 3 25 24 5 3 26 6 7 3 26 25 6 3 27 7 8 3 27 26 7 3 28 8 9 3 28 27 8 3 29 9 10 3 29 28 9 3 30 10 11 3 30 29 10 3 31 11 12 3 31 30 11 3 32 12 13 3 32 31 12 3 33 13 14 3 33 32 13 3 34 14 15 3 34 33 14 3 35 34 15 3 35 15 16 3 36 35 16 3 36 16 17 3 37 36 17 3 37 17 18 3 19 37 18 3 19 18 1 3 126 125 130 3 41 128 42 3 40 128 41 3 43 42 128 3 91 126 130 3 44 43 128 3 69 25 24 3 39 128 40 3 45 44 128 3 69 24 70 3 38 128 39 3 19 128 38 3 68 26 25 3 46 45 128 3 68 25 69 3 47 46 128 3 48 47 128 3 67 27 26 3 67 26 68 3 67 127 27 3 66 127 67 3 65 127 66 3 129 63 103 3 129 64 63 3 129 127 65 3 129 65 64 3 129 93 91 3 129 94 93 3 129 95 94 3 129 96 95 3 129 97 96 3 129 98 97 3 129 99 98 3 129 100 99 3 129 101 100 3 129 102 101 3 129 103 102 3 129 91 130 3 130 83 82 3 130 84 83 3 130 82 128 3 113 86 114 3 113 87 86 3 112 87 113 3 112 88 87 3 115 114 86 3 115 86 85 3 116 84 130 3 116 115 85 3 116 85 84 3 111 88 112 3 111 89 88 3 117 116 130 3 110 89 111 3 110 90 89 3 92 55 90 3 92 90 110 3 118 117 130 3 119 118 130 3 109 57 55 3 109 55 92 3 120 119 130 3 127 28 27 3 127 29 28 3 127 30 29 3 127 31 30 3 127 32 31 3 127 33 32 3 127 34 33 3 127 35 34 3 127 36 35 3 127 37 36 3 108 57 109 3 127 19 37 3 127 128 19 3 108 58 57 3 107 58 108 3 107 59 58 3 77 51 50 3 77 50 78 3 76 52 51 3 121 120 130 3 76 51 77 3 79 50 49 3 79 78 50 3 80 49 48 3 106 60 59 3 80 48 128 3 80 79 49 3 106 59 107 3 75 53 52 3 75 52 76 3 81 80 128 3 122 121 130 3 74 54 53 3 74 53 75 3 82 81 128 3 123 122 130 3 105 61 60 3 56 20 54 3 105 60 106 3 56 54 74 3 124 123 130 3 73 21 20 3 73 20 56 3 104 62 61 3 72 22 21 3 104 61 105 3 72 21 73 3 125 124 130 3 103 63 62 3 71 23 22 3 71 22 72 3 103 62 104 3 70 24 23 3 70 23 71 3 57 131 133 3 57 55 131 3 58 133 134 3 58 57 133 3 59 134 135 3 59 58 134 3 60 135 136 3 60 59 135 3 61 136 137 3 61 60 136 3 62 137 138 3 62 61 137 3 63 138 139 3 63 62 138 3 64 139 140 3 64 63 139 3 65 140 141 3 65 64 140 3 66 141 142 3 66 65 141 3 67 142 143 3 67 66 142 3 68 143 144 3 68 67 143 3 69 144 145 3 69 68 144 3 70 145 146 3 70 69 145 3 71 70 146 3 71 146 147 3 72 71 147 3 72 147 148 3 73 72 148 3 73 148 149 3 56 73 149 3 56 149 132 3 93 150 152 3 93 91 150 3 94 152 153 3 94 93 152 3 95 153 154 3 95 94 153 3 96 154 155 3 96 95 154 3 97 155 156 3 97 96 155 3 98 156 157 3 98 97 156 3 99 157 158 3 99 98 157 3 100 158 159 3 100 99 158 3 101 159 160 3 101 100 159 3 102 160 161 3 102 101 160 3 103 161 162 3 103 102 161 3 104 162 163 3 104 103 162 3 105 163 164 3 105 104 163 3 106 164 165 3 106 105 164 3 107 106 165 3 107 165 166 3 108 107 166 3 108 166 167 3 109 108 167 3 109 167 168 3 92 109 168 3 92 168 151 3 110 92 151 3 110 151 169 3 111 169 170 3 111 110 169 3 112 170 171 3 112 111 170 3 113 171 172 3 113 112 171 3 114 172 173 3 114 113 172 3 115 173 174 3 115 114 173 3 116 174 175 3 116 115 174 3 117 175 176 3 117 116 175 3 118 176 177 3 118 117 176 3 119 177 178 3 119 118 177 3 120 178 179 3 120 119 178 3 121 179 180 3 121 120 179 3 122 180 181 3 122 121 180 3 123 181 182 3 123 122 181 3 124 123 182 3 124 182 183 3 125 124 183 3 125 183 184 3 126 125 184 3 126 184 185 3 91 126 185 3 91 185 150 3 156 150 152 3 156 152 153 3 156 153 154 3 156 154 155 3 156 157 158 3 156 158 159 3 156 159 160 3 156 160 161 3 156 161 162 3 156 162 163 3 156 163 164 3 156 164 165 3 156 165 166 3 156 166 167 3 156 167 168 3 156 168 151 3 156 151 169 3 156 169 170 3 156 170 171 3 156 171 172 3 156 172 173 3 156 173 174 3 156 174 175 3 156 175 176 3 156 176 177 3 156 177 178 3 156 178 179 3 156 179 180 3 156 180 181 3 156 181 182 3 156 182 183 3 156 183 184 3 156 184 185 3 156 185 150 3 127 186 187 3 127 187 128 3 188 130 128 3 188 128 187 3 189 129 130 3 189 130 188 3 129 189 186 3 129 186 127 3 38 19 1 3 38 1 190 3 39 190 191 3 39 38 190 3 40 191 192 3 40 39 191 3 41 192 193 3 41 40 192 3 42 193 194 3 42 41 193 3 43 194 195 3 43 42 194 3 44 195 196 3 44 43 195 3 45 196 197 3 45 44 196 3 46 197 198 3 46 45 197 3 47 198 199 3 47 46 198 3 48 199 200 3 48 47 199 3 49 200 201 3 49 48 200 3 50 201 202 3 50 49 201 3 51 202 203 3 51 50 202 3 52 51 203 3 52 203 204 3 53 52 204 3 53 204 205 3 54 53 205 3 54 205 206 3 20 54 206 3 20 206 0 3 6 0 2 3 6 2 3 3 6 3 4 3 6 4 5 3 6 7 8 3 6 8 9 3 6 9 10 3 6 10 11 3 6 11 12 3 6 12 13 3 6 13 14 3 6 14 15 3 6 15 16 3 6 16 17 3 6 17 18 3 6 18 1 3 6 1 190 3 6 190 191 3 6 191 192 3 6 192 193 3 6 193 194 3 6 194 195 3 6 195 196 3 6 196 197 3 6 197 198 3 6 198 199 3 6 199 200 3 6 200 201 3 6 201 202 3 6 202 203 3 6 203 204 3 6 204 205 3 6 205 206 3 6 206 0 3 74 56 132 3 74 132 207 3 75 207 208 3 75 74 207 3 76 208 209 3 76 75 208 3 77 209 210 3 77 76 209 3 78 210 211 3 78 77 210 3 79 211 212 3 79 78 211 3 80 212 213 3 80 79 212 3 81 213 214 3 81 80 213 3 82 214 215 3 82 81 214 3 83 215 216 3 83 82 215 3 84 216 217 3 84 83 216 3 85 217 218 3 85 84 217 3 86 218 219 3 86 85 218 3 87 219 220 3 87 86 219 3 88 87 220 3 88 220 221 3 89 88 221 3 89 221 222 3 90 89 222 3 90 222 223 3 55 90 223 3 55 223 131 3 136 131 133 3 136 133 134 3 136 134 135 3 136 137 138 3 136 138 139 3 136 139 140 3 136 140 141 3 136 141 142 3 136 142 143 3 136 143 144 3 136 144 145 3 136 145 146 3 136 146 147 3 136 147 148 3 136 148 149 3 136 149 132 3 136 132 207 3 136 207 208 3 136 208 209 3 136 209 210 3 136 210 211 3 136 211 212 3 136 212 213 3 136 213 214 3 136 214 215 3 136 215 216 3 136 216 217 3 136 217 218 3 136 218 219 3 136 219 220 3 136 220 221 3 136 221 222 3 136 222 223 3 136 223 131 3 340 186 341 3 522 510 490 3 522 511 510 3 522 512 511 3 522 513 512 3 522 514 513 3 522 515 514 3 522 516 515 3 522 517 516 3 280 255 256 3 522 518 517 3 522 519 518 3 522 520 519 3 280 256 281 3 522 521 520 3 522 490 523 3 188 501 500 3 188 502 501 3 188 503 502 3 188 504 503 3 188 500 187 3 493 546 545 3 493 492 546 3 386 361 387 3 494 544 543 3 494 545 544 3 494 493 545 3 495 543 542 3 495 494 543 3 496 542 541 3 496 541 187 3 339 186 340 3 496 495 542 3 497 496 187 3 279 255 280 3 498 497 187 3 385 347 361 3 385 329 347 3 229 240 230 3 385 361 386 3 231 240 254 3 231 230 240 3 450 461 451 3 499 498 187 3 452 475 508 3 452 461 475 3 452 451 461 3 500 499 187 3 228 240 229 3 475 477 476 3 475 478 477 3 475 479 478 3 475 480 479 3 475 481 480 3 475 482 481 3 475 483 482 3 475 484 483 3 475 485 484 3 475 486 485 3 475 487 486 3 475 488 487 3 475 489 488 3 475 509 508 3 449 461 450 3 475 476 509 3 384 330 329 3 252 241 240 3 252 242 241 3 252 243 242 3 252 244 243 3 252 245 244 3 252 246 245 3 252 247 246 3 252 248 247 3 252 249 248 3 312 289 298 3 252 250 249 3 252 251 250 3 252 228 253 3 252 240 228 3 473 462 461 3 473 463 462 3 473 464 463 3 473 465 464 3 473 466 465 3 232 254 187 3 473 467 466 3 232 231 254 3 473 468 467 3 473 469 468 3 384 329 385 3 473 470 469 3 473 471 470 3 473 472 471 3 473 449 474 3 473 461 449 3 233 232 187 3 338 186 339 3 383 331 330 3 453 508 507 3 453 452 508 3 234 233 187 3 337 186 338 3 454 507 506 3 454 453 507 3 235 234 187 3 455 454 506 3 236 235 187 3 383 330 384 3 456 506 505 3 456 455 506 3 457 456 505 3 237 236 187 3 457 505 504 3 458 457 504 3 238 237 187 3 458 504 188 3 459 458 188 3 239 238 187 3 460 459 188 3 382 331 383 3 224 239 187 3 381 332 331 3 446 460 188 3 226 224 187 3 447 446 188 3 227 226 187 3 381 331 382 3 448 447 188 3 380 333 332 3 225 227 187 3 434 448 188 3 380 332 381 3 539 225 187 3 435 434 188 3 540 539 187 3 379 333 380 3 436 435 188 3 541 540 187 3 437 436 188 3 313 326 325 3 313 312 326 3 313 315 314 3 313 316 315 3 313 317 316 3 313 318 317 3 313 319 318 3 313 320 319 3 313 321 320 3 313 322 321 3 313 323 322 3 524 528 527 3 313 324 323 3 524 529 528 3 313 325 324 3 524 530 529 3 524 531 530 3 524 532 531 3 524 533 532 3 524 534 533 3 524 535 534 3 524 536 535 3 524 537 536 3 524 538 537 3 438 437 188 3 524 548 547 3 524 549 548 3 524 525 549 3 524 526 525 3 524 527 526 3 346 312 313 3 439 438 188 3 345 312 346 3 345 290 289 3 440 439 188 3 345 289 312 3 419 427 426 3 419 428 427 3 419 429 428 3 419 430 429 3 419 431 430 3 419 432 431 3 419 433 432 3 419 444 443 3 419 445 444 3 419 420 445 3 419 421 420 3 419 422 421 3 419 423 422 3 419 424 423 3 419 425 424 3 419 426 425 3 344 290 345 3 344 291 290 3 441 440 188 3 298 287 286 3 298 288 287 3 298 289 288 3 343 291 344 3 298 300 299 3 298 301 300 3 298 302 301 3 298 303 302 3 298 304 303 3 298 305 304 3 298 306 305 3 298 307 306 3 298 308 307 3 298 309 308 3 343 292 291 3 298 310 309 3 298 311 310 3 343 293 292 3 298 286 311 3 510 524 547 3 257 259 258 3 257 260 259 3 257 261 260 3 257 262 261 3 257 263 262 3 257 264 263 3 257 265 264 3 257 266 265 3 257 267 266 3 257 268 267 3 442 441 188 3 257 269 268 3 257 270 269 3 257 256 270 3 342 293 343 3 342 294 293 3 362 364 363 3 362 365 364 3 362 366 365 3 282 256 257 3 362 367 366 3 362 368 367 3 362 369 368 3 362 370 369 3 362 371 370 3 362 372 371 3 362 373 372 3 403 392 391 3 362 374 373 3 403 393 392 3 403 394 393 3 362 375 374 3 362 361 375 3 403 405 404 3 403 406 405 3 403 407 406 3 403 408 407 3 403 409 408 3 403 410 409 3 403 411 410 3 403 412 411 3 403 413 412 3 403 414 413 3 403 415 414 3 403 416 415 3 403 391 416 3 418 443 442 3 418 442 188 3 418 419 443 3 186 255 279 3 341 294 342 3 186 254 255 3 417 395 394 3 186 187 254 3 186 272 271 3 186 273 272 3 186 274 273 3 186 275 274 3 417 394 403 3 186 276 275 3 341 186 295 3 186 277 276 3 186 278 277 3 189 334 333 3 186 279 278 3 189 335 334 3 186 284 283 3 189 336 335 3 186 285 284 3 189 337 336 3 186 271 285 3 186 297 296 3 186 283 297 3 189 377 376 3 189 378 377 3 341 295 294 3 189 379 378 3 189 389 388 3 189 390 389 3 189 376 390 3 189 396 395 3 189 397 396 3 347 328 327 3 189 398 397 3 189 395 417 3 347 329 328 3 492 510 547 3 189 399 398 3 189 400 399 3 347 349 348 3 189 401 400 3 347 350 349 3 189 402 401 3 347 351 350 3 281 256 282 3 189 388 402 3 347 352 351 3 189 417 418 3 347 353 352 3 347 354 353 3 492 547 546 3 189 333 379 3 347 355 354 3 188 189 418 3 347 356 355 3 189 186 337 3 492 491 510 3 347 357 356 3 347 358 357 3 347 359 358 3 387 361 362 3 347 360 359 3 490 510 491 3 295 186 296 3 347 327 360 3 283 284 285 3 283 285 271 3 283 271 224 3 283 224 226 3 283 226 227 3 283 227 225 3 388 389 390 3 388 390 376 3 388 376 446 3 388 446 447 3 388 447 448 3 388 448 434 3 363 362 550 3 363 550 552 3 364 552 553 3 364 363 552 3 365 553 554 3 365 364 553 3 366 554 555 3 366 365 554 3 367 555 556 3 367 366 555 3 368 556 557 3 368 367 556 3 369 557 558 3 369 368 557 3 370 558 559 3 370 369 558 3 371 559 560 3 371 370 559 3 372 560 561 3 372 371 560 3 373 561 562 3 373 372 561 3 374 562 563 3 374 373 562 3 375 563 564 3 375 374 563 3 361 564 551 3 361 375 564 3 361 565 347 3 361 551 565 3 348 347 565 3 348 565 567 3 349 567 568 3 349 348 567 3 350 568 569 3 350 349 568 3 351 569 570 3 351 350 569 3 352 570 571 3 352 351 570 3 353 571 572 3 353 352 571 3 354 572 573 3 354 353 572 3 355 573 574 3 355 354 573 3 356 574 575 3 356 355 574 3 357 575 576 3 357 356 575 3 358 576 577 3 358 357 576 3 359 577 578 3 359 358 577 3 360 578 579 3 360 359 578 3 327 579 566 3 327 360 579 3 330 584 583 3 329 330 583 3 329 583 582 3 328 582 581 3 328 329 582 3 327 328 581 3 327 581 566 3 346 313 580 3 346 580 599 3 345 599 598 3 345 346 599 3 344 598 597 3 344 345 598 3 343 597 596 3 343 344 597 3 342 596 595 3 342 343 596 3 341 595 594 3 341 342 595 3 340 594 593 3 340 341 594 3 339 593 592 3 339 340 593 3 338 592 591 3 338 339 592 3 337 591 590 3 337 338 591 3 336 590 589 3 336 337 590 3 335 589 588 3 335 336 589 3 334 588 587 3 334 335 588 3 333 334 587 3 333 587 586 3 332 333 586 3 332 586 585 3 331 332 585 3 331 585 584 3 330 331 584 3 314 313 580 3 314 580 601 3 315 601 602 3 315 314 601 3 316 602 603 3 316 315 602 3 317 603 604 3 317 316 603 3 318 604 605 3 318 317 604 3 319 605 606 3 319 318 605 3 320 606 607 3 320 319 606 3 321 607 608 3 321 320 607 3 322 608 609 3 322 321 608 3 323 609 610 3 323 322 609 3 324 610 611 3 324 323 610 3 325 611 612 3 325 324 611 3 326 612 613 3 326 325 612 3 312 613 600 3 312 326 613 3 312 614 298 3 312 600 614 3 299 298 614 3 299 614 616 3 300 616 617 3 300 299 616 3 301 617 618 3 301 300 617 3 302 618 619 3 302 301 618 3 303 619 620 3 303 302 619 3 304 620 621 3 304 303 620 3 305 621 622 3 305 304 621 3 306 622 623 3 306 305 622 3 307 623 624 3 307 306 623 3 308 624 625 3 308 307 624 3 309 625 626 3 309 308 625 3 310 626 627 3 310 309 626 3 311 627 628 3 311 310 627 3 286 628 615 3 286 311 628 3 297 283 629 3 297 629 640 3 296 640 639 3 296 297 640 3 295 639 638 3 295 296 639 3 294 638 637 3 294 295 638 3 293 637 636 3 293 294 637 3 292 636 635 3 292 293 636 3 291 635 634 3 291 292 635 3 290 634 633 3 290 291 634 3 289 633 632 3 289 290 633 3 288 632 631 3 288 289 632 3 287 631 630 3 287 288 631 3 286 630 615 3 286 287 630 3 283 641 225 3 283 629 641 3 549 525 642 3 549 642 653 3 548 653 652 3 548 549 653 3 547 652 651 3 547 548 652 3 546 651 650 3 546 547 651 3 545 650 649 3 545 546 650 3 544 649 648 3 544 545 649 3 543 648 647 3 543 544 648 3 542 647 646 3 542 543 647 3 541 646 645 3 541 542 646 3 540 645 644 3 540 541 645 3 539 644 643 3 539 540 644 3 225 643 641 3 225 539 643 3 526 525 642 3 526 642 655 3 527 655 656 3 527 526 655 3 528 656 657 3 528 527 656 3 529 657 658 3 529 528 657 3 530 658 659 3 530 529 658 3 531 659 660 3 531 530 659 3 532 660 661 3 532 531 660 3 533 661 662 3 533 532 661 3 534 662 663 3 534 533 662 3 535 663 664 3 535 534 663 3 536 664 665 3 536 535 664 3 537 665 666 3 537 536 665 3 538 666 667 3 538 537 666 3 524 667 654 3 524 538 667 3 654 510 524 3 654 668 510 3 511 510 668 3 511 668 670 3 512 670 671 3 512 511 670 3 513 671 672 3 513 512 671 3 514 672 673 3 514 513 672 3 515 673 674 3 515 514 673 3 516 674 675 3 516 515 674 3 517 675 676 3 517 516 675 3 518 676 677 3 518 517 676 3 519 677 678 3 519 518 677 3 520 678 679 3 520 519 678 3 521 679 680 3 521 520 679 3 522 680 681 3 522 521 680 3 523 681 682 3 523 522 681 3 490 682 669 3 490 523 682 3 493 687 686 3 492 493 686 3 492 686 685 3 491 685 684 3 491 492 685 3 490 491 684 3 490 684 669 3 509 476 683 3 509 683 702 3 508 702 701 3 508 509 702 3 507 701 700 3 507 508 701 3 506 700 699 3 506 507 700 3 505 699 698 3 505 506 699 3 504 698 697 3 504 505 698 3 503 697 696 3 503 504 697 3 502 696 695 3 502 503 696 3 501 695 694 3 501 502 695 3 500 694 693 3 500 501 694 3 499 693 692 3 499 500 693 3 498 692 691 3 498 499 692 3 497 691 690 3 497 498 691 3 496 497 690 3 496 690 689 3 495 496 689 3 495 689 688 3 494 495 688 3 494 688 687 3 493 494 687 3 477 476 683 3 477 683 704 3 478 704 705 3 478 477 704 3 479 705 706 3 479 478 705 3 480 706 707 3 480 479 706 3 481 707 708 3 481 480 707 3 482 708 709 3 482 481 708 3 483 709 710 3 483 482 709 3 484 710 711 3 484 483 710 3 485 711 712 3 485 484 711 3 486 712 713 3 486 485 712 3 487 713 714 3 487 486 713 3 488 714 715 3 488 487 714 3 489 715 716 3 489 488 715 3 475 716 703 3 475 489 716 3 717 461 475 3 717 475 703 3 462 461 717 3 462 717 719 3 463 719 720 3 463 462 719 3 464 720 721 3 464 463 720 3 465 721 722 3 465 464 721 3 466 722 723 3 466 465 722 3 467 723 724 3 467 466 723 3 468 724 725 3 468 467 724 3 469 725 726 3 469 468 725 3 470 726 727 3 470 469 726 3 471 727 728 3 471 470 727 3 472 728 729 3 472 471 728 3 473 729 730 3 473 472 729 3 474 730 731 3 474 473 730 3 449 731 718 3 449 474 731 3 460 446 732 3 460 732 743 3 459 743 742 3 459 460 743 3 458 742 741 3 458 459 742 3 457 741 740 3 457 458 741 3 456 740 739 3 456 457 740 3 455 739 738 3 455 456 739 3 454 738 737 3 454 455 738 3 453 737 736 3 453 454 737 3 452 736 735 3 452 453 736 3 451 735 734 3 451 452 735 3 450 734 733 3 450 451 734 3 449 733 718 3 449 450 733 3 732 376 446 3 732 744 376 3 387 362 550 3 387 550 755 3 386 755 754 3 386 387 755 3 385 754 753 3 385 386 754 3 384 753 752 3 384 385 753 3 383 752 751 3 383 384 752 3 382 751 750 3 382 383 751 3 381 750 749 3 381 382 750 3 380 749 748 3 380 381 749 3 379 748 747 3 379 380 748 3 378 747 746 3 378 379 747 3 377 746 745 3 377 378 746 3 376 745 744 3 376 377 745 3 710 790 709 3 711 790 710 3 594 595 768 3 791 790 711 3 791 711 712 3 791 712 713 3 593 768 767 3 593 594 768 3 714 791 713 3 715 791 714 3 592 593 767 3 551 703 717 3 551 565 703 3 564 717 719 3 564 551 717 3 563 719 720 3 756 791 715 3 563 564 719 3 562 720 721 3 562 563 720 3 561 721 722 3 756 715 716 3 778 682 669 3 703 756 716 3 778 669 684 3 779 684 685 3 779 685 686 3 561 562 721 3 560 722 723 3 779 778 684 3 591 767 766 3 780 779 686 3 591 592 767 3 780 686 687 3 780 687 688 3 560 561 722 3 559 723 724 3 777 678 679 3 777 679 680 3 777 680 681 3 777 681 682 3 777 682 778 3 781 780 688 3 559 560 723 3 781 688 689 3 558 724 725 3 781 689 690 3 776 678 777 3 776 675 676 3 776 676 677 3 776 677 678 3 558 559 724 3 557 725 726 3 590 591 766 3 589 766 765 3 589 590 766 3 782 781 690 3 782 690 691 3 557 558 725 3 782 691 692 3 556 726 727 3 775 675 776 3 775 671 672 3 775 672 673 3 775 673 674 3 775 674 675 3 556 557 726 3 555 727 728 3 600 614 654 3 600 654 668 3 783 782 692 3 555 556 727 3 554 728 729 3 783 692 693 3 783 693 694 3 757 600 668 3 757 668 670 3 757 670 671 3 757 671 775 3 588 589 765 3 613 600 757 3 554 555 728 3 553 729 730 3 612 613 757 3 553 554 729 3 552 730 731 3 784 783 694 3 784 694 695 3 784 695 696 3 552 553 730 3 550 731 718 3 774 612 757 3 774 611 612 3 610 611 774 3 609 610 774 3 550 552 731 3 608 609 774 3 785 784 696 3 785 696 697 3 773 608 774 3 773 607 608 3 606 607 773 3 698 785 697 3 587 765 764 3 605 606 773 3 587 588 765 3 586 587 764 3 585 764 763 3 585 586 764 3 584 585 763 3 583 763 762 3 583 584 763 3 628 656 627 3 628 655 656 3 579 761 760 3 626 627 656 3 579 760 578 3 626 656 657 3 786 785 698 3 577 578 760 3 786 698 699 3 566 761 579 3 582 583 762 3 615 655 628 3 772 605 773 3 576 577 760 3 772 604 605 3 603 604 772 3 581 762 761 3 581 582 762 3 581 761 566 3 615 642 655 3 575 760 759 3 602 603 772 3 575 576 760 3 574 575 759 3 700 786 699 3 601 602 772 3 573 574 759 3 572 573 759 3 572 759 758 3 625 626 657 3 625 657 658 3 631 615 630 3 631 632 633 3 571 572 758 3 631 633 634 3 631 634 635 3 570 571 758 3 631 635 636 3 631 636 637 3 631 637 638 3 631 638 639 3 631 642 615 3 631 639 640 3 631 640 629 3 631 629 641 3 631 641 643 3 631 643 644 3 631 644 645 3 631 645 646 3 631 646 647 3 631 647 648 3 631 648 649 3 631 649 650 3 569 570 758 3 631 650 651 3 631 651 652 3 631 652 653 3 631 653 642 3 787 786 700 3 787 700 701 3 624 658 659 3 568 758 756 3 744 718 733 3 568 569 758 3 744 733 734 3 744 734 735 3 744 735 736 3 744 736 737 3 744 737 738 3 624 625 658 3 744 738 739 3 744 739 740 3 744 740 741 3 744 741 742 3 771 601 772 3 744 742 743 3 771 580 601 3 744 743 732 3 744 745 746 3 744 746 747 3 623 659 660 3 744 747 748 3 744 748 749 3 744 749 750 3 744 750 751 3 744 751 752 3 744 752 753 3 623 624 659 3 744 753 754 3 744 754 755 3 599 580 771 3 744 755 550 3 744 550 718 3 702 787 701 3 622 660 661 3 567 568 756 3 565 567 756 3 565 756 703 3 622 623 660 3 788 787 702 3 621 622 661 3 621 661 662 3 770 599 771 3 620 662 663 3 598 599 770 3 620 621 662 3 683 788 702 3 704 788 683 3 619 620 663 3 619 663 664 3 597 598 770 3 618 619 664 3 618 664 665 3 789 704 705 3 789 705 706 3 617 618 665 3 789 788 704 3 617 665 666 3 769 597 770 3 616 666 667 3 596 597 769 3 616 617 666 3 707 789 706 3 708 789 707 3 614 616 667 3 614 667 654 3 595 596 769 3 790 708 709 3 790 789 708 3 768 595 769 3 792 417 418 3 792 418 793 3 417 794 403 3 417 792 794 3 404 403 794 3 404 794 796 3 405 796 797 3 405 404 796 3 406 797 798 3 406 405 797 3 407 798 799 3 407 406 798 3 408 799 800 3 408 407 799 3 409 800 801 3 409 408 800 3 410 801 802 3 410 409 801 3 411 802 803 3 411 410 802 3 412 803 804 3 412 411 803 3 413 804 805 3 413 412 804 3 414 805 806 3 414 413 805 3 415 806 807 3 415 414 806 3 416 807 808 3 416 415 807 3 391 808 795 3 391 416 808 3 402 388 809 3 402 809 820 3 401 820 819 3 401 402 820 3 400 819 818 3 400 401 819 3 399 818 817 3 399 400 818 3 398 817 816 3 398 399 817 3 397 816 815 3 397 398 816 3 396 815 814 3 396 397 815 3 395 814 813 3 395 396 814 3 394 813 812 3 394 395 813 3 393 812 811 3 393 394 812 3 392 811 810 3 392 393 811 3 391 810 795 3 391 392 810 3 388 821 434 3 388 809 821 3 445 420 822 3 445 822 833 3 444 833 832 3 444 445 833 3 443 832 831 3 443 444 832 3 442 831 830 3 442 443 831 3 441 830 829 3 441 442 830 3 440 829 828 3 440 441 829 3 439 828 827 3 439 440 828 3 438 827 826 3 438 439 827 3 437 826 825 3 437 438 826 3 436 825 824 3 436 437 825 3 435 824 823 3 435 436 824 3 434 823 821 3 434 435 823 3 421 420 822 3 421 822 835 3 422 835 836 3 422 421 835 3 423 836 837 3 423 422 836 3 424 837 838 3 424 423 837 3 425 838 839 3 425 424 838 3 426 839 840 3 426 425 839 3 427 840 841 3 427 426 840 3 428 841 842 3 428 427 841 3 429 842 843 3 429 428 842 3 430 843 844 3 430 429 843 3 431 844 845 3 431 430 844 3 432 845 846 3 432 431 845 3 433 846 847 3 433 432 846 3 419 847 834 3 419 433 847 3 793 418 419 3 793 419 834 3 800 801 842 3 800 842 843 3 795 835 808 3 795 822 835 3 799 800 843 3 799 843 844 3 798 844 845 3 798 799 844 3 797 845 846 3 797 798 845 3 805 806 837 3 805 837 838 3 796 846 847 3 796 797 846 3 811 795 810 3 811 812 813 3 811 813 814 3 811 814 815 3 811 815 816 3 811 816 817 3 811 817 818 3 811 818 819 3 811 819 820 3 811 820 809 3 811 809 821 3 811 821 823 3 811 823 824 3 811 824 825 3 811 825 826 3 811 826 827 3 811 827 828 3 794 847 834 3 811 828 829 3 811 829 830 3 794 796 847 3 811 830 831 3 811 831 832 3 811 822 795 3 811 832 833 3 811 833 822 3 792 794 834 3 792 834 793 3 804 838 839 3 804 805 838 3 803 839 840 3 803 804 839 3 802 840 841 3 802 803 840 3 808 836 807 3 808 835 836 3 801 802 841 3 801 841 842 3 806 807 836 3 806 836 837 3 255 848 254 3 255 849 848 3 850 240 254 3 850 254 848 3 241 240 850 3 241 850 852 3 242 852 853 3 242 241 852 3 243 853 854 3 243 242 853 3 244 854 855 3 244 243 854 3 245 855 856 3 245 244 855 3 246 856 857 3 246 245 856 3 247 857 858 3 247 246 857 3 248 858 859 3 248 247 858 3 249 859 860 3 249 248 859 3 250 860 861 3 250 249 860 3 251 861 862 3 251 250 861 3 252 862 863 3 252 251 862 3 253 863 864 3 253 252 863 3 228 864 851 3 228 253 864 3 239 224 865 3 239 865 876 3 238 876 875 3 238 239 876 3 237 875 874 3 237 238 875 3 236 874 873 3 236 237 874 3 235 873 872 3 235 236 873 3 234 872 871 3 234 235 872 3 233 871 870 3 233 234 871 3 232 870 869 3 232 233 870 3 231 869 868 3 231 232 869 3 230 868 867 3 230 231 868 3 229 867 866 3 229 230 867 3 228 866 851 3 228 229 866 3 877 271 224 3 877 224 865 3 282 257 878 3 282 878 889 3 281 889 888 3 281 282 889 3 280 888 887 3 280 281 888 3 279 887 886 3 279 280 887 3 278 886 885 3 278 279 886 3 277 885 884 3 277 278 885 3 276 884 883 3 276 277 884 3 275 883 882 3 275 276 883 3 274 882 881 3 274 275 882 3 273 881 880 3 273 274 881 3 272 880 879 3 272 273 880 3 271 879 877 3 271 272 879 3 258 257 878 3 258 878 891 3 259 891 892 3 259 258 891 3 260 892 893 3 260 259 892 3 261 893 894 3 261 260 893 3 262 894 895 3 262 261 894 3 263 895 896 3 263 262 895 3 264 896 897 3 264 263 896 3 265 897 898 3 265 264 897 3 266 898 899 3 266 265 898 3 267 899 900 3 267 266 899 3 268 900 901 3 268 267 900 3 269 901 902 3 269 268 901 3 270 902 903 3 270 269 902 3 256 903 890 3 256 270 903 3 256 849 255 3 256 890 849 3 893 863 862 3 893 892 863 3 899 857 856 3 878 851 864 3 899 898 857 3 900 856 855 3 878 864 891 3 900 899 856 3 901 900 855 3 901 855 854 3 902 854 853 3 902 901 854 3 903 853 852 3 894 862 861 3 903 902 853 3 894 893 862 3 890 852 850 3 888 866 851 3 888 867 866 3 888 868 867 3 888 869 868 3 888 870 869 3 888 871 870 3 888 872 871 3 888 873 872 3 888 874 873 3 888 875 874 3 888 876 875 3 888 865 876 3 888 877 865 3 888 879 877 3 888 880 879 3 888 881 880 3 888 882 881 3 888 883 882 3 888 851 878 3 888 884 883 3 890 903 852 3 888 885 884 3 888 886 885 3 888 887 886 3 888 878 889 3 895 894 861 3 849 850 848 3 849 890 850 3 895 861 860 3 896 860 859 3 896 895 860 3 897 859 858 3 897 896 859 3 891 864 863 3 898 858 857 3 891 863 892 3 898 897 858 3 762 756 758 3 762 758 759 3 762 759 760 3 762 760 761 3 762 763 764 3 762 764 765 3 762 765 766 3 762 766 767 3 762 767 768 3 762 768 769 3 762 769 770 3 762 770 771 3 762 771 772 3 762 772 773 3 762 773 774 3 762 774 757 3 762 757 775 3 762 775 776 3 762 776 777 3 762 777 778 3 762 778 779 3 762 779 780 3 762 780 781 3 762 781 782 3 762 782 783 3 762 783 784 3 762 784 785 3 762 785 786 3 762 786 787 3 762 787 788 3 762 788 789 3 762 789 790 3 762 790 791 3 762 791 756 3 923 906 924 3 923 924 941 3 922 941 940 3 922 923 941 3 921 940 939 3 921 922 940 3 920 939 938 3 920 921 939 3 919 938 937 3 919 920 938 3 918 937 936 3 918 919 937 3 917 936 935 3 917 918 936 3 916 935 934 3 916 917 935 3 915 934 933 3 915 916 934 3 914 933 932 3 914 915 933 3 913 932 931 3 913 914 932 3 912 931 930 3 912 913 931 3 911 930 929 3 911 912 930 3 910 929 928 3 910 911 929 3 909 910 928 3 909 928 927 3 908 909 927 3 908 927 926 3 907 908 926 3 907 926 925 3 905 907 925 3 905 925 904 3 946 904 925 3 946 925 926 3 946 926 927 3 946 927 928 3 946 928 929 3 946 929 930 3 946 930 931 3 946 931 932 3 946 932 933 3 946 933 934 3 946 934 935 3 946 935 936 3 946 936 937 3 946 937 938 3 946 938 939 3 946 939 940 3 946 940 941 3 946 941 924 3 946 924 942 3 946 942 943 3 946 943 944 3 946 944 945 3 946 947 948 3 946 948 949 3 946 949 950 3 946 950 951 3 946 951 952 3 946 952 953 3 946 953 954 3 946 954 955 3 946 955 956 3 946 956 957 3 946 957 958 3 946 958 904 3 975 905 904 3 975 904 958 3 974 958 957 3 974 975 958 3 973 957 956 3 973 974 957 3 972 956 955 3 972 973 956 3 971 955 954 3 971 972 955 3 970 954 953 3 970 971 954 3 969 953 952 3 969 970 953 3 968 952 951 3 968 969 952 3 967 951 950 3 967 968 951 3 966 950 949 3 966 967 950 3 965 949 948 3 965 966 949 3 964 948 947 3 964 965 948 3 963 947 946 3 963 964 947 3 962 946 945 3 962 963 946 3 961 962 945 3 961 945 944 3 960 961 944 3 960 944 943 3 959 960 943 3 959 943 942 3 906 959 942 3 906 942 924 3 963 905 907 3 963 907 908 3 963 908 909 3 963 909 910 3 963 910 911 3 963 911 912 3 963 912 913 3 963 913 914 3 963 914 915 3 963 915 916 3 963 916 917 3 963 917 918 3 963 918 919 3 963 919 920 3 963 920 921 3 963 921 922 3 963 922 923 3 963 923 906 3 963 906 959 3 963 959 960 3 963 960 961 3 963 961 962 3 963 964 965 3 963 965 966 3 963 966 967 3 963 967 968 3 963 968 969 3 963 969 970 3 963 970 971 3 963 971 972 3 963 972 973 3 963 973 974 3 963 974 975 3 963 975 905 3 1013 977 994 3 1013 996 977 3 1012 994 993 3 1012 1013 994 3 1011 993 992 3 1011 1012 993 3 1010 992 991 3 1010 1011 992 3 1009 991 990 3 1009 1010 991 3 1008 990 989 3 1008 1009 990 3 1007 989 988 3 1007 1008 989 3 1006 988 987 3 1006 1007 988 3 1005 987 986 3 1005 1006 987 3 1004 986 985 3 1004 1005 986 3 1003 985 984 3 1003 1004 985 3 1002 984 983 3 1002 1003 984 3 1001 983 982 3 1001 1002 983 3 1000 982 981 3 1000 1001 982 3 999 1000 981 3 999 981 980 3 998 999 980 3 998 980 979 3 997 979 978 3 997 998 979 3 995 978 976 3 995 997 978 3 1001 996 1014 3 1001 1014 1015 3 1001 1015 1016 3 1001 1016 1017 3 1001 1017 1018 3 1001 1018 1019 3 1001 1019 1020 3 1001 1020 1021 3 1001 1021 1022 3 1001 1022 1023 3 1001 1023 1024 3 1001 1024 1025 3 1001 1025 1026 3 1001 1026 1027 3 1001 1027 1028 3 1001 1028 1029 3 1001 1029 1030 3 1001 1030 995 3 1001 995 997 3 1001 997 998 3 1001 998 999 3 1001 999 1000 3 1001 1002 1003 3 1001 1003 1004 3 1001 1004 1005 3 1001 1005 1006 3 1001 1006 1007 3 1001 1007 1008 3 1001 1008 1009 3 1001 1009 1010 3 1001 1010 1011 3 1001 1011 1012 3 1001 1012 1013 3 1001 1013 996 3 982 977 1031 3 982 1031 1032 3 982 1032 1033 3 982 1033 1034 3 982 1034 1035 3 982 1035 1036 3 982 1036 1037 3 982 1037 1038 3 982 1038 1039 3 982 1039 1040 3 982 1040 1041 3 982 1041 1042 3 982 1042 1043 3 982 1043 1044 3 982 1044 1045 3 982 1045 1046 3 982 1046 1047 3 982 1047 976 3 982 976 978 3 982 978 979 3 982 979 980 3 982 980 981 3 982 983 984 3 982 984 985 3 982 985 986 3 982 986 987 3 982 987 988 3 982 988 989 3 982 989 990 3 982 990 991 3 982 991 992 3 982 992 993 3 982 993 994 3 982 994 977 3 1030 995 976 3 1030 976 1047 3 1029 1047 1046 3 1029 1030 1047 3 1028 1046 1045 3 1028 1029 1046 3 1027 1045 1044 3 1027 1028 1045 3 1026 1044 1043 3 1026 1027 1044 3 1025 1043 1042 3 1025 1026 1043 3 1024 1042 1041 3 1024 1025 1042 3 1023 1041 1040 3 1023 1024 1041 3 1022 1040 1039 3 1022 1023 1040 3 1021 1039 1038 3 1021 1022 1039 3 1020 1038 1037 3 1020 1021 1038 3 1019 1037 1036 3 1019 1020 1037 3 1018 1036 1035 3 1018 1019 1036 3 1017 1035 1034 3 1017 1018 1035 3 1016 1017 1034 3 1016 1034 1033 3 1015 1016 1033 3 1015 1033 1032 3 1014 1032 1031 3 1014 1015 1032 3 996 1031 977 3 996 1014 1031 3 1067 1050 1068 3 1067 1068 1085 3 1066 1085 1084 3 1066 1067 1085 3 1065 1084 1083 3 1065 1066 1084 3 1064 1083 1082 3 1064 1065 1083 3 1063 1082 1081 3 1063 1064 1082 3 1062 1081 1080 3 1062 1063 1081 3 1061 1080 1079 3 1061 1062 1080 3 1060 1079 1078 3 1060 1061 1079 3 1059 1078 1077 3 1059 1060 1078 3 1058 1077 1076 3 1058 1059 1077 3 1057 1076 1075 3 1057 1058 1076 3 1056 1075 1074 3 1056 1057 1075 3 1055 1074 1073 3 1055 1056 1074 3 1054 1073 1072 3 1054 1055 1073 3 1053 1054 1072 3 1053 1072 1071 3 1052 1053 1071 3 1052 1071 1070 3 1051 1052 1070 3 1051 1070 1069 3 1049 1051 1069 3 1049 1069 1048 3 1090 1048 1069 3 1090 1069 1070 3 1090 1070 1071 3 1090 1071 1072 3 1090 1072 1073 3 1090 1073 1074 3 1090 1074 1075 3 1090 1075 1076 3 1090 1076 1077 3 1090 1077 1078 3 1090 1078 1079 3 1090 1079 1080 3 1090 1080 1081 3 1090 1081 1082 3 1090 1082 1083 3 1090 1083 1084 3 1090 1084 1085 3 1090 1085 1068 3 1090 1068 1086 3 1090 1086 1087 3 1090 1087 1088 3 1090 1088 1089 3 1090 1091 1092 3 1090 1092 1093 3 1090 1093 1094 3 1090 1094 1095 3 1090 1095 1096 3 1090 1096 1097 3 1090 1097 1098 3 1090 1098 1099 3 1090 1099 1100 3 1090 1100 1101 3 1090 1101 1102 3 1090 1102 1048 3 1119 1049 1048 3 1119 1048 1102 3 1118 1102 1101 3 1118 1119 1102 3 1117 1101 1100 3 1117 1118 1101 3 1116 1100 1099 3 1116 1117 1100 3 1115 1099 1098 3 1115 1116 1099 3 1114 1098 1097 3 1114 1115 1098 3 1113 1097 1096 3 1113 1114 1097 3 1112 1096 1095 3 1112 1113 1096 3 1111 1095 1094 3 1111 1112 1095 3 1110 1094 1093 3 1110 1111 1094 3 1109 1093 1092 3 1109 1110 1093 3 1108 1092 1091 3 1108 1109 1092 3 1107 1091 1090 3 1107 1108 1091 3 1106 1090 1089 3 1106 1107 1090 3 1105 1106 1089 3 1105 1089 1088 3 1104 1105 1088 3 1104 1088 1087 3 1103 1104 1087 3 1103 1087 1086 3 1050 1103 1086 3 1050 1086 1068 3 1107 1049 1051 3 1107 1051 1052 3 1107 1052 1053 3 1107 1053 1054 3 1107 1054 1055 3 1107 1055 1056 3 1107 1056 1057 3 1107 1057 1058 3 1107 1058 1059 3 1107 1059 1060 3 1107 1060 1061 3 1107 1061 1062 3 1107 1062 1063 3 1107 1063 1064 3 1107 1064 1065 3 1107 1065 1066 3 1107 1066 1067 3 1107 1067 1050 3 1107 1050 1103 3 1107 1103 1104 3 1107 1104 1105 3 1107 1105 1106 3 1107 1108 1109 3 1107 1109 1110 3 1107 1110 1111 3 1107 1111 1112 3 1107 1112 1113 3 1107 1113 1114 3 1107 1114 1115 3 1107 1115 1116 3 1107 1116 1117 3 1107 1117 1118 3 1107 1118 1119 3 1107 1119 1049 POINT_DATA 1120 SCALARS PtLabel int LOOKUP_TABLE default 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 CELL_DATA 2224 SCALARS TriLabel int LOOKUP_TABLE default 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 SCALARS SubSufrLabel int LOOKUP_TABLE default 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 -------------- next part -------------- A non-text attachment was scrubbed... Name: test_vtk.png Type: image/png Size: 4718 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: test_vtk_must be.png Type: image/png Size: 8060 bytes Desc: not available URL: From ken.martin at kitware.com Wed Jan 31 08:45:03 2018 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 31 Jan 2018 08:45:03 -0500 Subject: [vtkusers] Default view is half transparent In-Reply-To: References: Message-ID: If you are on OSX with Qt5 but using the old vtk QtWidget then there is a known issue where the zbuffer doesn't work I believe. The new tk OPenGL widget widget fixes the issue. If you are not on OSX then it must be something else but your code above looks fine. On Wed, Jan 31, 2018 at 6:17 AM, Tanja Gerasimenko wrote: > Hello! > > I'm very new in vtk and I'm trying to visualize a triangular mesh > describing a geometry (something like stl) with vtk and Qt. The result > seems to be half transparent or something like that (see the picture). When > I visualize it using Paraview it looks like as a solid. I've tried to auto > orient normals and use ReverseSense but without success. > > Could you please tell me, what am I doing wrong? > > Thank you. > > > The code is: > > vtkSmartPointer points = vtkSmartPointer::New(); > > points->SetNumberOfPoints(surf_mesh.pt.size()); > for (uint i=0; i { > points->SetPoint(i, surf_mesh.pt[i].x, surf_mesh.pt[i].y, > surf_mesh.pt[i].z); > }; > > vtkSmartPointer polys = vtkSmartPointer: > :New(); > > for (uint i=0; i { > polys->InsertNextCell(3); > polys->InsertCellPoint(surf_mesh.tr[i].p1); > polys->InsertCellPoint(surf_mesh.tr[i].p2); > polys->InsertCellPoint(surf_mesh.tr[i].p3); > }; > > vtkPolyData * polydata = vtkPolyData::New(); > polydata->SetPoints(points); > polydata->SetPolys(polys); > > > vtkSmartPointer mapper = vtkSmartPointer< > vtkPolyDataMapper>::New(); > mapper->SetInputData(polydata); > > vtkSmartPointer actor = vtkSmartPointer::New(); > actor->SetMapper(mapper); > actor->GetProperty()->SetRepresentationToSurface(); > actor->GetProperty()->SetFrontfaceCulling(0); > actor->GetProperty()->SetBackfaceCulling(0); > > > renderer->AddActor(actor); > > renderer->ResetCamera(); > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > > -- Ken Martin PhD Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Wed Jan 31 08:45:11 2018 From: david.thompson at kitware.com (David Thompson) Date: Wed, 31 Jan 2018 08:45:11 -0500 Subject: [vtkusers] PCA statistics change Message-ID: Hi all, Recently, Ben switched VTK to use Eigen's singular value decomposition. It reports some eigenvectors flipped. Notably, it seems to prefer a right-handed coordinate system as its output basis in 3D. This is great! ... but note that image tests that plot assessed values (i.e., the inputs projected into the new basis) may now return different results with the y axis assessed-value flipped. Does anyone know if the VTKExamples repo does image-based tests? If so, I expect that may be causing a failure. However, it is unclear from the test output[1] whether an OpenGL/machine configuration error is masking an image test failure. Thanks, David [1]: https://open.cdash.org/testDetails.php?test=623072463&build=5241493 -------------- next part -------------- An HTML attachment was scrubbed... URL: From allison.vacanti at kitware.com Wed Jan 31 08:55:45 2018 From: allison.vacanti at kitware.com (Allie Vacanti) Date: Wed, 31 Jan 2018 08:55:45 -0500 Subject: [vtkusers] Where is the math behind world to display coordinates and vice versa, implemented in vtk? In-Reply-To: <1517382516204-0.post@n5.nabble.com> References: <1517382516204-0.post@n5.nabble.com> Message-ID: VTK uses the standard transformation process used in OpenGL. There are a few tutorials online that give an overview of this, one that I've found useful in the past is here: http://www.songho.ca/opengl/gl_transform.html As for the VTK-specific implementation, the code that implements this process is spread out across several locations in vtkOpenGLCamera, vtkRenderer, and vtkViewport. The class vtkCoordinate provides a convenient API to convert coordinates between display/world or to any intermediate coordinate system. If you're only concerned with world <-> display and are interested in seeing the math used, a more compact replication of this transformation logic can be found in the (internal) FastDepthAwareCoordinateConverter class here: https://github.com/Kitware/VTK/blob/master/Rendering/Core/vtkBillboardTextActor3D.cxx#L62-L193 HTH, Allie On Wed, Jan 31, 2018 at 2:08 AM, vinmean wrote: > I want to recreate the transformation from display to world and world to > display coordinate system. Where is the math behind coordinate conversion > implemented? I am unable to trace it from the viewport class that provides > the member function WorldToDisplay and DisplayToWorld. > > renderer->SetWorldPoint(wrld_cord); > renderer->WorldToDisplay(); > renderer->GetDisplayPoint(scr_cord); > > Please point me to the math either in the code or in some tutorials. > > > > -- > Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Wed Jan 31 10:03:34 2018 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Wed, 31 Jan 2018 07:03:34 -0800 Subject: [vtkusers] PCA statistics change In-Reply-To: References: Message-ID: Yes, VTKExamples does image based tests. They show up here: https://open.cdash.org/viewTest.php?onlypassed&buildid=5241214 System name is mun. I also submit a nightly under Remote Modules but I'm having some OSMesa issues right now,,, On Wed, Jan 31, 2018 at 5:45 AM, David Thompson wrote: > Hi all, > > Recently, Ben switched VTK to use Eigen's singular value decomposition. It > reports some eigenvectors flipped. Notably, it seems to prefer a > right-handed coordinate system as its output basis in 3D. This is great! ... > but note that image tests that plot assessed values (i.e., the inputs > projected into the new basis) may now return different results with the y > axis assessed-value flipped. > > Does anyone know if the VTKExamples repo does image-based tests? If so, I > expect that may be causing a failure. However, it is unclear from the test > output[1] whether an OpenGL/machine configuration error is masking an image > test failure. > > Thanks, > David > > [1]: https://open.cdash.org/testDetails.php?test=623072463&build=5241493 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -- Unpaid intern in BillsParadise at noware dot com From david.thompson at kitware.com Wed Jan 31 10:18:29 2018 From: david.thompson at kitware.com (David Thompson) Date: Wed, 31 Jan 2018 10:18:29 -0500 Subject: [vtkusers] PCA statistics change In-Reply-To: References: Message-ID: <747145D2-1340-4585-81BB-660A85231A18@kitware.com> Hi Bill, > Yes, VTKExamples does image based tests. They show up here: > https://open.cdash.org/viewTest.php?onlypassed&buildid=5241214 > System name is mun. > > I also submit a nightly under Remote Modules but I'm having some > OSMesa issues right now,,, Thanks! The fact that mun is passing means the image is still OK (I suppose because the view of the reprojected data is along the axis that's been flipped). David From simon.esneault at gmail.com Wed Jan 31 10:33:19 2018 From: simon.esneault at gmail.com (Simon Esneault) Date: Wed, 31 Jan 2018 16:33:19 +0100 Subject: [vtkusers] Blue artefact on complex scene with VTK 8.1 + QVTKWidget + OSX and Intel chipset In-Reply-To: References: Message-ID: After further investigation, it appears that the problem only occurs when SetUseDepthPeeling is enabled on the 3 vtkRenderer and does not occurs when we disable this option... It used to work fine with VTK 7.1, so this might be related to the new implementation of the depth peeling that was written for VTK 8, no? Shall I fill a bug for this ? Thanks 2018-01-30 23:48 GMT+01:00 Simon Esneault : > I forgot to say that the same code does not produce any blue artefact on > an Nvidia or ATI card, and we were not able to reproduce this visual glitch > on Windows either. > > If that can help ... > Thanks > > Simon > > Le 30 janv. 2018 10:17, "Simon Esneault" a > ?crit : > > Hello community > > After the migration to VTK 8.1 (from VTK 7.1), we are seing strange blue > artefact in one of our scene as it can be seen in the following snapshots. > And I'm having real hard time debugging that ... > > https://pasteboard.co/H5irkgl.png > https://pasteboard.co/H5irBQ4.png > > The context is as follow : > - Qt 5.3.2 on OSX and Intel chipset (Iris or HD > 4000) > - VTK 8.1 > - 3 layered vtkRenderer in one vtkRenderWindow in a QVTKWidget > - GPUVolumeRendering on the first layer, some vtkActor/Polydata on the > second layer, and some vtkActor2D/vtkTextActor on the third layer. > > This bug only appears after the view has been "reparented" (the user can > choose different "layout") and is triggered when we add a new vtkPolyData > to be rendered. If the user move the scene, all goes back to normal. It > look like we're seing some garbage blue buffer, but I have no clue where to > look at... > > Anyone have experienced something like this ? > > Thanks a lot > > PS: I know QVTKWidget is deprecated and we should move to > QVTKOpenGLWidget, but our app is quite big and moving to Qt >= Qt 5.4 has > some other implication so that is not solution for now ... > > -- > ------------------------------------------------------------------ > Simon Esneault > Rennes, France > ------------------------------------------------------------------ > > > -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From polly_sukting at hotmail.com Wed Jan 31 12:29:13 2018 From: polly_sukting at hotmail.com (Polly Lina) Date: Wed, 31 Jan 2018 10:29:13 -0700 (MST) Subject: [vtkusers] How to apply different colours to the extracted mean curvature in vtkcurvature Message-ID: <1517419753024-0.post@n5.nabble.com> I am applying vtkCurvature "SetCurvatureToMean" to extract the 3D face polydata. My question is: Can anyone please help me on how can I apply different colours to the extracted dataset by giving a mean curvature threshold. Eg: The values > 0.05 label the surface to black, the values <=0.05 label the surface to red..etc This is my code: vtkCurvatures> meanCurve = vtkCurvatures::New(); meanCurve->SetInputConnection(reader->GetOutputPort()); meanCurve->SetCurvatureTypeToMean(); meanCurve->Update(); vtkLookupTable* lut = vtkLookupTable::New(); lut->SetNumberOfColors(2); double H; for (int i = 0; i < nOfPnts; i++) { H = (double)meanCurve->GetOutput()->GetPointData()->GetScalars()->GetTuple1(i); if (H >= 0.05) { lut->SetTableValue(0.0, 0.0, 0.0, 1); } else { lut->SetTableValue(1.0, 1.0, 1.0, 1); } } lut->Build(); I could only get partially coloured and it is not what i expected. Thanks and helps are so much appreciated! -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From bakkari.abdelkhalek at hotmail.fr Wed Jan 31 13:43:42 2018 From: bakkari.abdelkhalek at hotmail.fr (Abdelkhalek Bakkari) Date: Wed, 31 Jan 2018 18:43:42 +0000 Subject: [vtkusers] 3D Splines slice by slice to 3D spline Message-ID: Dear All, I am trying to convert a 3D Splines slice by slices to one 3D spline and display it using vtk. Any advice and suggestions will be greatly appreciated. Best regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From prabhu at aero.iitb.ac.in Wed Jan 31 13:48:51 2018 From: prabhu at aero.iitb.ac.in (Prabhu Ramachandran) Date: Thu, 1 Feb 2018 00:18:51 +0530 Subject: [vtkusers] VTK 8.1.0 wheels on pypi Message-ID: <4b4635d8-b082-afed-0d31-68f05a551fbc@aero.iitb.ac.in> Hi all, Just a small announcement that we now have VTK-8.1.0 wheels available on pypi (for OSX, Linux, and Windows). Installing VTK (on a 64 bit OS), is now as simple as: ?$ pip install vtk More details are available here: http://prabhuramachandran.blogspot.in/2018/01/vtk-810-wheels-for-all-platforms-on-pypi.html Many thanks to all the folks who made this happen! cheers, Prabhu -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Jan 31 14:15:12 2018 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 31 Jan 2018 19:15:12 +0000 Subject: [vtkusers] VTK 8.1.0 wheels on pypi In-Reply-To: <4b4635d8-b082-afed-0d31-68f05a551fbc@aero.iitb.ac.in> References: <4b4635d8-b082-afed-0d31-68f05a551fbc@aero.iitb.ac.in> Message-ID: this is great news Prabhu. Thank you for the hard-work. On Wed, Jan 31, 2018 at 1:56 PM Prabhu Ramachandran wrote: > Hi all, > > Just a small announcement that we now have VTK-8.1.0 wheels available on > pypi (for OSX, Linux, and Windows). Installing VTK (on a 64 bit OS), is now > as simple as: > > $ pip install vtk > > More details are available here: > > > http://prabhuramachandran.blogspot.in/2018/01/vtk-810-wheels-for-all-platforms-on-pypi.html > > Many thanks to all the folks who made this happen! > > cheers, > > Prabhu > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > https://vtk.org/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From piccolagiorgi06 at gmail.com Wed Jan 31 14:32:53 2018 From: piccolagiorgi06 at gmail.com (Georgia) Date: Wed, 31 Jan 2018 12:32:53 -0700 (MST) Subject: [vtkusers] How can I set the (0, 0, 0) position in the middle of my object using vtk.js? Message-ID: <1517427173888-0.post@n5.nabble.com> How can I set the (0,0,0) position in the middle of my object? I have a STL file: reader.setUrl(`./data/object.stl`, { binary: true }).then(() => { mapper.setInputConnection(reader.getOutputPort()); renderer.resetCamera(); }); But in the (0,0,0) there's NOT the center of my object, but the vertex of the bounding box of it. How can I change it? -- Sent from: http://vtk.1045678.n5.nabble.com/VTK-Users-f1224199.html From piccolagiorgi06 at gmail.com Wed Jan 31 14:35:18 2018 From: piccolagiorgi06 at gmail.com (=?UTF-8?Q?Georgi=C3=A4_NeverMind?=) Date: Wed, 31 Jan 2018 20:35:18 +0100 Subject: [vtkusers] How can I set the (0, 0, 0) position in the middle of my object using vtk.js? Message-ID: How can I set the (0,0,0) position in the middle of my object? I have a STL file: reader.setUrl(`./data/object.stl`, { binary: true }).then(() => { mapper.setInputConnection(reader.getOutputPort()); renderer.resetCamera(); }); But in the (0,0,0) there's NOT the center of my object, but the vertex of the bounding box of it. How can I change it? -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.chen at gmail.com Wed Jan 31 18:45:30 2018 From: elvis.chen at gmail.com (Elvis Chen) Date: Wed, 31 Jan 2018 18:45:30 -0500 Subject: [vtkusers] transfer function for DRR Message-ID: hi, I have a CT volume and I like to generate a Digitally Reconstructed Radiograph using volume rendering. I understand that itkRayCastInterpolateImageFunction probably do the job, but I am wondering if anyone has designed an appropriate transfer function and generated a DRR using volume rendering instead? if so, do you mind sharing the transfer function? regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: