From jfavre at cscs.ch Tue Dec 1 02:50:45 2015 From: jfavre at cscs.ch (Favre Jean) Date: Tue, 1 Dec 2015 07:50:45 +0000 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: References: Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F684352956E@MBX111.d.ethz.ch> There are a couple of issues with your example. The Exodus reader creates a multi-block dataset, whose first block is itself a multi-block dataset (You can see that in ParaView's Information tab). thus, your input should be: contours.SetInputData(reader.GetOutput().GetBlock(0).GetBlock(0)) second, you need to tell contours which variable to use: contours.SetInputArrayToProcess(0, 0, 0, 0, "u") ----------------- Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Tue Dec 1 12:52:03 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Tue, 1 Dec 2015 10:52:03 -0700 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F684352956E@MBX111.d.ethz.ch> References: <0EB9B6375711A04B820E6B6F5CCA9F684352956E@MBX111.d.ethz.ch> Message-ID: Thank you, this fixed by problem. I have another related question. I am working on a data set that has multiple subdomains, so "reader.GetOutput().GetBlock(0).GetBlock(1)" also exists. Do I need to create two vtkContourFilters to show both subdomains, or is it possible to setup two input ports on the vtkContourFilter. The latter doesn't seem to work (I can send a script if this should work). Thanks again, Andrew On Tue, Dec 1, 2015 at 12:50 AM, Favre Jean wrote: > > There are a couple of issues with your example. > > The Exodus reader creates a multi-block dataset, whose first block is > itself a multi-block dataset (You can see that in ParaView's Information > tab). > > thus, your input should be: > > contours.SetInputData(reader.GetOutput().GetBlock(0).GetBlock(0)) > > second, you need to tell contours which variable to use: > > contours.SetInputArrayToProcess(0, 0, 0, 0, "u") > > ----------------- > Jean/CSCS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbigaouette at gmail.com Tue Dec 1 13:29:44 2015 From: nbigaouette at gmail.com (Nicolas Bigaouette) Date: Tue, 1 Dec 2015 13:29:44 -0500 Subject: [vtkusers] Updating data in a vtkChartXY Message-ID: Hi all, I'm using vtkChartXY to plot some data. I now need to update the data that is displayed but I'm having trouble doing so. Some people were able to call ClearPlots() to recreate the plot. This is a bit problematic since I have multiple lines on my figure. I was able to refactor my code to store the line properties (color, width, etc.) and re-apply them after they are added back to the figure. See for example those: http://public.kitware.com/pipermail/vtkusers/2012-March/073136.html http://vtk.1045678.n5.nabble.com/Cannot-update-vtkChartXY-td5734681.html http://vtk.1045678.n5.nabble.com/How-to-update-a-2d-plot-vtkChartXY-with-new-data-online-using-C-td5725677.html Since I have multiple lines, I found it easier for now to store a std::vector > and a vector of my line class. So to update line index "tableToUpdate", I do something like: const int prevNbRows = table[tableToUpdate]->GetNumberOfRows(); // FIXME: Don't insert one row at the time! size_t j = prevNbRows; for (int i = 0 ; i < x.size() ; i++) { table[tableToUpdate]->InsertNextBlankRow(); table[tableToUpdate]->SetValue(j, 0, x[i]); table[tableToUpdate]->SetValue(j, 1, y[i]); j++; } chart->ClearPlots(); for (int k = 0 ; k < lines.size() ; k++) { lines[k].linePtr = chart->AddPlot(vtkChart::LINE); lines[k].RestoreLineProperties(); lines[k].linePtr->SetInputData(table[k], 0, 1); } I have three questions. 1) Does the ClearPlots() frees all memory used? What happens to the previous linePtr? Are they free? If I update the figure thousands of time for a "large" number of lines, is there a risk of a memory leak somewhere? How to properly free the resources? 2) Is there a better way to update a single line out of many? Without memory leaks? 3) Most importantly, this breaks setting the axis range. For example, doing this after a line update: chart->GetAxis(vtkAxis::BOTTOM)->SetRange(minval, maxval); will change the axis values, but the lines look exactly the same as before this "zooming". Maybe it has something to do with how I put everything together: vtkSmartPointer vRenderer = > vtkSmartPointer::New(); > vtkGenericOpenGLRenderWindow *renderWindow = GetRenderWindow(); > renderWindow->AddRenderer(renderer); > vtkSmartPointer chartScene = > vtkSmartPointer::New(); > vtkSmartPointer chartActor = > vtkSmartPointer::New(); > vtkSmartPointer chart = vtkSmartPointer::New(); > chartScene->AddItem(chart); > chartActor->SetScene(chartScene); > renderer->AddActor(chartActor); Any ideas or suggestions? Thanks! Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Dec 1 13:29:49 2015 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 1 Dec 2015 13:29:49 -0500 Subject: [vtkusers] Recent Change to Handling Coincident Geometry Message-ID: 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 -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 aashish.chaudhary at kitware.com Tue Dec 1 14:18:03 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 1 Dec 2015 14:18:03 -0500 Subject: [vtkusers] Recent Change to Handling Coincident Geometry In-Reply-To: References: Message-ID: +1 Ken. The global has caused some surprises in the past. I guess if we have the global and instance specific setting, then the instance setting overrides the global setting is what I am assuming you have. Does it reset to global for the next mapper? 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 > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Dec 1 14:22:51 2015 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 1 Dec 2015 14:22:51 -0500 Subject: [vtkusers] Recent Change to Handling Coincident Geometry In-Reply-To: References: Message-ID: Yes, there were a few examples that set different values on different mappers not realizing they were both setting the same global and so the first call was having no effect. The instance value gets added to the global value. The idea is that there are some 3D widgets etc that want to float on top of whatever they are tied to. If the program has set a global offset then those widgets want to be offset relative to that global offset (and potentially the instance offset of what they are tied to). On Tue, Dec 1, 2015 at 2:18 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > +1 Ken. The global has caused some surprises in the past. I guess if we > have the global and instance specific setting, then the instance setting > overrides the global setting is what I am assuming you have. Does it reset > to global for the next mapper? > > 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 >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 pedropaulobmjr at hotmail.com Tue Dec 1 21:32:03 2015 From: pedropaulobmjr at hotmail.com (Pedro Paulo) Date: Wed, 2 Dec 2015 02:32:03 +0000 Subject: [vtkusers] Accessing and Changing Pixel Value of DICOM Image Message-ID: Hello, I read a DICOM image using vtkDICOMImageReader () and I can visualize it, but I was wondering how do I be able to read each pixel of the image and change its value?Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Wed Dec 2 02:10:22 2015 From: jfavre at cscs.ch (Favre Jean) Date: Wed, 2 Dec 2015 07:10:22 +0000 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F684352956E@MBX111.d.ethz.ch>, Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F68435299B0@MBX111.d.ethz.ch> >> I am working on a data set that has multiple subdomains, ... this is a classic textbook problem. I would use a vtkExtractBlock(), and a vtkCompositeDataGeometryFilter() to pull all the pieces together. blocks = vtk.vtkExtractBlock() blocks.SetInputConnection(reader.GetOutputPort()) blocks.AddIndex(2) # first block is index 2 (starting at 0 for the multiblock dataset container) blocks.AddIndex(3) # second block contours.SetInputConnection(blocks.GetOutputPort()) compGF = vtk.vtkCompositeDataGeometryFilter() compGF.SetInputConnection(contours.GetOutputPort()) contMapper.SetInputConnection(compGF.GetOutputPort()) Jean/CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From xabivtk at gmail.com Wed Dec 2 04:31:44 2015 From: xabivtk at gmail.com (Xabi Riobe) Date: Wed, 2 Dec 2015 10:31:44 +0100 Subject: [vtkusers] Volume + surface transparency with OpenGL2 In-Reply-To: References: Message-ID: Hi Aashish, Do you have any rough estimation on when this could be adressed or not? For example is it excluded for VTK 8 ? Thanks, Xabi. 2015-11-26 0:30 GMT+01:00 Aashish Chaudhary : > Thanks all for the feedback and use-cases. I have added this to the list > of features and will discuss this with the team members on possible > solutions. > > Thanks, > Aashish > > On Wed, Nov 25, 2015 at 5:21 AM, Simon ESNEAULT > wrote: > >> Hello, >> >> We also have a need for such a feature, in order to display a virtual >> prosthesis within the patient anatomy. >> We ended up proposing two solutions for our customers : >> - Render a full opaque surface within the volume rendering ( >> http://picpaste.com/pics/solution1.1448446727.png) >> - Render a translucent surface on top of the volume rendering using a >> layer system with 2 renderers on the same viewport ( >> http://picpaste.com/pics/solution2.1448446818.png) >> >> But neither of the solution are completely satisfying as we would also >> like to blend a translucent mesh in the middle of the volume. >> >> I can provide some data if it can help to develop this feature. >> >> Have a good day, >> Simon >> >> 2015-11-24 2:52 GMT+01:00 Marcus D. Hanwell : >> >>> We have also had a number of tomviz users ask if this is possible, and >>> they have similar requirements to those stated above. We often have >>> the overall structure rendered as a volume, and are looking at >>> distinct isosurfaces, or in future segmented features, where the ideal >>> would be to offer a translucent surface within the volume. >>> >>> On Mon, Nov 23, 2015 at 7:05 PM, David Cole via vtkusers >>> wrote: >>> > Me too. >>> > >>> > We want to visualize structures (natural and artificial) inside of >>> volume >>> > renderings of CT scans, mostly of people. >>> > >>> > Works great without using translucent polydata. As soon as you make >>> any of >>> > it translucent, it just sort of disappears all the way... Very >>> confusing >>> > when you first encounter it. >>> > >>> > So... +1. And let me know what I can do to test/help out... >>> > >>> > >>> > David C. >>> > >>> > >>> > >>> > On Monday, November 23, 2015, Xabi Riobe wrote: >>> >> >>> >> Here are at least 2 examples: >>> >> >>> >> - medical data : the body is voxelized and you have the segmentation >>> of >>> >> organs/bones/vessels >>> >> - material : cement, rock structure voxelized, with segmentation of >>> the >>> >> different layers, components >>> >> >>> >> in both cases you may want to superimpose the surfaces and play with >>> >> transparency to highlight an entity but still seeing the inside of it, >>> >> or you can have tools with polygonal surface that you will insert in >>> an >>> >> easier way into the volume if they are transparent, or just a >>> clipping plane >>> >> that you want to be transparent to place it with precision inside the >>> volume >>> >> before doing the clip... >>> >> >>> >> I'm glad to hear it may fit in a todo list :) >>> >> Let me know if someone starts working on this, i may give any kind of >>> help >>> >> ! >>> >> >>> >> Thanks >>> >> >>> >> >>> >> 2015-11-23 21:40 GMT+01:00 Aashish Chaudhary >>> >> : >>> >>> >>> >>> On Mon, Nov 23, 2015 at 3:14 PM, Xabi Riobe >>> wrote: >>> >>>> >>> >>>> Hi Aashish, >>> >>>> >>> >>>> For example, if you render a volume with vtkGPUVolumeRayCastMapper, >>> or >>> >>>> vtkFixedPointVolumeRayCastMapper, and you put inside a sphere >>> rendered with >>> >>>> vtkPolyDataMapper, as soon as you change the sphere actor opacity >>> the depth >>> >>>> notion is lost, with the sphere appearing behind the volume. >>> >>> >>> >>> >>> >>> Thanks for clarification. Yes, this is not currently supported (I am >>> not >>> >>> aware and we don't handle this in the mapper). This is a interesting >>> use >>> >>> case. I will add it to the feature request and will get back to you. >>> Just >>> >>> curious, what would be a real world example use-case you have for >>> this >>> >>> feature? Can you share bit more domain information (medical / >>> scientific >>> >>> etc.). >>> >>> >>> >>> - Aashish >>> >>> >>> >>> >>> >>> >>> >>> -- >>> >>> | Aashish Chaudhary >>> >>> | Technical Leader >>> >>> | Kitware Inc. >>> >>> | http://www.kitware.com/company/team/chaudhary.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: >>> > http://public.kitware.com/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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> ------------------------------------------------------------------ >> Simon Esneault >> Rennes, France >> ------------------------------------------------------------------ >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From billyaraujo at gmail.com Wed Dec 2 05:39:44 2015 From: billyaraujo at gmail.com (Billy Araujo) Date: Wed, 2 Dec 2015 10:39:44 +0000 Subject: [vtkusers] VTK 6.3 and cmake Message-ID: Hi VTK users, VTK6.3 seems to build fine using CMake 3.0.2 while using latest CMake version (3.4.0), cmake gives some errors and won't build using same setup. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakesh.p at tataelxsi.co.in Wed Dec 2 06:05:03 2015 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Wed, 2 Dec 2015 11:05:03 +0000 Subject: [vtkusers] VTK 6.3 and cmake In-Reply-To: References: Message-ID: Hi, I am using VTK 6.3 with CMake 3.4-rc3 version, and I have no issues with the compilation. Can you share the error messages you get? Which operating system you are working ? Best Regard ________________________________ From: vtkusers on behalf of Billy Araujo Sent: Wednesday, December 2, 2015 4:09 PM To: vtkusers at vtk.org Subject: [vtkusers] VTK 6.3 and cmake Hi VTK users, VTK6.3 seems to build fine using CMake 3.0.2 while using latest CMake version (3.4.0), cmake gives some errors and won't build using same setup. -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Wed Dec 2 08:56:35 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Wed, 2 Dec 2015 08:56:35 -0500 Subject: [vtkusers] Naming of different pieces in VTU format In-Reply-To: <4d204c9d.000013c4.00000019@RABACK-X230.windows.csc.fi> References: <443ad840.000013c4.0000000f@RABACK-X230.windows.csc.fi> <4d204c9d.000013c4.00000019@RABACK-X230.windows.csc.fi> Message-ID: Hmmm. This is not supported by the piece support in the vtu format. That is designed so that multiple partitions can be written to the same file. At read time, the reader actually appends them to a single unstructured grid. There are three ways of achieving what you'd like: * Use the vtm format * Use the Exodus format * Use Xdmf format The vtm format is the simplest. A simple XML format that points to a vtu file per block. It has the disadvantage that these blocks cannot share point coordinates - each file is stand-alone. If you need that, I highly recommend using the Exodus II format. It is well documented and has a nice API. As long as it supports all the cell types that you need of course. The documentation is here: http://sourceforge.net/projects/exodusii/files/Documentation/Documentation/ Best, -berk On Mon, Nov 30, 2015 at 5:07 PM, Peter R?back wrote: > Hi, > > I'm writing a VTU (unstructured XML format) writer for a finite element > software (Elmer) in Fortran. This works otherwise great but I would like > to write different parts of the mesh as different pieces, and hopefully > also name the pieces. The idea is that the piece could be selected in > visualization (with Paraview, ViSit etc.). > > I attach at the end a working example of the current output. The data is > appended in binary format (if not saved in ascii). > > Now ideally the Piece field could take a name, e.g. > > > > > > ... > > > ... > > > > > Am I hoping too much? The documentation didn't mention the Piece having > the possibility to name it. > > Our current approach is to use CellData "GeometryIds" which gives a number > for each different body and boundary condition. Then one can use the > "Threshhold" filter in Paraview to pick data just related to certain > entity. However, this is rather cumbersome particularly if the interesting > entities do not have indexes following each other. > > Another motivation for saving data piece by piece is that it will be > easier to introduce discontinuities in the mesh. Then within each piece > the data can be saved as continuous while jumps only appear where the > material changes. If one assumes discontinuity over all elements the > amount of data quickly explodes as the nodes can be shared by tens of > elements. > > Could the pieces strategy work, or is there a better way? Any suggestions > are welcome! > > -Peter > > > > > > > > > format="appended" offset="0"/> > NumberOfComponents="3" format="appended" offset="5796"/> > > > offset="23176"/> > > > offset="24248"/> > > > offset="41628"/> > offset="55792"/> > offset="56864"/> > > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 2 09:25:06 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 2 Dec 2015 09:25:06 -0500 Subject: [vtkusers] Volume + surface transparency with OpenGL2 In-Reply-To: References: Message-ID: Xabi, Yes, we will plan to address it in VTK 8. Thanks, Aashish On Wed, Dec 2, 2015 at 4:31 AM, Xabi Riobe wrote: > Hi Aashish, > > Do you have any rough estimation on when this could be adressed or not? > For example is it excluded for VTK 8 ? > > Thanks, > Xabi. > > 2015-11-26 0:30 GMT+01:00 Aashish Chaudhary >: > >> Thanks all for the feedback and use-cases. I have added this to the list >> of features and will discuss this with the team members on possible >> solutions. >> >> Thanks, >> Aashish >> >> On Wed, Nov 25, 2015 at 5:21 AM, Simon ESNEAULT > > wrote: >> >>> Hello, >>> >>> We also have a need for such a feature, in order to display a virtual >>> prosthesis within the patient anatomy. >>> We ended up proposing two solutions for our customers : >>> - Render a full opaque surface within the volume rendering ( >>> http://picpaste.com/pics/solution1.1448446727.png) >>> - Render a translucent surface on top of the volume rendering using a >>> layer system with 2 renderers on the same viewport ( >>> http://picpaste.com/pics/solution2.1448446818.png) >>> >>> But neither of the solution are completely satisfying as we would also >>> like to blend a translucent mesh in the middle of the volume. >>> >>> I can provide some data if it can help to develop this feature. >>> >>> Have a good day, >>> Simon >>> >>> 2015-11-24 2:52 GMT+01:00 Marcus D. Hanwell >>> : >>> >>>> We have also had a number of tomviz users ask if this is possible, and >>>> they have similar requirements to those stated above. We often have >>>> the overall structure rendered as a volume, and are looking at >>>> distinct isosurfaces, or in future segmented features, where the ideal >>>> would be to offer a translucent surface within the volume. >>>> >>>> On Mon, Nov 23, 2015 at 7:05 PM, David Cole via vtkusers >>>> wrote: >>>> > Me too. >>>> > >>>> > We want to visualize structures (natural and artificial) inside of >>>> volume >>>> > renderings of CT scans, mostly of people. >>>> > >>>> > Works great without using translucent polydata. As soon as you make >>>> any of >>>> > it translucent, it just sort of disappears all the way... Very >>>> confusing >>>> > when you first encounter it. >>>> > >>>> > So... +1. And let me know what I can do to test/help out... >>>> > >>>> > >>>> > David C. >>>> > >>>> > >>>> > >>>> > On Monday, November 23, 2015, Xabi Riobe wrote: >>>> >> >>>> >> Here are at least 2 examples: >>>> >> >>>> >> - medical data : the body is voxelized and you have the segmentation >>>> of >>>> >> organs/bones/vessels >>>> >> - material : cement, rock structure voxelized, with segmentation of >>>> the >>>> >> different layers, components >>>> >> >>>> >> in both cases you may want to superimpose the surfaces and play with >>>> >> transparency to highlight an entity but still seeing the inside of >>>> it, >>>> >> or you can have tools with polygonal surface that you will insert in >>>> an >>>> >> easier way into the volume if they are transparent, or just a >>>> clipping plane >>>> >> that you want to be transparent to place it with precision inside >>>> the volume >>>> >> before doing the clip... >>>> >> >>>> >> I'm glad to hear it may fit in a todo list :) >>>> >> Let me know if someone starts working on this, i may give any kind >>>> of help >>>> >> ! >>>> >> >>>> >> Thanks >>>> >> >>>> >> >>>> >> 2015-11-23 21:40 GMT+01:00 Aashish Chaudhary >>>> >> : >>>> >>> >>>> >>> On Mon, Nov 23, 2015 at 3:14 PM, Xabi Riobe >>>> wrote: >>>> >>>> >>>> >>>> Hi Aashish, >>>> >>>> >>>> >>>> For example, if you render a volume with >>>> vtkGPUVolumeRayCastMapper, or >>>> >>>> vtkFixedPointVolumeRayCastMapper, and you put inside a sphere >>>> rendered with >>>> >>>> vtkPolyDataMapper, as soon as you change the sphere actor opacity >>>> the depth >>>> >>>> notion is lost, with the sphere appearing behind the volume. >>>> >>> >>>> >>> >>>> >>> Thanks for clarification. Yes, this is not currently supported (I >>>> am not >>>> >>> aware and we don't handle this in the mapper). This is a >>>> interesting use >>>> >>> case. I will add it to the feature request and will get back to >>>> you. Just >>>> >>> curious, what would be a real world example use-case you have for >>>> this >>>> >>> feature? Can you share bit more domain information (medical / >>>> scientific >>>> >>> etc.). >>>> >>> >>>> >>> - Aashish >>>> >>> >>>> >>> >>>> >>> >>>> >>> -- >>>> >>> | Aashish Chaudhary >>>> >>> | Technical Leader >>>> >>> | Kitware Inc. >>>> >>> | http://www.kitware.com/company/team/chaudhary.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: >>>> > http://public.kitware.com/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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> >>> >>> -- >>> ------------------------------------------------------------------ >>> Simon Esneault >>> Rennes, France >>> ------------------------------------------------------------------ >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Wed Dec 2 17:56:12 2015 From: binarybottle at gmail.com (Arno Klein) Date: Wed, 2 Dec 2015 17:56:12 -0500 Subject: [vtkusers] Migration to VTK6 Message-ID: I am trying to update my code to migrate to VTK6 according to: http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update According to the examples on that site, I understand that: vtkDataObject* dobj = someAlgorithm->GetOutput(1); dobj->Update(); should become: someAlgorithm->Update(1); However, I don?t know how to deal with the following pattern: void PointAreaComputer::WriteIntoFile(char *fileName) { vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); writer->SetFileName(fileName); m_mesh->GetPointData()->SetScalars(m_pointsArea); writer->SetInputData(m_mesh); writer->Update(); writer->Write(); writer->Delete(); } What should I do to make this compatible with VTK6? Cheers, @rno -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Wed Dec 2 23:41:14 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Wed, 2 Dec 2015 21:41:14 -0700 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68435299B0@MBX111.d.ethz.ch> References: <0EB9B6375711A04B820E6B6F5CCA9F684352956E@MBX111.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F68435299B0@MBX111.d.ethz.ch> Message-ID: Jean, Thank you so much for this information, I hadn't run across vtkExtractBlock until now; it opens up so many possibilities for the work I am doing. I was able to do want I needed with contours and much more! Peace, Andrew On Wed, Dec 2, 2015 at 12:10 AM, Favre Jean wrote: > > >> I am working on a data set that has multiple subdomains, ... > > this is a classic textbook problem. > > I would use a vtkExtractBlock(), and a vtkCompositeDataGeometryFilter() to > pull all the pieces together. > > blocks = vtk.vtkExtractBlock() > blocks.SetInputConnection(reader.GetOutputPort()) > blocks.AddIndex(2) # first block is index 2 (starting at 0 for the > multiblock dataset container) > blocks.AddIndex(3) # second block > > contours.SetInputConnection(blocks.GetOutputPort()) > > compGF = vtk.vtkCompositeDataGeometryFilter() > compGF.SetInputConnection(contours.GetOutputPort()) > > contMapper.SetInputConnection(compGF.GetOutputPort()) > > Jean/CSCS > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Wed Dec 2 23:43:00 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Wed, 2 Dec 2015 21:43:00 -0700 Subject: [vtkusers] Submitting new examples Message-ID: I have several Python VTK scripts for working with Exodus files and volume rendering, is there some documentation somewhere explaining how to submit new examples? I would like to contribute back to the community. Peace, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: From biddisco at cscs.ch Thu Dec 3 02:54:55 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Thu, 3 Dec 2015 07:54:55 +0000 Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree In-Reply-To: <565D0ED4.4090902@sri.utoronto.ca> References: <565D0ED4.4090902@sri.utoronto.ca> Message-ID: <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> Making copies of the tree is a very bad idea as the locator stores a lot of extra info for accelerating ray-traces. If you could send a stack trace of where you are getting errors I might be able to suggest something. I had a quick look over the intersection code (which I wrote originally back in 1997 or thereabouts - so I'm a bit rusty with it) but I do not see any obvious misuses of vars. The initial build tree is not thread safe, so you should ensure that two threads are not calling the first ray intersection simultaneously if buildtree has not already been called. JB -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Normand Robert Sent: 01 December 2015 04:07 To: vtkusers at vtk.org Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree Hi I wish to use vtkModifiedBSPTree with OpenMP by making copies of vtkModifiedBSPTree instances local to each thread but there does not seem to be any methods to copy this object. I naively thought that all vtk objects would have ShallowCopy() or DeepCopy(). I have to do this because using IntersectWithLine() in different threads for the same object instance causes crashes. Is there a solution to this? Regards Normand Robert PhD Sunnybrook Research Institute University of Toronto _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers From peter.raback at csc.fi Thu Dec 3 03:09:29 2015 From: peter.raback at csc.fi (=?UTF-8?Q?Peter_R=C3=A5back?=) Date: Thu, 3 Dec 2015 10:09:29 +0200 (EET) Subject: [vtkusers] Naming of different pieces in VTU format In-Reply-To: References: <443ad840.000013c4.0000000f@RABACK-X230.windows.csc.fi> <4d204c9d.000013c4.00000019@RABACK-X230.windows.csc.fi> Message-ID: Hi Berk Thank you for your very helpful answer. Of the little I can find on the vtm file it would seem to be indeed the natural solution. Would there happen to be some documentation of the vtm format? In parallel computation we are using the .pvtu format which wraps the individual .vtu files to a single entity. Would this .pvtu file be in some way compatible with the .vtm file? Or should we make the vtm format also include the parallel pieces? BR, Peter From: Berk Geveci [mailto:berk.geveci at kitware.com] Sent: 2. joulukuuta 2015 15:57 To: Peter R?back Cc: VTK Users Subject: Re: [vtkusers] Naming of different pieces in VTU format Hmmm. This is not supported by the piece support in the vtu format. That is designed so that multiple partitions can be written to the same file. At read time, the reader actually appends them to a single unstructured grid. There are three ways of achieving what you'd like: * Use the vtm format * Use the Exodus format * Use Xdmf format The vtm format is the simplest. A simple XML format that points to a vtu file per block. It has the disadvantage that these blocks cannot share point coordinates - each file is stand-alone. If you need that, I highly recommend using the Exodus II format. It is well documented and has a nice API. As long as it supports all the cell types that you need of course. The documentation is here: http://sourceforge.net/projects/exodusii/files/Documentation/Documentation/ Best, -berk On Mon, Nov 30, 2015 at 5:07 PM, Peter R?back > wrote: Hi, I'm writing a VTU (unstructured XML format) writer for a finite element software (Elmer) in Fortran. This works otherwise great but I would like to write different parts of the mesh as different pieces, and hopefully also name the pieces. The idea is that the piece could be selected in visualization (with Paraview, ViSit etc.). I attach at the end a working example of the current output. The data is appended in binary format (if not saved in ascii). Now ideally the Piece field could take a name, e.g. ... ... Am I hoping too much? The documentation didn't mention the Piece having the possibility to name it. Our current approach is to use CellData "GeometryIds" which gives a number for each different body and boundary condition. Then one can use the "Threshhold" filter in Paraview to pick data just related to certain entity. However, this is rather cumbersome particularly if the interesting entities do not have indexes following each other. Another motivation for saving data piece by piece is that it will be easier to introduce discontinuities in the mesh. Then within each piece the data can be saved as continuous while jumps only appear where the material changes. If one assumes discontinuity over all elements the amount of data quickly explodes as the nodes can be shared by tens of elements. Could the pieces strategy work, or is there a better way? Any suggestions are welcome! -Peter _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Dec 3 07:35:00 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 3 Dec 2015 07:35:00 -0500 Subject: [vtkusers] Submitting new examples In-Reply-To: References: Message-ID: Thanks! The best place to post them is on the wiki example project. http://www.vtk.org/Wiki/VTK/Examples You will find instructions there. If you have any questions about them, feel free to ask the list. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Dec 2, 2015 at 11:43 PM, Slaughter, Andrew E < andrew.slaughter at inl.gov> wrote: > I have several Python VTK scripts for working with Exodus files and volume > rendering, is there some documentation somewhere explaining how to submit > new examples? I would like to contribute back to the community. > > Peace, > Andrew > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Thu Dec 3 08:17:13 2015 From: juch at zhaw.ch (normanius) Date: Thu, 3 Dec 2015 06:17:13 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1442989690263-5734067.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> Message-ID: <1449148633870-5735281.post@n5.nabble.com> Hi Cory Hi Johannes Is there anything new regarding the crash? I can reproduce the problem with Jo's sample program for vtk-6.2.0 and vtk-6.3.0. However, the problem does not occur in 5.10.1. (Tested on Mac OS 10.7, everything compiled with clang 6.0, I've built vtk from source.) Switching back to vtk-5 is connected to quite some effort on my side, so I was wondering how to fix or work around the problem with vtk-6. Let me know if I can support you in a way. Thanks, Norman -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735281.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Thu Dec 3 08:48:06 2015 From: juch at zhaw.ch (normanius) Date: Thu, 3 Dec 2015 06:48:06 -0700 (MST) Subject: [vtkusers] How to filter poly data while preserving point data arrays? In-Reply-To: References: <1440066528287-5733572.post@n5.nabble.com> Message-ID: <1449150486487-5735282.post@n5.nabble.com> Okay, I get the clue. I quickly checked it out on my code and it seems to work. The array data is preserved if both inputs are sharing it. Thanks a lot! -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-filter-poly-data-while-preserving-point-data-arrays-tp5733572p5735282.html Sent from the VTK - Users mailing list archive at Nabble.com. From davideugenewarren+vtk at gmail.com Thu Dec 3 09:00:49 2015 From: davideugenewarren+vtk at gmail.com (dewarren) Date: Thu, 3 Dec 2015 07:00:49 -0700 (MST) Subject: [vtkusers] Rendering multiple volumes In-Reply-To: References: <1447432321076-5734971.post@n5.nabble.com> <56461618.5090102@rhpcs.mcmaster.ca> <1447628907554-5734986.post@n5.nabble.com> <1447959010029-5735115.post@n5.nabble.com> <1447959190783-5735117.post@n5.nabble.com> Message-ID: <1449151249187-5735283.post@n5.nabble.com> Hi all, Following up on my preliminary efforts, I'm pleased to offer a repository that provides a simple demonstration of the two approaches that I used to render brain volumes with overlays in VTK. It's hosted at BitBucket: https://bitbucket.org/dewarrn1/vtk_render_demo Any comments or questions would be very welcome. Many thanks for all the help! Best, Dave -- View this message in context: http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-tp5734685p5735283.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Thu Dec 3 09:09:59 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 3 Dec 2015 09:09:59 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Arno, That pattern should be valid in VTK6. Are you getting compile errors? I believe the Update() and Write() calls to the writer are redundant - you should need only one. Thanks, Cory On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein wrote: > I am trying to update my code to migrate to VTK6 according to: > > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update > > According to the examples on that site, I understand that: > > vtkDataObject* dobj = someAlgorithm->GetOutput(1); > dobj->Update(); > > should become: > > someAlgorithm->Update(1); > > > However, I don?t know how to deal with the following pattern: > > void PointAreaComputer::WriteIntoFile(char *fileName) > { > vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); > writer->SetFileName(fileName); > m_mesh->GetPointData()->SetScalars(m_pointsArea); > writer->SetInputData(m_mesh); > writer->Update(); > writer->Write(); > writer->Delete(); > } > > What should I do to make this compatible with VTK6? > > Cheers, > @rno > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Dec 3 09:17:22 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 3 Dec 2015 09:17:22 -0500 Subject: [vtkusers] Rendering multiple volumes In-Reply-To: <1449151249187-5735283.post@n5.nabble.com> References: <1447432321076-5734971.post@n5.nabble.com> <56461618.5090102@rhpcs.mcmaster.ca> <1447628907554-5734986.post@n5.nabble.com> <1447959010029-5735115.post@n5.nabble.com> <1447959190783-5735117.post@n5.nabble.com> <1449151249187-5735283.post@n5.nabble.com> Message-ID: Its looking awesome Dave! I will check it out soon. Thanks for the update. - Aashish On Thu, Dec 3, 2015 at 9:00 AM, dewarren wrote: > Hi all, > > Following up on my preliminary efforts, I'm pleased to offer a > repository that provides a simple demonstration of the two approaches that > I > used to render brain volumes with overlays in VTK. It's hosted at > BitBucket: > > https://bitbucket.org/dewarrn1/vtk_render_demo > > Any comments or questions would be very welcome. Many thanks for all > the help! Best, > > Dave > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Rendering-multiple-volumes-tp5734685p5735283.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Dec 3 09:25:53 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 3 Dec 2015 09:25:53 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: I agree with Cory on Update() being redundant before the Write(). > vtkDataObject* dobj = someAlgorithm->GetOutput(1); > dobj->Update(); should become: someAlgorithm->Update(1); //to make sure there is something valid vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output for later use Because since vtk6, dobj no longer has any connection to the algorithm, so updating it (which used to update the algorithm for you) no longer has any meaning. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen wrote: > Arno, > > That pattern should be valid in VTK6. Are you getting compile errors? > > I believe the Update() and Write() calls to the writer are redundant - you > should need only one. > > Thanks, > Cory > > On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein wrote: > >> I am trying to update my code to migrate to VTK6 according to: >> >> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >> >> According to the examples on that site, I understand that: >> >> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >> dobj->Update(); >> >> should become: >> >> someAlgorithm->Update(1); >> >> >> However, I don?t know how to deal with the following pattern: >> >> void PointAreaComputer::WriteIntoFile(char *fileName) >> { >> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >> writer->SetFileName(fileName); >> m_mesh->GetPointData()->SetScalars(m_pointsArea); >> writer->SetInputData(m_mesh); >> writer->Update(); >> writer->Write(); >> writer->Delete(); >> } >> >> What should I do to make this compatible with VTK6? >> >> Cheers, >> @rno >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Cory Quammen > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From prashanth.dumpuri at gmail.com Thu Dec 3 12:33:55 2015 From: prashanth.dumpuri at gmail.com (Prashanth) Date: Thu, 3 Dec 2015 09:33:55 -0800 Subject: [vtkusers] IGES/STEP writer in vtk Message-ID: All, Has anyone written (and shared a step/iges) writer for VTK? I found a couple questions about this forum with no answers. P. S. stl files do not work for me. I need them in step/iges format. Thanks Prashanth -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Thu Dec 3 16:20:42 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Thu, 3 Dec 2015 22:20:42 +0100 Subject: [vtkusers] axis equal for vtk? Message-ID: <5660B22A.7060805@gmail.com> Hey guys i'd like to ask you if there's a equivalent method for vtkRenderWindow for equalizing the axis, just like MATLABs axis equal. Could vtkAxesActor be helpful? I hope you can help Thanks Imre From pedropaulobmjr at hotmail.com Thu Dec 3 16:52:06 2015 From: pedropaulobmjr at hotmail.com (Pedro Paulo) Date: Thu, 3 Dec 2015 21:52:06 +0000 Subject: [vtkusers] vtkPNGWriter() Png 10 bit Message-ID: Hi, is there an way to save a png 10 bit file through vtk using vtkPNGWriter() or other way?Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From normand.robert at sri.utoronto.ca Thu Dec 3 17:54:44 2015 From: normand.robert at sri.utoronto.ca (Normand Robert) Date: Thu, 3 Dec 2015 17:54:44 -0500 Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree In-Reply-To: <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> References: <565D0ED4.4090902@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> Message-ID: <5660C834.4030401@sri.utoronto.ca> Hi John Thank you for your reply. Please let me make sure I understand your statement by asking a question: Are you saying that only the first call to bspTree->IntersectWithLine(P1, P2, tolerance, points, cellIds); should be protected because some allocations or other housekeeping occurs and that subsequently many threads can call IntersectWithLine() at the same time? Regards N. On 15-12-03 02:54 AM, Biddiscombe, John A. wrote: > Making copies of the tree is a very bad idea as the locator stores a lot of extra info for accelerating ray-traces. > > If you could send a stack trace of where you are getting errors I might be able to suggest something. I had a quick look over the intersection code (which I wrote originally back in 1997 or thereabouts - so I'm a bit rusty with it) but I do not see any obvious misuses of vars. The initial build tree is not thread safe, so you should ensure that two threads are not calling the first ray intersection simultaneously if buildtree has not already been called. > > JB > > -----Original Message----- > From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Normand Robert > Sent: 01 December 2015 04:07 > To: vtkusers at vtk.org > Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree > > Hi > > I wish to use vtkModifiedBSPTree with OpenMP by making copies of vtkModifiedBSPTree instances local to each thread but there does not seem to be any methods to copy this object. I naively thought that all vtk objects would have ShallowCopy() or DeepCopy(). I have to do this because using IntersectWithLine() in different threads for the same object instance causes crashes. Is there a solution to this? > > Regards > Normand Robert PhD > Sunnybrook Research Institute > University of Toronto > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers -- Normand Robert PhD Sunnybrook Health Sciences Centre Room S632, 2075 Bayview Avenue, Toronto, ON M4N 3M5 From biddisco at cscs.ch Thu Dec 3 18:19:44 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Thu, 3 Dec 2015 23:19:44 +0000 Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree In-Reply-To: <5660C834.4030401@sri.utoronto.ca> References: <565D0ED4.4090902@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> <5660C834.4030401@sri.utoronto.ca> Message-ID: I was trying to say that on the first call to intersect, if the tree has not been built, it will be built - and the build routine is not thread safe for sure. So call ForceBuild first, or make sure that the first call to intersect only happens on one thread. I?m not saying the intersect routine is thread safe, but at least eliminate the obvious cases first. JB On 03/12/15 23:54, "Normand Robert" wrote: >Hi John > >Thank you for your reply. Please let me make sure I understand your >statement by asking a question: Are you saying that only the first call to >bspTree->IntersectWithLine(P1, P2, tolerance, points, cellIds); should >be protected because some allocations or other housekeeping occurs and >that subsequently many threads can call IntersectWithLine() at the same >time? > >Regards > >N. > > >On 15-12-03 02:54 AM, Biddiscombe, John A. wrote: >> Making copies of the tree is a very bad idea as the locator stores a >>lot of extra info for accelerating ray-traces. >> >> If you could send a stack trace of where you are getting errors I might >>be able to suggest something. I had a quick look over the intersection >>code (which I wrote originally back in 1997 or thereabouts - so I'm a >>bit rusty with it) but I do not see any obvious misuses of vars. The >>initial build tree is not thread safe, so you should ensure that two >>threads are not calling the first ray intersection simultaneously if >>buildtree has not already been called. >> >> JB >> >> -----Original Message----- >> From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Normand >>Robert >> Sent: 01 December 2015 04:07 >> To: vtkusers at vtk.org >> Subject: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree >> >> Hi >> >> I wish to use vtkModifiedBSPTree with OpenMP by making copies of >>vtkModifiedBSPTree instances local to each thread but there does not >>seem to be any methods to copy this object. I naively thought that all >>vtk objects would have ShallowCopy() or DeepCopy(). I have to do this >>because using IntersectWithLine() in different threads for the same >>object instance causes crashes. Is there a solution to this? >> >> Regards >> Normand Robert PhD >> Sunnybrook Research Institute >> University of Toronto >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers > > >-- >Normand Robert PhD >Sunnybrook Health Sciences Centre >Room S632, 2075 Bayview Avenue, Toronto, ON M4N 3M5 > From stephenshamilton at gmail.com Thu Dec 3 20:05:23 2015 From: stephenshamilton at gmail.com (Stephen Hamilton) Date: Thu, 3 Dec 2015 20:05:23 -0500 Subject: [vtkusers] Expanding/Dilating a threshold Message-ID: VTK List, Hi-I'm trying to perform a function that I can't seem to figure out in VTK. I'm using Python and I'm trying to perform a threshold function on vtk Image Data with an expansion caveat. Currently I can threshold a 3D block of cells with no problems. What I want to do is expand that threshold with a kernel value that I decide (even 1 would be fine for now). So the idea would be something like this (2d example to make it easier to see): Given a small set of values in a 2D vtkImageData: 001520 015553 015500 If we did a threshold of > 3, we get an unstructured grid as follows: 5 555 55 This works great in VTK. What I want to do is include neighboring cells, which would result in a threshold like this for a value of 1: 152 15553 1550 Is this possible in VTK? I've looked at the vtkImageDilateErode3D function. The example doesn't quite work for me because it sets the Erode and Dilate values to a specific value (0 and 255), whereas my values aren't consistent and I need to include them based on their spatial relation, not their value. The example I'm referring to is at http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDilateErode3D Any help would be appreciated! Stephen -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Thu Dec 3 20:12:09 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 3 Dec 2015 20:12:09 -0500 Subject: [vtkusers] Updating data in a vtkChartXY In-Reply-To: References: Message-ID: On Tue, Dec 1, 2015 at 1:29 PM, Nicolas Bigaouette wrote: > Hi all, > > I'm using vtkChartXY to plot some data. > > I now need to update the data that is displayed but I'm having trouble doing > so. > > Some people were able to call ClearPlots() to recreate the plot. This is a > bit problematic since I have multiple lines on my figure. I was able to > refactor my code to store the line properties (color, width, etc.) and > re-apply them after they are added back to the figure. See for example > those: I was just checking into this, because you shouldn't need to call ClearPlots at all... I wrote code to determine when to update the cached data, pack it, perform any necessary conversions. We try to be conservative as it can be quite expensive, and on re-examining I wonder if we missed an importan criteria. That said, I changed a Python test, an dwas able to modify the data in place in the vtkFloatArray objects, then call Modified() on the vtkTable, and upon calling Render() on the view I saw the updated data. Does that not work for you? We check if the table and some other things changed since our last build of the cache, the relevant code is in vtkPlotPoints.cxx for both line and point plots. > > I have three questions. > > 1) Does the ClearPlots() frees all memory used? What happens to the previous > linePtr? Are they free? If I update the figure thousands of time for a > "large" number of lines, is there a risk of a memory leak somewhere? How to > properly free the resources? It should, vtkObject derived classes are implicitly reference counted. There is always a risk of a memory leak due to an undiscovered bug, but this should not leak. We use a flag to highlight leaks when testing, and so you should be pretty safe. > > 2) Is there a better way to update a single line out of many? Without memory > leaks? I think calling Modified() on the table will likely cause all of your plots to update their internal cache. I think this porbably needs to be improved to look at the mtime of the component arrays rather than the top-level table, but you should be able to modify the array in place, call Modified on the containing table, and Render on the view. > > 3) Most importantly, this breaks setting the axis range. For example, doing > this after a line update: >> >> chart->GetAxis(vtkAxis::BOTTOM)->SetRange(minval, maxval); > > will change the axis values, but the lines look exactly the same as before > this "zooming". You can change the axis to vtkAxis::FIXED to cause that axis to never rescale, it is SetBehavior or similar method on vtkAxis. > > Maybe it has something to do with how I put everything together: >> >> vtkSmartPointer vRenderer = >> vtkSmartPointer::New(); >> vtkGenericOpenGLRenderWindow *renderWindow = GetRenderWindow(); >> renderWindow->AddRenderer(renderer); >> vtkSmartPointer chartScene = >> vtkSmartPointer::New(); >> vtkSmartPointer chartActor = >> vtkSmartPointer::New(); >> vtkSmartPointer chart = vtkSmartPointer::New(); >> chartScene->AddItem(chart); >> chartActor->SetScene(chartScene); >> renderer->AddActor(chartActor); > I would use vtkNew to reduce the repetition of class names in initialization, but hopefully what I described above will be helpful. Marcus From shanewheeler64 at gmail.com Fri Dec 4 01:14:49 2015 From: shanewheeler64 at gmail.com (Shane Wheeler) Date: Fri, 4 Dec 2015 01:14:49 -0500 Subject: [vtkusers] ActiViz .NET alternatives Message-ID: Hi. I have an assignment that's really driving me crazy. I'm supposed to make a program that has a GUI from .NET and graphics from VTK. If I look on-line, everything says to use ActiViz NET to integrate these. And I would gladly do this, except the assignment specifically says not to use ActiViz.NET. I don't know of any practical reason for this, so I assume it's supposed to make it more challenging. The graphics part is pretty simple--just rendering some basic 3D shapes. I'd need to set the background and shape colors, plus render shapes with a particular position, size, and rotation. Is there any sort of ActiViz.NET alternative that would do that, maybe even a limited implementation someone did for practice, school, etc.? I should be able to use that as long as the license allows it. On the other hand, is there a simpler way to use these together that I'm just not thinking of? Thanks for any suggestions! -------------- next part -------------- An HTML attachment was scrubbed... URL: From biddisco at cscs.ch Fri Dec 4 04:14:07 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Fri, 4 Dec 2015 09:14:07 +0000 Subject: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree References: <565D0ED4.4090902@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> <5660C834.4030401@sri.utoronto.ca> <566138BC.6020102@sri.utoronto.ca> Message-ID: <50320452A334BD42A5EC72BAD21450993DD54940@MBX110.d.ethz.ch> cc'ing list for future reference > -----Original Message----- > From: Biddiscombe, John A. > Sent: 04 December 2015 10:13 > To: 'Normand Robert' > Subject: RE: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree > > Robert > > #0 0x00007ffff500f7cf in vtkPoints::SetData(vtkDataArray*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.0.so.6.0 > #1 0x00007ffff5400f1a in vtkGenericCell::SetCellType(int) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #2 0x00007ffff54ce1a5 in vtkPolyData::GetCell(long long, > vtkGenericCell*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #3 0x00007ffff774539f in vtkModifiedBSPTree::IntersectCellInternal(long > long, double const*, double const*, double, double&, double*, double*, > int&) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > #4 0x00007ffff7749502 in vtkModifiedBSPTree::IntersectWithLine(double > const*, double const*, double, vtkPoints*, vtkIdList*) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > > > Intersect with line calls GetCell, which states > // Description: > // Get cell with cellId such that: 0 <= cellId < NumberOfCells. > // This is a thread-safe alternative to the previous GetCell() > // method. > // THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD > AND > // THE DATASET IS NOT MODIFIED > virtual void GetCell(vtkIdType cellId, vtkGenericCell *cell) = 0; > > and this in turn calls vtkPolyData::GetCell, which then calls > if ( !this->Cells ) > { > this->BuildCells(); > } > > which is certainly not thread safe, so make sure you call BuildCells on your input > dataset before doing any intersection tests. (and you might just call mydata- > >GetCell(0,a dummy generic cell) before the threaded part to ensure that > initialization takes place for the main code path). > > Unfortunately, there are a many gotchas like this deep in the internals of vtk, so > I suggest you step through with a debugger and look at each call to see if there's > likely to be a race. I'm going away for almost a week so I won't be able to > respond very quickly after this ... > > JB From biddisco at cscs.ch Fri Dec 4 04:22:40 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Fri, 4 Dec 2015 09:22:40 +0000 Subject: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree In-Reply-To: <50320452A334BD42A5EC72BAD21450993DD54940@MBX110.d.ethz.ch> References: <565D0ED4.4090902@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> <5660C834.4030401@sri.utoronto.ca> <566138BC.6020102@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD54940@MBX110.d.ethz.ch> Message-ID: <50320452A334BD42A5EC72BAD21450993DD54960@MBX110.d.ethz.ch> I just realized that what I wrote a few minutes ago was wrong. If you are calling intersect on one thread at the start, then the build cells has completed and it is inside GetCell that the crash is occurring. Inside the BSP tree we are using the same GenericCell object, and that is why you have errors. This is not thread safe. What you need to do is create a vtkGenericCell for each thread, and modify the Intersect call to accept the generic cell as an input param so that it can use your copy on each thread and not the internal one shared between threads. It should be fairly trivial, but there might be other internal vars that are also being shared, in which case you might need to substitute other vars. If I have time, I'll create a patch, if you start on one, send it to me. ta JB -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Biddiscombe, John A. Sent: 04 December 2015 10:14 To: vtkusers at vtk.org Subject: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree cc'ing list for future reference > -----Original Message----- > From: Biddiscombe, John A. > Sent: 04 December 2015 10:13 > To: 'Normand Robert' > Subject: RE: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree > > Robert > > #0 0x00007ffff500f7cf in vtkPoints::SetData(vtkDataArray*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.0.so.6.0 > #1 0x00007ffff5400f1a in vtkGenericCell::SetCellType(int) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #2 0x00007ffff54ce1a5 in vtkPolyData::GetCell(long long, > vtkGenericCell*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #3 0x00007ffff774539f in > vtkModifiedBSPTree::IntersectCellInternal(long > long, double const*, double const*, double, double&, double*, double*, > int&) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > #4 0x00007ffff7749502 in vtkModifiedBSPTree::IntersectWithLine(double > const*, double const*, double, vtkPoints*, vtkIdList*) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > > > Intersect with line calls GetCell, which states > // Description: > // Get cell with cellId such that: 0 <= cellId < NumberOfCells. > // This is a thread-safe alternative to the previous GetCell() > // method. > // THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD > AND > // THE DATASET IS NOT MODIFIED > virtual void GetCell(vtkIdType cellId, vtkGenericCell *cell) = 0; > > and this in turn calls vtkPolyData::GetCell, which then calls > if ( !this->Cells ) > { > this->BuildCells(); > } > > which is certainly not thread safe, so make sure you call BuildCells > on your input dataset before doing any intersection tests. (and you > might just call mydata- > >GetCell(0,a dummy generic cell) before the threaded part to ensure > >that > initialization takes place for the main code path). > > Unfortunately, there are a many gotchas like this deep in the > internals of vtk, so I suggest you step through with a debugger and > look at each call to see if there's likely to be a race. I'm going > away for almost a week so I won't be able to respond very quickly after this ... > > JB _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers From biddisco at cscs.ch Fri Dec 4 04:26:17 2015 From: biddisco at cscs.ch (Biddiscombe, John A.) Date: Fri, 4 Dec 2015 09:26:17 +0000 Subject: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree In-Reply-To: <50320452A334BD42A5EC72BAD21450993DD54960@MBX110.d.ethz.ch> References: <565D0ED4.4090902@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD51FCA@MBX110.d.ethz.ch> <5660C834.4030401@sri.utoronto.ca> <566138BC.6020102@sri.utoronto.ca> <50320452A334BD42A5EC72BAD21450993DD54940@MBX110.d.ethz.ch> <50320452A334BD42A5EC72BAD21450993DD54960@MBX110.d.ethz.ch> Message-ID: <50320452A334BD42A5EC72BAD21450993DD54977@MBX110.d.ethz.ch> NB. The same intersection code is present in other locators (vtkCellTreeLocator for example), so I'll ponder a general solution which can be made part of a bigger fix for the whole locator family. I have a number of patches sitting in my local vtk clone for other things with the locators which need tweaks so I'll look into it. JB -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Biddiscombe, John A. Sent: 04 December 2015 10:23 To: Normand Robert; vtkusers at vtk.org Subject: Re: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree I just realized that what I wrote a few minutes ago was wrong. If you are calling intersect on one thread at the start, then the build cells has completed and it is inside GetCell that the crash is occurring. Inside the BSP tree we are using the same GenericCell object, and that is why you have errors. This is not thread safe. What you need to do is create a vtkGenericCell for each thread, and modify the Intersect call to accept the generic cell as an input param so that it can use your copy on each thread and not the internal one shared between threads. It should be fairly trivial, but there might be other internal vars that are also being shared, in which case you might need to substitute other vars. If I have time, I'll create a patch, if you start on one, send it to me. ta JB -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Biddiscombe, John A. Sent: 04 December 2015 10:14 To: vtkusers at vtk.org Subject: [vtkusers] FW: Deep copy of vtk Object vtkModifiedBSPTree cc'ing list for future reference > -----Original Message----- > From: Biddiscombe, John A. > Sent: 04 December 2015 10:13 > To: 'Normand Robert' > Subject: RE: [vtkusers] Deep copy of vtk Object vtkModifiedBSPTree > > Robert > > #0 0x00007ffff500f7cf in vtkPoints::SetData(vtkDataArray*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonCore-6.0.so.6.0 > #1 0x00007ffff5400f1a in vtkGenericCell::SetCellType(int) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #2 0x00007ffff54ce1a5 in vtkPolyData::GetCell(long long, > vtkGenericCell*) () from > /usr/lib/x86_64-linux-gnu/libvtkCommonDataModel-6.0.so.6.0 > #3 0x00007ffff774539f in > vtkModifiedBSPTree::IntersectCellInternal(long > long, double const*, double const*, double, double&, double*, double*, > int&) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > #4 0x00007ffff7749502 in vtkModifiedBSPTree::IntersectWithLine(double > const*, double const*, double, vtkPoints*, vtkIdList*) () > from /usr/lib/x86_64-linux-gnu/libvtkFiltersFlowPaths-6.0.so.6.0 > > > Intersect with line calls GetCell, which states > // Description: > // Get cell with cellId such that: 0 <= cellId < NumberOfCells. > // This is a thread-safe alternative to the previous GetCell() > // method. > // THIS METHOD IS THREAD SAFE IF FIRST CALLED FROM A SINGLE THREAD > AND > // THE DATASET IS NOT MODIFIED > virtual void GetCell(vtkIdType cellId, vtkGenericCell *cell) = 0; > > and this in turn calls vtkPolyData::GetCell, which then calls > if ( !this->Cells ) > { > this->BuildCells(); > } > > which is certainly not thread safe, so make sure you call BuildCells > on your input dataset before doing any intersection tests. (and you > might just call mydata- > >GetCell(0,a dummy generic cell) before the threaded part to ensure > >that > initialization takes place for the main code path). > > Unfortunately, there are a many gotchas like this deep in the > internals of vtk, so I suggest you step through with a debugger and > look at each call to see if there's likely to be a race. I'm going > away for almost a week so I won't be able to respond very quickly after this ... > > JB _______________________________________________ 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: http://public.kitware.com/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: http://public.kitware.com/mailman/listinfo/vtkusers From jimmigoo at gmail.com Fri Dec 4 06:26:21 2015 From: jimmigoo at gmail.com (jimmigoo) Date: Fri, 4 Dec 2015 04:26:21 -0700 (MST) Subject: [vtkusers] Problem using vtkTerrainContourLineInterpolator Message-ID: <1449228381808-5735312.post@n5.nabble.com> Hi folks! I have a serious problem regarding vtkContourWidget using vtkTerrainContourLineInterpolator. I have to modify an area identified by a few vertexes, when I select one of these vertex, and try to move it upon a 3D Actor, I found an infinite loop inside vtkTerrainContourLineInterpolator::InterpolateLine method in bold sentences. In particular, I really don't know what is that tolerance (I think it's the maximum distance between two points in order to insert an intermediate point to draw the line), because the boolean value traversalDone (when infinite loop occurs) is never set to true, and RAM memory increase significately till application crash. const double tolerance = *1.0;* bool traversalDone = false; while (!traversalDone) { for (interpolatedCells->InitTraversal(); interpolatedCells->GetNextCell(npts, ptIdx); ) { double p[3]; interpolatedPts->GetPoint(ptIdx[0], p); if (*(p[0]-p1[0])*(p[0]-p1[0]) + (p[1]-p1[1])*(p[1]-p1[1]) < tolerance*) { interpolatedPts->GetPoint(ptIdx[npts-1], p1); if (*(p2[0]-p1[0])*(p2[0]-p1[0]) + (p2[1]-p1[1])*(p2[1]-p1[1]) < tolerance*) { --npts; traversalDone = true; } for (int i = 1; i < npts; i++) { rep->AddIntermediatePointWorldPosition( idx1, interpolatedPts->GetPoint(ptIdx[i]) ); } continue; } } } return 1; I have this pipeline (I create these objects vtkContourWidget* m_pContour; vtkOrientedGlyphContourRepresentation* m_pRepresentation; vtkTerrainContourLineInterpolator* m_pInterpolator; vtkTerrainDataPointPlacer* m_pPointPlacer; and I use vtkProjectedTerrainPath as the Projector contained inside vtkTerrainContourLineInterpolator, I do not create a separated object for it). // Configure the vtkTerrainContourLineInterpolator m_pInterpolator->SetImageData(l_pStructuredPoints); vtkIdType l_iNumberOfLines = DEFAULT_MAX_INTERPOLATOR_LINES; (could be 100000 or 100, the problem is still present) m_pInterpolator->GetProjector()->SetMaximumNumberOfLines(l_iNumberOfLines); m_pInterpolator->GetProjector()->SetProjectionModeToHug(); m_pInterpolator->GetProjector()->SetHeightOffset(3); m_pInterpolator->GetProjector()->SetHeightTolerance(0.1); // Configure the Point Placer m_pPointPlacer->RemoveAllProps(); m_pPointPlacer->AddProp(m_pDtmActor); // Configure vtkContourRepresentation m_pRepresentation->GetLinesProperty()->SetLineWidth(2.0); m_pRepresentation->GetLinesProperty()->SetColor(1, 0, 0); m_pRepresentation->SetLineInterpolator(m_pInterpolator); m_pRepresentation->SetPointPlacer(m_pPointPlacer); m_pRepresentation->SetRenderer(m_pRenderer); vtkSphereSource* sphere = vtkSphereSource::New(); sphere->SetRadius(l_dDtmResolution / 2); sphere->Update(); m_pRepresentation->SetCursorShape(sphere->GetOutput()); m_pRepresentation->SetActiveCursorShape(sphere->GetOutput()); sphere->Delete(); //Configure vtkContourWidget m_pContour->SetRepresentation(m_pRepresentation); m_pContour->SetInteractor(m_pRenderWindowInteractor); I hope you can understand my problem. I'm using VTK 6.1.0 version. I'm looking for your kind reply regards, jimmigoo -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-using-vtkTerrainContourLineInterpolator-tp5735312.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Fri Dec 4 08:47:04 2015 From: DLRdave at aol.com (David Cole) Date: Fri, 4 Dec 2015 08:47:04 -0500 Subject: [vtkusers] ActiViz .NET alternatives In-Reply-To: References: Message-ID: With modern Visual Studio, you can link unmanaged/native C++ libraries into .NET assemblies and executables. Have you thought about possibly using a managed C++ UI built in .NET and just linking in the plain old VTK libraries? (Not sure if there are any roadblocks here specifically with VTK, I've not tried it personally, but I have built a managed C++ app which links in unmanaged libraries...) D On Friday, December 4, 2015, Shane Wheeler wrote: > Hi. I have an assignment that's really driving me crazy. I'm supposed to > make a program that has a GUI from .NET and graphics from VTK. If I look > on-line, everything says to use ActiViz NET to integrate these. And I would > gladly do this, except the assignment specifically says not to use > ActiViz.NET. I don't know of any practical reason for this, so I assume > it's supposed to make it more challenging. > > The graphics part is pretty simple--just rendering some basic 3D shapes. > I'd need to set the background and shape colors, plus render shapes with a > particular position, size, and rotation. Is there any sort of ActiViz.NET > alternative that would do that, maybe even a limited implementation someone > did for practice, school, etc.? I should be able to use that as long as the > license allows it. > > On the other hand, is there a simpler way to use these together that I'm > just not thinking of? > > Thanks for any suggestions! > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yxp233 at postech.ac.kr Fri Dec 4 12:19:18 2015 From: yxp233 at postech.ac.kr (=?ks_c_5601-1987?B?WGlhb3BlbmcgWWFuZyi76r73sOa/tbD4x9Cw+ik=?=) Date: Fri, 4 Dec 2015 17:19:18 +0000 Subject: [vtkusers] Problem of vtkTube generation from a skeletonized vessel tree Message-ID: Dear All, I tried to build a VTK tube from a skeletonized vessel tree, but unfortunately I got very messy results as shown in the following image. I guess the problem was caused by a false generation of a vtkPolyData from the skeletonized vessel tree since the points in the generated vtkPolyData from different vessel branches were connected with each other. May I ask what is the way to generate a proper vtkPolyData from a skeletonized vessel tree please? [cid:image001.jpg at 01D12F03.52EBFDA0] Thank you very much. Best regards, Xiaopeng -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 19788 bytes Desc: image001.jpg URL: From goretzki.imre at gmail.com Fri Dec 4 13:48:50 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Fri, 4 Dec 2015 19:48:50 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <5660B22A.7060805@gmail.com> References: <5660B22A.7060805@gmail.com> Message-ID: <5661E012.4040403@gmail.com> I have data like this: http://i.imgur.com/CR2O8Ik.png and I would like to "stretch" the Z-axis to get more like a cube visualization. I used vtkTransform to transform the axes, but I would change the data if I do this. I hope you understand what I want to do, e.g. is there a possibility to change / stretch the ticks of a specific axis. The vtkTransform plot stretches to much: http://i.imgur.com/DDUW91T.png The data is deformed I use the vtkTransform like this: vtkSmartPointer axis = vtkSmartPointer::New(); axis->Scale(1,1,10); dataActor->SetUserTransform(axis); outlineActor->SetUserTransform(axis); I tried using the camera with the vtkTransform, but the only thing I got from there, was an empty image or I had to zoom out greatly. For matlab reference, something like this: http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true Would be nice if you could help me Imre Am 03.12.2015 um 22:20 schrieb Imre Goretzki: > Hey guys > > i'd like to ask you if there's a equivalent method for vtkRenderWindow > for equalizing the axis, just like MATLABs axis equal. Could > vtkAxesActor be helpful? > > I hope you can help > > Thanks > Imre > From cory.quammen at kitware.com Fri Dec 4 14:52:08 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 14:52:08 -0500 Subject: [vtkusers] Problem of vtkTube generation from a skeletonized vessel tree In-Reply-To: References: Message-ID: Hi Xiaopeng, Could you describe how you got this result? Does you input consist of points only or does it have connectivity information? Thanks, Cory On Fri, Dec 4, 2015 at 12:19 PM, Xiaopeng Yang(???????) < yxp233 at postech.ac.kr> wrote: > Dear All, > > > > I tried to build a VTK tube from a skeletonized vessel tree, but > unfortunately I got very messy results as shown in the following image. I > guess the problem was caused by a false generation of a vtkPolyData from > the skeletonized vessel tree since the points in the generated vtkPolyData > from different vessel branches were connected with each other. > > > > May I ask what is the way to generate a proper vtkPolyData from a > skeletonized vessel tree please? > > > > > > Thank you very much. > > > > Best regards, > > Xiaopeng > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 19788 bytes Desc: not available URL: From cory.quammen at kitware.com Fri Dec 4 14:56:30 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 14:56:30 -0500 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <5661E012.4040403@gmail.com> References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> Message-ID: Imre, Your best bet is probably to transform the data itself rather than the user transform of the actors. vtkSmartPointer transformFilter = vtkSmartPointer::New(); transformFilter->SetTransform(axis); transformFilter->SetInputData(); HTH, Cory On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki wrote: > I have data like this: > http://i.imgur.com/CR2O8Ik.png > and I would like to "stretch" the Z-axis to get more like a cube > visualization. > > I used vtkTransform to transform the axes, but I would change the data if > I do this. I hope you understand what I want to do, e.g. is there a > possibility to change / stretch the ticks of a specific axis. > > The vtkTransform plot stretches to much: > http://i.imgur.com/DDUW91T.png > The data is deformed > > I use the vtkTransform like this: > vtkSmartPointer axis = vtkSmartPointer::New(); > axis->Scale(1,1,10); > > dataActor->SetUserTransform(axis); > outlineActor->SetUserTransform(axis); > > I tried using the camera with the vtkTransform, but the only thing I got > from there, was an empty image or I had to zoom out greatly. > > For matlab reference, something like this: > http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true > > Would be nice if you could help me > > Imre > > > Am 03.12.2015 um 22:20 schrieb Imre Goretzki: > >> Hey guys >> >> i'd like to ask you if there's a equivalent method for vtkRenderWindow >> for equalizing the axis, just like MATLABs axis equal. Could vtkAxesActor >> be helpful? >> >> I hope you can help >> >> Thanks >> Imre >> >> > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Fri Dec 4 14:57:12 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 4 Dec 2015 14:57:12 -0500 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: References: Message-ID: By the way, if you want to contour all of the blocks, the following is the simple way to go: # Read Exodus Data reader = vtk.vtkExodusIIReader() reader.SetFileName('cube_out.e') reader.UpdateInformation() reader.SetTimeStep(0) reader.SetAllArrayStatus(vtk.vtkExodusIIReader.NODAL, 1) # Contours (these do not show up in my rendered image) contours = vtk.vtkContourFilter() contours.SetInputConnection(reader.GetOutputPort()) contours.SetInputArrayToProcess(0, 0, 0, 0, "u") contours.SetNumberOfContours(1) contours.SetValue(0, 0.5) contMapper = vtk.vtkCompositePolyDataMapper2() contMapper.SetInputConnection(contours.GetOutputPort()) contMapper.SetScalarVisibility(False) # colored contours contMapper.SetScalarRange(scalar_range) # actor, renderer etc. here Note the use of the vtkCompositePolyDataMapper2 instead of the regular vtkPolyDataMapper. Best, -berk On Mon, Nov 30, 2015 at 2:22 PM, Slaughter, Andrew E < andrew.slaughter at inl.gov> wrote: > I am unable to have contours of 3D data show up using Python bindings (VTK > 6.3) on OSX. I attached an example exodus file and script and would > appreciate any help to get contours working. > > I also include a screenshot from Paraview of what I am expecting the > output of my script to resemble. > > Thanks, > Andrew > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Fri Dec 4 15:03:37 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 4 Dec 2015 15:03:37 -0500 Subject: [vtkusers] ANNOUNCE HPDAV workshop: Call for papers Message-ID: HPDAV 2016 Call for papers ____________________________________________________________________________________ The workshop on High Performance Data Analysis and Visualization (HPDAV) 2016 http://vis.lbl.gov/Events/HPDAV-IPDPS-2016/ May 23, 2016 To be held in conjunction with 30th IEEE International Parallel and Distributed Processing Symposium http://www.ipdps.org/ May 23-26, 2016 Chicago Hyatt Regency, Chicago, Illinois, USA Important Dates (AoE) ____________________________________________________________________________________ Paper Submission: Jan. 10, 2016 Paper Notification: Feb. 7, 2016 Camera-Ready: Feb. 21, 2016 Workshop Scope and Goals ____________________________________________________________________________________ While the purpose of visualization and analysis is insight, realizing that objective requires solving complex problems related to crafting or adapting algorithms and applications to take advantage of evolving architectures, and to solve increasingly complex data understanding problems for ever larger and more complex data. These architectures, and the systems from which they are built, have increasingly deep memory hierarchies, increasing concurrency, decreasing relative per-core/per-node I/O capacity, lessening memory per core, are increasingly prone to failures, and face power limitations. The purpose of this workshop is to bring together researchers, engineers, and architects of data-intensive computing technologies, which span visualization, analysis, and data management, to present and discuss research topics germane to high performance data analysis and visualization. Specifically, this workshop focuses on research topics related to adapting/creating algorithms, technologies, and applications for use on emerging computational architectures and platforms. The workshop format includes traditional research papers (8-10 pages) for in-depth topics, short papers (4 pages) for works in progress, and a panel discussion. Proceedings of the workshops are distributed at the conference and are submitted for inclusion in the IEEE Xplore Digital Library after the conference. We invite papers on original, unpublished research in the following topic areas under the general umbrella of high performance visualization and analysis: - Increasing concurrency at the node level, and at the systemwide level. - Optimizations for improving performance, e.g., decreasing runtime, leveraging a deepening memory hierarchy, reducing data movement, reducing power consumption. - Applications of visualization and analysis, where there is a strong thematic element related to being able to solve a larger or more complex problem because of algorithmic or design advances that take advantage of increasing concurrency, architectural features, etc. - Data analysis and/or visualization systems/designs/architectures having an emphasis upon scalability, resilience, high-throughput/high-capacity, and that are able to take advantage of emerging architectures. Paper submission guidelines: see http://vis.lbl.gov/Events/HPDAV-IPDPS-2016 Program Committee ____________________________________________________________________________________ Jeff Baumes, Kitware Janine Bennett, Sandia National Laboratory Wes Bethel, Lawrence Berkeley National Laboratory Randall Frank, Applied Research Associates Kelly Gaither, Texas Advanced Computing Center Christoph Garth, University of Kaiserslautern Berk Geveci, Kitware Pat McCormick, Los Alamos National Laboratory Vijay Natarajan, Indian Institute of Science Paul Navratil, Texas Advanced Computing Center Sang-Yun Oh, University of California -- Santa Barbara Rob Ross, Argonne National Laboratory Yogesh Simmhan, Indian Institute of Science Venkat Vishwanath, Argonne National Laboratory Johann Won, Seoul National University John Wu, Lawrence Berkeley National Laboratory -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 4 15:14:08 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 15:14:08 -0500 Subject: [vtkusers] Expanding/Dilating a threshold In-Reply-To: References: Message-ID: Stephen, It sounds like you would need to first create a dilated binary mask, then mask out your original data. vtkImageThreshold should let you get the initial binary mask. Then you can use vtkImageDilateErode3D to dilate the mask. Finally, use vtkImageMask to pull out the original image masked by the dilated threshold. HTH, Cory On Thu, Dec 3, 2015 at 8:05 PM, Stephen Hamilton wrote: > VTK List, > > Hi-I'm trying to perform a function that I can't seem to figure out in > VTK. I'm using Python and I'm trying to perform a threshold function on > vtk Image Data with an expansion caveat. Currently I can threshold a 3D > block of cells with no problems. What I want to do is expand that > threshold with a kernel value that I decide (even 1 would be fine for > now). So the idea would be something like this (2d example to make it > easier to see): > > Given a small set of values in a 2D vtkImageData: > 001520 > 015553 > 015500 > > If we did a threshold of > 3, we get an unstructured grid as follows: > 5 > 555 > 55 > > This works great in VTK. What I want to do is include neighboring cells, > which would result in a threshold like this for a value of 1: > > 152 > 15553 > 1550 > > Is this possible in VTK? I've looked at the vtkImageDilateErode3D > function. The example doesn't quite work for me because it sets the Erode > and Dilate values to a specific value (0 and 255), whereas my values aren't > consistent and I need to include them based on their spatial relation, not > their value. The example I'm referring to is at > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/ImageDilateErode3D > > Any help would be appreciated! > > Stephen > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Fri Dec 4 15:46:16 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Fri, 4 Dec 2015 21:46:16 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> Message-ID: <5661FB98.2060108@gmail.com> Ok Thank you Cory, I thought there is something more automatically. Regards Imre Am 04.12.2015 um 20:56 schrieb Cory Quammen: > Imre, > > Your best bet is probably to transform the data itself rather than the > user transform of the actors. > > vtkSmartPointer transformFilter = > vtkSmartPointer::New(); > transformFilter->SetTransform(axis); > transformFilter->SetInputData(); > > HTH, > Cory > > On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki > wrote: > > I have data like this: > http://i.imgur.com/CR2O8Ik.png > and I would like to "stretch" the Z-axis to get more like a cube > visualization. > > I used vtkTransform to transform the axes, but I would change the > data if I do this. I hope you understand what I want to do, e.g. > is there a possibility to change / stretch the ticks of a specific > axis. > > The vtkTransform plot stretches to much: > http://i.imgur.com/DDUW91T.png > The data is deformed > > I use the vtkTransform like this: > vtkSmartPointer axis = > vtkSmartPointer::New(); > axis->Scale(1,1,10); > > dataActor->SetUserTransform(axis); > outlineActor->SetUserTransform(axis); > > I tried using the camera with the vtkTransform, but the only thing > I got from there, was an empty image or I had to zoom out greatly. > > For matlab reference, something like this: > http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true > > Would be nice if you could help me > > Imre > > > Am 03.12.2015 um 22:20 schrieb Imre Goretzki: > > Hey guys > > i'd like to ask you if there's a equivalent method for > vtkRenderWindow for equalizing the axis, just like MATLABs > axis equal. Could vtkAxesActor be helpful? > > I hope you can help > > Thanks > Imre > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Fri Dec 4 16:12:31 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Fri, 4 Dec 2015 14:12:31 -0700 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: References: Message-ID: Thanks for the suggestion, I have a question regarding vtk.vtkExtractBlock(). What index does the AddIndex method refer to? I can't seem to understand the relationship of reader MultiBlock data set and these indices. (i.e., I can use AddIndex(0) and/or AndIndex(1) and see the contours on the complete geometry). I am trying to write a code that, by default, contours all blocks, but the user can also select to limit the contours to certain blocks. Thus, I am trying to related the "block" names shown in the reader and the indices used by vtkExtractBlock. Thanks again, Andrew On Fri, Dec 4, 2015 at 12:57 PM, Berk Geveci wrote: > By the way, if you want to contour all of the blocks, the following is the > simple way to go: > > # Read Exodus Data > reader = vtk.vtkExodusIIReader() > reader.SetFileName('cube_out.e') > reader.UpdateInformation() > reader.SetTimeStep(0) > reader.SetAllArrayStatus(vtk.vtkExodusIIReader.NODAL, 1) > > # Contours (these do not show up in my rendered image) > contours = vtk.vtkContourFilter() > contours.SetInputConnection(reader.GetOutputPort()) > contours.SetInputArrayToProcess(0, 0, 0, 0, "u") > contours.SetNumberOfContours(1) > contours.SetValue(0, 0.5) > > contMapper = vtk.vtkCompositePolyDataMapper2() > contMapper.SetInputConnection(contours.GetOutputPort()) > contMapper.SetScalarVisibility(False) # colored contours > contMapper.SetScalarRange(scalar_range) > > # actor, renderer etc. here > > Note the use of the vtkCompositePolyDataMapper2 instead of the regular > vtkPolyDataMapper. > > Best, > -berk > > On Mon, Nov 30, 2015 at 2:22 PM, Slaughter, Andrew E < > andrew.slaughter at inl.gov> wrote: > >> I am unable to have contours of 3D data show up using Python bindings >> (VTK 6.3) on OSX. I attached an example exodus file and script and would >> appreciate any help to get contours working. >> >> I also include a screenshot from Paraview of what I am expecting the >> output of my script to resemble. >> >> Thanks, >> Andrew >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 4 17:02:34 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 17:02:34 -0500 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1449148633870-5735281.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> <1449148633870-5735281.post@n5.nabble.com> Message-ID: Norman, There might be a fix for this in gitlab. https://gitlab.kitware.com/vtk/vtk/merge_requests/455/diffs You can try out this branch and see if it fixes the crash for you. You can get it with: git fetch https://gitlab.kitware.com/jpouderoux/vtk.git FixDelaunay2DBug git checkout -b jpouderoux/vtk-FixDelaunay2DBug FETCH_HEAD Best regards, Cory On Thu, Dec 3, 2015 at 8:17 AM, normanius wrote: > Hi Cory > Hi Johannes > > Is there anything new regarding the crash? I can reproduce the problem with > Jo's sample program for vtk-6.2.0 and vtk-6.3.0. However, the problem does > not occur in 5.10.1. (Tested on Mac OS 10.7, everything compiled with clang > 6.0, I've built vtk from source.) > > Switching back to vtk-5 is connected to quite some effort on my side, so I > was wondering how to fix or work around the problem with vtk-6. > > Let me know if I can support you in a way. > > Thanks, > Norman > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735281.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 4 17:06:34 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 17:06:34 -0500 Subject: [vtkusers] Saving custom array class instance to *.vti file with time information In-Reply-To: <1447352677.2990.28.camel@tachikoma-mint> References: <1447352677.2990.28.camel@tachikoma-mint> Message-ID: HI Gael, Saving each time step to a VTI file is very reasonable in the way that you are doing it. I would recommend doing that. To assign times to each VTI file, I recommend also writing a .pvd file, which is an XML file that describes a list of files that can be loaded by ParaView. You can describe your VTI files in the .pvd file and assign a time to each VTI file. Please see http://www.paraview.org/Wiki/ParaView/Data_formats#PVD_File_Format for more details on the PVD file. Hope that helps, Cory On Thu, Nov 12, 2015 at 1:24 PM, lorieul wrote: > Hello, > > I wanted to know the cleanest way to save a custom array class instance > to a *.vti file with time information. I searched through the > documentation and found some threads in the mailing list archives but > could not find compelling answers (quite to my surprise? I'm sure the > information must be there somewhere?). > > I am designing a C++ software that performs CFD (Computational Fluid > Dynamics) simulations. I start from known initial conditions and iterate > in time. After each iteration, I know the definition of each of the flow > variables (e.g. I know the velocity field at each time step). I want to > save this information into a *.vti file so that I can visualise it with > paraview and (for instance) animate it. > > My code uses its own array class which I'll call DblArr. Hence when I > want to save a field to a file, I need to use a vtkImageData object and > copy all the data from the DblArr object into it. This means that for > each DblArr array I want to save, I need a corresponding vtkImageData > object (hence additional memory and computation costs). Is that the best > way to do so ? > > Besides, how do I store the time information ? Should I call : > > myImgData->GetInformation()->Set( > vtkDataObject::DATA_TIME_STEPS(), & currentTime, 1); > > Or is there a better way to do so ? (I found very little reference to > DATA_TIME_STEPS() in the documentation) > > Gael Lorieul > PhD student at Universit? catholique de Louvain > > > > > > Getting more into details : > > for each DblArr that I might want to save, I instanciate a Svr_vti > object (which is another custom class). The purpose of this class is to > perform the save operation to a *.vti file. It does three things : > 1. allocating memory i.e. instanciation of vtkImageData object at the > beginning of the simulation > 2. handling the copying of data from the DblArr object to the > vtkImageData > object > 3. writing the *.vti file. > > Once again, I have strong doubts that this is the best solution to my > problem? > > Currently I have a class called Svr_vti which holds : (amongst other > things) > @ a constructor > @ a save() member function > @ a vtkImageData member object called _ImgData > @ a vtkXMLImageDataWriter object called _Wrtr > @ a reference to a DblArr called _Arr > > Constructor(DblArr & MyArr) performs : > > _ImgData = vtkSmartPointer::New() > _Wrtr = vtkSmartPointer::New() > _Arr = MyArr > // > _ImgData->SetDimensions(***,***,***); > _ImgData->AllocateScalars( VTK_DOUBLE, * ); > _ImgData->SetOrigin(***, ***, ***); > _ImgData->SetSpacing(***, ***, ***) > // > _Wrtr->SetInputData( _ImgData ); > > > save(DblArr &) member function performs : > > for each node (i,j,k) in domain : > double * pxl = _ImgData->GetScalarPointer(i,j,k) > for each component in vector : > pxl[ind] = Arr(i,j,k, ind) > } > } > // > //The file name embeds the number of current time step > //Hence the file name is different each time save() is called > _Wrtr->SetFileName( *** ); > _Wrtr->Write(); > > Note : this is pseudo-code, it might contain syntax errors and/or > abreviations > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Fri Dec 4 18:09:11 2015 From: juch at zhaw.ch (normanius) Date: Fri, 4 Dec 2015 16:09:11 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> <1449148633870-5735281.post@n5.nabble.com> Message-ID: <1449270551068-5735326.post@n5.nabble.com> Excellent!!! The fix works as far as I can tell. Johannes' sample does not crash anymore, neither does my application (I will do some more extensive testing next week). Thanks for the hint. Hope to see the fix in the next release. Norman :))) -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735326.html Sent from the VTK - Users mailing list archive at Nabble.com. From andrew.slaughter at inl.gov Fri Dec 4 18:12:40 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Fri, 4 Dec 2015 16:12:40 -0700 Subject: [vtkusers] Contour of 3D Exodus Data In-Reply-To: References: Message-ID: I have another question, along the same lines. Is there a similar tool as vtkExtractBlock for extracting SideSets and NodeSets? Thus. allowing a single ExodusReader to display blocks, nodesets, and sidesets in multiple renderers. Thanks, Andrew On Fri, Dec 4, 2015 at 2:12 PM, Slaughter, Andrew E < andrew.slaughter at inl.gov> wrote: > Thanks for the suggestion, I have a question regarding > vtk.vtkExtractBlock(). What index does the AddIndex method refer to? > > I can't seem to understand the relationship of reader MultiBlock data set > and these indices. (i.e., I can use AddIndex(0) and/or AndIndex(1) and see > the contours on the complete geometry). > > I am trying to write a code that, by default, contours all blocks, but the > user can also select to limit the contours to certain blocks. Thus, I am > trying to related the "block" names shown in the reader and the indices > used by vtkExtractBlock. > > Thanks again, > Andrew > > On Fri, Dec 4, 2015 at 12:57 PM, Berk Geveci > wrote: > >> By the way, if you want to contour all of the blocks, the following is >> the simple way to go: >> >> # Read Exodus Data >> reader = vtk.vtkExodusIIReader() >> reader.SetFileName('cube_out.e') >> reader.UpdateInformation() >> reader.SetTimeStep(0) >> reader.SetAllArrayStatus(vtk.vtkExodusIIReader.NODAL, 1) >> >> # Contours (these do not show up in my rendered image) >> contours = vtk.vtkContourFilter() >> contours.SetInputConnection(reader.GetOutputPort()) >> contours.SetInputArrayToProcess(0, 0, 0, 0, "u") >> contours.SetNumberOfContours(1) >> contours.SetValue(0, 0.5) >> >> contMapper = vtk.vtkCompositePolyDataMapper2() >> contMapper.SetInputConnection(contours.GetOutputPort()) >> contMapper.SetScalarVisibility(False) # colored contours >> contMapper.SetScalarRange(scalar_range) >> >> # actor, renderer etc. here >> >> Note the use of the vtkCompositePolyDataMapper2 instead of the regular >> vtkPolyDataMapper. >> >> Best, >> -berk >> >> On Mon, Nov 30, 2015 at 2:22 PM, Slaughter, Andrew E < >> andrew.slaughter at inl.gov> wrote: >> >>> I am unable to have contours of 3D data show up using Python bindings >>> (VTK 6.3) on OSX. I attached an example exodus file and script and would >>> appreciate any help to get contours working. >>> >>> I also include a screenshot from Paraview of what I am expecting the >>> output of my script to resemble. >>> >>> Thanks, >>> Andrew >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassminabdallah at gmail.com Fri Dec 4 18:23:33 2015 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Fri, 4 Dec 2015 16:23:33 -0700 (MST) Subject: [vtkusers] Minimize DICOM data Message-ID: <1449271413882-5735329.post@n5.nabble.com> Hello, i'm working with big DICOM data, and i wondering what the best way to minimize the size of DICOM data? Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Minimize-DICOM-data-tp5735329.html Sent from the VTK - Users mailing list archive at Nabble.com. From mark.hammons at inaf.cnrs-gif.fr Fri Dec 4 18:21:28 2015 From: mark.hammons at inaf.cnrs-gif.fr (Mark Hammons) Date: Sat, 05 Dec 2015 00:21:28 +0100 Subject: [vtkusers] How to remove vtk's dependencies on libX11 and libGL? Message-ID: <3246365.R3rEt05aN7@localhost.localdomain> Is there any way to rip these dependencies out? The application I'm supporting is headless and the hardware has no 3d graphics support period, and I'd like to statically compile the binary against vtk and ITK except the x11 and GL dependencies are giving me trouble. -------------------- Mark Hammons - +33 06 03 69 56 56 Research Engineer @ BioEmergences[1] Lab Phone: 01 69 82 34 19 -------- [1] bioemergences.iscpif.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: This is a digitally signed message part. URL: From dave.demarle at kitware.com Fri Dec 4 20:47:15 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 4 Dec 2015 20:47:15 -0500 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1442989690263-5734067.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> Message-ID: There is a current merge request that sounds related. Cory would please check if it does and let us know. On Wednesday, September 23, 2015, josci wrote: > Hi Cory, > > thank your for taking a look into this issue. If there is anthing which I > can contribute to track down this bug, like a "smaller data set (in best > case reduced to a few triangles)" for example, please let me know. > > Johannes > > > > Hi Johannes, > > I can confirm the crash you see with the parameters you cite. The crash > occurs in the vtkDelaunay2D filter that is used by the boolean operations > filter. Specifically, the crash is in vtkDelaunay2D::RecoverEdge() due to > an invalid memory access, but I don't see an obvious underlying cause. > Unfortunately, I'm not sure when I'll have time to debug it further. > > - Cory > > On Wed, Sep 16, 2015 at 2:04 PM, josci <jojo2100@> wrote: > > > Hi Cory Quammen-2, > > > > I although tested the code with the current developer version (6.3 master > > branch). Sadly it gives the same result. > > > > Johannes > > > > > > > > josci wrote > > > Hi Cory Quammen-2, > > > > > > thanks for your reply. If written some code to reproduce the crash: > > > > > > #include > > > > > > ........... > > > > > > > > > Cory Quammen-2 wrote > > >> Hi Johannes, > > >> > > >> Yes, the mailing list is a suitable place for a bug report. > > >> > > >> Thanks, > > >> Cory > > >> > > >> On Wed, Sep 16, 2015 at 8:42 AM, josci < > > > > >> jojo2100@ > > > > >> > wrote: > > >> > > >>> Hi Drak, > > >>> > > >>> where you able to solve your problem? I'm experiencing the same with > > >>> spherical surface read from an stl file. My second geometry is > > generated > > >>> by > > >>> spheresource->trianglefilter. > > >>> > > >>> I'm trying to reproduce this error. If I'm successful doing this I'll > > >>> post > > >>> the stl file and the source code here. > > >>> > > >>> > > >>> Best regards > > >>> > > >>> Johannes > > >>> > > >>> P.s.: Is the mailinglist the proper place for a bug report? > > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5734067.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 4 21:47:21 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Dec 2015 21:47:21 -0500 Subject: [vtkusers] Minimize DICOM data In-Reply-To: <1449271413882-5735329.post@n5.nabble.com> References: <1449271413882-5735329.post@n5.nabble.com> Message-ID: Hi, I'm not sure how this is related to VTK? VTK has some support for reading DICOM images, but no support for writing them, so you wouldn't be able to use VTK to compress DICOM files, for instance. You might consider looking at DCMTK for working with DICOM files http://dicom.offis.de/dcmtk.php.en Cory On Fri, Dec 4, 2015 at 6:23 PM, YassminAbdallah wrote: > Hello, > > i'm working with big DICOM data, and i wondering what the best way to > minimize the size of DICOM data? > > Thanks. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Minimize-DICOM-data-tp5735329.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzfowen at qq.com Sat Dec 5 02:02:54 2015 From: dzfowen at qq.com (=?gb18030?B?tcvXv7fy?=) Date: Sat, 5 Dec 2015 15:02:54 +0800 Subject: [vtkusers] Enlarge dicom's display on iOS Message-ID: Hi developers, Now I have a project on iOS with vtk. I try to read a dicom file to display in iPad. It works, but the size of the dicom image is limited. I try to resize the actor and vtkIOSRenderWindow, but no reaction, the following is my codes, Please help me which method can enlarge the dicom display! vtkObjectFactory::RegisterFactory(vtkRenderingOpenGL2ObjectFactory::New()); NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *basePath = paths.firstObject; std::string fname([basePath UTF8String]); fname += "/dicom/output_1.dcm"; vtkNew reader; reader->SetFileName(fname.data()); vtkNew imageMapper; imageMapper->SetInputConnection(reader->GetOutputPort()); vtkNew imageActor; imageActor->SetMapper(imageMapper.Get()); imageActor->SetDisplayPosition(500, 1000); imageActor->SetHeight(500); imageActor->SetWidth(500); vtkNew renderer; renderer->SetBackground(1,1,1); renderer->GradientBackgroundOn(); renderer->AddActor(imageActor.Get()); vtkIOSRenderWindow *renWin = vtkIOSRenderWindow::New(); renWin->AddRenderer(renderer.Get()); [self setVTKRenderWindow:renWin]; Thank you very much! Bob -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Sat Dec 5 03:35:04 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Sat, 5 Dec 2015 09:35:04 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> Message-ID: <5662A1B8.2060704@gmail.com> Cory, is it possible to change the tick of the axes? Right know using the transform filter is equivalent to the second image. Unfortunately that is not what I would like to have. I think the best way to do this is to change to tick of the Z-Dimension. The image has the dimensions 520x520x47. So the tick for x and y is 1, for z it should be 47/520. I don't want to change the data. Imre Am 04.12.2015 um 20:56 schrieb Cory Quammen: > Imre, > > Your best bet is probably to transform the data itself rather than the > user transform of the actors. > > vtkSmartPointer transformFilter = > vtkSmartPointer::New(); > transformFilter->SetTransform(axis); > transformFilter->SetInputData(); > > HTH, > Cory > > On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki > wrote: > > I have data like this: > http://i.imgur.com/CR2O8Ik.png > and I would like to "stretch" the Z-axis to get more like a cube > visualization. > > I used vtkTransform to transform the axes, but I would change the > data if I do this. I hope you understand what I want to do, e.g. > is there a possibility to change / stretch the ticks of a specific > axis. > > The vtkTransform plot stretches to much: > http://i.imgur.com/DDUW91T.png > The data is deformed > > I use the vtkTransform like this: > vtkSmartPointer axis = > vtkSmartPointer::New(); > axis->Scale(1,1,10); > > dataActor->SetUserTransform(axis); > outlineActor->SetUserTransform(axis); > > I tried using the camera with the vtkTransform, but the only thing > I got from there, was an empty image or I had to zoom out greatly. > > For matlab reference, something like this: > http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true > > Would be nice if you could help me > > Imre > > > Am 03.12.2015 um 22:20 schrieb Imre Goretzki: > > Hey guys > > i'd like to ask you if there's a equivalent method for > vtkRenderWindow for equalizing the axis, just like MATLABs > axis equal. Could vtkAxesActor be helpful? > > I hope you can help > > Thanks > Imre > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sat Dec 5 09:24:49 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sat, 5 Dec 2015 09:24:49 -0500 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> Message-ID: Dave, I think you are talking about this MR: https://gitlab.kitware.com/vtk/vtk/merge_requests/455 Norman tested it and says it solves his issue. I'll work with Joachim to get this merged in before VTK 7. Thanks, Cory On Fri, Dec 4, 2015 at 8:47 PM, David E DeMarle wrote: > There is a current merge request that sounds related. Cory would please > check if it does and let us know. > > > On Wednesday, September 23, 2015, josci wrote: > >> Hi Cory, >> >> thank your for taking a look into this issue. If there is anthing which I >> can contribute to track down this bug, like a "smaller data set (in best >> case reduced to a few triangles)" for example, please let me know. >> >> Johannes >> >> >> >> Hi Johannes, >> >> I can confirm the crash you see with the parameters you cite. The crash >> occurs in the vtkDelaunay2D filter that is used by the boolean operations >> filter. Specifically, the crash is in vtkDelaunay2D::RecoverEdge() due to >> an invalid memory access, but I don't see an obvious underlying cause. >> Unfortunately, I'm not sure when I'll have time to debug it further. >> >> - Cory >> >> On Wed, Sep 16, 2015 at 2:04 PM, josci <jojo2100@> wrote: >> >> > Hi Cory Quammen-2, >> > >> > I although tested the code with the current developer version (6.3 >> master >> > branch). Sadly it gives the same result. >> > >> > Johannes >> > >> > >> > >> > josci wrote >> > > Hi Cory Quammen-2, >> > > >> > > thanks for your reply. If written some code to reproduce the crash: >> > > >> > > #include >> > > >> > > ........... >> > > >> > > >> > > Cory Quammen-2 wrote >> > >> Hi Johannes, >> > >> >> > >> Yes, the mailing list is a suitable place for a bug report. >> > >> >> > >> Thanks, >> > >> Cory >> > >> >> > >> On Wed, Sep 16, 2015 at 8:42 AM, josci < >> > >> > >> jojo2100@ >> > >> > >> > wrote: >> > >> >> > >>> Hi Drak, >> > >>> >> > >>> where you able to solve your problem? I'm experiencing the same with >> > >>> spherical surface read from an stl file. My second geometry is >> > generated >> > >>> by >> > >>> spheresource->trianglefilter. >> > >>> >> > >>> I'm trying to reproduce this error. If I'm successful doing this >> I'll >> > >>> post >> > >>> the stl file and the source code here. >> > >>> >> > >>> >> > >>> Best regards >> > >>> >> > >>> Johannes >> > >>> >> > >>> P.s.: Is the mailinglist the proper place for a bug report? >> >> >> >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5734067.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > -- > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Sat Dec 5 09:32:52 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Sat, 5 Dec 2015 20:02:52 +0530 Subject: [vtkusers] Sharing vtkRenderer? Message-ID: Hello users, Is it possible to share a common vtkRenderer object among multiple vtkRenderWindows? Or is it that each window should have its own renderer? What I need to do is show same actor in different windows but with different projections and viewports. Will sharing a common renderer work in this case? Thanks in advance -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Sat Dec 5 13:15:55 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Sat, 5 Dec 2015 19:15:55 +0100 Subject: [vtkusers] MarchingCubes missunderstandig GenerateValues and Contours Message-ID: <566329DB.7010305@gmail.com> Hey guys, I have a question about the "GenerateValues" method of MarchingCubes. My image has several points that have intensity values that lie between 928 and 1600. My understand of int idxContour = 1; double from = 920; double to = 930; ImageToVTKImageFilter con = ... marchingCube->setInputData(con->GetOutput()); marchingCube->GenerateValues(idxContour, from, to); marchingCube->Update(); is that the algorithm will take all points that have an intensity value that lies between 920 and 930. These points are combined to one contour. Via MATLAB and ITK's histogram I can validate the amout of points that have a specific intensity value. If I plot the points that were generated by marching cubes, I do not get all of them (I cannot see all of them), e.g. the histogram says that there are about 200000 points that have an intensity value 928. If I use 928 as the lower bound for the GenerateValues method, there are just some of them plotted - approximately. Is my understanding of GenerateValues correct? Next question: (more than 1 contour) If I want to generate more than 1 contour. How do I initialize the marchingCube and, more interesting, how do I get the output of a specific contour. I'm thinking about the following: marchingCube->SetNumberOfContours(2); marchingCube->GenerateValues(1, from_1, to_1); marchingCube->GenerateValues(2, from_2, to_2); vtkSmartPointer outline = vtkSmartPointer::New(); outline->SetInputConnection(marchingCube->GetOutput(1)); vtkSmartPointer outlineMapper = vtkSmartPointer::New(); outlineMapper->SetInputConnection(outline->GetOutputPort()); vtkSmartPointer data1 = vtkSmartPointer::New(); data1->SetInputConnection(marchingCube->GetOutput(1)); vtkSmartPointer data2 = vtkSmartPointer::New(); data2->SetInputConnection(marchingCube->GetOutput(2)); I know that the above lines are not working like this, but I actually do not know how to do that. Right now I have 2 marchingCube instances that do the work for data1/data2 but that should not do the trick. I hope you can help me Greetings Imre From rickfrank at me.com Sat Dec 5 12:36:09 2015 From: rickfrank at me.com (Richard Frank) Date: Sat, 05 Dec 2015 12:36:09 -0500 Subject: [vtkusers] 3D axis grid? Message-ID: <2D1204ED-0345-4C1F-97B7-97F7FE2AA1ED@me.com> Hi , I see vtkCubeAxesActor- but is there a way to draw grid lines just in world space surrounding the actors in the scene? I guess like matlab's plot3d etc. Thanks Rick Sent from my iPad From goretzki.imre at gmail.com Sun Dec 6 06:23:04 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Sun, 6 Dec 2015 12:23:04 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <5662A1B8.2060704@gmail.com> References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> <5662A1B8.2060704@gmail.com> Message-ID: <56641A98.4020305@gmail.com> Hey guys, here is a 2D example of what I wanted to do. I think data transformation would not be the correct way of doing this. Am 05.12.2015 um 09:35 schrieb Imre Goretzki: > Cory, > > is it possible to change the tick of the axes? Right know using the > transform filter is equivalent to the second image. Unfortunately that > is not what I would like to have. I think the best way to do this is > to change to tick of the Z-Dimension. > > The image has the dimensions 520x520x47. So the tick for x and y is 1, > for z it should be 47/520. I don't want to change the data. > > Imre > > Am 04.12.2015 um 20:56 schrieb Cory Quammen: >> Imre, >> >> Your best bet is probably to transform the data itself rather than >> the user transform of the actors. >> >> vtkSmartPointer transformFilter = >> vtkSmartPointer::New(); >> transformFilter->SetTransform(axis); >> transformFilter->SetInputData(); >> >> HTH, >> Cory >> >> On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki >> > wrote: >> >> I have data like this: >> http://i.imgur.com/CR2O8Ik.png >> and I would like to "stretch" the Z-axis to get more like a cube >> visualization. >> >> I used vtkTransform to transform the axes, but I would change the >> data if I do this. I hope you understand what I want to do, e.g. >> is there a possibility to change / stretch the ticks of a >> specific axis. >> >> The vtkTransform plot stretches to much: >> http://i.imgur.com/DDUW91T.png >> The data is deformed >> >> I use the vtkTransform like this: >> vtkSmartPointer axis = >> vtkSmartPointer::New(); >> axis->Scale(1,1,10); >> >> dataActor->SetUserTransform(axis); >> outlineActor->SetUserTransform(axis); >> >> I tried using the camera with the vtkTransform, but the only >> thing I got from there, was an empty image or I had to zoom out >> greatly. >> >> For matlab reference, something like this: >> http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true >> >> Would be nice if you could help me >> >> Imre >> >> >> Am 03.12.2015 um 22:20 schrieb Imre Goretzki: >> >> Hey guys >> >> i'd like to ask you if there's a equivalent method for >> vtkRenderWindow for equalizing the axis, just like MATLABs >> axis equal. Could vtkAxesActor be helpful? >> >> I hope you can help >> >> Thanks >> Imre >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 2dexample.png Type: image/png Size: 12636 bytes Desc: not available URL: From M.Kotowicz at ichip.pw.edu.pl Sun Dec 6 05:32:03 2015 From: M.Kotowicz at ichip.pw.edu.pl (=?iso-8859-2?Q?=22Micha=B3_Kotowicz=22?=) Date: Sun, 06 Dec 2015 11:32:03 +0100 Subject: [vtkusers] vtkUnstructuredGrid, Connectivity and Locations are nullptr after setting them with SetCells Message-ID: ?Dear vtk-users, vtk-developers I'm trying to write parallel visualizer with vtkUnstructuredGrid, code sample (cellArray is std::shared_ptr of tbb::concurrent_vector (it contains 8*numCells Id's of points of mesh) and Grids is std::map>) : > Grids[name] = vtkSmartPointer::New(); > > vtkSmartPointer TmpPoints = vtkSmartPointer::New(); > TmpPoints->SetNumberOfPoints(numPts); > > tbb::blocked_range PtsRange(0, numPts, 10000); > tbb::parallel_for(PtsRange, [&](const tbb::blocked_range& r) { > vtkIdType Offset{3*r.begin()}; > for(vtkIdType i = r.begin() ; i < r.end(); ++i, Offset += 3) > { > TmpPoints->SetPoint(i, coords[Offset], coords[Offset+1], coords[Offset+2]); > } > }); > > Grids[name]->SetPoints(TmpPoints.Get()); > > vtkSmartPointer CellsArray = > vtkSmartPointer::New(); > CellsArray->SetNumberOfCells(cellArray->size()/8); > > vtkIdTypeArray* IdArray = CellsArray->GetData(); > IdArray->SetNumberOfComponents(8); > IdArray->SetNumberOfTuples(cellArray->size()/8); > > vtkSmartPointer CellsLocations = > vtkSmartPointer::New(); > CellsLocations->SetNumberOfComponents(1); > CellsLocations->SetNumberOfTuples(cellArray->size()/8); > > vtkSmartPointer CellsTypes = > vtkSmartPointer::New(); > CellsTypes->SetNumberOfComponents(1); > CellsTypes->SetNumberOfTuples(cellArray->size()/8); > > tbb::blocked_range CellsRange(0, cellArray->size(), > HUGE_NUMBER); // I test it in sequential manner > tbb::parallel_for(CellsRange, [&](const tbb::blocked_range& r) { > for(auto offset = r.begin() ; offset < r.end(); offset += 8) > { > > vtkIdType IdList[] { > cellArray->operator[](offset), > cellArray->operator[](offset + 1), > cellArray->operator[](offset + 2), > cellArray->operator[](offset + 3), > cellArray->operator[](offset + 4), > cellArray->operator[](offset + 5), > cellArray->operator[](offset + 6), > cellArray->operator[](offset + 7) > }; > > // Grids[name]->InsertNextCell(12, 8, IdList); // OK, but not parallelizable. > // Grids[name]->GetUnstructuredGrid()->InsertNextCell(12, 8, IdList); // OK, but not parallelizable. > > IdArray->SetTupleValue(offset/8, IdList); > vtkIdType TmpTab[] {offset}; > CellsLocations->SetTupleValue(offset/8, TmpTab); > CellsTypes->SetTuple1(offset/8, 12); > } > }); > // I tested CellsLocations and CellsArray and they contain proper numbers (printed with program and during > // GDB session) > > Grids[name]->GetUnstructuredGrid()->SetCells(CellsTypes.GetPointer(), > CellsLocations.GetPointer(), CellsArray.GetPointer()); > > // Returns nullptr 0oa > vtkIdTypeArray* Tmp = Grids[name]->GetUnstructuredGrid()->GetCellLocationsArray(); > // Returns nullptr 0oa > vtkCellArray* TmpCell = Grids[name]->GetUnstructuredGrid()->GetCells(); > } > So after setting Connectivity and Locations I'm still having empty these members, and when I use vtkXMLUnstructuredGridWriter, only Points, and CellTypes are contained in .vtu file. (connectivity is empty, and locations contains rubish numbers). This function works when I use InsertNextCell but this is not parallelizable. Is it solvable? Thank you for any hint. Best Regards, Kotu -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 09:20:23 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 09:20:23 -0500 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot reliably share actors across different vtkRenderers, so each vtkRenderer should have its own set of actors. - Cory On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil wrote: > Hello users, > > Is it possible to share a common vtkRenderer object among multiple > vtkRenderWindows? Or is it that each window should have its own renderer? > What I need to do is show same actor in different windows but with > different projections and viewports. Will sharing a common renderer work in > this case? > > Thanks in advance > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 10:22:42 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 10:22:42 -0500 Subject: [vtkusers] MarchingCubes missunderstandig GenerateValues and Contours In-Reply-To: <566329DB.7010305@gmail.com> References: <566329DB.7010305@gmail.com> Message-ID: On Sat, Dec 5, 2015 at 1:15 PM, Imre Goretzki wrote: > Hey guys, > > I have a question about the "GenerateValues" method of MarchingCubes. My > image has several points that have intensity values that lie between 928 > and 1600. > > My understand of > > int idxContour = 1; > double from = 920; > double to = 930; > > ImageToVTKImageFilter con = ... > > marchingCube->setInputData(con->GetOutput()); > marchingCube->GenerateValues(idxContour, from, to); > marchingCube->Update(); > > is that the algorithm will take all points that have an intensity value > that lies between 920 and 930. These points are combined to one contour. > Via MATLAB and ITK's histogram I can validate the amout of points that have > a specific intensity value. If I plot the points that were generated by marching cubes, I do not get > all of them (I cannot see all of them), e.g. > the histogram says that there are about 200000 points that have an > intensity value 928. If I use 928 as the lower bound for the GenerateValues > method, there are just some of them plotted - approximately. > > Is my understanding of GenerateValues correct? > Not exactly. vtkMarchingCubes will extract individual isocontours - surfaces that represent the locations in a dataset with a particular value. vtkMarchingCubes and other isocontour filters in VTK can generate surfaces from more than one isovalue. GenerateValues() is a convenience function to specify a range of isovalues. A vtkThreshold filter will extract all points in the dataset in a value range and may be what you want. > Next question: (more than 1 contour) > > If I want to generate more than 1 contour. How do I initialize the > marchingCube and, more interesting, how do I get the output of a specific > contour. I'm thinking about the following: > > > marchingCube->SetNumberOfContours(2); > marchingCube->GenerateValues(1, from_1, to_1); > marchingCube->GenerateValues(2, from_2, to_2); > > vtkSmartPointer outline = > vtkSmartPointer::New(); > outline->SetInputConnection(marchingCube->GetOutput(1)); > > vtkSmartPointer outlineMapper = > vtkSmartPointer::New(); > outlineMapper->SetInputConnection(outline->GetOutputPort()); > > vtkSmartPointer data1 = > vtkSmartPointer::New(); > data1->SetInputConnection(marchingCube->GetOutput(1)); > > vtkSmartPointer data2 = > vtkSmartPointer::New(); > data2->SetInputConnection(marchingCube->GetOutput(2)); > > I know that the above lines are not working like this, but I actually do > not know how to do that. Right now I have 2 marchingCube instances that do > the work for data1/data2 but that should not do the trick. > You can't set up two different isocontour surfaces and get two different outputs this way. Using two separate vtkMarchingCubes instances is the right way to go. HTH, Cory > > I hope you can help me > > Greetings > Imre > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 10:28:42 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 10:28:42 -0500 Subject: [vtkusers] 3D axis grid? In-Reply-To: <2D1204ED-0345-4C1F-97B7-97F7FE2AA1ED@me.com> References: <2D1204ED-0345-4C1F-97B7-97F7FE2AA1ED@me.com> Message-ID: Hi Rick, Are you looking for a convenience function somewhere that just automatically adds axes to the scene? There isn't one that I know of. If you are looking for a convenience function to get the bounds of all visible actors in a scene, see the member function vtkRenderer::ComputeVisiblePropBounds(double bounds[6]) [1]. HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkRenderer.html#aead36ed0d8a0c09987d42ab0ca8e2da8 On Sat, Dec 5, 2015 at 12:36 PM, Richard Frank wrote: > > Hi , > > I see vtkCubeAxesActor- but is there a way to draw grid lines just in > world space surrounding the actors in the scene? > > I guess like matlab's plot3d etc. > > Thanks > > Rick > Sent from my iPad > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Sun Dec 6 10:44:11 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Sun, 6 Dec 2015 16:44:11 +0100 Subject: [vtkusers] MarchingCubes missunderstandig GenerateValues and Contours In-Reply-To: References: <566329DB.7010305@gmail.com> Message-ID: <566457CB.8030203@gmail.com> Thank you Cory, I implemented the vtkThreshold today, now it is working fine. Imre Am 06.12.2015 um 16:22 schrieb Cory Quammen: > On Sat, Dec 5, 2015 at 1:15 PM, Imre Goretzki > wrote: > > Hey guys, > > I have a question about the "GenerateValues" method of > MarchingCubes. My image has several points that have intensity > values that lie between 928 and 1600. > > My understand of > > int idxContour = 1; > double from = 920; > double to = 930; > > ImageToVTKImageFilter con = ... > > marchingCube->setInputData(con->GetOutput()); > marchingCube->GenerateValues(idxContour, from, to); > marchingCube->Update(); > > is that the algorithm will take all points that have an intensity > value that lies between 920 and 930. These points are combined to > one contour. Via MATLAB and ITK's histogram I can validate the > amout of points that have a specific intensity value. > > If I plot the points that were generated by marching cubes, I do > not get all of them (I cannot see all of them), e.g. > the histogram says that there are about 200000 points that have an > intensity value 928. If I use 928 as the lower bound for the > GenerateValues method, there are just some of them plotted - > approximately. > > Is my understanding of GenerateValues correct? > > Not exactly. vtkMarchingCubes will extract individual isocontours - > surfaces that represent the locations in a dataset with a particular > value. vtkMarchingCubes and other isocontour filters in VTK can > generate surfaces from more than one isovalue. GenerateValues() is a > convenience function to specify a range of isovalues. > > A vtkThreshold filter will extract all points in the dataset in a > value range and may be what you want. > > Next question: (more than 1 contour) > > If I want to generate more than 1 contour. How do I initialize the > marchingCube and, more interesting, how do I get the output of a > specific contour. I'm thinking about the following: > > > marchingCube->SetNumberOfContours(2); > marchingCube->GenerateValues(1, from_1, to_1); > marchingCube->GenerateValues(2, from_2, to_2); > > vtkSmartPointer outline = > vtkSmartPointer::New(); > outline->SetInputConnection(marchingCube->GetOutput(1)); > > vtkSmartPointer outlineMapper = > vtkSmartPointer::New(); > outlineMapper->SetInputConnection(outline->GetOutputPort()); > > vtkSmartPointer data1 = > vtkSmartPointer::New(); > data1->SetInputConnection(marchingCube->GetOutput(1)); > > vtkSmartPointer data2 = > vtkSmartPointer::New(); > data2->SetInputConnection(marchingCube->GetOutput(2)); > > I know that the above lines are not working like this, but I > actually do not know how to do that. Right now I have 2 > marchingCube instances that do the work for data1/data2 but that > should not do the trick. > > > You can't set up two different isocontour surfaces and get two > different outputs this way. Using two separate vtkMarchingCubes > instances is the right way to go. > > HTH, > Cory > > > I hope you can help me > > Greetings > Imre > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 11:04:42 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 11:04:42 -0500 Subject: [vtkusers] MarchingCubes missunderstandig GenerateValues and Contours In-Reply-To: <566457CB.8030203@gmail.com> References: <566329DB.7010305@gmail.com> <566457CB.8030203@gmail.com> Message-ID: Great! On Sun, Dec 6, 2015 at 10:44 AM, Imre Goretzki wrote: > Thank you Cory, > > I implemented the vtkThreshold today, now it is working fine. > > Imre > > > Am 06.12.2015 um 16:22 schrieb Cory Quammen: > > On Sat, Dec 5, 2015 at 1:15 PM, Imre Goretzki > wrote: > >> Hey guys, >> >> I have a question about the "GenerateValues" method of MarchingCubes. My >> image has several points that have intensity values that lie between 928 >> and 1600. >> >> My understand of >> >> int idxContour = 1; >> double from = 920; >> double to = 930; >> >> ImageToVTKImageFilter con = ... >> >> marchingCube->setInputData(con->GetOutput()); >> marchingCube->GenerateValues(idxContour, from, to); >> marchingCube->Update(); >> >> is that the algorithm will take all points that have an intensity value >> that lies between 920 and 930. These points are combined to one contour. >> Via MATLAB and ITK's histogram I can validate the amout of points that have >> a specific intensity value. > > > > If I plot the points that were generated by marching cubes, I do not get >> all of them (I cannot see all of them), e.g. >> the histogram says that there are about 200000 points that have an >> intensity value 928. If I use 928 as the lower bound for the GenerateValues >> method, there are just some of them plotted - approximately. >> >> Is my understanding of GenerateValues correct? >> > > Not exactly. vtkMarchingCubes will extract individual isocontours - > surfaces that represent the locations in a dataset with a particular value. > vtkMarchingCubes and other isocontour filters in VTK can generate surfaces > from more than one isovalue. GenerateValues() is a convenience function to > specify a range of isovalues. > > A vtkThreshold filter will extract all points in the dataset in a value > range and may be what you want. > > >> Next question: (more than 1 contour) >> >> If I want to generate more than 1 contour. How do I initialize the >> marchingCube and, more interesting, how do I get the output of a specific >> contour. I'm thinking about the following: >> >> >> marchingCube->SetNumberOfContours(2); >> marchingCube->GenerateValues(1, from_1, to_1); >> marchingCube->GenerateValues(2, from_2, to_2); >> >> vtkSmartPointer outline = >> vtkSmartPointer::New(); >> outline->SetInputConnection(marchingCube->GetOutput(1)); >> >> vtkSmartPointer outlineMapper = >> vtkSmartPointer::New(); >> outlineMapper->SetInputConnection(outline->GetOutputPort()); >> >> vtkSmartPointer data1 = >> vtkSmartPointer::New(); >> data1->SetInputConnection(marchingCube->GetOutput(1)); >> >> vtkSmartPointer data2 = >> vtkSmartPointer::New(); >> data2->SetInputConnection(marchingCube->GetOutput(2)); >> >> I know that the above lines are not working like this, but I actually do >> not know how to do that. Right now I have 2 marchingCube instances that do >> the work for data1/data2 but that should not do the trick. >> > > You can't set up two different isocontour surfaces and get two different > outputs this way. Using two separate vtkMarchingCubes instances is the > right way to go. > > HTH, > Cory > > >> >> I hope you can help me >> >> Greetings >> Imre >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 11:38:25 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 11:38:25 -0500 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <56641A98.4020305@gmail.com> References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> <5662A1B8.2060704@gmail.com> <56641A98.4020305@gmail.com> Message-ID: Imre, Have you looked at the charting API, e.g., vtkChartXYZ? I don't know if that does exactly what you want, but it may be more in line with what you are after. - Cory On Sun, Dec 6, 2015 at 6:23 AM, Imre Goretzki wrote: > Hey guys, > > here is a 2D example of what I wanted to do. I think data transformation > would not be the correct way of doing this. > > > > Am 05.12.2015 um 09:35 schrieb Imre Goretzki: > > Cory, > > is it possible to change the tick of the axes? Right know using the > transform filter is equivalent to the second image. Unfortunately that is > not what I would like to have. I think the best way to do this is to change > to tick of the Z-Dimension. > > The image has the dimensions 520x520x47. So the tick for x and y is 1, for > z it should be 47/520. I don't want to change the data. > > Imre > > Am 04.12.2015 um 20:56 schrieb Cory Quammen: > > Imre, > > Your best bet is probably to transform the data itself rather than the > user transform of the actors. > > vtkSmartPointer transformFilter = > vtkSmartPointer::New(); > transformFilter->SetTransform(axis); > transformFilter->SetInputData(); > > HTH, > Cory > > On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki > wrote: > >> I have data like this: >> http://i.imgur.com/CR2O8Ik.png >> and I would like to "stretch" the Z-axis to get more like a cube >> visualization. >> >> I used vtkTransform to transform the axes, but I would change the data if >> I do this. I hope you understand what I want to do, e.g. is there a >> possibility to change / stretch the ticks of a specific axis. >> >> The vtkTransform plot stretches to much: >> http://i.imgur.com/DDUW91T.png >> The data is deformed >> >> I use the vtkTransform like this: >> vtkSmartPointer axis = vtkSmartPointer::New(); >> axis->Scale(1,1,10); >> >> dataActor->SetUserTransform(axis); >> outlineActor->SetUserTransform(axis); >> >> I tried using the camera with the vtkTransform, but the only thing I got >> from there, was an empty image or I had to zoom out greatly. >> >> For matlab reference, something like this: >> http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true >> >> Would be nice if you could help me >> >> Imre >> >> >> Am 03.12.2015 um 22:20 schrieb Imre Goretzki: >> >>> Hey guys >>> >>> i'd like to ask you if there's a equivalent method for vtkRenderWindow >>> for equalizing the axis, just like MATLABs axis equal. Could vtkAxesActor >>> be helpful? >>> >>> I hope you can help >>> >>> Thanks >>> Imre >>> >>> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > > > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Sun Dec 6 11:48:14 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Sun, 6 Dec 2015 17:48:14 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> <5662A1B8.2060704@gmail.com> <56641A98.4020305@gmail.com> Message-ID: <566466CE.6090405@gmail.com> No I have not. Thank you. If I am having troubles or if that is not the plot that I am looking for, I respond again. Am 06.12.2015 um 17:38 schrieb Cory Quammen: > Imre, > > Have you looked at the charting API, e.g., vtkChartXYZ? I don't know > if that does exactly what you want, but it may be more in line with > what you are after. > > - Cory > > On Sun, Dec 6, 2015 at 6:23 AM, Imre Goretzki > wrote: > > Hey guys, > > here is a 2D example of what I wanted to do. I think data > transformation would not be the correct way of doing this. > > > > Am 05.12.2015 um 09:35 schrieb Imre Goretzki: >> Cory, >> >> is it possible to change the tick of the axes? Right know using >> the transform filter is equivalent to the second image. >> Unfortunately that is not what I would like to have. I think the >> best way to do this is to change to tick of the Z-Dimension. >> >> The image has the dimensions 520x520x47. So the tick for x and y >> is 1, for z it should be 47/520. I don't want to change the data. >> >> Imre >> >> Am 04.12.2015 um 20:56 schrieb Cory Quammen: >>> Imre, >>> >>> Your best bet is probably to transform the data itself rather >>> than the user transform of the actors. >>> >>> vtkSmartPointer transformFilter = >>> vtkSmartPointer::New(); >>> transformFilter->SetTransform(axis); >>> transformFilter->SetInputData(); >>> >>> HTH, >>> Cory >>> >>> On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki >>> > wrote: >>> >>> I have data like this: >>> http://i.imgur.com/CR2O8Ik.png >>> and I would like to "stretch" the Z-axis to get more like a >>> cube visualization. >>> >>> I used vtkTransform to transform the axes, but I would >>> change the data if I do this. I hope you understand what I >>> want to do, e.g. is there a possibility to change / stretch >>> the ticks of a specific axis. >>> >>> The vtkTransform plot stretches to much: >>> http://i.imgur.com/DDUW91T.png >>> The data is deformed >>> >>> I use the vtkTransform like this: >>> vtkSmartPointer axis = >>> vtkSmartPointer::New(); >>> axis->Scale(1,1,10); >>> >>> dataActor->SetUserTransform(axis); >>> outlineActor->SetUserTransform(axis); >>> >>> I tried using the camera with the vtkTransform, but the only >>> thing I got from there, was an empty image or I had to zoom >>> out greatly. >>> >>> For matlab reference, something like this: >>> http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true >>> >>> Would be nice if you could help me >>> >>> Imre >>> >>> >>> Am 03.12.2015 um 22:20 schrieb Imre Goretzki: >>> >>> Hey guys >>> >>> i'd like to ask you if there's a equivalent method for >>> vtkRenderWindow for equalizing the axis, just like >>> MATLABs axis equal. Could vtkAxesActor be helpful? >>> >>> I hope you can help >>> >>> Thanks >>> Imre >>> >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >> > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From laysrodriguessilva at gmail.com Sun Dec 6 19:46:02 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Sun, 6 Dec 2015 22:46:02 -0200 Subject: [vtkusers] Problem With Linux+Nvidia Cuda Message-ID: Hi guys! Some friends are trying to compile my project, which has VTK code, but in notebooks with graphics cards using Nvidia CUDA, the project does not run. Is there any native problem of VTK with Nvidia cards? Because even uninstalling CUDA, keeps giving error. I dont have a printscreen of this error, i'm waiting for my friends send to me, but for now i would like to discuss about... Thanks! -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 22:26:05 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 22:26:05 -0500 Subject: [vtkusers] Problem With Linux+Nvidia Cuda In-Reply-To: References: Message-ID: By "not run", do you mean the project doesn't compile? I have had problems compiling CUDA code in projects that use VTK when the VTK include directory (-I) options are handed to nvcc because of nvcc's command-line length limit. This definitely happens on Windows, and may happen on other platforms as well. On Sun, Dec 6, 2015 at 7:46 PM, Lays Rodrigues wrote: > Hi guys! > Some friends are trying to compile my project, which has VTK code, but in > notebooks with graphics cards using Nvidia CUDA, the project does not run. > Is there any native problem of VTK with Nvidia cards? > Because even uninstalling CUDA, keeps giving error. I dont have a > printscreen of this error, i'm waiting for my friends send to me, but for > now i would like to discuss about... > Thanks! > > -- > __ > *Lays Rodrigues* > *Front-End Developer at Br-Print3D Project(KDE)* > *Computer Science Student at UFF/PURO* > Organizadora da Semana da Computa??o UFF-PURO > www.facebook.com/semanacomputacaopuro > www.facebook.com/brprint3d > www.brprint3d.wordpress.com > > > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Sun Dec 6 22:50:20 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Mon, 7 Dec 2015 09:20:20 +0530 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: Hi, Thanks for your reply. It's just a question. Can't I share actors created by smart pointer across multiple renderers. ? On Sunday, December 6, 2015, Cory Quammen wrote: > Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot > reliably share actors across different vtkRenderers, so each vtkRenderer > should have its own set of actors. > > - Cory > > On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil > wrote: > >> Hello users, >> >> Is it possible to share a common vtkRenderer object among multiple >> vtkRenderWindows? Or is it that each window should have its own renderer? >> What I need to do is show same actor in different windows but with >> different projections and viewports. Will sharing a common renderer work in >> this case? >> >> Thanks in advance >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Sun Dec 6 23:29:20 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sun, 6 Dec 2015 23:29:20 -0500 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: Actors store some OpenGL state in the mappers they use. While it appears to be possible to share some kinds of OpenGL state among the different OpenGL contexts in the render windows, VTK is not designed with this in mind. Hence, it is safest to have different actors for different renderers. HTH, Cory On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil wrote: > Hi, > > Thanks for your reply. It's just a question. Can't I share actors created > by smart pointer across multiple renderers. ? > > > On Sunday, December 6, 2015, Cory Quammen > wrote: > >> Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot >> reliably share actors across different vtkRenderers, so each vtkRenderer >> should have its own set of actors. >> >> - Cory >> >> On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil >> wrote: >> >>> Hello users, >>> >>> Is it possible to share a common vtkRenderer object among multiple >>> vtkRenderWindows? Or is it that each window should have its own renderer? >>> What I need to do is show same actor in different windows but with >>> different projections and viewports. Will sharing a common renderer work in >>> this case? >>> >>> Thanks in advance >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Sun Dec 6 23:52:46 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Mon, 7 Dec 2015 10:22:46 +0530 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: So you mean to say that, in an application if I have 4 windows, each window will have its own vtkRenderWindow, and each vtkRenderWindow will have its own renderer. Each renderer will have its own set of actors. This means there would exist duplicate dataset right. ? Maybe this is next issue, how to handle single dataset among multiple windows. Does this query need a new thread.? Thanks On Monday, December 7, 2015, Cory Quammen wrote: > Actors store some OpenGL state in the mappers they use. While it appears > to be possible to share some kinds of OpenGL state among the different > OpenGL contexts in the render windows, VTK is not designed with this in > mind. Hence, it is safest to have different actors for different renderers. > > HTH, > Cory > > On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil > wrote: > >> Hi, >> >> Thanks for your reply. It's just a question. Can't I share actors created >> by smart pointer across multiple renderers. ? >> >> >> On Sunday, December 6, 2015, Cory Quammen > > wrote: >> >>> Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot >>> reliably share actors across different vtkRenderers, so each vtkRenderer >>> should have its own set of actors. >>> >>> - Cory >>> >>> On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil >>> wrote: >>> >>>> Hello users, >>>> >>>> Is it possible to share a common vtkRenderer object among multiple >>>> vtkRenderWindows? Or is it that each window should have its own renderer? >>>> What I need to do is show same actor in different windows but with >>>> different projections and viewports. Will sharing a common renderer work in >>>> this case? >>>> >>>> Thanks in advance >>>> >>>> _______________________________________________ >>>> 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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >>> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Dec 7 00:06:13 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 7 Dec 2015 00:06:13 -0500 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: You'll also need different mappers for the different windows. You can share the data set among the different windows - no need to duplicate. This is because the data model classes do not have any OpenGL context-dependent state. - Cory On Sun, Dec 6, 2015 at 11:52 PM, rakesh patil wrote: > So you mean to say that, in an application if I have 4 windows, each > window will have its own vtkRenderWindow, and each vtkRenderWindow will > have its own renderer. Each renderer will have its own set of actors. This > means there would exist duplicate dataset right. ? Maybe this is next > issue, how to handle single dataset among multiple windows. Does this query > need a new thread.? > > Thanks > > > On Monday, December 7, 2015, Cory Quammen > wrote: > >> Actors store some OpenGL state in the mappers they use. While it appears >> to be possible to share some kinds of OpenGL state among the different >> OpenGL contexts in the render windows, VTK is not designed with this in >> mind. Hence, it is safest to have different actors for different renderers. >> >> HTH, >> Cory >> >> On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil >> wrote: >> >>> Hi, >>> >>> Thanks for your reply. It's just a question. Can't I share actors >>> created by smart pointer across multiple renderers. ? >>> >>> >>> On Sunday, December 6, 2015, Cory Quammen >>> wrote: >>> >>>> Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot >>>> reliably share actors across different vtkRenderers, so each vtkRenderer >>>> should have its own set of actors. >>>> >>>> - Cory >>>> >>>> On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil >>> > wrote: >>>> >>>>> Hello users, >>>>> >>>>> Is it possible to share a common vtkRenderer object among multiple >>>>> vtkRenderWindows? Or is it that each window should have its own renderer? >>>>> What I need to do is show same actor in different windows but with >>>>> different projections and viewports. Will sharing a common renderer work in >>>>> this case? >>>>> >>>>> Thanks in advance >>>>> >>>>> _______________________________________________ >>>>> 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: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> R&D Engineer >>>> Kitware, Inc. >>>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Mon Dec 7 00:52:43 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Mon, 7 Dec 2015 11:22:43 +0530 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: Yes, so I have a common vtkpolydata shared among the four windows. Also this data will reside in all the mappers/actors right. .? Won't it be a duplicate. ? Thanks On Monday, December 7, 2015, Cory Quammen wrote: > You'll also need different mappers for the different windows. > > You can share the data set among the different windows - no need to > duplicate. This is because the data model classes do not have any OpenGL > context-dependent state. > > - Cory > > On Sun, Dec 6, 2015 at 11:52 PM, rakesh patil > wrote: > >> So you mean to say that, in an application if I have 4 windows, each >> window will have its own vtkRenderWindow, and each vtkRenderWindow will >> have its own renderer. Each renderer will have its own set of actors. This >> means there would exist duplicate dataset right. ? Maybe this is next >> issue, how to handle single dataset among multiple windows. Does this query >> need a new thread.? >> >> Thanks >> >> >> On Monday, December 7, 2015, Cory Quammen > > wrote: >> >>> Actors store some OpenGL state in the mappers they use. While it appears >>> to be possible to share some kinds of OpenGL state among the different >>> OpenGL contexts in the render windows, VTK is not designed with this in >>> mind. Hence, it is safest to have different actors for different renderers. >>> >>> HTH, >>> Cory >>> >>> On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil >> > wrote: >>> >>>> Hi, >>>> >>>> Thanks for your reply. It's just a question. Can't I share actors >>>> created by smart pointer across multiple renderers. ? >>>> >>>> >>>> On Sunday, December 6, 2015, Cory Quammen >>>> wrote: >>>> >>>>> Each vtkRenderWindow should have its own vtkRenderer. Also, you cannot >>>>> reliably share actors across different vtkRenderers, so each vtkRenderer >>>>> should have its own set of actors. >>>>> >>>>> - Cory >>>>> >>>>> On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil < >>>>> prakeshofficial at gmail.com> wrote: >>>>> >>>>>> Hello users, >>>>>> >>>>>> Is it possible to share a common vtkRenderer object among multiple >>>>>> vtkRenderWindows? Or is it that each window should have its own renderer? >>>>>> What I need to do is show same actor in different windows but with >>>>>> different projections and viewports. Will sharing a common renderer work in >>>>>> this case? >>>>>> >>>>>> Thanks in advance >>>>>> >>>>>> _______________________________________________ >>>>>> 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: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> Cory Quammen >>>>> R&D Engineer >>>>> Kitware, Inc. >>>>> >>>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >>> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From yihui.cao at qq.com Mon Dec 7 04:49:38 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Mon, 7 Dec 2015 17:49:38 +0800 Subject: [vtkusers] How to turn off the ColorLevel change function when show an image based on vtkImageViewer2 class? Message-ID: Hi all, When I used the vtkImageViewer2 class show an image. Left button down and move, the ColorLevel is changing. How to turn off this? Sincerely, Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Dec 7 09:06:12 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 7 Dec 2015 09:06:12 -0500 Subject: [vtkusers] Sharing vtkRenderer? In-Reply-To: References: Message-ID: No, you will be passing a pointer to the same data to all of the mappers. The data itself isn't duplicated when you pass a pointer to it to the mapper. On Mon, Dec 7, 2015 at 12:52 AM, rakesh patil wrote: > Yes, so I have a common vtkpolydata shared among the four windows. Also > this data will reside in all the mappers/actors right. .? Won't it be a > duplicate. ? > > Thanks > > On Monday, December 7, 2015, Cory Quammen > wrote: > >> You'll also need different mappers for the different windows. >> >> You can share the data set among the different windows - no need to >> duplicate. This is because the data model classes do not have any OpenGL >> context-dependent state. >> >> - Cory >> >> On Sun, Dec 6, 2015 at 11:52 PM, rakesh patil >> wrote: >> >>> So you mean to say that, in an application if I have 4 windows, each >>> window will have its own vtkRenderWindow, and each vtkRenderWindow will >>> have its own renderer. Each renderer will have its own set of actors. This >>> means there would exist duplicate dataset right. ? Maybe this is next >>> issue, how to handle single dataset among multiple windows. Does this query >>> need a new thread.? >>> >>> Thanks >>> >>> >>> On Monday, December 7, 2015, Cory Quammen >>> wrote: >>> >>>> Actors store some OpenGL state in the mappers they use. While it >>>> appears to be possible to share some kinds of OpenGL state among the >>>> different OpenGL contexts in the render windows, VTK is not designed with >>>> this in mind. Hence, it is safest to have different actors for different >>>> renderers. >>>> >>>> HTH, >>>> Cory >>>> >>>> On Sun, Dec 6, 2015 at 10:50 PM, rakesh patil < >>>> prakeshofficial at gmail.com> wrote: >>>> >>>>> Hi, >>>>> >>>>> Thanks for your reply. It's just a question. Can't I share actors >>>>> created by smart pointer across multiple renderers. ? >>>>> >>>>> >>>>> On Sunday, December 6, 2015, Cory Quammen >>>>> wrote: >>>>> >>>>>> Each vtkRenderWindow should have its own vtkRenderer. Also, you >>>>>> cannot reliably share actors across different vtkRenderers, so each >>>>>> vtkRenderer should have its own set of actors. >>>>>> >>>>>> - Cory >>>>>> >>>>>> On Sat, Dec 5, 2015 at 9:32 AM, rakesh patil < >>>>>> prakeshofficial at gmail.com> wrote: >>>>>> >>>>>>> Hello users, >>>>>>> >>>>>>> Is it possible to share a common vtkRenderer object among multiple >>>>>>> vtkRenderWindows? Or is it that each window should have its own renderer? >>>>>>> What I need to do is show same actor in different windows but with >>>>>>> different projections and viewports. Will sharing a common renderer work in >>>>>>> this case? >>>>>>> >>>>>>> Thanks in advance >>>>>>> >>>>>>> _______________________________________________ >>>>>>> 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: >>>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>>> >>>>>>> >>>>>> >>>>>> >>>>>> -- >>>>>> Cory Quammen >>>>>> R&D Engineer >>>>>> Kitware, Inc. >>>>>> >>>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> R&D Engineer >>>> Kitware, Inc. >>>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Dec 7 09:15:35 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 7 Dec 2015 09:15:35 -0500 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> Message-ID: Hi all, The fix in question has been merged into VTK master. It will be available in VTK 7. Cheers, Cory On Sat, Dec 5, 2015 at 9:24 AM, Cory Quammen wrote: > Dave, > > I think you are talking about this MR: > https://gitlab.kitware.com/vtk/vtk/merge_requests/455 > > Norman tested it and says it solves his issue. > > I'll work with Joachim to get this merged in before VTK 7. > > Thanks, > Cory > > On Fri, Dec 4, 2015 at 8:47 PM, David E DeMarle > wrote: > >> There is a current merge request that sounds related. Cory would please >> check if it does and let us know. >> >> >> On Wednesday, September 23, 2015, josci wrote: >> >>> Hi Cory, >>> >>> thank your for taking a look into this issue. If there is anthing which I >>> can contribute to track down this bug, like a "smaller data set (in best >>> case reduced to a few triangles)" for example, please let me know. >>> >>> Johannes >>> >>> >>> >>> Hi Johannes, >>> >>> I can confirm the crash you see with the parameters you cite. The crash >>> occurs in the vtkDelaunay2D filter that is used by the boolean operations >>> filter. Specifically, the crash is in vtkDelaunay2D::RecoverEdge() due to >>> an invalid memory access, but I don't see an obvious underlying cause. >>> Unfortunately, I'm not sure when I'll have time to debug it further. >>> >>> - Cory >>> >>> On Wed, Sep 16, 2015 at 2:04 PM, josci <jojo2100@> wrote: >>> >>> > Hi Cory Quammen-2, >>> > >>> > I although tested the code with the current developer version (6.3 >>> master >>> > branch). Sadly it gives the same result. >>> > >>> > Johannes >>> > >>> > >>> > >>> > josci wrote >>> > > Hi Cory Quammen-2, >>> > > >>> > > thanks for your reply. If written some code to reproduce the crash: >>> > > >>> > > #include >>> > > >>> > > ........... >>> > > >>> > > >>> > > Cory Quammen-2 wrote >>> > >> Hi Johannes, >>> > >> >>> > >> Yes, the mailing list is a suitable place for a bug report. >>> > >> >>> > >> Thanks, >>> > >> Cory >>> > >> >>> > >> On Wed, Sep 16, 2015 at 8:42 AM, josci < >>> > >>> > >> jojo2100@ >>> > >>> > >> > wrote: >>> > >> >>> > >>> Hi Drak, >>> > >>> >>> > >>> where you able to solve your problem? I'm experiencing the same >>> with >>> > >>> spherical surface read from an stl file. My second geometry is >>> > generated >>> > >>> by >>> > >>> spheresource->trianglefilter. >>> > >>> >>> > >>> I'm trying to reproduce this error. If I'm successful doing this >>> I'll >>> > >>> post >>> > >>> the stl file and the source code here. >>> > >>> >>> > >>> >>> > >>> Best regards >>> > >>> >>> > >>> Johannes >>> > >>> >>> > >>> P.s.: Is the mailinglist the proper place for a bug report? >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5734067.html >>> Sent from the VTK - Users mailing list archive at Nabble.com. >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> -- >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Dec 7 09:38:31 2015 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 7 Dec 2015 09:38:31 -0500 Subject: [vtkusers] How to remove vtk's dependencies on libX11 and libGL? In-Reply-To: <3246365.R3rEt05aN7@localhost.localdomain> References: <3246365.R3rEt05aN7@localhost.localdomain> Message-ID: On VTK master you can select the "None" backend for rendering. I'm not sure if that gets rid of all the X11/OpenGL references though. That would be my first suggestion to try if you have not already. Thanks Ken On Fri, Dec 4, 2015 at 6:21 PM, Mark Hammons wrote: > Is there any way to rip these dependencies out? The application I'm > supporting is headless and the hardware has no 3d graphics support period, > and I'd like to statically compile the binary against vtk and ITK except > the x11 and GL dependencies are giving me trouble. > > > ------------------------------ > > Mark Hammons - +33 06 03 69 56 56 > > Research Engineer @ BioEmergences > > Lab Phone: 01 69 82 34 19 > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 chuck.atkins at kitware.com Mon Dec 7 09:51:37 2015 From: chuck.atkins at kitware.com (Chuck Atkins) Date: Mon, 7 Dec 2015 09:51:37 -0500 Subject: [vtkusers] vtkPNGWriter() Png 10 bit In-Reply-To: References: Message-ID: Hi Pedro, The vtkPNGWriter supports either 8-bit or 16-bit integral components with 1, 2, 3, or 4 channels (gray, gray+alpha, rgb, and rgb+alpha). If your vtkImageData uses unsigned short as it's scalar type then the full range should get saved, so it won't be 10-bit but it will be 16-bit and you'll still get all your pixels data correct. That being said, both the PNG spec and libpng only allow for bitdepths of 1, 2, 4, 8, and 16, so a 16-bit PNG is the best you'll probably get. I wouldn't worry about the "wasted space" from the extra bits as compression should drop that to effectively nothing. The consuming application would just need to be aware of the reduced sample range, i.e. [0:1023] instead of [0:65535]. - Chuck On Thu, Dec 3, 2015 at 4:52 PM, Pedro Paulo wrote: > Hi, is there an way to save a png 10 bit file through vtk > using vtkPNGWriter() or other way? > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From chuck.atkins at kitware.com Mon Dec 7 10:01:14 2015 From: chuck.atkins at kitware.com (Chuck Atkins) Date: Mon, 7 Dec 2015 10:01:14 -0500 Subject: [vtkusers] How to remove vtk's dependencies on libX11 and libGL? In-Reply-To: References: <3246365.R3rEt05aN7@localhost.localdomain> Message-ID: Hi Mark, This is common configuration we use to deploy on HPC clusters. Typically we will configure VTK with -DVTK_USE_X=OFF and -DVTK_USE_OSMESA=ON. You can build your own static libOSMesa.a to link against so you can still get rendering (albeit slower CPU based rendering) without any X11 dependencies or shared libraries. - Chuck On Mon, Dec 7, 2015 at 9:38 AM, Ken Martin wrote: > On VTK master you can select the "None" backend for rendering. I'm not > sure if that gets rid of all the X11/OpenGL references though. That would > be my first suggestion to try if you have not already. > > Thanks > Ken > > On Fri, Dec 4, 2015 at 6:21 PM, Mark Hammons < > mark.hammons at inaf.cnrs-gif.fr> wrote: > >> Is there any way to rip these dependencies out? The application I'm >> supporting is headless and the hardware has no 3d graphics support period, >> and I'd like to statically compile the binary against vtk and ITK except >> the x11 and GL dependencies are giving me trouble. >> >> >> ------------------------------ >> >> Mark Hammons - +33 06 03 69 56 56 >> >> Research Engineer @ BioEmergences >> >> Lab Phone: 01 69 82 34 19 >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From updega2 at berkeley.edu Mon Dec 7 10:45:42 2015 From: updega2 at berkeley.edu (updega2) Date: Mon, 7 Dec 2015 08:45:42 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> Message-ID: <1449503142725-5735363.post@n5.nabble.com> Hi all, Looking at this post, I think now is a good time to mention that I have been working on an alternate boolean operation. I realize this was more an issue with Delaunay 2D, and I actually noticed some of the Delaunay 2D problems while working on this new boolean, and I worked with Joachim to get those issues fixed. I have just recently finished it up, and I figured maybe it could be added as a second boolean operation in vtk? It created a very similar vtkIntersectionPolyDataFilter with a couple small differences. The boolean however is more similar to the GTS implementation to identify boolean regions instead of a signed distance algorithm. This improves the speed and quality, and also allows open surface booleans. I have created a fork, and I have started to clean up the code for vtk format. If this sounds helpful and something that might be possible, let me know! Thanks! Adam Updegrove -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735363.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Dec 7 10:50:48 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 7 Dec 2015 10:50:48 -0500 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1449503142725-5735363.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> <1449503142725-5735363.post@n5.nabble.com> Message-ID: I'm happy to look into alternate, more robust implementations. Thanks, Cory On Mon, Dec 7, 2015 at 10:45 AM, updega2 wrote: > Hi all, > > Looking at this post, I think now is a good time to mention that I have > been > working on an alternate boolean operation. I realize this was more an issue > with Delaunay 2D, and I actually noticed some of the Delaunay 2D problems > while working on this new boolean, and I worked with Joachim to get those > issues fixed. > > I have just recently finished it up, and I figured maybe it could be added > as a second boolean operation in vtk? It created a very similar > vtkIntersectionPolyDataFilter with a couple small differences. The boolean > however is more similar to the GTS implementation to identify boolean > regions instead of a signed distance algorithm. This improves the speed and > quality, and also allows open surface booleans. > > I have created a fork, and I have started to clean up the code for vtk > format. If this sounds helpful and something that might be possible, let me > know! > > Thanks! > > Adam Updegrove > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735363.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 7 10:46:02 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 7 Dec 2015 15:46:02 +0000 Subject: [vtkusers] volume rendering and animation Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EA3C@neocoilexch01> Hello, I have 3D cardiac MRI data (4D including time domain). I can display volume rendering of the data using vtkSmartVolumeMapper. When I tried to do animation (CINE) by changing actors every time TimerEvent occurs, it is slow (using CPU or GPU). Even when there is no user interaction, vtk seems to perform volume rendering every time actors change. Are there any way for vtk to not perform volume rendering every time actors change by caching or something? I was wondering if vtkMultiBlockDataSet or vtkTemporal*** can be utilized, but was unable to find a solution. Thank you, -- Kenji Tsumura "The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From updega2 at berkeley.edu Mon Dec 7 11:03:23 2015 From: updega2 at berkeley.edu (updega2) Date: Mon, 7 Dec 2015 09:03:23 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> <1449503142725-5735363.post@n5.nabble.com> Message-ID: <1449504203106-5735366.post@n5.nabble.com> Great! I will work at getting it into my fork in the next couple of days, and then we can work at trying to get it contributed if possible. Adam -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735366.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Mon Dec 7 11:11:05 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 7 Dec 2015 11:11:05 -0500 Subject: [vtkusers] volume rendering and animation In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EA3C@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EA3C@neocoilexch01> Message-ID: Hi Kenji On Mon, Dec 7, 2015 at 10:46 AM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hello, > > > > I have 3D cardiac MRI data (4D including time domain). I can display > volume rendering of the data using vtkSmartVolumeMapper. > > When I tried to do animation (CINE) by changing actors every time > TimerEvent occurs, it is slow (using CPU or GPU). > > Even when there is no user interaction, vtk seems to perform volume > rendering every time actors change. > You mean when you go to the next time-step? (not sure what you are referring to actor's change) > Are there any way for vtk to not perform volume rendering every time > actors change by caching or something? > If I understand your problem, no there is no direct way. If you have multiple vtkVolume, and you are not going over the video memory limit, atleast, data transfer shouldn't happen every time. Are you creating vtkVolume for each timestamp or do you have only one that you are trying to re-use? > I was wondering if vtkMultiBlockDataSet or vtkTemporal*** can be utilized, > but was unable to find a solution. > > > > Thank you, > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 7 11:22:38 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 7 Dec 2015 16:22:38 +0000 Subject: [vtkusers] volume rendering and animation In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EA3C@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EA83@neocoilexch01> Hi Aashish, Thank you for your replay. > You mean when you go to the next time-step? (not sure what you are referring to actor's change) Yes > Are you creating vtkVolume for each timestamp or do you have only one that you are trying to re-use? I created vtkVolume for each timestamp. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 10:11 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] volume rendering and animation Hi Kenji On Mon, Dec 7, 2015 at 10:46 AM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (4D including time domain). I can display volume rendering of the data using vtkSmartVolumeMapper. When I tried to do animation (CINE) by changing actors every time TimerEvent occurs, it is slow (using CPU or GPU). Even when there is no user interaction, vtk seems to perform volume rendering every time actors change. You mean when you go to the next time-step? (not sure what you are referring to actor's change) Are there any way for vtk to not perform volume rendering every time actors change by caching or something? If I understand your problem, no there is no direct way. If you have multiple vtkVolume, and you are not going over the video memory limit, atleast, data transfer shouldn't happen every time. Are you creating vtkVolume for each timestamp or do you have only one that you are trying to re-use? I was wondering if vtkMultiBlockDataSet or vtkTemporal*** can be utilized, but was unable to find a solution. Thank you, -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 7 12:19:12 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 7 Dec 2015 17:19:12 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. "For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function." Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura "The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IndependentComponentsOff.jpg Type: image/jpeg Size: 20043 bytes Desc: IndependentComponentsOff.jpg URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: IndependentComponentsOn.jpg Type: image/jpeg Size: 33293 bytes Desc: IndependentComponentsOn.jpg URL: From wydesenej at gmail.com Mon Dec 7 12:24:45 2015 From: wydesenej at gmail.com (wydesenej) Date: Mon, 7 Dec 2015 18:24:45 +0100 Subject: [vtkusers] Fill polygons with internal holes Message-ID: Hello, I have vtkPolyData containing set of vtkPolygons. I need to display theese polygons filled with some colour. And here comes difficulties: if there is one polygon in another polygon, it means that this polygon represents hole. And this is recursive. Here is example: Input: http://postimg.org/image/du9qw1b45/ Output: http://postimg.org/image/pdf8vt3tn/ I have no idea how to do this. Is there any filter for this? I didnt found any... Please any suggestions? Thank you, Ondrej Semmler -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Mon Dec 7 14:53:44 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 7 Dec 2015 14:53:44 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> Message-ID: On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 7 15:41:07 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 7 Dec 2015 20:41:07 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: hs_err_pid11156.log Type: application/octet-stream Size: 40894 bytes Desc: hs_err_pid11156.log URL: From aashish.chaudhary at kitware.com Mon Dec 7 16:58:08 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Mon, 7 Dec 2015 16:58:08 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> Message-ID: Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 7 17:29:19 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 7 Dec 2015 22:29:19 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Mon Dec 7 18:03:57 2015 From: rickfrank at me.com (Richard Frank) Date: Mon, 07 Dec 2015 23:03:57 +0000 (GMT) Subject: [vtkusers] vtkTriangleStrip Message-ID: <42b824c7-713d-433e-9088-5bdfd473b886@me.com> Hi, I'm building a curved tube from a given set of sampled points using the vtkTriangleStrip class. It works fine except it seems the last triangle wants to connect to the first, so I have a tube with a surface that loops back to the start. Is there a way to "disconnect" these? Or perhaps a better way to implement? My code is initially based on the triangle strip example (but with a lot more points of course). And actually the original code used OpenGL directly? GL_TRIANGLE_STRIP in a loop. Thanks Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From sancho at whu.edu.cn Mon Dec 7 21:43:25 2015 From: sancho at whu.edu.cn (oyster) Date: Mon, 7 Dec 2015 19:43:25 -0700 (MST) Subject: [vtkusers] Fill polygons with internal holes In-Reply-To: References: Message-ID: <1449542605688-5735382.post@n5.nabble.com> Hi, Ondrej If you mean color the individual polygon, you may try: 1. Identify each polygon with vtkPolyDataConnectivityFilter 2. Determine overlapping order through Boost::Geometry::Polygon, for example 3. I presume your polygons are in 2D space since they are embedded each other, through OVERLAPPING tests you can assign each polygon with a virtual Z coordinate denoting depth order, and then let vtkDepthSortPolydata doing the rest rendering works. -- View this message in context: http://vtk.1045678.n5.nabble.com/Fill-polygons-with-internal-holes-tp5735370p5735382.html Sent from the VTK - Users mailing list archive at Nabble.com. From mnp902015 at gmail.com Mon Dec 7 21:43:32 2015 From: mnp902015 at gmail.com (manp902015) Date: Mon, 7 Dec 2015 19:43:32 -0700 (MST) Subject: [vtkusers] vtkScalarBar title font size is not consistent. Message-ID: <1449542612727-5735383.post@n5.nabble.com> Could someone please suggest me, how to set fixed font size in both title and labels in vtkscalarbar while resizing the window. Though I am setting the font size using textProperty->SetFontSize(5), font size is keep changing. I followed few threads here. yet I could not find a proper solution. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkScalarBar-title-font-size-is-not-consistent-tp5735383.html Sent from the VTK - Users mailing list archive at Nabble.com. From csaravanakumar2010 at gmail.com Tue Dec 8 01:02:49 2015 From: csaravanakumar2010 at gmail.com (saravanakumar) Date: Mon, 7 Dec 2015 23:02:49 -0700 (MST) Subject: [vtkusers] Generate Imagedata In-Reply-To: References: <1447319552974-5734916.post@n5.nabble.com> Message-ID: <1449554569815-5735384.post@n5.nabble.com> Hi Sir, How to generate Imagedata from TIFF Images. I could not get idea to generate Imagedata. Please give a solution for this. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735384.html Sent from the VTK - Users mailing list archive at Nabble.com. From goretzki.imre at gmail.com Tue Dec 8 02:40:55 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 8 Dec 2015 08:40:55 +0100 Subject: [vtkusers] Generate Imagedata In-Reply-To: <1449554569815-5735384.post@n5.nabble.com> References: <1447319552974-5734916.post@n5.nabble.com> <1449554569815-5735384.post@n5.nabble.com> Message-ID: <56668987.1050607@gmail.com> Hi, you could use ITK and the ImageToVTKImageFilter or the TIFFImageReader http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadTIFF Imre Am 08.12.2015 um 07:02 schrieb saravanakumar: > Hi Sir, > How to generate Imagedata from TIFF Images. I could not get idea to > generate Imagedata. Please give a solution for this. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735384.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers From csaravanakumar2010 at gmail.com Tue Dec 8 04:06:01 2015 From: csaravanakumar2010 at gmail.com (saravanakumar) Date: Tue, 8 Dec 2015 02:06:01 -0700 (MST) Subject: [vtkusers] Generate Imagedata In-Reply-To: <56668987.1050607@gmail.com> References: <1447319552974-5734916.post@n5.nabble.com> <1449554569815-5735384.post@n5.nabble.com> <56668987.1050607@gmail.com> Message-ID: <1449565561213-5735386.post@n5.nabble.com> Hi, I need to create .vtp files from the TIFF Image. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735386.html Sent from the VTK - Users mailing list archive at Nabble.com. From goretzki.imre at gmail.com Tue Dec 8 04:10:01 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 8 Dec 2015 10:10:01 +0100 Subject: [vtkusers] Generate Imagedata In-Reply-To: <1449565561213-5735386.post@n5.nabble.com> References: <1447319552974-5734916.post@n5.nabble.com> <1449554569815-5735384.post@n5.nabble.com> <56668987.1050607@gmail.com> <1449565561213-5735386.post@n5.nabble.com> Message-ID: <56669E69.8080806@gmail.com> Use vtkXMLPolyDataWriter to write your data: vtkSmartPointer writer= vtkSmartPointer::New(); writer->SetFileName("test.vtp"); #if VTK_MAJOR_VERSION <= 5 writer->SetInput(polydata); #else writer->SetInputData(polydata); #endif Am 08.12.2015 um 10:06 schrieb saravanakumar: > Hi, > I need to create .vtp files from the TIFF Image. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735386.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From csaravanakumar2010 at gmail.com Tue Dec 8 04:50:07 2015 From: csaravanakumar2010 at gmail.com (saravanakumar) Date: Tue, 8 Dec 2015 02:50:07 -0700 (MST) Subject: [vtkusers] Generate Imagedata In-Reply-To: <56669E69.8080806@gmail.com> References: <1447319552974-5734916.post@n5.nabble.com> <1449554569815-5735384.post@n5.nabble.com> <56668987.1050607@gmail.com> <1449565561213-5735386.post@n5.nabble.com> <56669E69.8080806@gmail.com> Message-ID: <1449568207617-5735388.post@n5.nabble.com> Hi, Already I have seen the example of vtkXMLPolydataWriter(http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP). It require the input as points. So, I need to get the points or Image data to write from the TIFF Image or MHA File. If I have Image data, I can write .vti files. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735388.html Sent from the VTK - Users mailing list archive at Nabble.com. From goretzki.imre at gmail.com Tue Dec 8 04:56:02 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 8 Dec 2015 10:56:02 +0100 Subject: [vtkusers] Generate Imagedata In-Reply-To: <1449568207617-5735388.post@n5.nabble.com> References: <1447319552974-5734916.post@n5.nabble.com> <1449554569815-5735384.post@n5.nabble.com> <56668987.1050607@gmail.com> <1449565561213-5735386.post@n5.nabble.com> <56669E69.8080806@gmail.com> <1449568207617-5735388.post@n5.nabble.com> Message-ID: <5666A932.1050703@gmail.com> Yes, that is correct Am 08.12.2015 um 10:50 schrieb saravanakumar: > Hi, > Already I have seen the example of > vtkXMLPolydataWriter(http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/WriteVTP). > It require the input as points. So, I need to get the points or Image data > to write from the TIFF Image or MHA File. If I have Image data, I can write > .vti files. > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/How-to-write-vtp-files-tp5734916p5735388.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers From florian.blachere at univ-nantes.fr Tue Dec 8 07:03:03 2015 From: florian.blachere at univ-nantes.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Tue, 8 Dec 2015 13:03:03 +0100 Subject: [vtkusers] System HDF with bundled NetCDF Message-ID: <5666C6F7.2050803@univ-nantes.fr> Hello, When compiling VTK with system HDF5 and NetCDF from the thirdparty (because newer NetCDF seems to be incompatible), NetCDF seems to be disabled as CMake does not find HDF5 in the file 'ThirdParty/netcdf/vtknetcdf/CMakeLists.txt' at line 239. Is it the normal behaviour ? Thanks by advance. From aashish.chaudhary at kitware.com Tue Dec 8 09:22:22 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 09:22:22 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> Message-ID: That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Aashish, > > > > Thank you very much. > > I will try to run the test example and see what happens. > > If the test is ok, I will try to reproduce the problem with simpler code. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 3:58 PM > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Thanks Kenji for trying out. Its not clear in the log why the build shader > code crashed. > > Also, I realized that you using Java bindings. Would it be possible to > re-create this issue > > with a small sample code and you send it to me? We do have two component > and 4 component > > test (dependent and independent). Please have a look here: > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx > > > > and > > > > > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx > > > > > > Thanks, > > > > > > On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Tue Dec 8 10:56:10 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 8 Dec 2015 10:56:10 -0500 Subject: [vtkusers] System HDF with bundled NetCDF In-Reply-To: <5666C6F7.2050803@univ-nantes.fr> References: <5666C6F7.2050803@univ-nantes.fr> Message-ID: <20151208155610.GA2107@megas.khq.kitware.com> On Tue, Dec 08, 2015 at 13:03:03 +0100, Florian Blach?re wrote: > When compiling VTK with system HDF5 and NetCDF from the thirdparty > (because newer NetCDF seems to be incompatible), What version? We have a dashboard which compiles against a system 4.3.3.1 (with netcdf-cxx 4.2) just fine. You do need the C++ bindings as well; the VTK netcdf is patched such that both are included (something I plan on fixing when I get around to updating our netcdf). > NetCDF seems to be disabled as CMake does not find HDF5 in the file > 'ThirdParty/netcdf/vtknetcdf/CMakeLists.txt' at line 239. It seems that you are missing HDF5's high-level library; it may ship separately from the base HDF5 libraries (but I don't see separate packages in either Debian or Fedora). --Ben From nihel-turki at hotmail.fr Tue Dec 8 11:16:03 2015 From: nihel-turki at hotmail.fr (nihel) Date: Tue, 8 Dec 2015 09:16:03 -0700 (MST) Subject: [vtkusers] Compute zoom level (VTK) Message-ID: <1449591363984-5735395.post@n5.nabble.com> I'm using VTK to manipulate DICOM images series en 3D. I used this mouse listener to zoom the image : ML_Zoom = new MouseListener() { @Override public void mouseClicked(MouseEvent e) { } @Override public void mousePressed(MouseEvent e) { button = (int) e.getButton(); if (button == 1) { for (int i = 0; i < 3; i++) { style[i].EndSpin(); style[i].EndPan(); style[i].EndDolly(); style[i] = new vtkInteractorStyleImage(); iren[i].SetInteractorStyle(style[i]); style[i].StartDolly(); } } } @Override public void mouseReleased(MouseEvent e) { for (int i = 0; i < 3; i++) { style[i].EndDolly(); } } @Override public void mouseEntered(MouseEvent e) { } @Override public void mouseExited(MouseEvent e) { } }; How can I compute zoom level ? -- View this message in context: http://vtk.1045678.n5.nabble.com/Compute-zoom-level-VTK-tp5735395.html Sent from the VTK - Users mailing list archive at Nabble.com. From kenji.tsumura at neosoftmedical.com Tue Dec 8 11:30:38 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Tue, 8 Dec 2015 16:30:38 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> Hi Aashish, Adding gradient opacity to the test sample causes the same error I have seen in my application. Please refer to the attached file. So my application works with IndependentComponents On after removing gradient opacity. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Tuesday, December 08, 2015 8:22 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura > wrote: Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: GPUVolumeRendering.cxx Type: application/octet-stream Size: 22839 bytes Desc: GPUVolumeRendering.cxx URL: From aashish.chaudhary at kitware.com Tue Dec 8 11:41:08 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 11:41:08 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> Message-ID: Aha... I think I know how to fix the bug. Gradient opacity was the key. I will push a fix today. - Aashish On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hi Aashish, > > > > Adding gradient opacity to the test sample causes the same error I have > seen in my application. > > Please refer to the attached file. > > So my application works with IndependentComponents On after removing > gradient opacity. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Tuesday, December 08, 2015 8:22 AM > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > That would be great Kenji, thanks. > > > > - Aashish > > > > On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Aashish, > > > > Thank you very much. > > I will try to run the test example and see what happens. > > If the test is ok, I will try to reproduce the problem with simpler code. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 3:58 PM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Thanks Kenji for trying out. Its not clear in the log why the build shader > code crashed. > > Also, I realized that you using Java bindings. Would it be possible to > re-create this issue > > with a small sample code and you send it to me? We do have two component > and 4 component > > test (dependent and independent). Please have a look here: > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx > > > > and > > > > > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx > > > > > > Thanks, > > > > > > On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.blachere at univ-nantes.fr Tue Dec 8 11:46:11 2015 From: florian.blachere at univ-nantes.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Tue, 8 Dec 2015 17:46:11 +0100 Subject: [vtkusers] System HDF with bundled NetCDF In-Reply-To: <20151208155610.GA2107@megas.khq.kitware.com> References: <5666C6F7.2050803@univ-nantes.fr> <20151208155610.GA2107@megas.khq.kitware.com> Message-ID: <56670953.8050602@univ-nantes.fr> On 08/12/15 16:56, Ben Boeckel wrote: > On Tue, Dec 08, 2015 at 13:03:03 +0100, Florian Blach?re wrote: >> When compiling VTK with system HDF5 and NetCDF from the thirdparty >> (because newer NetCDF seems to be incompatible), > What version? We have a dashboard which compiles against a system > 4.3.3.1 (with netcdf-cxx 4.2) just fine. You do need the C++ bindings as > well; the VTK netcdf is patched such that both are included (something I > plan on fixing when I get around to updating our netcdf). The version are the following; VTK 6.3.0, netcdf 4.3.3.1, netcdf-cxx 4.2 and hdf5 1.18.15 on ArchLinux. When compiling with system NetCDF the following error appears: Found HDF5: /usr/lib64/libhdf5.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libhdf5_hl.so;/usr/lib64/libhdf5.so;/usr/lib64/libz.so;/usr/lib64/libdl.so;/usr/lib64/libm.so (found version "1.8.15") -- Failed to find NetCDF interface for CXX CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): Could NOT find NetCDF (missing: NETCDF_HAS_INTERFACES) Call Stack (most recent call first): CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) CMake/FindNetCDF.cmake:117 (find_package_handle_standard_args) CMake/vtkModuleMacros.cmake:839 (find_package) ThirdParty/netcdf/CMakeLists.txt:10 (vtk_module_third_party) -- Configuring incomplete, errors occurred! And when using system HDF and NetCDF from the thirdparty, NetCDF is disabled whereas HDF5 is properly found before : -- Disabling NETCDF4 support since HDF5_HL or HDF5_hdf5_hl is missing. >> NetCDF seems to be disabled as CMake does not find HDF5 in the file >> 'ThirdParty/netcdf/vtknetcdf/CMakeLists.txt' at line 239. > It seems that you are missing HDF5's high-level library; it may ship > separately from the base HDF5 libraries (but I don't see separate > packages in either Debian or Fedora). > > --Ben From aashish.chaudhary at kitware.com Tue Dec 8 11:54:05 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 11:54:05 -0500 Subject: [vtkusers] PROJ4 in VTK Message-ID: Hi Folks, The mangled PROJ4 in VTK is ancient and no longer supported by anyone else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and changed the API a bit as well (includes the named EPSG codes). Are there any objections to switching to last release of PROJ4? We need this sometime soon so if you have any feedback please send me/mailing list an email. Thanks, Aashish -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Dec 8 12:15:53 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 8 Dec 2015 12:15:53 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: If after 7.0 branch you've got my +1. When we do please do so via Ben's nifty new scripts that standardize and use best practices for TPL integration into VTK. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Dec 8, 2015 at 11:54 AM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Hi Folks, > > The mangled PROJ4 in VTK is ancient and no longer supported by anyone > else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and > changed the API a bit as well (includes the named EPSG codes). > > Are there any objections to switching to last release of PROJ4? We need > this sometime soon so if you have any feedback please send me/mailing list > an email. > > Thanks, > Aashish > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Dec 8 12:22:17 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 12:22:17 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: On Tue, Dec 8, 2015 at 12:15 PM, David E DeMarle wrote: > If after 7.0 branch you've got my +1. > Sure. When is 7.0? > > When we do please do so via Ben's nifty new scripts that standardize and > use best practices for TPL integration into VTK. > I don't remember / know the script whereabouts. Can you send it to me please? Thanks > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Dec 8, 2015 at 11:54 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> Hi Folks, >> >> The mangled PROJ4 in VTK is ancient and no longer supported by anyone >> else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and >> changed the API a bit as well (includes the named EPSG codes). >> >> Are there any objections to switching to last release of PROJ4? We need >> this sometime soon so if you have any feedback please send me/mailing list >> an email. >> >> Thanks, >> Aashish >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Tue Dec 8 12:29:19 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 8 Dec 2015 12:29:19 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: <20151208172919.GA13056@megas.khq.kitware.com> On Tue, Dec 08, 2015 at 11:54:05 -0500, Aashish Chaudhary wrote: > Are there any objections to switching to last release of PROJ4? We need > this sometime soon so if you have any feedback please send me/mailing list > an email. No objections. Please port to the new third-party setup in the process (see zlib, png, and jsoncpp for examples). --Ben From aashish.chaudhary at kitware.com Tue Dec 8 12:33:53 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 12:33:53 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: <20151208172919.GA13056@megas.khq.kitware.com> References: <20151208172919.GA13056@megas.khq.kitware.com> Message-ID: On Tue, Dec 8, 2015 at 12:29 PM, Ben Boeckel wrote: > On Tue, Dec 08, 2015 at 11:54:05 -0500, Aashish Chaudhary wrote: > > Are there any objections to switching to last release of PROJ4? We need > > this sometime soon so if you have any feedback please send me/mailing > list > > an email. > > No objections. Please port to the new third-party setup in the process > (see zlib, png, and jsoncpp for examples). > Sure, will do. Thanks, > > --Ben > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Dec 8 12:35:31 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 8 Dec 2015 12:35:31 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: Branch is tomorrow. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Dec 8, 2015 at 12:22 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > > On Tue, Dec 8, 2015 at 12:15 PM, David E DeMarle > wrote: > >> If after 7.0 branch you've got my +1. >> > > Sure. When is 7.0? > >> >> When we do please do so via Ben's nifty new scripts that standardize and >> use best practices for TPL integration into VTK. >> > > I don't remember / know the script whereabouts. Can you send it to me > please? > > Thanks > > > >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Tue, Dec 8, 2015 at 11:54 AM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >>> Hi Folks, >>> >>> The mangled PROJ4 in VTK is ancient and no longer supported by anyone >>> else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and >>> changed the API a bit as well (includes the named EPSG codes). >>> >>> Are there any objections to switching to last release of PROJ4? We need >>> this sometime soon so if you have any feedback please send me/mailing list >>> an email. >>> >>> Thanks, >>> Aashish >>> >>> -- >>> >>> >>> >>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>> * >>> *| http://www.kitware.com/company/team/chaudhary.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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Dec 8 12:36:53 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 8 Dec 2015 12:36:53 -0500 Subject: [vtkusers] PROJ4 in VTK In-Reply-To: References: Message-ID: On Tue, Dec 8, 2015 at 12:35 PM, David E DeMarle wrote: > Branch is tomorrow. > Great.. yes.. certainly we can wait that long (it may take atleast 1-2 days anyways). Thanks, > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Dec 8, 2015 at 12:22 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> >> On Tue, Dec 8, 2015 at 12:15 PM, David E DeMarle < >> dave.demarle at kitware.com> wrote: >> >>> If after 7.0 branch you've got my +1. >>> >> >> Sure. When is 7.0? >> >>> >>> When we do please do so via Ben's nifty new scripts that standardize and >>> use best practices for TPL integration into VTK. >>> >> >> I don't remember / know the script whereabouts. Can you send it to me >> please? >> >> Thanks >> >> >> >>> >>> >>> David E DeMarle >>> Kitware, Inc. >>> R&D Engineer >>> 21 Corporate Drive >>> Clifton Park, NY 12065-8662 >>> Phone: 518-881-4909 >>> >>> On Tue, Dec 8, 2015 at 11:54 AM, Aashish Chaudhary < >>> aashish.chaudhary at kitware.com> wrote: >>> >>>> Hi Folks, >>>> >>>> The mangled PROJ4 in VTK is ancient and no longer supported by anyone >>>> else. Also, it is buggy, since then PROJ4 has moved on fixing bugs and >>>> changed the API a bit as well (includes the named EPSG codes). >>>> >>>> Are there any objections to switching to last release of PROJ4? We need >>>> this sometime soon so if you have any feedback please send me/mailing list >>>> an email. >>>> >>>> Thanks, >>>> Aashish >>>> >>>> -- >>>> >>>> >>>> >>>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>>> * >>>> *| http://www.kitware.com/company/team/chaudhary.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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Tue Dec 8 14:34:03 2015 From: juch at zhaw.ch (normanius) Date: Tue, 8 Dec 2015 12:34:03 -0700 (MST) Subject: [vtkusers] Broken surfaces for vtkBooleanOperationPolyDataFilter() - Bug? Message-ID: <1449603243012-5735413.post@n5.nabble.com> Hi, For two polydata objects I create boolean operations, and /often/ this does not cause any problems. However, /sometimes/ I get results as seen in the image below. The second image shows that there are indeed non-manifold edges resulting from the operations. I verified that the input objects are manifold. I came across this post where Cory Quammen states it might be related to a bug in the algorithm. (I've cross-posted the problem also on Stackoverflow , but I found that I reach the vtk cracks much more efficiently through this mailing list.) I'm calling the following code: def doApplyCutAdvanced(source, cutCylinder, domeCutCenter): ''' Cut a cylinder B from source A according to the following recipe: A = A \ B A = connectivityFilter(A, domeCenter) A = A v (A ^ B) ''' # Extract triangles. sourceTriangles = vtk.vtkTriangleFilter() sourceTriangles.SetInputConnection(source.GetOutputPort()) sourceTriangles.Update() cylinderTriangles = vtk.vtkTriangleFilter() cylinderTriangles.SetInputConnection(cutCylinder.GetOutputPort()) cylinderTriangles.Update() # First operation: A \ B operation1 = vtk.vtkBooleanOperationPolyDataFilter() operation1.SetOperationToDifference() operation1.SetInputConnection(0, sourceTriangles.GetOutputPort()) operation1.SetInputConnection(1, cylinderTriangles.GetOutputPort()) operation1.Update() # Second operation: A ^ B operation2 = vtk.vtkBooleanOperationPolyDataFilter() operation2.SetOperationToIntersection() operation2.SetInputConnection(0, source.GetOutputPort()) operation2.SetInputConnection(1, cylinderTriangles.GetOutputPort()) operation2.Update() #?Apply the cut. cutSurfaceConnected = vtk.vtkPolyDataConnectivityFilter() cutSurfaceConnected.SetInputConnection(operation1.GetOutputPort()) cutSurfaceConnected.SetExtractionModeToClosestPointRegion() cutSurfaceConnected.SetClosestPoint(domeCutCenter) cutSurfaceConnected.Update() #?Fix up the source object (if it was cut partially by the cylinder) appendFilter = vtk.vtkAppendPolyData() if vtk.vtkVersion.GetVTKMajorVersion() == 5: appendFilter.AddInput(cutSurfaceConnected.GetOutput()) appendFilter.AddInput(operation2.GetOutput()) else: appendFilter.AddInputData(cutSurfaceConnected.GetOutput()) appendFilter.AddInputData(operation2.GetOutput()) appendFilter.Update() cutSurfaceRepaired = vtk.vtkCleanPolyData() cutSurfaceRepaired.SetInputConnection(appendFilter.GetOutputPort()) cutSurfaceRepaired.Update() cutSurfaceRepairedTriangles = vtk.vtkTriangleFilter() cutSurfaceRepairedTriangles.SetInputConnection(cutSurfaceRepaired.GetOutputPort()) cutSurfaceRepairedTriangles.Update() return cutSurfaceRepairedTriangles -- View this message in context: http://vtk.1045678.n5.nabble.com/Broken-surfaces-for-vtkBooleanOperationPolyDataFilter-Bug-tp5735413.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Tue Dec 8 14:36:17 2015 From: juch at zhaw.ch (normanius) Date: Tue, 8 Dec 2015 12:36:17 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1449504203106-5735366.post@n5.nabble.com> References: <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> <1442989690263-5734067.post@n5.nabble.com> <1449503142725-5735363.post@n5.nabble.com> <1449504203106-5735366.post@n5.nabble.com> Message-ID: <1449603377000-5735414.post@n5.nabble.com> I've tested the code in python on different datasets (~100 boolean operations) and my code never crashed. Looking forward to the release, Norman -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5735414.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Tue Dec 8 14:50:08 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 8 Dec 2015 14:50:08 -0500 Subject: [vtkusers] Broken surfaces for vtkBooleanOperationPolyDataFilter() - Bug? In-Reply-To: <1449603243012-5735413.post@n5.nabble.com> References: <1449603243012-5735413.post@n5.nabble.com> Message-ID: I assume this is failing even with the crash fix recently merged to master? Do you have data sets you can share to reproduce the problem? Thanks, Cory On Tue, Dec 8, 2015 at 2:34 PM, normanius wrote: > Hi, > > For two polydata objects I create boolean operations, and /often/ this does > not cause any problems. However, /sometimes/ I get results as seen in the > image below. The second image shows that there are indeed non-manifold > edges > resulting from the operations. > > I verified that the input objects are manifold. > > I came across this > < > http://vtk.1045678.n5.nabble.com/Non-manifold-triangles-after-running-vtkBooleanOperationPolydataFilter-td5713964.html > > > post where Cory Quammen states it might be related to a bug in the > algorithm. > > (I've cross-posted the problem also on Stackoverflow > , but I found that I reach > the vtk cracks much more efficiently through this mailing list.) > > I'm calling the following code: > > def doApplyCutAdvanced(source, cutCylinder, domeCutCenter): > ''' > Cut a cylinder B from source A according to the following recipe: > A = A \ B > A = connectivityFilter(A, domeCenter) > A = A v (A ^ B) > ''' > > # Extract triangles. > sourceTriangles = vtk.vtkTriangleFilter() > sourceTriangles.SetInputConnection(source.GetOutputPort()) > sourceTriangles.Update() > > cylinderTriangles = vtk.vtkTriangleFilter() > cylinderTriangles.SetInputConnection(cutCylinder.GetOutputPort()) > cylinderTriangles.Update() > > # First operation: A \ B > operation1 = vtk.vtkBooleanOperationPolyDataFilter() > operation1.SetOperationToDifference() > operation1.SetInputConnection(0, sourceTriangles.GetOutputPort()) > operation1.SetInputConnection(1, cylinderTriangles.GetOutputPort()) > operation1.Update() > > # Second operation: A ^ B > operation2 = vtk.vtkBooleanOperationPolyDataFilter() > operation2.SetOperationToIntersection() > operation2.SetInputConnection(0, source.GetOutputPort()) > operation2.SetInputConnection(1, cylinderTriangles.GetOutputPort()) > operation2.Update() > > # Apply the cut. > cutSurfaceConnected = vtk.vtkPolyDataConnectivityFilter() > cutSurfaceConnected.SetInputConnection(operation1.GetOutputPort()) > cutSurfaceConnected.SetExtractionModeToClosestPointRegion() > cutSurfaceConnected.SetClosestPoint(domeCutCenter) > cutSurfaceConnected.Update() > > # Fix up the source object (if it was cut partially by the cylinder) > appendFilter = vtk.vtkAppendPolyData() > if vtk.vtkVersion.GetVTKMajorVersion() == 5: > appendFilter.AddInput(cutSurfaceConnected.GetOutput()) > appendFilter.AddInput(operation2.GetOutput()) > else: > appendFilter.AddInputData(cutSurfaceConnected.GetOutput()) > appendFilter.AddInputData(operation2.GetOutput()) > appendFilter.Update() > > cutSurfaceRepaired = vtk.vtkCleanPolyData() > cutSurfaceRepaired.SetInputConnection(appendFilter.GetOutputPort()) > cutSurfaceRepaired.Update() > > cutSurfaceRepairedTriangles = vtk.vtkTriangleFilter() > > > cutSurfaceRepairedTriangles.SetInputConnection(cutSurfaceRepaired.GetOutputPort()) > cutSurfaceRepairedTriangles.Update() > > return cutSurfaceRepairedTriangles > > > > < > http://vtk.1045678.n5.nabble.com/file/n5735413/example_broken_surface_nonmanifold_edges.png > > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Broken-surfaces-for-vtkBooleanOperationPolyDataFilter-Bug-tp5735413.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Tue Dec 8 15:40:02 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 8 Dec 2015 15:40:02 -0500 Subject: [vtkusers] Submitting new examples In-Reply-To: References: Message-ID: <20151208204002.GB24683@megas.khq.kitware.com> On Thu, Dec 03, 2015 at 07:35:00 -0500, David E DeMarle wrote: > The best place to post them is on the wiki example project. > http://www.vtk.org/Wiki/VTK/Examples > > You will find instructions there. If you have any questions about them, > feel free to ask the list. Hmm, weren't we moving examples into VTK itself? Or were we moving them out? --Ben From bill.lorensen at gmail.com Tue Dec 8 16:07:56 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 8 Dec 2015 16:07:56 -0500 Subject: [vtkusers] Submitting new examples In-Reply-To: <20151208204002.GB24683@megas.khq.kitware.com> References: <20151208204002.GB24683@megas.khq.kitware.com> Message-ID: We are keeping the wiki examples out of VTK. When I get a chance, I'll make them an External Module. On Tue, Dec 8, 2015 at 3:40 PM, Ben Boeckel wrote: > On Thu, Dec 03, 2015 at 07:35:00 -0500, David E DeMarle wrote: >> The best place to post them is on the wiki example project. >> http://www.vtk.org/Wiki/VTK/Examples >> >> You will find instructions there. If you have any questions about them, >> feel free to ask the list. > > Hmm, weren't we moving examples into VTK itself? Or were we moving them > out? > > --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: > http://public.kitware.com/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From dave.demarle at kitware.com Tue Dec 8 16:17:20 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 8 Dec 2015 16:17:20 -0500 Subject: [vtkusers] Submitting new examples In-Reply-To: References: <20151208204002.GB24683@megas.khq.kitware.com> Message-ID: I'ld like to move the ${VTKSRC}/Examples onto the wiki (or External module if you like). Having 2 example sets is a point of confusion so we should consolidate to the one with better web searchable infrastructure. I'ld also like to change the VTK Wiki examples submitters to have them push results to the "WikiExamples" build group on VTK's cdash. Then developers will realize when they break examples. Sadly, I can't seem to find the time to do either just now. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Dec 8, 2015 at 4:07 PM, Bill Lorensen wrote: > We are keeping the wiki examples out of VTK. When I get a chance, I'll > make them an External Module. > > > On Tue, Dec 8, 2015 at 3:40 PM, Ben Boeckel > wrote: > > On Thu, Dec 03, 2015 at 07:35:00 -0500, David E DeMarle wrote: > >> The best place to post them is on the wiki example project. > >> http://www.vtk.org/Wiki/VTK/Examples > >> > >> You will find instructions there. If you have any questions about them, > >> feel free to ask the list. > > > > Hmm, weren't we moving examples into VTK itself? Or were we moving them > > out? > > > > --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: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Dec 8 16:43:38 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 8 Dec 2015 16:43:38 -0500 Subject: [vtkusers] Submitting new examples In-Reply-To: References: <20151208204002.GB24683@megas.khq.kitware.com> Message-ID: Dave, over the winter I'll work on submitting the wiki examples to the vtk dashboard. On Dec 8, 2015 4:17 PM, "David E DeMarle" wrote: > I'ld like to move the ${VTKSRC}/Examples onto the wiki (or External module > if you like). Having 2 example sets is a point of confusion so we should > consolidate to the one with better web searchable infrastructure. > > I'ld also like to change the VTK Wiki examples submitters to have them > push results to the "WikiExamples" build group on VTK's cdash. Then > developers will realize when they break examples. > > Sadly, I can't seem to find the time to do either just now. > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Dec 8, 2015 at 4:07 PM, Bill Lorensen > wrote: > >> We are keeping the wiki examples out of VTK. When I get a chance, I'll >> make them an External Module. >> >> >> On Tue, Dec 8, 2015 at 3:40 PM, Ben Boeckel >> wrote: >> > On Thu, Dec 03, 2015 at 07:35:00 -0500, David E DeMarle wrote: >> >> The best place to post them is on the wiki example project. >> >> http://www.vtk.org/Wiki/VTK/Examples >> >> >> >> You will find instructions there. If you have any questions about them, >> >> feel free to ask the list. >> > >> > Hmm, weren't we moving examples into VTK itself? Or were we moving them >> > out? >> > >> > --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: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> -- >> Unpaid intern in BillsBasement at noware dot com >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Tue Dec 8 16:50:53 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 8 Dec 2015 22:50:53 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <566466CE.6090405@gmail.com> References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> <5662A1B8.2060704@gmail.com> <56641A98.4020305@gmail.com> <566466CE.6090405@gmail.com> Message-ID: <566750BD.1050406@gmail.com> Hey Cory, I have some troubles combining vtkImageData with the vtkTable. I tried the following: vtkSmartPointer threshold1 = vtkSmartPointer::New(); threshold1->SetInputData(con->GetOutput()); threshold1->ThresholdBetween(lower, upper); threshold1->ReplaceInOn(); threshold1->SetInValue(CLASS_1_VALUE); threshold1->Update(); unsigned int numPoints = threshold1->GetOutput()->GetNumberOfPoints(); for (unsigned int dimension = 0; dimension < 3; dimension++) { std::stringstream colName; colName << "dimension" << dimension; VTK_PTR_CREATE(vtkIntArray, values); values->SetNumberOfComponents(1); values->SetName(colName.str().c_str()); values->SetNumberOfTuples(numPoints); for(unsigned int pt = 0; pt < numPoints; pt++) { double point[3]; double originalPoint[3]; threshold1->GetOutput()->GetPoint(pt, point); data->GetPoint(pt, originalPoint); values->SetValue(pt, originalPoint[dimension]); bool lg2 = originalPoint[dimension] > lower && originalPoint[dimension] < upper; if (lg2) { cout << "original between, so " << (unsigned int)point[dimension] << endl; } else { cout << "mh " << originalPoint[dimension] << [...] << endl; } } table->AddColumn(values); } Unfortunately, the outputs I get are pretty useless in my scenario: mh 279 lower 970 upper 990 mh 280 lower 970 upper 990 mh 281 lower 970 upper 990 mh 282 lower 970 upper 990 mh 283 lower 970 upper 990 mh 284 lower 970 upper 990 mh 285 lower 970 upper 990 mh 286 lower 970 upper 990 mh 287 lower 970 upper 990 mh 288 lower 970 upper 990 mh 289 lower 970 upper 990 mh 290 lower 970 upper 990 mh 291 lower 970 upper 990 mh 292 lower 970 upper 990 mh 293 lower 970 upper 990 mh 294 lower 970 upper 990 mh 295 lower 970 upper 990 mh 296 lower 970 upper 990 mh 297 lower 970 upper 990 mh 298 lower 970 upper 990 mh 299 lower 970 upper 990 mh 300 lower 970 upper 990 mh 301 lower 970 upper 990 mh 302 lower 970 upper 990 These are just my dimensions, so it repeats the numbers 0 to 519. VTK_PTR_CREATE(type,name) is defined as vtkSmartPointer name = vtkSmartPointer::New(); So obviously, this approach is wrong. The examples, given in the wiki, correspond to given data points, not image data. Can you help me? I think this class would be great as far as I can tell by using vtkChartXY for plotting a histogram. Greetings Imre Am 06.12.2015 um 17:48 schrieb Imre Goretzki: > No I have not. Thank you. If I am having troubles or if that is not > the plot that I am looking for, I respond again. > > Am 06.12.2015 um 17:38 schrieb Cory Quammen: >> Imre, >> >> Have you looked at the charting API, e.g., vtkChartXYZ? I don't know >> if that does exactly what you want, but it may be more in line with >> what you are after. >> >> - Cory >> >> On Sun, Dec 6, 2015 at 6:23 AM, Imre Goretzki >> > wrote: >> >> Hey guys, >> >> here is a 2D example of what I wanted to do. I think data >> transformation would not be the correct way of doing this. >> >> >> >> Am 05.12.2015 um 09:35 schrieb Imre Goretzki: >>> Cory, >>> >>> is it possible to change the tick of the axes? Right know using >>> the transform filter is equivalent to the second image. >>> Unfortunately that is not what I would like to have. I think the >>> best way to do this is to change to tick of the Z-Dimension. >>> >>> The image has the dimensions 520x520x47. So the tick for x and y >>> is 1, for z it should be 47/520. I don't want to change the data. >>> >>> Imre >>> >>> Am 04.12.2015 um 20:56 schrieb Cory Quammen: >>>> Imre, >>>> >>>> Your best bet is probably to transform the data itself rather >>>> than the user transform of the actors. >>>> >>>> vtkSmartPointer transformFilter = >>>> vtkSmartPointer::New(); >>>> transformFilter->SetTransform(axis); >>>> transformFilter->SetInputData(); >>>> >>>> HTH, >>>> Cory >>>> >>>> On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki >>>> wrote: >>>> >>>> I have data like this: >>>> http://i.imgur.com/CR2O8Ik.png >>>> and I would like to "stretch" the Z-axis to get more like a >>>> cube visualization. >>>> >>>> I used vtkTransform to transform the axes, but I would >>>> change the data if I do this. I hope you understand what I >>>> want to do, e.g. is there a possibility to change / stretch >>>> the ticks of a specific axis. >>>> >>>> The vtkTransform plot stretches to much: >>>> http://i.imgur.com/DDUW91T.png >>>> The data is deformed >>>> >>>> I use the vtkTransform like this: >>>> vtkSmartPointer axis = >>>> vtkSmartPointer::New(); >>>> axis->Scale(1,1,10); >>>> >>>> dataActor->SetUserTransform(axis); >>>> outlineActor->SetUserTransform(axis); >>>> >>>> I tried using the camera with the vtkTransform, but the >>>> only thing I got from there, was an empty image or I had to >>>> zoom out greatly. >>>> >>>> For matlab reference, something like this: >>>> http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true >>>> >>>> Would be nice if you could help me >>>> >>>> Imre >>>> >>>> >>>> Am 03.12.2015 um 22:20 schrieb Imre Goretzki: >>>> >>>> Hey guys >>>> >>>> i'd like to ask you if there's a equivalent method for >>>> vtkRenderWindow for equalizing the axis, just like >>>> MATLABs axis equal. Could vtkAxesActor be helpful? >>>> >>>> I hope you can help >>>> >>>> Thanks >>>> Imre >>>> >>>> >>>> _______________________________________________ >>>> 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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>>> >>>> >>>> -- >>>> Cory Quammen >>>> R&D Engineer >>>> Kitware, Inc. >>> >> >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Tue Dec 8 18:15:35 2015 From: juch at zhaw.ch (normanius) Date: Tue, 8 Dec 2015 16:15:35 -0700 (MST) Subject: [vtkusers] Broken surfaces for vtkBooleanOperationPolyDataFilter() - Bug? In-Reply-To: References: <1449603243012-5735413.post@n5.nabble.com> Message-ID: <1449616535375-5735424.post@n5.nabble.com> Hi Cory, Yes, I forgot to mention this. The problem also occurred for all the version I've tested: 5.10.1, 6.2.0, 6.3.0 and the one with the recent fix. Because the data I'm testing with is not supposed to be public I'll send it to you as PM. Your support on this is much appreciated. Norman -- View this message in context: http://vtk.1045678.n5.nabble.com/Broken-surfaces-for-vtkBooleanOperationPolyDataFilter-Bug-tp5735413p5735424.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Tue Dec 8 20:45:04 2015 From: rickfrank at me.com (Richard Frank) Date: Wed, 09 Dec 2015 01:45:04 +0000 (GMT) Subject: [vtkusers] vtkTriangleStrip, cont'd Message-ID: <4760d515-44d5-4d74-85e4-55165e436e72@me.com> Here's some code that shows the issue I'm trying to resolve... I have some sampled 3D points that are essentially a tube.?(I cut out a lot of data, show the example doesn't look like a tube, but this shows the issue)? I can build the surface of the tube but, the two ends of the tube want to join together. In the program below, you can see the wide strips that go straight back from one end to the other. How do I disconnect the strips at the ends from each other? Thanks, Rick Code: #include #include #include "vtkPointData.h" #include "vtkProperty.h" #include "vtkPolyLine.h" #include "vtkSmartPointer.h" #include "vtkTriangleStrip.h" #include "vtkPolyData.h" #include "vtkDataSetMapper.h" #include "vtkCellArray.h" #include "vtkActor.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkInteractorStyleTrackballCamera.h" double points[][3] = { {55.582, -190.774, 844.647}, { 55.2271,-193.744,835.244 }, { 52.7171,-199.737,819.319 }, { 47.7865,-207.213,803.631 }, { 39.795,-213.97,790.551 }, { 30.0697,-218.514,778.441 }, { 21.8655,-219.257,769.834 }, { 12.5418,-219.67,757.889 }, { 6.50188,-218.147,748.296 }, { 2.99031,-218.521,736.832 }, { 2.33774,-221.3,723.745 }, { 1.34548,-224.755,709.287 }, { -1.03045,-231.667,692.916 }, { -5.04376,-237.586,678.402 }, { -9.08177,-242.151,668.611 }, { -11.5051,-247.929,656.06 }, { -13.9007,-251.23,643.571 }, { -15.0945,-252.57,634.539 }, { -11.9482,-253.68,624.517 }, { -7.25365,-253.349,612.844 }, { -1.01116,-256.384,604.258 }, { 6.21204,-254.857,588.511 }, { 59.9477,-197.404,846.897 }, { 59.9313,-199.564,839.104 }, { 57.6438,-204.789,822.469 }, { 52.0044,-212.025,805.899 }, { 43.6559,-218.774,790.717 }, { 32.9718,-224.02,776.905 }, { 23.1723,-225.666,767.488 }, { 14.773,-226.315,756.226 }, { 9.02408,-225.264,745.333 }, { 7.50066,-225.347,736.11 }, { 6.98553,-227.96,725.841 }, { 6.41854,-230.82,712.1 }, { 4.55219,-236.488,696.478 }, { -0.0278958,-242.796,679.726 }, { -4.68599,-247.164,669.687 }, { -7.1335,-252.351,658.019 }, { -9.93603,-256.519,644.824 }, { -10.8628,-258.134,635.523 }, { -9.02904,-260.297,627.886 }, { -5.39866,-261.661,617.874 }, { 1.09968,-263.716,609.148 }, { 9.97905,-262.779,591.124 }, { 59.9345,-205.175,849.43 }, { 59.8925,-206.997,843.841 }, { 59.2423,-211.942,828.25 }, { 54.2427,-218.078,810.932 }, { 46.1204,-224.687,793.598 }, { 34.072,-229.764,778.557 }, { 23.1483,-231.134,767.532 }, { 15.0776,-232.306,757.456 }, { 9.19118,-232.253,744.755 }, { 8.52304,-233.668,737.046 }, { 6.99084,-235.889,728.858 }, { 6.90973,-238.782,716.418 }, { 5.37757,-243.673,703.468 }, { 7.21037,-251.466,682.958 }, { -3.4923,-253.845,673.482 }, { -5.82057,-258.661,662.418 }, { -9.181,-263.004,647.922 }, { -10.9386,-265.091,637.243 }, { -9.5132,-267.003,629.82 }, { -6.4218,-268.871,620.346 }, { 0.024518,-270.644,610.015 }, { 10.0565,-271.125,592.232 }, { 55.1264,-211.233,851.308 }, { 55.1035,-212.784,847.383 }, { 54.4377,-217.608,834.291 }, { 51.8816,-224.065,819.034 }, { 44.9272,-231.02,801.288 }, { 33.487,-236.35,783.635 }, { 21.6961,-237.217,770.259 }, { 13.7675,-238.825,761.378 }, { 5.61639,-238.367,747.816 }, { 3.34256,-240.212,740.076 }, { 2.66214,-242.742,731.875 }, { 1.99014,-245.187,720.447 }, { 1.05857,-249.728,710.252 }, { -2.11927,-255.48,692.17 }, { -7.14656,-259.549,678.762 }, { -9.45814,-264.12,667.803 }, { -12.7369,-268.44,652.29 }, { -14.6491,-271.149,638.979 }, { -13.126,-272.96,630.127 }, { -10.7058,-274.801,619.895 }, { -3.20754,-277.047,608.081 }, { 5.14991,-278.048,591.133 }, { 47.7996,-213.863,852.017 }, { 47.847,-214.562,848.301 }, { 47.1094,-219.045,837.31 }, { 44.9596,-225.066,824.916 }, { 39.0062,-233.221,810.519 }, { 28.4987,-238.904,793.583 }, { 16.9902,-242.235,778.82 }, { 8.65652,-242.315,770.631 }, { -0.706025,-241.288,753.856 }, { -4.36561,-242.724,743.54 }, { -5.30576,-244.801,733.411 }, { -5.83709,-248.177,722.879 }, { -3.74893,-287.198,689.906 }, { -1.38069,-292.909,684.796 }, { 0.480259,-296.168,679.003 }, { -15.6413,-263.062,693.585 }, { -14.6015,-267.124,693.203 }, { -13.0928,-271.291,691.977 }, }; int main(int c, char **argv) { vtkSmartPointer trianglePoints = vtkSmartPointer::New(); vtkSmartPointer triangleStrips = vtkSmartPointer::New(); vtkSmartPointer triangleCells = vtkSmartPointer::New(); vtkSmartPointer trianglePolyData = vtkSmartPointer::New(); vtkSmartPointer triangleMapper = vtkSmartPointer::New(); vtkSmartPointer triangleActors = vtkSmartPointer::New(); vtkSmartPointer triangleVertices = vtkSmartPointer::New(); size_t count = sizeof(points) / (3 * sizeof(double)); for (auto i = 0; i < count; i++) { vtkIdType id = trianglePoints->InsertNextPoint(points[i]); triangleVertices->InsertNextCell(VTK_VERTEX); triangleVertices->InsertCellPoint(id); } triangleStrips->GetPointIds()->SetNumberOfIds(count); trianglePolyData->SetVerts(triangleVertices); trianglePolyData->SetPoints(trianglePoints); for (auto ns = 0; ns < count; ns++) { triangleStrips->GetPointIds()->SetId(ns, ns); } triangleCells->InsertNextCell(triangleStrips); trianglePolyData->SetStrips(triangleCells); triangleMapper->SetInputData(trianglePolyData); triangleActors->SetMapper(triangleMapper); triangleActors->GetProperty()->SetRepresentationToSurface(); triangleActors->GetProperty()->SetColor(1, 1, 0); triangleActors->GetProperty()->SetSpecular(0.9); triangleActors->GetProperty()->SetSpecularPower(1); triangleActors->GetProperty()->SetAmbient(0.4); vtkSmartPointer renderer = vtkSmartPointer::New(); renderer->AddActor(triangleActors); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); vtkSmartPointer style = vtkSmartPointer::New(); renderWindowInteractor->SetInteractorStyle(style); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.slaughter at inl.gov Tue Dec 8 23:02:32 2015 From: andrew.slaughter at inl.gov (Slaughter, Andrew E) Date: Tue, 8 Dec 2015 21:02:32 -0700 Subject: [vtkusers] How to extract nodesets and sidesets for Exodus data Message-ID: I am creating a visualization tool for Exodus data capable of displaying any combination of nodeset, sideset, and subdomain information from an ExodusII file. I would like to be able to have a single reader object and multiple renderers for showing the nodesets, sidesets, and/or subdomains. However, I am unable to figure out how to enable all of the above in vtkExodusIIReader but limit what is shown in the renderer. I have attached a script (OSX with VTK6.3) that I would like to have display the nodesets on the left-side of the screen and the subdomains on the right, but I am unable to get the desired result. I would appreciate any help that could be provided. Thanks, Andrew -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: cube_out.e Type: application/octet-stream Size: 111456 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: extract_block2.py Type: text/x-python-script Size: 1819 bytes Desc: not available URL: From yihui.cao at qq.com Wed Dec 9 04:43:50 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Wed, 9 Dec 2015 17:43:50 +0800 Subject: [vtkusers] How to set the vtkMatrix4x4 in function SetResliceAxes() of vtkImageReslice Message-ID: Hi, In Class vtkImageReslice , virtual void vtkImageReslice::SetResliceAxes (vtkMatrix4x4 *) Why Matrix: 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 can get a slice that parallel to the XY plane? What the Matrix means in mathematics? Where can I get the detailed description? Thanks, Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Wed Dec 9 05:05:33 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Wed, 9 Dec 2015 11:05:33 +0100 Subject: [vtkusers] axis equal for vtk? In-Reply-To: <566750BD.1050406@gmail.com> References: <5660B22A.7060805@gmail.com> <5661E012.4040403@gmail.com> <5662A1B8.2060704@gmail.com> <56641A98.4020305@gmail.com> <566466CE.6090405@gmail.com> <566750BD.1050406@gmail.com> Message-ID: <5667FCED.3030608@gmail.com> Hey, I tried this: int *numPoints = threshold1->GetOutput()->GetDimensions(); VTK_PTR_CREATE(vtkIntArray, axisX); axisX->SetName("Axis X"); VTK_PTR_CREATE(vtkIntArray, axisY); axisX->SetName("Axis Y"); VTK_PTR_CREATE(vtkIntArray, values); axisX->SetName("Values"); table->AddColumn(axisX); table->AddColumn(axisY); table->AddColumn(values); table->SetNumberOfRows(data->GetNumberOfPoints()); //520*520*47 int row = 0; cout << "numoints " << data->GetNumberOfPoints() << endl; // numoints 12708800 for (unsigned int x = 0; x < numPoints[0]; x++) { table->SetValue(row,0,x); for(unsigned int y = 0; y < numPoints[1]; y++) { table->SetValue(row,1,y); for(unsigned int z = 0; z < numPoints[2]; z++) { unsigned int val = *static_cast(threshold1->GetOutput()->GetScalarPointer(x,y,z)); table->SetValue(row++,2,val); } } } VTK_PTR_CREATE(vtkChartXYZ, chart); VTK_PTR_CREATE(vtkPlotSurface, plot); VTK_PTR_CREATE(vtkContextView, view); view->GetRenderer()->SetBackground(1, 1, 1); view->GetScene()->AddItem(chart); plot->SetInputData(table); imgDisplay->GetRenderWindow()->AddRenderer(view->GetRenderer()); view->GetRenderWindow()->SetMultiSamples(0); view->SetInteractor(imgDisplay->GetInteractor()); imgDisplay->SetRenderWindow(view->GetRenderWindow()); // Visualize the histogram // Initialize the event loop and then start it imgDisplay->show(); view->GetInteractor()->Initialize(); view->GetInteractor()->Start(); but Qt throws exceptions. I think I stick with the other solution, except you guys have some solutions for me, which would be great (imgDisplay is a QVTKWidget, this works fine with vtkChartXY). The error message: Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there. terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc Am 08.12.2015 um 22:50 schrieb Imre Goretzki: > Hey Cory, > > I have some troubles combining vtkImageData with the vtkTable. I tried > the following: > > vtkSmartPointer threshold1 = > vtkSmartPointer::New(); > threshold1->SetInputData(con->GetOutput()); > threshold1->ThresholdBetween(lower, upper); > threshold1->ReplaceInOn(); > threshold1->SetInValue(CLASS_1_VALUE); > threshold1->Update(); > > unsigned int numPoints = threshold1->GetOutput()->GetNumberOfPoints(); > for (unsigned int dimension = 0; dimension < 3; dimension++) > { > std::stringstream colName; > colName << "dimension" << dimension; > VTK_PTR_CREATE(vtkIntArray, values); > values->SetNumberOfComponents(1); > values->SetName(colName.str().c_str()); > values->SetNumberOfTuples(numPoints); > > for(unsigned int pt = 0; pt < numPoints; pt++) > { > double point[3]; > double originalPoint[3]; > threshold1->GetOutput()->GetPoint(pt, point); > data->GetPoint(pt, originalPoint); > values->SetValue(pt, originalPoint[dimension]); > bool lg2 = originalPoint[dimension] > lower && > originalPoint[dimension] < upper; > if (lg2) > { > cout << "original between, so " << (unsigned > int)point[dimension] << endl; > } > else > { > cout << "mh " << originalPoint[dimension] << [...] << > endl; > } > } > table->AddColumn(values); > } > > Unfortunately, the outputs I get are pretty useless in my scenario: > > mh 279 lower 970 upper 990 > > mh 280 lower 970 upper 990 > > mh 281 lower 970 upper 990 > > mh 282 lower 970 upper 990 > > mh 283 lower 970 upper 990 > > mh 284 lower 970 upper 990 > > mh 285 lower 970 upper 990 > > mh 286 lower 970 upper 990 > > mh 287 lower 970 upper 990 > > mh 288 lower 970 upper 990 > > mh 289 lower 970 upper 990 > > mh 290 lower 970 upper 990 > > mh 291 lower 970 upper 990 > > mh 292 lower 970 upper 990 > > mh 293 lower 970 upper 990 > > mh 294 lower 970 upper 990 > > mh 295 lower 970 upper 990 > > mh 296 lower 970 upper 990 > > mh 297 lower 970 upper 990 > > mh 298 lower 970 upper 990 > > mh 299 lower 970 upper 990 > > mh 300 lower 970 upper 990 > > mh 301 lower 970 upper 990 > > mh 302 lower 970 upper 990 > > > These are just my dimensions, so it repeats the numbers 0 to 519. > > VTK_PTR_CREATE(type,name) is defined as vtkSmartPointer name = > vtkSmartPointer::New(); > > So obviously, this approach is wrong. The examples, given in the wiki, > correspond to given data points, not image data. Can you help me? I > think this class would be great as far as I can tell by using > vtkChartXY for plotting a histogram. > > Greetings > Imre > > Am 06.12.2015 um 17:48 schrieb Imre Goretzki: >> No I have not. Thank you. If I am having troubles or if that is not >> the plot that I am looking for, I respond again. >> >> Am 06.12.2015 um 17:38 schrieb Cory Quammen: >>> Imre, >>> >>> Have you looked at the charting API, e.g., vtkChartXYZ? I don't know >>> if that does exactly what you want, but it may be more in line with >>> what you are after. >>> >>> - Cory >>> >>> On Sun, Dec 6, 2015 at 6:23 AM, Imre Goretzki >>> > wrote: >>> >>> Hey guys, >>> >>> here is a 2D example of what I wanted to do. I think data >>> transformation would not be the correct way of doing this. >>> >>> >>> >>> Am 05.12.2015 um 09:35 schrieb Imre Goretzki: >>>> Cory, >>>> >>>> is it possible to change the tick of the axes? Right know using >>>> the transform filter is equivalent to the second image. >>>> Unfortunately that is not what I would like to have. I think >>>> the best way to do this is to change to tick of the Z-Dimension. >>>> >>>> The image has the dimensions 520x520x47. So the tick for x and >>>> y is 1, for z it should be 47/520. I don't want to change the data. >>>> >>>> Imre >>>> >>>> Am 04.12.2015 um 20:56 schrieb Cory Quammen: >>>>> Imre, >>>>> >>>>> Your best bet is probably to transform the data itself rather >>>>> than the user transform of the actors. >>>>> >>>>> vtkSmartPointer transformFilter = >>>>> vtkSmartPointer::New(); >>>>> transformFilter->SetTransform(axis); >>>>> transformFilter->SetInputData(); >>>>> >>>>> HTH, >>>>> Cory >>>>> >>>>> On Fri, Dec 4, 2015 at 1:48 PM, Imre Goretzki >>>>> wrote: >>>>> >>>>> I have data like this: >>>>> http://i.imgur.com/CR2O8Ik.png >>>>> and I would like to "stretch" the Z-axis to get more like >>>>> a cube visualization. >>>>> >>>>> I used vtkTransform to transform the axes, but I would >>>>> change the data if I do this. I hope you understand what I >>>>> want to do, e.g. is there a possibility to change / >>>>> stretch the ticks of a specific axis. >>>>> >>>>> The vtkTransform plot stretches to much: >>>>> http://i.imgur.com/DDUW91T.png >>>>> The data is deformed >>>>> >>>>> I use the vtkTransform like this: >>>>> vtkSmartPointer axis = >>>>> vtkSmartPointer::New(); >>>>> axis->Scale(1,1,10); >>>>> >>>>> dataActor->SetUserTransform(axis); >>>>> outlineActor->SetUserTransform(axis); >>>>> >>>>> I tried using the camera with the vtkTransform, but the >>>>> only thing I got from there, was an empty image or I had >>>>> to zoom out greatly. >>>>> >>>>> For matlab reference, something like this: >>>>> http://de.mathworks.com/help/matlab/ref/axis.html?refresh=true >>>>> >>>>> Would be nice if you could help me >>>>> >>>>> Imre >>>>> >>>>> >>>>> Am 03.12.2015 um 22:20 schrieb Imre Goretzki: >>>>> >>>>> Hey guys >>>>> >>>>> i'd like to ask you if there's a equivalent method for >>>>> vtkRenderWindow for equalizing the axis, just like >>>>> MATLABs axis equal. Could vtkAxesActor be helpful? >>>>> >>>>> I hope you can help >>>>> >>>>> Thanks >>>>> Imre >>>>> >>>>> >>>>> _______________________________________________ >>>>> 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: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> Cory Quammen >>>>> R&D Engineer >>>>> Kitware, Inc. >>>> >>> >>> >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From serge at infolytica.com Wed Dec 9 09:13:21 2015 From: serge at infolytica.com (Serge Lalonde) Date: Wed, 9 Dec 2015 09:13:21 -0500 Subject: [vtkusers] What happened to vtkAlgorithm::PRESERVES_BOUNDS()? Message-ID: <56683701.5070403@infolytica.com> An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 9 10:04:02 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 10:04:02 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> Message-ID: Hi Kenji, Could you please try the attached patch? Once if works for you, I will clean it up and create a merge request. Thanks, On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Aha... I think I know how to fix the bug. Gradient opacity was the key. I > will push a fix today. > > - Aashish > > On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > >> Hi Aashish, >> >> >> >> Adding gradient opacity to the test sample causes the same error I have >> seen in my application. >> >> Please refer to the attached file. >> >> So my application works with IndependentComponents On after removing >> gradient opacity. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Tuesday, December 08, 2015 8:22 AM >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> That would be great Kenji, thanks. >> >> >> >> - Aashish >> >> >> >> On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Aashish, >> >> >> >> Thank you very much. >> >> I will try to run the test example and see what happens. >> >> If the test is ok, I will try to reproduce the problem with simpler code. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 3:58 PM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Thanks Kenji for trying out. Its not clear in the log why the build >> shader code crashed. >> >> Also, I realized that you using Java bindings. Would it be possible to >> re-create this issue >> >> with a small sample code and you send it to me? We do have two component >> and 4 component >> >> test (dependent and independent). Please have a look here: >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx >> >> >> >> and >> >> >> >> >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx >> >> >> >> >> >> Thanks, >> >> >> >> >> >> On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> Thank you. >> >> I tried with vtkGPUVolumeRayCastMapper. >> >> An error occurs without setting IndependentComponentsOff. >> >> It seems the error occurs in >> vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 1:54 PM >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> >> >> >> >> On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hello, >> >> >> >> I have 3D cardiac MRI data (magnitude data and velocity data), and would >> like to display the volume rendering of the two data. >> >> I create vtkVolume with two components (first one is velocity data and >> second one is magnitude data) and use vtkSmartVolumeMapper. >> >> When I set IndependentComponentsOn to the volume property, I can see what >> I want (refer to the first figure). >> >> But this setting disables GPU rendering and it is slow. >> >> >> >> I don't remember vtkSmartVolumeMapper has this logic, I will have a look. >> In the old GPU raycast mapper, there was some issue with independent >> components so may be that is the reason that smart volume mapper switched >> to fixed point ray cast. >> >> >> >> Is there a particular reason you are using vtkSmartVolumeMapper? You can >> directly use GPUVolume RayCastMapper >> >> >> >> My understanding is that I have to use IndependentComponentsOff to make >> the mapper use GPU rendering. >> >> When I set IndependentComponentsOff, only one color transfer function, >> and only one scalar opacity function to the volume property, >> >> the magnitude data (the second component) is also color-coded (refer to >> the second figure). >> >> I thought this contradicts the method comments of >> IndependentComponentsOn/ IndependentComponentsOff. >> >> >> >> ?For 2 component data, the first is passed through the first color >> transfer function and the second component is passed through the first >> opacity transfer function.? >> >> >> >> Am I missing something? >> >> Can I make the volume rendering look the same as using two components? >> >> >> >> Thank you, >> >> >> >> BTY, I use v6.3.0, OpenGL2. >> >> >> >> -- >> >> Kenji Tsumura >> >> >> >> ?The information contained in this communication may be confidential, is >> intended only for the use of the recipient(s) named above, and may be >> legally privileged. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution, or >> copying of this communication, or any of its contents, is strictly >> prohibited. If you have received this communication in error, please return >> it to the sender immediately and delete the original message and any copy >> of it from your computer system. If you have any questions concerning this >> message, please contact the sender. >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_gradient_opacity.patch Type: text/x-patch Size: 20454 bytes Desc: not available URL: From serge at infolytica.com Wed Dec 9 10:41:29 2015 From: serge at infolytica.com (Serge Lalonde) Date: Wed, 9 Dec 2015 10:41:29 -0500 Subject: [vtkusers] [MASSMAIL] What happened to vtkAlgorithm::PRESERVES_BOUNDS()? In-Reply-To: <56683701.5070403@infolytica.com> References: <56683701.5070403@infolytica.com> Message-ID: <56684BA9.80803@infolytica.com> An HTML attachment was scrubbed... URL: From serge at infolytica.com Wed Dec 9 10:45:18 2015 From: serge at infolytica.com (Serge Lalonde) Date: Wed, 9 Dec 2015 10:45:18 -0500 Subject: [vtkusers] vtkScalarBarRepresentation::SetOrientation error Message-ID: <56684C8E.3010404@infolytica.com> An HTML attachment was scrubbed... URL: From MEEHANBT at nv.doe.gov Wed Dec 9 10:40:10 2015 From: MEEHANBT at nv.doe.gov (Meehan, Bernard) Date: Wed, 9 Dec 2015 15:40:10 +0000 Subject: [vtkusers] How to set the vtkMatrix4x4 in function SetResliceAxes() of vtkImageReslice In-Reply-To: <201512090952.tB99qIIw004775-tB99qIIx004775@mta-1.nv.doe.gov> References: <201512090952.tB99qIIw004775-tB99qIIx004775@mta-1.nv.doe.gov> Message-ID: The class documentation describes the matrix as representing transformations in homogenous (x, y, z, w) coordinates: http://www.vtk.org/doc/nightly/html/classvtkMatrix4x4.html#details https://en.wikipedia.org/wiki/Homogeneous_coordinates https://andrewharvey4.wordpress.com/2008/09/29/xyzw-in-opengldirect3d-homogeneous-coordinates/ An example usage: http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Examples/ImageProcessing/Python/ImageSlicing.py (I think that the example has the transformation you were looking for) From: vtkusers > on behalf of ?? > Date: Wednesday, December 9, 2015 at 1:43 AM To: vtkusers > Subject: [vtkusers] How to set the vtkMatrix4x4 in function SetResliceAxes() of vtkImageReslice Hi, In Class vtkImageReslice , virtual void vtkImageReslice::SetResliceAxes (vtkMatrix4x4 *) Why Matrix: 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1 can get a slice that parallel to the XY plane? What the Matrix means in mathematics? Where can I get the detailed description? Thanks, Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Wed Dec 9 11:01:19 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 9 Dec 2015 11:01:19 -0500 Subject: [vtkusers] [MASSMAIL] What happened to vtkAlgorithm::PRESERVES_BOUNDS()? In-Reply-To: <56684BA9.80803@infolytica.com> References: <56683701.5070403@infolytica.com> <56684BA9.80803@infolytica.com> Message-ID: Serge. You are correct. We removed that to clean house in preparation for the parallel extent handling improvements. The priority streaming feature it was part of was largely unused in VTK and ParaView and we knew of no other users. If the use-case you are seeing was in an Algorithm that emitted it you are fine with simply removing it. If you had something that consumed it, then there would be more work as we don't have a direct replacement for this in the works. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Dec 9, 2015 at 10:41 AM, Serge Lalonde wrote: > To answer myself (I hope) and for posterity, > > it looks like PRESERVE_BOUNDS() is simply obsolete. I compared other from > vtkUnstructuredGridAlgorithm derived classes in VTK between 6.1 and 6.3 and > the code was simply removed. So I suspect that it's safe to do so in my > code. I'll update the list if this turns out to be wrong. > > On 12/9/2015 9:13 AM, Serge Lalonde wrote: > > Hello VTK users, > > VTK 6.1 had a vtkInformationIntegerKey member in vtkAlgorithm called > PRESERVES_BOUNDS(). > I'm upgrading to VTK 6.3 and this no longer exists (it was removed in VTK > 6.2). > We us this in a class we created that's derived from > vtkUnstructuredGridAlgorithm and I`d like to know the proper way to port it > to VTK 6.3. > I checked the change log between 6.1 and 6.2 and there's no mention of it, > but I suspect it was removed as part of the parallelism changes in the > pipeline. > > Anybody know how to handle this? > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Wed Dec 9 13:25:39 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Wed, 9 Dec 2015 18:25:39 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> Hi Aashish, I applied the patch to the latest VTK (from GIT) and rebuilt it. An error occurred when I run the test program you gave me without gradient opacity. Please find the attached file. I am not sure why? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 9:04 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Hi Kenji, Could you please try the attached patch? Once if works for you, I will clean it up and create a merge request. Thanks, On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary > wrote: Aha... I think I know how to fix the bug. Gradient opacity was the key. I will push a fix today. - Aashish On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura > wrote: Hi Aashish, Adding gradient opacity to the test sample causes the same error I have seen in my application. Please refer to the attached file. So my application works with IndependentComponents On after removing gradient opacity. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Tuesday, December 08, 2015 8:22 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura > wrote: Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: error_vtk_latest_w_patch.jpg Type: image/jpeg Size: 38831 bytes Desc: error_vtk_latest_w_patch.jpg URL: From aashish.chaudhary at kitware.com Wed Dec 9 13:35:23 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 13:35:23 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> Message-ID: Let me check.. scalarsRange is the local variables (float) type. I tested it on my Linux box and things were fine but it is possible that gcc failed to catch it. On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hi Aashish, > > > > I applied the patch to the latest VTK (from GIT) and rebuilt it. > > An error occurred when I run the test program you gave me without gradient > opacity. > > Please find the attached file. > > I am not sure why? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 9:04 AM > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Hi Kenji, > > > > Could you please try the attached patch? Once if works for you, I will > clean it up and create a merge request. > > > > Thanks, > > > > > > On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > Aha... I think I know how to fix the bug. Gradient opacity was the key. I > will push a fix today. > > > > - Aashish > > > > On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Adding gradient opacity to the test sample causes the same error I have > seen in my application. > > Please refer to the attached file. > > So my application works with IndependentComponents On after removing > gradient opacity. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Tuesday, December 08, 2015 8:22 AM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > That would be great Kenji, thanks. > > > > - Aashish > > > > On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Aashish, > > > > Thank you very much. > > I will try to run the test example and see what happens. > > If the test is ok, I will try to reproduce the problem with simpler code. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 3:58 PM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Thanks Kenji for trying out. Its not clear in the log why the build shader > code crashed. > > Also, I realized that you using Java bindings. Would it be possible to > re-create this issue > > with a small sample code and you send it to me? We do have two component > and 4 component > > test (dependent and independent). Please have a look here: > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx > > > > and > > > > > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx > > > > > > Thanks, > > > > > > On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 9 13:44:19 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 13:44:19 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> Message-ID: Kenji, Can you try the latest patch? Undo the last patch before you apply this patch: Thanks, On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Let me check.. scalarsRange is the local variables (float) type. I tested > it on my Linux box and things were > fine but it is possible that gcc failed to catch it. > > On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > >> Hi Aashish, >> >> >> >> I applied the patch to the latest VTK (from GIT) and rebuilt it. >> >> An error occurred when I run the test program you gave me without >> gradient opacity. >> >> Please find the attached file. >> >> I am not sure why? >> >> >> >> Thank you, >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Wednesday, December 09, 2015 9:04 AM >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Hi Kenji, >> >> >> >> Could you please try the attached patch? Once if works for you, I will >> clean it up and create a merge request. >> >> >> >> Thanks, >> >> >> >> >> >> On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >> Aha... I think I know how to fix the bug. Gradient opacity was the key. >> I will push a fix today. >> >> >> >> - Aashish >> >> >> >> On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> Adding gradient opacity to the test sample causes the same error I have >> seen in my application. >> >> Please refer to the attached file. >> >> So my application works with IndependentComponents On after removing >> gradient opacity. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Tuesday, December 08, 2015 8:22 AM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> That would be great Kenji, thanks. >> >> >> >> - Aashish >> >> >> >> On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Aashish, >> >> >> >> Thank you very much. >> >> I will try to run the test example and see what happens. >> >> If the test is ok, I will try to reproduce the problem with simpler code. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 3:58 PM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Thanks Kenji for trying out. Its not clear in the log why the build >> shader code crashed. >> >> Also, I realized that you using Java bindings. Would it be possible to >> re-create this issue >> >> with a small sample code and you send it to me? We do have two component >> and 4 component >> >> test (dependent and independent). Please have a look here: >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx >> >> >> >> and >> >> >> >> >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx >> >> >> >> >> >> Thanks, >> >> >> >> >> >> On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> Thank you. >> >> I tried with vtkGPUVolumeRayCastMapper. >> >> An error occurs without setting IndependentComponentsOff. >> >> It seems the error occurs in >> vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 1:54 PM >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> >> >> >> >> On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hello, >> >> >> >> I have 3D cardiac MRI data (magnitude data and velocity data), and would >> like to display the volume rendering of the two data. >> >> I create vtkVolume with two components (first one is velocity data and >> second one is magnitude data) and use vtkSmartVolumeMapper. >> >> When I set IndependentComponentsOn to the volume property, I can see what >> I want (refer to the first figure). >> >> But this setting disables GPU rendering and it is slow. >> >> >> >> I don't remember vtkSmartVolumeMapper has this logic, I will have a look. >> In the old GPU raycast mapper, there was some issue with independent >> components so may be that is the reason that smart volume mapper switched >> to fixed point ray cast. >> >> >> >> Is there a particular reason you are using vtkSmartVolumeMapper? You can >> directly use GPUVolume RayCastMapper >> >> >> >> My understanding is that I have to use IndependentComponentsOff to make >> the mapper use GPU rendering. >> >> When I set IndependentComponentsOff, only one color transfer function, >> and only one scalar opacity function to the volume property, >> >> the magnitude data (the second component) is also color-coded (refer to >> the second figure). >> >> I thought this contradicts the method comments of >> IndependentComponentsOn/ IndependentComponentsOff. >> >> >> >> ?For 2 component data, the first is passed through the first color >> transfer function and the second component is passed through the first >> opacity transfer function.? >> >> >> >> Am I missing something? >> >> Can I make the volume rendering look the same as using two components? >> >> >> >> Thank you, >> >> >> >> BTY, I use v6.3.0, OpenGL2. >> >> >> >> -- >> >> Kenji Tsumura >> >> >> >> ?The information contained in this communication may be confidential, is >> intended only for the use of the recipient(s) named above, and may be >> legally privileged. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution, or >> copying of this communication, or any of its contents, is strictly >> prohibited. If you have received this communication in error, please return >> it to the sender immediately and delete the original message and any copy >> of it from your computer system. If you have any questions concerning this >> message, please contact the sender. >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: fix_gradient_opacity.patch Type: text/x-patch Size: 20342 bytes Desc: not available URL: From kenji.tsumura at neosoftmedical.com Wed Dec 9 14:39:44 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Wed, 9 Dec 2015 19:39:44 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> Hi Aashish, I tried, but both my application and the test program doesn?t work with gradient opacity. The display window were black. There is no apparent error? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 12:44 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Kenji, Can you try the latest patch? Undo the last patch before you apply this patch: Thanks, On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary > wrote: Let me check.. scalarsRange is the local variables (float) type. I tested it on my Linux box and things were fine but it is possible that gcc failed to catch it. On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura > wrote: Hi Aashish, I applied the patch to the latest VTK (from GIT) and rebuilt it. An error occurred when I run the test program you gave me without gradient opacity. Please find the attached file. I am not sure why? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 9:04 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Hi Kenji, Could you please try the attached patch? Once if works for you, I will clean it up and create a merge request. Thanks, On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary > wrote: Aha... I think I know how to fix the bug. Gradient opacity was the key. I will push a fix today. - Aashish On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura > wrote: Hi Aashish, Adding gradient opacity to the test sample causes the same error I have seen in my application. Please refer to the attached file. So my application works with IndependentComponents On after removing gradient opacity. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Tuesday, December 08, 2015 8:22 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura > wrote: Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 9 14:43:26 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 14:43:26 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> Message-ID: Make sure that your gradient opacity function is set correctly (or as expected). I believe you are going from 0.0 - 0.5. Can you change it to 0.2 - 0.5 and see if something shows up? Thanks, On Wed, Dec 9, 2015 at 2:39 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Hi Aashish, > > > > I tried, but both my application and the test program doesn?t work with > gradient opacity. > > The display window were black. > > There is no apparent error? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 12:44 PM > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Kenji, > > > > Can you try the latest patch? Undo the last patch before you apply this > patch: > > > > Thanks, > > > > > > On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > Let me check.. scalarsRange is the local variables (float) type. I tested > it on my Linux box and things were > > fine but it is possible that gcc failed to catch it. > > > > On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > I applied the patch to the latest VTK (from GIT) and rebuilt it. > > An error occurred when I run the test program you gave me without gradient > opacity. > > Please find the attached file. > > I am not sure why? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 9:04 AM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Hi Kenji, > > > > Could you please try the attached patch? Once if works for you, I will > clean it up and create a merge request. > > > > Thanks, > > > > > > On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > Aha... I think I know how to fix the bug. Gradient opacity was the key. I > will push a fix today. > > > > - Aashish > > > > On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Adding gradient opacity to the test sample causes the same error I have > seen in my application. > > Please refer to the attached file. > > So my application works with IndependentComponents On after removing > gradient opacity. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Tuesday, December 08, 2015 8:22 AM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > That would be great Kenji, thanks. > > > > - Aashish > > > > On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Aashish, > > > > Thank you very much. > > I will try to run the test example and see what happens. > > If the test is ok, I will try to reproduce the problem with simpler code. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 3:58 PM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Thanks Kenji for trying out. Its not clear in the log why the build shader > code crashed. > > Also, I realized that you using Java bindings. Would it be possible to > re-create this issue > > with a small sample code and you send it to me? We do have two component > and 4 component > > test (dependent and independent). Please have a look here: > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx > > > > and > > > > > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx > > > > > > Thanks, > > > > > > On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassminabdallah at gmail.com Wed Dec 9 14:44:22 2015 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Wed, 9 Dec 2015 12:44:22 -0700 (MST) Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' Message-ID: <1449690262715-5735445.post@n5.nabble.com> Hello, i face this error, Error: no override found for 'vtkRayCastImageDisplayHelper'. whenever i initial vtkFixedPointVolumeRayCastMapper or vtkSmartVolumeMapper. -vtkNew volumeRayCastMapper; i run the code for iOS. any help please? -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-no-override-found-for-vtkRayCastImageDisplayHelper-tp5735445.html Sent from the VTK - Users mailing list archive at Nabble.com. From kenji.tsumura at neosoftmedical.com Wed Dec 9 14:58:41 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Wed, 9 Dec 2015 19:58:41 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9EF26@neocoilexch01> Thank for the advice. Now I can see volume rendering in both my application and test program with gradient option. When I run, the console output program source code in the attached file. Is this because I am using latest VTK? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 1:43 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Make sure that your gradient opacity function is set correctly (or as expected). I believe you are going from 0.0 - 0.5. Can you change it to 0.2 - 0.5 and see if something shows up? Thanks, On Wed, Dec 9, 2015 at 2:39 PM, Kenji Tsumura > wrote: Hi Aashish, I tried, but both my application and the test program doesn?t work with gradient opacity. The display window were black. There is no apparent error? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 12:44 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Kenji, Can you try the latest patch? Undo the last patch before you apply this patch: Thanks, On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary > wrote: Let me check.. scalarsRange is the local variables (float) type. I tested it on my Linux box and things were fine but it is possible that gcc failed to catch it. On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura > wrote: Hi Aashish, I applied the patch to the latest VTK (from GIT) and rebuilt it. An error occurred when I run the test program you gave me without gradient opacity. Please find the attached file. I am not sure why? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 9:04 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Hi Kenji, Could you please try the attached patch? Once if works for you, I will clean it up and create a merge request. Thanks, On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary > wrote: Aha... I think I know how to fix the bug. Gradient opacity was the key. I will push a fix today. - Aashish On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura > wrote: Hi Aashish, Adding gradient opacity to the test sample causes the same error I have seen in my application. Please refer to the attached file. So my application works with IndependentComponents On after removing gradient opacity. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Tuesday, December 08, 2015 8:22 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura > wrote: Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: consoleoutput.txt URL: From aashish.chaudhary at kitware.com Wed Dec 9 15:01:00 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 15:01:00 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: <10285631702C4D4CB5C4921DC14337954EE9EF26@neocoilexch01> References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EF26@neocoilexch01> Message-ID: Hi Kenji, That's just my patch in case you had to send me what shader we were generating. You can ignore this as in my branch to VTK, I will remove it. Make sure that your gradients are matching with gradient opacity values or else you would not see anything or will see unexpected color and opacity. - aashish On Wed, Dec 9, 2015 at 2:58 PM, Kenji Tsumura < kenji.tsumura at neosoftmedical.com> wrote: > Thank for the advice. > > Now I can see volume rendering in both my application and test program > with gradient option. > > When I run, the console output program source code in the attached file. > > Is this because I am using latest VTK? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 1:43 PM > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Make sure that your gradient opacity function is set correctly (or as > expected). I believe you are going from 0.0 - 0.5. Can you change it to 0.2 > - 0.5 and see if something shows up? > > > > Thanks, > > > > > > On Wed, Dec 9, 2015 at 2:39 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > I tried, but both my application and the test program doesn?t work with > gradient opacity. > > The display window were black. > > There is no apparent error? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 12:44 PM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Kenji, > > > > Can you try the latest patch? Undo the last patch before you apply this > patch: > > > > Thanks, > > > > > > On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > Let me check.. scalarsRange is the local variables (float) type. I tested > it on my Linux box and things were > > fine but it is possible that gcc failed to catch it. > > > > On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > I applied the patch to the latest VTK (from GIT) and rebuilt it. > > An error occurred when I run the test program you gave me without gradient > opacity. > > Please find the attached file. > > I am not sure why? > > > > Thank you, > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Wednesday, December 09, 2015 9:04 AM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Hi Kenji, > > > > Could you please try the attached patch? Once if works for you, I will > clean it up and create a merge request. > > > > Thanks, > > > > > > On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > > Aha... I think I know how to fix the bug. Gradient opacity was the key. I > will push a fix today. > > > > - Aashish > > > > On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Adding gradient opacity to the test sample causes the same error I have > seen in my application. > > Please refer to the attached file. > > So my application works with IndependentComponents On after removing > gradient opacity. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Tuesday, December 08, 2015 8:22 AM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > That would be great Kenji, thanks. > > > > - Aashish > > > > On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Aashish, > > > > Thank you very much. > > I will try to run the test example and see what happens. > > If the test is ok, I will try to reproduce the problem with simpler code. > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 3:58 PM > > > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > Thanks Kenji for trying out. Its not clear in the log why the build shader > code crashed. > > Also, I realized that you using Java bindings. Would it be possible to > re-create this issue > > with a small sample code and you send it to me? We do have two component > and 4 component > > test (dependent and independent). Please have a look here: > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx > > > > and > > > > > https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx > > > > > > Thanks, > > > > > > On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hi Aashish, > > > > Thank you. > > I tried with vtkGPUVolumeRayCastMapper. > > An error occurs without setting IndependentComponentsOff. > > It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader > (See the attached file). > > > > Kenji > > > > *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] > *Sent:* Monday, December 07, 2015 1:54 PM > *To:* Kenji Tsumura > *Cc:* vtkusers at vtk.org > *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and > Off > > > > > > > > On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > > Hello, > > > > I have 3D cardiac MRI data (magnitude data and velocity data), and would > like to display the volume rendering of the two data. > > I create vtkVolume with two components (first one is velocity data and > second one is magnitude data) and use vtkSmartVolumeMapper. > > When I set IndependentComponentsOn to the volume property, I can see what > I want (refer to the first figure). > > But this setting disables GPU rendering and it is slow. > > > > I don't remember vtkSmartVolumeMapper has this logic, I will have a look. > In the old GPU raycast mapper, there was some issue with independent > components so may be that is the reason that smart volume mapper switched > to fixed point ray cast. > > > > Is there a particular reason you are using vtkSmartVolumeMapper? You can > directly use GPUVolume RayCastMapper > > > > My understanding is that I have to use IndependentComponentsOff to make > the mapper use GPU rendering. > > When I set IndependentComponentsOff, only one color transfer function, and > only one scalar opacity function to the volume property, > > the magnitude data (the second component) is also color-coded (refer to > the second figure). > > I thought this contradicts the method comments of IndependentComponentsOn/ > IndependentComponentsOff. > > > > ?For 2 component data, the first is passed through the first color > transfer function and the second component is passed through the first > opacity transfer function.? > > > > Am I missing something? > > Can I make the volume rendering look the same as using two components? > > > > Thank you, > > > > BTY, I use v6.3.0, OpenGL2. > > > > -- > > Kenji Tsumura > > > > ?The information contained in this communication may be confidential, is > intended only for the use of the recipient(s) named above, and may be > legally privileged. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution, or > copying of this communication, or any of its contents, is strictly > prohibited. If you have received this communication in error, please return > it to the sender immediately and delete the original message and any copy > of it from your computer system. If you have any questions concerning this > message, please contact the sender. > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > > > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. > * > > *| http://www.kitware.com/company/team/chaudhary.html > * > Disclaimer: The information contained in this communication may be > confidential, is intended only for the use of the recipient(s) named above, > and may be legally privileged. If the reader of this message is not the > intended recipient, you are hereby notified that any dissemination, > distribution, or copying of this communication, or any of its contents, is > strictly prohibited. If you have received this communication in error, > please return it to the sender immediately and delete the original message > and any copy of it from your computer system. If you have any questions > concerning this message, please contact the sender. > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Wed Dec 9 18:24:37 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Thu, 10 Dec 2015 00:24:37 +0100 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: <1449690262715-5735445.post@n5.nabble.com> References: <1449690262715-5735445.post@n5.nabble.com> Message-ID: <5668B835.10901@gmail.com> Hey #include VTK_MODULE_INIT(vtkRenderingOpenGL); with |vtkRenderingVolumeOpenGL| instead of vtkRenderingOpenGL http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines Am 09.12.2015 um 20:44 schrieb YassminAbdallah: > Error: no override found for 'vtkRayCastImageDisplayHelper' -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassminabdallah at gmail.com Wed Dec 9 20:50:19 2015 From: yassminabdallah at gmail.com (Yassmin Abdallah) Date: Thu, 10 Dec 2015 03:50:19 +0200 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: <5668B835.10901@gmail.com> References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> Message-ID: <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> Hello, Thanks a lot for your reply, i added them but those errors appear, Undefined symbols for architecture x86_64: "vtkRenderingVolumeOpenGL_AutoInit_Destruct()", referenced from: vtkRenderingVolumeOpenGL_ModuleInit::~vtkRenderingVolumeOpenGL_ModuleInit() in ViewController.o "vtkRenderingVolumeOpenGL_AutoInit_Construct()", referenced from: vtkRenderingVolumeOpenGL_ModuleInit::vtkRenderingVolumeOpenGL_ModuleInit() in ViewController.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) > On Dec 10, 2015, at 1:24 AM, Imre Goretzki wrote: > > Hey > #include > VTK_MODULE_INIT(vtkRenderingOpenGL); > with > vtkRenderingVolumeOpenGL > instead of > vtkRenderingOpenGL > > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines > > Am 09.12.2015 um 20:44 schrieb YassminAbdallah: >> Error: no override found for 'vtkRayCastImageDisplayHelper' > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 9 21:09:20 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 21:09:20 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> Message-ID: Are you using installed VTK libraries? Also, make sure you link with vtkRenderingVolumeOpenGL. On Wed, Dec 9, 2015 at 8:50 PM, Yassmin Abdallah wrote: > Hello, > > Thanks a lot for your reply, > > i added them but those errors appear, > > Undefined symbols for architecture x86_64: > "vtkRenderingVolumeOpenGL_AutoInit_Destruct()", referenced from: > > vtkRenderingVolumeOpenGL_ModuleInit::~vtkRenderingVolumeOpenGL_ModuleInit() > in ViewController.o > "vtkRenderingVolumeOpenGL_AutoInit_Construct()", referenced from: > > vtkRenderingVolumeOpenGL_ModuleInit::vtkRenderingVolumeOpenGL_ModuleInit() > in ViewController.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see > invocation) > > > > On Dec 10, 2015, at 1:24 AM, Imre Goretzki > wrote: > > Hey > > #include > VTK_MODULE_INIT(vtkRenderingOpenGL); > > with > > vtkRenderingVolumeOpenGL > > instead of > > vtkRenderingOpenGL > > > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines > > Am 09.12.2015 um 20:44 schrieb YassminAbdallah: > > Error: no override found for 'vtkRayCastImageDisplayHelper' > > > _______________________________________________ > 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: > http://public.kitware.com/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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassminabdallah at gmail.com Wed Dec 9 21:21:05 2015 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Wed, 9 Dec 2015 19:21:05 -0700 (MST) Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> Message-ID: Hello, i?m using the framework installed by the cmake, i really don?t know what?s the problem as ?vtkOpenGLGPUVolumeRayCastMapper" work fine without any problem . > On Dec 10, 2015, at 4:09 AM, Aashish Chaudhary-2 [via VTK] wrote: > > Are you using installed VTK libraries? Also, make sure you link with vtkRenderingVolumeOpenGL. > > On Wed, Dec 9, 2015 at 8:50 PM, Yassmin Abdallah <[hidden email] > wrote: > Hello, > > Thanks a lot for your reply, > > i added them but those errors appear, > > Undefined symbols for architecture x86_64: > "vtkRenderingVolumeOpenGL_AutoInit_Destruct()", referenced from: > vtkRenderingVolumeOpenGL_ModuleInit::~vtkRenderingVolumeOpenGL_ModuleInit() in ViewController.o > "vtkRenderingVolumeOpenGL_AutoInit_Construct()", referenced from: > vtkRenderingVolumeOpenGL_ModuleInit::vtkRenderingVolumeOpenGL_ModuleInit() in ViewController.o > ld: symbol(s) not found for architecture x86_64 > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > > >> On Dec 10, 2015, at 1:24 AM, Imre Goretzki <[hidden email] > wrote: >> >> Hey >> #include >> VTK_MODULE_INIT(vtkRenderingOpenGL); >> with >> vtkRenderingVolumeOpenGL >> instead of >> vtkRenderingOpenGL >> >> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines >> >> Am 09.12.2015 um 20:44 schrieb YassminAbdallah: >>> Error: no override found for 'vtkRayCastImageDisplayHelper' >> >> _______________________________________________ >> 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: >> http://public.kitware.com/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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > | Aashish Chaudhary > | Technical Leader > | Kitware Inc. > | http://www.kitware.com/company/team/chaudhary.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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > If you reply to this email, your message will be added to the discussion below: > http://vtk.1045678.n5.nabble.com/Error-no-override-found-for-vtkRayCastImageDisplayHelper-tp5735445p5735451.html > To unsubscribe from Error: no override found for 'vtkRayCastImageDisplayHelper', click here . > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-no-override-found-for-vtkRayCastImageDisplayHelper-tp5735445p5735452.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Wed Dec 9 23:39:16 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 9 Dec 2015 23:39:16 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> Message-ID: I was wondering about that. When using SmartVolumeMapper, did you include its header in the mm file? If you are linking with vtkRenderingCore and vtkRenderingVolumeOpenGL and vtkRenderingVolume then it seems strange that you are running into this issue. - Aashish On Wed, Dec 9, 2015 at 9:21 PM, YassminAbdallah wrote: > Hello, > > i?m using the framework installed by the cmake, > > i really don?t know what?s the problem as ? > vtkOpenGLGPUVolumeRayCastMapper" work fine without any problem . > > On Dec 10, 2015, at 4:09 AM, Aashish Chaudhary-2 [via VTK] <[hidden email] > > wrote: > > Are you using installed VTK libraries? Also, make sure you link with > vtkRenderingVolumeOpenGL. > > On Wed, Dec 9, 2015 at 8:50 PM, Yassmin Abdallah < href="x-msg://27/user/SendEmail.jtp?type=node&node=5735451&i=0" > target="_top" rel="nofollow" link="external" class="">[hidden email]> > wrote: > >> Hello, >> >> Thanks a lot for your reply, >> >> i added them but those errors appear, >> >> Undefined symbols for architecture x86_64: >> "vtkRenderingVolumeOpenGL_AutoInit_Destruct()", referenced from: >> vtkRenderingVolumeOpenGL_ModuleInit::~vtkRenderingVolumeOpenGL_ModuleInit() >> in ViewController.o >> "vtkRenderingVolumeOpenGL_AutoInit_Construct()", referenced from: >> vtkRenderingVolumeOpenGL_ModuleInit::vtkRenderingVolumeOpenGL_ModuleInit() >> in ViewController.o >> ld: symbol(s) not found for architecture x86_64 >> clang: error: linker command failed with exit code 1 (use -v to see >> invocation) >> >> >> >> On Dec 10, 2015, at 1:24 AM, Imre Goretzki <> href="x-msg://27/user/SendEmail.jtp?type=node&node=5735451&i=1" >> target="_top" rel="nofollow" link="external" class="">[hidden email]> wrote: >> >> Hey >> >> #include >> VTK_MODULE_INIT(vtkRenderingOpenGL); >> >> with >> >> vtkRenderingVolumeOpenGL >> >> instead of >> >> vtkRenderingOpenGL >> >> >> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines >> >> Am 09.12.2015 um 20:44 schrieb YassminAbdallah: >> >> Error: no override found for 'vtkRayCastImageDisplayHelper' >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://vtk.1045678.n5.nabble.com/Error-no-override-found-for-vtkRayCastImageDisplayHelper-tp5735445p5735451.html > To unsubscribe from Error: no override found for > 'vtkRayCastImageDisplayHelper', click here. > NAML > > > > > ------------------------------ > View this message in context: Re: Error: no override found for > 'vtkRayCastImageDisplayHelper' > > > Sent from the VTK - Users mailing list archive > at Nabble.com. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From yassminabdallah at gmail.com Thu Dec 10 00:00:16 2015 From: yassminabdallah at gmail.com (Yassmin Abdallah) Date: Thu, 10 Dec 2015 07:00:16 +0200 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> Message-ID: <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> Yes i included the header file, i got bad access when initial with the error no override found, -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-12-10 at 6.53.27 AM.png Type: image/png Size: 27015 bytes Desc: not available URL: From yihui.cao at qq.com Thu Dec 10 03:53:24 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Thu, 10 Dec 2015 16:53:24 +0800 Subject: [vtkusers] Turn off Observers "MouseMoveEvent" in vtkInteractorStyleImage Message-ID: Hi, When I show an image used vtkInteractorStyleImage, left button down and move, the ColorLevel of image will changing. I want to turn off the observer of "MouseMoveEvent" and write the follow code. But it do not work. So anyone can tell me how to turn off the observer or turn off this function. cpp code: vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); vtkSmartPointer imagestyle = vtkSmartPointer::New(); imagestyle->RemoveObservers(vtkCommand::MouseMoveEvent); //imagestyle->RemoveAllObservers(); renderWindowInteractor->SetInteractorStyle(imagestyle); renderWindowInteractor->SetRenderWindow(renderWindow); renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); Thanks, Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Dec 10 07:55:37 2015 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 10 Dec 2015 07:55:37 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> Message-ID: Maybe try adding vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); early on and make sure you are building vtk with the OpenGL ES version 3.0 versus 2.0 Ken On Thu, Dec 10, 2015 at 12:00 AM, Yassmin Abdallah < yassminabdallah at gmail.com> wrote: > Yes i included the header file, > > i got bad access when initial with the error no override found, > > > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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: Screen Shot 2015-12-10 at 6.53.27 AM.png Type: image/png Size: 27015 bytes Desc: not available URL: From ken.martin at kitware.com Thu Dec 10 07:57:50 2015 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 10 Dec 2015 07:57:50 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> Message-ID: Sorry I was assuming you were on iOS based on prior emails. If on x86 etc then ignore what I said. On Thu, Dec 10, 2015 at 7:55 AM, Ken Martin wrote: > Maybe try adding > > > vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); > > early on and make sure you are building vtk with the OpenGL ES version 3.0 > versus 2.0 > > Ken > > > On Thu, Dec 10, 2015 at 12:00 AM, Yassmin Abdallah < > yassminabdallah at gmail.com> wrote: > >> Yes i included the header file, >> >> i got bad access when initial with the error no override found, >> >> >> >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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 Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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: Screen Shot 2015-12-10 at 6.53.27 AM.png Type: image/png Size: 27015 bytes Desc: not available URL: From yassminabdallah at gmail.com Thu Dec 10 08:03:29 2015 From: yassminabdallah at gmail.com (Yassmin Abdallah) Date: Thu, 10 Dec 2015 15:03:29 +0200 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> Message-ID: <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> No sir you are right, just added this line and it works fine, vtkObjectFactory::RegisterFactory(vtkRenderingOpenGL2ObjectFactory::New()); vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); Thanks a lot. > On Dec 10, 2015, at 2:57 PM, Ken Martin wrote: > > Sorry I was assuming you were on iOS based on prior emails. If on x86 etc then ignore what I said. > > On Thu, Dec 10, 2015 at 7:55 AM, Ken Martin > wrote: > Maybe try adding > > vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); > > early on and make sure you are building vtk with the OpenGL ES version 3.0 versus 2.0 > > Ken > > > On Thu, Dec 10, 2015 at 12:00 AM, Yassmin Abdallah > wrote: > Yes i included the header file, > > i got bad access when initial with the error no override found, > > > > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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 > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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 cory.quammen at kitware.com Thu Dec 10 08:22:02 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 10 Dec 2015 08:22:02 -0500 Subject: [vtkusers] Turn off Observers "MouseMoveEvent" in vtkInteractorStyleImage In-Reply-To: References: Message-ID: That won't work. There aren't any observers registered with the interactor style. The style does register observers with the interactor which you theoretically selectively remove, but I wouldn't recommend that. Instead, you can subclass vtkInteractorStyleImage and override the OnMouseMove() member function to avoid the change in color level. Thanks, Cory On Thu, Dec 10, 2015 at 3:53 AM, ?? wrote: > Hi, > > When I show an image used vtkInteractorStyleImage, left button down and > move, the ColorLevel of image will changing. I want to turn off the > observer of "MouseMoveEvent" and write the follow code. But it do not > work. So anyone can tell me how to turn off the observer or turn off this > function. > > cpp code: > vtkSmartPointer renderWindowInteractor = > vtkSmartPointer::New(); > vtkSmartPointer imagestyle = > vtkSmartPointer::New(); > > imagestyle->RemoveObservers(vtkCommand::MouseMoveEvent); > //imagestyle->RemoveAllObservers(); > > renderWindowInteractor->SetInteractorStyle(imagestyle); > renderWindowInteractor->SetRenderWindow(renderWindow); > renderWindowInteractor->Initialize(); > renderWindowInteractor->Start(); > > Thanks, > Yihui Cao > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Thu Dec 10 08:29:46 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 10 Dec 2015 08:29:46 -0500 Subject: [vtkusers] www.vtk.org down for maintenance Thursday, 5:30pm EST Message-ID: www.vtk.org will be offline for an hour or so for maintenance starting today (Thursday, December 10, 2015) at 5:30pm EST. Git repositories on vtk.org will also be unavailable. Cheers, Cory -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Dec 10 10:05:12 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 10 Dec 2015 10:05:12 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> Message-ID: Thanks Ken. I see that in the example code you have added a call to RegisterFactory on OpenGL2. I am wondering why it is needed to make a explicit call to it? On Thu, Dec 10, 2015 at 8:03 AM, Yassmin Abdallah wrote: > No sir you are right, > > just added this line and it works fine, > > vtkObjectFactory::RegisterFactory(vtkRenderingOpenGL2ObjectFactory:: > New()); > > > vtkObjectFactory::RegisterFactory( > vtkRenderingVolumeOpenGL2ObjectFactory::New()); > > Thanks a lot. > > > > On Dec 10, 2015, at 2:57 PM, Ken Martin wrote: > > Sorry I was assuming you were on iOS based on prior emails. If on x86 etc > then ignore what I said. > > On Thu, Dec 10, 2015 at 7:55 AM, Ken Martin > wrote: > >> Maybe try adding >> >> >> vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); >> >> early on and make sure you are building vtk with the OpenGL ES version >> 3.0 versus 2.0 >> >> Ken >> >> >> On Thu, Dec 10, 2015 at 12:00 AM, Yassmin Abdallah < >> yassminabdallah at gmail.com> wrote: >> >>> Yes i included the header file, >>> >>> i got bad access when initial with the error no override found, >>> >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Ken Martin PhD >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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 > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > 518 371 3971 > > 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. > > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Dec 10 10:17:58 2015 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 10 Dec 2015 10:17:58 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <1449690262715-5735445.post@n5.nabble.com> <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> Message-ID: I do not know why it is required for me on iOS but it seemed that at least some times I do need it. Maybe an objective C setting on my Xcode projects or something with the cross compiled framework initialization. Not sure. Thanks Ken On Thu, Dec 10, 2015 at 10:05 AM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Thanks Ken. I see that in the example code you have added a call to > RegisterFactory on OpenGL2. I am wondering why it is needed to make a > explicit call to it? > > On Thu, Dec 10, 2015 at 8:03 AM, Yassmin Abdallah < > yassminabdallah at gmail.com> wrote: > >> No sir you are right, >> >> just added this line and it works fine, >> >> vtkObjectFactory::RegisterFactory(vtkRenderingOpenGL2ObjectFactory:: >> New()); >> >> >> vtkObjectFactory::RegisterFactory( >> vtkRenderingVolumeOpenGL2ObjectFactory::New()); >> >> Thanks a lot. >> >> >> >> On Dec 10, 2015, at 2:57 PM, Ken Martin wrote: >> >> Sorry I was assuming you were on iOS based on prior emails. If on x86 etc >> then ignore what I said. >> >> On Thu, Dec 10, 2015 at 7:55 AM, Ken Martin >> wrote: >> >>> Maybe try adding >>> >>> >>> vtkObjectFactory::RegisterFactory(vtkRenderingVolumeOpenGL2ObjectFactory::New()); >>> >>> early on and make sure you are building vtk with the OpenGL ES version >>> 3.0 versus 2.0 >>> >>> Ken >>> >>> >>> On Thu, Dec 10, 2015 at 12:00 AM, Yassmin Abdallah < >>> yassminabdallah at gmail.com> wrote: >>> >>>> Yes i included the header file, >>>> >>>> i got bad access when initial with the error no override found, >>>> >>>> >>>> >>>> >>>> >>>> >>>> _______________________________________________ >>>> 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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >>> >>> -- >>> Ken Martin PhD >>> Chairman & CFO >>> Kitware Inc. >>> 28 Corporate Drive >>> Clifton Park NY 12065 >>> 518 371 3971 >>> >>> 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 >> Chairman & CFO >> Kitware Inc. >> 28 Corporate Drive >> Clifton Park NY 12065 >> 518 371 3971 >> >> 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. >> >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 yassminabdallah at gmail.com Thu Dec 10 10:22:50 2015 From: yassminabdallah at gmail.com (YassminAbdallah) Date: Thu, 10 Dec 2015 08:22:50 -0700 (MST) Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> Message-ID: Hello, when register with ?vtkRenderingVolumeOpenGL2ObjectFactory? only, an error appears, Error: no override found for 'vtkRenderer?. and when register ?vtkRenderingOpenGL2ObjectFactory? only this error appears, Error: no override found for 'vtkRayCastImageDisplayHelper?. when using any of volume mapper techniques i need to register the two of them so it works fine. except ?vtkOpenGLGPUVolumeRayCastMapper? works fine with ?vtkRenderingOpenGL2ObjectFactory? only -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-no-override-found-for-vtkRayCastImageDisplayHelper-tp5735445p5735466.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Dec 10 10:28:22 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 10 Dec 2015 10:28:22 -0500 Subject: [vtkusers] Error: no override found for 'vtkRayCastImageDisplayHelper' In-Reply-To: References: <5668B835.10901@gmail.com> <8CCAD08A-1273-44C4-9E57-526EE462AD63@gmail.com> <16271277-9E47-49ED-8561-C24DC9F50D1E@gmail.com> <76259B99-AFDD-455C-9690-5A10E46F2B8D@gmail.com> Message-ID: @Thank Ken for the explanation. On Thu, Dec 10, 2015 at 10:22 AM, YassminAbdallah wrote: > Hello, > > when register with ?vtkRenderingVolumeOpenGL2ObjectFactory? only, an > error appears, > > *Error: no override found for 'vtkRenderer?.* > > and when register* ?*vtkRenderingOpenGL2ObjectFactory*? *only this error > appears, > > *Error: no override found for 'vtkRayCastImageDisplayHelper?.* > > when using any of volume mapper techniques i need to register the two of > them so it works fine. > > except *?*vtkOpenGLGPUVolumeRayCastMapper? works fine with ? > vtkRenderingOpenGL2ObjectFactory? only > yes it all makes sense. * vtkRenderer *is defined in vtkRenderingOpenGL and Volume classes are contained in the other module. So yes, you would need both. > > > > > ------------------------------ > View this message in context: Re: Error: no override found for > 'vtkRayCastImageDisplayHelper' > > Sent from the VTK - Users mailing list archive > at Nabble.com. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From florian.blachere at univ-nantes.fr Thu Dec 10 12:48:19 2015 From: florian.blachere at univ-nantes.fr (=?UTF-8?Q?Florian_Blach=c3=a8re?=) Date: Thu, 10 Dec 2015 18:48:19 +0100 Subject: [vtkusers] System HDF with bundled NetCDF In-Reply-To: <20151208155610.GA2107@megas.khq.kitware.com> References: <5666C6F7.2050803@univ-nantes.fr> <20151208155610.GA2107@megas.khq.kitware.com> Message-ID: <5669BAE3.8020806@univ-nantes.fr> On 08/12/15 16:56, Ben Boeckel wrote: > On Tue, Dec 08, 2015 at 13:03:03 +0100, Florian Blach?re wrote: >> When compiling VTK with system HDF5 and NetCDF from the thirdparty >> (because newer NetCDF seems to be incompatible), > What version? We have a dashboard which compiles against a system > 4.3.3.1 (with netcdf-cxx 4.2) just fine. You do need the C++ bindings as > well; the VTK netcdf is patched such that both are included (something I > plan on fixing when I get around to updating our netcdf). VTK seems to use the 'Legacy NetCDF-3 C++' while Arch provides 'NetCDF-4 C++', using the name from http://www.unidata.ucar.edu/downloads/netcdf/index.jsp, I think that's why the build with system NetCDF is failing. Using the attached patch makes permits to build with system HDF5 and bundled NetCDF, but I do not see why it's working. Florian. -------------- next part -------------- A non-text attachment was scrubbed... Name: find_hdf5.patch Type: text/x-diff Size: 458 bytes Desc: not available URL: From ben.boeckel at kitware.com Thu Dec 10 13:04:14 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Thu, 10 Dec 2015 13:04:14 -0500 Subject: [vtkusers] System HDF with bundled NetCDF In-Reply-To: <5669BAE3.8020806@univ-nantes.fr> References: <5666C6F7.2050803@univ-nantes.fr> <20151208155610.GA2107@megas.khq.kitware.com> <5669BAE3.8020806@univ-nantes.fr> Message-ID: <20151210180414.GA22464@megas.khq.kitware.com> On Thu, Dec 10, 2015 at 18:48:19 +0100, Florian Blach?re wrote: > VTK seems to use the 'Legacy NetCDF-3 C++' while Arch provides 'NetCDF-4 > C++', using the name from > http://www.unidata.ucar.edu/downloads/netcdf/index.jsp, I think that's > why the build with system NetCDF is failing. Hrm, OK. Well, NetCDF and HDF5 are next on my list of "update VTK's third party packages" anyways. Not sure when I'll get the time though. > Using the attached patch makes permits to build with system HDF5 and > bundled NetCDF, but I do not see why it's working. I guess it makes sure that the right HDF5 is found? It looks strange, but I didn't look at it in-depth either. --Ben From DLRdave at aol.com Thu Dec 10 14:35:18 2015 From: DLRdave at aol.com (David Cole) Date: Thu, 10 Dec 2015 14:35:18 -0500 Subject: [vtkusers] Turn off Observers "MouseMoveEvent" in vtkInteractorStyleImage In-Reply-To: References: Message-ID: If your goal is simply not to have any mouse activity do anything in the window, you could just use an instance of vtkInteractorStyle itself instead of vtkInteractorStyleImage. The base class vtkInteractorStyle does not have any mouse handling code in it, but it does implement the standard VTK keyboard shortcuts. HTH, David C. On Thu, Dec 10, 2015 at 8:22 AM, Cory Quammen wrote: > That won't work. There aren't any observers registered with the interactor > style. The style does register observers with the interactor which you > theoretically selectively remove, but I wouldn't recommend that. > > Instead, you can subclass vtkInteractorStyleImage and override the > OnMouseMove() member function to avoid the change in color level. > > Thanks, > Cory > > On Thu, Dec 10, 2015 at 3:53 AM, ?? wrote: >> >> Hi, >> >> When I show an image used vtkInteractorStyleImage, left button down and >> move, the ColorLevel of image will changing. I want to turn off the observer >> of "MouseMoveEvent" and write the follow code. But it do not work. So anyone >> can tell me how to turn off the observer or turn off this function. >> >> cpp code: >> vtkSmartPointer renderWindowInteractor = >> vtkSmartPointer::New(); >> vtkSmartPointer imagestyle = >> vtkSmartPointer::New(); >> >> imagestyle->RemoveObservers(vtkCommand::MouseMoveEvent); >> //imagestyle->RemoveAllObservers(); >> >> renderWindowInteractor->SetInteractorStyle(imagestyle); >> renderWindowInteractor->SetRenderWindow(renderWindow); >> renderWindowInteractor->Initialize(); >> renderWindowInteractor->Start(); >> >> Thanks, >> Yihui Cao >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > From laysrodriguessilva at gmail.com Thu Dec 10 21:38:47 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Fri, 11 Dec 2015 00:38:47 -0200 Subject: [vtkusers] Set light Intensity Message-ID: Hi, I would like to know, how to set lighting Intensity on a scene. I already look at those examples: http://www.vtk.org/Wiki/VTK/Examples/Cxx#Lighting The first example: I dont need a new shadow. The second example: I dont think that i need a new light to contrabalance the first light. The third example: I tried but the error: Is not a spotlight happens. And, i'm working with Vtk + Qt, and i dont find any solutions on the web. I tried this: auto col = vtkSmartPointer::New(); col = renderer->GetLights(); light = col->GetNextItem(); light->SetIntensity(10); But the program crashed. What do i do? Please, help me. -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Thu Dec 10 21:39:03 2015 From: binarybottle at gmail.com (Arno Klein) Date: Thu, 10 Dec 2015 18:39:03 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Thank you for your help! I am now able to compile with cmake on linux, but get the following error on macosx 10.11, even though there is no "unistd.h" anywhere in my github repo (https://github.com/nipy/mindboggle/issues/69): Scanning dependencies of target FsSurfaceReader [ 3%] Building CXX object CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o In file included from /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: In file included from /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: 'unistd.h' file not found #include ^ 1 error generated. make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error 1 make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 make: *** [all] Error 2 Cheers, @rno On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle wrote: > I agree with Cory on Update() being redundant before the Write(). > > > vtkDataObject* dobj = someAlgorithm->GetOutput(1); > > dobj->Update(); > > should become: > > someAlgorithm->Update(1); //to make sure there is something valid > vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output for > later use > > Because since vtk6, dobj no longer has any connection to the algorithm, so > updating it (which used to update the algorithm for you) no longer has any > meaning. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen > wrote: > >> Arno, >> >> That pattern should be valid in VTK6. Are you getting compile errors? >> >> I believe the Update() and Write() calls to the writer are redundant - >> you should need only one. >> >> Thanks, >> Cory >> >> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >> wrote: >> >>> I am trying to update my code to migrate to VTK6 according to: >>> >>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>> >>> According to the examples on that site, I understand that: >>> >>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>> dobj->Update(); >>> >>> should become: >>> >>> someAlgorithm->Update(1); >>> >>> >>> However, I don?t know how to deal with the following pattern: >>> >>> void PointAreaComputer::WriteIntoFile(char *fileName) >>> { >>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>> writer->SetFileName(fileName); >>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>> writer->SetInputData(m_mesh); >>> writer->Update(); >>> writer->Write(); >>> writer->Delete(); >>> } >>> >>> What should I do to make this compatible with VTK6? >>> >>> Cheers, >>> @rno >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Cory Quammen >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Dec 10 22:52:06 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Dec 2015 20:52:06 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: The header unistd.h is posix standard and comes with every Xcode SDK. Try compiling the following trivial program. If it doesn't compile, then there must be something awry with your Xcode installation: #include int main() { return 0; } - David On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein wrote: > Thank you for your help! > > I am now able to compile with cmake on linux, but get the following error > on macosx 10.11, even though there is no "unistd.h" anywhere in my github > repo (https://github.com/nipy/mindboggle/issues/69): > > Scanning dependencies of target FsSurfaceReader > [ 3%] Building CXX object > CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o > In file included from > /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: > In file included from > /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: > In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: > In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: > In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: > In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: > In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: > In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: > In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: > In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: > In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: > In file included from > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: > fatal error: > 'unistd.h' file not found > #include > ^ > 1 error generated. > make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error 1 > make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 > make: *** [all] Error 2 > > Cheers, > @rno > > On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle > wrote: > >> I agree with Cory on Update() being redundant before the Write(). >> >> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >> > dobj->Update(); >> >> should become: >> >> someAlgorithm->Update(1); //to make sure there is something valid >> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output >> for later use >> >> Because since vtk6, dobj no longer has any connection to the algorithm, >> so updating it (which used to update the algorithm for you) no longer has >> any meaning. >> >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen >> wrote: >> >>> Arno, >>> >>> That pattern should be valid in VTK6. Are you getting compile errors? >>> >>> I believe the Update() and Write() calls to the writer are redundant - >>> you should need only one. >>> >>> Thanks, >>> Cory >>> >>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>> wrote: >>> >>>> I am trying to update my code to migrate to VTK6 according to: >>>> >>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>> >>>> According to the examples on that site, I understand that: >>>> >>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>> dobj->Update(); >>>> >>>> should become: >>>> >>>> someAlgorithm->Update(1); >>>> >>>> >>>> However, I don?t know how to deal with the following pattern: >>>> >>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>> { >>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>> writer->SetFileName(fileName); >>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>> writer->SetInputData(m_mesh); >>>> writer->Update(); >>>> writer->Write(); >>>> writer->Delete(); >>>> } >>>> >>>> What should I do to make this compatible with VTK6? >>>> >>>> Cheers, >>>> @rno >>>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Fri Dec 11 00:49:50 2015 From: binarybottle at gmail.com (Arno Klein) Date: Thu, 10 Dec 2015 21:49:50 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile other things, so I guess my Xcode installation is fine. What do you recommend I try next? Cheers, @rno On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi wrote: > The header unistd.h is posix standard and comes with every Xcode SDK. Try > compiling the following trivial program. If it doesn't compile, then there > must be something awry with your Xcode installation: > > #include > int main() > { > return 0; > } > > - David > > On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein > wrote: > >> Thank you for your help! >> >> I am now able to compile with cmake on linux, but get the following error >> on macosx 10.11, even though there is no "unistd.h" anywhere in my github >> repo (https://github.com/nipy/mindboggle/issues/69): >> >> Scanning dependencies of target FsSurfaceReader >> [ 3%] Building CXX object >> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >> In file included from >> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >> In file included from >> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >> In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >> In file included from >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >> fatal error: >> 'unistd.h' file not found >> #include >> ^ >> 1 error generated. >> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error >> 1 >> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >> make: *** [all] Error 2 >> >> Cheers, >> @rno >> >> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle > > wrote: >> >>> I agree with Cory on Update() being redundant before the Write(). >>> >>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>> > dobj->Update(); >>> >>> should become: >>> >>> someAlgorithm->Update(1); //to make sure there is something valid >>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output >>> for later use >>> >>> Because since vtk6, dobj no longer has any connection to the algorithm, >>> so updating it (which used to update the algorithm for you) no longer has >>> any meaning. >>> >>> >>> >>> David E DeMarle >>> Kitware, Inc. >>> R&D Engineer >>> 21 Corporate Drive >>> Clifton Park, NY 12065-8662 >>> Phone: 518-881-4909 >>> >>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen >>> wrote: >>> >>>> Arno, >>>> >>>> That pattern should be valid in VTK6. Are you getting compile errors? >>>> >>>> I believe the Update() and Write() calls to the writer are redundant - >>>> you should need only one. >>>> >>>> Thanks, >>>> Cory >>>> >>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>> wrote: >>>> >>>>> I am trying to update my code to migrate to VTK6 according to: >>>>> >>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>> >>>>> According to the examples on that site, I understand that: >>>>> >>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>> dobj->Update(); >>>>> >>>>> should become: >>>>> >>>>> someAlgorithm->Update(1); >>>>> >>>>> >>>>> However, I don?t know how to deal with the following pattern: >>>>> >>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>> { >>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>> writer->SetFileName(fileName); >>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>> writer->SetInputData(m_mesh); >>>>> writer->Update(); >>>>> writer->Write(); >>>>> writer->Delete(); >>>>> } >>>>> >>>>> What should I do to make this compatible with VTK6? >>>>> >>>>> Cheers, >>>>> @rno >>>>> >>>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Dec 11 01:00:54 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Dec 2015 23:00:54 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: You can try setting the SDK info in the CMakeCache.txt: CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 CMAKE_OSX_ARCHITECTURES:STRING=x86_64 CMAKE_OSX_SYSROOT:STRING=macosx10.11 I recommend deleting your entire build directory, creating a new CMakeCache.txt that has only these three lines, and then re-running cmake. - David On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein wrote: > 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile > other things, so I guess my Xcode installation is fine. What do you > recommend I try next? > > Cheers, > @rno > > On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi > wrote: > >> The header unistd.h is posix standard and comes with every Xcode SDK. >> Try compiling the following trivial program. If it doesn't compile, then >> there must be something awry with your Xcode installation: >> >> #include >> int main() >> { >> return 0; >> } >> >> - David >> >> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >> wrote: >> >>> Thank you for your help! >>> >>> I am now able to compile with cmake on linux, but get the following >>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>> github repo (https://github.com/nipy/mindboggle/issues/69): >>> >>> Scanning dependencies of target FsSurfaceReader >>> [ 3%] Building CXX object >>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>> In file included from >>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>> In file included from >>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>> In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>> In file included from >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>> fatal error: >>> 'unistd.h' file not found >>> #include >>> ^ >>> 1 error generated. >>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>> Error 1 >>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>> make: *** [all] Error 2 >>> >>> Cheers, >>> @rno >>> >>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>> dave.demarle at kitware.com> wrote: >>> >>>> I agree with Cory on Update() being redundant before the Write(). >>>> >>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>> > dobj->Update(); >>>> >>>> should become: >>>> >>>> someAlgorithm->Update(1); //to make sure there is something valid >>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output >>>> for later use >>>> >>>> Because since vtk6, dobj no longer has any connection to the algorithm, >>>> so updating it (which used to update the algorithm for you) no longer has >>>> any meaning. >>>> >>>> >>>> >>>> David E DeMarle >>>> Kitware, Inc. >>>> R&D Engineer >>>> 21 Corporate Drive >>>> Clifton Park, NY 12065-8662 >>>> Phone: 518-881-4909 >>>> >>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen >>>> wrote: >>>> >>>>> Arno, >>>>> >>>>> That pattern should be valid in VTK6. Are you getting compile errors? >>>>> >>>>> I believe the Update() and Write() calls to the writer are redundant - >>>>> you should need only one. >>>>> >>>>> Thanks, >>>>> Cory >>>>> >>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>>> wrote: >>>>> >>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>> >>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>> >>>>>> According to the examples on that site, I understand that: >>>>>> >>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>> dobj->Update(); >>>>>> >>>>>> should become: >>>>>> >>>>>> someAlgorithm->Update(1); >>>>>> >>>>>> >>>>>> However, I don?t know how to deal with the following pattern: >>>>>> >>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>> { >>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>> writer->SetFileName(fileName); >>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>> writer->SetInputData(m_mesh); >>>>>> writer->Update(); >>>>>> writer->Write(); >>>>>> writer->Delete(); >>>>>> } >>>>>> >>>>>> What should I do to make this compatible with VTK6? >>>>>> >>>>>> Cheers, >>>>>> @rno >>>>>> >>>>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Dec 11 01:14:09 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Dec 2015 23:14:09 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Actually I might have misunderstood your issue. Did you build VTK 6 yourself, or did you download a binary package? In either case, the three cmake variables that I mentioned above should be set the same in your own project as they are in the VTK that you are building against. On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi wrote: > You can try setting the SDK info in the CMakeCache.txt: > > CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 > CMAKE_OSX_ARCHITECTURES:STRING=x86_64 > CMAKE_OSX_SYSROOT:STRING=macosx10.11 > > I recommend deleting your entire build directory, creating a new > CMakeCache.txt that has only these three lines, and then re-running cmake. > > - David > > > On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein > wrote: > >> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile >> other things, so I guess my Xcode installation is fine. What do you >> recommend I try next? >> >> Cheers, >> @rno >> >> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >> wrote: >> >>> The header unistd.h is posix standard and comes with every Xcode SDK. >>> Try compiling the following trivial program. If it doesn't compile, then >>> there must be something awry with your Xcode installation: >>> >>> #include >>> int main() >>> { >>> return 0; >>> } >>> >>> - David >>> >>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>> wrote: >>> >>>> Thank you for your help! >>>> >>>> I am now able to compile with cmake on linux, but get the following >>>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>>> github repo (https://github.com/nipy/mindboggle/issues/69): >>>> >>>> Scanning dependencies of target FsSurfaceReader >>>> [ 3%] Building CXX object >>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>> In file included from >>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>> In file included from >>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>> In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>> In file included from >>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>> fatal error: >>>> 'unistd.h' file not found >>>> #include >>>> ^ >>>> 1 error generated. >>>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>>> Error 1 >>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>> make: *** [all] Error 2 >>>> >>>> Cheers, >>>> @rno >>>> >>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>> dave.demarle at kitware.com> wrote: >>>> >>>>> I agree with Cory on Update() being redundant before the Write(). >>>>> >>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>> > dobj->Update(); >>>>> >>>>> should become: >>>>> >>>>> someAlgorithm->Update(1); //to make sure there is something valid >>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output >>>>> for later use >>>>> >>>>> Because since vtk6, dobj no longer has any connection to the >>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>> longer has any meaning. >>>>> >>>>> >>>>> >>>>> David E DeMarle >>>>> Kitware, Inc. >>>>> R&D Engineer >>>>> 21 Corporate Drive >>>>> Clifton Park, NY 12065-8662 >>>>> Phone: 518-881-4909 >>>>> >>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen >>>> > wrote: >>>>> >>>>>> Arno, >>>>>> >>>>>> That pattern should be valid in VTK6. Are you getting compile errors? >>>>>> >>>>>> I believe the Update() and Write() calls to the writer are redundant >>>>>> - you should need only one. >>>>>> >>>>>> Thanks, >>>>>> Cory >>>>>> >>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>>>> wrote: >>>>>> >>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>> >>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>> >>>>>>> According to the examples on that site, I understand that: >>>>>>> >>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>> dobj->Update(); >>>>>>> >>>>>>> should become: >>>>>>> >>>>>>> someAlgorithm->Update(1); >>>>>>> >>>>>>> >>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>> >>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>> { >>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>> writer->SetFileName(fileName); >>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>> writer->SetInputData(m_mesh); >>>>>>> writer->Update(); >>>>>>> writer->Write(); >>>>>>> writer->Delete(); >>>>>>> } >>>>>>> >>>>>>> What should I do to make this compatible with VTK6? >>>>>>> >>>>>>> Cheers, >>>>>>> @rno >>>>>>> >>>>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Fri Dec 11 01:46:30 2015 From: binarybottle at gmail.com (Arno Klein) Date: Thu, 10 Dec 2015 22:46:30 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: I built VTK 6 through the Anaconda Python distribution ("conda install vtk" installed 6.3). I placed the three lines you recommended in the top-level CMakeLists.txt file in my library: SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") SET(CMAKE_OSX_ARCHITECTURES "x86_64") SET(CMAKE_OSX_SYSROOT "macosx10.11") This enabled the make command to compile farther than I have been able to get so far. However, it requires someone to explicitly specify which version of MacOSX, which I was hoping to avoid. Previously, I was using: #https://forums.developer.apple.com/thread/17334 SET(CMAKE_OSX_DEPLOYMENT_TARGET "") SET(CMAKE_OSX_SYSROOT /) or: # https://cmake.org/Bug/view.php?id=14695 SET(MACOSX_DEPLOYMENT_TARGET ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}") Cheers, @rno On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi wrote: > Actually I might have misunderstood your issue. Did you build VTK 6 > yourself, or did you download a binary package? In either case, the three > cmake variables that I mentioned above should be set the same in your own > project as they are in the VTK that you are building against. > > On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi > wrote: > >> You can try setting the SDK info in the CMakeCache.txt: >> >> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >> >> I recommend deleting your entire build directory, creating a new >> CMakeCache.txt that has only these three lines, and then re-running cmake. >> >> - David >> >> >> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >> wrote: >> >>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile >>> other things, so I guess my Xcode installation is fine. What do you >>> recommend I try next? >>> >>> Cheers, >>> @rno >>> >>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>> wrote: >>> >>>> The header unistd.h is posix standard and comes with every Xcode SDK. >>>> Try compiling the following trivial program. If it doesn't compile, then >>>> there must be something awry with your Xcode installation: >>>> >>>> #include >>>> int main() >>>> { >>>> return 0; >>>> } >>>> >>>> - David >>>> >>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>>> wrote: >>>> >>>>> Thank you for your help! >>>>> >>>>> I am now able to compile with cmake on linux, but get the following >>>>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>>>> github repo (https://github.com/nipy/mindboggle/issues/69): >>>>> >>>>> Scanning dependencies of target FsSurfaceReader >>>>> [ 3%] Building CXX object >>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>> In file included from >>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>> In file included from >>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>> In file included from >>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>> In file included from >>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>> fatal error: >>>>> 'unistd.h' file not found >>>>> #include >>>>> ^ >>>>> 1 error generated. >>>>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>>>> Error 1 >>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>> make: *** [all] Error 2 >>>>> >>>>> Cheers, >>>>> @rno >>>>> >>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>> dave.demarle at kitware.com> wrote: >>>>> >>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>> >>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>> > dobj->Update(); >>>>>> >>>>>> should become: >>>>>> >>>>>> someAlgorithm->Update(1); //to make sure there is something valid >>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>> output for later use >>>>>> >>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>> longer has any meaning. >>>>>> >>>>>> >>>>>> >>>>>> David E DeMarle >>>>>> Kitware, Inc. >>>>>> R&D Engineer >>>>>> 21 Corporate Drive >>>>>> Clifton Park, NY 12065-8662 >>>>>> Phone: 518-881-4909 >>>>>> >>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>> cory.quammen at kitware.com> wrote: >>>>>> >>>>>>> Arno, >>>>>>> >>>>>>> That pattern should be valid in VTK6. Are you getting compile errors? >>>>>>> >>>>>>> I believe the Update() and Write() calls to the writer are redundant >>>>>>> - you should need only one. >>>>>>> >>>>>>> Thanks, >>>>>>> Cory >>>>>>> >>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>>>>> wrote: >>>>>>> >>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>> >>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>> >>>>>>>> According to the examples on that site, I understand that: >>>>>>>> >>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>> dobj->Update(); >>>>>>>> >>>>>>>> should become: >>>>>>>> >>>>>>>> someAlgorithm->Update(1); >>>>>>>> >>>>>>>> >>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>> >>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>> { >>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>> writer->SetFileName(fileName); >>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>> writer->SetInputData(m_mesh); >>>>>>>> writer->Update(); >>>>>>>> writer->Write(); >>>>>>>> writer->Delete(); >>>>>>>> } >>>>>>>> >>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>> >>>>>>>> Cheers, >>>>>>>> @rno >>>>>>>> >>>>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Fri Dec 11 01:57:16 2015 From: binarybottle at gmail.com (Arno Klein) Date: Thu, 10 Dec 2015 22:57:16 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: I forgot to mention that the other reason for not explicitly setting the version of OSX in the CMakeLists.txt file is because when I do set it appropriately (as you suggested), compilation inexplicably raises the following error, suggesting that outdated SDKs are required: make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', needed by `travel_depth/TravelDepthMain'. Stop. Cheers, @rno On Thu, Dec 10, 2015 at 10:46 PM, Arno Klein wrote: > I built VTK 6 through the Anaconda Python distribution ("conda install > vtk" installed 6.3). > > I placed the three lines you recommended in the top-level CMakeLists.txt > file in my library: > SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") > SET(CMAKE_OSX_ARCHITECTURES "x86_64") > SET(CMAKE_OSX_SYSROOT "macosx10.11") > > This enabled the make command to compile farther than I have been able to > get so far. However, it requires someone to explicitly specify which > version of MacOSX, which I was hoping to avoid. Previously, I was using: > > #https://forums.developer.apple.com/thread/17334 > SET(CMAKE_OSX_DEPLOYMENT_TARGET "") > SET(CMAKE_OSX_SYSROOT /) > > or: > > # https://cmake.org/Bug/view.php?id=14695 > SET(MACOSX_DEPLOYMENT_TARGET > ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) > SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}") > > > > Cheers, > @rno > > On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi > wrote: > >> Actually I might have misunderstood your issue. Did you build VTK 6 >> yourself, or did you download a binary package? In either case, the three >> cmake variables that I mentioned above should be set the same in your own >> project as they are in the VTK that you are building against. >> >> On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi >> wrote: >> >>> You can try setting the SDK info in the CMakeCache.txt: >>> >>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >>> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >>> >>> I recommend deleting your entire build directory, creating a new >>> CMakeCache.txt that has only these three lines, and then re-running cmake. >>> >>> - David >>> >>> >>> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >>> wrote: >>> >>>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile >>>> other things, so I guess my Xcode installation is fine. What do you >>>> recommend I try next? >>>> >>>> Cheers, >>>> @rno >>>> >>>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>>> wrote: >>>> >>>>> The header unistd.h is posix standard and comes with every Xcode SDK. >>>>> Try compiling the following trivial program. If it doesn't compile, then >>>>> there must be something awry with your Xcode installation: >>>>> >>>>> #include >>>>> int main() >>>>> { >>>>> return 0; >>>>> } >>>>> >>>>> - David >>>>> >>>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>>>> wrote: >>>>> >>>>>> Thank you for your help! >>>>>> >>>>>> I am now able to compile with cmake on linux, but get the following >>>>>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>>>>> github repo (https://github.com/nipy/mindboggle/issues/69): >>>>>> >>>>>> Scanning dependencies of target FsSurfaceReader >>>>>> [ 3%] Building CXX object >>>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>>> In file included from >>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>>> In file included from >>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>>> In file included from >>>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>>> In file included from >>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>>> fatal error: >>>>>> 'unistd.h' file not found >>>>>> #include >>>>>> ^ >>>>>> 1 error generated. >>>>>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>>>>> Error 1 >>>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>>> make: *** [all] Error 2 >>>>>> >>>>>> Cheers, >>>>>> @rno >>>>>> >>>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>>> dave.demarle at kitware.com> wrote: >>>>>> >>>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>>> >>>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>> > dobj->Update(); >>>>>>> >>>>>>> should become: >>>>>>> >>>>>>> someAlgorithm->Update(1); //to make sure there is something valid >>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>>> output for later use >>>>>>> >>>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>>> longer has any meaning. >>>>>>> >>>>>>> >>>>>>> >>>>>>> David E DeMarle >>>>>>> Kitware, Inc. >>>>>>> R&D Engineer >>>>>>> 21 Corporate Drive >>>>>>> Clifton Park, NY 12065-8662 >>>>>>> Phone: 518-881-4909 >>>>>>> >>>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>>> cory.quammen at kitware.com> wrote: >>>>>>> >>>>>>>> Arno, >>>>>>>> >>>>>>>> That pattern should be valid in VTK6. Are you getting compile >>>>>>>> errors? >>>>>>>> >>>>>>>> I believe the Update() and Write() calls to the writer are >>>>>>>> redundant - you should need only one. >>>>>>>> >>>>>>>> Thanks, >>>>>>>> Cory >>>>>>>> >>>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>>>>>> wrote: >>>>>>>> >>>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>>> >>>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>>> >>>>>>>>> According to the examples on that site, I understand that: >>>>>>>>> >>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>> dobj->Update(); >>>>>>>>> >>>>>>>>> should become: >>>>>>>>> >>>>>>>>> someAlgorithm->Update(1); >>>>>>>>> >>>>>>>>> >>>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>>> >>>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>>> { >>>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>>> writer->SetFileName(fileName); >>>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>>> writer->SetInputData(m_mesh); >>>>>>>>> writer->Update(); >>>>>>>>> writer->Write(); >>>>>>>>> writer->Delete(); >>>>>>>>> } >>>>>>>>> >>>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> @rno >>>>>>>>> >>>>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Dec 11 02:09:03 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Dec 2015 00:09:03 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Ah, so you're building a binary package to share with others. I strongly advise against using these: SET(CMAKE_OSX_DEPLOYMENT_TARGET "") SET(CMAKE_OSX_SYSROOT /) The resulting binary will only work with your own version of OS X or later. Your best bet is to name a reasonably old deployment target (e.g. 10.7) and SDK (e.g. 10.9). CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 CMAKE_OSX_SYSROOT:STRING=macosx10.9 These will provide a binary package that will work on 10.7 or later. What is the minimum supported OS X that the anaconda VTK supports? Ideally, you should use that version as your deployment target. As for AGL, it might be missing from some SDKs because it is obsolete (modern programs should not be using it). However, it is in my 10.9 SDK, so it will probably also be in yours. - David On Thu, Dec 10, 2015 at 11:57 PM, Arno Klein wrote: > I forgot to mention that the other reason for not explicitly setting the > version of OSX in the CMakeLists.txt file is because when I do set it > appropriately (as you suggested), compilation inexplicably raises the > following error, suggesting that outdated SDKs are required: > > make[2]: *** No rule to make target > `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', > needed by `travel_depth/TravelDepthMain'. Stop. > > Cheers, > @rno > > On Thu, Dec 10, 2015 at 10:46 PM, Arno Klein > wrote: > >> I built VTK 6 through the Anaconda Python distribution ("conda install >> vtk" installed 6.3). >> >> I placed the three lines you recommended in the top-level CMakeLists.txt >> file in my library: >> SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") >> SET(CMAKE_OSX_ARCHITECTURES "x86_64") >> SET(CMAKE_OSX_SYSROOT "macosx10.11") >> >> This enabled the make command to compile farther than I have been able to >> get so far. However, it requires someone to explicitly specify which >> version of MacOSX, which I was hoping to avoid. Previously, I was using: >> >> #https://forums.developer.apple.com/thread/17334 >> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >> SET(CMAKE_OSX_SYSROOT /) >> >> or: >> >> # https://cmake.org/Bug/view.php?id=14695 >> SET(MACOSX_DEPLOYMENT_TARGET >> ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) >> SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}") >> >> >> >> Cheers, >> @rno >> >> On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi >> wrote: >> >>> Actually I might have misunderstood your issue. Did you build VTK 6 >>> yourself, or did you download a binary package? In either case, the three >>> cmake variables that I mentioned above should be set the same in your own >>> project as they are in the VTK that you are building against. >>> >>> On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi >>> wrote: >>> >>>> You can try setting the SDK info in the CMakeCache.txt: >>>> >>>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >>>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >>>> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >>>> >>>> I recommend deleting your entire build directory, creating a new >>>> CMakeCache.txt that has only these three lines, and then re-running cmake. >>>> >>>> - David >>>> >>>> >>>> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >>>> wrote: >>>> >>>>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile >>>>> other things, so I guess my Xcode installation is fine. What do you >>>>> recommend I try next? >>>>> >>>>> Cheers, >>>>> @rno >>>>> >>>>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>>>> wrote: >>>>> >>>>>> The header unistd.h is posix standard and comes with every Xcode >>>>>> SDK. Try compiling the following trivial program. If it doesn't compile, >>>>>> then there must be something awry with your Xcode installation: >>>>>> >>>>>> #include >>>>>> int main() >>>>>> { >>>>>> return 0; >>>>>> } >>>>>> >>>>>> - David >>>>>> >>>>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>>>>> wrote: >>>>>> >>>>>>> Thank you for your help! >>>>>>> >>>>>>> I am now able to compile with cmake on linux, but get the following >>>>>>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>>>>>> github repo (https://github.com/nipy/mindboggle/issues/69): >>>>>>> >>>>>>> Scanning dependencies of target FsSurfaceReader >>>>>>> [ 3%] Building CXX object >>>>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>>>> In file included from >>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>>>> In file included from >>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>>>> In file included from >>>>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>>>> In file included from >>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>>>> fatal error: >>>>>>> 'unistd.h' file not found >>>>>>> #include >>>>>>> ^ >>>>>>> 1 error generated. >>>>>>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>>>>>> Error 1 >>>>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>>>> make: *** [all] Error 2 >>>>>>> >>>>>>> Cheers, >>>>>>> @rno >>>>>>> >>>>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>>>> dave.demarle at kitware.com> wrote: >>>>>>> >>>>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>>>> >>>>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>> > dobj->Update(); >>>>>>>> >>>>>>>> should become: >>>>>>>> >>>>>>>> someAlgorithm->Update(1); //to make sure there is something valid >>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>>>> output for later use >>>>>>>> >>>>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>>>> longer has any meaning. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> David E DeMarle >>>>>>>> Kitware, Inc. >>>>>>>> R&D Engineer >>>>>>>> 21 Corporate Drive >>>>>>>> Clifton Park, NY 12065-8662 >>>>>>>> Phone: 518-881-4909 >>>>>>>> >>>>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>>>> cory.quammen at kitware.com> wrote: >>>>>>>> >>>>>>>>> Arno, >>>>>>>>> >>>>>>>>> That pattern should be valid in VTK6. Are you getting compile >>>>>>>>> errors? >>>>>>>>> >>>>>>>>> I believe the Update() and Write() calls to the writer are >>>>>>>>> redundant - you should need only one. >>>>>>>>> >>>>>>>>> Thanks, >>>>>>>>> Cory >>>>>>>>> >>>>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein >>>>>>>> > wrote: >>>>>>>>> >>>>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>>>> >>>>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>>>> >>>>>>>>>> According to the examples on that site, I understand that: >>>>>>>>>> >>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>> dobj->Update(); >>>>>>>>>> >>>>>>>>>> should become: >>>>>>>>>> >>>>>>>>>> someAlgorithm->Update(1); >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>>>> >>>>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>>>> { >>>>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>>>> writer->SetFileName(fileName); >>>>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>>>> writer->SetInputData(m_mesh); >>>>>>>>>> writer->Update(); >>>>>>>>>> writer->Write(); >>>>>>>>>> writer->Delete(); >>>>>>>>>> } >>>>>>>>>> >>>>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> @rno >>>>>>>>>> >>>>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From binarybottle at gmail.com Fri Dec 11 02:48:20 2015 From: binarybottle at gmail.com (Arno Klein) Date: Thu, 10 Dec 2015 23:48:20 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Thank you for clarifying this for me!! When I set the SDK to 10.9: SET(CMAKE_OSX_SYSROOT "macosx10.9") I get the error: clang: warning: no such sysroot directory: 'macosx10.9' I don't get this error when I set the SDK to 'macosx10.11', but would this setting place an unreasonable demand on the target architecture? Cheers, @rno On Thu, Dec 10, 2015 at 11:09 PM, David Gobbi wrote: > Ah, so you're building a binary package to share with others. I strongly > advise against using these: > > SET(CMAKE_OSX_DEPLOYMENT_TARGET "") > SET(CMAKE_OSX_SYSROOT /) > > The resulting binary will only work with your own version of OS X or > later. Your best bet is to name a reasonably old deployment target (e.g. > 10.7) and SDK (e.g. 10.9). > > CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 > CMAKE_OSX_SYSROOT:STRING=macosx10.9 > > These will provide a binary package that will work on 10.7 or later. > > What is the minimum supported OS X that the anaconda VTK supports? > Ideally, you should use that version as your deployment target. > > As for AGL, it might be missing from some SDKs because it is obsolete > (modern programs should not be using it). However, it is in my 10.9 SDK, > so it will probably also be in yours. > > - David > > > On Thu, Dec 10, 2015 at 11:57 PM, Arno Klein > wrote: > >> I forgot to mention that the other reason for not explicitly setting the >> version of OSX in the CMakeLists.txt file is because when I do set it >> appropriately (as you suggested), compilation inexplicably raises the >> following error, suggesting that outdated SDKs are required: >> >> make[2]: *** No rule to make target >> `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', >> needed by `travel_depth/TravelDepthMain'. Stop. >> >> Cheers, >> @rno >> >> On Thu, Dec 10, 2015 at 10:46 PM, Arno Klein >> wrote: >> >>> I built VTK 6 through the Anaconda Python distribution ("conda install >>> vtk" installed 6.3). >>> >>> I placed the three lines you recommended in the top-level CMakeLists.txt >>> file in my library: >>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") >>> SET(CMAKE_OSX_ARCHITECTURES "x86_64") >>> SET(CMAKE_OSX_SYSROOT "macosx10.11") >>> >>> This enabled the make command to compile farther than I have been able >>> to get so far. However, it requires someone to explicitly specify which >>> version of MacOSX, which I was hoping to avoid. Previously, I was using: >>> >>> #https://forums.developer.apple.com/thread/17334 >>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >>> SET(CMAKE_OSX_SYSROOT /) >>> >>> or: >>> >>> # https://cmake.org/Bug/view.php?id=14695 >>> SET(MACOSX_DEPLOYMENT_TARGET >>> ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) >>> SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}") >>> >>> >>> >>> Cheers, >>> @rno >>> >>> On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi >>> wrote: >>> >>>> Actually I might have misunderstood your issue. Did you build VTK 6 >>>> yourself, or did you download a binary package? In either case, the three >>>> cmake variables that I mentioned above should be set the same in your own >>>> project as they are in the VTK that you are building against. >>>> >>>> On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi >>>> wrote: >>>> >>>>> You can try setting the SDK info in the CMakeCache.txt: >>>>> >>>>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >>>>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >>>>> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >>>>> >>>>> I recommend deleting your entire build directory, creating a new >>>>> CMakeCache.txt that has only these three lines, and then re-running cmake. >>>>> >>>>> - David >>>>> >>>>> >>>>> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >>>>> wrote: >>>>> >>>>>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to >>>>>> compile other things, so I guess my Xcode installation is fine. What do >>>>>> you recommend I try next? >>>>>> >>>>>> Cheers, >>>>>> @rno >>>>>> >>>>>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>>>>> wrote: >>>>>> >>>>>>> The header unistd.h is posix standard and comes with every Xcode >>>>>>> SDK. Try compiling the following trivial program. If it doesn't compile, >>>>>>> then there must be something awry with your Xcode installation: >>>>>>> >>>>>>> #include >>>>>>> int main() >>>>>>> { >>>>>>> return 0; >>>>>>> } >>>>>>> >>>>>>> - David >>>>>>> >>>>>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>>>>>> wrote: >>>>>>> >>>>>>>> Thank you for your help! >>>>>>>> >>>>>>>> I am now able to compile with cmake on linux, but get the following >>>>>>>> error on macosx 10.11, even though there is no "unistd.h" anywhere in my >>>>>>>> github repo (https://github.com/nipy/mindboggle/issues/69): >>>>>>>> >>>>>>>> Scanning dependencies of target FsSurfaceReader >>>>>>>> [ 3%] Building CXX object >>>>>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>>>>> In file included from >>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>>>>> In file included from >>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>>>>> In file included from >>>>>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>>>>> In file included from >>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>>>>> fatal error: >>>>>>>> 'unistd.h' file not found >>>>>>>> #include >>>>>>>> ^ >>>>>>>> 1 error generated. >>>>>>>> make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] >>>>>>>> Error 1 >>>>>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>>>>> make: *** [all] Error 2 >>>>>>>> >>>>>>>> Cheers, >>>>>>>> @rno >>>>>>>> >>>>>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>>>>> dave.demarle at kitware.com> wrote: >>>>>>>> >>>>>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>>>>> >>>>>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>> > dobj->Update(); >>>>>>>>> >>>>>>>>> should become: >>>>>>>>> >>>>>>>>> someAlgorithm->Update(1); //to make sure there is something valid >>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>>>>> output for later use >>>>>>>>> >>>>>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>>>>> longer has any meaning. >>>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>>> David E DeMarle >>>>>>>>> Kitware, Inc. >>>>>>>>> R&D Engineer >>>>>>>>> 21 Corporate Drive >>>>>>>>> Clifton Park, NY 12065-8662 >>>>>>>>> Phone: 518-881-4909 >>>>>>>>> >>>>>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>>>>> cory.quammen at kitware.com> wrote: >>>>>>>>> >>>>>>>>>> Arno, >>>>>>>>>> >>>>>>>>>> That pattern should be valid in VTK6. Are you getting compile >>>>>>>>>> errors? >>>>>>>>>> >>>>>>>>>> I believe the Update() and Write() calls to the writer are >>>>>>>>>> redundant - you should need only one. >>>>>>>>>> >>>>>>>>>> Thanks, >>>>>>>>>> Cory >>>>>>>>>> >>>>>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein < >>>>>>>>>> binarybottle at gmail.com> wrote: >>>>>>>>>> >>>>>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>>>>> >>>>>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>>>>> >>>>>>>>>>> According to the examples on that site, I understand that: >>>>>>>>>>> >>>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>>> dobj->Update(); >>>>>>>>>>> >>>>>>>>>>> should become: >>>>>>>>>>> >>>>>>>>>>> someAlgorithm->Update(1); >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>>>>> >>>>>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>>>>> { >>>>>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>>>>> writer->SetFileName(fileName); >>>>>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>>>>> writer->SetInputData(m_mesh); >>>>>>>>>>> writer->Update(); >>>>>>>>>>> writer->Write(); >>>>>>>>>>> writer->Delete(); >>>>>>>>>>> } >>>>>>>>>>> >>>>>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>>>>> >>>>>>>>>>> Cheers, >>>>>>>>>>> @rno >>>>>>>>>>> >>>>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From theryame at gmail.com Fri Dec 11 05:59:04 2015 From: theryame at gmail.com (ameloush) Date: Fri, 11 Dec 2015 03:59:04 -0700 (MST) Subject: [vtkusers] Set light Intensity In-Reply-To: References: Message-ID: <1449831544310-5735482.post@n5.nabble.com> You could try this : vtkSmartPointer col = vtkSmartPointer::New(); col = ren->GetLights(); int i=col->GetNumberOfItems(); // to be sure there is at list one light light = (vtkLight*)col->GetItemAsObject(0); light->SetIntensity(10); -- View this message in context: http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html Sent from the VTK - Users mailing list archive at Nabble.com. From theryame at gmail.com Fri Dec 11 06:00:58 2015 From: theryame at gmail.com (ameloush) Date: Fri, 11 Dec 2015 04:00:58 -0700 (MST) Subject: [vtkusers] Problem after having updating vtk (5.10 to 6.2) Message-ID: <1449831658144-5735483.post@n5.nabble.com> Hi ! And sorry for my English :) I am working on visual studio 2008 and WIndows 7 in C++ I just changed of Vtk version 5.10 to 6.2, and my program runs as it is supposed to do but one thing, I have this kind of error messages in a vtkOutputWindow : ERROR: In .\vtkOpenGLRenderer.cxx, line 126 vtkOpenGLRenderer (03A4D058): failed ater ClearLights 16 OpenGL errors detected 0 : (1282) Invalid operation ... ERROR: In .\vtkOpenGLRenderer.cxx, line 1202 vtkOpenGLRenderer (03A4D058): failed after Clear 16 OpenGL errors detected 0 : (1282) Invalid operation ... ERROR: In .\vtkOpenGLCamera.cxx, line 167 vtkOpenGLCamera (03A993E8): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation ... ERROR: In .\vtkOpenGLLight.cxx, line 118 vtkOpenGLLight (03A9C038): failed after Render 16 OpenGL errors detected 0 : (1282) Invalid operation ... ERROR: In .\vtkOpenGLRenderer.cxx, line 192 vtkOpenGLRenderer (03A4D058): failed after UpdateLights 16 OpenGL errors detected 0 : (1282) Invalid operation ... ERROR: In .\vtkOpenGLRenderer.cxx, line 282 vtkOpenGLRenderer (03A4D058): failed after DeviceRender 16 OpenGL errors detected 0 : (1282) Invalid operation .... I really dont know where it comes from, I added these lines to the beginning of my project (as I saw on the internet) to fix the change of version but there is still those messages : #include #include VTK_MODULE_INIT(vtkRenderingOpenGL); #define vtkRenderingCore_AUTOINIT 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) Does someone have an idea? Thanks for reading, Am?lie -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-after-having-updating-vtk-5-10-to-6-2-tp5735483.html Sent from the VTK - Users mailing list archive at Nabble.com. From rakesh.p at tataelxsi.co.in Fri Dec 11 06:06:52 2015 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Fri, 11 Dec 2015 11:06:52 +0000 Subject: [vtkusers] How to display dynamic grid in vtkRenderer? Message-ID: Hello, I need to display dynamic grids as it appears with vtkChartXY. But I need to display grids into vtkRenderer object and not context2d. Is this possible? Thanks Warm Regards Rakesh Patil Consultant Tata Elxsi Hoody, ITPB Road, Whitefield, Bangalore 560048 -------------- next part -------------- An HTML attachment was scrubbed... URL: From theryame at gmail.com Fri Dec 11 06:07:29 2015 From: theryame at gmail.com (ameloush) Date: Fri, 11 Dec 2015 04:07:29 -0700 (MST) Subject: [vtkusers] Problem after having updating vtk (5.10 to 6.2) In-Reply-To: <1449760064905-5735464.post@n5.nabble.com> References: <1449760064905-5735464.post@n5.nabble.com> Message-ID: <1449832049855-5735485.post@n5.nabble.com> Well I found out by my self, I just needed to delete the line : ren->Render(); but I still don't know why -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-after-having-updating-vtk-5-10-to-6-2-tp5735464p5735485.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Fri Dec 11 08:18:32 2015 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 11 Dec 2015 08:18:32 -0500 Subject: [vtkusers] Problem after having updating vtk (5.10 to 6.2) In-Reply-To: <1449831658144-5735483.post@n5.nabble.com> References: <1449831658144-5735483.post@n5.nabble.com> Message-ID: If you are using the OpenGL2 backend with 6.2 then those are expected. I believe they have been cleaned up (mostly?) in more recent VTK builds. Thanks Ken On Fri, Dec 11, 2015 at 6:00 AM, ameloush wrote: > Hi ! And sorry for my English :) > I am working on visual studio 2008 and WIndows 7 in C++ > I just changed of Vtk version 5.10 to 6.2, and my program runs as it is > supposed to do but one thing, I have this kind of error messages in a > vtkOutputWindow : > > ERROR: In .\vtkOpenGLRenderer.cxx, line 126 > vtkOpenGLRenderer (03A4D058): failed ater ClearLights 16 OpenGL errors > detected > 0 : (1282) Invalid operation > ... > > ERROR: In .\vtkOpenGLRenderer.cxx, line 1202 > vtkOpenGLRenderer (03A4D058): failed after Clear 16 OpenGL errors detected > 0 : (1282) Invalid operation > ... > > ERROR: In .\vtkOpenGLCamera.cxx, line 167 > vtkOpenGLCamera (03A993E8): failed after Render 16 OpenGL errors detected > 0 : (1282) Invalid operation > ... > > ERROR: In .\vtkOpenGLLight.cxx, line 118 > vtkOpenGLLight (03A9C038): failed after Render 16 OpenGL errors detected > 0 : (1282) Invalid operation > ... > > ERROR: In .\vtkOpenGLRenderer.cxx, line 192 > vtkOpenGLRenderer (03A4D058): failed after UpdateLights 16 OpenGL errors > detected > 0 : (1282) Invalid operation > ... > > ERROR: In .\vtkOpenGLRenderer.cxx, line 282 > vtkOpenGLRenderer (03A4D058): failed after DeviceRender 16 OpenGL errors > detected > 0 : (1282) Invalid operation > .... > > I really dont know where it comes from, I added these lines to the > beginning > of my project (as I saw on the internet) to fix the change of version but > there is still those messages : > #include > #include > VTK_MODULE_INIT(vtkRenderingOpenGL); > #define vtkRenderingCore_AUTOINIT > > 4(vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingFreeTypeOpenGL,vtkRenderingOpenGL) > #define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL) > > Does someone have an idea? > Thanks for reading, > > Am?lie > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Problem-after-having-updating-vtk-5-10-to-6-2-tp5735483.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 Fri Dec 11 08:27:09 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Dec 2015 06:27:09 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Hi Arno, Using the macosx10.11 SDK is fine as long as it allows you to set this desired deployment target. So if you are able to compile with the following settings, then the result should run on OS X 10.7: CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 CMAKE_OSX_SYSROOT:STRING=macosx10.11 I'm not sure how far back you can set the deployment target with this SDK, but if the 10.7 target doesn't compile, you can try 10.8 or 10.9. If if gives errors for the AGL.framework, then make sure that your code has no calls to Carbon APIs. - David On Fri, Dec 11, 2015 at 12:48 AM, Arno Klein wrote: > Thank you for clarifying this for me!! > > When I set the SDK to 10.9: > SET(CMAKE_OSX_SYSROOT "macosx10.9") > > I get the error: > clang: warning: no such sysroot directory: 'macosx10.9' > > I don't get this error when I set the SDK to 'macosx10.11', but would this > setting place an unreasonable demand on the target architecture? > > Cheers, > @rno > > On Thu, Dec 10, 2015 at 11:09 PM, David Gobbi > wrote: > >> Ah, so you're building a binary package to share with others. I strongly >> advise against using these: >> >> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >> SET(CMAKE_OSX_SYSROOT /) >> >> The resulting binary will only work with your own version of OS X or >> later. Your best bet is to name a reasonably old deployment target (e.g. >> 10.7) and SDK (e.g. 10.9). >> >> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 >> CMAKE_OSX_SYSROOT:STRING=macosx10.9 >> >> These will provide a binary package that will work on 10.7 or later. >> >> What is the minimum supported OS X that the anaconda VTK supports? >> Ideally, you should use that version as your deployment target. >> >> As for AGL, it might be missing from some SDKs because it is obsolete >> (modern programs should not be using it). However, it is in my 10.9 SDK, >> so it will probably also be in yours. >> >> - David >> >> >> On Thu, Dec 10, 2015 at 11:57 PM, Arno Klein >> wrote: >> >>> I forgot to mention that the other reason for not explicitly setting the >>> version of OSX in the CMakeLists.txt file is because when I do set it >>> appropriately (as you suggested), compilation inexplicably raises the >>> following error, suggesting that outdated SDKs are required: >>> >>> make[2]: *** No rule to make target >>> `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', >>> needed by `travel_depth/TravelDepthMain'. Stop. >>> >>> Cheers, >>> @rno >>> >>> On Thu, Dec 10, 2015 at 10:46 PM, Arno Klein >>> wrote: >>> >>>> I built VTK 6 through the Anaconda Python distribution ("conda install >>>> vtk" installed 6.3). >>>> >>>> I placed the three lines you recommended in the top-level >>>> CMakeLists.txt file in my library: >>>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") >>>> SET(CMAKE_OSX_ARCHITECTURES "x86_64") >>>> SET(CMAKE_OSX_SYSROOT "macosx10.11") >>>> >>>> This enabled the make command to compile farther than I have been able >>>> to get so far. However, it requires someone to explicitly specify which >>>> version of MacOSX, which I was hoping to avoid. Previously, I was using: >>>> >>>> #https://forums.developer.apple.com/thread/17334 >>>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >>>> SET(CMAKE_OSX_SYSROOT /) >>>> >>>> or: >>>> >>>> # https://cmake.org/Bug/view.php?id=14695 >>>> SET(MACOSX_DEPLOYMENT_TARGET >>>> ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) >>>> SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} ${CMAKE_CXX_FLAGS}") >>>> >>>> >>>> >>>> Cheers, >>>> @rno >>>> >>>> On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi >>>> wrote: >>>> >>>>> Actually I might have misunderstood your issue. Did you build VTK 6 >>>>> yourself, or did you download a binary package? In either case, the three >>>>> cmake variables that I mentioned above should be set the same in your own >>>>> project as they are in the VTK that you are building against. >>>>> >>>>> On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi >>>>> wrote: >>>>> >>>>>> You can try setting the SDK info in the CMakeCache.txt: >>>>>> >>>>>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >>>>>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >>>>>> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >>>>>> >>>>>> I recommend deleting your entire build directory, creating a new >>>>>> CMakeCache.txt that has only these three lines, and then re-running cmake. >>>>>> >>>>>> - David >>>>>> >>>>>> >>>>>> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >>>>>> wrote: >>>>>> >>>>>>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to >>>>>>> compile other things, so I guess my Xcode installation is fine. What do >>>>>>> you recommend I try next? >>>>>>> >>>>>>> Cheers, >>>>>>> @rno >>>>>>> >>>>>>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>>>>>> wrote: >>>>>>> >>>>>>>> The header unistd.h is posix standard and comes with every Xcode >>>>>>>> SDK. Try compiling the following trivial program. If it doesn't compile, >>>>>>>> then there must be something awry with your Xcode installation: >>>>>>>> >>>>>>>> #include >>>>>>>> int main() >>>>>>>> { >>>>>>>> return 0; >>>>>>>> } >>>>>>>> >>>>>>>> - David >>>>>>>> >>>>>>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein >>>>>>> > wrote: >>>>>>>> >>>>>>>>> Thank you for your help! >>>>>>>>> >>>>>>>>> I am now able to compile with cmake on linux, but get the >>>>>>>>> following error on macosx 10.11, even though there is no "unistd.h" >>>>>>>>> anywhere in my github repo ( >>>>>>>>> https://github.com/nipy/mindboggle/issues/69): >>>>>>>>> >>>>>>>>> Scanning dependencies of target FsSurfaceReader >>>>>>>>> [ 3%] Building CXX object >>>>>>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>>>>>> In file included from >>>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>>>>>> In file included from >>>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>>>>>> In file included from >>>>>>>>> /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>>>>>> In file included from >>>>>>>>> /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>>>>>> In file included from >>>>>>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>>>>>> In file included from >>>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>>>>>> fatal error: >>>>>>>>> 'unistd.h' file not found >>>>>>>>> #include >>>>>>>>> ^ >>>>>>>>> 1 error generated. >>>>>>>>> make[2]: *** >>>>>>>>> [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error 1 >>>>>>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>>>>>> make: *** [all] Error 2 >>>>>>>>> >>>>>>>>> Cheers, >>>>>>>>> @rno >>>>>>>>> >>>>>>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>>>>>> dave.demarle at kitware.com> wrote: >>>>>>>>> >>>>>>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>>>>>> >>>>>>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>> > dobj->Update(); >>>>>>>>>> >>>>>>>>>> should become: >>>>>>>>>> >>>>>>>>>> someAlgorithm->Update(1); //to make sure there is something >>>>>>>>>> valid >>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>>>>>> output for later use >>>>>>>>>> >>>>>>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>>>>>> longer has any meaning. >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> >>>>>>>>>> David E DeMarle >>>>>>>>>> Kitware, Inc. >>>>>>>>>> R&D Engineer >>>>>>>>>> 21 Corporate Drive >>>>>>>>>> Clifton Park, NY 12065-8662 >>>>>>>>>> Phone: 518-881-4909 >>>>>>>>>> >>>>>>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>>>>>> cory.quammen at kitware.com> wrote: >>>>>>>>>> >>>>>>>>>>> Arno, >>>>>>>>>>> >>>>>>>>>>> That pattern should be valid in VTK6. Are you getting compile >>>>>>>>>>> errors? >>>>>>>>>>> >>>>>>>>>>> I believe the Update() and Write() calls to the writer are >>>>>>>>>>> redundant - you should need only one. >>>>>>>>>>> >>>>>>>>>>> Thanks, >>>>>>>>>>> Cory >>>>>>>>>>> >>>>>>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein < >>>>>>>>>>> binarybottle at gmail.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>>>>>> >>>>>>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>>>>>> >>>>>>>>>>>> According to the examples on that site, I understand that: >>>>>>>>>>>> >>>>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>>>> dobj->Update(); >>>>>>>>>>>> >>>>>>>>>>>> should become: >>>>>>>>>>>> >>>>>>>>>>>> someAlgorithm->Update(1); >>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>>>>>> >>>>>>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>>>>>> { >>>>>>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>>>>>> writer->SetFileName(fileName); >>>>>>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>>>>>> writer->SetInputData(m_mesh); >>>>>>>>>>>> writer->Update(); >>>>>>>>>>>> writer->Write(); >>>>>>>>>>>> writer->Delete(); >>>>>>>>>>>> } >>>>>>>>>>>> >>>>>>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>>>>>> >>>>>>>>>>>> Cheers, >>>>>>>>>>>> @rno >>>>>>>>>>>> >>>>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From laysrodriguessilva at gmail.com Fri Dec 11 09:50:36 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Fri, 11 Dec 2015 12:50:36 -0200 Subject: [vtkusers] Set light Intensity In-Reply-To: <1449831544310-5735482.post@n5.nabble.com> References: <1449831544310-5735482.post@n5.nabble.com> Message-ID: The tip of Amelie dont work. Someone have more tips? >.< Att 2015-12-11 8:59 GMT-02:00 ameloush : > You could try this : > > vtkSmartPointer col = > vtkSmartPointer::New(); > > col = ren->GetLights(); > int i=col->GetNumberOfItems(); // to be sure there is at list one > light > light = (vtkLight*)col->GetItemAsObject(0); > light->SetIntensity(10); > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Fri Dec 11 10:04:14 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 11 Dec 2015 10:04:14 -0500 Subject: [vtkusers] Set light Intensity In-Reply-To: References: <1449831544310-5735482.post@n5.nabble.com> Message-ID: Do, col->Initialize (); On Dec 11, 2015 9:50 AM, "Lays Rodrigues" wrote: > The tip of Amelie dont work. Someone have more tips? >.< > Att > > 2015-12-11 8:59 GMT-02:00 ameloush : > >> You could try this : >> >> vtkSmartPointer col = >> vtkSmartPointer::New(); >> >> col = ren->GetLights(); >> int i=col->GetNumberOfItems(); // to be sure there is at list one >> light >> light = (vtkLight*)col->GetItemAsObject(0); >> light->SetIntensity(10); >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > __ > *Lays Rodrigues* > *Front-End Developer at Br-Print3D Project(KDE)* > *Computer Science Student at UFF/PURO* > Organizadora da Semana da Computa??o UFF-PURO > www.facebook.com/semanacomputacaopuro > www.facebook.com/brprint3d > www.brprint3d.wordpress.com > > > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Fri Dec 11 10:15:54 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Fri, 11 Dec 2015 10:15:54 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: <20151211151554.GC1386@megas.khq.kitware.com> On Thu, Dec 10, 2015 at 23:00:54 -0700, David Gobbi wrote: > CMAKE_OSX_SYSROOT:STRING=macosx10.11 This should be the full path to the sysroot: /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk --Ben From laysrodriguessilva at gmail.com Fri Dec 11 10:36:00 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Fri, 11 Dec 2015 13:36:00 -0200 Subject: [vtkusers] Set light Intensity In-Reply-To: References: <1449831544310-5735482.post@n5.nabble.com> Message-ID: Bill, the LightCollection dont have this method. The equivalence is NewInstance? I'm trying this: GetRenderWindow()->AddRenderer(renderer); renderer->SetBackground(0.576,0.749,0.874); renderer->CreateLight(); lightCol->NewInstance(); lightCol = renderer->GetLights(); int i = lightCol->GetNumberOfItems(); if(i>0){ light = (vtkLight*)lightCol->GetItemAsObject(0); light->SetIntensity(10); } But the view dont change. What do I want, is to improve the vizualiation of the 3d models that I load. >From this: http://pt-br.tinypic.com/r/2aj6zh2/9 To something like this: http://centrumdruku3d.pl/wp-content/uploads/2014/12/RepetierServer2.png And i think that correcting the lights, will be the first step... See ya 2015-12-11 13:04 GMT-02:00 Bill Lorensen : > Do, > > col->Initialize (); > On Dec 11, 2015 9:50 AM, "Lays Rodrigues" > wrote: > >> The tip of Amelie dont work. Someone have more tips? >.< >> Att >> >> 2015-12-11 8:59 GMT-02:00 ameloush : >> >>> You could try this : >>> >>> vtkSmartPointer col = >>> vtkSmartPointer::New(); >>> >>> col = ren->GetLights(); >>> int i=col->GetNumberOfItems(); // to be sure there is at list >>> one >>> light >>> light = (vtkLight*)col->GetItemAsObject(0); >>> light->SetIntensity(10); >>> >>> >>> >>> -- >>> View this message in context: >>> http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html >>> Sent from the VTK - Users mailing list archive at Nabble.com. >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> __ >> *Lays Rodrigues* >> *Front-End Developer at Br-Print3D Project(KDE)* >> *Computer Science Student at UFF/PURO* >> Organizadora da Semana da Computa??o UFF-PURO >> www.facebook.com/semanacomputacaopuro >> www.facebook.com/brprint3d >> www.brprint3d.wordpress.com >> >> >> >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Fri Dec 11 10:36:18 2015 From: sean at rogue-research.com (Sean McBride) Date: Fri, 11 Dec 2015 10:36:18 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: <20151211151554.GC1386@megas.khq.kitware.com> References: <20151211151554.GC1386@megas.khq.kitware.com> Message-ID: <20151211153618.572294530@mail.rogue-research.com> On Fri, 11 Dec 2015 10:15:54 -0500, Ben Boeckel said: >On Thu, Dec 10, 2015 at 23:00:54 -0700, David Gobbi wrote: >> CMAKE_OSX_SYSROOT:STRING=macosx10.11 > >This should be the full path to the sysroot: > > /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/ >Developer/SDKs/MacOSX10.11.sdk Why? CMake, only recently perhaps, accepts strings like "macosx10.11" as David wrote. Which is really nice, because hardcoding paths is fragile of course. Cheers, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From lonni.besancon at gmail.com Fri Dec 11 10:42:48 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Fri, 11 Dec 2015 08:42:48 -0700 (MST) Subject: [vtkusers] Could not find any working toolchain in the NDK. Android NDK is broken Message-ID: <1449848568821-5735493.post@n5.nabble.com> So I just recently switched to El Capitan on my mac and I'm trying to get VTK for android to work again (I did a clean install). I downloaded android SDK and NDK, added them to the PATH, used Cmake to configure and generate with no error but now when I Make the project I get this error: CMake Error at CMake/android.toolchain.cmake:631 (message): Could not find any working toolchain in the NDK. Probably your Android NDK is broken. Call Stack (most recent call first): /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/CMakeDetermineSystem.cmake:98 (include) CMakeLists.txt:29 (project) So I get that the android-toolchain could not be found but I kind of fail to understand why. Especially since my configuration on my previous OS was really similar to what I have now. I am using the last version of vtk available on git. Could that be an error related to El Capitan only or did I miss something obvious? Thanks in advance for the help. As usual, when I post here, I have created a SO post with more details Here -- View this message in context: http://vtk.1045678.n5.nabble.com/Could-not-find-any-working-toolchain-in-the-NDK-Android-NDK-is-broken-tp5735493.html Sent from the VTK - Users mailing list archive at Nabble.com. From ben.boeckel at kitware.com Fri Dec 11 10:52:42 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Fri, 11 Dec 2015 10:52:42 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: <20151211153618.572294530@mail.rogue-research.com> References: <20151211151554.GC1386@megas.khq.kitware.com> <20151211153618.572294530@mail.rogue-research.com> Message-ID: <20151211155242.GA16190@megas.khq.kitware.com> On Fri, Dec 11, 2015 at 10:36:18 -0500, Sean McBride wrote: > Why? CMake, only recently perhaps, accepts strings like "macosx10.11" > as David wrote. Which is really nice, because hardcoding paths is > fragile of course. Hmm, that is new behavior to me. The paraview superbuild needs to smarten up then (it uses the value in --sysroot= flags it passes to subprojects). --Ben From ken.martin at kitware.com Fri Dec 11 11:05:07 2015 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 11 Dec 2015 11:05:07 -0500 Subject: [vtkusers] Could not find any working toolchain in the NDK. Android NDK is broken In-Reply-To: <1449848568821-5735493.post@n5.nabble.com> References: <1449848568821-5735493.post@n5.nabble.com> Message-ID: Probably have to update your VTK (although last night was a wreck so maybe not the current master) . My macbook is on el capitan and it is working ala https://open.cdash.org/index.php?project=VTK&date= On Fri, Dec 11, 2015 at 10:42 AM, Lonni Besan?on wrote: > So I just recently switched to El Capitan on my mac and I'm trying to get > VTK > for android to work again (I did a clean install). I downloaded android SDK > and NDK, added them to the PATH, used Cmake to configure and generate with > no error but now when I Make the project I get this error: > > CMake Error at CMake/android.toolchain.cmake:631 (message): > Could not find any working toolchain in the NDK. Probably your Android > NDK > is broken. > Call Stack (most recent call first): > > > /usr/local/Cellar/cmake/3.4.1/share/cmake/Modules/CMakeDetermineSystem.cmake:98 > (include) > CMakeLists.txt:29 (project) > > So I get that the android-toolchain could not be found but I kind of fail > to > understand why. Especially since my configuration on my previous OS was > really similar to what I have now. I am using the last version of vtk > available on git. Could that be an error related to El Capitan only or did > I > miss something obvious? > > Thanks in advance for the help. > > As usual, when I post here, I have created a SO post with more details > Here > < > http://stackoverflow.com/questions/34226857/could-not-find-any-working-toolchain-in-the-ndk-android-ndk-is-broken > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Could-not-find-any-working-toolchain-in-the-NDK-Android-NDK-is-broken-tp5735493.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 lonni.besancon at gmail.com Fri Dec 11 11:07:51 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Fri, 11 Dec 2015 09:07:51 -0700 (MST) Subject: [vtkusers] Could not find any working toolchain in the NDK. Android NDK is broken In-Reply-To: References: <1449848568821-5735493.post@n5.nabble.com> Message-ID: <1449850071850-5735496.post@n5.nabble.com> Got the latest version available on git. So you think I should back to a previous version? -- View this message in context: http://vtk.1045678.n5.nabble.com/Could-not-find-any-working-toolchain-in-the-NDK-Android-NDK-is-broken-tp5735493p5735496.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Fri Dec 11 11:47:03 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Fri, 11 Dec 2015 11:47:03 -0500 Subject: [vtkusers] Set light Intensity In-Reply-To: References: <1449831544310-5735482.post@n5.nabble.com> Message-ID: Sorry, I meant col->InitTraversal() On Fri, Dec 11, 2015 at 10:36 AM, Lays Rodrigues wrote: > Bill, the LightCollection dont have this method. The equivalence is > NewInstance? > I'm trying this: > > GetRenderWindow()->AddRenderer(renderer); > > renderer->SetBackground(0.576,0.749,0.874); > > renderer->CreateLight(); > > lightCol->NewInstance(); > > lightCol = renderer->GetLights(); > > int i = lightCol->GetNumberOfItems(); > > if(i>0){ > > light = (vtkLight*)lightCol->GetItemAsObject(0); > > light->SetIntensity(10); > > } > > > But the view dont change. > What do I want, is to improve the vizualiation of the 3d models that I load. > From this: > http://pt-br.tinypic.com/r/2aj6zh2/9 > > To something like this: > http://centrumdruku3d.pl/wp-content/uploads/2014/12/RepetierServer2.png > > And i think that correcting the lights, will be the first step... > > See ya > > 2015-12-11 13:04 GMT-02:00 Bill Lorensen : >> >> Do, >> >> col->Initialize (); >> >> On Dec 11, 2015 9:50 AM, "Lays Rodrigues" >> wrote: >>> >>> The tip of Amelie dont work. Someone have more tips? >.< >>> Att >>> >>> 2015-12-11 8:59 GMT-02:00 ameloush : >>>> >>>> You could try this : >>>> >>>> vtkSmartPointer col = >>>> vtkSmartPointer::New(); >>>> >>>> col = ren->GetLights(); >>>> int i=col->GetNumberOfItems(); // to be sure there is at list >>>> one >>>> light >>>> light = (vtkLight*)col->GetItemAsObject(0); >>>> light->SetIntensity(10); >>>> >>>> >>>> >>>> -- >>>> View this message in context: >>>> http://vtk.1045678.n5.nabble.com/Set-light-Intensity-tp5735471p5735482.html >>>> Sent from the VTK - Users mailing list archive at Nabble.com. >>>> _______________________________________________ >>>> 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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >>> >>> -- >>> __ >>> Lays Rodrigues >>> Front-End Developer at Br-Print3D Project(KDE) >>> Computer Science Student at UFF/PURO >>> Organizadora da Semana da Computa??o UFF-PURO >>> www.facebook.com/semanacomputacaopuro >>> www.facebook.com/brprint3d >>> www.brprint3d.wordpress.com >>> >>> >>> >>> >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> > > > > -- > __ > Lays Rodrigues > Front-End Developer at Br-Print3D Project(KDE) > Computer Science Student at UFF/PURO > Organizadora da Semana da Computa??o UFF-PURO > www.facebook.com/semanacomputacaopuro > www.facebook.com/brprint3d > www.brprint3d.wordpress.com > > > > -- Unpaid intern in BillsBasement at noware dot com From jim at jslengineeringsoftware.com Fri Dec 11 11:52:05 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Fri, 11 Dec 2015 11:52:05 -0500 Subject: [vtkusers] vtkWarpScalar direction? Message-ID: <566AFF35.6000000@jslengineeringsoftware.com> Hello all, Does vtkWarpScalar translate the points by the scalar value along the outward-facing or inward-facing surface normal? Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Dec 11 13:04:17 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 11 Dec 2015 13:04:17 -0500 Subject: [vtkusers] vtkWarpScalar direction? In-Reply-To: <566AFF35.6000000@jslengineeringsoftware.com> References: <566AFF35.6000000@jslengineeringsoftware.com> Message-ID: It translates points outward from the normals defined by a point normal array. If that's not the direction you wan, you can scale by a negative number. See [1] for more details. - Cory [1] http://www.vtk.org/doc/nightly/html/classvtkWarpScalar.html On Fri, Dec 11, 2015 at 11:52 AM, James Labiak < jim at jslengineeringsoftware.com> wrote: > Hello all, > Does vtkWarpScalar translate the points by the scalar value along the > outward-facing or inward-facing surface normal? > Thanks, > Jim > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Fri Dec 11 13:46:05 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Fri, 11 Dec 2015 11:46:05 -0700 (MST) Subject: [vtkusers] Could not find any working toolchain in the NDK. Android NDK is broken In-Reply-To: <1449850071850-5735496.post@n5.nabble.com> References: <1449848568821-5735493.post@n5.nabble.com> <1449850071850-5735496.post@n5.nabble.com> Message-ID: <1449859565807-5735500.post@n5.nabble.com> Got it working. Reset my whole PATH and not it works so I guess it was just a PATH issue in the end. Thanks anyway. -- View this message in context: http://vtk.1045678.n5.nabble.com/Could-not-find-any-working-toolchain-in-the-NDK-Android-NDK-is-broken-tp5735493p5735500.html Sent from the VTK - Users mailing list archive at Nabble.com. From binarybottle at gmail.com Fri Dec 11 17:57:30 2015 From: binarybottle at gmail.com (Arno Klein) Date: Fri, 11 Dec 2015 14:57:30 -0800 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: I tried again, and am still getting the AGL.framework error even when I set to 10.9 and the SDK to 10.11 (see: https://github.com/nipy/mindboggle/blob/master/surface_cpp_tools/CMakeLists.txt ): > [ 57%] Building CXX object travel_depth/CMakeFiles/TravelDepthMain.dir/TravelDepthMain.cpp.o > make[2]: *** No rule to make target `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', needed by `travel_depth/TravelDepthMain'. Stop. > make[1]: *** [travel_depth/CMakeFiles/TravelDepthMain.dir/all] Error 2 > make: *** [all] Error 2 Could you please tell me how to ensure that there are no calls to Carbon APIs? By the way, I am tracking this as an issue on Github: https://github.com/nipy/mindboggle/issues/69 Cheers, @rno On Fri, Dec 11, 2015 at 5:27 AM, David Gobbi wrote: > Hi Arno, > > Using the macosx10.11 SDK is fine as long as it allows you to set this > desired deployment target. So if you are able to compile with the > following settings, then the result should run on OS X 10.7: > > CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 > CMAKE_OSX_SYSROOT:STRING=macosx10.11 > > I'm not sure how far back you can set the deployment target with this SDK, > but if the 10.7 target doesn't compile, you can try 10.8 or 10.9. > > If if gives errors for the AGL.framework, then make sure that your code > has no calls to Carbon APIs. > > - David > > On Fri, Dec 11, 2015 at 12:48 AM, Arno Klein > wrote: > >> Thank you for clarifying this for me!! >> >> When I set the SDK to 10.9: >> SET(CMAKE_OSX_SYSROOT "macosx10.9") >> >> I get the error: >> clang: warning: no such sysroot directory: 'macosx10.9' >> >> I don't get this error when I set the SDK to 'macosx10.11', but would >> this setting place an unreasonable demand on the target architecture? >> >> Cheers, >> @rno >> >> On Thu, Dec 10, 2015 at 11:09 PM, David Gobbi >> wrote: >> >>> Ah, so you're building a binary package to share with others. I strongly >>> advise against using these: >>> >>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >>> SET(CMAKE_OSX_SYSROOT /) >>> >>> The resulting binary will only work with your own version of OS X or >>> later. Your best bet is to name a reasonably old deployment target (e.g. >>> 10.7) and SDK (e.g. 10.9). >>> >>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 >>> CMAKE_OSX_SYSROOT:STRING=macosx10.9 >>> >>> These will provide a binary package that will work on 10.7 or later. >>> >>> What is the minimum supported OS X that the anaconda VTK supports? >>> Ideally, you should use that version as your deployment target. >>> >>> As for AGL, it might be missing from some SDKs because it is obsolete >>> (modern programs should not be using it). However, it is in my 10.9 SDK, >>> so it will probably also be in yours. >>> >>> - David >>> >>> >>> On Thu, Dec 10, 2015 at 11:57 PM, Arno Klein >>> wrote: >>> >>>> I forgot to mention that the other reason for not explicitly setting >>>> the version of OSX in the CMakeLists.txt file is because when I do set it >>>> appropriately (as you suggested), compilation inexplicably raises the >>>> following error, suggesting that outdated SDKs are required: >>>> >>>> make[2]: *** No rule to make target >>>> `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', >>>> needed by `travel_depth/TravelDepthMain'. Stop. >>>> >>>> Cheers, >>>> @rno >>>> >>>> On Thu, Dec 10, 2015 at 10:46 PM, Arno Klein >>>> wrote: >>>> >>>>> I built VTK 6 through the Anaconda Python distribution ("conda install >>>>> vtk" installed 6.3). >>>>> >>>>> I placed the three lines you recommended in the top-level >>>>> CMakeLists.txt file in my library: >>>>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "10.11") >>>>> SET(CMAKE_OSX_ARCHITECTURES "x86_64") >>>>> SET(CMAKE_OSX_SYSROOT "macosx10.11") >>>>> >>>>> This enabled the make command to compile farther than I have been able >>>>> to get so far. However, it requires someone to explicitly specify which >>>>> version of MacOSX, which I was hoping to avoid. Previously, I was using: >>>>> >>>>> #https://forums.developer.apple.com/thread/17334 >>>>> SET(CMAKE_OSX_DEPLOYMENT_TARGET "") >>>>> SET(CMAKE_OSX_SYSROOT /) >>>>> >>>>> or: >>>>> >>>>> # https://cmake.org/Bug/view.php?id=14695 >>>>> SET(MACOSX_DEPLOYMENT_TARGET >>>>> ${DARWIN_MAJOR_SDK_VERSION}.${DARWIN_MINOR_SDK_VERSION}) >>>>> SET(CMAKE_CXX_FLAGS "--sysroot ${CMAKE_OSX_SYSROOT} >>>>> ${CMAKE_CXX_FLAGS}") >>>>> >>>>> >>>>> >>>>> Cheers, >>>>> @rno >>>>> >>>>> On Thu, Dec 10, 2015 at 10:14 PM, David Gobbi >>>>> wrote: >>>>> >>>>>> Actually I might have misunderstood your issue. Did you build VTK 6 >>>>>> yourself, or did you download a binary package? In either case, the three >>>>>> cmake variables that I mentioned above should be set the same in your own >>>>>> project as they are in the VTK that you are building against. >>>>>> >>>>>> On Thu, Dec 10, 2015 at 11:00 PM, David Gobbi >>>>>> wrote: >>>>>> >>>>>>> You can try setting the SDK info in the CMakeCache.txt: >>>>>>> >>>>>>> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.11 >>>>>>> CMAKE_OSX_ARCHITECTURES:STRING=x86_64 >>>>>>> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >>>>>>> >>>>>>> I recommend deleting your entire build directory, creating a new >>>>>>> CMakeCache.txt that has only these three lines, and then re-running cmake. >>>>>>> >>>>>>> - David >>>>>>> >>>>>>> >>>>>>> On Thu, Dec 10, 2015 at 10:49 PM, Arno Klein >>>>>> > wrote: >>>>>>> >>>>>>>> 'gcc tmp.cpp' created an 'a.out' file, and I have been able to >>>>>>>> compile other things, so I guess my Xcode installation is fine. What do >>>>>>>> you recommend I try next? >>>>>>>> >>>>>>>> Cheers, >>>>>>>> @rno >>>>>>>> >>>>>>>> On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi >>>>>>> > wrote: >>>>>>>> >>>>>>>>> The header unistd.h is posix standard and comes with every Xcode >>>>>>>>> SDK. Try compiling the following trivial program. If it doesn't compile, >>>>>>>>> then there must be something awry with your Xcode installation: >>>>>>>>> >>>>>>>>> #include >>>>>>>>> int main() >>>>>>>>> { >>>>>>>>> return 0; >>>>>>>>> } >>>>>>>>> >>>>>>>>> - David >>>>>>>>> >>>>>>>>> On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein < >>>>>>>>> binarybottle at gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Thank you for your help! >>>>>>>>>> >>>>>>>>>> I am now able to compile with cmake on linux, but get the >>>>>>>>>> following error on macosx 10.11, even though there is no "unistd.h" >>>>>>>>>> anywhere in my github repo ( >>>>>>>>>> https://github.com/nipy/mindboggle/issues/69): >>>>>>>>>> >>>>>>>>>> Scanning dependencies of target FsSurfaceReader >>>>>>>>>> [ 3%] Building CXX object >>>>>>>>>> CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o >>>>>>>>>> In file included from >>>>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: >>>>>>>>>> In file included from >>>>>>>>>> /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: >>>>>>>>>> In file included from >>>>>>>>>> /usr/local/include/vtk-6.0/vtkDataObject.h:36: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: >>>>>>>>>> In file included from >>>>>>>>>> /usr/local/include/vtk-6.0/vtkObjectBase.h:44: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: >>>>>>>>>> In file included from >>>>>>>>>> /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: >>>>>>>>>> In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: >>>>>>>>>> In file included from >>>>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: >>>>>>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: >>>>>>>>>> fatal error: >>>>>>>>>> 'unistd.h' file not found >>>>>>>>>> #include >>>>>>>>>> ^ >>>>>>>>>> 1 error generated. >>>>>>>>>> make[2]: *** >>>>>>>>>> [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error 1 >>>>>>>>>> make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 >>>>>>>>>> make: *** [all] Error 2 >>>>>>>>>> >>>>>>>>>> Cheers, >>>>>>>>>> @rno >>>>>>>>>> >>>>>>>>>> On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle < >>>>>>>>>> dave.demarle at kitware.com> wrote: >>>>>>>>>> >>>>>>>>>>> I agree with Cory on Update() being redundant before the Write(). >>>>>>>>>>> >>>>>>>>>>> > vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>>> > dobj->Update(); >>>>>>>>>>> >>>>>>>>>>> should become: >>>>>>>>>>> >>>>>>>>>>> someAlgorithm->Update(1); //to make sure there is something >>>>>>>>>>> valid >>>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the >>>>>>>>>>> output for later use >>>>>>>>>>> >>>>>>>>>>> Because since vtk6, dobj no longer has any connection to the >>>>>>>>>>> algorithm, so updating it (which used to update the algorithm for you) no >>>>>>>>>>> longer has any meaning. >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> >>>>>>>>>>> David E DeMarle >>>>>>>>>>> Kitware, Inc. >>>>>>>>>>> R&D Engineer >>>>>>>>>>> 21 Corporate Drive >>>>>>>>>>> Clifton Park, NY 12065-8662 >>>>>>>>>>> Phone: 518-881-4909 >>>>>>>>>>> >>>>>>>>>>> On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen < >>>>>>>>>>> cory.quammen at kitware.com> wrote: >>>>>>>>>>> >>>>>>>>>>>> Arno, >>>>>>>>>>>> >>>>>>>>>>>> That pattern should be valid in VTK6. Are you getting compile >>>>>>>>>>>> errors? >>>>>>>>>>>> >>>>>>>>>>>> I believe the Update() and Write() calls to the writer are >>>>>>>>>>>> redundant - you should need only one. >>>>>>>>>>>> >>>>>>>>>>>> Thanks, >>>>>>>>>>>> Cory >>>>>>>>>>>> >>>>>>>>>>>> On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein < >>>>>>>>>>>> binarybottle at gmail.com> wrote: >>>>>>>>>>>> >>>>>>>>>>>>> I am trying to update my code to migrate to VTK6 according to: >>>>>>>>>>>>> >>>>>>>>>>>>> http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update >>>>>>>>>>>>> >>>>>>>>>>>>> According to the examples on that site, I understand that: >>>>>>>>>>>>> >>>>>>>>>>>>> vtkDataObject* dobj = someAlgorithm->GetOutput(1); >>>>>>>>>>>>> dobj->Update(); >>>>>>>>>>>>> >>>>>>>>>>>>> should become: >>>>>>>>>>>>> >>>>>>>>>>>>> someAlgorithm->Update(1); >>>>>>>>>>>>> >>>>>>>>>>>>> >>>>>>>>>>>>> However, I don?t know how to deal with the following pattern: >>>>>>>>>>>>> >>>>>>>>>>>>> void PointAreaComputer::WriteIntoFile(char *fileName) >>>>>>>>>>>>> { >>>>>>>>>>>>> vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); >>>>>>>>>>>>> writer->SetFileName(fileName); >>>>>>>>>>>>> m_mesh->GetPointData()->SetScalars(m_pointsArea); >>>>>>>>>>>>> writer->SetInputData(m_mesh); >>>>>>>>>>>>> writer->Update(); >>>>>>>>>>>>> writer->Write(); >>>>>>>>>>>>> writer->Delete(); >>>>>>>>>>>>> } >>>>>>>>>>>>> >>>>>>>>>>>>> What should I do to make this compatible with VTK6? >>>>>>>>>>>>> >>>>>>>>>>>>> Cheers, >>>>>>>>>>>>> @rno >>>>>>>>>>>>> >>>>>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>> >>>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Fri Dec 11 18:40:57 2015 From: david.thompson at kitware.com (David Thompson) Date: Fri, 11 Dec 2015 18:40:57 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: <11D63E31-24E8-4A58-92A0-44AD67DA1416@kitware.com> Hi all, FWIW, I just upgraded my Xcode to 7.2 and projects which had previously been configured by CMake suddenly started failing with this error (unistd.h file not found) because the MacOSX10.9 SDK directory was removed: only the 10.11 SDK is provided with Xcode 7.2. You can still set the deployment target to 10.9 but I have not tried anything earlier. David > On Dec 11, 2015, at 12:49 AM, Arno Klein wrote: > > 'gcc tmp.cpp' created an 'a.out' file, and I have been able to compile other things, so I guess my Xcode installation is fine. What do you recommend I try next? > > Cheers, > @rno > > On Thu, Dec 10, 2015 at 7:52 PM, David Gobbi wrote: > The header unistd.h is posix standard and comes with every Xcode SDK. Try compiling the following trivial program. If it doesn't compile, then there must be something awry with your Xcode installation: > > #include > int main() > { > return 0; > } > > - David > > On Thu, Dec 10, 2015 at 7:39 PM, Arno Klein wrote: > Thank you for your help! > > I am now able to compile with cmake on linux, but get the following error on macosx 10.11, even though there is no "unistd.h" anywhere in my github repo (https://github.com/nipy/mindboggle/issues/69): > > Scanning dependencies of target FsSurfaceReader > [ 3%] Building CXX object CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o > In file included from /software/mindboggle/surface_cpp_tools/FsSurfaceReader.cpp:13: > In file included from /software/mindboggle/surface_cpp_tools/FsSurfaceReader.h:16: > In file included from /usr/local/include/vtk-6.0/vtkPolyData.h:58: > In file included from /usr/local/include/vtk-6.0/vtkPointSet.h:30: > In file included from /usr/local/include/vtk-6.0/vtkDataSet.h:41: > In file included from /usr/local/include/vtk-6.0/vtkDataObject.h:36: > In file included from /usr/local/include/vtk-6.0/vtkObject.h:42: > In file included from /usr/local/include/vtk-6.0/vtkObjectBase.h:44: > In file included from /usr/local/include/vtk-6.0/vtkIndent.h:25: > In file included from /usr/local/include/vtk-6.0/vtkSystemIncludes.h:36: > In file included from /usr/local/include/vtk-6.0/vtkIOStream.h:33: > In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/iostream:37: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__config:23:10: fatal error: > 'unistd.h' file not found > #include > ^ > 1 error generated. > make[2]: *** [CMakeFiles/FsSurfaceReader.dir/FsSurfaceReader.cpp.o] Error 1 > make[1]: *** [CMakeFiles/FsSurfaceReader.dir/all] Error 2 > make: *** [all] Error 2 > > Cheers, > @rno > > On Thu, Dec 3, 2015 at 6:25 AM, David E DeMarle wrote: > I agree with Cory on Update() being redundant before the Write(). > > > vtkDataObject* dobj = someAlgorithm->GetOutput(1); > > dobj->Update(); > > should become: > > someAlgorithm->Update(1); //to make sure there is something valid > vtkDataObject* dobj = someAlgorithm->GetOutput(1); //keep the output for later use > > Because since vtk6, dobj no longer has any connection to the algorithm, so updating it (which used to update the algorithm for you) no longer has any meaning. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Thu, Dec 3, 2015 at 9:09 AM, Cory Quammen wrote: > Arno, > > That pattern should be valid in VTK6. Are you getting compile errors? > > I believe the Update() and Write() calls to the writer are redundant - you should need only one. > > Thanks, > Cory > > On Wed, Dec 2, 2015 at 5:56 PM, Arno Klein wrote: > I am trying to update my code to migrate to VTK6 according to: > > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Removal_of_Update > > According to the examples on that site, I understand that: > > vtkDataObject* dobj = someAlgorithm->GetOutput(1); > dobj->Update(); > > should become: > > someAlgorithm->Update(1); > > > However, I don?t know how to deal with the following pattern: > > void PointAreaComputer::WriteIntoFile(char *fileName) > { > vtkPolyDataWriter* writer=vtkPolyDataWriter::New(); > writer->SetFileName(fileName); > m_mesh->GetPointData()->SetScalars(m_pointsArea); > writer->SetInputData(m_mesh); > writer->Update(); > writer->Write(); > writer->Delete(); > } > > What should I do to make this compatible with VTK6? > > Cheers, > @rno > > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers From david.gobbi at gmail.com Fri Dec 11 21:36:58 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Dec 2015 19:36:58 -0700 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: Hi Arno, I think that I've found out where the AGL link is coming from. It isn't via Carbon, it looks like it was linked directly into the VTK that you're using. And it looks like a bug within CMake itself. CMake has a module called FindOpenGL.cmake that VTK uses to find OpenGL. It looks for both the OpenGL.framework and for the obsolete AGL.framework (which is only for Carbon, and is deprecated by Apple). If it finds both (e.g. with an older SDK and XCode 6 or earlier), then it uses both, even though AGL.framework is really not needed for any modern software. This means that a VTK that is built with (for example) Xcode 6 and its SDKs becomes linked to AGL, because AGL.framework is present in those older SDKs. It's a private link, though, so I'm surprised that it would cause the error. But you are building with Xcode 7 and you are seeing an error... that much is indisputable. I suggest that you enable verbose error reporting so that you can see exactly what is being linked when the error occurs: export VERBOSE=1 make ... Use "unset VERBOSE" to turn off the verbosity. - David On Fri, Dec 11, 2015 at 3:57 PM, Arno Klein wrote: > I tried again, and am still getting the AGL.framework error even when I > set to 10.9 and the SDK to 10.11 (see: > https://github.com/nipy/mindboggle/blob/master/surface_cpp_tools/CMakeLists.txt > ): > > > [ 57%] Building CXX object > travel_depth/CMakeFiles/TravelDepthMain.dir/TravelDepthMain.cpp.o > > make[2]: *** No rule to make target > `/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/AGL.framework', > needed by `travel_depth/TravelDepthMain'. Stop. > > make[1]: *** [travel_depth/CMakeFiles/TravelDepthMain.dir/all] Error 2 > > make: *** [all] Error 2 > > Could you please tell me how to ensure that there are no calls to Carbon > APIs? > > By the way, I am tracking this as an issue on Github: > https://github.com/nipy/mindboggle/issues/69 > > Cheers, > @rno > > > On Fri, Dec 11, 2015 at 5:27 AM, David Gobbi > wrote: > >> Hi Arno, >> >> Using the macosx10.11 SDK is fine as long as it allows you to set this >> desired deployment target. So if you are able to compile with the >> following settings, then the result should run on OS X 10.7: >> >> CMAKE_OSX_DEPLOYMENT_TARGET:STRING=10.7 >> CMAKE_OSX_SYSROOT:STRING=macosx10.11 >> >> I'm not sure how far back you can set the deployment target with this >> SDK, but if the 10.7 target doesn't compile, you can try 10.8 or 10.9. >> >> If if gives errors for the AGL.framework, then make sure that your code >> has no calls to Carbon APIs. >> >> - David >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Fri Dec 11 23:23:00 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Fri, 11 Dec 2015 23:23:00 -0500 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EF26@neocoilexch01> Message-ID: Hi Kenji, I created a merge request and added a test for two component (independent) with gradient opacity here ( https://gitlab.kitware.com/vtk/vtk/merge_requests/1007/diffs). After sending you the patch I looked at your opacity values closely and was trying to find this tricky bug as I was not happy with the image the code was generating. I fixed all of the remaining issues and with you original code, I believe I am getting the correct rendering. Thank you so much for reporting this bug as not only I fixed the bug but hopefully increase the code coverage as well. Thanks, Aashish On Wed, Dec 9, 2015 at 3:01 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Hi Kenji, > > That's just my patch in case you had to send me what shader we were > generating. You can > ignore this as in my branch to VTK, I will remove it. Make sure that your > gradients are matching > with gradient opacity values or else you would not see anything or will > see unexpected color > and opacity. > > - aashish > > On Wed, Dec 9, 2015 at 2:58 PM, Kenji Tsumura < > kenji.tsumura at neosoftmedical.com> wrote: > >> Thank for the advice. >> >> Now I can see volume rendering in both my application and test program >> with gradient option. >> >> When I run, the console output program source code in the attached file. >> >> Is this because I am using latest VTK? >> >> >> >> Thank you, >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Wednesday, December 09, 2015 1:43 PM >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Make sure that your gradient opacity function is set correctly (or as >> expected). I believe you are going from 0.0 - 0.5. Can you change it to 0.2 >> - 0.5 and see if something shows up? >> >> >> >> Thanks, >> >> >> >> >> >> On Wed, Dec 9, 2015 at 2:39 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> I tried, but both my application and the test program doesn?t work with >> gradient opacity. >> >> The display window were black. >> >> There is no apparent error? >> >> >> >> Thank you, >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Wednesday, December 09, 2015 12:44 PM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Kenji, >> >> >> >> Can you try the latest patch? Undo the last patch before you apply this >> patch: >> >> >> >> Thanks, >> >> >> >> >> >> On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >> Let me check.. scalarsRange is the local variables (float) type. I tested >> it on my Linux box and things were >> >> fine but it is possible that gcc failed to catch it. >> >> >> >> On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> I applied the patch to the latest VTK (from GIT) and rebuilt it. >> >> An error occurred when I run the test program you gave me without >> gradient opacity. >> >> Please find the attached file. >> >> I am not sure why? >> >> >> >> Thank you, >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Wednesday, December 09, 2015 9:04 AM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Hi Kenji, >> >> >> >> Could you please try the attached patch? Once if works for you, I will >> clean it up and create a merge request. >> >> >> >> Thanks, >> >> >> >> >> >> On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >> Aha... I think I know how to fix the bug. Gradient opacity was the key. >> I will push a fix today. >> >> >> >> - Aashish >> >> >> >> On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> Adding gradient opacity to the test sample causes the same error I have >> seen in my application. >> >> Please refer to the attached file. >> >> So my application works with IndependentComponents On after removing >> gradient opacity. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Tuesday, December 08, 2015 8:22 AM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> That would be great Kenji, thanks. >> >> >> >> - Aashish >> >> >> >> On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Aashish, >> >> >> >> Thank you very much. >> >> I will try to run the test example and see what happens. >> >> If the test is ok, I will try to reproduce the problem with simpler code. >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 3:58 PM >> >> >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> Thanks Kenji for trying out. Its not clear in the log why the build >> shader code crashed. >> >> Also, I realized that you using Java bindings. Would it be possible to >> re-create this issue >> >> with a small sample code and you send it to me? We do have two component >> and 4 component >> >> test (dependent and independent). Please have a look here: >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx >> >> >> >> and >> >> >> >> >> https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx >> >> >> >> >> >> Thanks, >> >> >> >> >> >> On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hi Aashish, >> >> >> >> Thank you. >> >> I tried with vtkGPUVolumeRayCastMapper. >> >> An error occurs without setting IndependentComponentsOff. >> >> It seems the error occurs in >> vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). >> >> >> >> Kenji >> >> >> >> *From:* Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] >> *Sent:* Monday, December 07, 2015 1:54 PM >> *To:* Kenji Tsumura >> *Cc:* vtkusers at vtk.org >> *Subject:* Re: [vtkusers] vtkVolumeProperty IndependentComponents On and >> Off >> >> >> >> >> >> >> >> On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura < >> kenji.tsumura at neosoftmedical.com> wrote: >> >> Hello, >> >> >> >> I have 3D cardiac MRI data (magnitude data and velocity data), and would >> like to display the volume rendering of the two data. >> >> I create vtkVolume with two components (first one is velocity data and >> second one is magnitude data) and use vtkSmartVolumeMapper. >> >> When I set IndependentComponentsOn to the volume property, I can see what >> I want (refer to the first figure). >> >> But this setting disables GPU rendering and it is slow. >> >> >> >> I don't remember vtkSmartVolumeMapper has this logic, I will have a look. >> In the old GPU raycast mapper, there was some issue with independent >> components so may be that is the reason that smart volume mapper switched >> to fixed point ray cast. >> >> >> >> Is there a particular reason you are using vtkSmartVolumeMapper? You can >> directly use GPUVolume RayCastMapper >> >> >> >> My understanding is that I have to use IndependentComponentsOff to make >> the mapper use GPU rendering. >> >> When I set IndependentComponentsOff, only one color transfer function, >> and only one scalar opacity function to the volume property, >> >> the magnitude data (the second component) is also color-coded (refer to >> the second figure). >> >> I thought this contradicts the method comments of >> IndependentComponentsOn/ IndependentComponentsOff. >> >> >> >> ?For 2 component data, the first is passed through the first color >> transfer function and the second component is passed through the first >> opacity transfer function.? >> >> >> >> Am I missing something? >> >> Can I make the volume rendering look the same as using two components? >> >> >> >> Thank you, >> >> >> >> BTY, I use v6.3.0, OpenGL2. >> >> >> >> -- >> >> Kenji Tsumura >> >> >> >> ?The information contained in this communication may be confidential, is >> intended only for the use of the recipient(s) named above, and may be >> legally privileged. If the reader of this message is not the intended >> recipient, you are hereby notified that any dissemination, distribution, or >> copying of this communication, or any of its contents, is strictly >> prohibited. If you have received this communication in error, please return >> it to the sender immediately and delete the original message and any copy >> of it from your computer system. If you have any questions concerning this >> message, please contact the sender. >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> >> >> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> Disclaimer: The information contained in this communication may be >> confidential, is intended only for the use of the recipient(s) named above, >> and may be legally privileged. If the reader of this message is not the >> intended recipient, you are hereby notified that any dissemination, >> distribution, or copying of this communication, or any of its contents, is >> strictly prohibited. If you have received this communication in error, >> please return it to the sender immediately and delete the original message >> and any copy of it from your computer system. If you have any questions >> concerning this message, please contact the sender. >> > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Sun Dec 13 07:36:03 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Sun, 13 Dec 2015 12:36:03 +0000 Subject: [vtkusers] vtkXdmfReader Message-ID: Hi everyone, I've been using the `vtkUnstructuredGridReader` and the `vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g., ``` reader = vtk.vtkUnstructuredGridReader() reader.SetFileName(filename) reader.Update() vtk_mesh = reader.GetOutput() ``` and then ``` points = vtk.util.numpy_support.vtk_to_numpy( vtk_mesh.GetPoints().GetData() ) ``` etc. From the documentation, it seemed easy enough to phase in the `vtkXdmfReader`. However, ``` AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no attribute 'GetOutput' ``` Any hints on how to use the `vtkXdmfReader`? Cheers, Nico [1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Sun Dec 13 08:55:36 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Sun, 13 Dec 2015 08:55:36 -0500 Subject: [vtkusers] vtkXdmfReader In-Reply-To: References: Message-ID: The reader will produce different types of data dependent on the file it reads, so you need to use GetOutputDataObject instead and cast appropriately. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Sun, Dec 13, 2015 at 7:36 AM, Nico Schl?mer wrote: > Hi everyone, > > I've been using the `vtkUnstructuredGridReader` and the > `vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g., > ``` > reader = vtk.vtkUnstructuredGridReader() > reader.SetFileName(filename) > reader.Update() > vtk_mesh = reader.GetOutput() > ``` > and then > ``` > points = vtk.util.numpy_support.vtk_to_numpy( > vtk_mesh.GetPoints().GetData() > ) > ``` > etc. From the documentation, it seemed easy enough to phase in the > `vtkXdmfReader`. However, > ``` > AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no attribute > 'GetOutput' > ``` > Any hints on how to use the `vtkXdmfReader`? > > Cheers, > Nico > > [1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Sun Dec 13 17:40:47 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Sun, 13 Dec 2015 22:40:47 +0000 Subject: [vtkusers] vtkXdmfReader In-Reply-To: References: Message-ID: Thanks for the reply! `GetOutputDataObject` takes a `port` as input argument, and putting `0` seems to work, but I don't actually know what I'm doing. Any more hints here? Cheers, Nico On Sun, Dec 13, 2015 at 2:55 PM David E DeMarle wrote: > The reader will produce different types of data dependent on the file it > reads, so you need to use GetOutputDataObject instead and cast > appropriately. > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Sun, Dec 13, 2015 at 7:36 AM, Nico Schl?mer > wrote: > >> Hi everyone, >> >> I've been using the `vtkUnstructuredGridReader` and the >> `vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g., >> ``` >> reader = vtk.vtkUnstructuredGridReader() >> reader.SetFileName(filename) >> reader.Update() >> vtk_mesh = reader.GetOutput() >> ``` >> and then >> ``` >> points = vtk.util.numpy_support.vtk_to_numpy( >> vtk_mesh.GetPoints().GetData() >> ) >> ``` >> etc. From the documentation, it seemed easy enough to phase in the >> `vtkXdmfReader`. However, >> ``` >> AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no attribute >> 'GetOutput' >> ``` >> Any hints on how to use the `vtkXdmfReader`? >> >> Cheers, >> Nico >> >> [1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Sun Dec 13 17:56:41 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Sun, 13 Dec 2015 17:56:41 -0500 Subject: [vtkusers] vtkXdmfReader In-Reply-To: References: Message-ID: Some vtkAlgorithms produce more than one thing and you use the port to specify which thing you want. An example being vtkGaussianCube reader (molecule = port0, field = port 1). This reader does not so 0 is what you want. hth David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Sun, Dec 13, 2015 at 5:40 PM, Nico Schl?mer wrote: > Thanks for the reply! > `GetOutputDataObject` takes a `port` as input argument, and putting `0` > seems to work, but I don't actually know what I'm doing. Any more hints > here? > > Cheers, > Nico > > On Sun, Dec 13, 2015 at 2:55 PM David E DeMarle > wrote: > >> The reader will produce different types of data dependent on the file it >> reads, so you need to use GetOutputDataObject instead and cast >> appropriately. >> >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Sun, Dec 13, 2015 at 7:36 AM, Nico Schl?mer >> wrote: >> >>> Hi everyone, >>> >>> I've been using the `vtkUnstructuredGridReader` and the >>> `vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g., >>> ``` >>> reader = vtk.vtkUnstructuredGridReader() >>> reader.SetFileName(filename) >>> reader.Update() >>> vtk_mesh = reader.GetOutput() >>> ``` >>> and then >>> ``` >>> points = vtk.util.numpy_support.vtk_to_numpy( >>> vtk_mesh.GetPoints().GetData() >>> ) >>> ``` >>> etc. From the documentation, it seemed easy enough to phase in the >>> `vtkXdmfReader`. However, >>> ``` >>> AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no attribute >>> 'GetOutput' >>> ``` >>> Any hints on how to use the `vtkXdmfReader`? >>> >>> Cheers, >>> Nico >>> >>> [1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Sun Dec 13 17:59:13 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Sun, 13 Dec 2015 22:59:13 +0000 Subject: [vtkusers] vtkXdmfReader In-Reply-To: References: Message-ID: Thanks for the clarification! Cheers, Nico On Sun, Dec 13, 2015 at 11:57 PM David E DeMarle wrote: > Some vtkAlgorithms produce more than one thing and you use the port to > specify which thing you want. An example being vtkGaussianCube reader > (molecule = port0, field = port 1). > > This reader does not so 0 is what you want. > > hth > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Sun, Dec 13, 2015 at 5:40 PM, Nico Schl?mer > wrote: > >> Thanks for the reply! >> `GetOutputDataObject` takes a `port` as input argument, and putting `0` >> seems to work, but I don't actually know what I'm doing. Any more hints >> here? >> >> Cheers, >> Nico >> >> On Sun, Dec 13, 2015 at 2:55 PM David E DeMarle >> wrote: >> >>> The reader will produce different types of data dependent on the file it >>> reads, so you need to use GetOutputDataObject instead and cast >>> appropriately. >>> >>> >>> >>> David E DeMarle >>> Kitware, Inc. >>> R&D Engineer >>> 21 Corporate Drive >>> Clifton Park, NY 12065-8662 >>> Phone: 518-881-4909 >>> >>> On Sun, Dec 13, 2015 at 7:36 AM, Nico Schl?mer >> > wrote: >>> >>>> Hi everyone, >>>> >>>> I've been using the `vtkUnstructuredGridReader` and the >>>> `vtkXMLUnstructuredGridReader` for a while now to read VTK/VTU meshes, e.g., >>>> ``` >>>> reader = vtk.vtkUnstructuredGridReader() >>>> reader.SetFileName(filename) >>>> reader.Update() >>>> vtk_mesh = reader.GetOutput() >>>> ``` >>>> and then >>>> ``` >>>> points = vtk.util.numpy_support.vtk_to_numpy( >>>> vtk_mesh.GetPoints().GetData() >>>> ) >>>> ``` >>>> etc. From the documentation, it seemed easy enough to phase in the >>>> `vtkXdmfReader`. However, >>>> ``` >>>> AttributeError: 'vtkIOXdmf2Python.vtkXdmfReader' object has no >>>> attribute 'GetOutput' >>>> ``` >>>> Any hints on how to use the `vtkXdmfReader`? >>>> >>>> Cheers, >>>> Nico >>>> >>>> [1] http://www.vtk.org/doc/nightly/html/classvtkXdmfReader.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: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kenji.tsumura at neosoftmedical.com Mon Dec 14 09:18:08 2015 From: kenji.tsumura at neosoftmedical.com (Kenji Tsumura) Date: Mon, 14 Dec 2015 14:18:08 +0000 Subject: [vtkusers] vtkVolumeProperty IndependentComponents On and Off In-Reply-To: References: <10285631702C4D4CB5C4921DC14337954EE9EAD4@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EB60@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EBC0@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EC9C@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEBD@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EEF9@neocoilexch01> <10285631702C4D4CB5C4921DC14337954EE9EF26@neocoilexch01> Message-ID: <10285631702C4D4CB5C4921DC14337954EE9F2DC@neocoilexch01> Hi Aashish, We will try the latest whenever your fix is available. Thank you so much for your advice. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Friday, December 11, 2015 10:23 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Hi Kenji, I created a merge request and added a test for two component (independent) with gradient opacity here (https://gitlab.kitware.com/vtk/vtk/merge_requests/1007/diffs). After sending you the patch I looked at your opacity values closely and was trying to find this tricky bug as I was not happy with the image the code was generating. I fixed all of the remaining issues and with you original code, I believe I am getting the correct rendering. Thank you so much for reporting this bug as not only I fixed the bug but hopefully increase the code coverage as well. Thanks, Aashish On Wed, Dec 9, 2015 at 3:01 PM, Aashish Chaudhary > wrote: Hi Kenji, That's just my patch in case you had to send me what shader we were generating. You can ignore this as in my branch to VTK, I will remove it. Make sure that your gradients are matching with gradient opacity values or else you would not see anything or will see unexpected color and opacity. - aashish On Wed, Dec 9, 2015 at 2:58 PM, Kenji Tsumura > wrote: Thank for the advice. Now I can see volume rendering in both my application and test program with gradient option. When I run, the console output program source code in the attached file. Is this because I am using latest VTK? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 1:43 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Make sure that your gradient opacity function is set correctly (or as expected). I believe you are going from 0.0 - 0.5. Can you change it to 0.2 - 0.5 and see if something shows up? Thanks, On Wed, Dec 9, 2015 at 2:39 PM, Kenji Tsumura > wrote: Hi Aashish, I tried, but both my application and the test program doesn?t work with gradient opacity. The display window were black. There is no apparent error? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 12:44 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Kenji, Can you try the latest patch? Undo the last patch before you apply this patch: Thanks, On Wed, Dec 9, 2015 at 1:35 PM, Aashish Chaudhary > wrote: Let me check.. scalarsRange is the local variables (float) type. I tested it on my Linux box and things were fine but it is possible that gcc failed to catch it. On Wed, Dec 9, 2015 at 1:25 PM, Kenji Tsumura > wrote: Hi Aashish, I applied the patch to the latest VTK (from GIT) and rebuilt it. An error occurred when I run the test program you gave me without gradient opacity. Please find the attached file. I am not sure why? Thank you, Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Wednesday, December 09, 2015 9:04 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Hi Kenji, Could you please try the attached patch? Once if works for you, I will clean it up and create a merge request. Thanks, On Tue, Dec 8, 2015 at 11:41 AM, Aashish Chaudhary > wrote: Aha... I think I know how to fix the bug. Gradient opacity was the key. I will push a fix today. - Aashish On Tue, Dec 8, 2015 at 11:30 AM, Kenji Tsumura > wrote: Hi Aashish, Adding gradient opacity to the test sample causes the same error I have seen in my application. Please refer to the attached file. So my application works with IndependentComponents On after removing gradient opacity. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Tuesday, December 08, 2015 8:22 AM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off That would be great Kenji, thanks. - Aashish On Mon, Dec 7, 2015 at 5:29 PM, Kenji Tsumura > wrote: Aashish, Thank you very much. I will try to run the test example and see what happens. If the test is ok, I will try to reproduce the problem with simpler code. Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 3:58 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off Thanks Kenji for trying out. Its not clear in the log why the build shader code crashed. Also, I realized that you using Java bindings. Would it be possible to re-create this issue with a small sample code and you send it to me? We do have two component and 4 component test (dependent and independent). Please have a look here: https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsIndependent.cxx and https://github.com/Kitware/VTK/blob/master/Rendering/Volume/Testing/Cxx/TestGPURayCastTwoComponentsDependent.cxx Thanks, On Mon, Dec 7, 2015 at 3:41 PM, Kenji Tsumura > wrote: Hi Aashish, Thank you. I tried with vtkGPUVolumeRayCastMapper. An error occurs without setting IndependentComponentsOff. It seems the error occurs in vtkOpenGLGPUVolumeRayCastMapper::BuildShader (See the attached file). Kenji From: Aashish Chaudhary [mailto:aashish.chaudhary at kitware.com] Sent: Monday, December 07, 2015 1:54 PM To: Kenji Tsumura Cc: vtkusers at vtk.org Subject: Re: [vtkusers] vtkVolumeProperty IndependentComponents On and Off On Mon, Dec 7, 2015 at 12:19 PM, Kenji Tsumura > wrote: Hello, I have 3D cardiac MRI data (magnitude data and velocity data), and would like to display the volume rendering of the two data. I create vtkVolume with two components (first one is velocity data and second one is magnitude data) and use vtkSmartVolumeMapper. When I set IndependentComponentsOn to the volume property, I can see what I want (refer to the first figure). But this setting disables GPU rendering and it is slow. I don't remember vtkSmartVolumeMapper has this logic, I will have a look. In the old GPU raycast mapper, there was some issue with independent components so may be that is the reason that smart volume mapper switched to fixed point ray cast. Is there a particular reason you are using vtkSmartVolumeMapper? You can directly use GPUVolume RayCastMapper My understanding is that I have to use IndependentComponentsOff to make the mapper use GPU rendering. When I set IndependentComponentsOff, only one color transfer function, and only one scalar opacity function to the volume property, the magnitude data (the second component) is also color-coded (refer to the second figure). I thought this contradicts the method comments of IndependentComponentsOn/ IndependentComponentsOff. ?For 2 component data, the first is passed through the first color transfer function and the second component is passed through the first opacity transfer function.? Am I missing something? Can I make the volume rendering look the same as using two components? Thank you, BTY, I use v6.3.0, OpenGL2. -- Kenji Tsumura ?The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html -- | Aashish Chaudhary | Technical Leader | Kitware Inc. | http://www.kitware.com/company/team/chaudhary.html Disclaimer: The information contained in this communication may be confidential, is intended only for the use of the recipient(s) named above, and may be legally privileged. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication, or any of its contents, is strictly prohibited. If you have received this communication in error, please return it to the sender immediately and delete the original message and any copy of it from your computer system. If you have any questions concerning this message, please contact the sender. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Mon Dec 14 10:54:26 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Mon, 14 Dec 2015 10:54:26 -0500 Subject: [vtkusers] Migration to VTK6 In-Reply-To: References: Message-ID: <20151214155426.GB13923@megas.khq.kitware.com> On Fri, Dec 11, 2015 at 19:36:58 -0700, David Gobbi wrote: > export VERBOSE=1 > make > ... > > Use "unset VERBOSE" to turn off the verbosity. Alternatively: make VERBOSE=1 --Ben From christbar at gmail.com Mon Dec 14 11:57:51 2015 From: christbar at gmail.com (Christian Bar) Date: Mon, 14 Dec 2015 16:57:51 +0000 Subject: [vtkusers] Using ExternalVTKWidget with an external OpenGL context (OpenSG) Message-ID: Dear All, I am trying to draw some VTK stuff inside a pre-existing OpenGL context; this context has been created with a library called OpenSG (not to be confused with OpenSceneGraph). After some trial-and-error development, I managed to adapt a OpenSG example and integrate some VTK rendering. In the initialization phase I: - create an OpenSG GLUT window and put a torus inside the OpenSG scene, - create a VTK ExternalVTKWidget and related window/renderer, and put a cube inside the VTK scene. In the GLUT main loop, I: - activate the OpenSG window, - draw the OpenSG torus, - setup some GL stuff for camera and lights (why?!?), - draw the VTK cube, - swap buffers and deactivate the OpenSG window. Now, my questions are essentially two: 1) Why do I need to write the OpenGL/glu code for the camera and the lights? It seems to me that OpenSG correctly calls the OpenGL state machine and sets up the camera and lights, but, when it comes to VTK, the internal camera and lights settings are not used (for example, if I set the camera near and far plane in the vtkRenderer it is ignored, to get everything work I have to call the gluPerspective() on each frame). The same for the Modelview tranform. 2) When I quit the application, a VTK window opens and prompts me for some OpenGL errors: " Generic Warning: In ..\..\..\VTK-6.3.0\Rendering\OpenGL\vtkOpenGLDisplayListPainter.cxx, line 52 failed after ReleaseAllLists 16 OpenGL errors detected 0 : (1282) Invalid operation 1 : (1282) Invalid operation 2 : (1282) Invalid operation 3 : (1282) Invalid operation 4 : (1282) Invalid operation 5 : (1282) Invalid operation 6 : (1282) Invalid operation 7 : (1282) Invalid operation 8 : (1282) Invalid operation 9 : (1282) Invalid operation 10 : (1282) Invalid operation 11 : (1282) Invalid operation 12 : (1282) Invalid operation 13 : (1282) Invalid operation 14 : (1282) Invalid operation 15 : (1282) Invalid operation ", can someone tell me why? Currently , I am developing with Visual Studio 2010. Any suggestion or hint will be highly appreciated! Kind Regards, Christian PS: below you can find the complete example: #include VTK_MODULE_INIT(vtkRenderingOpenGL); VTK_MODULE_INIT(vtkRenderingContextOpenGL); VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkInteractionStyle); // OSG Includes #include #include #include #include #include #include // VTK includes #include #include #include #include #include #include #include #include #include // defines #define FOV 75.f #define NEAR_PLANE 0.01f #define FAR_PLANE 100.0f // variables vtkNew externalVTKWidget; vtkNew actor; int width = 100, height = 100; OSG::SimpleSceneManagerRefPtr mgr; OSG::GLUTWindowRefPtr gwin; using namespace OSG; // redraw the window void display(void) { // activate OSG window gwin->activate(); gwin->frameInit(); // draw OSG stuff mgr->update(); gwin->renderAllViewports(mgr->getRenderAction()); // setup gl stuff for camera and lights (why?!?) glMatrixMode(GL_PROJECTION); glLoadIdentity(); gluPerspective (FOV, (float)width/(float)height, NEAR_PLANE, FAR_PLANE); glEnable(GL_LIGHTING); glEnable(GL_LIGHT0); // draw VTK stuff actor->RotateX(1.0f); actor->RotateY(1.0f); externalVTKWidget->GetRenderWindow()->Render(); // swap buffers and deactivate OSG window gwin->swap(); gwin->frameExit(); gwin->deactivate(); } // react to size changes void reshape(int w, int h) { width = w; height = h; mgr->resize(w, h); glutPostRedisplay(); } // react to mouse button presses void mouse(int button, int state, int x, int y) { if (state) mgr->mouseButtonRelease(button, x, y); else mgr->mouseButtonPress(button, x, y); glutPostRedisplay(); } // react to mouse motions with pressed buttons void motion(int x, int y) { mgr->mouseMove(x, y); glutPostRedisplay(); } // react to keys void keyboard(unsigned char k, int x, int y) { switch(k) { case 27: { mgr = NULL; gwin = NULL; OSG::osgExit(); exit(0); } break; } } int main(int argc, char **argv) { // init and setup GLUT glewInit(); OSG::osgInit(argc,argv); glutInit(&argc, argv); glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE); int winid = glutCreateWindow("OpenSG"); glutReshapeFunc(reshape); glutDisplayFunc(display); glutIdleFunc(display); glutMouseFunc(mouse); glutMotionFunc(motion); glutKeyboardFunc(keyboard); { // Connection between GLUT and OpenSG gwin = OSG::GLUTWindow::create(); gwin->setGlutId(winid); gwin->setSize(100, 100); gwin->init(); // create the scene OSG::NodeRefPtr scene = OSG::makeTorus(.1f, 0.6f, 16, 16); OSG::commitChanges(); mgr = OSG::SimpleSceneManager::create(); mgr->setWindow(gwin ); mgr->setRoot (scene); mgr->showAll(); // set the camera parameters CameraRecPtr cam = mgr->getCamera(); PerspectiveCamera *pPerspCam = OSG::dynamic_pointer_cast(cam); pPerspCam->setFov(FOV); pPerspCam->setNear(NEAR_PLANE); pPerspCam->setFar(FAR_PLANE); pPerspCam->setAspect(1.f); } { // create the VTK scene vtkNew cs; vtkNew mapper; mapper->SetInputConnection(cs->GetOutputPort()); actor->SetMapper(mapper.GetPointer()); actor->GetProperty()->SetColor(1,1,0.2); actor->GetProperty()->SetOpacity(0.5); // create the VTK external renderer vtkNew renWin; externalVTKWidget->SetRenderWindow(renWin.GetPointer()); vtkRenderer* ren = externalVTKWidget->AddRenderer(); ren->AddActor(actor.GetPointer()); } glutMainLoop(); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Mon Dec 14 13:49:24 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Mon, 14 Dec 2015 11:49:24 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match Message-ID: <1450118964390-5735518.post@n5.nabble.com> Hello VTK Users, I'm getting the following error when running CMake to build a VTK example: /CMake Error at CMakeLists.txt:8 (find_package): Could not find a configuration file for package "VTK" that is compatible with requested version "". The following configuration files were considered but not accepted: C:/dev/release/lib/cmake/vtk-6.3/VTKConfig.cmake, version: 6.3.0 (64bit)/ Below is my CMakeLists.txt: /cmake_minimum_required(VERSION 2.8.8) PROJECT(vtkMesh) set(CMAKE_PREFIX_PATH C:/dev/release) find_package(VTK REQUIRED) include(${VTK_USE_FILE}) add_executable(vtkMesh WIN32 main.cpp) if(VTK_LIBRARIES) target_link_libraries(vtkMesh ${VTK_LIBRARIES}) else() target_link_libraries(vtkMesh vtkHybrid vtkWidgets) endif()/ Could anyone help me? Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518.html Sent from the VTK - Users mailing list archive at Nabble.com. From kevin.e.liang at gmail.com Mon Dec 14 13:57:31 2015 From: kevin.e.liang at gmail.com (Kevin Liang) Date: Mon, 14 Dec 2015 13:57:31 -0500 Subject: [vtkusers] VTK to OBJ conversion Message-ID: Hi all, I am working with tractography data which are in .VTK format, storing a series of 3D coordinates (x,y,z) that are assumed to be consequential points along a track. How do I convert these VTK files into an OBJ file format? Further, is there a way to connect these dots automatically? Thank you, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From kevin.e.liang at gmail.com Mon Dec 14 14:10:02 2015 From: kevin.e.liang at gmail.com (Kevin Liang) Date: Mon, 14 Dec 2015 14:10:02 -0500 Subject: [vtkusers] Converting VTK files to .OBJ Message-ID: Hi all, I am working with tractography data which are in .VTK format, storing a series of 3D coordinates (x,y,z) that are assumed to be consequential points along a track. How do I convert these VTK files into an OBJ file format? Thank you, Kevin -------------- next part -------------- An HTML attachment was scrubbed... URL: From pluszcz at gmail.com Mon Dec 14 14:22:51 2015 From: pluszcz at gmail.com (Anka Kochanowska) Date: Mon, 14 Dec 2015 14:22:51 -0500 Subject: [vtkusers] Converting VTK files to .OBJ In-Reply-To: References: Message-ID: Hi! You could use vtkMNIObjectWriter. Anka On Mon, Dec 14, 2015 at 2:10 PM, Kevin Liang wrote: > Hi all, > > I am working with tractography data which are in .VTK format, storing a > series of 3D coordinates (x,y,z) that are assumed to be consequential > points along a track. How do I convert these VTK files into an OBJ file > format? > > Thank you, > Kevin > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Mon Dec 14 14:54:50 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Mon, 14 Dec 2015 12:54:50 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450118964390-5735518.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> Message-ID: <1450122890950-5735522.post@n5.nabble.com> More details: Windows 10 x64 machine -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735522.html Sent from the VTK - Users mailing list archive at Nabble.com. From kzm5606 at psu.edu Mon Dec 14 10:54:18 2015 From: kzm5606 at psu.edu (KASRA MOMENI) Date: Mon, 14 Dec 2015 10:54:18 -0500 (EST) Subject: [vtkusers] Error in installing vtk5.10 Message-ID: <1864639965.192473.1450108458273.JavaMail.zimbra@psu.edu> Hi, I am trying to install the vtk5.10.1 on Mac Yosemite. I have followed the instructions on the website, installed Cmake and Qt, and copied all the source and data files in the same path. I have configured the cake files as it was mentioned in the instructions (http://www.vtk.org/Wiki/VTK/Building/MacOSX) and ran the "make" command. I received the an error regarding duplicated symbol during the make process, and I have included the details of the error in the attachment. I would be very thankful if you could help me on this. Please do not hesitate to contact me if you need any further information./ With best regards, Kasra -------------- next part -------------- A non-text attachment was scrubbed... Name: VTK builder error.rtf Type: application/rtf Size: 11800 bytes Desc: not available URL: From richard.j.brown at live.co.uk Tue Dec 15 05:38:15 2015 From: richard.j.brown at live.co.uk (mbcx9rb9) Date: Tue, 15 Dec 2015 03:38:15 -0700 (MST) Subject: [vtkusers] VTK 6.3 with Qt Creator on OSX Message-ID: <1450175895075-5735524.post@n5.nabble.com> Hi all, Having updated to 6.3, I modified my Qt Creator .pro file accordingly: ------------------------------------ BEFORE ------------------------------------ INCLUDEPATH += /Applications/VTK/6.2/Install/include/vtk-6.2 LIBS += -L/Applications/VTK/6.2/Install/lib/ \ -lvtkChartsCore-6.2 \ -lvtkCommonColor-6.2 \ -lvtkCommonComputationalGeometry-6.2 \ -lvtkCommonCore-6.2 \ and so on... ------------------------------------- NOW -------------------------------------- INCLUDEPATH += /Applications/VTK/6.3/Install/include/vtk-6.3 #inclusion of second includepath is just for vtkDICOM INCLUDEPATH += /Applications/VTK/6.3/Install/include/ LIBS += -L/Applications/VTK/6.3/Install/lib/ \ -lvtkChartsCore-6.3 \ -lvtkCommonColor-6.3 \ -lvtkCommonComputationalGeometry-6.3 \ -lvtkCommonCore-6.3 \ and so on... However, I always get the error: dyld: Library not loaded: libvtkChartsCore-6.3.1.dylib Referenced from: /Users/CRCT_Richard/Desktop/d/build/d Reason: image not found It strikes me as weird, because, since qmake has managed to determine that lvtkChartsCore-6.3 corresponds to libvtkChartsCore-6.3.1.dylib, it must have found the file. So I don't understand how it can say the image was not found. I have little (no) understanding of dynamic libraries, so maybe the error is saying something else. Can anyone shed any light on to what's going wrong? I'm using OSX El Capitan if that changes anything. Cheers, Richard -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-3-with-Qt-Creator-on-OSX-tp5735524.html Sent from the VTK - Users mailing list archive at Nabble.com. From anka at bic.mni.mcgill.ca Tue Dec 15 08:36:23 2015 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Tue, 15 Dec 2015 08:36:23 -0500 Subject: [vtkusers] Converting VTK files to .OBJ In-Reply-To: References: Message-ID: Hi Kevin! Please, always send your messages to vtkusers list, that increases your chances of getting help. Go to http://www.vtk.org/Wiki/VTK/Examples and use one of the writer examples. On vtk site you should be able to find information how to use vtk library/ You will meed CMake, also from Kitware. Anka On Mon, Dec 14, 2015 at 2:47 PM, Kevin Liang wrote: > Hi, > > I am quite new to using VTK files. > What do I have to download to enable this class? > > Thanks! > Kevin > > On Dec 14, 2015, at 2:22 PM, Anka Kochanowska wrote: > > Hi! > You could use vtkMNIObjectWriter. > Anka > > > On Mon, Dec 14, 2015 at 2:10 PM, Kevin Liang > wrote: > >> Hi all, >> >> I am working with tractography data which are in .VTK format, storing a >> series of 3D coordinates (x,y,z) that are assumed to be consequential >> points along a track. How do I convert these VTK files into an OBJ file >> format? >> >> Thank you, >> Kevin >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lonni.besancon at gmail.com Tue Dec 15 11:45:08 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 15 Dec 2015 09:45:08 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450122890950-5735522.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> Message-ID: <1450197908820-5735526.post@n5.nabble.com> Can you print in your Cmake the value of /VTK_DIR/? Then check if /VTKConfig.cmake/ is included in this directory? >From this post it would appear that this can happen if it cannot find the config file for VTK. -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735526.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Tue Dec 15 12:42:54 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 15 Dec 2015 10:42:54 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450197908820-5735526.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> Message-ID: <1450201374740-5735528.post@n5.nabble.com> Hi Lonni, VTK_DIR value is "VTK_DIR-NOTFOUND". After knowing it, I changed my CMakeLists.txt file setting that variable to: /set(VTK_DIR C:/dev/debug/lib/cmake/vtk-6.3)/ But I got the same error message. And yes /VTKConfig.cmake/ is included in this directory. -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735528.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Tue Dec 15 12:46:53 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 15 Dec 2015 10:46:53 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450201374740-5735528.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> Message-ID: Well usually it should not be round it VTK is built correctly. You did not get any error message while building ? I'm still learning to use CMake and VTK and I have never stumbled upon this kind of error on any system (Ubuntu, Windows or Mac). I'm guessing that the building went wrong somewhere and that's the only thing I c an think of, but others (with a better knowledge) may think of something else. Le mardi 15 d?cembre 2015, joaoroberto88 [via VTK] < ml-node+s1045678n5735528h61 at n5.nabble.com> a ?crit : > Hi Lonni, > > VTK_DIR value is "VTK_DIR-NOTFOUND". After knowing it, I changed my > CMakeLists.txt file setting that variable to: > > *set(VTK_DIR C:/dev/debug/lib/cmake/vtk-6.3)* > > But I got the same error message. And yes *VTKConfig.cmake* is included > in this directory. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735528.html > To unsubscribe from CMake Error -- version doesn't match, click here > > . > NAML > > -- *Best / Cordialement,* *Lonni Besan?on* *PhD Student at INRIA & LIMSI/CNRS* *Teaching Assistant at Polytech Paris Sud and Universit? Paris Sud* *Email: lonni.besancon at gmail.com * *Phone: +33689902815* *LinkedIn: *fr.linkedin.com/pub/lonni-besan?on/77/552/a38/en -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735529.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Tue Dec 15 13:15:10 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 15 Dec 2015 11:15:10 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> Message-ID: <1450203310325-5735530.post@n5.nabble.com> No. There weren't errors on library compilation. -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735530.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Tue Dec 15 13:17:09 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Tue, 15 Dec 2015 11:17:09 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450203310325-5735530.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> <1450203310325-5735530.post@n5.nabble.com> Message-ID: Maybe check VTK_FOUND ? I think that's the name of the macro. I'm on my phone so can't check it out Le mardi 15 d?cembre 2015, joaoroberto88 [via VTK] < ml-node+s1045678n5735530h23 at n5.nabble.com> a ?crit : > No. There weren't errors on library compilation. > > ------------------------------ > If you reply to this email, your message will be added to the discussion > below: > > http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735530.html > To unsubscribe from CMake Error -- version doesn't match, click here > > . > NAML > > -- *Best / Cordialement,* *Lonni Besan?on* *PhD Student at INRIA & LIMSI/CNRS* *Teaching Assistant at Polytech Paris Sud and Universit? Paris Sud* *Email: lonni.besancon at gmail.com * *Phone: +33689902815* *LinkedIn: *fr.linkedin.com/pub/lonni-besan?on/77/552/a38/en -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735531.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Tue Dec 15 13:28:28 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 15 Dec 2015 13:28:28 -0500 Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> <1450203310325-5735530.post@n5.nabble.com> Message-ID: Try changing your find VTK line to something like: find_package(VTK 6.3 REQUIRED) I'm guessing based on the error message where it is comparing 6.3 to the version it thinks it should have (empty string). The build system migration guide [1] has the version specified in all of its examples... HTH, Shawn [1]: http://www.vtk.org/Wiki/VTK/Build_System_Migration On Tue, Dec 15, 2015 at 1:17 PM, Lonni Besan?on wrote: > Maybe check VTK_FOUND ? I think that's the name of the macro. I'm on my > phone so can't check it out > > Le mardi 15 d?cembre 2015, joaoroberto88 [via VTK] <[hidden email] > > a ?crit : > >> No. There weren't errors on library compilation. >> >> ------------------------------ >> If you reply to this email, your message will be added to the discussion >> below: >> >> http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735530.html >> To unsubscribe from CMake Error -- version doesn't match, click here. >> NAML >> >> > > > -- > > *Best / Cordialement,* > > > *Lonni Besan?on* > > *PhD Student at INRIA & LIMSI/CNRS* > *Teaching Assistant at Polytech Paris Sud and Universit? Paris Sud* > > *Email: [hidden email] > * > > *Phone: +33689902815 <%2B33689902815>* > *LinkedIn: *fr.linkedin.com/pub/lonni-besan?on/77/552/a38/en > > > > > ------------------------------ > View this message in context: Re: CMake Error -- version doesn't match > > Sent from the VTK - Users mailing list archive > at Nabble.com. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Tue Dec 15 13:36:30 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 15 Dec 2015 11:36:30 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> <1450203310325-5735530.post@n5.nabble.com> Message-ID: <1450204590553-5735533.post@n5.nabble.com> Hi Shawn, I changed find_package call to: /find_package(VTK 6.3.0 REQUIRED NO_MODULE)/ But I got a similar error message. Is "(64 bit)" included in version name? /CMake Error at CMakeLists.txt:8 (find_package): Could not find a configuration file for package "VTK" that is compatible with requested version "6.3.0". The following configuration files were considered but not accepted: C:/dev/release/lib/cmake/vtk-6.3/VTKConfig.cmake, version: 6.3.0 (64bit)/ -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735533.html Sent from the VTK - Users mailing list archive at Nabble.com. From shawn.waldon at kitware.com Tue Dec 15 13:42:06 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 15 Dec 2015 13:42:06 -0500 Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: <1450204590553-5735533.post@n5.nabble.com> References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> <1450203310325-5735530.post@n5.nabble.com> <1450204590553-5735533.post@n5.nabble.com> Message-ID: On Tue, Dec 15, 2015 at 1:36 PM, joaoroberto88 wrote: > Hi Shawn, > > I changed find_package call to: > > /find_package(VTK 6.3.0 REQUIRED NO_MODULE)/ > > But I got a similar error message. Is "(64 bit)" included in version name? > I don't think so. I guess that isn't the problem. Are you configuring your application as 32 bit against a 64 bit build of VTK? On Windows, which generator you select in CMake determines whether your application is built as 32 bit or 64 bit (for the Visual Studio generators anyway). That could be the problem. HTH, Shawn -------------- next part -------------- An HTML attachment was scrubbed... URL: From anka at bic.mni.mcgill.ca Tue Dec 15 13:55:57 2015 From: anka at bic.mni.mcgill.ca (Anka Kochanowska) Date: Tue, 15 Dec 2015 13:55:57 -0500 Subject: [vtkusers] Converting VTK files to .OBJ In-Reply-To: References: Message-ID: MNI obj format may not be what you are looking for. Anka On Tue, Dec 15, 2015 at 8:36 AM, Anka Kochanowska wrote: > Hi Kevin! > Please, always send your messages to vtkusers list, that increases your > chances of getting help. > Go to > http://www.vtk.org/Wiki/VTK/Examples > > and use one of the writer examples. > On vtk site you should be able to find information how to use vtk library/ > > You will meed CMake, also from Kitware. > > Anka > > > On Mon, Dec 14, 2015 at 2:47 PM, Kevin Liang > wrote: > >> Hi, >> >> I am quite new to using VTK files. >> What do I have to download to enable this class? >> >> Thanks! >> Kevin >> >> On Dec 14, 2015, at 2:22 PM, Anka Kochanowska wrote: >> >> Hi! >> You could use vtkMNIObjectWriter. >> Anka >> >> >> On Mon, Dec 14, 2015 at 2:10 PM, Kevin Liang >> wrote: >> >>> Hi all, >>> >>> I am working with tractography data which are in .VTK format, storing a >>> series of 3D coordinates (x,y,z) that are assumed to be consequential >>> points along a track. How do I convert these VTK files into an OBJ file >>> format? >>> >>> Thank you, >>> Kevin >>> >>> _______________________________________________ >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Tue Dec 15 13:58:39 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Tue, 15 Dec 2015 11:58:39 -0700 (MST) Subject: [vtkusers] CMake Error -- version doesn't match In-Reply-To: References: <1450118964390-5735518.post@n5.nabble.com> <1450122890950-5735522.post@n5.nabble.com> <1450197908820-5735526.post@n5.nabble.com> <1450201374740-5735528.post@n5.nabble.com> <1450203310325-5735530.post@n5.nabble.com> <1450204590553-5735533.post@n5.nabble.com> Message-ID: <1450205919029-5735536.post@n5.nabble.com> Guys, I found the problem. I was building my application using only "cmake ..", so not providing a Visual Studio generator. Thank you for your help! Jo?o Roberto. -- View this message in context: http://vtk.1045678.n5.nabble.com/CMake-Error-version-doesn-t-match-tp5735518p5735536.html Sent from the VTK - Users mailing list archive at Nabble.com. From biomates at telefonica.net Tue Dec 15 15:27:23 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Tue, 15 Dec 2015 21:27:23 +0100 Subject: [vtkusers] Trying to use vtkChartXY with Tcl Message-ID: <567077AB.3090804@telefonica.net> Dear list members, I am interested to learn how to use the vtkChartXY class from Tcl scripts. Since I couldn't find any Tcl examples, I am trying to translate existing python examples into Tcl. My first efforts started with http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Python/TestLinePlot.py But I am having problems translating the following lines into Tcl: line = chart.AddPlot(0) line.SetInputData(table,0,2) where chart was created with vtkChartXY chart Perhaps someone could help me to write the correct translation of this piece of code. I usually write programs in Lisp, and my knowledge of Python and Tcl is very limited. I am working with version 6.3. Thanks. -- Mario From david.gobbi at gmail.com Tue Dec 15 15:51:57 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 15 Dec 2015 13:51:57 -0700 Subject: [vtkusers] Trying to use vtkChartXY with Tcl In-Reply-To: <567077AB.3090804@telefonica.net> References: <567077AB.3090804@telefonica.net> Message-ID: Hi Mario, Tcl syntax a mixture of lisp and shell script. The code will look like this: set line [chart AddPlot 0] $line SetInputData table 0 2 Are you really sure that you want to use Tcl? Many of the VTK classes and methods that you can use with Python cannot be used from Tcl, so it might not even be possible to convert that example into working Tcl code. You're welcome to try, though. - David On Tue, Dec 15, 2015 at 1:27 PM, Mario Rodriguez wrote: > Dear list members, > > I am interested to learn how to use the vtkChartXY class from Tcl scripts. > > Since I couldn't find any Tcl examples, I am trying to translate existing > python examples into Tcl. > > My first efforts started with > > > http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Charts/Core/Testing/Python/TestLinePlot.py > > But I am having problems translating the following lines into Tcl: > > line = chart.AddPlot(0) > line.SetInputData(table,0,2) > > where chart was created with > > vtkChartXY chart > > Perhaps someone could help me to write the correct translation of this > piece of code. I usually write programs in Lisp, and my knowledge of Python > and Tcl is very limited. > > I am working with version 6.3. > > Thanks. > > -- > Mario > -------------- next part -------------- An HTML attachment was scrubbed... URL: From serhattural12 at gmail.com Tue Dec 15 16:31:19 2015 From: serhattural12 at gmail.com (serseri) Date: Tue, 15 Dec 2015 14:31:19 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> Message-ID: <1450215079252-5735539.post@n5.nabble.com> Hi Mark, Thank you for your support. But I couldn't build ActiViz. It gives error on "Kitware.VTK.vtkGeovisCore.Unmanaged" project. There is a file (at ActiViz/activizdotnet-build/xml/) "vtkGeoAlignedImageRepresentation_gccxml.cxx" but it searches for "vtkGeoAlignedImageRepresentation_gcxml.cxx" Do you have any idea about this? Best regards. 1>Generating xml/vtkGeoAlignedImageRepresentation.xml 1>gccxml_cc1plus.exe: error: D:/DEVELOPER/Library/VTK/Activiz 6.2/ActiViz/activizdotnet-build/xml/vtkGeoAlignedImageRepresentation_gcxml.cxx: No such file or directory 1>Project : error PRJ0019: A tool returned an error code from "Generating xml/vtkGeoAlignedImageRepresentation.xml" 1>Build log was saved at "file://d:\DEVELOPER\Library\VTK\Activiz 6.2\ActiViz\activizdotnet-build\vtkGeovisCoreGenerateCSharp.dir\Release\BuildLog.htm" 1>vtkGeovisCoreGenerateCSharp - 2 error(s), 0 warning(s) 2>------ Build started: Project: Kitware.VTK.vtkGeovisCore.Unmanaged, Configuration: Release Win32 ------ 2>Compiling... 2>vtkGeoAlignedImageRepresentationEL.cxx 2>c1xx : fatal error C1083: Cannot open source file: '.\export-layer\vtkGeoAlignedImageRepresentationEL.cxx': No such file or directory 2>vtkGlobeSourceEL.cxx ... -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5735539.html Sent from the VTK - Users mailing list archive at Nabble.com. From biomates at telefonica.net Tue Dec 15 18:24:02 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Wed, 16 Dec 2015 00:24:02 +0100 Subject: [vtkusers] Trying to use vtkChartXY with Tcl In-Reply-To: References: <567077AB.3090804@telefonica.net> Message-ID: <5670A112.6060007@telefonica.net> El 15/12/15 a las 21:51, David Gobbi escribi?: > Hi Mario, > Thanks for your kind and quick response. > Tcl syntax a mixture of lisp and shell script. The code will look > like this: > > set line [chart AddPlot 0] > $line SetInputData table 0 2 Now I see where I was wrong. I forgot the dollar symbol. After writing: [view GetRenderWindow] SetMultiSamples 0 [view GetRenderWindow] Render where view was created by vtkContextView view I successfully get the expected plot. The problem now is how to close the window with a mouse click. Any hints? > > Are you really sure that you want to use Tcl? Yes, it is mandatory. We have the system Lisp -> Tcl -> Vtk for drawing 3D scenes from Computer Algebra System Maxima: http://riotorto.users.sourceforge.net/vtk/ Tcl is a dependency to be satisfied by Maxima, which is also used for other purposes. I am trying to know how far we can go with Vtk for plotting 2D scenes, in order to extend the Maxima-Vtk interface. > Many of the VTK classes > and methods that you can use with Python cannot be used from Tcl, so > it might not even be possible to convert that example into working Tcl > code. You're welcome to try, though. > > - David > Thanks again for your help. -- Mario -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Dec 15 18:52:12 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 15 Dec 2015 16:52:12 -0700 Subject: [vtkusers] Trying to use vtkChartXY with Tcl In-Reply-To: <5670A112.6060007@telefonica.net> References: <567077AB.3090804@telefonica.net> <5670A112.6060007@telefonica.net> Message-ID: Hi Mario, The fact that you are using Tcl actually validates our continuing support for Tcl, so in a way it is a good thing. The best way to get a fully-functional VTK window with Tcl is to use Tk. Take a look at these two examples: Examples/GUI/Tcl/vtkTkRenderWidgetDemo.tcl Examples/GUI/Tcl/MaceTk.tcl The MaceTk example provides a window close operation, using this call to the window manager: wm protocol . WM_DELETE_WINDOW For more information, see the tk documentation, e.g.: https://www.tcl.tk/man/tcl8.4/TkCmd/wm.htm - David On Tue, Dec 15, 2015 at 4:24 PM, Mario Rodriguez wrote: > > > El 15/12/15 a las 21:51, David Gobbi escribi?: > > Hi Mario, > > > Thanks for your kind and quick response. > > Tcl syntax a mixture of lisp and shell script. The code will look like > this: > > set line [chart AddPlot 0] > $line SetInputData table 0 2 > > > Now I see where I was wrong. I forgot the dollar symbol. > > After writing: > > [view GetRenderWindow] SetMultiSamples 0 > [view GetRenderWindow] Render > > where view was created by > > vtkContextView view > > I successfully get the expected plot. > > The problem now is how to close the window with a mouse click. Any hints? > > > Are you really sure that you want to use Tcl? > > > Yes, it is mandatory. We have the system Lisp -> Tcl -> Vtk for drawing 3D > scenes from Computer Algebra System Maxima: > > http://riotorto.users.sourceforge.net/vtk/ > > Tcl is a dependency to be satisfied by Maxima, which is also used for > other purposes. > > I am trying to know how far we can go with Vtk for plotting 2D scenes, in > order to extend the Maxima-Vtk interface. > > > Many of the VTK classes > and methods that you can use with Python cannot be used from Tcl, so > it might not even be possible to convert that example into working Tcl > code. You're welcome to try, though. > > - David > > > Thanks again for your help. > > -- > Mario > -------------- next part -------------- An HTML attachment was scrubbed... URL: From itkhelpacc at gmail.com Wed Dec 16 01:57:11 2015 From: itkhelpacc at gmail.com (vishal) Date: Tue, 15 Dec 2015 23:57:11 -0700 (MST) Subject: [vtkusers] Display 2d image and 3d Volume in the same render window Message-ID: <1450249031946-5735542.post@n5.nabble.com> Hi; im trying to display a 2d image and 2d volume in the same render window.. it should look something like the image attached with this mail ... it should be such that the 2d image and the 3d volume should have the same interactor (i.e. when the 2d image moves the 3d volume should also along with it... any suggestion is appreciated.. Regrads Vishal -- View this message in context: http://vtk.1045678.n5.nabble.com/Display-2d-image-and-3d-Volume-in-the-same-render-window-tp5735542.html Sent from the VTK - Users mailing list archive at Nabble.com. From lonni.besancon at gmail.com Wed Dec 16 03:50:19 2015 From: lonni.besancon at gmail.com (=?UTF-8?Q?Lonni_Besan=C3=A7on?=) Date: Wed, 16 Dec 2015 01:50:19 -0700 (MST) Subject: [vtkusers] Error in installing vtk5.10 In-Reply-To: <1864639965.192473.1450108458273.JavaMail.zimbra@psu.edu> References: <1864639965.192473.1450108458273.JavaMail.zimbra@psu.edu> Message-ID: <1450255819376-5735543.post@n5.nabble.com> Can you give more details of what you have done? Also, why do you want to install vtk5 in particular when vtk7 is already available? -- View this message in context: http://vtk.1045678.n5.nabble.com/Error-in-installing-vtk5-10-tp5735523p5735543.html Sent from the VTK - Users mailing list archive at Nabble.com. From yihui.cao at qq.com Wed Dec 16 04:49:05 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Wed, 16 Dec 2015 17:49:05 +0800 Subject: [vtkusers] Glow scale color lookup table Message-ID: Hi, Who knows how to make a glow scale color lookup table (RGB) by vtkColorTransferFunction? Or some materials about some commonly used color table? I know how to make a lookup table, but I dot know the right values that maps the scalar to RGB colors. Thanks for you help. Thanks Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.gomez at kcl.ac.uk Wed Dec 16 06:34:25 2015 From: alberto.gomez at kcl.ac.uk (Gomez, Alberto) Date: Wed, 16 Dec 2015 11:34:25 +0000 Subject: [vtkusers] trigger the execution of a vtkThreadedImageAlgorithm derived filter by calling Update() Message-ID: <56714C41.3080500@kcl.ac.uk> Hi all, I am trying to write a multithreaded filter (vtkMeanSSD), derived from vtkThreadedImageAlgorithm, which will calculate the mean value of the difference between the intensities of two images (mean SSD). What I want to achieve is that when I call Update() on my filter, the calculations occur and then I can retrieve the value by calling another method GetValue(). This is the snippet from my main file: vtkSmartPointer myfilter = vtkSmartPointer::New(); myfilter->SetInput1Data(im1); myfilter->SetInput2Data(im2); myfilter->Update(); double val = myfilter->GetValue(); // value is 0, which is the default by construction The problem I have is that when I call myfilter->Update() the filter is not executed. For some reason, it does execute if I plug it to a writer, for example vtkSmartPointer myfilter = vtkSmartPointer::New(); myfilter->SetInput1Data(im1); myfilter->SetInput2Data(im2); vtkSmartPointer writer =vtkSmartPointer::New(); writer->SetFileName("image_SSD.nii"); writer->SetInputConnection(myfilter->GetOutputPort()); writer->Write(); // This triggers the execution double val = myfilter->GetValue(); // good value Any advice how I can trigger the ThreadedRequestData method by calling update? Is there any other better way to achieve the functionality I want? Thanks for your help. The full filter code is below. Alberto ======================================= vtkMeanSSD.h ======================================= // .NAME vtkMeanSSD - Simple SSD image-image filter. // .SECTION Description // This calculates the mean sum of squared differences // 1/N*sum (a -b)^2 #ifndef vtkMeanSSD_h #define vtkMeanSSD_h #include "vtkImagingGeneralModule.h" // For export macro #include "vtkThreadedImageAlgorithm.h" class VTKIMAGINGGENERAL_EXPORT vtkMeanSSD : public vtkThreadedImageAlgorithm { public: static vtkMeanSSD *New(); vtkTypeMacro(vtkMeanSSD,vtkThreadedImageAlgorithm); // Description: // Set the two inputs to this filter virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); } virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); } // Description: // Get the metric value from the images. This is // computed when Update() is called. double GetValue() {return this->m_value;} protected: vtkMeanSSD(); ~vtkMeanSSD() {} virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId); double m_value; private: vtkMeanSSD(const vtkMeanSSD&); // Not implemented. void operator=(const vtkMeanSSD&); // Not implemented. }; #endif // VTK-HeaderTest-Exclude: vtkMeanSSD.h ======================================= vtkMeanSSD.cxx ======================================= #include "vtkMeanSSD.h" #include "vtkImageData.h" #include "vtkImageProgressIterator.h" #include "vtkInformation.h" #include "vtkInformationVector.h" #include "vtkObjectFactory.h" #include "vtkStreamingDemandDrivenPipeline.h" vtkStandardNewMacro(vtkMeanSSD); //---------------------------------------------------------------------------- vtkMeanSSD::vtkMeanSSD() { this->SetNumberOfInputPorts(2); this->m_value = 0; } //---------------------------------------------------------------------------- // This templated function executes the filter for any type of data. // Handles the two input operations template void vtkMeanSSDExecute(vtkMeanSSD *self, vtkImageData *in1Data, vtkImageData *in2Data, double *value, int outExt[6], int id, T *) { vtkImageIterator inIt1(in1Data, outExt); vtkImageIterator inIt2(in2Data, outExt); // find the region to loop over int N = in1Data->GetNumberOfPoints(); float val = 0; // sum (a -b)*(a-b) /// Calculate the average of each image while (!inIt1.IsAtEnd()) { T* inSI1 = inIt1.BeginSpan(); T* inSI2 = inIt2.BeginSpan(); T* inSI1End = inIt1.EndSpan(); while (inSI1 != inSI1End){ T v1 = static_cast(*inSI1); T v2 = static_cast(*inSI2); val += (v1-v2)*(v1-v2); ++inSI1; ++inSI2; } inIt1.NextSpan(); inIt2.NextSpan(); } val/=N; *value = val; } //---------------------------------------------------------------------------- // This method is passed a input and output regions, and executes the filter // algorithm to fill the output from the inputs. // It just executes a switch statement to call the correct function for // the regions data types. void vtkMeanSSD::ThreadedRequestData( vtkInformation * vtkNotUsed( request ), vtkInformationVector ** vtkNotUsed( inputVector ), vtkInformationVector * vtkNotUsed( outputVector ), vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) { // this filter expects that input is the same type as output. if (inData[0][0]->GetScalarType() != outData[0]->GetScalarType()) { vtkErrorMacro(<< "Execute: input1 ScalarType, " << inData[0][0]->GetScalarType() << ", must match output ScalarType " << outData[0]->GetScalarType()); return; } if (inData[1][0]->GetScalarType() != outData[0]->GetScalarType()) { vtkErrorMacro(<< "Execute: input2 ScalarType, " << inData[1][0]->GetScalarType() << ", must match output ScalarType " << outData[0]->GetScalarType()); return; } // this filter expects that inputs that have the same number of components if (inData[0][0]->GetNumberOfScalarComponents() != inData[1][0]->GetNumberOfScalarComponents()) { vtkErrorMacro(<< "Execute: input1 NumberOfScalarComponents, " << inData[0][0]->GetNumberOfScalarComponents() << ", must match out input2 NumberOfScalarComponents " << inData[1][0]->GetNumberOfScalarComponents()); return; } switch (inData[0][0]->GetScalarType()) { double d; vtkTemplateMacro( vtkMeanSSDExecute(this, inData[0][0], inData[1][0], &this->m_value, outExt, id, static_cast(0))); default: vtkErrorMacro(<< "Execute: Unknown ScalarType"); return; } } -- Dr Alberto Gomez Research Associate Department of Biomedical Engineering King's College London 020 7188 7188 ext 50871 4th North Wing St Thomas' Hospital SE1 7EH London, UK From aashish.chaudhary at kitware.com Wed Dec 16 10:16:10 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 16 Dec 2015 09:16:10 -0600 Subject: [vtkusers] Display 2d image and 3d Volume in the same render window In-Reply-To: <1450249031946-5735542.post@n5.nabble.com> References: <1450249031946-5735542.post@n5.nabble.com> Message-ID: <8ECBA058-2619-4716-8C8F-0D7D365E9514@kitware.com> Hi vishal, Do you want to grab the 2d image and move it in constrained environment? If you have both in the renderer they will move together. Have you tried any example? Sent from my iPhone > On Dec 16, 2015, at 12:57 AM, vishal wrote: > > Hi; > im trying to display a 2d image and 2d volume in the same render window.. it > should look something like the image attached with this mail > ... it should be > such that the 2d image and the 3d volume should have the same interactor > (i.e. when the 2d image moves the 3d volume should also along with it... any > suggestion is appreciated.. > Regrads > Vishal > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/Display-2d-image-and-3d-Volume-in-the-same-render-window-tp5735542.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers From ibr_ex at yahoo.com Wed Dec 16 12:54:49 2015 From: ibr_ex at yahoo.com (ibr) Date: Wed, 16 Dec 2015 10:54:49 -0700 (MST) Subject: [vtkusers] vtkrendering module In-Reply-To: <1450288246734-5735548.post@n5.nabble.com> References: <1450288246734-5735548.post@n5.nabble.com> Message-ID: <1450288489949-5735549.post@n5.nabble.com> Hi, I see that this question is here since January and yet no answer. I hope some one answer before next year :D. I have the same problem. I found this answer but I don't know how to use vtkRenderingOpenGL, or vtkRenderingQt. http://stackoverflow.com/questions/32565444/requested-modules-not-available-vtkrendering Regards, -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkrendering-module-tp5729977p5735549.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Wed Dec 16 13:06:06 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 16 Dec 2015 13:06:06 -0500 Subject: [vtkusers] vtkrendering module In-Reply-To: <1450288489949-5735549.post@n5.nabble.com> References: <1450288246734-5735548.post@n5.nabble.com> <1450288489949-5735549.post@n5.nabble.com> Message-ID: On Wed, Dec 16, 2015 at 12:54 PM, ibr via vtkusers wrote: > Hi, > I see that this question is here since January and yet no answer. I hope > some one answer > before next year :D. I have the same problem. I found this answer but I > don't know how to use vtkRenderingOpenGL, or vtkRenderingQt. > > > http://stackoverflow.com/questions/32565444/requested-modules-not-available-vtkrendering Oh :( .. did you see this document / wiki page: http://www.vtk.org/Wiki/VTK/Build_System_Migration - Aashish > > > Regards, > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkrendering-module-tp5729977p5735549.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Wed Dec 16 13:07:51 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Wed, 16 Dec 2015 13:07:51 -0500 Subject: [vtkusers] vtkrendering module In-Reply-To: <1450288489949-5735549.post@n5.nabble.com> References: <1450288246734-5735548.post@n5.nabble.com> <1450288489949-5735549.post@n5.nabble.com> Message-ID: Between vtk 5 and vtk 6 the vtkRendering module was split into several modules. My first attempt at fixing this would be to replace it with vtkRenderingCore and see if everything is still found. Unless you are doing something that extends the internals of the rendering code, you shouldn't need to worry about using vtkRenderingOpenGL (this is where the implementations live for vtkRenderingCore's abstract classes using the old OpenGL1 backend, but requiring vtkRenderingCore should pull this in as well). It sounds like that example is broken when building against modern VTK. Someone should fix it (I may get time later, if you want to, then go ahead). HTH, Shawn On Wed, Dec 16, 2015 at 12:54 PM, ibr via vtkusers wrote: > Hi, > I see that this question is here since January and yet no answer. I hope > some one answer > before next year :D. I have the same problem. I found this answer but I > don't know how to use vtkRenderingOpenGL, or vtkRenderingQt. > > > http://stackoverflow.com/questions/32565444/requested-modules-not-available-vtkrendering > > Regards, > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkrendering-module-tp5729977p5735549.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From biomates at telefonica.net Wed Dec 16 14:10:21 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Wed, 16 Dec 2015 20:10:21 +0100 Subject: [vtkusers] Trying to use vtkChartXY with Tcl In-Reply-To: References: <567077AB.3090804@telefonica.net> <5670A112.6060007@telefonica.net> Message-ID: <5671B71D.7050508@telefonica.net> El 16/12/15 a las 00:52, David Gobbi escribi?: > Hi Mario, > > The fact that you are using Tcl actually validates our continuing > support for Tcl, so in a way it is a good thing. > > The best way to get a fully-functional VTK window with Tcl is to > use Tk. Take a look at these two examples: > > Examples/GUI/Tcl/vtkTkRenderWidgetDemo.tcl > Examples/GUI/Tcl/MaceTk.tcl > > The MaceTk example provides a window close operation, using > this call to the window manager: > > wm protocol . WM_DELETE_WINDOW > > For more information, see the tk documentation, e.g.: > https://www.tcl.tk/man/tcl8.4/TkCmd/wm.htm > > - David > Dear David, I am very grateful for your help. This is the translation of TestLinePlot.py into tcl. I hope others will find this example useful: ############# START TCL (v. 6.3) ################# package require vtk package require vtkinteraction vtkChartXY chart vtkFloatArray arrX arrX SetName "X Axis" vtkFloatArray arrC arrC SetName "Cosine" vtkFloatArray arrS arrS SetName "Sine" vtkFloatArray arrS2 arrS2 SetName "Sine2" set numPoints 69 set inc [expr 7.5 / ($numPoints - 1)] for {set i 0} {$i<$numPoints} {incr i 1} { arrX InsertNextValue [expr $i * $inc] arrC InsertNextValue [expr cos($i * $inc) + 0.0] arrS InsertNextValue [expr sin($i * $inc) + 0.0] arrS2 InsertNextValue [expr sin($i * $inc) + 0.5] } vtkTable table table AddColumn arrX table AddColumn arrC table AddColumn arrS table AddColumn arrS2 set line [chart AddPlot 0] $line SetInputData table 0 1 $line SetColor 0 255 0 255 $line SetWidth 1.0 set line [chart AddPlot 0] $line SetInputData table 0 2 $line SetColor 255 0 0 255 $line SetWidth 5.0 set line [chart AddPlot 0] $line SetInputData table 0 3 $line SetColor 0 0 255 255 $line SetWidth 4.0 vtkContextView view [view GetRenderer] SetBackground 1.0 1.0 1.0 [view GetRenderWindow] SetSize 400 300 [view GetScene] AddItem chart [view GetRenderWindow] SetMultiSamples 0 vtkRenderWindowInteractor iren iren SetRenderWindow [view GetRenderWindow] iren Initialize iren AddObserver UserEvent {wm deiconify .vtkInteract} wm withdraw . iren Start ############# END TCL ################# This is a starting point for further work. Let the force be with you! -- Mario From devmail.andi at yahoo.de Wed Dec 16 17:38:15 2015 From: devmail.andi at yahoo.de (=?utf-8?Q?Andreas_Br=C3=BCning?=) Date: Wed, 16 Dec 2015 23:38:15 +0100 Subject: [vtkusers] 64Bit memory problems Message-ID: Hello, I developed a tool to perform different types of Volume Rendering for Windows plattform. The code is written in C++. I use Visual Studio 2013 and VTK 6.1. So far everything is developed in 32bit and works very well. Now i want to switch to 64 bit. I rebuilt VTK with CMake for 64Bit and set VTK_USE_64BIT_IDS. I checked some of the VTK examples and it works. But not in my project. As soon as i create a VTK object it seems that the objects memory is corrupted. The program crashes afterwards with memory access errors. The non VTK parts runs stabil. It is strange. For testing i create a vtkRenderWindow right after entering the main entrypoint. When i check the member the Interactor for example points to 0x000000000000001. That looks like corrupted memory because the interactor member is set to zero in the constructor. I don't know how to fix it, so maybe somebody had similar problems and knows what I have to do. Is there maybe a Project configuration which i should keep an eye of? I guess CMake is not the problem because the VTK examples with the same VTK dlls work perfect. Please help me and thanks in advance Andi From nico.schloemer at gmail.com Wed Dec 16 20:23:46 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Thu, 17 Dec 2015 01:23:46 +0000 Subject: [vtkusers] vtkUnstructuredGridWriter only stores 6 digits? Message-ID: Hi everyone, with ``` import numpy import vtk from vtk.util import numpy_support mesh = vtk.vtkUnstructuredGrid() # add points to mesh points = numpy.array([ [0.123456789, 3.14159265, 0.0] ]) vtk_points = vtk.vtkPoints() vtk_array = numpy_support.numpy_to_vtk(points) vtk_points.SetData(vtk_array) mesh.SetPoints(vtk_points) # write to VTK writer = vtk.vtkUnstructuredGridWriter() writer.SetFileTypeToASCII() writer.SetFileName('test.vtk') writer.SetInputData(mesh) writer.Write() ``` I noticed that, although the `point` is given with some precision, the output `test.vtk` file only contains 6 digits of accuracy, ``` 0.123457 3.14159 0 ``` The numpy data type hosts 8 digits. Is this a bug or expected? How to mitigate? Cheers, Nico -------------- next part -------------- An HTML attachment was scrubbed... URL: From yihui.cao at qq.com Thu Dec 17 02:59:45 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Thu, 17 Dec 2015 15:59:45 +0800 Subject: [vtkusers] unresolved external symbols "vtkMesaVolumeTextureMapper2D" Message-ID: Hi, When I test a sample of vtkVolumeTextureMapper2D, the project is OK. But when it replaced by its subclass vtkMesaVolumeTextureMapper2D. It makes a build error: unresolved external symbols "vtkMesaVolumeTextureMapper2D". Where is the problem? Dose it in cmake file or the VTK library setting? My VTK version is 5.10.1. Thanks Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From itkhelpacc at gmail.com Thu Dec 17 04:28:38 2015 From: itkhelpacc at gmail.com (vishal) Date: Thu, 17 Dec 2015 02:28:38 -0700 (MST) Subject: [vtkusers] Display 2d image and 3d Volume in the same render window In-Reply-To: <8ECBA058-2619-4716-8C8F-0D7D365E9514@kitware.com> References: <1450249031946-5735542.post@n5.nabble.com> <8ECBA058-2619-4716-8C8F-0D7D365E9514@kitware.com> Message-ID: <1450344518432-5735562.post@n5.nabble.com> hi aashish, Im working on an 2d/3d overlay project...im running an algorithm in ITK that gives a transform matrix as output... i want to apply this output to the 3d volume... my main goal is to place the 3D image (with some intial transform) over the 2D xray image and rotate 3D volume (keeping the 2D image steady) such that the 2D image and 3D volume appear to be aligned.... yes i have tried the examples and as u have said both the volume as well as the 2D image move together..a the moment im trying another example called "Layered renderers" from wiki.. but the same issue persists... should i set some parameter like the interactor "off"? please advice... regards Vishal -- View this message in context: http://vtk.1045678.n5.nabble.com/Display-2d-image-and-3d-Volume-in-the-same-render-window-tp5735542p5735562.html Sent from the VTK - Users mailing list archive at Nabble.com. From nico.schloemer at gmail.com Thu Dec 17 05:40:54 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Thu, 17 Dec 2015 10:40:54 +0000 Subject: [vtkusers] vtkUnstructuredGridWriter only stores 6 digits? In-Reply-To: References: Message-ID: This smells very much like the vtk_array data being interpreted as single precision even though ``` Data type: double ``` Cheers, Nico On Thu, Dec 17, 2015 at 2:23 AM Nico Schl?mer wrote: > Hi everyone, > > with > ``` > import numpy > import vtk > from vtk.util import numpy_support > > mesh = vtk.vtkUnstructuredGrid() > > # add points to mesh > points = numpy.array([ > [0.123456789, 3.14159265, 0.0] > ]) > vtk_points = vtk.vtkPoints() > vtk_array = numpy_support.numpy_to_vtk(points) > vtk_points.SetData(vtk_array) > mesh.SetPoints(vtk_points) > > # write to VTK > writer = vtk.vtkUnstructuredGridWriter() > writer.SetFileTypeToASCII() > writer.SetFileName('test.vtk') > writer.SetInputData(mesh) > writer.Write() > ``` > I noticed that, although the `point` is given with some precision, the > output `test.vtk` file only contains 6 digits of accuracy, > ``` > 0.123457 3.14159 0 > ``` > The numpy data type hosts 8 digits. > > Is this a bug or expected? How to mitigate? > > Cheers, > Nico > -------------- next part -------------- An HTML attachment was scrubbed... URL: From alberto.gomez at kcl.ac.uk Thu Dec 17 05:50:12 2015 From: alberto.gomez at kcl.ac.uk (Gomez, Alberto) Date: Thu, 17 Dec 2015 10:50:12 +0000 Subject: [vtkusers] trigger the execution of a vtkThreadedImageAlgorithm derived filter by calling Update() In-Reply-To: <56714C41.3080500@kcl.ac.uk> References: <56714C41.3080500@kcl.ac.uk> Message-ID: <56729364.1020907@kcl.ac.uk> Hi all, I just fixed it. The problem was that I needed to run Update() on the image source filters. So my previous code does execute. There was a bug though: I was trying to calculate a number (the SSD value) by combining the value obtained from each thread. To achieve this, My previous code has to be changed to the code below. The main issue was when to define the return value, how to add return values from multiple threads and dealing with mutual exclusion. I would appreciate if someone has a link to a user guide for implementing these sort of filters in a more efficient way. Regards, Alberto ------------------------------------------- CORRECTED CODE ---------------------------------------------- ======================================= vtkMeanSSD.h ======================================= #ifndef vtkMeanSSD_h #define vtkMeanSSD_h #include "vtkImagingGeneralModule.h" // For export macro #include "vtkThreadedImageAlgorithm.h" #include class VTKIMAGINGGENERAL_EXPORT vtkMeanSSD : public vtkThreadedImageAlgorithm { public: static vtkMeanSSD *New(); vtkTypeMacro(vtkMeanSSD,vtkThreadedImageAlgorithm); // Description: // Set the two inputs to this filter virtual void SetInput1Data(vtkDataObject *in) { this->SetInputData(0,in); } virtual void SetInput2Data(vtkDataObject *in) { this->SetInputData(1,in); } // Description: // Get the metric value from the images. This is // computed when Update() is called. double GetValue() {return this->m_value;} protected: vtkMeanSSD(); ~vtkMeanSSD() { this->m_outputLock->Delete();} virtual void ThreadedRequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector, vtkImageData ***inData, vtkImageData **outData, int extent[6], int threadId); //virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); double m_value; private: vtkMeanSSD(const vtkMeanSSD&); // Not implemented. void operator=(const vtkMeanSSD&); // Not implemented. vtkMutexLock* m_outputLock; }; #endif ======================================= vtkMeanSSD.cxx ======================================= #include "vtkMeanSSD.h" #include "vtkImageData.h" #include "vtkImageProgressIterator.h" #include "vtkInformation.h" #include "vtkInformationVector.h" #include "vtkObjectFactory.h" #include "vtkStreamingDemandDrivenPipeline.h" vtkStandardNewMacro(vtkMeanSSD); //---------------------------------------------------------------------------- vtkMeanSSD::vtkMeanSSD() { this->SetNumberOfInputPorts(2); this->m_value = 0; this->m_outputLock = vtkMutexLock::New(); } //---------------------------------------------------------------------------- // This templated function executes the filter for any type of data. // Handles the two input operations template void vtkMeanSSDExecute(vtkMeanSSD *self, vtkImageData *in1Data, vtkImageData *in2Data, double *value, int outExt[6], int id, T *) { vtkImageIterator inIt1(in1Data, outExt); vtkImageIterator inIt2(in2Data, outExt); // find the region to loop over int N = in1Data->GetNumberOfPoints(); float val = 0; // sum (a -b)*(a-b) /// Calculate the average of each image while (!inIt1.IsAtEnd()) { T* inSI1 = inIt1.BeginSpan(); T* inSI2 = inIt2.BeginSpan(); T* inSI1End = inIt1.EndSpan(); while (inSI1 != inSI1End){ T v1 = static_cast(*inSI1); T v2 = static_cast(*inSI2); val += (v1-v2)*(v1-v2); ++inSI1; ++inSI2; } inIt1.NextSpan(); inIt2.NextSpan(); } val/=N; *value = val; } //---------------------------------------------------------------------------- // This method is passed a input and output regions, and executes the filter // algorithm to fill the output from the inputs. // It just executes a switch statement to call the correct function for // the regions data types. void vtkMeanSSD::ThreadedRequestData( vtkInformation * vtkNotUsed( request ), vtkInformationVector ** vtkNotUsed( inputVector ), vtkInformationVector * vtkNotUsed( outputVector ), vtkImageData ***inData, vtkImageData **outData, int outExt[6], int id) { int N = this->GetNumberOfThreads(); // this filter expects that inputs that have the same number of components if (inData[0][0]->GetNumberOfScalarComponents() != inData[1][0]->GetNumberOfScalarComponents()) { vtkErrorMacro(<< "Execute: input1 NumberOfScalarComponents, " << inData[0][0]->GetNumberOfScalarComponents() << ", must match out input2 NumberOfScalarComponents " << inData[1][0]->GetNumberOfScalarComponents()); return; } double d; switch (inData[0][0]->GetScalarType()) { vtkTemplateMacro(vtkMeanSSDExecute(this, inData[0][0], inData[1][0], &d, outExt, id, static_cast(0))); default: vtkErrorMacro(<< "Execute: Unknown ScalarType"); return; } this->m_outputLock->Lock(); this->m_value +=d/N; this->m_outputLock->Unlock(); } /* //---------------------------------------------------------------------------- int vtkMeanSSD::RequestData( vtkInformation* request, vtkInformationVector** inputVector, vtkInformationVector* outputVector) { // vtkInformation* inInfo = inputVector[0]->GetInformationObject(0); vtkInformation* outInfo = outputVector->GetInformationObject(0); //vtkImageData *inData = vtkImageData::SafeDownCast(inInfo->Get(vtkDataObject::DATA_OBJECT())); vtkImageData *outData = vtkImageData::SafeDownCast(outInfo->Get(vtkDataObject::DATA_OBJECT())); // force reallocation of the scalars outData->GetPointData()->SetScalars(NULL); // Allocate the output data outData->SetExtent(outInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())); outData->AllocateScalars(outInfo); if (outData->GetScalarType() != VTK_FLOAT && outData->GetScalarType() != VTK_DOUBLE) { vtkErrorMacro(<< "Execute: output data must be be type float or double."); return 0; } // We are about to call superclass' RequestData which allocates output // based on the update extent. However, we want the output to be the // whole extent. So we temprarily override the update extent to be // the whole extent. int extentcache[6]; memcpy(extentcache, outInfo->Get(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT()),6*sizeof(int)); outInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),outInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT()), 6); // execute over the three directions for (int i = 0; i < 3; i++) { this->Iteration = i; if (ie[2*i+1] > ie[2*i]) { if (!this->vtkThreadedImageAlgorithm::RequestData(request, &outputVector, outputVector)) { return 0; } } } // Restore update extent outInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(),extentcache,6); return 1; } */ On 16/12/15 11:34, Gomez, Alberto wrote: > Hi all, > > I am trying to write a multithreaded filter (vtkMeanSSD), derived from > vtkThreadedImageAlgorithm, which will calculate the mean value of the > difference between the intensities of two images (mean SSD). > > What I want to achieve is that when I call Update() on my filter, the > calculations occur and then I can retrieve the value by calling > another method GetValue(). This is the snippet from my main file: > > > vtkSmartPointer myfilter = > vtkSmartPointer::New(); > myfilter->SetInput1Data(im1); > myfilter->SetInput2Data(im2); > myfilter->Update(); > double val = myfilter->GetValue(); // value is 0, which is the default > by construction > > The problem I have is that when I call myfilter->Update() the filter > is not executed. For some reason, it does execute if I plug it to a > writer, for example > > > vtkSmartPointer myfilter = > vtkSmartPointer::New(); > myfilter->SetInput1Data(im1); > myfilter->SetInput2Data(im2); > > vtkSmartPointer writer > =vtkSmartPointer::New(); > writer->SetFileName("image_SSD.nii"); > writer->SetInputConnection(myfilter->GetOutputPort()); > writer->Write(); // This triggers the execution > double val = myfilter->GetValue(); // good value > > Any advice how I can trigger the ThreadedRequestData method by calling > update? Is there any other better way to achieve the functionality I > want? > > Thanks for your help. The full filter code is below. > > Alberto > > > > > ======================================= vtkMeanSSD.h > ======================================= > > > // .NAME vtkMeanSSD - Simple SSD image-image filter. > // .SECTION Description > // This calculates the mean sum of squared differences > // 1/N*sum (a -b)^2 > > > #ifndef vtkMeanSSD_h > #define vtkMeanSSD_h > > #include "vtkImagingGeneralModule.h" // For export macro > #include "vtkThreadedImageAlgorithm.h" > > class VTKIMAGINGGENERAL_EXPORT vtkMeanSSD : public > vtkThreadedImageAlgorithm > { > public: > > > static vtkMeanSSD *New(); > vtkTypeMacro(vtkMeanSSD,vtkThreadedImageAlgorithm); > > > // Description: > // Set the two inputs to this filter > virtual void SetInput1Data(vtkDataObject *in) { > this->SetInputData(0,in); } > virtual void SetInput2Data(vtkDataObject *in) { > this->SetInputData(1,in); } > > // Description: > // Get the metric value from the images. This is > // computed when Update() is called. > double GetValue() {return this->m_value;} > > > protected: > > vtkMeanSSD(); > ~vtkMeanSSD() {} > > virtual void ThreadedRequestData(vtkInformation *request, > vtkInformationVector **inputVector, > vtkInformationVector *outputVector, > vtkImageData ***inData, > vtkImageData **outData, > int extent[6], int threadId); > > double m_value; > > private: > > vtkMeanSSD(const vtkMeanSSD&); // Not implemented. > void operator=(const vtkMeanSSD&); // Not implemented. > > > }; > > #endif > > > > > > > > // VTK-HeaderTest-Exclude: vtkMeanSSD.h > > > ======================================= vtkMeanSSD.cxx > ======================================= > > > #include "vtkMeanSSD.h" > > #include "vtkImageData.h" > #include "vtkImageProgressIterator.h" > #include "vtkInformation.h" > #include "vtkInformationVector.h" > #include "vtkObjectFactory.h" > #include "vtkStreamingDemandDrivenPipeline.h" > > vtkStandardNewMacro(vtkMeanSSD); > > //---------------------------------------------------------------------------- > > vtkMeanSSD::vtkMeanSSD() > { > this->SetNumberOfInputPorts(2); > this->m_value = 0; > } > > > //---------------------------------------------------------------------------- > > // This templated function executes the filter for any type of data. > // Handles the two input operations > template > void vtkMeanSSDExecute(vtkMeanSSD *self, > vtkImageData *in1Data, > vtkImageData *in2Data, > double *value, > int outExt[6], int id, T *) > { > vtkImageIterator inIt1(in1Data, outExt); > vtkImageIterator inIt2(in2Data, outExt); > > // find the region to loop over > int N = in1Data->GetNumberOfPoints(); > float val = 0; > > // sum (a -b)*(a-b) > /// Calculate the average of each image > > while (!inIt1.IsAtEnd()) > { > T* inSI1 = inIt1.BeginSpan(); > T* inSI2 = inIt2.BeginSpan(); > T* inSI1End = inIt1.EndSpan(); > > while (inSI1 != inSI1End){ > > T v1 = static_cast(*inSI1); > T v2 = static_cast(*inSI2); > val += (v1-v2)*(v1-v2); > ++inSI1; > ++inSI2; > } > inIt1.NextSpan(); > inIt2.NextSpan(); > } > val/=N; > > *value = val; > > } > > > > //---------------------------------------------------------------------------- > > // This method is passed a input and output regions, and executes the > filter > // algorithm to fill the output from the inputs. > // It just executes a switch statement to call the correct function for > // the regions data types. > void vtkMeanSSD::ThreadedRequestData( > vtkInformation * vtkNotUsed( request ), > vtkInformationVector ** vtkNotUsed( inputVector ), > vtkInformationVector * vtkNotUsed( outputVector ), > vtkImageData ***inData, > vtkImageData **outData, > int outExt[6], int id) > { > // this filter expects that input is the same type as output. > if (inData[0][0]->GetScalarType() != outData[0]->GetScalarType()) > { > vtkErrorMacro(<< "Execute: input1 ScalarType, " > << inData[0][0]->GetScalarType() > << ", must match output ScalarType " > << outData[0]->GetScalarType()); > return; > } > > if (inData[1][0]->GetScalarType() != outData[0]->GetScalarType()) > { > vtkErrorMacro(<< "Execute: input2 ScalarType, " > << inData[1][0]->GetScalarType() > << ", must match output ScalarType " > << outData[0]->GetScalarType()); > return; > } > > // this filter expects that inputs that have the same number of > components > if (inData[0][0]->GetNumberOfScalarComponents() != > inData[1][0]->GetNumberOfScalarComponents()) > { > vtkErrorMacro(<< "Execute: input1 NumberOfScalarComponents, " > << inData[0][0]->GetNumberOfScalarComponents() > << ", must match out input2 NumberOfScalarComponents " > << inData[1][0]->GetNumberOfScalarComponents()); > return; > } > > switch (inData[0][0]->GetScalarType()) > { > double d; > vtkTemplateMacro( > vtkMeanSSDExecute(this, inData[0][0], > inData[1][0], &this->m_value, outExt, id, > static_cast(0))); > default: > vtkErrorMacro(<< "Execute: Unknown ScalarType"); > return; > } > } > -- Dr Alberto Gomez Research Associate Department of Biomedical Engineering King's College London 020 7188 7188 ext 50871 4th North Wing St Thomas' Hospital SE1 7EH London, UK From richard.j.brown at live.co.uk Thu Dec 17 06:58:27 2015 From: richard.j.brown at live.co.uk (mbcx9rb9) Date: Thu, 17 Dec 2015 04:58:27 -0700 (MST) Subject: [vtkusers] vtkFastSplatter broken? Message-ID: <1450353507849-5735566.post@n5.nabble.com> Hi all, I was hoping to use vtkFastSplatter so I took a look at the test. However, it doesn't work how I expected (or how it should, I think). The example places 5 splatters at various coordinates. But I can't control the position of those splats. If I comment out all but the first splat and then change the coordinates, it doesn't move! Below is the relevant code, can someone confirm that if they change point[0] and point[1], nothing happens? Then, try adding in a second splat (remember to change Points->SetNumberOfPoints( 1 ) to 2), changing its coordinates and observe that weird things start happening... /* * Copyright 2004 Sandia Corporation. * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive * license for use of this work by or on behalf of the * U.S. Government. Redistribution and use in source and binary forms, with * or without modification, are permitted provided that this Notice and any * statement of authorship are reproduced on all copies. */ // Simple test of vtkFastSplatter #include "vtkImageData.h" #include "vtkImageShiftScale.h" #include "vtkFastSplatter.h" #include "vtkImageViewer2.h" #include "vtkPoints.h" #include "vtkPolyData.h" #include "vtkRenderer.h" #include "vtkRenderWindow.h" #include "vtkRenderWindowInteractor.h" #include "vtkSmartPointer.h" #define VTK_CREATE(type, name) \ vtkSmartPointer name = vtkSmartPointer::New() #include const int SPLAT_IMAGE_SIZE = 100; int main(int, char *[]) { // For the purposes of this example we'll build the splat image by // hand. VTK_CREATE(vtkImageData, SplatImage); SplatImage->SetDimensions(SPLAT_IMAGE_SIZE, SPLAT_IMAGE_SIZE, 1); SplatImage->AllocateScalars(VTK_FLOAT, 1); for (int i = 0; i < SPLAT_IMAGE_SIZE; ++i) { for (int j = 0; j < SPLAT_IMAGE_SIZE; ++j) { double xCoord = 1 - fabs( (i - SPLAT_IMAGE_SIZE/2) / (SPLAT_IMAGE_SIZE/2.0) ); double yCoord = 1 - fabs( (j - SPLAT_IMAGE_SIZE/2) / (SPLAT_IMAGE_SIZE/2.0) ); SplatImage->SetScalarComponentFromDouble(i, j, 0, 0, xCoord * yCoord ); } } VTK_CREATE(vtkPolyData, SplatPoints); VTK_CREATE(vtkPoints, Points); Points->SetNumberOfPoints( 1 ); double point[3]; point[0] = 0; point[1] = 0; point[2] = 0; Points->SetPoint( 0, point ); /* point[0] = 1; point[1] = 0; point[2] = 0; Points->SetPoint( 1, point ); point[0] = -1; point[1] = 1; point[2] = 0; Points->SetPoint( 2, point ); point[0] = 1; point[1] = -1; point[2] = 0; Points->SetPoint( 3, point ); point[0] = -1; point[1] = -1; point[2] = 0; Points->SetPoint( 4, point ); */ SplatPoints->SetPoints(Points); VTK_CREATE(vtkFastSplatter, splatter); splatter->SetInputData( SplatPoints ); splatter->SetOutputDimensions( 2*SPLAT_IMAGE_SIZE, 2*SPLAT_IMAGE_SIZE, 1 ); splatter->SetInputData(1, SplatImage ); // The image viewers and writers are only happy with unsigned char // images. This will convert the floats into that format. VTK_CREATE(vtkImageShiftScale, resultScale); resultScale->SetOutputScalarTypeToUnsignedChar(); resultScale->SetShift(0); resultScale->SetScale(255); resultScale->SetInputConnection( splatter->GetOutputPort() ); splatter->Update(); resultScale->Update(); // Set up a viewer for the image. vtkImageViewer and // vtkImageViewer2 are convenient wrappers around vtkActor2D, // vtkImageMapper, vtkRenderer, and vtkRenderWindow. All you need // to supply is the interactor and hooray, Bob's your uncle. VTK_CREATE(vtkImageViewer2, ImageViewer); ImageViewer->SetInputConnection( resultScale->GetOutputPort() ); ImageViewer->SetColorLevel(127); ImageViewer->SetColorWindow(255); VTK_CREATE(vtkRenderWindowInteractor, iren); ImageViewer->SetupInteractor(iren); ImageViewer->Render(); ImageViewer->GetRenderer()->ResetCamera(); iren->Initialize(); ImageViewer->Render(); iren->Start(); return EXIT_SUCCESS; } -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkFastSplatter-broken-tp5735566.html Sent from the VTK - Users mailing list archive at Nabble.com. From loiseau at mech.kth.se Thu Dec 17 08:45:51 2015 From: loiseau at mech.kth.se (Jean-Christophe) Date: Thu, 17 Dec 2015 14:45:51 +0100 Subject: [vtkusers] python: GetNumberOfScalarsInFile identify only one scalar instead of four in binary Legacy vtk Message-ID: <5672BC8F.4000601@mech.kth.se> Hej, I have tried to look through the archives of the mailing-list but couldn't find an answer to my problem. A colleague of mine gave me a bunch of binary Legacy vtk files. They are structured points with 4 scalars. Here is how I try to read them in python import numpy as np import vtk reader = vtk.vtkStructuredPointReader() reader.SetFileName(filename) reader.ReadAllScalarsOn() reader.Update() reader.GetNumberOfScalarsInFile() When I execute the last command, it returns that there is only one single scalar in my file though I actually have four of them. Would anyone have an idea of what is going on and how I could fix this? Regards, JC -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Dec 17 09:47:42 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 17 Dec 2015 09:47:42 -0500 Subject: [vtkusers] python: GetNumberOfScalarsInFile identify only one scalar instead of four in binary Legacy vtk In-Reply-To: <5672BC8F.4000601@mech.kth.se> References: <5672BC8F.4000601@mech.kth.se> Message-ID: Instead of GetNumberOfScalarsInFile() try reader.GetOutput().GetPointData().GetNumberOfArrays() and GetCellData().GetNumberOfArrays(). You can also get the number of single component arrays. In VTK the scalar designation (see vtkDataSetAttributes) is sort of an anachronism. The "Active" Scalar array designation marks one array as the default that filters will operate on if they aren't told specifically what array to work with. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Dec 17, 2015 at 8:45 AM, Jean-Christophe wrote: > Hej, > > I have tried to look through the archives of the mailing-list but couldn't > find an answer to my problem. > > A colleague of mine gave me a bunch of binary Legacy vtk files. They are > structured points with 4 scalars. Here is how I try to read them in python > > import numpy as np > import vtk > > reader = vtk.vtkStructuredPointReader() > reader.SetFileName(filename) > reader.ReadAllScalarsOn() > reader.Update() > reader.GetNumberOfScalarsInFile() > > > When I execute the last command, it returns that there is only one single > scalar in my file though I actually have four of them. Would anyone have an > idea of what is going on and how I could fix this? > > Regards, > JC > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ibr_ex at yahoo.com Thu Dec 17 10:57:06 2015 From: ibr_ex at yahoo.com (ibr) Date: Thu, 17 Dec 2015 08:57:06 -0700 (MST) Subject: [vtkusers] vtkrendering module In-Reply-To: References: <1450288246734-5735548.post@n5.nabble.com> <1450288489949-5735549.post@n5.nabble.com> Message-ID: <1450367826159-5735569.post@n5.nabble.com> wow the link solve the problem, thanks a lot. It looks like we need to use different cmake statements e.g. instead of this: find_package(VTK COMPONENTS vtkFiltersSources vtkInteractionStyle vtkRendering${VTK_RENDERING_BACKEND} ) we should use this: find_package(VTK 6.0 REQUIRED NO_MODULE) -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkrendering-module-tp5729977p5735569.html Sent from the VTK - Users mailing list archive at Nabble.com. From sendtomatteo at yahoo.it Thu Dec 17 11:20:15 2015 From: sendtomatteo at yahoo.it (Matteo) Date: Thu, 17 Dec 2015 17:20:15 +0100 Subject: [vtkusers] Texture and Clamp Message-ID: <5672E0BF.3010709@yahoo.it> Hi I have some problems with textures. Looking to this address ( https://open.gl/textures ), especially looking at the first 4 images, I found that it is possible to 'cut' the texture exactly at the end of the (S/T) range (0-1). I am referring to the graphic result obtained with "GL_CLAMP_TO_BORDER", that it is probably exactly what I need. The problem is that I always get a result like "GL_CLAMP_TO_EDGE" Of course I use RepeatOff(), but then trying EdgeClampOff()/EdgeClampOn() I can not see any change. Is it a problem related to my graphic card (GEFORCE 310M) or it is normal to have this behaviour? Thanks Matteo -------------- next part -------------- An HTML attachment was scrubbed... URL: From ns451 at srcf.net Thu Dec 17 12:11:54 2015 From: ns451 at srcf.net (Nishad Sohoni) Date: Thu, 17 Dec 2015 17:11:54 +0000 Subject: [vtkusers] vtkUnstructuredGridWriter only stores 6 digits? In-Reply-To: References: Message-ID: <5672ECDA.7040307@srcf.net> Hi Nico, I can confirm that I see the same behavior. I added the following lines to the end of your script: ''' rdr = vtk.vtkUnstructuredGridReader() rdr.SetFileName('test.vtk') rdr.Update() loc = rdr.GetOutput() pts = numpy_support.vtk_to_numpy( loc.GetPoints().GetData() ) print pts print pts.dtype ''' and regardless of whether I called writer.SetFileTypeToASCII(), the dtype was always float64, but there was a loss in precision. If you can get away with writing a binary file, might I suggest using vtkXMLUnstructuredGridWriter? With the above code, python printed with the correct precision and dtype (obviously changing to vtkXMLUnstructuredGridReader). Cheers, Nishad. On 17/12/2015 10:40, Nico Schl?mer wrote: > This smells very much like the vtk_array data being interpreted as > single precision even though > ``` > Data type: double > ``` > Cheers, > Nico > > On Thu, Dec 17, 2015 at 2:23 AM Nico Schl?mer > > wrote: > > Hi everyone, > > with > ``` > import numpy > import vtk > from vtk.util import numpy_support > > mesh = vtk.vtkUnstructuredGrid() > > # add points to mesh > points = numpy.array([ > [0.123456789, 3.14159265, 0.0] > ]) > vtk_points = vtk.vtkPoints() > vtk_array = numpy_support.numpy_to_vtk(points) > vtk_points.SetData(vtk_array) > mesh.SetPoints(vtk_points) > > # write to VTK > writer = vtk.vtkUnstructuredGridWriter() > writer.SetFileTypeToASCII() > writer.SetFileName('test.vtk') > writer.SetInputData(mesh) > writer.Write() > ``` > I noticed that, although the `point` is given with some precision, > the output `test.vtk` file only contains 6 digits of accuracy, > ``` > 0.123457 3.14159 0 > ``` > The numpy data type hosts 8 digits. > > Is this a bug or expected? How to mitigate? > > Cheers, > Nico > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From nico.schloemer at gmail.com Thu Dec 17 14:38:49 2015 From: nico.schloemer at gmail.com (=?UTF-8?Q?Nico_Schl=C3=B6mer?=) Date: Thu, 17 Dec 2015 19:38:49 +0000 Subject: [vtkusers] vtkUnstructuredGridWriter only stores 6 digits? In-Reply-To: <5672ECDA.7040307@srcf.net> References: <5672ECDA.7040307@srcf.net> Message-ID: Thanks Nishad for the confirmation. I've filed a bug over at Mantis [1]. Cheers, Nico [1] http://www.vtk.org/Bug/view.php?id=15889 On Thu, Dec 17, 2015 at 6:39 PM Nishad Sohoni wrote: > Hi Nico, > > I can confirm that I see the same behavior. I added the following lines to > the end of your script: > > ''' > rdr = vtk.vtkUnstructuredGridReader() > rdr.SetFileName('test.vtk') > rdr.Update() > loc = rdr.GetOutput() > pts = numpy_support.vtk_to_numpy( loc.GetPoints().GetData() ) > print pts > print pts.dtype > ''' > and regardless of whether I called writer.SetFileTypeToASCII(), the dtype > was always float64, but there was a loss in precision. > > If you can get away with writing a binary file, might I suggest using > vtkXMLUnstructuredGridWriter? With the above code, python printed with the > correct precision and dtype (obviously changing to > vtkXMLUnstructuredGridReader). > > Cheers, > Nishad. > > > > On 17/12/2015 10:40, Nico Schl?mer wrote: > > This smells very much like the vtk_array data being interpreted as single > precision even though > ``` > Data type: double > ``` > Cheers, > Nico > > On Thu, Dec 17, 2015 at 2:23 AM Nico Schl?mer > wrote: > >> Hi everyone, >> >> with >> ``` >> import numpy >> import vtk >> from vtk.util import numpy_support >> >> mesh = vtk.vtkUnstructuredGrid() >> >> # add points to mesh >> points = numpy.array([ >> [0.123456789, 3.14159265, 0.0] >> ]) >> vtk_points = vtk.vtkPoints() >> vtk_array = numpy_support.numpy_to_vtk(points) >> vtk_points.SetData(vtk_array) >> mesh.SetPoints(vtk_points) >> >> # write to VTK >> writer = vtk.vtkUnstructuredGridWriter() >> writer.SetFileTypeToASCII() >> writer.SetFileName('test.vtk') >> writer.SetInputData(mesh) >> writer.Write() >> ``` >> I noticed that, although the `point` is given with some precision, the >> output `test.vtk` file only contains 6 digits of accuracy, >> ``` >> 0.123457 3.14159 0 >> ``` >> The numpy data type hosts 8 digits. >> >> Is this a bug or expected? How to mitigate? >> >> Cheers, >> Nico >> > > _______________________________________________ > 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:http://public.kitware.com/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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Dec 17 14:39:15 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 17 Dec 2015 14:39:15 -0500 Subject: [vtkusers] Announce: vtk 7.0.0 release candidate 1 is ready Message-ID: The VTK developement team is happy to announce that VTK 7.0 has entered the release candidate stage! You can find the source, data, and vtkpython binary packages here: http://www.vtk.org/download/#candidate Please try this version of VTK and report any issues to the list or the bug tracker so that we can try to address them before VTK 7.0.0 final. The official release notes will be available when VTK final is released in the next few weeks. In the meantime here is a preview: The big news is that the OpenGL"new" backend is now the default and that VTK is for the first time compatible with Python 3. Other new functionality includes: - the introduction of the Flying Edges SMP optimized (very fast) isocontour filter - a new and improved vtkPUnstructuredGridGhostCells filter that efficiently creates ghost cells in DMP parallel contexts. - allow the Python Global Interpreter Lock (GIL) for multithreaded Python routines - offscreen rendering through EGL now supported - remove vtkFreeTypeUtilities Improvements to existing functionality includes: - optimizations to the Contingency Statistics class which provides a significant performance boost when using only integer or floating point data - improved MPAS file handling including including arbitrary vertical dimensions and more general attribute reading - modernize depth sorting code. In tests the improved depth sort is 2 to 3x faster than before. - fixes to the ExodusWriter, especially when handling side sets and node set data. - updates to the PLY Writer Some of the changes that affect building and using VTK in applications include: - the OpenGL2 backend requires newer rendering capabilities than its predecessor - QtWebKit is no longer part of the Qt build group and thus easier to do without - vtkStreamer and related classes are deprecated; use vtkStreamTracer instead. - a new option (when building with newer CMake) to build with C++11 support - add support for Visual Studio 2015 - Java 1.6 is now the minimum version that is tested; 1.5 may not work - remove support for OSX10.5 Leopard and the Carbon (OSX9 compatibility layer) API - remove support for gcc 4.1 And many bug fixes across the codebase. We hope you enjoy this release of VTK! As always, contact Kitware and the mailing lists for assistance. Thanks, David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- Aashish Chaudhary (27): 84e69fd Some more style fixes dae6f71 Initial pass on supporting render to texture for volume rendering 53bba21 Writing computed depth values to a second color attachment 603d923 Export alpha channel and single component depth texture c2cd9fb Use unsigned char data type for image data 9f7027e Removed debug code 2a22829 Moved render to texture API to base class 6694a0f Fixed failing test 6d4ab07 Use first non-transparent fragment pos for depth buffer 66cd7a0 Wrapped long lines f1b6992 Fixed global variable declaration ce8fd4d Do not write depth value if we need to skip a fragment ab28eee Update textures and buffers appropriately in case of resize 38a59e4 Fixed uninitialized values d9135ba Fixed ReleaseGraphicsResources not getting called for offscreen window 7f7d257 Compute min and max texture extents a cell centers 98abc34 Updated baselines 72bd268 Use cell flag to compute texture coordinates 506f7e2 Fixed bad texture coordinates when dealing with negative spacing e4ff7f8 Fixed style issues 6fca375 Fixed bad first sample along the ray and added notes d481678 Silence texture internal format related messages e8fc081 Fixed volume rendering in parallel mode for IR > 1 fb6c2ee Fixed matrix data sent to the shader e6bdf65 Fixed logic for reduction factor 3cbb252 Initialize variables to reasonable defaults d22bed5 Fixed some more compiler warnings Alex Tsui (2): a98c952 Port PyQt4 QVTKRenderWindowInteractor to PyQt5. 1cea85a Add qt5 module Alexis Girault (2): 707fac6 Fix bug 15787 : empty vtkCornerAnnotation text renders incorrectly 64ed4f9 issue #13348: Call ConfigureEvent on QEvent::Resize in QVTKInteractorAdapter Andrew Bauer (8): 34bbe20 Adding ability to clear particle path cache for previous time steps. 6d6ea87 vtkXMLPMultiBlockDataWriter now writes out dataset block names. e63d830 Adding in a check for a null pointer before accessing the pointer. 585a7c9 Particle path improvements intended for in situ processing. 8ad8380 Improving comments about particle tracer data structures. b0cbf25 Fixing parallel stream tracer integration time and forward value integrators. 32dc271 Fix issue if there aren't arrays in both time steps. 26ee6f2 Making vtkGradientFilter more efficient. Andrew Maclean (5): ae48313 Fixing tests for Python3. 09633c1 A fix to enable this script to work with Py3k. 55ab30f A fix to enable this script to work with Py3k. a7996f4 Converting python examples so they also run on Py3k. 06a6bb1 Eliminate tests causing errors. Antonella Cascitelli (7): 1a7ef12 Expose scissor parameters in vtkCamera 7593e1f Fixed some minor issues 096a56d Expose scissor for OpenGL2 backend 85ce242 Fixed scissor if it is disabled 1de4a32 Fixed multiple include 56fffa2 Fixed scissor if it is disabled for OPENGL backend a8a4572 Changed the formatting of if/else Ashray Malhotra (6): a5d29bb Added RGB to YIQ conversion filter 1b9729b Made variable local, clarified max variable name a04250c Adding YIQ to RGB conversion filter f30ed9c Removed YIQ to RGB filter from this branch 0f56b86 Corrected different repo versions, added anonymous namespace e1b56ba Added test code, still to add external data png verification file Ben Boeckel (84): 2cbef7a FiltersStatisticsGnuR: fix warnings in tests a1dbc97 semanticDiffVersion: use the returncode 5119521 git-gitlab-push: add source_branch to the "create an MR" url db578ab docs: add documentation on gitlab release flow 19db9af QVTKWidget2: add a method for creating a suitable GLformat ef07b95 QVTKWidget2: request OpenGL 3.2 context with OpenGL2 183a2be OpenGL2: replace VTKGL2 define f5f15f7 GUISupportQtOpenGL: add a test for QVTKWidget2 5d1ec47 QVTKWidget2: add mouseEvent signal e29a866 python3: add support in IOGeoJSON and IOParallelXML tests 4bc94e8 TestDataArrayAPI: remove unreachable code f225218 TestDataArrayAPI: use Finish macro to exit the function 3bfe991 python3: add support in IOGeoJSON and IOParallelXML tests 55a445b vtkInformationObjectBaseKey: plug a memory leak 698963f msvc2015: _set_output_format is gone dab7886 vtkOpenGLPolyDataMapper: warn about broken gl_PrimitiveID once 2557364 vtkFreeTypeTools: support VTK_USE_64BIT_IDS=OFF c846e28 twisted: remove pyc files 1d97b40 gitignore: exclude Python build artifacts fcec93c TestQVTKWidget2: link QtOpenGL in Qt4 306c8a9 FindMPI: search the HPC MPI registry path 54088f5 GUISupportQt: update for 5.5 deprecation warnings 1016535 vtkDirectory: support PGI and glibc dirent type mismatch aa6830c vtkjsoncpp: remove old import 36c58dd Documentation: document Do: test 6f083e6 vtkFixedPointVolumeRayCastCompositeShadeHelper: use 4 0f10584 vtkVolumeRayCastIsosurfaceFunction: use a temp variable 13cf25a vtkVolumeRayCastIsosurfaceFunction: use static_cast abe4ea3 vtkPolynomialSolversUnivariate: fix comment f0c3619 vtkImageAccumulate: return 0 on error 20a86e8 vtkImageAccumulate: handle errors in the actual algorithm 537eaa0 headers: remove RCS replacement tags fe6e1bf vtkModuleMacros: allow skipping header installation 6ee01af vtkRIBExporter: use snprintf 383c515 RenderingCore: don't write to /tmp ab61d3a headers: conform to the CheckGuard HeaderTest 70818a1 HeaderTesting: check header guards 16152ce HeaderTest: fix copy ctor and assignment operators db3f1d7 HeaderTest: fix up some include warnings 244afb6 HeaderTest: add some missing vtkTypeMacros fe20b1e QtWebKit: require explicit enable 3ee49eb TestWin32OpenGLRenderWindow: use a short timeout ce4b6f1 HeaderTest: fix header guards 62495cb vtkhdf5: let CMake determine the executable path 33fd97a RenderingOpenGL: fix test name 8d755ef vtkOpenGLGPUVolumeRayCastMapper: remove BOM 15886df FindMPI: fix rogue curly brace b4239d3 vtkBuildPath: use the configuration in the filepath 4d0f3bd TestNumpyInterface: accept some numerical error in the test ea618ad testing: catch "ERROR:" strings in the output bfcd913 TestNumpyInterface: fix comparison checks f3228a7 vtkQtSQLDatabase: clamp the port to a valid port range 67482d9 thirdparty: add infrastructure for updating third party packages 78222ad jsoncpp: add script to update jsoncpp 6e0a3d6 jsoncpp: use variable expansion rather than dirname fc06fd9 jsoncpp: integrate into vtk e99ee9f vtkGeoJSONReader: update for deprecated methods f93151a vtkGeoJSONReader: omitEndingLineFeed has been removed f69042b vtkGDALRasterReader: add NumberOfPoints method 8fca3ff vtkMergeFields, vtkSplitField: use strncpy 01afeb2 vtkWebGLExporter: use vtkActor* as the key 9b2c859 vtkWebGLExporter: use size_t as storage for pointers 1820c4a ThirdParty: use the subtree option to git 8d6c2ce vtkWebGLExporter: bump the pointer down a level f3cb6c9 vtkWrap{Java,Tcl}: fail if there is no class to wrap e31dea4 ThirdParty: remove -v to rmdir 54736d8 ThirdParty: ignore commit hooks when committing 9bce152 vtkWebGLObject: use size_t for renderer id type 7d76412 warnings: ignore std::exception inheritence warning 127573c ThirdParty: always use a subtree option for merging d34f066 zlib: remove old import 31e5974 zlib: add update script 68c3cc5 PyVTKObject: own the classname memory 8455c83 PyVTKObject: shorten the lifetime of the `s` object b87beee PyVTKObject: add .c_str() 5b6e9c4 PyVTKObject: own the classname memory 13c69c8 PyVTKObject: shorten the lifetime of the `s` object 836fc07 PyVTKObject: add .c_str() 8402cfb java: bump default target to 1.6 9d96017 vtkJavaMemoryManagerImpl: parameterize Constructor for inspection d5a549c java: ignore bootstrap class path warning a4275ab Documentation: add docs for making a release c9f7a5e vtkStreamer: deprecate the class hierarchy 8c3c794 Revert "ThirdParty: always use a subtree option for merging" Bengt Rosenberger (1): ce74643 Fixed data rounding issue for int data Berk Geveci (3): ee3db15 Source was not setting the right key. Fixed. c2a41f5 Fixed unitialized memory access bug. cff62a1 Preparation to deprecate vtkStreamer and subclasses. Bill Lorensen (30): 924248d STYLE: Replace vtksys_stl and vtksys_ios:: with std:: 7d259c6 ENH: UnitTest for vtkPlanesIntersection 8eee690 ENH: UnitTest for SimpleScalarTree b4941b0 ENH: Test vtkSphere::ComputeBoundingSphere e824982 ENH: Unit tests for ImplicitVolume/ImplicitDataSet 5c05c91 COMP: Infinite loop compiling TestDataArrayAPI 6d2409a ENH: Bump vtkDICOM version e897682 COMP: Member template function use on Mac 35589f1 BUG: SetDPI() Unitialized Memory Read a680a98 ENH: STLWriter now handles triangle strips 885dd1c vtkFixedWidthTextReader: expose internal vtkTable errors c0a6fe7 vtkXMLReader: expose internal error APIs eab49b0 vtkGenericCell: improve error message 8cf0a42 vtkQuadraticEdge: remove broken Derivatives implementation 5aa17e9 vtkTable: improve error message 3161f65 UnitTestCells: skip vtkQuadraticEdge Derivatives testing b079d08 UnitTestFunctionParser: remove testing for log() 08649ec TestTextureGlyph: use the proper data path fc659cd TestImagePlaneWidget: use the proper data path f13d7e0 TestMapperLUT: use the proper data path e5566b9 resampledTexture: fix off-by-one d283c1d TestPolyDataPieces: fix off-by-one 50666ee TestFixedWidthTextReader: use std:: explicitly 8dcbc03 TestImageDataLIC2D: use std:: explicitly b2457cc DistributedDataRenderPass: only render if extensions are supported d7c1377 TestBlurAndSobelPasses: convert to vtkSmartPointer f930156 TestSobelGradientMagnitudePass: convert to vtkSmartPointer 3fbae75 Testing: catch and check error messages 472a65d Testing: output when FBOs are not supported 816a0f6 ENH: Unit test for MergeFilter Brad King (27): d71e450 IO/GeoJSON: Fix -Wsign-compare warnings eaf0f6a ENH: Remove use of include and vtksys_stl::* 3ae7dd3 ENH: Remove use of include and vtksys_ios::* 88e3b19 Remove use of KWSys String.hxx header d33ae4d Remove use of KWSys auto_ptr 0be93d4 Remove use of KWSys cstddef compatiblilty header 3459fd9 Include header via angle brackets e12a815 Add a vtkTemplate2Macro to dispatch to two template arguments at once e3ef8a6 COMP: Remove break after return in TestTemplateMacro 7b75213 vtkModuleMacros: Fix regression in header installation 1cf6912 CMake/FindMPI: Drop unnecessary and incorrect use of GetPrerequisites 3b3fa52 Drop stream operator `long long` compatibility layer fcd264f Drop old C++ stream EOF workarounds 953d37d Drop unused VTK_NO_ANSI_STRING_STREAM configuration value b55c10e Drop VTK_TEMPLATE_SPECIALIZE compatibility macro a51432e Drop support for lack of explicit template instantiation 952168d Drop unused checks for ancient C++ standard library versions fef59c2 Drop unused CMake/vtkTestBoolType.cxx source file 50f51ec Drop condtions for lack of `unsigned __int64` to `double` conversion 3a70a23 GUISupport/Qt: Port QTestApp.cxx to Qt 5.5 2c875d2 Drop unused memorized try_run result 7e8454b vtkFiltersStatisticsGnuR: Simplify availability of uintptr_t 708c3a5 EncodeString: Compile independently from other VTK modules 7bbbba2 ParseOGLExt: Compile independently from other VTK modules 36bb09a Drop support for compilers with `__int64` as the only 64-bit int 3b89e77 Drop support for compilers without `long long` f7bcf8f EncodeString: Never build a launcher for this executable Burlen Loring (1): aa0d779 modernize depth sorting code Casey Goodlett (2): c3e55b8 Workaround problematic motion events 394633f Remove logging statements Chiranjib Sur (1): 4a79888 make functions WriteArrayFooter, WriteArrayInline and WriteInlineData virtual Chun-Ming Chen (4): 2c0a8de Add vtkImageProbeFilter for efficient probing into an vtkImageData f75eb39 Ensure the point really falls in the cell and prevent extrapolation. c11ee9e Replace raw C array by std::vector for weights. Remove unused codes. 5fe9419 Fix C++ style Cory Quammen (18): a6becaf Specified that 'Do: merge' must be in the trailing lines 65533f1 Documentation: fixed up wording on 'Do:' commands bb9d1ad Add newline at end of file a6ec431 Re-enabled parallel XML reader/writer test b128eb3 Added test for STL reader 0e72188 Changed warning macro into debug macro be2478c Fixes for Python 3 c3ba7b1 Change misleading documentation 1cea5ed BUG: Fix determination of scalar association 1feb918 Move lookup table opacity check from actor aeb47cf ENH: Computation of string bounds accounting for justification 1d91f9b BUG 15797: Fix text property ID computation 6e8750d ENH: Added some useful member functions to vtkRect 71db77d BUG 12531: Fixed problem with AutoOrient 3b208dd Added option to display range labels 7e1129c Silence warnings about possibly uninitialized values 0739405 Added test baseline and fixed some minor issues in the code 9d15210 Warn only once about Apple bug Dan Lipsa (14): a756065 BUG: vtkBiDimensionalRepresentation::PrintSelf does not generate an error. 9645f93 BUG: vthb file has the wrong directory. 04d14cd BUG #15662: vtkAppendPolyData does not remove UPDATE_EXTENT c0f2e89 BUG #15397: vtkPProbeFilter crash when geometry dataset is distributed. f09903e COMP: Add logic to selectively use OpenGL or OSMesa. 3b6810f BUG: OSMESA configuration flags can cause link errors. 7619c55 ENH: Add option to offscreen render through EGL. ce28526 BUG: Point Sprites don't work with EGL/OpenGL driver 4.5.0 NVIDIA 355.11 9336a71 New baseline for TestLabeledGeoView2D for EGL and 4.5.0 NVIDIA 355.11 c1d9d36 BUG: Use EGLNativeWindowType for Window to fix Android compilation. 3bd0831 BUG: The EGL Window was reinitialized on resize. 01e000e BUG 15704: Fix crash with invalid CGNF file. 5c9af25 BUG: GetCellGhostArray does string comparison if CellGhostArray is NULL. 293b9d6 Cache function value in local variable. Dave DeMarle (3): 14698b3 fixup regression test baseline image c9c5a9d fix valgrind issue with the test itself bfbdc62 Increment version to VTK 7.0.0 David C. Lonie (59): 7f1087b Add SkipDistance to vtkLabeledContourMapper. d152663 Use vtkDataArrayTemplate as the vtkTypeMacro Superclass in subclasses. 8873e81 Add vtkDataTypesCompare to compare data type tags. b21bb40 Add vtkDataArray::Insert[Next]Tuple6(...) methods. 6316820 Clarify documentation for vtkDataArray::WriteVoidPointer 9865795 Add vtkTypeTraits<...>::Name(). df9b9db Add a test for the vtkDataArray API. 6359b1e Update new test to round interpolation results. f1ad92c Add support for printf-style label formatting to vtkAxis. 72c0e64 Silence warning. 86f7895 Preserve extent ranges when extracting unsampled VOIs. 07b4e3e Restore the UPDATE_EXTENT after cutting subextents. 4eae3d1 Reflect API change in the optional FreeType benchmark. 65690ed Remove the sampleRate arg in some ExtractGridHelper API. db6775f Add convenience API to vtkRect. 356caf1 Add copy constructors to vtkVector. 1dc82c6 Add missing information to vtkTransform2D docs. cfe9ac5 Add various missing API/docs to Context2D classes. ec26fd3 Honor StencilCapable in vtkCocoaRenderWindow. 23e95da Remove unneeded check in vtkCamera. 2aaacd0 Update how MVP matrix is computed in labeled contour mapper. fd1acd3 Add vtkPropItem, to embed any vtkProp in a Context2D scene. e8955d1 Add vtkContextArea. 81f64f1 Add vtkPlotItem/vtkContextArea tests. 3a1cd1f Remove Rendering/FreeType/vtkFreeTypeUtilities. 33b2338 Remove the ftgl third party module. dafc433 Rerun the back buffer test if front buffer test fails. df737e9 Return early from vtkImageData::Crop when image is empty. dc7b7ff Don't attempt to ::Crop invalid datasets. 1cc1ad1 Fix MTime bug in vtkTextMapper. 7f55f60 Fix memory leak in vtkFreeTypeTools. 27e78f9 Fix GL2PS export for vtkLabeledContourMapper. d4a0a54 Fix class name in wrapping hints. 351bd27 More hints file cleanup. 975bc45 Update MPAS reader to handle non-double arrays. f363078 Remove 100 attribute array limit from MPAS reader. adb5a06 Relax restrictions on valid MPAS field data. e7166b1 Add Dimension API to vtkMPASReader. 25700e2 Dashboard fixes. 0c3195e Allow MPAS vertical dimension to be customizable. 190b6b3 Restore VerticalLevel support and add generic array loading. 1b6901a Remove dead debugging code. 46726e6 Clear variable arrays when refetching info. 91973c1 Remove unused variables and unimplemented methods. d04cc82 Defer updates until an update request is received. 769e41a Remove special vertexMask parsing in MPAS reader. 00270ce Allow the vertical dimension to not be specified for MPAS. 76d10d9 Validate dimensions for standard variables against the spec. fdf0d6a Fix various compiler warnings. 3ef12b7 Fix planar-multilevel MPAS grids. 6a19c4a Add xtime string to MPASReader's field data. 6ac07d8 Fix build error due to vtkStdString implicit conversion. 7b01007 Validate input indices in InterpolateTuple. 25f0495 Fix invalid array accesses in generic filters. e415049 Fix out-of-range array access in HyperOctreeContour. 7fee294 Use serial ExtractVOI implementations when we're not subsampling. 02093ed Fix mathtext regex for single-character expressions. 417d6fd Notify when using the VTK modified netcdf API. 5f18d21 Reset helper to use piece extents in serial ExtractVOI impls. David Gobbi (93): 55e8252 Create a PyTypeObject for each wrapped vtk class. 163f308 Fix deprecated python type check in TestSubClass. bee2a59 Update PyVTKSpecialObject to match changes with PyVTKObject. 0c75ddd Declare wrapped type structs as "static". 2e6243d Remove unnecessary casts for PyDict_SetItemString. 4cf2fa3 Change wrappers to require python 2.5 or later. e85dbe6 Guard against sprintf overflow in PyVTKObject_Repr. adfcbec The type PY_LONG_LONG is always defined for python >= 2.2. e479eb8 Fix typo SUPRESS -> SUPPRESS in macro. ecf9b65 Remove old "char *" casts from Python wrappers. 1f1f9f4 Add __dict__ attribute to python-wrapped objects. c14475e Do type checking with type objects, not strings. 45abed4 Update the PyVTKTemplate type object. 74de9b8 Add the module to the tp_name member of every type. c4aaab4 Simplify type check for overload resolution. 41c6580 Make python enum type objects static. d0d6e83 Simplify PyVTKClass struct by removing vtk_mangle. caa4c93 Add missing parameter types to docstrings. 212e942 Add py3k compatibility macros for type objects. 4f29742 Remove vestigial "module" arg from python init. f2aebb8 Provide py3k module initialization. 16bb32d Add the new py3k buffer interface. e1ff886 Fix PyVTKTemplate dict compatibility methods. c96458b Make vtk/__init__.py compatible with py3k. d3eb404 Python API compatibility for py3k. b7308b0 Patch CommonCore python tests for py3k. 8b32c4d Fix numpy_interface compatibility with py3k. b1f2f2c Fix a few simple py3k syntax errors. 26ad055 Fix some converted python print statements. 1ab26ad Add include guard to vtkPythonCompatibility.h d6f7466 Fix typo PYTHON_VERSION_HEX to PY_VERSION_HEX 8320da2 Add a python function to check buffer equivalence. c7d7de2 Add a few other minor py3k test fixes. aa4e0d0 Fix remaining py3k issues with vtk.tk module. 0ff02aa Fix non-ascii quotes in two header files. 175a4c4 Make vtkVariantStrictWeakOrder(a,b) work with Py3k. 4f450d1 For Py3k, return bytes for non-utf8 C++ strings. 8aead08 Add tests for encoded strings in python. 4d3bc03 The Py3K wrapping broke init args for subclasses. 608b1a4 Update the wrapper documentation for Python 3. 3f70e5f Add Py3k support for QVTKRenderWindowInteractor.py. 6799719 Update wxVTKRenderWindowInteractor.py for Py3k. a38e3d1 Remove BTX with extra comments from headers. cd4e06a Fix warning when compiling with Python 3.5. ebac805 Consolidate the qt4 and qt5 python interactor widgets. edb1dc5 Remove the vtk.qt5 module (use vtk.qt instead). 79ed9c2 Help FindPythonLibs.cmake find Py3k on OS X. 7bb212d FindPythonLibs Py3k fixes from cmake master. d0fb64a Remove methods that were never implemented. 2122432 Ensure that stream operator parameter is const. 77f7a0d Ensure that entries in hierarchy file are unique. e6f75b9 Wrap many more classes with python. aceabf3 Fix classes that broke the "rule of three" b7da2ab Schwarz counter idiom for vtkFreeTypeTools 16c8e86 Add a missing vtkPPixelTransfer export macro. facbbae Special wrapping for abstract classes. 42412fb Exclude ParallelLIC classes from wrapping. 9476e73 Export friend function in ParallelLIC. 8f4c43e Add a code indentation utility to VTK. 864dbe2 Do not change indent after "=". f03d3f8 Add a regex to recognize case (and other) labels. cb42266 Use raw string regexps. 1f4e43a2 Print exception and exit on read error. 7c4dfbc Only write out files that have changed. 8ef76e4 Fix for Python 3.5 compilation on Linux, Win32. 056d5d7 Convert the PythonInterpreter module for Python 3. 7d78e32 Remove Python version from vtkPythonConfigure.h. 25d4459 Relative import is required for installed VTK. 6cb06ac Ignore more typedefs for anonymous structs. b4a7e2b Relax restrictions on location of headers. ada46a8 Ignore the __restrict and __restrict__ keywords. b5bda5e Don't add private headers to module-Headers.cmake e83f156 Revert WARNING to FATAL_ERROR in vtkWrapPython. 570e051 Exclude private headers from the hierarchy files. dc328de Fix a copy/paste error in vtkPythonInterpreter. 2318e52 Fix evaluation of char literals with escape codes. 987d98d Add evaluation of unicode char literals. ae0a803 Add C++14 header support to wrappers. 00de7f8 Add newline at end of file to silence warning. 21864dd Silence clang warning about unnecessary "break;" 9ac4fad Fix SetSource documentation for vtkProbeFilter. aee1663 Update the vtkDICOM remote module tag. 3fe2d25 Consolidate vtkImageStencilData code, fix bugs. 51dc7b7 Fix interaction bug in OpenGL2 vtkImageSlice/ResliceMapper. af5d537 The vtkImageResliceMapper was needlessly recomputing. 3dae028 The assertIs() test is not available in Python 2.6. a4fa448 Remove the toupper macro defined by Python.h. 244db47 Use all FindClosestPoint signatures from superclass. d98e787 Remove comma at end of enum (clang warning). d4cbce8 Add missing EOL to last line in file. 0f60421 Update the vtkDICOM remote module to v0.7.1. db20eb7 Fix bug for parsing backslash in string literal. 9072bbc Add the update.sh for third-party libpng. David K?gler (1): 44735bb Correct the automatic paths produced for windows_path.bat and unix_path.sh. David Thompson (2): becea5e Handle OBJ-file materials without textures. 3370662 Add a regression test and baseline image. D?enan Zuki? (1): c947613 COMP: making Qt WebKit optional Edson Tadeu M. Manoel (1): 40937e9 Fix vtkSTLReader bug with ASCII STL files containing multiple patches. Greg Schussman (1): 4ffd954 Add keysyms to QVTKRenderWindowInteractor.py. Hans Johnson (1): 5720d26 COMP: VTK and ITK H5 build program collision Jamil Appa (1): d6a3449 VTK: Fixed XML problem when writing grids with VTK_POLYHEDRON cell types Jatin Parekh (9): df81267 Updated as per VTK convention 004316e Formatted using VTK style 84c643a API corrected a2db83b Improving API f1e4e6e API corrected f4f3634 GeometryCollection added 32b7987 Correct extractLineString 8dafe11 Correcting reader for concave polygons c9f90fa Style changes Joachim Pouderoux (12): 2cb872b Fix non numerical array writing crash and fix support for Quad9 b00e868 Fix a bad index issue that make constrained delaunay2d crash 32a8278 Prevent DataSetSurfaceFilter to merge points of quadratic meshes. 70a314c Set CMake policy CMP0054 to new to avoid warning with MSVC var/string 56bbdb6 Introduce a new filter to compute ghost cells of unstructured grids. 11a5551 Deprecate vtkPUGGhostDataGenerator and vtkPUGConnectivity. 8392541 Fix tests and module compilation for legacy removed classes. fef4704 Make sure the glyphs are update when a property changed. 3711462 Fix AppendFilter so it copies Abstract arrays too. 415163d Fix a bad index issue that make constrained delaunay2d crash ac7a28f Fix a bug with vtkDelaunay2D. 55f1668 Fix a bug with vtkDelaunay2D. Johan Andruejol (2): 3455056 Correct the orientation marker widget behavior inside a viewport 2d73b48 Minor fix in TestOrientationMarkerWidget2.cxx John Tourtellott (20): 251e314 improving formatting style d121493 isXYZ checks completed 9269fbe style fixes 010ff6c Add string-input mode to vtkGeoJSONReader c1698f8 Fix logic to read single Feature as well as FeatureCollection objects 7a20d0e Add "feature-id" data array to polydata produced by vtkGeoJSONReader 5e67d94 Update GeoJSON reader to specify property data to be stored with polydata d2df89f Parse feature properties input (GeoJSON) and apply to output (vtkPolyData) abf3d54 Add vtkGeoJSONProperty class to simplify logic a bit. a43a054 Rename "defaultValue" --> "typeAndDefaultValue" to be more precise. 29565a1 Pass Json::Value by reference & const where appropriate b075728 Add option to generate polygon outline, and make triangulation optional 0cdc96f Fix sundries memory leaks 9e7af05 Use double precision for point coordinates 67eb308 Update GeoJSON reader classes to compile in VTK 0a2b539 Update vtkGeoJSONReader to satisfy vtk header requirements 8ebd38a Add test for reader (uses python bindings) 0d87210 Simplify code by removing vtkGeoJSONProperty.h file 2f55c52 Add option to vtkGeoJSONReader to store serialized "properties" node 1e5594f Change GeoJSON reader to parse LineString features into vtkPolyLine instances JsonCpp Upstream (1): f3f68fd jsoncpp: update to for/vtk KWSys Robot (4): 083f7a8 KWSys 2015-07-10 (c9336bcf) 49efb6a KWSys 2015-07-30 (f63febb7) 9bbfa77 KWSys 2015-08-24 (cdaf522c) dc6da03 KWSys 2015-08-28 (dc3fdd7f) Karsten Tausche (3): 7df3562 pass field data arrays instead of the field data itself in vtkPolyDataNormals 9f37c98 Add CMake switch to omit the Qt plugin when building GUISupportQt 0600436 Let the pipeline pass field data in vtkPolyDataNormals Ken Martin (136): 1c57301 Add basic support for shadows e0d01b0 Bunch of cleanup and reorg d023a36 Some bug fixes f4cbcb4 Fix a recent regression with 2d actor 5f172a8 Fix issue with thick lines 0f93b11 Fix use of GL_DRAW_BUFFER on es 724a7a7 Some minor cleanups for release a2f8629 Fix edge drawing with cell data b28d704 Keep old method as the old backend requires it edc24bd Improve the capabilities of the vtkPointGaussianMapper 091552c Add ability to adjust the table size e2d88be Fix an issue where we were abusing the glsl spec a bit 44e33c4 Cleanup comments 48fb792 Fix for CPDM2 with wide lines 57daf0b Some more features and some cleanup reorg. 96b994f Fix shadowed var 0038398 A fix for a couple issues with multiblock field data OpenGL2 7673512 Restore the prior blend func and use the piecewise func range 51f9cb2 Two new tests compliments of Cory da60022 Fix for changes in diffuse color not showing up ea3731b a number of ios and driod fixes 7a55f24 Incorporate patched from casey 42fe909 A few more fixes and cleanup d38c65b Add PBO support into ES 3 builds and fix a warning ce13783 Fix issue with polygon offset being left on c0c0e7a Add an ability for user code to modify the default VTK shaders a3004a4 Add a missing newline 59db1ff Fix compile issue 1b5d4d3 Add ability to override the shader template as well 04c4545 Add a mechanism where shader uniforms can be updates b0291dd Fix some fbconfig issues on X 64e5bf9 Fix an issue with wide edges not showing up properly 67c0a8a Fixes related to surface with edges 2776285 Keep track of what shader uniforms were being used in the shader 941be8d Try to shut up warning 04a9291 Warning fix for win32 63a993a Suppress warning in system file 37df0bd Better assert for test 2fda9d2 Add method to set the triangle scale 29a340d Fix some issues with release graphics resources that PV exposed 6671660 Add eye dome lighting into VTK de2d18a Fix for systems that only configure once 55d0fd1 Remove cocoa use of deprecated OpenGL code 4224ea0 Fix comment to match the code now defaulting to OpenGL2 53bcb5c Fix Rendering/LIC module file d51a1cb Remove debug stack printing code e43740d Fix missing cmake code for OpenGL with LIC 8039b32 Mark gl2ps as being part of the OpenGL backend b882736 Fix a couple leaks in the compositeLICMapper 9e204b1 Fix two issues exposed by a failing test in PV d86ce5d Remove internal header file aff9f7b Clean up and fix for other platforms eaaf938 Changed the wrong version of the file 45d6517 Make sure edge flags use the generic path 5b40268 Add in vector include for ivar 844f2e0 Fix error message when there are no unmasked points 79b8190 Fix compiler warning 07462b8 Try a fix for osx 10.6 4360d3c Fix for opengl es edl lighting ab9d8eb A depth peeling fix when compositing 7336fcd Another attempt to get osx 10.6 to compile 6ce8330 Try to fix boundary check error on OSX de00fe9 Extend the timeout allowed for this test 624fce0 Another tweck for OSX 10.6 24741c4 Add freetype support into android verison of vtk 7e23fd6 A fix for picking combined with depth peeling b0a0fac Fix a compiler warning on hythloth d63a450 update ios support to include ios9 5ce72cc Fix vtkPSurfaceLICComposite_CompFS GLSL code. 95d0ef0 Another picking fix and mtime issue c8fd8f3 Add android vr example and fixes to support it 84e8c70 Fixes for samsung with linear interp 9d78a7a remove dubugging statement and unneeded line 8889452 Fix for CompositePolydata with mixed normals/tcoords 7d72b7f some interaction fixes and cleanup mostly for android 571a5da Add support for more than 16 million cells with hardware selector a05cdfa With indexed string data we never shoudl use textures 2e04e18 Fix for glyph3d picking 26df120 Update multitouch support to be more general and robust eb81836 Fix a couple issues with lic 295efb7 Windows fixes for multitouch changes 494e9f1 Add a super smapling AA pass 640f9a0 Some cleanups to make the shader a bit simpler 8af6e11 A fix for picking combined with depth peeling 2c4d331 Another picking fix and mtime issue 58f7391 Add a Depth of field pass to VTK 564267a A bit of a fix to handle frameworks better 07b2c76 add some opengl debugging info when a test fails 9ff6b70 Fix for compiler warning in OBJ test e872869 add missing file for ios dd41d03 fix reportcapabilities in Cocoa f983396 Improve the shadow maps in VTK 0907493 Release a tunit that was not being released 3221bed Better support for no rendering ca6ca7f Cleanup a python test and some cmake code 246216e fix a compile error b62e1b0 Fix for selectionId being set when not needed 3e493e2 Add implementation for two functions 0e74097 Fix compiler warning d59a978 Updated to have better python test code a4f9d8e Add a missing header maybe 70d4079 Allow a user to override the default opacity computed value. 8509bec Make a cool molecule rendering aac6195 Fix for initial config case with no backend specified b457301 Improve rendering shadows and DOF 4a6ace8 Fix accidental commit of one test 26c2358 Fix for the balloonRep when using textures in OpenGL2 d6cc61f ome minor updates for mobile 60d3e1b Fix a few issues related to compositepolydata picking e8a8b3f Move offending opengl calls inside ifdef 8628eba Fix copy of mapper input to helpers f232987 Suppress another qt warning e9a6c9f Modified times were not passed to the helper 762f0fd Update docs on how to build ios android examples 7695ff9 Update the VBOPLY test to check against the valid image 33e9fbd Return value needs to be inverted ad valid image 978a634 Remove some classes that were not completely converted 4be38a3 Update coincident geomtry support 8b866f4 Fix header file ca0ac61 Update the documentation a bit 96bdfb8 Add in mapper specific offsets 7ac36b4 Update valid image/test to not use multisampling d8ca545 Add a valid image that was sqeeking by earlier a2320e8 Bah this adds the valid image 8b95271 Update test to not resize d9b727c Start working on better checking for OpenGL2 support 804902b Update Cocoas check for OpenGL support 3a8e449 Try to cleanup the release graphcis resources some affc0d9 Update SupportsOpenGL for X Windows aa456d9 Fix handling of failed pixel formats 1f4ff9d Improve testing for OpenGL support fee8744 Try using pbuffer as drawable for checking openGL support 619ad8a Update the orientedContourWidget coincident support 263583d Make the rebuilding of VBO and IBO very conservative_vbo_ibo_rebuild 200a974 Minor variable redec warning a1cc14f Remove lingering debugging code Libpng Upstream (2): a4d38cf Remove old vtkpng, replace with upstream 1.0.65. 0c4d66f png: update to for/vtk Marcus D. Hanwell (3): 9b868cf Wrap vtkAtom and vtkBond in Python c98f076 Added a simple test to verify wrapped vtkMolecule 78dc4ae Added vtkAtom and vtkBond back to wrap exclude Mathieu Westphal (15): 5932419 Allow the use of any kind of dataset as an input to periodicFilter aba1844 Fixing bug with plot matrix view when clicking rapidly 861343a Fix bug with the screenshot of the parallel chart view 749c3a2 Switchin tensor coordinates XZ and YZ with ensight tensor 338b313 Adding test for ensight tensor inversion 8eb50dd Applying GIL PYTHON patch c59576e correction thx to bboeckel && jpouderoux 089044f Fixing bug from 68c3cc53e47c30e7ef8a74fa2b40ced0f234834c with test inversion 8efe833 Initializing class members to avoid warnings 4421cba Fixing bug from 5b6e9c49 with test inversion 7c8572e Adding a NoRelease Option to GilEnsrurer and use it cf42ad5 Correcting NO_PYTHON_THREAD in PYTHON_FULL_THREADSAFE 739417e WebGLExporter warning fix ef49e57 Comments + style 3daf258 Correcting invalid use of GilEnsurer Max Smolens (6): 17414af Fix HAVE_ROUND-related build warnings in Visual Studio 2013 96ca3e6 Fix HAVE_ROUND-related build warnings in Visual Studio 2013 fdaf3b0 Fix vtkCaptionActor2D not scaling text 7c17a39 Fix vtkViewport gradient background documentation error 49f5d4c Fix rendering gradient background with vtkRenderLargeImage 89b39a1 vtkInteractorStyleRubberBand2D/3D: Fix documentation typos Menno Deij - van Rijswijk (2): e665230 Reverted vtkXMLPolyDataWriter.cxx to use the 'old' WriteCellsAppended method 61d9f7a Removed a spurious white line MetaIO Upstream (3): fc35376 metaio: update to master 8bd5a1f metaio: update to master 3972c2c metaio: update to master Mickael Philit (3): 7cf6845 Fix UPDATE_EXTENT information to append multiple vtkStructuredGrids 14351fb Prevent out of bounds access of CellData arrays a74fe01 Use this->SampleRate instead of sampleRate to benefit from optimization Mikael Brudfors (1): d2554b4 Improvements to vtkImplicitPolyData Nathan Fabian (24): 39b558a Protects against empty name strings in the Info. 46b2525 Protects against side/node set strings without ID: characteristic. 3e0306f Reader transfers enough meta information in empties to robustly write. f0be039 Replaced string contigency with regular type set 63c8954 Removes the Variant row entirely. e5e5ecc Removed vtkVariantArray from the AssessFunctor. 1c6a8073a Fixes tests for passing. 10f9178 Removes strings entirely when dealing with numeric types. e91b16a Replaced string contigency with regular type set ff95c85 Removes the Variant row entirely. ad92781 Removed vtkVariantArray from the AssessFunctor. d178a7f Fixes tests for passing. 65c0da4 Removes strings entirely when dealing with numeric types. acb3971 Compatibility with latest master branch 797b6dc Specialized integers apart from doubles. e2a709e Converted to a class for simplicity 51c7f97 Multiple components supported (needs testing) d98f25b Workaround to make parallel work. 5bc47e2 Addressing compile errors. bf98e59 Addresses review criticisms. 34ece1c Addresses compile errors. 5a1de07 Addresses build warnings 47b3d72 Addresses more compiler errors. 78f382c Addresses review Niels Dekker (1): cc1444f COMP: A fix for MSVC warning D9025: overriding '/W1' with '/w' Ondrej Semmler (2): 22239a1 Fix calculation of radius of sphere. 05f098c Fix Cory Quammen note Ortosoft Marcin Adamczyk (1): 0d817ed Fix for bug 15830 Robert Maynard (6): 7a26d2c Allow vtkGeoJSONProperty to be used by other libraries. 828e63a Fix a memory leak when reading each coordinate from a json file. 42c10c5 Add in support for writing JsonValues to vtkOStreamWrapper. 2bb2172 Remove usage of VLA's as they aren't supported by C++. b1b0b63 Get ThreadedSynchronizedTemplates3D to work with more than 4GB. 82a535d Allow explicit binding of vtkOpenGLBufferObject without uploading. Robert O'Bara (1): fbe92f5 ENH: Adding a reader for PTS Files Sankhesh Jhaveri (12): 2086de2 Initial changes to get FBO working in GPU mapper 3891a88 Allocate texture objects before attaching to FBO c8e7f7b Activate and deactivate texture objects 1d7ae9e Removed volume module dependency on LIC module b0deaa4 Make vtkPixelTransfer available to a broader range of modules 4a119cb Added API to export depth and color textures as images fb4c5ec Added test for new API to export textures 6b31b8b Pass the output image by reference for the mapper to dump to ea3e57a Baselines for new tests 09965ed COMP: Use vtkOpenGL.cmake for vtkRenderingExternal module 55a7c0e Reduce size of dataset processed by TestFlyingEdges3D 698e9c4 Contour labels precision Schuyler Kylstra (1): 65a09b2 ENH: refs #14978 - Added virtual method to return vtkSelection pointer Scott Wittenburg (6): 12cbee2 Prevent empty splat shader string from crashing application. 3c61d71 Fix a couple minor issues with this mapper. 46a6b43 Loader can now insert your app html template within the app body. d251afe Fixed missing null check on app template attribute of loader script. b6d2b40 Always respect provided close method, do not call window.close() 9a71258 When pwf range is much smaller than array range, vtk crashes. Sean McBride (26): da50d6c Purge support for OS X 10.5 and Carbon 81ff304 Removed support for GCC 4.1; >= 4.2 now required c88a5c0 Added checks for minimum required compiler versions 13f8a0d Add cppcheck warning suppression file aae7c63 Fixed cppcheck null deref warning 4a1c591 Remove nop assignment warned by cppcheck 3111a22 Fixed cppcheck warning about array bounds cf28f12 fixed cppcheck warning about <= with unsigned acbfe39 Remove unused struct definition warned by cppcheck 1dfbdf2 Removed workarounds for old MIPS, SGI, HP, and DEC compilers 8d74916 Added back newline at eof removed in 4398c9ca 7c21867 Added another missing newline at eof 1dad2da Fixed another pesky newline warning 5234e0b Fixed bug #2025 by forcing NSApplicationActivationPolicyRegular 5827669 Fixed memory/file leaks of various kinds 21de87c Fixed scanf format string mismatch dc0c74b Made ?infinite? while loop more clear c3ad86f Fixed out-of-bounds array access ed7b14d Remove dead stores 8ef0394 Removed useless comparison b6bb2bb Added an apparent omission of a counter increment b23ee9f Fixed apparent mistake in error checking, where no errors actually caught 201984b Cleanup after evaluating cppcheck false positive 80e7073 Updated cppcheck suppressions for version 1.71 3c16e52 Fixed potential null dereference warned by cppcheck 37893da Suppress cppcheck warnings with assert Sebastien Jourdain (2): be6596d Add binary WebSocket endpoint for pushing images to Web clients 3c52a0b Remove unused import that was creating circular dependency Shawn Waldon (10): cff02ab Add a reader for the MRC image file format 758745b Add test for MRC reader 54aab8a Add test data 4553664 Remove use of nullptr 590fba8 MRCReader: assume file is little endian unless marked othewise 928350e vtkChartXY: add option to disable mouse wheel zooming 41be444 Add detection of c++11 compiler support 7cd3bfd Exclude compiler detection header from wrapping 6495a54 Define target before setting target_compile_features efc0ec1 Update C++11 support to remove target_compile_features Simon ESNEAULT (2): 9afe4d1 Add missing call to ReleaseGraphicsResources d720686 Restore glBlend state after changing it Steven Hahn (2): 72b9f62 Get dimensions from a visible cell. e6b8eb1 Reduce time spent calculating a vtkImplicitFunction. Sujin Philip (6): d26d128 Improve performance of vtkCellIterator. d28e3a6 Fix implicit inheritance type compiler warning b961d6d Fix vtkSMPThreadLocal API 1243c53 Combine vtkProbeFilter and vtkImageProbeFilter c36fb21 Add Tests for vtkProbeFilter 442c6be Fix vtkProbeFilter and vtkCompositeDataProbeFilter T.J. Corona (30): f9c1d6c Changing vtkTriangle::TriangleArea() to use parallelogram method. 1003d4f Fixed Doxygen latex errors. 4edebb3 Including vtk3DS.h into the install 1f890b9 Added unary plus and fixed scientific notation bug in vtkFunctionParser c66b00a Modify vtkDecimatePolylineFilter to accommodate multiple polylines. 078f80b vtkPeriodicDataArray can now return an iterator. 9177526 vtkVolumeRayCastMapper now scales SampleDistance by ScalarOpacityUnitDistance. 8b91c6e vtkPolydata without holes now pass their polygons through vtkFillHolesFilter. ef4e623 Latex newline symbols are no longer at the end of a comment. 5bf6e90 vtkFunctionParser: added support for capital 'E' in scientific notation. 2e2d32a Suppressing signed/unsigned comparison warning in vtkDecimatePolylineFilter. c0b6a7c Correct bounds and integer width computation in vtkPlotHistogram2D. 46fd7f4 In vtkGlyphSource2D::CreateDash, only add points if dash is filled. dc80f41 Correct and augment the behavior of vtkPolygonBuilder 77f566a Pass cell data through vtkCurvatures filter. c7ebe5b vtkDataArrayTemplate: Add a safe method to change an element with vtkVariant. d8611b5 Extend vtkPolygonBuilder to return multiple disjoint polygons, if present. 9804fcb Fix vtkTableBasedClipDataSet to handle 2-dimensional data in XZ and YZ. d06cb99 Remove SMP parallel processing examples. c6ee570 Fix vtkNewickTreeReader to read trees of type (A,B,C)D; 5b08d19 Removing unused parameter name in vtkGPUVolumeRayCastMapper. 17cb1cb Make closest point optional in vtkLine methods. 1eedaf8 Propagate safe variant setting through children of vtkAbstractArray. e5feafa Fix IntersectWithLine methods for vtkQuadraticWedge and vtkQuadraticTetra. bb0ff96 Add another baseline image for quadraticIntersection test. eb700f1 Rescale quadraticIntersection test images. 8c1215e In vtkPolygonBuilder, restrict triangle vertex traversal to counterclockwise. 5970e58 Setting up third party submodule script for MetaIO d1a7921 In vtkOpenGLGlyph3DMapper, use color values from actor. 029c800 Enable vtkTableBasedClipDataSet to generate clipped output. Tim Meehan (2): b2233c7 Added some new parametric functions 2ac05e2 Added a test for the new parametric functions Tim Thirion (4): a2b9cfe Add a lighting map pass for OpenGL2 backend be020e3 Add value rendering pass a12bc8c Use global scalar range in value pass b7404ef Fix incorrect string compare in vtkValuePass Timo Oster (1): ce5a407 Add ability to append vtkRectilinearGrid Tokishiro Karasawa (4): 26fc6af Fix occasional failure of testing if a point is in or out of a triangle 3c4ad8f Add a test for FindTriangle 9aa13b4 Modify the CMakeLists 0341795 Fix occasional failure of testing if a point is in or out of a triangle Tristan Coulange (1): d6b0923 Add new Execute method in Glyph3D Utkarsh Ayachit (18): 49cca5c Add support to read ALE fluid groups information. 9a76640 Fix VS2008 build issues with std::abs(__int64). 5b2d8b8 Fix incorrect error when testing is disabled. 04db688 Xdmf3 was failing to build when using system HDF5. 880313b BUG #14291: Fix segfault when RemoveGhostCells was off. 506c6ea Support passing vtkPoints to PointSet::SetPoints. a18a009 Link against MPI Cxx libraries, if available. 275fc19 BUG #15746: Fixes issues with Merge Points in vtkAppendFilter. ed1b0fb Exclude generated WebGLExporter classes from Python wrapping. 8631ec1 Exclude generated WebGLExporter classes from Python wrapping. f1eacfa Fix leaks in vtkCompositedSynchronizedRenderers. d3529f5 Fix const-cast warnings in vtkPythonInteractiveInterpreter. cfe7c78 Fix segfault when mapper is re-updated. 76c118c BUG #15763: Avoid modifying camera when it hasn't changed. 36edf38 Fix VS2013 build issues. f7ba5e6 Fix VS2013 build issues. d2704b0 BUG #15632: Fix exodus performance issue with spatial files. 902356a Fix "same expression in both branches of ternary operator". Victor Lamoine (3): 136c17f Add JoinContiguousSegments option to vtkStripper 4166cd1 Implement JoinContiguousSegments option in vtkStripper 2b5792f Add test for vtkStripper Vladimir Chalupecky (3): 182807c vtkAVSucdReader: fix to read ASCII input correctly c2bd54f vtkAVSucdReader: add C++ tests and test ASCII data with noncontiguous IDs 1b1e8a5 vtkAVSucdReader: add alternative baseline images W Alan Scott (2): ba0a6dc Performance improvements to vtkRTAnalyticSource. 70dd85a BUG #15399: Improve performance for exodus modeshapes. Waldir Pimenta (9): 4398c9c fix "not" --> "nor" 78b0414 fix documentation: "not" --> "nor" 0402526 typo: "an sheared" --> "a sheared" 82daf95 sync doc to code: UseNormalAndRadius --> UseNormalAndAngle bc856b5 improve documentation of vtkArcSource 0460ddb fix bug in vtkArcSource: default polar vector and normal vector were swapped b6ffc86 Add note for github users on CONTRIBUTING.md / simplify link code e14cc55 replace broken link in QVTKWidget.cxx with a working one 2cf6c71 doc fix: UNSIGNED_CHAR --> VTK_UNSIGNED_CHAR Will Schroeder (63): f9b4ba9 Cleaned up header docs, refined keypress callbacks 799a148 Threaded and templated elevation filters f433a4b Cleaned up shadowed template parameter ab3e753 Removed leftover performance testing code effa1dd Added new widget: vtkImplicitCylinderWidget e785caa Cleaned up callbacks 0a27e58 Cleaned up test image 6c1b1cd Added alternate regression test image 1a965eb All working before SMP conversion 87012e5 First incarnation of Flying Edges 17dd6c5 Cleaned up warnings 4aad3c6 Added vtkSMPTools integration to thread algorithm 5a64ead Experimenting with grain size b3606ce Refactored code and thread over slices 9d81635 Fixed skipping non-intersecting slices. ec13363 Used 200grit to polish the code (bugs fixes) 9112341 Rebased; tweaked tests d3bea4f Refining tests and test images e263eed Fixed UpdateExtent processing 8ae05d9 Added new scalar tree (span space) and fixed. e807bee Removed warnings f85bd60 Added proper memory management of added scalars b7b24f2 Fixing memory leak b4ca599 Forgot to commit a file to remove memory leaks 67b7b4b Threaded and templated vector dot and vector norm 5d23191 Cleaned up ambiguous operation order warning 80b143f Improved documentation 4408fd2 Working around SMPTools copy constructor bug 066df72 Threaded span-space build e45f1de Accelerated vtkSpanSpace with parallel sort 2efd04e Need to include appropriate files for std::sort 76c6da7 Added Sort method with comparison parameter ac791ce Use viewport coordinate system 1882a7c Fixed 2D handle rendering in multiple viewports 1d3b08e Renderer needed to perform coordinate transformation 1b2d633 Corrected constrained handle representation behvaior b0ac3f6 Initial working snapshot 2de6508 Removed initialization warning cdbaa83 Successfully running in parallel f3653e7 Reduced test size since dashboard machines choked c5f7b14 Cleaned up some numerical sensitivity; added test a1ca5b5 Resolved x-edge parallel plane cuts b2cd275 Documentation tweaks 2f1df1a Resolved merge conflict ac2fb75 New valid regression test image 43e4b1c Handle multiple contour values properly 590bac4 Added new class vtkStaticPointLocator d84d87f Addressed dashboard warnings 62fbfd2 Additional dashboard warnings eae76a8 Tweaked documentation 7aabf45 Replaced qsort with std::sort 82a6c1d New class to create links from points to cells 6198ab4 Fully fleshed out and working; 2.5x faster 340b750 Cleaned dashboard warnings ceb8664 Separated templated code; created wrappable class 1c2a693 Performance related refactoring 4bd8735 Tested and working fc96d38 Fixed memory leak c79ca6b Dealing with memory leak issues 3298ad0 Encapsulated helper class in anonymous namespace 9d7356e Adapted back to multibuild workflow 8d8b2bd Dashboard warnings f6c3cc4 Documentation polish Xabi Riobe (22): 646281d Support more PLY texture coordinates syntax. cb06bdd Add unit test 82f6ac1 Add return value check in the unit test. 3d9660a Do not retain the windows events if they are not treated 6364c9d Set the CS_DBLCLKS flag to receive double-click notifications 3f0cf7b Fix issue with polygon offset being left on 033623d A depth peeling fix when compositing 288d016 Write vertex texture coordinates with vtkPLYWriter b639014 Write comments in ply header 2b0fc60 Avoid use of STL list in header, and remove unnecessary array copy b8ddc3e Add unit test for vtkPLYWriter ab83686 Do not retain the windows events if they are not treated c01e3fe Add missing include for OSX and Linux 282a843 Multiple includes restriction 7fca806 Missing include for TCL d3e302a Remove the extra Render performed by the interactor on WM_PAINT. e9ddeae Use memory pointers to reduce vtkSmoothPolyDataFilter computation time 2b6e40a Reduce vtkPolyDataConnectivityFilter computation time 40495fc Make the code easier to read 8d07c5c Optimization by using direct memory pointers 9879045 Fix the documentation for vtkImageData::GetDimensions 38b636b Return the MouseWheel event as a pending event in Win32 RenderWindow Yumin Yuan (2): 55cdc4f Use visible blocks to compute bounds in CompositePolyDataMapper2 0ac9fcf Update baselines for CompositePolyDataMapper2 tests Zlib Upstream (1): ef8ea74 zlib: update to for/vtk peter karasev (9): 739364c write test showing catastrophic fail with QT5+Win32, make fix(es). 743bd12 update shader program checks 9ddc3eb update rendering code; locally all the tests are passing a26dc78 Merge branch 'master' of gitlab.kitware.com:vtk/vtk into vtkOBJImporter-robustify-and-cleanup 449410b update shader program checks 8e5648f update rendering code; locally all the tests are passing 440d086 fix for annotation rendering test 2f6915f remove incorrect error popup (QT5 + local build + OpenGL 4.x) b4138f4 STY: fix vtkErrorMacro and linelength From devmail.andi at yahoo.de Thu Dec 17 15:52:40 2015 From: devmail.andi at yahoo.de (Andreas Bruening) Date: Thu, 17 Dec 2015 20:52:40 +0000 (UTC) Subject: [vtkusers] 64Bit memory problems In-Reply-To: References: Message-ID: <247401319.720926.1450385560875.JavaMail.yahoo@mail.yahoo.com> Hey, i checked the configuration. The target platform is x64. In the taskmanager the process is also marked as x64. Also I checked the libs and dlls. But i think it is not possible to link 32bit files.?Can you tell me which settings can influence such behaviour?I use the preprocessor define: vtkRenderingCore_INCLUDE and the header includes the following lines.? #define vtkRenderingCore_AUTOINIT 2(vtkInteractionStyle, vtkRenderingOpenGL)#define vtkRenderingVolume_AUTOINIT 1(vtkRenderingVolumeOpenGL)? Can this maybe corrupt the memory? Thanks for your help!Andi "Kischell, Eric R., M.S." schrieb am 15:22 Donnerstag, 17.Dezember 2015: Andi, I assume that your VC++ x64 platform configuration is set properly? All libs throughout your build chain should be x64 too. Are your link settings correct i.e. MachineX64 (/MACHINE:X64)? e.- -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Andreas Br?ning Sent: Wednesday, December 16, 2015 4:38 PM To: vtkusers at vtk.org Subject: [vtkusers] 64Bit memory problems Hello, I developed a tool to perform different types of Volume Rendering for Windows plattform. The code is written in C++. I use Visual Studio 2013 and VTK 6.1. So far everything is developed in 32bit and works very well. Now i want to switch to 64 bit. I rebuilt VTK with CMake for 64Bit and set VTK_USE_64BIT_IDS. I checked some of the VTK examples and it works. But not in my project. As soon as i create a VTK object it seems that the objects memory is corrupted. The program crashes afterwards with memory access errors. The non VTK parts runs stabil. It is strange. For testing i create a vtkRenderWindow right after entering the main entrypoint. When i check the member the Interactor for example points to 0x000000000000001. That looks like corrupted memory because the interactor member is set to zero in the constructor. I don't know how to fix it, so maybe somebody had similar problems and knows what I have to do. Is there maybe a Project configuration which i should keep an eye of? I guess CMake is not the problem because the VTK examples with the same VTK dlls work perfect. Please help me and thanks in advance Andi _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Thu Dec 17 23:00:25 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Thu, 17 Dec 2015 21:00:25 -0700 (MST) Subject: [vtkusers] changing cursor representation within qvtk? In-Reply-To: References: Message-ID: <1450411225092-5735578.post@n5.nabble.com> Hi Evils, Did you solve this problem? I'm facing the same situation. Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/changing-cursor-representation-within-qvtk-tp5734482p5735578.html Sent from the VTK - Users mailing list archive at Nabble.com. From gregory.baert at inserm.fr Fri Dec 18 05:18:44 2015 From: gregory.baert at inserm.fr (gregory.baert at inserm.fr) Date: Fri, 18 Dec 2015 03:18:44 -0700 (MST) Subject: [vtkusers] vtkPropPicker Pick method access violation Message-ID: <1450433924342-5735579.post@n5.nabble.com> Hello, I would like to develop a medical application with VTK and C++ Builder (dicom files) I compiled succesfuly VTK 5.6.1 in C++ Builder XE2. I modified and installed a Borland package with a VTK viewer. I would like to know the position (X, Y) of the mouse in the viewer and the corresponding gray level. The method "Pick" of the vtkPropPicker class cause access violations and I don't know why ... The same code in C++ Builder without using the Borland VTK viewer (in a MS-DOS console application) works fine. Best regards, -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPropPicker-Pick-method-access-violation-tp5735579.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Fri Dec 18 09:17:37 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 18 Dec 2015 09:17:37 -0500 Subject: [vtkusers] vtkPropPicker Pick method access violation In-Reply-To: <1450433924342-5735579.post@n5.nabble.com> References: <1450433924342-5735579.post@n5.nabble.com> Message-ID: Hi Gregory, I stack trace, code, link to some code, or some other hints would be helpful for people on the list to give you some ideas of what might be happening. I'm not sure how many people are using Borland these days, but maybe someone can chime in with some help. - Cory On Fri, Dec 18, 2015 at 5:18 AM, gregory.baert at inserm.fr < gregory.baert at inserm.fr> wrote: > Hello, > > I would like to develop a medical application with VTK and C++ Builder > (dicom files) > > I compiled succesfuly VTK 5.6.1 in C++ Builder XE2. I modified and > installed > a Borland package with a VTK viewer. > > I would like to know the position (X, Y) of the mouse in the viewer and the > corresponding gray level. > The method "Pick" of the vtkPropPicker class cause access violations and I > don't know why ... > > The same code in C++ Builder without using the Borland VTK viewer (in a > MS-DOS console application) works fine. > > Best regards, > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkPropPicker-Pick-method-access-violation-tp5735579.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Fri Dec 18 09:34:01 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Fri, 18 Dec 2015 07:34:01 -0700 (MST) Subject: [vtkusers] changing cursor representation within qvtk? In-Reply-To: References: Message-ID: <1450449241699-5735581.post@n5.nabble.com> Hi people, I'm facing the same issue described here. Additionally, I tried to change the cursor using Qt setCursor method, but again I had no luck. Has anyone had this problem before? Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/changing-cursor-representation-within-qvtk-tp5734482p5735581.html Sent from the VTK - Users mailing list archive at Nabble.com. From gregory.baert at inserm.fr Fri Dec 18 10:01:56 2015 From: gregory.baert at inserm.fr (gregory.baert at inserm.fr) Date: Fri, 18 Dec 2015 08:01:56 -0700 (MST) Subject: [vtkusers] vtkPropPicker Pick method access violation In-Reply-To: References: <1450433924342-5735579.post@n5.nabble.com> Message-ID: <1450450916774-5735583.post@n5.nabble.com> Thank you for your response, I found the problem. In fact, I used a vtkSmartPointer into a local method of my VCL Form. I sent to the callback funtion via the setter method : void SetPicker(vtkPropPicker *picker) { this->m_Picker = picker; } and in this callback function, when I used the "m_Picker" instance variable, the program failed with access violation. I saw that the reference count was 0 for "m_Picker". So, I used a vtkPropPicker instance in the header of my VCL Form (create on constructor of the Form) At the moment, my program works fine. As I am beginner in VTK, I will have other problems certainly Best regards, Hi Gregory, I stack trace, code, link to some code, or some other hints would be helpful for people on the list to give you some ideas of what might be happening. I'm not sure how many people are using Borland these days, but maybe someone can chime in with some help. - Cory On Fri, Dec 18, 2015 at 5:18 AM, gregory.baert@ < gregory.baert@> wrote: > Hello, > > I would like to develop a medical application with VTK and C++ Builder > (dicom files) > > I compiled succesfuly VTK 5.6.1 in C++ Builder XE2. I modified and > installed > a Borland package with a VTK viewer. > > I would like to know the position (X, Y) of the mouse in the viewer and > the > corresponding gray level. > The method "Pick" of the vtkPropPicker class cause access violations and I > don't know why ... > > The same code in C++ Builder without using the Borland VTK viewer (in a > MS-DOS console application) works fine. > > Best regards, > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkPropPicker-Pick-method-access-violation-tp5735579.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen 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: http://public.kitware.com/mailman/listinfo/vtkusers Hi Gregory, I stack trace, code, link to some code, or some other hints would be helpful for people on the list to give you some ideas of what might be happening. I'm not sure how many people are using Borland these days, but maybe someone can chime in with some help. - Cory On Fri, Dec 18, 2015 at 5:18 AM, gregory.baert@ < gregory.baert@> wrote: > Hello, > > I would like to develop a medical application with VTK and C++ Builder > (dicom files) > > I compiled succesfuly VTK 5.6.1 in C++ Builder XE2. I modified and > installed > a Borland package with a VTK viewer. > > I would like to know the position (X, Y) of the mouse in the viewer and > the > corresponding gray level. > The method "Pick" of the vtkPropPicker class cause access violations and I > don't know why ... > > The same code in C++ Builder without using the Borland VTK viewer (in a > MS-DOS console application) works fine. > > Best regards, > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/vtkPropPicker-Pick-method-access-violation-tp5735579.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen 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: http://public.kitware.com/mailman/listinfo/vtkusers -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkPropPicker-Pick-method-access-violation-tp5735579p5735583.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Fri Dec 18 11:40:01 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 18 Dec 2015 11:40:01 -0500 Subject: [vtkusers] CFP - Eurographics 2016 Symposium on Parallel Graphics and Visualization (EGPGV 2016) Message-ID: [We aplogize if you receive multiple copies of this message.] Eurographics 2016 Symposium on Parallel Graphics and Visualization (EGPGV 2016) =============================================================================== June 6-7, 2016, Groningen, the Netherlands Co-located with EuroVis 2016 www.egpgv.org Call for Papers ================ The importance of parallel computing is increasing rapidly with the ubiquitous availability of multi-core CPUs, GPUs, and cluster systems. Computationally demanding and data-intensive applications in graphics and visualization are strongly affected by this trend and require novel efficient parallel solutions. The aim of this symposium is to foster the exchange of experiences and knowledge exploiting and defining new trends in parallel graphics and visualization. The proceedings of the EGPGV Symposium will be published in the Eurographics Proceedings Series and in the Eurographics Digital Library. Best papers from the EGPGV symposium will be invited to submit an extended journal version to IEEE Transactions on Visualization and Computer Graphics. Focusing on parallel computing, the symposium seeks papers on graphics and visualization techniques, data structures, algorithms, and systems for: - large-data - clusters - (multi-)GPU computing, and heterogeneous, hybrid architectures - out-of-core - hybrid distributed and shared memory architectures - grid and cloud environments In particular the symposium topics include: - computationally and data intensive rendering - scientific visualization (volume rendering, flow and tensor visualization) - information visualization and visual analytics - simulations for virtual environments (physics-based animation, collision detection, acoustics) - mesh processing, level-of-detail, and geometric methods - visual computing (image- and video-based rendering, image processing and exploitation, segmentation) - scheduling, memory management and data coherence - large and high resolution displays, virtual environments - scientific, engineering, and industrial applications Important Dates ================= Paper Submission: February 19, 2016 Author Notification: April 1, 2016 Camera-Ready papers: April 15, 2016 Symposium: June 6-7, 2016 Submission instructions ======================== You are invited to submit original and unpublished research works. Full papers are expected to be eight to ten (8-10) pages in length, with the final length appropriate to the contribution of the paper. Submissions are to be formatted along the Eurographics paper publication guidelines. We expect that the submissions will clearly discuss the novel and significant contributions as well as related work in the field. Authors must highlight how their contributions differ and advance the state of the art in parallel graphics and visualization. The full paper and all supplementary material must be submitted via the PCS online system. Additional submission details will be announced shortly on egpgv.org. Symposium Chair ================= Alexandru Telea, University of Groningen, the Netherlands Program Chairs =============== Wes Bethel, Lawrence Berkeley National Laboratory, USA Enrico Gobbetti, CRS4, Italy Program Committee ================== To be announced soon on the event's website (egpgv.org) -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.j.redmond at gmail.com Fri Dec 18 12:31:59 2015 From: michael.j.redmond at gmail.com (Michael Redmond) Date: Fri, 18 Dec 2015 12:31:59 -0500 Subject: [vtkusers] Announce: vtk 7.0.0 release candidate 1 is ready In-Reply-To: References: Message-ID: I reported a bug issue id 0015892. It's a bug for opengl2. Extra cells are shown in 2nd/3rd renderer layers. I've seen the bug in 6.3 and 7.0rc1. I've checked with the official 64 bit python release and my own 6.3 builds. On Dec 17, 2015 2:39 PM, "David E DeMarle" wrote: > The VTK developement team is happy to announce that VTK 7.0 has entered > the release candidate stage! > > You can find the source, data, and vtkpython binary packages here: > > http://www.vtk.org/download/#candidate > > Please try this version of VTK and report any issues to the list or the > bug tracker so that we can try to address them before VTK 7.0.0 final. > > The official release notes will be available when VTK final is released > in the next few weeks. In the meantime here is a preview: > > The big news is that the OpenGL"new" backend is now the default and that > VTK is for the first time compatible with Python 3. > > Other new functionality includes: > - the introduction of the Flying Edges SMP optimized (very fast) > isocontour filter > - a new and improved vtkPUnstructuredGridGhostCells filter that > efficiently creates ghost cells in DMP parallel contexts. > - allow the Python Global Interpreter Lock (GIL) for multithreaded Python > routines > - offscreen rendering through EGL now supported > - remove vtkFreeTypeUtilities > > Improvements to existing functionality includes: > - optimizations to the Contingency Statistics class which provides a > significant performance boost when using only integer or floating point > data > - improved MPAS file handling including including arbitrary vertical > dimensions and more general attribute reading > - modernize depth sorting code. In tests the improved depth sort is 2 to > 3x faster than before. > - fixes to the ExodusWriter, especially when handling side sets and node set > data. > - updates to the PLY Writer > > Some of the changes that affect building and using VTK in applications > include: > - the OpenGL2 backend requires newer rendering capabilities than its > predecessor > - QtWebKit is no longer part of the Qt build group and thus easier to do > without > - vtkStreamer and related classes are deprecated; use vtkStreamTracer > instead. > - a new option (when building with newer CMake) to build with C++11 support > - add support for Visual Studio 2015 > - Java 1.6 is now the minimum version that is tested; 1.5 may not work > - remove support for OSX10.5 Leopard and the Carbon (OSX9 compatibility > layer) API > - remove support for gcc 4.1 > > And many bug fixes across the codebase. > > We hope you enjoy this release of VTK! As always, contact Kitware and > the mailing lists for assistance. > > Thanks, > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From algomorph at gmail.com Fri Dec 18 12:55:24 2015 From: algomorph at gmail.com (Gregory Kramida) Date: Fri, 18 Dec 2015 12:55:24 -0500 Subject: [vtkusers] CMake, UseVTK.cmake and CUDA incompatibility Message-ID: <5674488C.60709@gmail.com> Dear all, I'm experiencing a CMake problem caused by UseVTK.cmake (VTK version 6.3 release). I have a large CMake project with multiple targets. Some use VTK, some use PCL (which uses VTK). One uses neither, but does use the Nvidia CUDA package. Here is what happens: 1) find_package(PCL) in my CMake code automatically runs PCLConfig.cmake. 2) PCLConfig.cmake includes UseVTK.cmake after find_package(VTK) is successful (note: this is the intended use, I'm assuming there is nothing wrong with this). 3) UseVTK.cmake adds a trainload of flags to CMAKE_C_FLAGS and CMAKE_CXX_FLAGS CMake variables directly (!!Something wrong with this schema -- discussed later!!). 4) Even though a certain target does not link/use VTK or PCL, the way the CMake default CUDA handling works is that these flags are passed to the nvcc compiler, i.e. here's what gets executed: ---------begin quote----------- /usr/local/cuda/bin/nvcc -M -D__CUDACC__ /home//quickshift_gpu.cu -o /home//reco_segmentation_generated_quickshift_gpu.cu.o.NVCC-depend -ccbin /usr/bin/c++ -m64 -D_DEBUG -DvtkRenderingContext2D_AUTOINIT=1 ( vtkRenderingContextOpenGL ) -DvtkRenderingCore_AUTOINIT=3 ( vtkInteractionStyle,vtkRenderingFreeType,vtkRenderingOpenGL ) -DvtkRenderingVolume_AUTOINIT=1 ( vtkRenderingVolumeOpenGL ) -Dreco_segmentation_EXPORTS -Xcompiler ,\"-Wall\",\"-std=c++11\",\"-fPIC\",\"-g\" -DNVCC -I/usr/local/cuda/include -I/usr/local/include/vtk-6.3 -I/usr/local/cuda/include ---------end quote------------- -- instead of simply: ---------begin quote----------- /usr/local/cuda/bin/nvcc /home//quickshift_gpu.cu -c -o /home//reco_segmentation_generated_quickshift_gpu.cu.o -ccbin /usr/bin/c++ -m64 -D_DEBUG -Dreco_segmentation_EXPORTS -Xcompiler ,\"-Wall\",\"-std=c++11\",\"-fPIC\",\"-g\" -DNVCC -I/usr/local/cuda/include -I/usr/local/cuda/include ---------end quote------------- Whereas the latter command funs fine, the former fails with "nvcc fatal : A single input file is required for a non-link phase when an outputfile is specified". Now, syntax such as "set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VTK_REQUIRED_CXX_FLAGS}")" is not supposed to be used in UseXXX.CMake files, it is intended for CMake macros/functions(1). Clearly, it causes unintended problems. The modern way to do things like this is to add the flags to something like VTK_CXX_FLAGS, so that the user may use the target_compile_definitions(...) command (2) to add them to specific targets. Ideally, off course, the preprocessor definitions should be set in config header files that are configured by cmake *at the time of VTK CMake generation*, such as /Common/Core/vtkConfigure.h.in. This way they are defined when the target project includes the headers (which is done any way), and avoid the need for separate target_compile_definitions calls. 1) How do I get around this and get CUDA working on this target without losing PCL/VTK support for other targets? 2) Is there any rationale behind setting compiler flags in CMake instead of in header config files? Is there any rationale behind explicitly modifying the CMake flags variables in the UseVTK.cmake script? Thanks, Greg [1] https://cmake.org/Wiki/CMake/Tutorials/How_to_create_a_ProjectConfig.cmake_file [2] https://cmake.org/cmake/help/v3.2/command/target_compile_definitions.html -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Fri Dec 18 16:16:58 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Fri, 18 Dec 2015 14:16:58 -0700 (MST) Subject: [vtkusers] How to control frame duration in vtkFFMPEGWriter? Message-ID: <1450473418344-5735589.post@n5.nabble.com> Hi all, I'm trying to control the frame duration of a vtkFFMPEGWriter generated video, but I'm not having luck. I'm asking myself why the method vtkFFMPEGWriter::SetRatio accepts a integer as input instead of a floating point type. If so I could set, for example, a value of 1/5 and control the frame duration. Any thoughts about that? Thanks, Jo?o. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-control-frame-duration-in-vtkFFMPEGWriter-tp5735589.html Sent from the VTK - Users mailing list archive at Nabble.com. From dennisnguy at yahoo.com Fri Dec 18 17:00:59 2015 From: dennisnguy at yahoo.com (dieutan) Date: Fri, 18 Dec 2015 15:00:59 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries Message-ID: <1450476059781-5735590.post@n5.nabble.com> Hi Everyone, I'm a newbie to the VTK and I'm upgrading my application which is using VTK version 4.2 to 7.0. I got some errors from compiling using Visual Studio C++ 2010 error C2039: 'SetGlobalAntiAliasingToNone' : is not a member of 'vtkTextProperty' error C2039: 'SetInput' : is not a member of 'vtkPolyDataMapper' error C2039: 'RenderTranslucentGeometry' : is not a member of 'vtkActor' Which equivalents function to these above functions I can use from version 7.0 I notice the built libraries name changed, for example vtkRendering.lib (version 4.2) and a list of vtkRendering-----.lib libraries. Which libraries should I use? Can I group the list of libraries into 1 as vtkRendering.lib, if yes, how? Thanks in advance, Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590.html Sent from the VTK - Users mailing list archive at Nabble.com. From drescherjm at gmail.com Fri Dec 18 17:07:04 2015 From: drescherjm at gmail.com (John Drescher) Date: Fri, 18 Dec 2015 17:07:04 -0500 Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1450476059781-5735590.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> Message-ID: > I'm a newbie to the VTK and I'm upgrading my application which is using VTK > version 4.2 to 7.0. > I would stop right there. This most likely will not be an easy task for someone that is new to VTK. John From leonid_dulman at yahoo.co.uk Sat Dec 19 09:28:11 2015 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Sat, 19 Dec 2015 14:28:11 +0000 (UTC) Subject: [vtkusers] Announce: vtk 7.0.0 release candidate 1 is ready In-Reply-To: References: Message-ID: <527169957.1792669.1450535291214.JavaMail.yahoo@mail.yahoo.com> Dear Sir I tried to build VTK 7.0.0 RC1 for win32 with Qt 5.6.0 beta, ?but have got errors from CMAKE 3.3.2 CMake Error: Qt5::moc target not found EasyView_automoc CMake Error: Qt5::moc target not found CustomLinkView_automoc CMake Error: Qt5::moc target not found StatsView_automoc And in compile process Severity?? ?Code?? ?Description?? ?Project?? ?File?? ?Line?? ?Suppression State Error?? ?MSB6006?? ?"cmd.exe" exited with code 123.?? ?vtkGUISupportQt?? ?C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\Microsoft.CppCommon.targets?? ?171?? ? Thank you for any help From: David E DeMarle To: vtkdev ; "vtkusers at vtk.org" Cc: Kitware Corporate Communications Sent: Thursday, December 17, 2015 9:39 PM Subject: [vtkusers] Announce: vtk 7.0.0 release candidate 1 is ready The?VTK?developement team is happy to announce that?VTK?7.0?has entered the?release?candidate?stage! You can find the source, data, and vtkpython binary packages here: http://www.vtk.org/download/#candidate Please try this version of?VTK?and report any issues to the list or the bug tracker so that we can try to address them before?VTK?7.0.0?final. The official?release?notes will be available when?VTK?final is?released in the next few weeks. In the meantime here is a?preview: The big news is that the OpenGL"new" backend is now the default and that VTK is for the first time compatible with Python 3. Other new functionality includes:- the introduction of the Flying Edges SMP optimized (very fast) isocontour filter- a new and improved?vtkPUnstructuredGridGhostCells filter that efficiently creates ghost cells in DMP parallel contexts.?- allow the Python Global Interpreter Lock (GIL) for multithreaded Python routines- offscreen rendering through EGL now supported - remove vtkFreeTypeUtilities Improvements to existing functionality includes:- optimizations to the Contingency Statistics class which provides a significant?performance boost when using only integer or floating point data - improved MPAS file handling including?including arbitrary?vertical dimensions and more general attribute reading- modernize depth sorting code. In tests the improved depth sort is 2 to 3x faster than before.- fixes to the ExodusWriter, especially when handling side sets and node?set data. - updates to the PLY Writer Some of the changes that affect building and using VTK in applications include:- the OpenGL2 backend requires newer rendering capabilities than its predecessor-?QtWebKit is no longer part of the Qt build group and thus easier to do without - vtkStreamer and related classes are deprecated; use vtkStreamTracer?instead. - a new option (when building with newer CMake) to build with C++11 support - add support for Visual Studio 2015-?Java 1.6 is now the minimum version that is tested; 1.5 may not work - remove support for OSX10.5 Leopard and the Carbon (OSX9 compatibility layer) API - remove support for gcc 4.1 And many bug fixes across the codebase. We hope you enjoy this?release?of?VTK! As always, contact Kitware and the mailing lists for assistance. Thanks, David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 _______________________________________________ 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: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From cn999 at mail.ustc.edu.cn Sun Dec 20 04:55:36 2015 From: cn999 at mail.ustc.edu.cn (cn999) Date: Sun, 20 Dec 2015 02:55:36 -0700 (MST) Subject: [vtkusers] Camera Message-ID: <1450605336580-5735594.post@n5.nabble.com> Dear all? I have a question about rendering in VTK.Could I set position of camera in an array and update the scene one by one? thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Camera-tp5735594.html Sent from the VTK - Users mailing list archive at Nabble.com. From nasil122002 at yahoo.de Sun Dec 20 11:06:57 2015 From: nasil122002 at yahoo.de (Yusuf OEZBEK) Date: Sun, 20 Dec 2015 16:06:57 +0000 (UTC) Subject: [vtkusers] saving vtkPolyData after vtkClipPolyData issue References: <882517698.2241179.1450627617278.JavaMail.yahoo.ref@mail.yahoo.com> Message-ID: <882517698.2241179.1450627617278.JavaMail.yahoo@mail.yahoo.com> ?Hello, I want to save my polydata after clipping with vtkBoxWidget. If I run following code-block, the saved file is empty.?What can be my mistake here? ? m_Clip= vtkSmartPointer::New(); ? m_Clip->SetClipFunction(m_Plane); ? m_Clip->InsideOutOn(); ? m_Clip->SetInputConnection(m_Decimater->GetOutputPort()); ? m_PolyDataSave= vtkSmartPointer::New(); ? m_PolyDataSave->ShallowCopy(m_Clip->GetOutput()); ? m_PolyDataWriter = vtkSmartPointer::New(); ? m_PolyDataWriter->SetFileName("clippedObject.vtk"); ? m_PolyDataWriter->SetInput(m_PolyDataSave); ? m_PolyDataWriter->SetFileTypeToASCII();? m_PolyDataWriter->Write(); Thank you for any help! -------------- next part -------------- An HTML attachment was scrubbed... URL: From timtitan at gmail.com Sun Dec 20 11:19:48 2015 From: timtitan at gmail.com (timtitan) Date: Sun, 20 Dec 2015 16:19:48 +0000 Subject: [vtkusers] Stl file import and Visible Polygons Message-ID: Hello I am looking for advice on VTK, I need to import stl files and then for a given set of spherical coordinates get a list of all visible triangles of a subset of the imported files. I can then use the vertices and normals of the triangles for aperture processing, but while I have no problem with importing stl files and rendering them, I don't have a fast way of isolating the visible triangles for a given angle. I read the example on the wiki, and was wondering if you could give me your advice. I don't want to display it each time, as I need to extract the cell id list of visible triangles for a large set of spherical coordinates. I can then use the cell ids to pass the polygons to my function for processing for area, orientation and other things. Many Thanks for your time Tim -------------- next part -------------- An HTML attachment was scrubbed... URL: From biomates at telefonica.net Sun Dec 20 13:57:55 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Sun, 20 Dec 2015 19:57:55 +0100 Subject: [vtkusers] Select items in Legend Message-ID: <5676FA33.6000808@telefonica.net> Hi, Is it possible to select the curves to be referenced in the legend of a chart plot? Whenever I SetShowLegend to true, the legend shows all the curves, included those named with an empty string. -- Mario From francesco81492 at gmail.com Sun Dec 20 15:09:12 2015 From: francesco81492 at gmail.com (Francesco R) Date: Sun, 20 Dec 2015 21:09:12 +0100 Subject: [vtkusers] android examples openGL ES 2.0 Message-ID: Dear vtk users and developers, I am currently trying to run the two android examples with OpenGL ES 2.0 backend available in vtk 7.0.0 rc1, on an ARM Mali 400 MP GPU. Unfortunately, I am not able to run neither of them on the device. NativeVTK crashes at Rendering/OpenGL2/vtkShaderProgram.cxx, line 399 with "Shader object was not initialized, cannot attach it." See also http://pastebin.com/Wvew3gen for the full log. JavaVTK appears to interact correctly with the user (see http://pastebin.com/w3Sdu7CC ), but only a blue background is shown. The trace file obtained with the android device monitor is available at http://filebin.ca/2QdKao08I3lb/trace1.gltrace Do you have any suggestion on what could be the issue? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.buckler at elucidbio.com Sun Dec 20 18:31:03 2015 From: andrew.buckler at elucidbio.com (Andrew J. Buckler (Elucid Bioimaging)) Date: Sun, 20 Dec 2015 23:31:03 +0000 Subject: [vtkusers] How avoid QVTKWidget crash on exit Message-ID: Hello, I am successfully using QVTKWidgets with one nagging exception. Despite my best efforts at handling the smart and non-smart pointers, I get an exception caused by something in VTK when trying to exit the application. All smart pointers in VTK (and ITK) are handled by setting to NULL rather than deleting, and all is fine until the very end, when something during the Qt deletion ends up calling ~vtkFreeTypeToolsCleanup which causes the exception. I do not know if this helps but I am calling theQvtkWidget->SetRenderWindow(NULL); before delting the ui (and which does not give any problems). I am not doing anything for the interactors, as unclear whether I should even be doing this, and I do not see a corresponding call for the interactors anyway. Thoughts? Thank you, Andy -------------- next part -------------- An HTML attachment was scrubbed... URL: From theryame at gmail.com Mon Dec 21 06:31:54 2015 From: theryame at gmail.com (=?UTF-8?Q?Am=C3=A9lie_Thery?=) Date: Mon, 21 Dec 2015 12:31:54 +0100 Subject: [vtkusers] Highlight vtkBoxWidget face by moving the mouse Message-ID: Hi everyone ! I am trying to highlight a vtkBoxWidget face, when the mouse position is over it, and without picking it. I have this for the moment : case WM_MOUSEMOVE: LPPOINT PT=(LPPOINT)malloc(sizeof(LPPOINT)); ::GetCursorPos(PT); vtkSmartPointer picker=vtkSmartPointer::New(); picker->Pick(PT->x, PT->y, 0, this->ren); double* pos = picker->GetPickPosition(); and now I don't know what to do because if I get the actor of the picker, the whole BoxWidget comes and I just want the face. Any help? Thank you, Am?lie -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Mon Dec 21 07:36:02 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Mon, 21 Dec 2015 05:36:02 -0700 (MST) Subject: [vtkusers] How avoid QVTKWidget crash on exit In-Reply-To: References: Message-ID: <1450701362985-5735603.post@n5.nabble.com> Could you paste your widget destructor? I use QVTKWidget regularly and in the QDialog (or other kind of parent) destructor I just delete ui. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-avoid-QVTKWidget-crash-on-exit-tp5735601p5735603.html Sent from the VTK - Users mailing list archive at Nabble.com. From drescherjm at gmail.com Mon Dec 21 07:50:48 2015 From: drescherjm at gmail.com (John Drescher) Date: Mon, 21 Dec 2015 07:50:48 -0500 Subject: [vtkusers] How avoid QVTKWidget crash on exit In-Reply-To: References: Message-ID: > I do not know if this helps but I am calling > theQvtkWidget->SetRenderWindow(NULL); before delting the ui (and which does > not give any problems). I am not doing anything for the interactors, as > unclear whether I should even be doing this, and I do not see a > corresponding call for the interactors anyway. > > > > Thoughts? > If this is Visual Studio (and vtk is built as dlls) make sure you are using VTK compiled with the version of Visual Studio that you use. And if you installed vtk as Release make sure you only build your application as Release. Same goes with debug. The reason for this is you will have more than 1 heap if you use a different version of visual studio or are mixing debug and release. Having more than 1 heap will lead to random looking application crashes because you can not safely allocate memory in 1 heap and free it in a second. John From cory.quammen at kitware.com Mon Dec 21 09:03:06 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Dec 2015 09:03:06 -0500 Subject: [vtkusers] Highlight vtkBoxWidget face by moving the mouse In-Reply-To: References: Message-ID: I don't know exactly how to do what you want, but you might want to take a look at vtkBoxWidget::HighlightFace(int cellId) for some clues how to do this. Hope that helps, Cory On Mon, Dec 21, 2015 at 6:31 AM, Am?lie Thery wrote: > Hi everyone ! > I am trying to highlight a vtkBoxWidget face, when the mouse position is > over it, and without picking it. > > I have this for the moment : > case WM_MOUSEMOVE: > LPPOINT PT=(LPPOINT)malloc(sizeof(LPPOINT)); > ::GetCursorPos(PT); > vtkSmartPointer > picker=vtkSmartPointer::New(); > picker->Pick(PT->x, PT->y, 0, this->ren); > double* pos = picker->GetPickPosition(); > > and now I don't know what to do because if I get the actor of the picker, > the whole BoxWidget comes and I just want the face. > Any help? > Thank you, > Am?lie > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Mon Dec 21 10:00:41 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Mon, 21 Dec 2015 08:00:41 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable Message-ID: <1450710041205-5735607.post@n5.nabble.com> Dear all, I am currently using some vtkLogoWidget in my java application. I would like to make them static in some way. Is there something like setDraggable(false) for this kind of object? Regards Vincent -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Dec 21 10:08:35 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Dec 2015 10:08:35 -0500 Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1450710041205-5735607.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> Message-ID: You might try some of the following member functions: EnabledOff(); Off(); The full list of member functions is available here: http://www.vtk.org/doc/nightly/html/classvtkLogoWidget-members.html Let us know if these work. HTH, Cory On Mon, Dec 21, 2015 at 10:00 AM, vincentrivola wrote: > Dear all, > > I am currently using some vtkLogoWidget in my java application. > I would like to make them static in some way. Is there something like > setDraggable(false) for this kind of object? > > Regards > > Vincent > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Mon Dec 21 10:22:02 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Mon, 21 Dec 2015 08:22:02 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: References: <1450710041205-5735607.post@n5.nabble.com> Message-ID: <1450711322123-5735609.post@n5.nabble.com> Thank you for your fast reply. I tried both of them actually. But they hide the widget, they don't make it undraggable. I also tried to disable picking management, and selection but there is no difference. Is it possible that it comes from the java wrapper not implementing some functionalities which are actually present in C++? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735609.html Sent from the VTK - Users mailing list archive at Nabble.com. From vincentrivola at hotmail.com Mon Dec 21 10:44:53 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Mon, 21 Dec 2015 08:44:53 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1450711322123-5735609.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> Message-ID: <1450712693243-5735611.post@n5.nabble.com> To give you more information, here is part of the code: vincentrivola wrote > File logoFile = new File(getClass().getResource(fileName).toURI()); > vtkPNGReader pngReader = new vtkPNGReader(); > pngReader.SetFileName(logoFile.getPath()); > pngReader.Update(); > > vtkLogoRepresentation logoRepresentation = new vtkLogoRepresentation(); > logoRepresentation.SetImage(pngReader.GetOutput()); > logoRepresentation.SetPosition(posX,0.85); > logoRepresentation.SetPosition2(0.15, 0.15); > logoRepresentation.GetImageProperty().SetOpacity(1.0); > logoRepresentation.SetDragable(0); > logoRepresentation.SetPickable(0); > logoRepresentation.SetProportionalResize(1); > logoRepresentation.SetPickingManaged(false); > > vtkLogoWidget logoWidget = new vtkLogoWidget(); > logoWidget.SetRepresentation(logoRepresentation); > logoWidget.SetInteractor(panel3d.getRenderWindowInteractor()); > logoWidget.On(); As you can see I also tried to disable selection, picking and draggability on the vtkLogoRepresentation element, but it does not change anything. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735611.html Sent from the VTK - Users mailing list archive at Nabble.com. From theryame at gmail.com Mon Dec 21 10:55:11 2015 From: theryame at gmail.com (=?UTF-8?Q?Am=C3=A9lie_Thery?=) Date: Mon, 21 Dec 2015 16:55:11 +0100 Subject: [vtkusers] Highlight vtkBoxWidget face by moving the mouse In-Reply-To: References: Message-ID: Thank you :) I need to find how getting this cellId now ! If anyone else has an idea, I would be grateful ! 2015-12-21 15:03 GMT+01:00 Cory Quammen : > I don't know exactly how to do what you want, but you might want to take a > look at vtkBoxWidget::HighlightFace(int cellId) for some clues how to do > this. > > Hope that helps, > Cory > > On Mon, Dec 21, 2015 at 6:31 AM, Am?lie Thery wrote: > >> Hi everyone ! >> I am trying to highlight a vtkBoxWidget face, when the mouse position is >> over it, and without picking it. >> >> I have this for the moment : >> case WM_MOUSEMOVE: >> LPPOINT PT=(LPPOINT)malloc(sizeof(LPPOINT)); >> ::GetCursorPos(PT); >> vtkSmartPointer >> picker=vtkSmartPointer::New(); >> picker->Pick(PT->x, PT->y, 0, this->ren); >> double* pos = picker->GetPickPosition(); >> >> and now I don't know what to do because if I get the actor of the picker, >> the whole BoxWidget comes and I just want the face. >> Any help? >> Thank you, >> Am?lie >> >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Mon Dec 21 11:04:19 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Dec 2015 11:04:19 -0500 Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1450712693243-5735611.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> Message-ID: Skimming the code in vtkLogoWidget's parent class vtkBorderRepresentation, it looks like there is no way to disable dragging at the moment. One could change the code in vtkBorderRepresentation::WidgetInteraction(double eventPos[2]) in the switch statement case for vtkBorderRepresentation::Inside to also check if dragable is set to off, e.g. case vtkBorderRepresentation::Inside: if ( this->Moving* && this->Dragable*) { par1[0] = par1[0] + delX; par1[1] = par1[1] + delY; par2[0] = par2[0] + delX; par2[1] = par2[1] + delY; } break; Note the change in bold. Would you want to give this a try and see if that works? Thanks, Cory On Mon, Dec 21, 2015 at 10:44 AM, vincentrivola wrote: > To give you more information, here is part of the code: > > > vincentrivola wrote > > File logoFile = new > File(getClass().getResource(fileName).toURI()); > > vtkPNGReader pngReader = new vtkPNGReader(); > > pngReader.SetFileName(logoFile.getPath()); > > pngReader.Update(); > > > > vtkLogoRepresentation logoRepresentation = new > vtkLogoRepresentation(); > > logoRepresentation.SetImage(pngReader.GetOutput()); > > logoRepresentation.SetPosition(posX,0.85); > > logoRepresentation.SetPosition2(0.15, 0.15); > > > logoRepresentation.GetImageProperty().SetOpacity(1.0); > > logoRepresentation.SetDragable(0); > > logoRepresentation.SetPickable(0); > > logoRepresentation.SetProportionalResize(1); > > logoRepresentation.SetPickingManaged(false); > > > > vtkLogoWidget logoWidget = new vtkLogoWidget(); > > logoWidget.SetRepresentation(logoRepresentation); > > > logoWidget.SetInteractor(panel3d.getRenderWindowInteractor()); > > logoWidget.On(); > > As you can see I also tried to disable selection, picking and draggability > on the vtkLogoRepresentation element, but it does not change anything. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735611.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennisnguy at yahoo.com Mon Dec 21 12:32:18 2015 From: dennisnguy at yahoo.com (dieutan) Date: Mon, 21 Dec 2015 10:32:18 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: References: <1450476059781-5735590.post@n5.nabble.com> Message-ID: <1450719138995-5735615.post@n5.nabble.com> Hi John, Thanks for the advice. I understand that it is not an easy task; Unfortunately, I have to update the VTK from version 4.2 to 7.0 and my application which built with visual studio C++ v6.0 to visual studio 2010. I have been able to build the VTK version 7.0 rc1 with visual studio C++ 2010, and been able to compile my application (with few line of code commented out). I'm working on linking my application and VTK libraries using visual studio C++ 2010. Best, Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590p5735615.html Sent from the VTK - Users mailing list archive at Nabble.com. From nbigaouette at gmail.com Mon Dec 21 14:20:48 2015 From: nbigaouette at gmail.com (Nicolas Bigaouette) Date: Mon, 21 Dec 2015 14:20:48 -0500 Subject: [vtkusers] VTK and Yocto Message-ID: Hi all, I'm working on a project that integrates Qt's QML with VTK. I inspired myself from this code to integrate VTK into QML: https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6 For testing purpose, I was able to run the application (QML + VTK) under a Ubuntu 15.10 Server install which does *not* install the X server. It does contain a /usr/lib/libGL.so though, which VTK seems to require, even if QML uses the "eglfs" platform plugin (OpenGL ES 2.0, see http://doc.qt.io/qt-5/embedded-linux.html). This project is meant to run on a device of which the OS is built using Yocto *without *X11, similarly to what Ubuntu Server provides. But while I could build VTK, QML and my application on my Ubuntu workstation and copy these files to the Ubuntu Server machine to run, I can't do this for the real project running from a Yocto image. I need to compile VTK (in addition to any other library) through the Yocto build system (bitbake). The only recipes I've found for VTK on Yocto is this one from Marc Ferland: https://github.com/mferland/meta-vtk Unfortunately: 1) It is 2 years old and applies for an old release of VTK 2) It assumes that Yocto is including X11 (through the DISTRO_FEATURES="x11") 3) It is targeting OpenEmbedded (instead of Yocto) After adapting the recipe for VTK 7.0.0.rc1, I cannot build it. From the original recipe, I removed dependencies on x11-related libraries (virtual/libx11 virtual/libgl libxt xserver-xorg-extension-glx) and everything Python related. What I don't understand is that recipe uses "-DVTK_USE_X:BOOL=OFF". But I still get errors dues to missing X11 libraries. For example, I am getting: | CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): | Could NOT find OSMesa (missing: OSMESA_LIBRARY OSMESA_INCLUDE_DIR) | Call Stack (most recent call first): | CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) | CMake/FindOSMesa.cmake:45 (find_package_handle_standard_args) | CMake/vtkOpenGL.cmake:59 (find_package) | ThirdParty/glew/vtkglew/CMakeLists.txt:3 (include) My questions are: 1) Can I compile VTK *without *having any X11 libraries? 2) What does the cmake flag VTK_USE_X do? 3) Does it make sense to build VTK without x11 if I will be using VTK from C++ including these headers: QOpenGLFunctions, QQuickFramebufferObject, QOpenGLFramebufferObject, vtkGenericOpenGLRenderWindow (like at https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6)? 4) How come I was able to run my QML+VTK example on the Qt platform EGLFS on a distro without X11? Thanks for any clarification! Regards, Nicolas -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Mon Dec 21 15:48:54 2015 From: vianamp at gmail.com (matheus_viana) Date: Mon, 21 Dec 2015 13:48:54 -0700 (MST) Subject: [vtkusers] Cloud of points to nonconvex surface Message-ID: <1450730934363-5735619.post@n5.nabble.com> Hi guys. I am trying to perform segmentation of 3D objects using the method described in [1]. The method has basically two steps 1) detection of points on the surface of the object of interest and 2) fitting the points by a closed parametric surface. I am looking for alternatives for the step 2. Please, check the enclosed image to see what my cloud of points look like. Do you guys think there is anything on VTK that I could use to generate a closed surface from these points? Is the class vtkSurfaceReconstructionFilter a good way to go? Not sure this class is able to produce closed surfaces though. I would appreciate any help. [1] - http://spie.org/Publications/Proceedings/Paper/10.1117/12.909278 Thanks a lot, Matheus Viana -- View this message in context: http://vtk.1045678.n5.nabble.com/Cloud-of-points-to-nonconvex-surface-tp5735619.html Sent from the VTK - Users mailing list archive at Nabble.com. From dennisnguy at yahoo.com Mon Dec 21 17:22:31 2015 From: dennisnguy at yahoo.com (dieutan) Date: Mon, 21 Dec 2015 15:22:31 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1450476059781-5735590.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> Message-ID: <1450736551393-5735620.post@n5.nabble.com> Hi Everyone, >From VTK version 4.2, I saw 1 library for the rendering group generated: vtkRendering.lib. >From version 7.0 rc1, there are 13 vtkRendering___.lib library files are generated using Visual studio C++ 2010: vtkRenderingAnnotation-7.0.lib vtkRenderingContext2D-7.0.lib vtkRenderingContextOpenGL-7.0.lib vtkRenderingCore-7.0.lib vtkRenderingFreeType-7.0.lib vtkRenderingGL2PS-7.0.lib vtkRenderingImage-7.0.lib vtkRenderingLabel-7.0.lib vtkRenderingLIC-7.0.lib vtkRenderingLOD-7.0.lib vtkRenderingOpenGL-7.0.lib vtkRenderingVolume-7.0.lib vtkRenderingVolumeOpenGL-7.0.lib My questions are which library from version 7.0 is equivalent to the vtkRendering.lib library from version 4.2? >From VTK version 7.0 rc1, How to combine all vtkRenderring____.lib libraries into 1 library using CMAKE version 3.4.1? Thanks in advance, Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590p5735620.html Sent from the VTK - Users mailing list archive at Nabble.com. From drescherjm at gmail.com Mon Dec 21 17:27:40 2015 From: drescherjm at gmail.com (John Drescher) Date: Mon, 21 Dec 2015 17:27:40 -0500 Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1450736551393-5735620.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> <1450736551393-5735620.post@n5.nabble.com> Message-ID: > From VTK version 4.2, I saw 1 library for the rendering group generated: > vtkRendering.lib. > From version 7.0 rc1, there are 13 vtkRendering___.lib library files are > generated using Visual studio C++ 2010: > vtkRenderingAnnotation-7.0.lib > vtkRenderingContext2D-7.0.lib > vtkRenderingContextOpenGL-7.0.lib > vtkRenderingCore-7.0.lib > vtkRenderingFreeType-7.0.lib > vtkRenderingGL2PS-7.0.lib > vtkRenderingImage-7.0.lib > vtkRenderingLabel-7.0.lib > vtkRenderingLIC-7.0.lib > vtkRenderingLOD-7.0.lib > vtkRenderingOpenGL-7.0.lib > vtkRenderingVolume-7.0.lib > vtkRenderingVolumeOpenGL-7.0.lib > > My questions are which library from version 7.0 is equivalent to the > vtkRendering.lib library from version 4.2? There is a lot that has changed in 11+ years of development. It will not be a simple substitution. > From VTK version 7.0 rc1, How to combine all vtkRenderring____.lib libraries > into 1 library using CMAKE version 3.4.1? > You can not combine the libraries into a single library. The simplest way to use vtk is to generate your Visual Studio project for your application using CMake. John From dennisnguy at yahoo.com Mon Dec 21 18:45:01 2015 From: dennisnguy at yahoo.com (dieutan) Date: Mon, 21 Dec 2015 16:45:01 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: References: <1450476059781-5735590.post@n5.nabble.com> <1450736551393-5735620.post@n5.nabble.com> Message-ID: <1450741501918-5735623.post@n5.nabble.com> Hi John, Thanks again for the advice. I have been exercised with the CMAKE 3.41 to configure build option for Visual Studio C++ 2010. I'll continue to exercise the configuration options. Best, Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590p5735623.html Sent from the VTK - Users mailing list archive at Nabble.com. From drescherjm at gmail.com Mon Dec 21 18:50:47 2015 From: drescherjm at gmail.com (John Drescher) Date: Mon, 21 Dec 2015 18:50:47 -0500 Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1450741501918-5735623.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> <1450736551393-5735620.post@n5.nabble.com> <1450741501918-5735623.post@n5.nabble.com> Message-ID: > Thanks again for the advice. I have been exercised with the CMAKE 3.41 to > configure build option for Visual Studio C++ 2010. I'll continue to exercise > the configuration options. > If you are using CMake to generate your project file you do not list the libraries you have to link your application with. You use ${VTK_LIBRARIES} your TARGET_LINK_LIBRARIES instead of listing individual libraries. Here is an example: http://www.vtk.org/Wiki/VTK/Tutorials/CMakeListsFile John From laysrodriguessilva at gmail.com Mon Dec 21 19:41:17 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Mon, 21 Dec 2015 22:41:17 -0200 Subject: [vtkusers] Parse code from QVTKWidget to QVTKWidget2 Message-ID: Hi guys, I'm trying to parse my code to use QVTKWidget 2, and I made this: http://pastebin.com/nbKqxFfn from the examples on this link: https://gitlab.kitware.com/vtk/vtk/commit/4d19aa12a2b749dc8b1532c5367f4b745d1dfcf8 But, isn't working. libBRPRintInterface.a(vtkWidget.cpp.o): In function `vtkWidget::vtkWidget(QWidget*)': vtkWidget.cpp:(.text+0x3c): undefined reference to `QVTKWidget2::QVTKWidget2(QWidget*, QGLWidget const*, QFlags)' vtkWidget.cpp:(.text+0x1c0): undefined reference to `QVTKWidget2::GetRenderWindow()' vtkWidget.cpp:(.text+0x1e4): undefined reference to `QVTKWidget2::GetRenderWindow()' vtkWidget.cpp:(.text+0x209): undefined reference to `QVTKWidget2::SetRenderWindow(vtkGenericOpenGLRenderWindow*)' vtkWidget.cpp:(.text+0x230): undefined reference to `QVTKWidget2::GetRenderWindow()' vtkWidget.cpp:(.text+0x3a1): undefined reference to `QVTKWidget2::~QVTKWidget2()' Can anyone help me solve this? Thanks -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From nbigaouette at gmail.com Mon Dec 21 21:17:49 2015 From: nbigaouette at gmail.com (Nicolas Bigaouette) Date: Mon, 21 Dec 2015 21:17:49 -0500 Subject: [vtkusers] VTK and Yocto In-Reply-To: References: Message-ID: As a follow-up to my own question, I was able to go a little bit further VTK's build process. The error I've pasted (Could NOT find OSMesa)was fixed by compiling mesa with --enable-osmesa. For this I created a file named named *mesa_%.bbappend* in my layer's *recipes-graphics/mesa/* directory. That might not be the optimal solution (or even a working one) but at least the build process went a little bit further. The error I'm getting now is one that I have seen last week when trying multiple things in the Yocto build system. Running cmake fails and I have a hard time identifying the source of the problem. The problem surely comes from not understanding properly the Yocto build system. Even though I am building for an x86_64 NUC device from an Ubuntu 14.04 x86_64, the compilation by bitbake/yocto is a *cross-compilation*. The more I think the more I believe my problems comes from badly setting up that cross-compilation. Yocto should be doing it but VTK requires some extra work. Marc Ferland's patch located in his layer ( https://github.com/mferland/meta-vtk/blob/master/recipes-vtk/vtk/files/0001-vtkCompileTools-Add-a-CompileTools-group.patch) adds a "vtkCompileTools" group. Would that still be necessary to cross-compile VTK v7.0? The patch does not apply to VTK 7; I tried to re-create it but either the problem is elsewhere, VTK shouldn't be patched or I'm doing it wrong. This post by Tim Thirion describe a new (as of VTK 6.2.0) way to cross-compile for Android or iOS: http://www.kitware.com/blog/home/post/860 I haven't looked yet in VTK's CMakeLists.txt what these options do but could that be a lead? As a reference, here is how cmake was called by bitbake: > cmake > /home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/git > -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_BINDIR:PATH=/usr/bin > -DCMAKE_INSTALL_SBINDIR:PATH=/usr/sbin > -DCMAKE_INSTALL_LIBEXECDIR:PATH=/usr/lib/vtk > -DCMAKE_INSTALL_SYSCONFDIR:PATH=/etc > -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=/com > -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=/var > -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib > -DCMAKE_INSTALL_INCLUDEDIR:PATH=/usr/include > -DCMAKE_INSTALL_DATAROOTDIR:PATH=/usr/share -DCMAKE_INSTALL_SO_NO_EXE=0 > -DCMAKE_TOOLCHAIN_FILE=/home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/toolchain.cmake > -DCMAKE_VERBOSE_MAKEFILE=1 -DBUILD_DOCUMENTATION:BOOL=OFF > -DBUILD_EXAMPLES:BOOL=OFF -DBUILD_SHARED_LIBS:BOOL=ON > -DBUILD_TESTING:BOOL=OFF -DCMAKE_BUILD_TYPE:STRING=Release > -DVTK_USE_SYSTEM_EXPAT:BOOL=ON -DVTK_USE_SYSTEM_FREETYPE:BOOL=ON > -DVTK_USE_SYSTEM_JPEG:BOOL=ON -DVTK_USE_SYSTEM_LIBXML2:BOOL=ON > -DVTK_USE_SYSTEM_PNG:BOOL=ON -DVTK_USE_SYSTEM_ZLIB:BOOL=ON > -DVTK_USE_SYSTEM_TIFF:BOOL=ON -DVTK_USE_SYSTEM_HDF5:BOOL=ON > -DVTK_USE_X:BOOL=OFF -DVTK_WRAP_PYTHON:BOOL=OFF -DVTK_WRAP_JAVA:BOOL=OFF > -DVTK_WRAP_TCL:BOOL=OFF > -DVTKCompileTools_DIR=/home/nbigaouette/yocto/build/tmp/sysroots/x86_64-linux/usr/lib/cmake/vtk-7.0 > -DVTK_Group_Imaging:BOOL=OFF -DVTK_Group_Qt:BOOL=OFF > -DVTK_Group_Rendering:BOOL=OFF -DVTK_Group_Views:BOOL=OFF > -DVTK_Group_Web:BOOL=OFF -Wno-dev Note the -DCMAKE_TOOLCHAIN_FILE points to a file with this content (automatically created by bitbake): > # CMake system name must be something like "Linux". > # This is important for cross-compiling. > set( CMAKE_SYSTEM_NAME Linux ) > set( CMAKE_SYSTEM_PROCESSOR x86_64 ) > set( CMAKE_C_COMPILER x86_64-poky-linux-gcc ) > set( CMAKE_CXX_COMPILER x86_64-poky-linux-g++ ) > set( CMAKE_ASM_COMPILER x86_64-poky-linux-gcc ) > set( CMAKE_AR x86_64-poky-linux-ar CACHE FILEPATH "Archiver" ) > set( CMAKE_C_FLAGS " -m64 -march=corei7 -mtune=corei7 -mfpmath=sse > -msse4.2 --sysroot=/home/nbigaouette/Codes/git/yocto/yocto-ctm > s.git/build/tmp/sysroots/intel-corei7-64 -O2 -pipe -g > -feliminate-unused-debug-types" CACHE STRING "CFLAGS" ) > set( CMAKE_CXX_FLAGS " -m64 -march=corei7 -mtune=corei7 -mfpmath=sse > -msse4.2 --sysroot=/home/nbigaouette/Codes/git/yocto/yocto-c > tms.git/build/tmp/sysroots/intel-corei7-64 -O2 -pipe -g > -feliminate-unused-debug-types -fvisibility-inlines-hidden" CACHE STRING > "CXXFLAGS" ) > set( CMAKE_ASM_FLAGS " -m64 -march=corei7 -mtune=corei7 -mfpmath=sse > -msse4.2 --sysroot=/home/nbigaouette/Codes/git/yocto/yocto-c > tms.git/build/tmp/sysroots/intel-corei7-64 -O2 -pipe -g > -feliminate-unused-debug-types" CACHE STRING "ASM FLAGS" ) > set( CMAKE_C_FLAGS_RELEASE "-O2 -pipe -g -feliminate-unused-debug-types > -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG" CAC > HE STRING "CFLAGS for release" ) > set( CMAKE_CXX_FLAGS_RELEASE "-O2 -pipe -g -feliminate-unused-debug-types > -O2 -pipe -g -feliminate-unused-debug-types -fvisibilit > y-inlines-hidden -DNDEBUG" CACHE STRING "CXXFLAGS for release" ) > set( CMAKE_ASM_FLAGS_RELEASE "-O2 -pipe -g -feliminate-unused-debug-types > -O2 -pipe -g -feliminate-unused-debug-types -DNDEBUG" C > ACHE STRING "ASM FLAGS for release" ) > set( CMAKE_C_LINK_FLAGS " -m64 -march=corei7 -mtune=corei7 -mfpmath=sse > -msse4.2 > --sysroot=/home/nbigaouette/yocto/build/tmp/sysroots/intel-corei7-64 > -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed" CACHE STRING "LDFLAGS" ) > set( CMAKE_CXX_LINK_FLAGS " -m64 -march=corei7 -mtune=corei7 -mfpmath=sse > -msse4.2 > --sysroot=/home/nbigaouette/yocto/build/tmp/sysroots/intel-corei7-64 -O2 > -pipe -g -feliminate-unused-debug-types -fvisibility-inlines-hidden -Wl,-O1 > -Wl,--hash-style=gnu -Wl,--as-needed" CACHE STRING "LDFLAGS" ) > # only search in the paths provided so cmake doesnt pick > # up libraries and tools from the native build machine > set( CMAKE_FIND_ROOT_PATH > /home/nbigaouette/yocto/build/tmp/sysroots/intel-corei7-64 > /home/nbigaouette/yocto/build/tmp/sysroots/x86_64-linux ) > set( CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY ) > set( CMAKE_FIND_ROOT_PATH_MODE_PROGRAM ONLY ) > set( CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY ) > set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY ) > # Use qt.conf settings > set( ENV{QT_CONF_PATH} > /home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/qt.conf > ) > # We need to set the rpath to the correct directory as cmake does not > provide any > # directory as rpath by default > set( CMAKE_INSTALL_RPATH ) > # Use native cmake modules > list(APPEND CMAKE_MODULE_PATH > "/home/nbigaouette/yocto/build/tmp/sysroots/intel-corei7-64/usr/share/cmake/Modules/") > # add for non /usr/lib libdir, e.g. /usr/lib64 > set( CMAKE_LIBRARY_PATH /usr/lib /lib) The cmake command above fails with: > -- Looking for include file pthread.h > -- Looking for include file pthread.h - found > -- Looking for include file pthread.h - found > -- Configuring incomplete, errors occurred! > See also > "/home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/build/CMakeFiles/CMakeOutput.log". > See also > "/home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/build/CMakeFiles/CMakeError.log". > -- Configuring incomplete, errors occurred! > See also > "/home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/build/CMakeFiles/CMakeOutput.log". > See also > "/home/nbigaouette/yocto/build/tmp/work/corei7-64-poky-linux/vtk/7.0.0.rc1+gitAUTOINC+bfbdc62b93-r0/build/CMakeFiles/CMakeError.log". which is not really helpful. The content of CMakeOutput.log is here: http://hastebin.com/okelazekop.vhdl The content of CMakeError.log is here: http://hastebin.com/yivijemupi.pl Any clue or suggestion as to how to cross-compile VTK? Thanks! Regards, Nicolas 2015-12-21 14:20 GMT-05:00 Nicolas Bigaouette : > Hi all, > > I'm working on a project that integrates Qt's QML with VTK. I inspired > myself from this code to integrate VTK into QML: > https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6 > > For testing purpose, I was able to run the application (QML + VTK) under a > Ubuntu 15.10 Server install which does *not* install the X server. It > does contain a /usr/lib/libGL.so though, which VTK seems to require, even > if QML uses the "eglfs" platform plugin (OpenGL ES 2.0, see > http://doc.qt.io/qt-5/embedded-linux.html). > > This project is meant to run on a device of which the OS is built using > Yocto *without *X11, similarly to what Ubuntu Server provides. But while > I could build VTK, QML and my application on my Ubuntu workstation and copy > these files to the Ubuntu Server machine to run, I can't do this for the > real project running from a Yocto image. I need to compile VTK (in addition > to any other library) through the Yocto build system (bitbake). > > The only recipes I've found for VTK on Yocto is this one from Marc > Ferland: https://github.com/mferland/meta-vtk > Unfortunately: > 1) It is 2 years old and applies for an old release of VTK > 2) It assumes that Yocto is including X11 (through the > DISTRO_FEATURES="x11") > 3) It is targeting OpenEmbedded (instead of Yocto) > > After adapting the recipe for VTK 7.0.0.rc1, I cannot build it. From the > original recipe, I removed dependencies on x11-related libraries > (virtual/libx11 virtual/libgl libxt xserver-xorg-extension-glx) and > everything Python related. > > What I don't understand is that recipe uses "-DVTK_USE_X:BOOL=OFF". But I > still get errors dues to missing X11 libraries. For example, I am getting: > > | CMake Error at CMake/FindPackageHandleStandardArgs.cmake:97 (MESSAGE): > | Could NOT find OSMesa (missing: OSMESA_LIBRARY OSMESA_INCLUDE_DIR) > | Call Stack (most recent call first): > | CMake/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE) > | CMake/FindOSMesa.cmake:45 (find_package_handle_standard_args) > | CMake/vtkOpenGL.cmake:59 (find_package) > | ThirdParty/glew/vtkglew/CMakeLists.txt:3 (include) > > > > My questions are: > 1) Can I compile VTK *without *having any X11 libraries? > 2) What does the cmake flag VTK_USE_X do? > 3) Does it make sense to build VTK without x11 if I will be using VTK from > C++ including these headers: QOpenGLFunctions, QQuickFramebufferObject, > QOpenGLFramebufferObject, vtkGenericOpenGLRenderWindow (like at > https://gist.github.com/nocnokneo/c3fb01bb7ecaf437f7d6)? > 4) How come I was able to run my QML+VTK example on the Qt platform EGLFS > on a distro without X11? > > Thanks for any clarification! > > Regards, > > Nicolas > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Tue Dec 22 01:28:59 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Mon, 21 Dec 2015 23:28:59 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> Message-ID: <1450765739743-5735628.post@n5.nabble.com> Hi, I tried what you suggested. So, I made the change in vtkBorderRepresentation.cxx, I recompiled everything, and used the new vtk.jar in my application. Unfortunately, it does not solve the issue. The logos are still dragable. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735628.html Sent from the VTK - Users mailing list archive at Nabble.com. From gregory.baert at inserm.fr Tue Dec 22 03:02:14 2015 From: gregory.baert at inserm.fr (Mercusyo) Date: Tue, 22 Dec 2015 01:02:14 -0700 (MST) Subject: [vtkusers] Problem with vtkInteractorStyleImage Message-ID: <1450771333999-5735629.post@n5.nabble.com> Hello, I continue my medical application and I have some trouble with the "vtkInteractorStyleImage" : VTK 5.6.1 with C++ Builder XE2. I subclass the interactor style in my application as : http://www.cmake.org/Wiki/VTK/Examples/Cxx/Interaction/MouseEvents Like : class MouseInteractorStyle1 : public vtkInteractorStyleImage { public: static MouseInteractorStyle1* New(); vtkTypeMacro(MouseInteractorStyle1, vtkInteractorStyleImage); virtual void OnLeftButtonDown() { // Forward events vtkInteractorStyleImage::OnLeftButtonDown(); } virtual void OnRightButtonDown() { // Forward events vtkInteractorStyleImage::OnRightButtonDown(); } }; But the line vtkInteractorStyleImage::OnLeftButtonDown(); is not called ... because I do not have the "window/level" event. Thanks, Best regards, -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-vtkInteractorStyleImage-tp5735629.html Sent from the VTK - Users mailing list archive at Nabble.com. From ben.boeckel at kitware.com Tue Dec 22 08:48:21 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 22 Dec 2015 08:48:21 -0500 Subject: [vtkusers] Parse code from QVTKWidget to QVTKWidget2 In-Reply-To: References: Message-ID: <20151222134821.GA11335@megas.khq.kitware.com> On Mon, Dec 21, 2015 at 22:41:17 -0200, Lays Rodrigues wrote: > Can anyone help me solve this? The QVTKWidget2 class is in this library: vtkGUISupportQtOpenGL Did you add it to your link line? --Ben From laysrodriguessilva at gmail.com Tue Dec 22 09:23:31 2015 From: laysrodriguessilva at gmail.com (Lays Rodrigues) Date: Tue, 22 Dec 2015 12:23:31 -0200 Subject: [vtkusers] Parse code from QVTKWidget to QVTKWidget2 In-Reply-To: <20151222134821.GA11335@megas.khq.kitware.com> References: <20151222134821.GA11335@megas.khq.kitware.com> Message-ID: Hi Ben, Weel after add that variable to CmakeLists, the build runs without error. However when I try to run the app, this errors appears and the program crash: http://pastebin.com/YZXMDDNH Att 2015-12-22 11:48 GMT-02:00 Ben Boeckel : > On Mon, Dec 21, 2015 at 22:41:17 -0200, Lays Rodrigues wrote: > > Can anyone help me solve this? > > The QVTKWidget2 class is in this library: > > vtkGUISupportQtOpenGL > > Did you add it to your link line? > > --Ben > -- __ *Lays Rodrigues* *Front-End Developer at Br-Print3D Project(KDE)* *Computer Science Student at UFF/PURO* Organizadora da Semana da Computa??o UFF-PURO www.facebook.com/semanacomputacaopuro www.facebook.com/brprint3d www.brprint3d.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Tue Dec 22 09:38:46 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Tue, 22 Dec 2015 09:38:46 -0500 Subject: [vtkusers] Parse code from QVTKWidget to QVTKWidget2 In-Reply-To: References: <20151222134821.GA11335@megas.khq.kitware.com> Message-ID: <20151222143846.GA19118@megas.khq.kitware.com> On Tue, Dec 22, 2015 at 12:23:31 -0200, Lays Rodrigues wrote: > Weel after add that variable to CmakeLists, the build runs without error. > However when I try to run the app, this errors appears and the program > crash: > http://pastebin.com/YZXMDDNH Hmm. Seems that there's some issue with the way the OpenGL context is set up? Anyone with more knowledge about this have an idea? --Ben From sebastien.jourdain at kitware.com Tue Dec 22 11:49:03 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 22 Dec 2015 09:49:03 -0700 Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1450765739743-5735628.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> <1450765739743-5735628.post@n5.nabble.com> Message-ID: Why do you use "vtkLogoWidget" if you don't want it to be draggable? On Mon, Dec 21, 2015 at 11:28 PM, vincentrivola wrote: > Hi, > > I tried what you suggested. So, I made the change in > vtkBorderRepresentation.cxx, I recompiled everything, and used the new > vtk.jar in my application. > > Unfortunately, it does not solve the issue. The logos are still dragable. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735628.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennisnguy at yahoo.com Tue Dec 22 13:45:34 2015 From: dennisnguy at yahoo.com (dieutan) Date: Tue, 22 Dec 2015 11:45:34 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: References: <1450476059781-5735590.post@n5.nabble.com> <1450736551393-5735620.post@n5.nabble.com> <1450741501918-5735623.post@n5.nabble.com> Message-ID: <1450809934212-5735635.post@n5.nabble.com> Hi John, I'm using CMAKE to generate VTK project file and using Visual Studio C++ 2010 to generate VTK libraries. After the VTK libraries have been generated, I used VS C++ 2010 to configure my application which include the link to VTK libraries. I'm not using CMAKE to generate my application project file. Thanks for the link to the tutorial, I need to study the VTK. Best, Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590p5735635.html Sent from the VTK - Users mailing list archive at Nabble.com. From c.spanakis83 at gmail.com Wed Dec 23 03:11:13 2015 From: c.spanakis83 at gmail.com (Constantinus Spanakis) Date: Wed, 23 Dec 2015 10:11:13 +0200 Subject: [vtkusers] Conversion Example Message-ID: Hello. I am a new user of VTK and I was wondering if there is an example of 3D file (VRML, OBJ, etc) conversion to Image Conversion(mha, mhd+raw). This email has been sent from a virus-free computer protected by Avast. www.avast.com <#DDB4FAA8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: From andronakiy at gmail.com Wed Dec 23 03:15:42 2015 From: andronakiy at gmail.com (Yuri A.) Date: Wed, 23 Dec 2015 10:15:42 +0200 Subject: [vtkusers] Building VTK 7.0.0 for PCL 1.8.0 Message-ID: Good day everyone. I'm trying to build VTK for PCL library. Well VTK itself is compiled like a charm, without any error. But inside some the PCL files are some dependencies to those files: #include "vtkgl.h" #include "vtkOpenGLExtensionManager.h" #include And me and my compiler can't find those. It looks like file vtkgl.h should be generated by cmake and put into "/Rendering/vtkgl.h". But there is none. What settings should i use in Cmake for VTK? Or that file is not being generated anymore? What am i doing wrong? If you're interested my settings you can see in the attachments to the letter (not sure how attachments work in mailing list). Anyway than you, and have a good day. Yuri. -------------- next part -------------- A non-text attachment was scrubbed... Name: 2015-12-23.png Type: image/png Size: 87859 bytes Desc: not available URL: From marco.dev.open at gmail.com Wed Dec 23 09:30:25 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Wed, 23 Dec 2015 18:00:25 +0330 Subject: [vtkusers] itk and vtk for NDK Message-ID: Hi, is there any reference or example source code for building itk and vtk for Android with NDK ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Wed Dec 23 15:46:11 2015 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 23 Dec 2015 15:46:11 -0500 Subject: [vtkusers] Building VTK 7.0.0 for PCL 1.8.0 In-Reply-To: References: Message-ID: Included below is a response to a similar email from a while back - Ken vtkgl.h can be replaced with vtk_glew.h the extension manager is not in the new backend but glew should provide any extension checking support you need although with a different interface I am not sure about vtkVisibleCellSelector Thanks Ken Ken Martin Nov 19 to VictorLamoine, vtk If you are using the generic Rendering API (vtkActor/vtkCamera/etc) then code should mostly work unchanged. If you are directly working with the OpenGL implementation then the conversion really depends on what you were doing as the implementation is fairly different. In terms of the two specific issues you mentioned vtkgl.h can probably be replaced with vtk_glew.h, I do not recall what vtkOpenGLHardwareSupport does but there is no match for that class in the new backend. Given that you have a class named vtkVertexBufferObject I am guessing you are getting into very specific implementation details so the conversion may not be trivial. On the plus side the new back end includes classes such as vtkOpenGLVertexBufferObject so ... If you have further questions/roadblocks let me know and I'll try to point you in the right direction. P.S. vtkOpenGLPointGaussianMapper in the new backend may be worth a look too as it renders both points and splats etc. Thanks Ken On Thu, Nov 19, 2015 at 5:10 PM, VictorLamoine wrote: > Hello, > > The library I'm using (Point Cloud Library) cannot be compiled as is > against > a VTK version with OpenGL2 back end. (I'm using VTK trunk) > There are some missing includes etc. > > Error examples: > > > In file included from > > /home/victor/libraries/pcl > /src/visualization/src/vtk/vtkVertexBufferObject.cxx:15:0: > > /home/victor/libraries/pcl/src/visualization/include/pcl > /visualization/vtk/vtkVertexBufferObject.h:35:62: > > fatal error: vtkgl.h: No such file or directory > > #include "vtkgl.h" // Needed for gl data types exposed in API > > ^ > > compilation terminated. > > [ 50%] Built target pcl_poisson_reconstruction > > In file included from > > /home/victor/libraries/pcl > /src/visualization/src/vtk/vtkVertexBufferObjectMapper.cxx:18:0: > > /home/victor/libraries/pcl/src/visualization/include/pcl > /visualization/vtk/vtkVertexBufferObject.h:35:62: > > fatal error: vtkgl.h: No such file or directory > > #include "vtkgl.h" // Needed for gl data types exposed in API > > ^ > > compilation terminated. > > > > /home/victor/libraries/pcl > /src/visualization/src/pcl_visualizer.cpp:87:38: > > fatal error: vtkOpenGLHardwareSupport.h: No such file or directory > > #include > > > > ^ > > compilation terminated. > > Is there a migration guide helping users getting their code working with > OpenGL2 back end? > if not, how do I make the association between old/new includes? (and maybe > there are some differences in the classes ?) > > Bye > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Migrating-from-OpenGL-to-OpenGL2-tp5735123.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > On Wed, Dec 23, 2015 at 3:15 AM, Yuri A. wrote: > Good day everyone. > > I'm trying to build VTK for PCL library. Well VTK itself is compiled > like a charm, without any error. But inside some the PCL files are > some dependencies to those files: > > #include "vtkgl.h" > #include "vtkOpenGLExtensionManager.h" > #include > > And me and my compiler can't find those. > > It looks like file vtkgl.h should be generated by cmake and put into > "/Rendering/vtkgl.h". But there is none. What settings should i use in > Cmake for VTK? Or that file is not being generated anymore? What am i > doing wrong? > > If you're interested my settings you can see in the attachments to the > letter (not sure how attachments work in mailing list). > > Anyway than you, and have a good day. > > Yuri. > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 518 371 3971 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 mcfiddish at gmail.com Wed Dec 23 20:52:54 2015 From: mcfiddish at gmail.com (Hari Nair) Date: Wed, 23 Dec 2015 20:52:54 -0500 Subject: [vtkusers] 6.3.0 Compilation failure on OS X 10.10 Message-ID: Hi All - I'm getting compilation errors with 6.3.0 on OS X 10.10. My cmake line is cmake -DVTK_WRAP_JAVA:BOOL=ON ../VTK-6.3.0 I get the same errors when I use cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all.jar ../VTK-6.3.0 or cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all-noawt.jar ../VTK-6.3.0 The errors are In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:118:3: error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean 'JAWT_DrawingSurfaceInfo'? JAWT_MacOSXDrawingSurfaceInfo* dsi_mac; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JAWT_DrawingSurfaceInfo /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: note: 'JAWT_DrawingSurfaceInfo' declared here } JAWT_DrawingSurfaceInfo; ^ In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:14: error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo' dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; ^ /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:44: error: expected expression dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; ^ /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:120:31: error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo' temp0->SetWindowId(dsi_mac->cocoaViewRef); ~~~~~~~ ^ /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:219:3: error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean 'JAWT_DrawingSurfaceInfo'? JAWT_MacOSXDrawingSurfaceInfo* dsi_mac; ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ JAWT_DrawingSurfaceInfo /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: note: 'JAWT_DrawingSurfaceInfo' declared here } JAWT_DrawingSurfaceInfo; ^ In file included from /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:14: error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo' dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; ^ /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:44: error: expected expression dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; ^ /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:221:31: error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo' temp0->SetWindowId(dsi_mac->cocoaViewRef); ~~~~~~~ ^ 8 errors generated. make[2]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/vtkRenderWindowJava.mm.o] Error 1 make[1]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/all] Error 2 make: *** [all] Error 2 Any suggestions? VTK-7.0.0rc1 gave the same result. Thanks, Hari -- How did the world look on the day you were born? http://www.birthdayearth.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From itkhelpacc at gmail.com Thu Dec 24 02:44:38 2015 From: itkhelpacc at gmail.com (vishal) Date: Thu, 24 Dec 2015 00:44:38 -0700 (MST) Subject: [vtkusers] Visualize Intermediate result of ITK registration in vtk Message-ID: <1450943078684-5735644.post@n5.nabble.com> hi, Im trying to write a code that will visualize the Intermediate registration results (result after every iterations) in vtk. Im running the registration example code ImageResgistration2.cxx in ITK and i want to apply the translation parameters to a renderer in VTK after the every iteration... Could anyone please help me out...(i have test ItkVtkglue samople code and it is working fine)...any advice is appreciated. Regards Vishal -- View this message in context: http://vtk.1045678.n5.nabble.com/Visualize-Intermediate-result-of-ITK-registration-in-vtk-tp5735644.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Thu Dec 24 06:43:06 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Thu, 24 Dec 2015 04:43:06 -0700 (MST) Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis Message-ID: <1450957386793-5735645.post@n5.nabble.com> Hi VTK Users, I'm having an issue when defining the number of ticks of vtkChartXY bottom axis, even using SetNumberOfTicks method. The axis values are shown as time stamp strings (by using SetCustomTickPositions). Since there are many values, they appear overlapped (as shown in the attached image). I would like to show only 2 ticks as implemented in the code bellow: vtkSmartPointer timeStamps = vtkSmartPointer::New(); vtkSmartPointer timeStampStrings = vtkSmartPointer::New(); vtkSmartPointer scalars = vtkSmartPointer::New(); vtkSmartPointer chart = vtkSmartPointer::New(); // Populate the three arrays and set up vtkTable and vtkChartXY vtkSmartPointer bottomAxis = chart->GetAxis(vtkAxis::BOTTOM); bottomAxis->SetNumberOfTicks(2); bottomAxis->SetCustomTickPositions(timeStamps, timeStampStrings); Thanks for any help. Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645.html Sent from the VTK - Users mailing list archive at Nabble.com. From biomates at telefonica.net Fri Dec 25 05:00:08 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Fri, 25 Dec 2015 11:00:08 +0100 Subject: [vtkusers] vtkChartXY + setTitle + Tcl Message-ID: <567D13A8.9080307@telefonica.net> Hello, In my efforts to use vtkChartXY from Tcl scripts I write: vtkChartXY chart Now, if I want to set a title, or change the label of an axis, things like chart SetTitle "Chart" [chart GetAxis 1] SetTitle "Time" always throw the following error: Object named: chart, could not find requested method: SetTitle or the method was called with incorrect arguments. From documentation, seems that the origin of the problem is that SetTitle expects as argument an object of class vtkStdString, but all my attempts to make use of it were successless. Any help would be greatly appreciated. I am using vtk 6.3. -- Mario From oleg.krivosheev at xcision.com Fri Dec 25 17:02:18 2015 From: oleg.krivosheev at xcision.com (Oleg Krivosheev) Date: Fri, 25 Dec 2015 17:02:18 -0500 Subject: [vtkusers] Cloud of points to nonconvex surface In-Reply-To: <1450730934363-5735619.post@n5.nabble.com> References: <1450730934363-5735619.post@n5.nabble.com> Message-ID: Hi, Matheus not sure if it is related to VTK, but I've used radial basis function for implicit surface definitions, developed by Greg Turk from Georgia Tech Paper from his page: http://www.cc.gatech.edu/~turk/my_papers/vimp_tog.pdf there are quite a few of those papers/methods Code: https://github.com/Kri-Ol/RBF More code: https://github.com/bgrimstad/splinter regards Oleg On Mon, Dec 21, 2015 at 3:48 PM, matheus_viana wrote: > Hi guys. > > I am trying to perform segmentation of 3D objects using the method > described > in [1]. The method has basically two steps 1) detection of points on the > surface of the object of interest and 2) fitting the points by a closed > parametric surface. I am looking for alternatives for the step 2. Please, > check the enclosed image to see what my cloud of points look like. Do you > guys think there is anything on VTK that I could use to generate a closed > surface from these points? Is the class vtkSurfaceReconstructionFilter a > good way to go? Not sure this class is able to produce closed surfaces > though. I would appreciate any help. > > [1] - http://spie.org/Publications/Proceedings/Paper/10.1117/12.909278 > > Thanks a lot, > Matheus Viana > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Cloud-of-points-to-nonconvex-surface-tp5735619.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From josp.jorge at gmail.com Fri Dec 25 18:08:06 2015 From: josp.jorge at gmail.com (Jorge Perez) Date: Sat, 26 Dec 2015 00:08:06 +0100 Subject: [vtkusers] vtkChartXY + setTitle + Tcl In-Reply-To: <567D13A8.9080307@telefonica.net> References: <567D13A8.9080307@telefonica.net> Message-ID: Hello Mario, not all method are exported (wrapped) to Tcl. The Tcl wrapping capability is not receiving attention (only python). The method SetTitle that you are mentioning is one of those methods. When I need to invoke a method which is not wrapped what I usually do is implement (in C++) a helper procedure to invoke that method. Attached you can find an example which expose the SetTitle method for an object of class vtkAxis. For instance if you have an object of class vtkAxis: set axisX [chart GetAxis 1] instead of invoking: $axisX SetTitle "Seconds" I should invoke: vtkAxisAddon $axisX SetTitle "Seconds" (vtkAxisAddon is the proc implemented in C++) If you find this approach useful, I can provide you a full code (based on CMake) to create the tcl library to expose the method you are needing. best regards, Jorge 2015-12-25 11:00 GMT+01:00 Mario Rodriguez : > Hello, > > In my efforts to use vtkChartXY from Tcl scripts I write: > > vtkChartXY chart > > Now, if I want to set a title, or change the label of an axis, things like > > chart SetTitle "Chart" > [chart GetAxis 1] SetTitle "Time" > > always throw the following error: > > Object named: chart, could not find requested method: SetTitle > or the method was called with incorrect arguments. > > From documentation, seems that the origin of the problem is that SetTitle > expects as argument an object of class vtkStdString, but all my attempts to > make use of it were successless. > > Any help would be greatly appreciated. > > I am using vtk 6.3. > > -- > Mario > > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkChartAddon.cxx Type: text/x-c Size: 1836 bytes Desc: not available URL: From biomates at telefonica.net Sat Dec 26 12:07:13 2015 From: biomates at telefonica.net (Mario Rodriguez) Date: Sat, 26 Dec 2015 18:07:13 +0100 Subject: [vtkusers] vtkChartXY + setTitle + Tcl In-Reply-To: References: <567D13A8.9080307@telefonica.net> Message-ID: <567EC941.2060001@telefonica.net> El 26/12/15 a las 00:08, Jorge Perez escribi?: > Hello Mario, Hello Jorge, > not all method are exported (wrapped) to Tcl. The Tcl wrapping > capability is not receiving attention (only python). The method > SetTitle that you are mentioning is one of those methods. This is bad news for our project. > > When I need to invoke a method which is not wrapped what I usually do > is implement (in C++) a helper procedure to invoke that method. > Attached you can find an example which expose the SetTitle method for > an object of class vtkAxis. > .... > If you find this approach useful, I can provide you a full code (based > on CMake) to create the tcl library to expose the method you are needing. Thanks, but this is not a viable solution, at least for the moment. Our program must be build with any Common Lisp compiler and end users should only care on satisfying some additional dependencies (Tcl, Gnuplot, VTK). For the moment, as I see it, we have two alternatives: a) Make 2d plots with vtkChartXY without the ability of changing axes labels and title, waiting for a better Tcl support in Vtk, or b) Use vtkXYPlotActor instead. I have some vtkXYPlotActor examples worked out with Tcl which work fine with strings. At this moment, I am in favor of a). Since Maxima (maxima.sf.net) became GNU-GPL, we have used Gnuplot as our common graphics renderer. The problem is that Gnuplot is not good at 3D modeling, and that's why I started to work with Vtk. People is now interested in using Maxima together with Vtk, and I'd like to offer end users the possibility of 2D graphics with Vtk with the same Maxima syntax used for Gnuplot. Kind regards, and thanks again for your clarifications. -- Mario From martin.genet at polytechnique.edu Sat Dec 26 16:36:32 2015 From: martin.genet at polytechnique.edu (Martin Genet) Date: Sat, 26 Dec 2015 22:36:32 +0100 Subject: [vtkusers] vtkCellDerivatives Message-ID: <567F0860.60908@polytechnique.edu> Dear VTK users: I realize that the vtkCellDerivatives filter, when SetTensorModeToComputeStrain is activated, returns the symmetric part of the gradient of the input vector field, which is the linearized strain tensor, i.e., not a proper measure of deformation when large displacements are involved. Would that make sense to have two different modes, SetTensorModeToComputeLinearizedStrain or SetTensorModeToComputeSymmetricGradient, and SetTensorModeToComputeStrain or SetTensorModeToComputeGreenLagrangeStrain? Thanks! Martin From vincentrivola at hotmail.com Mon Dec 28 01:44:20 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Sun, 27 Dec 2015 23:44:20 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> <1450765739743-5735628.post@n5.nabble.com> Message-ID: <1451285060219-5735652.post@n5.nabble.com> Hi, I guess that it is because I am still a beginner with VTK developpment and I found the vtkLogoWidget example on the wiki which was quite close from what I wanted to do. However if there is something more appropriate, I would be happy to make the switch. I also tried to use only a vtkLogoRepresentation but did not manage to make it work. Is this what you had in mind? Regards -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735652.html Sent from the VTK - Users mailing list archive at Nabble.com. From wulihouxiaoshuai at 163.com Mon Dec 28 04:41:19 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Mon, 28 Dec 2015 02:41:19 -0700 (MST) Subject: [vtkusers] The maximum diameter of an irregular object Message-ID: <1451295679833-5735653.post@n5.nabble.com> Hello everyone, I want to compute the the maximum diamter of an irregular object using VTK, but I cannot find a proper way to do it after days of work. Does anyone know how to do this? Have anyone can give me some advice? Many thanks! Best Wishes! -- View this message in context: http://vtk.1045678.n5.nabble.com/The-maximum-diameter-of-an-irregular-object-tp5735653.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.bauer at kitware.com Mon Dec 28 08:12:15 2015 From: andy.bauer at kitware.com (Andy Bauer) Date: Mon, 28 Dec 2015 08:12:15 -0500 Subject: [vtkusers] vtkCellDerivatives In-Reply-To: <567F0860.60908@polytechnique.edu> References: <567F0860.60908@polytechnique.edu> Message-ID: Hi Martin, Changing the name of the SetTensorModeToComputeStrain method to something else would break backward compatibility which is generally avoided in VTK. Other options for this include deriving a class to compute non-linear strain from vtkCellDerivatives if it shares enough of the algorithm with the linearized version or maybe just creating a new filter. Cheers, Andy On Sat, Dec 26, 2015 at 4:36 PM, Martin Genet < martin.genet at polytechnique.edu> wrote: > Dear VTK users: > > I realize that the vtkCellDerivatives filter, when > SetTensorModeToComputeStrain is activated, returns the symmetric part of > the gradient of the input vector field, which is the linearized strain > tensor, i.e., not a proper measure of deformation when large displacements > are involved. Would that make sense to have two different modes, > SetTensorModeToComputeLinearizedStrain or > SetTensorModeToComputeSymmetricGradient, and SetTensorModeToComputeStrain > or SetTensorModeToComputeGreenLagrangeStrain? Thanks! > > Martin > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joachim.pouderoux at kitware.com Mon Dec 28 09:02:44 2015 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Mon, 28 Dec 2015 15:02:44 +0100 Subject: [vtkusers] saving vtkPolyData after vtkClipPolyData issue In-Reply-To: <882517698.2241179.1450627617278.JavaMail.yahoo@mail.yahoo.com> References: <882517698.2241179.1450627617278.JavaMail.yahoo.ref@mail.yahoo.com> <882517698.2241179.1450627617278.JavaMail.yahoo@mail.yahoo.com> Message-ID: Yusuf, In the code you provide, the clip filter is never executed. You should add m_Clip->Update(); - for instance just after the setinputconnection. Not related but you could directly plug the clip filter to the writer (no need to shallow copy the output of the clip filter): just replace m_PolyDataWriter->SetInput(m_PolyDataSave); by m_PolyDataWriter->SetInputConnection(m_Clip->GetOutputPort()); If you do so, calling Write() on the writer will execute the pipeline of the writer which involves the Clip filter too - so the clip filter would be called automatically even if you do not explicitly called Update() on it. Best, Joachim *Joachim Pouderoux* *PhD, Technical Expert* *Kitware SAS * 2015-12-20 17:06 GMT+01:00 Yusuf OEZBEK : > Hello, > > I want to save my polydata after clipping with vtkBoxWidget. If I run > following code-block, the saved file is empty. > What can be my mistake here? > > m_Clip= vtkSmartPointer::New(); > m_Clip->SetClipFunction(m_Plane); > m_Clip->InsideOutOn(); > m_Clip->SetInputConnection(m_Decimater->GetOutputPort()); > > m_PolyDataSave= vtkSmartPointer::New(); > m_PolyDataSave->ShallowCopy(m_Clip->GetOutput()); > > m_PolyDataWriter = vtkSmartPointer::New(); > m_PolyDataWriter->SetFileName("clippedObject.vtk"); > m_PolyDataWriter->SetInput(m_PolyDataSave); > m_PolyDataWriter->SetFileTypeToASCII(); > m_PolyDataWriter->Write(); > > Thank you for any 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Mon Dec 28 09:09:58 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Mon, 28 Dec 2015 07:09:58 -0700 (MST) Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis In-Reply-To: <1450957386793-5735645.post@n5.nabble.com> References: <1450957386793-5735645.post@n5.nabble.com> Message-ID: <1451311798109-5735657.post@n5.nabble.com> It seems that SetCustomTickPositions method doesn't respect the SetNumberOfTicks method. Any thoughts? -- View this message in context: http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645p5735657.html Sent from the VTK - Users mailing list archive at Nabble.com. From wangq1979 at outlook.com Mon Dec 28 09:06:23 2015 From: wangq1979 at outlook.com (WangQ) Date: Mon, 28 Dec 2015 22:06:23 +0800 Subject: [vtkusers] Rendering multiple objects in one render window Message-ID: Hello there, I am quite new to VTK, and I am trying to render a volume and an isosurface in one render window using viewpoint. I follow the example of http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/StructuredDataTypes but no luck so far. Here is the code I wrote. Could anyone help to figure out where is wrong? Would appreciate any help. // Create an image data vtkSmartPointer imageData = vtkSmartPointer::New(); // load data here // Define viewport ranges double upperViewport[4] = {0.0, 0.0, 1.0, 0.5}; double centerViewport[4] = {0.0, 0.5, 1.0, 1.0}; // create render window vtkSmartPointer renWin = vtkSmartPointer::New(); vtkSmartPointer iren = vtkSmartPointer::New(); renWin->SetSize(1200, 600); renWin->Render(); renWin->SetWindowName("Volume Clipping"); iren->SetRenderWindow(renWin); /**************************************************************** create volume renderer to render stacked tomograms ****************************************************************/ vtkSmartPointer volumeMapper = vtkSmartPointer::New(); volumeMapper->SetBlendModeToComposite(); // composite first volumeMapper->SetInputData(imageData); volumeMapper->SetInterpolationModeToLinear(); volumeMapper->SetRequestedRenderModeToGPU(); vtkSmartPointer volumeProperty = vtkSmartPointer::New(); volumeProperty->SetInterpolationType(VTK_LINEAR_INTERPOLATION); volumeProperty->ShadeOff(); vtkSmartPointer color = vtkSmartPointer::New(); //color->SetColorSpaceToRGB(); color->AddRGBPoint(0.0, 0.0, 0.0, 1.0); color->AddRGBPoint(0.25, 0.0, 1.0, 1.0); color->AddRGBPoint(0.5, 0.0, 1.0, 0.0); color->AddRGBPoint(0.75, 1.0, 1.0, 0.0); color->AddRGBPoint(1.0, 1.0, 0.0, 0.0); color->SetScaleToLinear(); volumeProperty->SetColor(color); vtkSmartPointer compositeOpacity = vtkSmartPointer::New(); compositeOpacity->AddPoint(-1.0, 0.0); compositeOpacity->AddPoint(0.0, 0.0); compositeOpacity->AddPoint(0.39, 0.4); compositeOpacity->AddPoint(0.4, 0.8); compositeOpacity->AddPoint(1.0, 1.0); volumeProperty->SetScalarOpacity(compositeOpacity); vtkSmartPointer volume = vtkSmartPointer::New(); volume->SetMapper(volumeMapper); volume->SetProperty(volumeProperty); vtkSmartPointer volumeRenderer = vtkSmartPointer::New(); renWin->AddRenderer(volumeRenderer); volumeRenderer->SetViewPoint(upperViewport); // position volume rendering at upper part volumeRenderer->SetBackground(0.4, 0.5, 0.6); vtkSmartPointer scalarWidget = vtkSmartPointer::New(); scalarWidget->SetInteractor(iren); scalarWidget->GetScalarBarActor()->SetTitle("Concentration"); scalarWidget->GetScalarBarActor()->SetLookupTable(color); scalarWidget->GetScalarBarActor()->SetOrientationToHorizontal(); scalarWidget->RepositionableOn(); scalarWidget->ResizableOn(); scalarWidget->EnabledOn(); vtkSmartPointer axes = vtkSmartPointer::New(); axes->SetTotalLength(50.0, 50.0, 50.0); /**********************************End of volume renderer*********************************/ /**************************************************************** create contour renderer to contouring stacked tomograms ****************************************************************/ // Create an isosurface vtkSmartPointer contourFilter = vtkSmartPointer::New(); contourFilter->SetInputData(imageData); const double isovalue = 0.6; contourFilter->GenerateValues(1, isovalue, isovalue); // (numContours, rangeStart, rangeEnd) // Map the contours to graphical primitives vtkSmartPointer contourMapper = vtkSmartPointer::New(); contourMapper->SetInputData(contourFilter->GetOutput()); // Create an actor for the contours vtkSmartPointer contourActor = vtkSmartPointer::New(); contourActor->SetMapper(contourMapper); // Create the outline vtkSmartPointer outlineFilter = vtkSmartPointer::New(); outlineFilter->SetInputData(imageData); vtkSmartPointer outlineMapper = vtkSmartPointer::New(); outlineMapper->SetInputData(outlineFilter->GetOutput()); vtkSmartPointer outlineActor = vtkSmartPointer::New(); outlineActor->SetMapper(outlineMapper); // Visualize vtkSmartPointer contourRenderer = vtkSmartPointer::New(); renWin->AddRenderer(contourRenderer); contourRenderer->SetViewPoint(centerViewport); contourRenderer->SetBackground(0.5, .4, .6); /**********************************End of contour renderer*********************************/ volumeRenderer->AddActor(volume); volumeRenderer->AddActor(axes); contourRenderer->AddActor(contourActor); contourRenderer->AddActor(outlineActor); contourRenderer->SetActiveCamera(volumeRenderer->GetActiveCamera()); volumeRenderer->ResetCamera(); contourRenderer->ResetCamera(); // Render composite. In default mode. For coverage. renWin->Render(); iren->Start(); -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincentrivola at hotmail.com Mon Dec 28 09:45:40 2015 From: vincentrivola at hotmail.com (vincentrivola) Date: Mon, 28 Dec 2015 07:45:40 -0700 (MST) Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1451285060219-5735652.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> <1450765739743-5735628.post@n5.nabble.com> <1451285060219-5735652.post@n5.nabble.com> Message-ID: <1451313940520-5735659.post@n5.nabble.com> I did some new tests today. The trick from Cory seems to work finaly! I guess I made a mistake previously while reimporting the newly compiled VTK. Now if I add in my app: logoRepresentation.SetDragable(0); or logoRepresentation.DragableOff(); the logoWidget is fixed to its initial location. If there is a nicer way to do it, I am still open to any proposal. Regards -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735659.html Sent from the VTK - Users mailing list archive at Nabble.com. From prakeshofficial at gmail.com Mon Dec 28 09:54:33 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Mon, 28 Dec 2015 20:24:33 +0530 Subject: [vtkusers] infinite/continuous grid Message-ID: Hello, Is it possible to have infinite/continuous two dimensional grid along a particular plane. ? By this I mean to ask whether it is possible to display two dimensional grid, covering the entire render window, as and how 1. Window is resized, 2. Zoom operation is performed 3. Pan operation is performed Is it possible to do it in a similar manner as it is available with in vtkCharts. ? Thanks From sebastien.jourdain at kitware.com Mon Dec 28 10:57:14 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 28 Dec 2015 08:57:14 -0700 Subject: [vtkusers] How to make vtkLogoWidget undraggable In-Reply-To: <1451313940520-5735659.post@n5.nabble.com> References: <1450710041205-5735607.post@n5.nabble.com> <1450711322123-5735609.post@n5.nabble.com> <1450712693243-5735611.post@n5.nabble.com> <1450765739743-5735628.post@n5.nabble.com> <1451285060219-5735652.post@n5.nabble.com> <1451313940520-5735659.post@n5.nabble.com> Message-ID: Widget are made for user interaction. But since you can disable that interaction. I'm guessing that's fine. On Mon, Dec 28, 2015 at 7:45 AM, vincentrivola wrote: > I did some new tests today. > The trick from Cory seems to work finaly! I guess I made a mistake > previously while reimporting the newly compiled VTK. > > Now if I add in my app: > logoRepresentation.SetDragable(0); > or > logoRepresentation.DragableOff(); > > the logoWidget is fixed to its initial location. > If there is a nicer way to do it, I am still open to any proposal. > > Regards > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-to-make-vtkLogoWidget-undraggable-tp5735607p5735659.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennisnguy at yahoo.com Mon Dec 28 13:03:29 2015 From: dennisnguy at yahoo.com (dieutan) Date: Mon, 28 Dec 2015 11:03:29 -0700 (MST) Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1450476059781-5735590.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> Message-ID: <1451325809547-5735662.post@n5.nabble.com> Hi Everyone, I take 1 step back by using VTK version 5.10.1. The output libraries structure is similar to VTK version 4.2. Hopefully I can integrate the VTK libraries version 5.10.1 with my upgraded application. Cheer! Dennis -- View this message in context: http://vtk.1045678.n5.nabble.com/Migrate-from-VTK-4-2-to-7-0-supporting-functions-and-libraries-tp5735590p5735662.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Mon Dec 28 13:07:22 2015 From: rickfrank at me.com (Richard Frank) Date: Mon, 28 Dec 2015 12:07:22 -0600 Subject: [vtkusers] Grid overlay on 3D view n world coordinates Message-ID: <26F54924-EE6A-43FB-9DF8-43CC7404BDA8@me.com> Hi, We want to make a grid with 10 mm ( world coordinates) lines over our 3D view in parallel projection mode. We want the grid to respond to the camera zoom ( I.e. Lines every 10 mm, so when camera moves +Z lines are farther apart ) but not to rotation. We've tried a few things like vtkfollower and etc but nothing seems to fit well. Is there a known way to do what we want? The grid around the box of the actor is nice, but our client wants the stationary grid. Thanks Rick Sent from my iPad From drescherjm at gmail.com Mon Dec 28 14:21:46 2015 From: drescherjm at gmail.com (John Drescher) Date: Mon, 28 Dec 2015 14:21:46 -0500 Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: <1451325809547-5735662.post@n5.nabble.com> References: <1450476059781-5735590.post@n5.nabble.com> <1451325809547-5735662.post@n5.nabble.com> Message-ID: > I take 1 step back by using VTK version 5.10.1. The output libraries > structure is similar to VTK version 4.2. > Hopefully I can integrate the VTK libraries version 5.10.1 with my upgraded > application. > I think this will simplify your porting task. John From mcfiddish at gmail.com Mon Dec 28 15:19:08 2015 From: mcfiddish at gmail.com (Hari Nair) Date: Mon, 28 Dec 2015 15:19:08 -0500 Subject: [vtkusers] 6.3.0 Compilation failure on OS X 10.10 In-Reply-To: References: Message-ID: Is anyone maintaining the VTK Java wrapper on OS X? I was able to compile by replacing vtkJavaAwt.h with an empty file, although now the demo programs do not work when they try to open a window. Also, the JOGL jar files have been reorganized and VTK-7.0.0-rc1 will not compile with the most recent version (2.3.2). I went back to version 2.1.5. My cmake setup: cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON -DJOGL_GLUE:FILEPATH=/Users/nairah1/local/src/VTK-7.0.0.rc1/jogl-all.jar -DJOGL_LIB:FILEPATH=/Users/nairah1/local/src/VTK-7.0.0.rc1/gluegen-rt.jar -DVTK_JAVA_SOURCE_VERSION:STRING=1.8 -DVTK_JAVA_TARGET_VERSION:STRING=1.8 .. cat /dev/null > /Users/nairah1/local/src/VTK-7.0.0.rc1/Wrapping/Java/vtkJavaAwt.h On Wed, Dec 23, 2015 at 8:52 PM, Hari Nair wrote: > Hi All - I'm getting compilation errors with 6.3.0 on OS X 10.10. My > cmake line is > > cmake -DVTK_WRAP_JAVA:BOOL=ON ../VTK-6.3.0 > > I get the same errors when I use > > cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON > -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all.jar > ../VTK-6.3.0 > > or > > cmake -DVTK_WRAP_JAVA:BOOL=ON -DVTK_JAVA_JOGL_COMPONENT:BOOL=ON > -DJOGL_GLUE:FILEPATH=gluegen-rt.jar -DJOGL_LIB:FILEPATH=jogl-all-noawt.jar > ../VTK-6.3.0 > > The errors are > > In file included from > /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:118:3: > error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean > 'JAWT_DrawingSurfaceInfo'? > JAWT_MacOSXDrawingSurfaceInfo* dsi_mac; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > JAWT_DrawingSurfaceInfo > /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: > note: 'JAWT_DrawingSurfaceInfo' declared here > } JAWT_DrawingSurfaceInfo; > ^ > In file included from > /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:14: > error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo' > dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; > ^ > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:119:44: > error: expected expression > dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; > ^ > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:120:31: > error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo' > temp0->SetWindowId(dsi_mac->cocoaViewRef); > ~~~~~~~ ^ > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:219:3: > error: unknown type name 'JAWT_MacOSXDrawingSurfaceInfo'; did you mean > 'JAWT_DrawingSurfaceInfo'? > JAWT_MacOSXDrawingSurfaceInfo* dsi_mac; > ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > JAWT_DrawingSurfaceInfo > /Library/Java/JavaVirtualMachines/jdk1.8.0_31.jdk/Contents/Home/include/jawt.h:170:3: > note: 'JAWT_DrawingSurfaceInfo' declared here > } JAWT_DrawingSurfaceInfo; > ^ > In file included from > /Users/nairah1/local/src/VTK-6.3.0-build/Rendering/Core/vtkRenderWindowJava.mm:1417: > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:14: > error: use of undeclared identifier 'JAWT_MacOSXDrawingSurfaceInfo' > dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; > ^ > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:220:44: > error: expected expression > dsi_mac = (JAWT_MacOSXDrawingSurfaceInfo*)dsi->platformInfo; > ^ > /Users/nairah1/local/src/VTK-6.3.0/Wrapping/Java/vtkJavaAwt.h:221:31: > error: no member named 'cocoaViewRef' in 'jawt_DrawingSurfaceInfo' > temp0->SetWindowId(dsi_mac->cocoaViewRef); > ~~~~~~~ ^ > 8 errors generated. > make[2]: *** > [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/vtkRenderWindowJava.mm.o] > Error 1 > make[1]: *** [Rendering/Core/CMakeFiles/vtkRenderingCoreJava.dir/all] > Error 2 > make: *** [all] Error 2 > > Any suggestions? VTK-7.0.0rc1 gave the same result. > > Thanks, > Hari > > -- > How did the world look on the day you were born? > http://www.birthdayearth.com > -- How did the world look on the day you were born? http://www.birthdayearth.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Mon Dec 28 15:45:15 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Mon, 28 Dec 2015 15:45:15 -0500 Subject: [vtkusers] Migrate from VTK 4.2 to 7.0, supporting functions and libraries In-Reply-To: References: <1450476059781-5735590.post@n5.nabble.com> <1451325809547-5735662.post@n5.nabble.com> Message-ID: Hi Dennis, if you try to use VTK7, you can link against only a subset of vtkRendering* libraries (the ones which your application actually uses), e.g. vtkRenderingCore-7.0.lib and vtkRenderingOpenGL-7.0.lib. As you did not specify what kind of application it is, we can only guess how hard would it be to CMakify it. If you CMakify your application, linking against VTK can be accomplished in a simple way provided in this example . HTH, D?enan On Mon, Dec 28, 2015 at 2:21 PM, John Drescher wrote: > > I take 1 step back by using VTK version 5.10.1. The output libraries > > structure is similar to VTK version 4.2. > > Hopefully I can integrate the VTK libraries version 5.10.1 with my > upgraded > > application. > > > I think this will simplify your porting task. > > John > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wumengda at gmail.com Mon Dec 28 17:26:43 2015 From: wumengda at gmail.com (Mengda Wu) Date: Mon, 28 Dec 2015 17:26:43 -0500 Subject: [vtkusers] Off screen rendering and video generation Message-ID: Hi vtkusers, I would like to perform off screen rendering with VTK and output the rendered content (e.g. interaction with a mouse) into a video (e.g. .avi). How to achieve this? I know that there is a vtkWindowToImageFilter filter, but it seems that this filter is designed to save individual images instead of a video sequence. Is there a better way? Thanks, WX -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Mon Dec 28 17:38:03 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Mon, 28 Dec 2015 23:38:03 +0100 Subject: [vtkusers] method to extract regions Message-ID: <5681B9CB.9070502@gmail.com> Hey guys, I use the vtkPolyDataConnectivityFilter from polydata to extract several different and more or less unknown regions. My problem is that I want to extract regions from this filter, but if I do this, the update process for all regions takes up to 10minutes: filter->SetExtractionModeToAllRegions(); filter->Update(); ... for (int i = 0; i < filter->GetNumberOfExtractedRegions(); i++) { extractFilter->InitializeSpecifiedRegionList(); extractFilter->AddSpecifiedRegion(i); extractFilter->Modified(); extractFilter->Update(); extractRegionData->DeepCopy(extractFilter->GetOutput()); } extractFilter->InitializeSpecifiedRegionList(); Background for this: I want to use the points of each region to check whether they lie within an object in my binary mask image. So the pipeline would be like this: 1) Get all Regions 2) get region /i/ 3) get points of region /i/ 4) check if point /j/ lies within the binary mask /B/ (/B/_/j/ == 255) 4a) if true then add region to the extractFilter and break (-> next region /i/) 4b) if false then continue with next point /j/ 5) Mark all regions red (done easily) 6) Mark some regions green that are above a specific size (can be accessed with filter->GetRegionSizes() ) 7) Mark some regions yellow (the regions that are extracted during step 1-4a) I do not know if the PolyDataConnectivityFilter is the right class for this, I think it is. If I store the extractRegionData in a vector, all regions have the same number of points (which is kind of strange) but different number of cells (region size == number of cells is correct). I would now try to get the points from the cells and check the binary mask, because the vtkPolyData->GetNumberOfPoints() and vtkPolyData->GetPoint(pointCounter, point); are not working correctly in this scenario (all regions are extracted because every single region has every point? i did not verify my guess but I think there would be the problem) The binary mask is a vtkImageData, that could be transformed to vtkPolyData. The input image (already filtered with vtkMarchingCubes) and the binary mask have the same dimensions (x,y,z). I hope you can imagine what I'm trying to do and have some tips for me, if my approach is correct. Regards Imre -------------- next part -------------- An HTML attachment was scrubbed... URL: From martin.genet at polytechnique.edu Mon Dec 28 17:50:44 2015 From: martin.genet at polytechnique.edu (Martin Genet) Date: Mon, 28 Dec 2015 23:50:44 +0100 Subject: [vtkusers] vtkCellDerivatives In-Reply-To: References: <567F0860.60908@polytechnique.edu> Message-ID: <5681BCC4.5060509@polytechnique.edu> Thanks Andy. What about simply adding another mode, e.g. SetTensorModeToComputeGreenLagrangeStrain, to the vtkCellDerivatives filter? Would the attached patch make sense? Martin On 28/12/2015 14:12, Andy Bauer wrote: > Hi Martin, > > Changing the name of the SetTensorModeToComputeStrain method to > something else would break backward compatibility which is generally > avoided in VTK. Other options for this include deriving a class to > compute non-linear strain from vtkCellDerivatives if it shares enough > of the algorithm with the linearized version or maybe just creating a > new filter. > > Cheers, > Andy > > On Sat, Dec 26, 2015 at 4:36 PM, Martin Genet > > wrote: > > Dear VTK users: > > I realize that the vtkCellDerivatives filter, when > SetTensorModeToComputeStrain is activated, returns the symmetric > part of the gradient of the input vector field, which is the > linearized strain tensor, i.e., not a proper measure of > deformation when large displacements are involved. Would that make > sense to have two different modes, > SetTensorModeToComputeLinearizedStrain or > SetTensorModeToComputeSymmetricGradient, and > SetTensorModeToComputeStrain or > SetTensorModeToComputeGreenLagrangeStrain? Thanks! > > Martin > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 0001-Adding-Green-Lagrange-strain-to-CellDerivatives-filt.patch Type: text/x-patch Size: 4846 bytes Desc: not available URL: From yihui.cao at qq.com Tue Dec 29 05:06:17 2015 From: yihui.cao at qq.com (=?gb18030?B?yrG54g==?=) Date: Tue, 29 Dec 2015 18:06:17 +0800 Subject: [vtkusers] vtkCaptionWidget Message-ID: Hi, Anyone can tell me how to change the leader's property of vtkCaptionWidget? such as color or the size of cone. And how to change the position of Caption Text? Thanks Yihui Cao -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Tue Dec 29 06:02:19 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 29 Dec 2015 12:02:19 +0100 Subject: [vtkusers] method to extract regions In-Reply-To: <5681B9CB.9070502@gmail.com> References: <5681B9CB.9070502@gmail.com> Message-ID: <5682683B.1000905@gmail.com> Is there an easier way in ITK? Thanks Imre Am 28.12.2015 um 23:38 schrieb Imre Goretzki: > Hey guys, > > I use the vtkPolyDataConnectivityFilter from polydata to extract > several different and more or less unknown regions. > My problem is that I want to extract regions from this filter, but if > I do this, the update process for all regions takes up to 10minutes: > > filter->SetExtractionModeToAllRegions(); > filter->Update(); > ... > > for (int i = 0; i < filter->GetNumberOfExtractedRegions(); i++) > { > extractFilter->InitializeSpecifiedRegionList(); > extractFilter->AddSpecifiedRegion(i); > extractFilter->Modified(); > extractFilter->Update(); > extractRegionData->DeepCopy(extractFilter->GetOutput()); > } > extractFilter->InitializeSpecifiedRegionList(); > > Background for this: I want to use the points of each region to check > whether they lie within an object in my binary > mask image. So the pipeline would be like this: > > 1) Get all Regions > 2) get region /i/ > 3) get points of region /i/ > 4) check if point /j/ lies within the binary mask /B/ > (/B/_/j/ == 255) > 4a) if true then add region to the extractFilter and > break (-> next region /i/) > 4b) if false then continue with next point /j/ > 5) Mark all regions red (done easily) > 6) Mark some regions green that are above a specific size (can be > accessed with filter->GetRegionSizes() ) > 7) Mark some regions yellow (the regions that are extracted during > step 1-4a) > > I do not know if the PolyDataConnectivityFilter is the right class for > this, I think it is. > If I store the extractRegionData in a vector, all regions have the > same number of points (which is kind of strange) but different number > of cells (region size == number of cells is correct). > > I would now try to get the points from the cells and check the binary > mask, because the > > vtkPolyData->GetNumberOfPoints() > > and > > vtkPolyData->GetPoint(pointCounter, point); > > are not working correctly in this scenario (all regions are extracted > because every single region has every point? > i did not verify my guess but I think there would be the problem) > > The binary mask is a vtkImageData, that could be transformed to > vtkPolyData. > The input image (already filtered with vtkMarchingCubes) and the > binary mask have the same dimensions (x,y,z). > > I hope you can imagine what I'm trying to do and have some tips for > me, if my approach is correct. > > Regards > Imre -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Dec 29 07:07:23 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 29 Dec 2015 05:07:23 -0700 Subject: [vtkusers] method to extract regions In-Reply-To: <5682683B.1000905@gmail.com> References: <5681B9CB.9070502@gmail.com> <5682683B.1000905@gmail.com> Message-ID: Hi Imre, I have a connectivity filter that works directly on images, it can label connected regions according to size and it should be much faster (probably 1000x) than doing voxel checks via polydata: https://github.com/dgobbi/AIRS/blob/master/ImageSegmentation/vtkImageConnectivityFilter.h I'll probably be contributing this filter to VTK sometime in the near future. - David On Tue, Dec 29, 2015 at 4:02 AM, Imre Goretzki wrote: > Is there an easier way in ITK? > > Thanks > Imre > > > Am 28.12.2015 um 23:38 schrieb Imre Goretzki: > > Hey guys, > > I use the vtkPolyDataConnectivityFilter from polydata to extract several > different and more or less unknown regions. > My problem is that I want to extract regions from this filter, but if I do > this, the update process for all regions takes up to 10minutes: > > filter->SetExtractionModeToAllRegions(); > filter->Update(); > ... > > for (int i = 0; i < filter->GetNumberOfExtractedRegions(); i++) > { > extractFilter->InitializeSpecifiedRegionList(); > extractFilter->AddSpecifiedRegion(i); > extractFilter->Modified(); > extractFilter->Update(); > extractRegionData->DeepCopy(extractFilter->GetOutput()); > } > extractFilter->InitializeSpecifiedRegionList(); > > Background for this: I want to use the points of each region to check > whether they lie within an object in my binary > mask image. So the pipeline would be like this: > > 1) Get all Regions > 2) get region *i* > 3) get points of region *i* > 4) check if point *j* lies within the binary mask *B* ( > *B*_*j* == 255) > 4a) if true then add region to the extractFilter and > break (-> next region *i*) > 4b) if false then continue with next point *j* > 5) Mark all regions red (done easily) > 6) Mark some regions green that are above a specific size (can be accessed > with filter->GetRegionSizes() ) > 7) Mark some regions yellow (the regions that are extracted during step > 1-4a) > > I do not know if the PolyDataConnectivityFilter is the right class for > this, I think it is. > If I store the extractRegionData in a vector, all regions have the same > number of points (which is kind of strange) but different number of cells > (region size == number of cells is correct). > > I would now try to get the points from the cells and check the binary > mask, because the > > vtkPolyData->GetNumberOfPoints() > > and > > vtkPolyData->GetPoint(pointCounter, point); > > are not working correctly in this scenario (all regions are extracted > because every single region has every point? > i did not verify my guess but I think there would be the problem) > > The binary mask is a vtkImageData, that could be transformed to > vtkPolyData. > The input image (already filtered with vtkMarchingCubes) and the binary > mask have the same dimensions (x,y,z). > > I hope you can imagine what I'm trying to do and have some tips for me, if > my approach is correct. > > Regards > Imre > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Tue Dec 29 07:09:19 2015 From: DLRdave at aol.com (David Cole) Date: Tue, 29 Dec 2015 07:09:19 -0500 Subject: [vtkusers] The maximum diameter of an irregular object In-Reply-To: <1451295679833-5735653.post@n5.nabble.com> References: <1451295679833-5735653.post@n5.nabble.com> Message-ID: It is not clear what you mean by "maximum diameter of an irregular object".... Can you describe what you're trying to measure more precisely than that? A diameter is an attribute of a circle or a sphere, not an irregular object. And the closest thing to a "maximum diameter" of an object other than a circle/sphere is typically the diagonal of its bounding box. But it sounds like you probably mean something different than that, but it's unclear exactly what... On Monday, December 28, 2015, Emptystack wrote: > Hello everyone, > > I want to compute the the maximum diamter of an irregular object using > VTK, but I cannot find a proper way to do it after days of work. Does > anyone > know how to do this? Have anyone can give me some advice? > > Many thanks! > Best Wishes! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/The-maximum-diameter-of-an-irregular-object-tp5735653.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From andy.bauer at kitware.com Tue Dec 29 07:22:07 2015 From: andy.bauer at kitware.com (Andy Bauer) Date: Tue, 29 Dec 2015 07:22:07 -0500 Subject: [vtkusers] vtkCellDerivatives In-Reply-To: <5681BCC4.5060509@polytechnique.edu> References: <567F0860.60908@polytechnique.edu> <5681BCC4.5060509@polytechnique.edu> Message-ID: Hi Martin, This patch makes sense. It would need a test if you want to get your changes into VTK. The directions for contributing to VTK are at https://gitlab.kitware.com/vtk/vtk/blob/master/Documentation/dev/git/develop.md . Cheers, Andy On Mon, Dec 28, 2015 at 5:50 PM, Martin Genet < martin.genet at polytechnique.edu> wrote: > Thanks Andy. > > What about simply adding another mode, e.g. > SetTensorModeToComputeGreenLagrangeStrain, to the vtkCellDerivatives > filter? Would the attached patch make sense? > > Martin > > On 28/12/2015 14:12, Andy Bauer wrote: > > Hi Martin, > > Changing the name of the SetTensorModeToComputeStrain method to something > else would break backward compatibility which is generally avoided in VTK. > Other options for this include deriving a class to compute non-linear > strain from vtkCellDerivatives if it shares enough of the algorithm with > the linearized version or maybe just creating a new filter. > > Cheers, > Andy > > On Sat, Dec 26, 2015 at 4:36 PM, Martin Genet < > martin.genet at polytechnique.edu> wrote: > >> Dear VTK users: >> >> I realize that the vtkCellDerivatives filter, when >> SetTensorModeToComputeStrain is activated, returns the symmetric part of >> the gradient of the input vector field, which is the linearized strain >> tensor, i.e., not a proper measure of deformation when large displacements >> are involved. Would that make sense to have two different modes, >> SetTensorModeToComputeLinearizedStrain or >> SetTensorModeToComputeSymmetricGradient, and SetTensorModeToComputeStrain >> or SetTensorModeToComputeGreenLagrangeStrain? Thanks! >> >> Martin >> _______________________________________________ >> 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: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From goretzki.imre at gmail.com Tue Dec 29 07:27:47 2015 From: goretzki.imre at gmail.com (Imre Goretzki) Date: Tue, 29 Dec 2015 13:27:47 +0100 Subject: [vtkusers] method to extract regions In-Reply-To: References: <5681B9CB.9070502@gmail.com> <5682683B.1000905@gmail.com> Message-ID: <56827C43.5030409@gmail.com> Hi David, thank you. I'll take a look at your class. Regards Imre Am 29.12.2015 um 13:07 schrieb David Gobbi: > Hi Imre, > > I have a connectivity filter that works directly on images, it can > label connected regions according to size and it should be much faster > (probably 1000x) than doing voxel checks via polydata: > https://github.com/dgobbi/AIRS/blob/master/ImageSegmentation/vtkImageConnectivityFilter.h > I'll probably be contributing this filter to VTK sometime in the near > future. > > - David > > > On Tue, Dec 29, 2015 at 4:02 AM, Imre Goretzki > > wrote: > > Is there an easier way in ITK? > > Thanks > Imre > > > Am 28.12.2015 um 23:38 schrieb Imre Goretzki: >> Hey guys, >> >> I use the vtkPolyDataConnectivityFilter from polydata to extract >> several different and more or less unknown regions. >> My problem is that I want to extract regions from this filter, >> but if I do this, the update process for all regions takes up to >> 10minutes: >> >> filter->SetExtractionModeToAllRegions(); >> filter->Update(); >> ... >> >> for (int i = 0; i < filter->GetNumberOfExtractedRegions(); i++) >> { >> extractFilter->InitializeSpecifiedRegionList(); >> extractFilter->AddSpecifiedRegion(i); >> extractFilter->Modified(); >> extractFilter->Update(); >> extractRegionData->DeepCopy(extractFilter->GetOutput()); >> } >> extractFilter->InitializeSpecifiedRegionList(); >> >> Background for this: I want to use the points of each region to >> check whether they lie within an object in my binary >> mask image. So the pipeline would be like this: >> >> 1) Get all Regions >> 2) get region /i/ >> 3) get points of region /i/ >> 4) check if point /j/ lies within the binary mask >> /B/ (/B/_/j/ == 255) >> 4a) if true then add region to the extractFilter >> and break (-> next region /i/) >> 4b) if false then continue with next point /j/ >> 5) Mark all regions red (done easily) >> 6) Mark some regions green that are above a specific size (can be >> accessed with filter->GetRegionSizes() ) >> 7) Mark some regions yellow (the regions that are extracted >> during step 1-4a) >> >> I do not know if the PolyDataConnectivityFilter is the right >> class for this, I think it is. >> If I store the extractRegionData in a vector, all regions have >> the same number of points (which is kind of strange) but >> different number of cells (region size == number of cells is >> correct). >> >> I would now try to get the points from the cells and check the >> binary mask, because the >> >> vtkPolyData->GetNumberOfPoints() >> >> and >> >> vtkPolyData->GetPoint(pointCounter, point); >> >> are not working correctly in this scenario (all regions are >> extracted because every single region has every point? >> i did not verify my guess but I think there would be the problem) >> >> The binary mask is a vtkImageData, that could be transformed to >> vtkPolyData. >> The input image (already filtered with vtkMarchingCubes) and the >> binary mask have the same dimensions (x,y,z). >> >> I hope you can imagine what I'm trying to do and have some tips >> for me, if my approach is correct. >> >> Regards >> Imre > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakesh.p at tataelxsi.co.in Tue Dec 29 07:29:40 2015 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Tue, 29 Dec 2015 12:29:40 +0000 Subject: [vtkusers] How to solve MakeCurrent error? Message-ID: Dear VTK users, I am using VTK 6.3 version. I am using four QVTKWidgets in my application, say rightTopWidget, rightBottomWidget, leftTopWidget, and leftBottomWidget. If I add actor in one render window, say leftTopWidget, all the renderwindows display actors. Later if I perform selection in anther window then it shows me this error: vtkWin32OpenGLRenderWindow (000000EB5FD666A0): Attempting to call MakeCurrent for a different window than the one doing the picking, this can causes crashes and/or bad pick results Kindly let me know how do I solve this. Thanks in advance Warm Regards Rakesh Patil -------------- next part -------------- An HTML attachment was scrubbed... URL: From eduardo.hssi at gmail.com Tue Dec 29 07:56:12 2015 From: eduardo.hssi at gmail.com (eduardo) Date: Tue, 29 Dec 2015 05:56:12 -0700 (MST) Subject: [vtkusers] Feret Diameter Message-ID: <1451393772675-5735677.post@n5.nabble.com> Hello everyone, I want to calculate the Feret diameter of a polydata, but did not find anything that can help me. Have anyone can give me some advice? Thank you! -- View this message in context: http://vtk.1045678.n5.nabble.com/Feret-Diameter-tp5735677.html Sent from the VTK - Users mailing list archive at Nabble.com. From francesco81492 at gmail.com Tue Dec 29 08:30:15 2015 From: francesco81492 at gmail.com (Francesco R) Date: Tue, 29 Dec 2015 14:30:15 +0100 Subject: [vtkusers] android examples openGL ES 2.0 In-Reply-To: References: Message-ID: Hello, I am still facing the same problems. I am grateful for any suggestion, thank you! > Dear vtk users and developers, > I am currently trying to run the two android examples with OpenGL ES 2.0 > backend available in vtk 7.0.0 rc1, on an ARM Mali 400 MP GPU. > Unfortunately, I am not able to run neither of them on the device. > > NativeVTK crashes at Rendering/OpenGL2/vtkShaderProgram.cxx, line 399 > with "Shader object was not initialized, cannot attach it." > See also http://pastebin.com/Wvew3gen for the full log. > > JavaVTK appears to interact correctly with the user (see > http://pastebin.com/w3Sdu7CC ), but only a blue background is shown. The > trace file obtained with the android device monitor is available at > http://filebin.ca/2QdKao08I3lb/trace1.gltrace > > Do you have any suggestion on what could be the issue? > > Thanks > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.hilbert at gmx.net Tue Dec 29 08:30:16 2015 From: sebastian.hilbert at gmx.net (Sebastian Hilbert) Date: Tue, 29 Dec 2015 14:30:16 +0100 Subject: [vtkusers] VTK mesh to Dicom (PACS) Message-ID: <2293440.76MnMS8vvS@basti-thinkpad-t410> Hi all, I was wondering if anyone could point me into the right direction. Background: We are working with MR data of the heart and are rendering/ segmenting regions of interest to models (e.g. left atrium). Those are then exported to STL by a software called Philips Intellispace Portal and subsequently converted to VTK. Those meshes/models are then used in clinical routine. Goal: What we would like to achieve somehow is to store these VTK meshes in a PACS for data exchange. From what I have understood so far it is not possible to store VTK meshes in a PACS. What would you suggest ? Is this something that can be implemented ? There seems to be some related bits in the Dicom specification but I am stuck here. ftp://medical.nema.org/medical/dicom/final/sup132_ft.pdf My research also led me to two solutions by medical device vendors who seem to have implemented a way to store their model formats in Dicom file(s). One solution Ensite NavX by St. Jude Medical seems to store the XML (VTK ascii like) content in a private tag and the other company seems to store (VTK binary ?) data in private tags as well. I do have sample Dicom files from both products as well as the file format specifications for both products. I wonder what it would take to come up with a solution based on the specs and the sample files. If anyone could point me into the right direction that would be great. Regards, Sebastian From dov.grobgeld at gmail.com Tue Dec 29 10:52:48 2015 From: dov.grobgeld at gmail.com (Dov Grobgeld) Date: Tue, 29 Dec 2015 17:52:48 +0200 Subject: [vtkusers] VTK mesh to Dicom (PACS) In-Reply-To: <2293440.76MnMS8vvS@basti-thinkpad-t410> References: <2293440.76MnMS8vvS@basti-thinkpad-t410> Message-ID: As long as your PACS doesn't interfer with the contents of your private tags, you can probably store whatever you want in it. If the private tags are limited in size, than you could create a hack that and save a binary blob representing the mesh in the image portion of the data and somehow encode this hack in other dicom tags. As long as only your software is accessing the dicom "images" you should be ok. But if some other application would try to show the images they would display garbage. In short, as long as you have someway of storing binary data, you can use it. Regards, Dov On Tue, Dec 29, 2015 at 3:30 PM, Sebastian Hilbert < sebastian.hilbert at gmx.net> wrote: > Hi all, > > I was wondering if anyone could point me into the right direction. > > Background: We are working with MR data of the heart and are rendering/ > segmenting regions of interest to models (e.g. left atrium). Those are then > exported to STL by a software called Philips Intellispace Portal and > subsequently converted to VTK. Those meshes/models are then used in > clinical > routine. > > Goal: What we would like to achieve somehow is to store these VTK meshes > in a > PACS for data exchange. From what I have understood so far it is not > possible > to store VTK meshes in a PACS. What would you suggest ? Is this something > that > can be implemented ? > > There seems to be some related bits in the Dicom specification but I am > stuck > here. > > ftp://medical.nema.org/medical/dicom/final/sup132_ft.pdf > > > My research also led me to two solutions by medical device vendors who > seem to > have implemented a way to store their model formats in Dicom file(s). One > solution Ensite NavX by St. Jude Medical seems to store the XML (VTK ascii > like) content in a private tag and the other company seems to store (VTK > binary ?) data in private tags as well. > > I do have sample Dicom files from both products as well as the file format > specifications for both products. > > I wonder what it would take to come up with a solution based on the specs > and > the sample files. If anyone could point me into the right direction that > would > be great. > > Regards, > Sebastian > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.hilbert at gmx.net Tue Dec 29 11:31:38 2015 From: sebastian.hilbert at gmx.net (Sebastian Hilbert) Date: Tue, 29 Dec 2015 17:31:38 +0100 Subject: [vtkusers] VTK mesh to Dicom (PACS) In-Reply-To: References: <2293440.76MnMS8vvS@basti-thinkpad-t410> Message-ID: <4362751.4Tajk6cxPC@basti-thinkpad-t410> Hi, Am Tuesday 29 December 2015, 17:52:48 schrieb Dov Grobgeld: > As long as your PACS doesn't interfer with the contents of your private > tags, you can probably store whatever you want in it. If the private tags > are limited in size, than you could create a hack that and save a binary > blob representing the mesh in the image portion of the data and somehow > encode this hack in other dicom tags. As long as only your software is > accessing the dicom "images" you should be ok. But if some other > application would try to show the images they would display garbage. In > short, as long as you have someway of storing binary data, you can use it. > Here is the relevant excerpt from the spec What would be the most suitable tool to craft such a Dicom file ? The other software's spec states this *V8 3D IO instances are stand alone DICOM entities implemented as Extension1 to the SC Image IOD as defined in PS 3.3 ? 2004 Page 104, Table A.8.1.3 - Secondary Capture Image Storage SOP Class 1.2.840.10008.5.1.4.1.1.7.* *Table 3.1 defines the modules to be included in V8 3D IO?s.* *The 3D Instance Module is the extension to the standard SC Image IOD. It is detailed in # 3.2 and # 4. All other modules in Table 3.1 are standard DICOM modules.* Can anyone comment on this ? Regards, Sebastian > Regards, > Dov > > > On Tue, Dec 29, 2015 at 3:30 PM, Sebastian Hilbert < > > sebastian.hilbert at gmx.net> wrote: > > Hi all, > > > > I was wondering if anyone could point me into the right direction. > > > > Background: We are working with MR data of the heart and are rendering/ > > segmenting regions of interest to models (e.g. left atrium). Those are > > then > > exported to STL by a software called Philips Intellispace Portal and > > subsequently converted to VTK. Those meshes/models are then used in > > clinical > > routine. > > > > Goal: What we would like to achieve somehow is to store these VTK meshes > > in a > > PACS for data exchange. From what I have understood so far it is not > > possible > > to store VTK meshes in a PACS. What would you suggest ? Is this something > > that > > can be implemented ? > > > > There seems to be some related bits in the Dicom specification but I am > > stuck > > here. > > > > ftp://medical.nema.org/medical/dicom/final/sup132_ft.pdf > > > > > > My research also led me to two solutions by medical device vendors who > > seem to > > have implemented a way to store their model formats in Dicom file(s). One > > solution Ensite NavX by St. Jude Medical seems to store the XML (VTK ascii > > like) content in a private tag and the other company seems to store (VTK > > binary ?) data in private tags as well. > > > > I do have sample Dicom files from both products as well as the file format > > specifications for both products. > > > > I wonder what it would take to come up with a solution based on the specs > > and > > the sample files. If anyone could point me into the right direction that > > would > > be great. > > > > Regards, > > Sebastian > > _______________________________________________ > > 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: > > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild Type: image/png Size: 23653 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild1 Type: image/png Size: 45466 bytes Desc: not available URL: From dov.grobgeld at gmail.com Tue Dec 29 14:28:20 2015 From: dov.grobgeld at gmail.com (Dov Grobgeld) Date: Tue, 29 Dec 2015 21:28:20 +0200 Subject: [vtkusers] VTK mesh to Dicom (PACS) In-Reply-To: <4362751.4Tajk6cxPC@basti-thinkpad-t410> References: <2293440.76MnMS8vvS@basti-thinkpad-t410> <4362751.4Tajk6cxPC@basti-thinkpad-t410> Message-ID: The open source gdcm library is easy to use, either from C++ or from python. For a C++ example see: http://gdcm.sourceforge.net/html/GenFakeImage_8cxx-example.html For python there is also the pydicom library: https://pypi.python.org/pypi/pydicom/ All of these make it easy to generate dicom files with arbitrary tags. What is not always clear is what is the minimum set of tags that you need to provide. But that may be solved by reading a template image and then modifying all the relevant tags. vtk also supposedly comes with a dicom writer, but I have no experience with it. Regards, Dov On Tue, Dec 29, 2015 at 6:31 PM, Sebastian Hilbert < sebastian.hilbert at gmx.net> wrote: > Hi, > > > > Am Tuesday 29 December 2015, 17:52:48 schrieb Dov Grobgeld: > > > As long as your PACS doesn't interfer with the contents of your private > > > tags, you can probably store whatever you want in it. If the private tags > > > are limited in size, than you could create a hack that and save a binary > > > blob representing the mesh in the image portion of the data and somehow > > > encode this hack in other dicom tags. As long as only your software is > > > accessing the dicom "images" you should be ok. But if some other > > > application would try to show the images they would display garbage. In > > > short, as long as you have someway of storing binary data, you can use > it. > > > > > > > Here is the relevant excerpt from the spec > > > > > > > > What would be the most suitable tool to craft such a Dicom file ? > > > > The other software's spec states this > > > > V8 3D IO instances are stand alone DICOM entities implemented as > Extension1 to the SC Image IOD as defined in PS 3.3 ? 2004 Page 104, Table > A.8.1.3 - Secondary Capture Image Storage SOP Class > 1.2.840.10008.5.1.4.1.1.7. > > Table 3.1 defines the modules to be included in V8 3D IO?s. > > The 3D Instance Module is the extension to the standard SC Image IOD. It > is detailed in # 3.2 and # 4. All other modules in Table 3.1 are standard > DICOM modules. > > > > Can anyone comment on this ? > > > > Regards, > > Sebastian > > > > > > > Regards, > > > Dov > > > > > > > > > On Tue, Dec 29, 2015 at 3:30 PM, Sebastian Hilbert < > > > > > > sebastian.hilbert at gmx.net> wrote: > > > > Hi all, > > > > > > > > I was wondering if anyone could point me into the right direction. > > > > > > > > Background: We are working with MR data of the heart and are rendering/ > > > > segmenting regions of interest to models (e.g. left atrium). Those are > > > > then > > > > exported to STL by a software called Philips Intellispace Portal and > > > > subsequently converted to VTK. Those meshes/models are then used in > > > > clinical > > > > routine. > > > > > > > > Goal: What we would like to achieve somehow is to store these VTK > meshes > > > > in a > > > > PACS for data exchange. From what I have understood so far it is not > > > > possible > > > > to store VTK meshes in a PACS. What would you suggest ? Is this > something > > > > that > > > > can be implemented ? > > > > > > > > There seems to be some related bits in the Dicom specification but I am > > > > stuck > > > > here. > > > > > > > > ftp://medical.nema.org/medical/dicom/final/sup132_ft.pdf > > > > > > > > > > > > My research also led me to two solutions by medical device vendors who > > > > seem to > > > > have implemented a way to store their model formats in Dicom file(s). > One > > > > solution Ensite NavX by St. Jude Medical seems to store the XML (VTK > ascii > > > > like) content in a private tag and the other company seems to store > (VTK > > > > binary ?) data in private tags as well. > > > > > > > > I do have sample Dicom files from both products as well as the file > format > > > > specifications for both products. > > > > > > > > I wonder what it would take to come up with a solution based on the > specs > > > > and > > > > the sample files. If anyone could point me into the right direction > that > > > > would > > > > be great. > > > > > > > > Regards, > > > > Sebastian > > > > _______________________________________________ > > > > 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: > > > > http://public.kitware.com/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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild1 Type: image/png Size: 45466 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Bild Type: image/png Size: 23653 bytes Desc: not available URL: From vianamp at gmail.com Tue Dec 29 15:48:18 2015 From: vianamp at gmail.com (matheus_viana) Date: Tue, 29 Dec 2015 13:48:18 -0700 (MST) Subject: [vtkusers] Cloud of points to nonconvex surface In-Reply-To: References: <1450730934363-5735619.post@n5.nabble.com> Message-ID: <1451422098531-5735685.post@n5.nabble.com> Thanks Oleg. I still want to find a solution that depends on VTK only. I tried to use vtkSurfaceReconstructionFilter and I got something close to what I want but the very bottom and very top are not closed as shown in the enclosed image. Do you guys have any idea how I can force the surface to be closed? Thanks a lot, -- View this message in context: http://vtk.1045678.n5.nabble.com/Cloud-of-points-to-nonconvex-surface-tp5735619p5735685.html Sent from the VTK - Users mailing list archive at Nabble.com. From wumengda at gmail.com Tue Dec 29 15:50:20 2015 From: wumengda at gmail.com (Mengda Wu) Date: Tue, 29 Dec 2015 15:50:20 -0500 Subject: [vtkusers] Better four pane viewer for 3D image Message-ID: Hi vtkusers, I found the four pane viewer example in the vtk source dir ( http://www.vtk.org/gitweb?p=VTK.git;a=tree;f=Examples/GUI/Qt/FourPaneViewer). But it was very preliminary. There is a lot of features that are missing compared to those which are the commercial medical image workstations. Is there a better four pane viewer? Preferably open sourced. Thanks, Mengda -------------- next part -------------- An HTML attachment was scrubbed... URL: From vianamp at gmail.com Tue Dec 29 15:58:06 2015 From: vianamp at gmail.com (matheus_viana) Date: Tue, 29 Dec 2015 13:58:06 -0700 (MST) Subject: [vtkusers] Cloud of points to nonconvex surface In-Reply-To: <1451422098531-5735685.post@n5.nabble.com> References: <1450730934363-5735619.post@n5.nabble.com> <1451422098531-5735685.post@n5.nabble.com> Message-ID: <1451422686980-5735687.post@n5.nabble.com> Guys, I just found that setting the parameter SetNeighborhoodSize of vtkSurfaceReconstructionFilter to a high value (~200) solves my problem. According to the documentation this would cause problems with very sharp edges but I don't think I will have such edges in my dataset. Thanks a lot, -- View this message in context: http://vtk.1045678.n5.nabble.com/Cloud-of-points-to-nonconvex-surface-tp5735619p5735687.html Sent from the VTK - Users mailing list archive at Nabble.com. From vianamp at gmail.com Tue Dec 29 15:59:55 2015 From: vianamp at gmail.com (matheus_viana) Date: Tue, 29 Dec 2015 13:59:55 -0700 (MST) Subject: [vtkusers] Cloud of points to nonconvex surface In-Reply-To: <1451422686980-5735687.post@n5.nabble.com> References: <1450730934363-5735619.post@n5.nabble.com> <1451422098531-5735685.post@n5.nabble.com> <1451422686980-5735687.post@n5.nabble.com> Message-ID: <1451422795430-5735688.post@n5.nabble.com> This is what the final surface look like :) -m -- View this message in context: http://vtk.1045678.n5.nabble.com/Cloud-of-points-to-nonconvex-surface-tp5735619p5735688.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Tue Dec 29 16:35:33 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 29 Dec 2015 16:35:33 -0500 Subject: [vtkusers] The maximum diameter of an irregular object In-Reply-To: References: <1451295679833-5735653.post@n5.nabble.com> Message-ID: If you want to compute the bounding sphere https://en.wikipedia.org/wiki/Bounding_sphere then look at this test code: Common/DataModel/Testing/Cxx/TestComputeBoundingSphere.cxx On Tue, Dec 29, 2015 at 7:09 AM, David Cole via vtkusers wrote: > It is not clear what you mean by "maximum diameter of an irregular > object".... Can you describe what you're trying to measure more precisely > than that? > > A diameter is an attribute of a circle or a sphere, not an irregular object. > And the closest thing to a "maximum diameter" of an object other than a > circle/sphere is typically the diagonal of its bounding box. > > But it sounds like you probably mean something different than that, but it's > unclear exactly what... > > > On Monday, December 28, 2015, Emptystack wrote: >> >> Hello everyone, >> >> I want to compute the the maximum diamter of an irregular object using >> VTK, but I cannot find a proper way to do it after days of work. Does >> anyone >> know how to do this? Have anyone can give me some advice? >> >> Many thanks! >> Best Wishes! >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/The-maximum-diameter-of-an-irregular-object-tp5735653.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> 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: >> http://public.kitware.com/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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From DLRdave at aol.com Tue Dec 29 17:02:40 2015 From: DLRdave at aol.com (David Cole) Date: Tue, 29 Dec 2015 17:02:40 -0500 Subject: [vtkusers] Better four pane viewer for 3D image In-Reply-To: References: Message-ID: Have you tried 3DSlicer? http://slicer.org/ HTH, David C. On Tue, Dec 29, 2015 at 3:50 PM, Mengda Wu wrote: > Hi vtkusers, > > I found the four pane viewer example in the vtk source dir > (http://www.vtk.org/gitweb?p=VTK.git;a=tree;f=Examples/GUI/Qt/FourPaneViewer). > But it was very preliminary. There is a lot of features that are missing > compared to those which are the commercial medical image workstations. Is > there a better four pane viewer? Preferably open sourced. > > Thanks, > Mengda > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > From wumengda at gmail.com Tue Dec 29 17:31:21 2015 From: wumengda at gmail.com (Mengda Wu) Date: Tue, 29 Dec 2015 17:31:21 -0500 Subject: [vtkusers] Better four pane viewer for 3D image In-Reply-To: References: Message-ID: Hi David, Thanks for your quick answer. I am looking for a light-weight code/library that just do the four pane window. Slicer is too big. It is very unstable from my experiences and crashes from time to time. Mengda On Tue, Dec 29, 2015 at 5:02 PM, David Cole wrote: > Have you tried 3DSlicer? > > http://slicer.org/ > > > HTH, > David C. > > > On Tue, Dec 29, 2015 at 3:50 PM, Mengda Wu wrote: > > Hi vtkusers, > > > > I found the four pane viewer example in the vtk source dir > > ( > http://www.vtk.org/gitweb?p=VTK.git;a=tree;f=Examples/GUI/Qt/FourPaneViewer > ). > > But it was very preliminary. There is a lot of features that are missing > > compared to those which are the commercial medical image workstations. Is > > there a better four pane viewer? Preferably open sourced. > > > > Thanks, > > Mengda > > > > _______________________________________________ > > 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: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wulihouxiaoshuai at 163.com Tue Dec 29 20:18:04 2015 From: wulihouxiaoshuai at 163.com (Emptystack) Date: Tue, 29 Dec 2015 18:18:04 -0700 (MST) Subject: [vtkusers] The maximum diameter of an irregular object In-Reply-To: References: <1451295679833-5735653.post@n5.nabble.com> Message-ID: <1451438284758-5735692.post@n5.nabble.com> Ok, many thanks! -- View this message in context: http://vtk.1045678.n5.nabble.com/The-maximum-diameter-of-an-irregular-object-tp5735653p5735692.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Tue Dec 29 21:02:00 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Dec 2015 21:02:00 -0500 Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis In-Reply-To: <1451311798109-5735657.post@n5.nabble.com> References: <1450957386793-5735645.post@n5.nabble.com> <1451311798109-5735657.post@n5.nabble.com> Message-ID: Hi Joao, You are right, the number of ticks setting is ignored when you use SetCustomTickPositions(). All the positions and labels you provide will be displayed. You would have to specify the two you want and pass the via SetCustomTickPositions() to get just two. HTH, Cory On Mon, Dec 28, 2015 at 9:09 AM, joaoroberto88 wrote: > It seems that SetCustomTickPositions method doesn't respect the > SetNumberOfTicks method. Any thoughts? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645p5735657.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Dec 29 21:05:51 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Dec 2015 21:05:51 -0500 Subject: [vtkusers] infinite/continuous grid In-Reply-To: References: Message-ID: Rakesh, I assume you want this in a 3D render window? There is nothing that does this out of the box that I know of. - Cory On Mon, Dec 28, 2015 at 9:54 AM, rakesh patil wrote: > Hello, > > Is it possible to have infinite/continuous two dimensional grid along a > particular plane. ? By this I mean to ask whether it is possible to > display two dimensional grid, covering the entire render window, as > and how > > 1. Window is resized, > 2. Zoom operation is performed > 3. Pan operation is performed > > Is it possible to do it in a similar manner as it is available with in > vtkCharts. ? > > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Dec 29 21:25:16 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Dec 2015 21:25:16 -0500 Subject: [vtkusers] Feret Diameter In-Reply-To: <1451393772675-5735677.post@n5.nabble.com> References: <1451393772675-5735677.post@n5.nabble.com> Message-ID: Eduardo, I am not aware of a filter that provides the Feret diameter. Do you have the plane that determines the orientation you want for the Feret diameter in implicit form (a, b, c, d)? If so, then you should just need to iterate over each point (x, y, z) in the polydata, compute ax * by * cz - d, keep track of the minimum and maximum of those computed values, subtract the minimum from the maximum, and get the desired diameter. HTH, Cory On Tue, Dec 29, 2015 at 7:56 AM, eduardo wrote: > Hello everyone, > > I want to calculate the Feret diameter of a polydata, but did not find > anything that can help me. Have anyone can give me some advice? > > Thank you! > > > > < > http://vtk.1045678.n5.nabble.com/file/n5735677/introduction-to-dynamic-image-analysis-28-728.jpg > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Feret-Diameter-tp5735677.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Tue Dec 29 22:16:55 2015 From: prakeshofficial at gmail.com (rakesh patil) Date: Wed, 30 Dec 2015 08:46:55 +0530 Subject: [vtkusers] infinite/continuous grid Message-ID: Hello, Is it possible to have infinite/continuous two dimensional grid along a particular plane. ? By this I mean to say that the grid should be modified and displayed as and how, 1. Window is resized. 2. Zoom in/out is performed. 3. Panning is performed. The grid must be displayed in such a way that it should cover the entire render window. Similar to the one available in vtkCharts. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Dec 29 22:26:15 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Dec 2015 22:26:15 -0500 Subject: [vtkusers] Off screen rendering and video generation In-Reply-To: References: Message-ID: I recommend using an external program to do video captures. There are many. Two of which I have found to work well are QuickTime Player on Mac and Jing on Windows. HTH, Cory On Mon, Dec 28, 2015 at 5:26 PM, Mengda Wu wrote: > Hi vtkusers, > > I would like to perform off screen rendering with VTK and output the > rendered content (e.g. interaction with a mouse) into a video (e.g. .avi). > How to achieve this? > > I know that there is a vtkWindowToImageFilter filter, but it seems > that this filter is designed to save individual images instead of a video > sequence. Is there a better way? > > Thanks, > WX > > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From rakesh.p at tataelxsi.co.in Tue Dec 29 22:38:15 2015 From: rakesh.p at tataelxsi.co.in (Rakesh Patil) Date: Wed, 30 Dec 2015 03:38:15 +0000 Subject: [vtkusers] How to solve MakeCurrent error? In-Reply-To: References: Message-ID: Hi, I am not able to find any help related to this issue. Is there no solution for this? Thanks Rakesh Patil ________________________________ From: vtkusers on behalf of Rakesh Patil Sent: Tuesday, December 29, 2015 5:59 PM To: vtkusers at vtk.org Subject: [vtkusers] How to solve MakeCurrent error? Dear VTK users, I am using VTK 6.3 version. I am using four QVTKWidgets in my application, say rightTopWidget, rightBottomWidget, leftTopWidget, and leftBottomWidget. If I add actor in one render window, say leftTopWidget, all the renderwindows display actors. Later if I perform selection in anther window then it shows me this error: vtkWin32OpenGLRenderWindow (000000EB5FD666A0): Attempting to call MakeCurrent for a different window than the one doing the picking, this can causes crashes and/or bad pick results Kindly let me know how do I solve this. Thanks in advance Warm Regards Rakesh Patil -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Dec 29 23:07:17 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Dec 2015 23:07:17 -0500 Subject: [vtkusers] infinite/continuous grid In-Reply-To: References: Message-ID: Rakesh, > Can't we use the vtkCharts' grid in our renderer. ? > Not to my knowledge. You should be able to compute the number of lines you need in each dimension based on the frustum available from vtkCamera::GetFrustumPlanes(...). Or you could do something fancy like place a screen-filling plane source with a custom shader that computes grid lines based on the interpolated coordinates in the fragment shader. Cory > Thanks > > On Wednesday, December 30, 2015, Cory Quammen > wrote: > >> Rakesh, >> >> I assume you want this in a 3D render window? There is nothing that does >> this out of the box that I know of. >> >> - Cory >> >> On Mon, Dec 28, 2015 at 9:54 AM, rakesh patil >> wrote: >> >>> Hello, >>> >>> Is it possible to have infinite/continuous two dimensional grid along a >>> particular plane. ? By this I mean to ask whether it is possible to >>> display two dimensional grid, covering the entire render window, as >>> and how >>> >>> 1. Window is resized, >>> 2. Zoom operation is performed >>> 3. Pan operation is performed >>> >>> Is it possible to do it in a similar manner as it is available with in >>> vtkCharts. ? >>> >>> 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: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From madaramh at gmail.com Wed Dec 30 00:57:09 2015 From: madaramh at gmail.com (madz) Date: Tue, 29 Dec 2015 22:57:09 -0700 (MST) Subject: [vtkusers] Find corner points of closed surface Message-ID: <1451455029405-5735700.post@n5.nabble.com> I have a surface as displayed below. I need to find the 4 corner points (circled in black) of the surface. Is there a method to achieve this in VTK? Any help would be appreciated. Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Find-corner-points-of-closed-surface-tp5735700.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Wed Dec 30 02:55:42 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 30 Dec 2015 00:55:42 -0700 (MST) Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis In-Reply-To: References: <1450957386793-5735645.post@n5.nabble.com> <1451311798109-5735657.post@n5.nabble.com> Message-ID: <1451462142642-5735701.post@n5.nabble.com> Hi Cory, I've solved it partially by rotating the overlapped labels 45 degrees (see the attached). The issue now is that the labels are above the X axis. I didn't find any methods in classes vtkChartXY, vtkAxis and vtkTextProperty to set the labels relative position, so putting them below the X axis. Do you know how can I fix this? Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645p5735701.html Sent from the VTK - Users mailing list archive at Nabble.com. From yihui.cao at qq.com Wed Dec 30 03:25:36 2015 From: yihui.cao at qq.com (=?ISO-8859-1?B?WWlodWkgQ2Fv?=) Date: Wed, 30 Dec 2015 16:25:36 +0800 Subject: [vtkusers] How to compute area of counter made by vtkContourWidget? Message-ID: Hi all, I used vtkContourWidget to label a contour on an image. And it also need to compute the area of contour. I tired by an example that first converted the contour by vtkTriangleFilter, and then use the vtkMassProperties to compute the area. The detailed code in a Callback function as follows: //////////////// void SetObject(vtkContourWidget * contour){ m_contour = contour; } virtual void Execute(vtkObject *caller, unsigned long eventId, void *callData){ int Num = m_contour->GetContourRepresentation()->GetNumberOfNodes(); std::cout<<"NumOfNodes:"<GetContourRepresentation()->GetClosedLoop()<GetContourRepresentation()->GetClosedLoop()) { vtkSmartPointer triangleFileter = vtkSmartPointer::New(); triangleFileter->SetInput(m_contour->GetContourRepresentation()->GetContourRepresentationAsPolyData()); vtkSmartPointer massProp = vtkSmartPointer::New(); //massProp->SetInput(triangleFileter->GetOutput()); massProp->SetInputConnection(triangleFileter->GetOutputPort()); double area = massProp->GetSurfaceArea(); //double area = 12; std::cout<<"Counter Area:"< From pablo.hernandez.cerdan at outlook.com Wed Dec 30 04:26:23 2015 From: pablo.hernandez.cerdan at outlook.com (Pablo Hernandez-Cerdan) Date: Wed, 30 Dec 2015 02:26:23 -0700 (MST) Subject: [vtkusers] vtkMath segfault In-Reply-To: <4E9EA5C9.1050501@creatis.insa-lyon.fr> References: <4E9EA5C9.1050501@creatis.insa-lyon.fr> Message-ID: <1451467583070-5735703.post@n5.nabble.com> Same here. It seems a double destruction or wrong order of destruction because vtkMathInternal is static member of vtkMath. http://stackoverflow.com/questions/6850009/c-deleting-static-data suggests a smart pointer for Gaussian, or remove the destructor. vtk --version = 6.3 //vtkMath.h static vtkInternal Internal //vtkMath.cxx class vtkMathInternal { public: vtkMathInternal(); ~vtkMathInternal(); vtkMinimalStandardRandomSequence *Uniform; vtkBoxMuellerRandomSequence *Gaussian; std::vector MemoizeFactorial; }; vtkMathInternal::vtkMathInternal() { this->Gaussian=vtkBoxMuellerRandomSequence::New(); // This line assumes the current vtkBoxMuellerRandomSequence behavior: // an initial vtkMinimalStandardRandomSequence is created. this->Uniform=static_cast( this->Gaussian->GetUniformSequence()); this->Uniform->SetSeedOnly(1177); // One authors home address this->MemoizeFactorial.resize(21, 0); } vtkMathInternal::~vtkMathInternal() { this->Gaussian->Delete(); } vtkMathInternal vtkMath::Internal; ----------------------------------- Valgrind output: valgrind -v --leak-check=full ./google-test-with-fixture.run ... ==32109== Invalid free() / delete / delete[] / realloc() ==32109== at 0x4C2A144: operator delete(void*) (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so) ==32109== by 0x1D00781D: vtkMathInternal::~vtkMathInternal() (vtkMath.cxx:62) ==32109== Invalid read of size 4 ==32109== at 0x1518C4C1: vtkObjectBase::~vtkObjectBase() (in /usr/lib/libvtkCommonCore.so.1) ==32109== by 0x1518C588: vtkObjectBase::~vtkObjectBase() (in /usr/lib/libvtkCommonCore.so.1) ==32109== by 0x1D00781D: vtkMathInternal::~vtkMathInternal() (vtkMath.cxx:62) ==32109== by 0x164D32EE: __cxa_finalize (in /usr/lib/libc-2.22.so) ==32109== by 0x1CEE42A2: ??? (in /home/phc/devtoolset/release/VTK/lib/libvtkCommonCore-6.3.so.1) ==32109== Invalid read of size 4 ==32109== at 0x1518C13D: vtkObjectBase::UnRegisterInternal(vtkObjectBase*, int) (in /usr/lib/libvtkCommonCore.so.1) ==32109== by 0x1D00781D: vtkMathInternal::~vtkMathInternal() (vtkMath.cxx:62) ==32109== at 0x1518C1F0: vtkObjectBase::Delete() (in /usr/lib/libvtkCommonCore.so.1) ==32109== by 0x1D00781D: vtkMathInternal::~vtkMathInternal() (vtkMath.cxx:62) ==32109== Invalid read of size 8 ==32109== at 0x1518C090: vtkObjectBase::UnRegister(vtkObjectBase*) (in /usr/lib/libvtkCommonCore.so.1) ==32109== by 0x1D00781D: vtkMathInternal::~vtkMathInternal() (vtkMath.cxx:62) -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkMath-segfault-tp4917184p5735703.html Sent from the VTK - Users mailing list archive at Nabble.com. From nawijn at gmail.com Wed Dec 30 04:29:54 2015 From: nawijn at gmail.com (Marco Nawijn) Date: Wed, 30 Dec 2015 10:29:54 +0100 Subject: [vtkusers] Find corner points of closed surface In-Reply-To: <1451455029405-5735700.post@n5.nabble.com> References: <1451455029405-5735700.post@n5.nabble.com> Message-ID: I am not aware (but I am also not an expert) of a particular filter or method to get the corner points of a surface in general. However, for the particular surface that you show, it should not be that difficult, because each of the corner points is on the bounding box of the grid. So assuming that the you have collected the points in a vtkPoints object, you can first extract the bounds and afterwards find the points that are on (closest to) each of the sides of the bounding box. Not that hard, not immediately obvious either. Marco On Wed, Dec 30, 2015 at 6:57 AM, madz wrote: > I have a surface as displayed below. I need to find the 4 corner points > (circled in black) of the surface. > > > > Is there a method to achieve this in VTK? > Any help would be appreciated. > > Thanks. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Find-corner-points-of-closed-surface-tp5735700.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo.hernandez.cerdan at outlook.com Wed Dec 30 04:47:56 2015 From: pablo.hernandez.cerdan at outlook.com (Pablo Hernandez-Cerdan) Date: Wed, 30 Dec 2015 02:47:56 -0700 (MST) Subject: [vtkusers] vtkMath segfault In-Reply-To: <1451467583070-5735703.post@n5.nabble.com> References: <4E9EA5C9.1050501@creatis.insa-lyon.fr> <1451467583070-5735703.post@n5.nabble.com> Message-ID: <1451468876261-5735705.post@n5.nabble.com> Reported in http://www.vtk.org/Bug/view.php?id=15909 -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkMath-segfault-tp4917184p5735705.html Sent from the VTK - Users mailing list archive at Nabble.com. From eduardo.hssi at gmail.com Wed Dec 30 07:19:55 2015 From: eduardo.hssi at gmail.com (eduardo) Date: Wed, 30 Dec 2015 05:19:55 -0700 (MST) Subject: [vtkusers] Feret Diameter In-Reply-To: References: <1451393772675-5735677.post@n5.nabble.com> Message-ID: <1451477995931-5735706.post@n5.nabble.com> thank you. -- View this message in context: http://vtk.1045678.n5.nabble.com/Feret-Diameter-tp5735677p5735706.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Dec 30 15:22:52 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 30 Dec 2015 15:22:52 -0500 Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis In-Reply-To: <1451462142642-5735701.post@n5.nabble.com> References: <1450957386793-5735645.post@n5.nabble.com> <1451311798109-5735657.post@n5.nabble.com> <1451462142642-5735701.post@n5.nabble.com> Message-ID: Maybe try vtkTextProperty::SetJustificationToRight()? On Wed, Dec 30, 2015 at 2:55 AM, joaoroberto88 wrote: > Hi Cory, > > I've solved it partially by rotating the overlapped labels 45 degrees (see > the attached). The issue now is that the labels are above the X axis. I > didn't find any methods in classes vtkChartXY, vtkAxis and vtkTextProperty > to set the labels relative position, so putting them below the X axis. Do > you know how can I fix this? > > Thanks, > > Joao. > > < > http://vtk.1045678.n5.nabble.com/file/n5735701/Screen_Shot_2015-12-30_at_04.png > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645p5735701.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > 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: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From juch at zhaw.ch Wed Dec 30 18:08:24 2015 From: juch at zhaw.ch (normanius) Date: Wed, 30 Dec 2015 16:08:24 -0700 (MST) Subject: [vtkusers] Broken surfaces for vtkBooleanOperationPolyDataFilter() - Bug? In-Reply-To: <1449616535375-5735424.post@n5.nabble.com> References: <1449603243012-5735413.post@n5.nabble.com> <1449616535375-5735424.post@n5.nabble.com> Message-ID: <1451516904162-5735710.post@n5.nabble.com> Hi all Just wanted to let you know that I was able to work around my problem by using vtkClipPolyData instead of vtkBooleanOperationPolyDataFilter. This also brings the advantage that the code runs much faster. Here some code to get the basic idea (not fully equivalent to above code, but can be made equivalent with just a few lines more): -- View this message in context: http://vtk.1045678.n5.nabble.com/Broken-surfaces-for-vtkBooleanOperationPolyDataFilter-Bug-tp5735413p5735710.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Wed Dec 30 19:05:47 2015 From: juch at zhaw.ch (normanius) Date: Wed, 30 Dec 2015 17:05:47 -0700 (MST) Subject: [vtkusers] How to compute area of counter made by vtkContourWidget? In-Reply-To: References: Message-ID: <1451520347746-5735711.post@n5.nabble.com> Hi Yihui Cao The "3" in the warning message refers to VTK_LINE. From this I infer that the contour is represented with lines only (a polyline). You have to first "transform" the line into a polyline, or In case your contour is guaranteed to be convex, you can triangulate the contour surface with vtkDelaunay2D. So, before calling the vtkTriangleFilter, calculate the Delaunay triangulation on your contour edges (Python code): If the contour is not convex, things are a bit more complicated. You can try to transform the polyline into a polygon. Unfortunately, I haven't found a simple trick myself. Here some ideas that might help: http://www.itk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/Polygon http://vtk.1045678.n5.nabble.com/Polygon-triangulation-using-vtkPolugon-Triangulate-td1238179.html -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-compute-area-of-counter-made-by-vtkContourWidget-tp5735702p5735711.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Wed Dec 30 20:12:13 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 30 Dec 2015 18:12:13 -0700 (MST) Subject: [vtkusers] Issue when setting number of ticks on a vtkAxis In-Reply-To: References: <1450957386793-5735645.post@n5.nabble.com> <1451311798109-5735657.post@n5.nabble.com> <1451462142642-5735701.post@n5.nabble.com> Message-ID: <1451524333068-5735712.post@n5.nabble.com> Hi Cory, Same thing here. Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Issue-when-setting-number-of-ticks-on-a-vtkAxis-tp5735645p5735712.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Wed Dec 30 20:35:13 2015 From: juch at zhaw.ch (normanius) Date: Wed, 30 Dec 2015 18:35:13 -0700 (MST) Subject: [vtkusers] Problems with vtkClipPolyData and vtkImplicitBoolean Message-ID: <1451525713172-5735713.post@n5.nabble.com> Hi I have an issue with vtkClipPolyData, using an implicit function created with vtkImplicitBoolean. Although it is really convenient to create a complex-shaped function, it does not behave as expected in regions where two implicit functions coincide. Here is what I do: cut out a cylinder from an arbitrary surface. The code is found at the end of this post. 1) Define a bounded implicit cylinder by combining (intersecting) one vtkCylinder with two vtkPlanes: vtkImplicitBoolean. 2) Clip the surface using vtkClipPolyData (at function value 0). While the clipping works good in general, the clipping is inaccurate in regions where two implicit functions intersect. Look at the image below (ignore the red sphere). In white the surface that has to be cut. The green transparent surface indicates the implicit cylinder function. The cells that are clipped away by vtkClipPolyData are marked blue. You can see easily that close to where vtkCylinder and vtkPlane intersect the clipping looks faulty. I found two issues with vtk related to this: 1) The vtkCylinder function measures the *squared* radial distance from the surface, while the vtkPlane evaluates the normal distance. This is inconsistent with the linear interpolation performed when clipping the cells (e.g. vtkTriangle::Clip()). 2) If two points of a surface triangle are "constrained" by different implicit functions, the interpolation used when clipping a (triangular) cell is inaccurate. (This problem occurs only for functions using vtkImplicitBoolean.) 1) is not actually a bug or issue but the choice of function accentuates the problem in my case. That's why I would suggest the following change of code int vtkCylinder.cxx. I guess you are pretty reluctant to apply this change because of backward compatibility. Nevertheless, the result looks considerably better with the new choice and is more consistent with the linear interpolation when clipping. But the real issue is 2). When the corners of a triangle "hit" different implicit functions, the linear interpolation (e.g. in vtkTriangle::Clip()) between the function values is not valid, or at best inaccurate. I've looked how vtkClipPolyData::RequestData() operates and how it invokes vtkGenericCell::Clip(...) (or vtkTriangle::Clip() in my case) and I suggest that this is improved: either by passing a functor to Clip() that allows to evaluate multiple candidates, or to discretize the edges of these triangles beforehand. Obviously, this would make the code run slower. But the precision could be specified, which is often more eligible. So here's a question: how can I work around these inaccuracies along the boundaries of a boolean implicit function? And along this lines, I'm suggesting two changes in the code: 1) Make the distance function for the cylinder linear. 2) Don't use linear interpolation in those cells that are clipped. Let me know what you're thinking. -- View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-vtkClipPolyData-and-vtkImplicitBoolean-tp5735713.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Wed Dec 30 20:46:06 2015 From: juch at zhaw.ch (normanius) Date: Wed, 30 Dec 2015 18:46:06 -0700 (MST) Subject: [vtkusers] Problems with vtkClipPolyData and vtkImplicitBoolean In-Reply-To: <1451525713172-5735713.post@n5.nabble.com> References: <1451525713172-5735713.post@n5.nabble.com> Message-ID: <1451526366773-5735714.post@n5.nabble.com> Here's the code that I've promised. -- View this message in context: http://vtk.1045678.n5.nabble.com/Problems-with-vtkClipPolyData-and-vtkImplicitBoolean-tp5735713p5735714.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Thu Dec 31 09:04:39 2015 From: juch at zhaw.ch (normanius) Date: Thu, 31 Dec 2015 07:04:39 -0700 (MST) Subject: [vtkusers] Problem with vtkInteractorStyleImage In-Reply-To: <1450771333999-5735629.post@n5.nabble.com> References: <1450771333999-5735629.post@n5.nabble.com> Message-ID: <1451570679665-5735715.post@n5.nabble.com> Hi Two stupid questions Did you define the macro? And do you have this line? I tested your sample and I do receive the events. I tested with vtk-5.10.1 and vtk-6.3.0 on Mac OS. (On Mac OS, I have some issues with vtk-5.10.1 and the windowing system, but generally the sample was working.) Here's the complete code I was using: -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-with-vtkInteractorStyleImage-tp5735629p5735715.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Thu Dec 31 09:30:20 2015 From: juch at zhaw.ch (normanius) Date: Thu, 31 Dec 2015 07:30:20 -0700 (MST) Subject: [vtkusers] Grid overlay on 3D view n world coordinates In-Reply-To: <26F54924-EE6A-43FB-9DF8-43CC7404BDA8@me.com> References: <26F54924-EE6A-43FB-9DF8-43CC7404BDA8@me.com> Message-ID: <1451572220399-5735716.post@n5.nabble.com> For custom behaviour of the scene, you might want to derive your own interactor, as shown in Mouse Events example . You can then forward those events to your grid object that you actually want to handle. VTK also supports callbacks to intercept a certain user event. You can read here how this works. A list of commands is found in the documentation of vtkCommand . How do you create grid lines? Similar to the StructuredDataTypes example ? I hope this was useful. -- View this message in context: http://vtk.1045678.n5.nabble.com/Grid-overlay-on-3D-view-n-world-coordinates-tp5735663p5735716.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Thu Dec 31 09:48:42 2015 From: juch at zhaw.ch (normanius) Date: Thu, 31 Dec 2015 07:48:42 -0700 (MST) Subject: [vtkusers] How to highlight an object from polydata on a single actor, python ? In-Reply-To: <1450764758067-5735627.post@n5.nabble.com> References: <1450764758067-5735627.post@n5.nabble.com> Message-ID: <1451573322266-5735717.post@n5.nabble.com> I don't get your question. Could you elaborate a bit more and maybe provide a minimal example? How do you map multiple spheres with one mapper? How about creating a separate highlight actor and map the highlighted object with this actor? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-highlight-an-object-from-polydata-on-a-single-actor-python-tp5735627p5735717.html Sent from the VTK - Users mailing list archive at Nabble.com. From dakota_63124 at yahoo.com Thu Dec 31 13:39:37 2015 From: dakota_63124 at yahoo.com (kent myers) Date: Thu, 31 Dec 2015 11:39:37 -0700 (MST) Subject: [vtkusers] CMAKE error mt.exe failed to write the updated manifest to the resource file Message-ID: <1451587177064-5735718.post@n5.nabble.com> I am trying to update from VTK 6.2 to 6.3. I installed the latest CMAKE 3.4.1. I am using VS2010 64 bit compiler. I tried disabling virus protection. I previously build 6.2 successfully on Windows 7. I have since upgraded to Windows 10. When I click the Configure button in the cmake interface, I get errors: The C compiler identification is unknown... etc. The CMakeOutput.log file contains the following error: mt.exe : general error c101008d: Failed to write the updated manifest to the resource of file ".\CompilerIdCXX.exe". The process cannot access the file because it is being used by another process. [C:\DevelopmentTools\VTK\BuildWindowsVTK6.3\CMakeFiles\3.4.1\CompilerIdCXX\CompilerIdCXX.vcxproj] Done Building Project "C:\DevelopmentTools\VTK\BuildWindowsVTK6.3\CMakeFiles\3.4.1\CompilerIdCXX\CompilerIdCXX.vcxproj" (default targets) -- FAILED. Build FAILED. Any suggestions? Thanks, Kent -- View this message in context: http://vtk.1045678.n5.nabble.com/CMAKE-error-mt-exe-failed-to-write-the-updated-manifest-to-the-resource-file-tp5735718.html Sent from the VTK - Users mailing list archive at Nabble.com. From wangq1979 at outlook.com Thu Dec 31 13:56:17 2015 From: wangq1979 at outlook.com (WangQ) Date: Fri, 1 Jan 2016 02:56:17 +0800 Subject: [vtkusers] how to derive vtkPloyDataAlgorithm class Message-ID: hello vtkusers, Happy new year! I tried to google how to implement my own algorithm derived from vtkPloyDataAlgorithm, but no luck to find a very detailed example so far. Can anyone give me some relating information? Better an example from scratch with explanation as detailed as possible. regards, Chiang. -------------- next part -------------- An HTML attachment was scrubbed... URL: