From david.gobbi at gmail.com Thu Jun 1 00:59:22 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 31 May 2017 22:59:22 -0600 Subject: [vtkusers] vtk 8.1 on mac sierra (10.12.5) - error: no member named 'view' in 'TkWindowPrivate' In-Reply-To: References: <20170531160112.746309459@mail.rogue-research.com> Message-ID: Hi Reuben, Working with the Apple's Tk framework is tricky, Apple provides a tweaked version of Tk 8.5 that has some bits of 8.6 backported into it. So you have to use the tk-private headers from the Xcode SDK: TK_INTERNAL_PATH:PATH= /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/Tk.framework/Headers/tk-private/ Cheers, - David On Wed, May 31, 2017 at 6:57 PM, Reuben Kraft wrote: > Thanks. When I make that change in the configuration, I get a different > error having to do with CONST86. Is there another option I need to set? > Latest CmakeCache file attached. > > Thanks, > > > > [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/ > vtkRenderingOpenGL2CxxTests.dir/TestVBOPointsLines.cxx.o > > [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/ > vtkRenderingOpenGL2CxxTests.dir/TestValuePass.cxx.o > > [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/ > vtkRenderingOpenGL2CxxTests.dir/TestValuePass2.cxx.o > > [ 68%] Building CXX object Rendering/OpenGL2/Testing/Cxx/CMakeFiles/ > vtkRenderingOpenGL2CxxTests.dir/TestCubeMap2.cxx.o > > [ 68%] Linking CXX executable ../../../../bin/vtkRenderingOpenGL2CxxTests. > app/Contents/MacOS/vtkRenderingOpenGL2CxxTests > > [ 68%] Built target vtkRenderingOpenGL2CxxTests > > [ 68%] Building CXX object Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/ > vtkTclTkWidgetsInit.cxx.o > > [ 68%] Building CXX object Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/ > vtkTkRenderWidget.cxx.o > > In file included from /Users/rhk12/code/vtk/Rendering/Tk/ > vtkTkRenderWidget.cxx:34: > > In file included from /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/ > tk8.6/tkInt.h:991: > > /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:103:8: > error: unknown type name 'CONST86' > > EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr, > > ^ > > /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:103:16: > error: expected unqualified-id > > EXTERN CONST86 char * TkFindStateString(const TkStateMap *mapPtr, > > ^ > > /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:166:8: > error: unknown type name 'CONST86' > > EXTERN CONST86 char * TkKeysymToString(KeySym keysym); > > ^ > > /Users/rhk12/code/vtk/ThirdParty/TclTk/internals/tk8.6/tkIntDecls.h:166:16: > error: expected unqualified-id > > EXTERN CONST86 char * TkKeysymToString(KeySym keysym); > > On Wed, May 31, 2017 at 12:01 PM, Sean McBride > wrote: > >> On Wed, 31 May 2017 10:54:45 -0400, Reuben Kraft said: >> >> >Hello, >> > >> >I am trying to build vtk 8.1 on mac running sierra (version 10.12.5). I >> am >> >currently getting this error message below. I have seen others with this >> >problem but the solution was not clear. It seemed like it had something >> to >> >do with the location of the Tk headers? I was hoping someone would have >> >some clear suggestions. CmakeCache.txt is attached. >> > >> >Thanks. >> > >> >[ 69%] Building CXX object >> >Rendering/Tk/CMakeFiles/vtkRenderingTkTCL.dir/vtkCocoaTkUtilities.mm.o >> > >> >/Users/rhk12/code/vtk/Rendering/Tk/vtkCocoaTkUtilities.mm:57:28: error: >> no >> >member named 'view' in 'TkWindowPrivate' >> > >> > NSView *result = macWin->view; >> > >> > ~~~~~~ ^ >> >> In your cache we see: >> >> TK_INTERNAL_PATH:PATH=/Users/rhk12/code/vtk/ThirdParty/TclTk >> /internals/tk8.5 >> >> In: >> >> VTK/ThirdParty/TclTk/internals/tk8.5/tkMacOSXInt.h >> >> there is indeed no member named 'view' in 'TkWindowPrivate'. >> >> In: >> >> VTK/ThirdParty/TclTk/internals/tk8.6/tkMacOSXInt.h >> >> there is. >> >> Cheers, >> >> -- >> ____________________________________________________________ >> Sean McBride, B. Eng sean at rogue-research.com >> Rogue Research www.rogue-research.com >> Mac Software Developer Montr?al, Qu?bec, Canada >> >> >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 alican1812 at hotmail.com Thu Jun 1 09:53:29 2017 From: alican1812 at hotmail.com (alican) Date: Thu, 1 Jun 2017 06:53:29 -0700 (MST) Subject: [vtkusers] How to draw a checkered floor in VTK? Message-ID: <1496325209225-5743506.post@n5.nabble.com> I have tried to do it with vtkQuad, based on this example , however nothing is drawn. // Add the points to a vtkPoints object vtkSmartPointer points = vtkSmartPointer::New(); vtkSmartPointer quads = vtkSmartPointer::New(); for (int i = 0; i < 3; i++) { // Create four points (must be in counter clockwise order) double p0[3] = { 0.0, 0.0, 0.0 }; double p1[3] = { 1.0*i, 0.0, 0.0 }; double p2[3] = { 1.0*i, 0.0, 1.0*i }; double p3[3] = { 0.0, 0.0, 1.0*i }; points->InsertNextPoint(p0); points->InsertNextPoint(p1); points->InsertNextPoint(p2); points->InsertNextPoint(p3); // Create a quad on the four points vtkSmartPointer quad = vtkSmartPointer::New(); quad->GetPointIds()->SetId(0, 0); quad->GetPointIds()->SetId(1, 1); quad->GetPointIds()->SetId(2, 2); quad->GetPointIds()->SetId(3, 3); // Create a cell array to store the quad in quads->InsertNextCell(quad); } // Create a polydata to store everything in vtkSmartPointer polydata = vtkSmartPointer::New(); // Add the points and quads to the dataset polydata->SetPoints(points); polydata->SetPolys(quads); // Setup colors unsigned char red[3] = { 255, 0, 0 }; unsigned char green[3] = { 0, 255, 0 }; unsigned char blue[3] = { 0, 0, 255 }; vtkSmartPointer colors = vtkSmartPointer::New(); colors->SetNumberOfComponents(3); colors->SetName("Colors"); colors->InsertNextTupleValue(red); colors->InsertNextTupleValue(green); colors->InsertNextTupleValue(blue); polydata->GetPointData()->SetScalars(colors); // Add the points and quads to the dataset polydata->SetPoints(points); polydata->SetPolys(quads); // Setup actor and mapper vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(polydata); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); // Setup render window, renderer, and interactor m_pRenderer->AddViewProp(actor); -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-draw-a-checkered-floor-in-VTK-tp5743506.html Sent from the VTK - Users mailing list archive at Nabble.com. From bill.lorensen at gmail.com Thu Jun 1 11:10:54 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Thu, 1 Jun 2017 11:10:54 -0400 Subject: [vtkusers] ANN: VTKWikiExamples are now VTKExamples Message-ID: Folks, We are moving the wiki-based VTK examples: http://www.vtk.org/Wiki/VTK/Examples to a git-based repository: https://lorensen.github.io/VTKExamples/ The new VTK Examples have a more modern look and feel and perform well on mobile devices. The pages use Google's Material Design guidelines so navigation will look familiar to many users. All of the wiki examples have been moved to the new repository. Eventually we will decommission the old wiki-based examples. Consider this a beta announcement. We need feedback and help to fix the description pages. To contribute, please see these instructions: https://lorensen.github.io/VTKExamples/site/Instructions/ForDevelopers/ To use the new examples, see the instructions here: https://lorensen.github.io/VTKExamples/site/Instructions/ForUsers/ Thanks, Bill From siming.bayer at gmail.com Thu Jun 1 11:26:00 2017 From: siming.bayer at gmail.com (Siming Bayer) Date: Thu, 1 Jun 2017 17:26:00 +0200 Subject: [vtkusers] PolyDataToImageData only produces a black image Message-ID: Dear all, I just rewritten the c++ PolyDataToImageData example(http://www.vtk.org/Wiki/VTK/Examples/Cxx/ PolyData/PolyDataToImageData) to python. And I have changed nothing, just simply rewrite the c++ code to python code. However, the python file only produce a black image (256x257x256, 8bit). I used imageJ to open the produce the .mhd file. The VTK version on my machine is 7.1. Does anybody know the reason for it? How can I solve it? best, Siming -------------- next part -------------- An HTML attachment was scrubbed... URL: From coyarzunlaura at googlemail.com Thu Jun 1 12:14:36 2017 From: coyarzunlaura at googlemail.com (Cristina Oyarzun) Date: Thu, 1 Jun 2017 18:14:36 +0200 Subject: [vtkusers] VTK-JS VolumeMapper In-Reply-To: References: Message-ID: Thank you very much Sebastien! It worked! On Thu, Jun 1, 2017 at 5:03 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > We created an utility command line that use ParaView to do that > conversion. > The command line helper can be used by installing globally vtk.js (npm > install vtk.js -g). Then you should be able to run "vtkDataConverter" for > more help on how to use it. > > On Thu, Jun 1, 2017 at 7:34 AM, Cristina Oyarzun < > coyarzunlaura at googlemail.com> wrote: > >> Dear Sebastien, >> >> thank you for your help! >> >> I can visualize the first volume now. I am now wondering how can I >> visualize my own model. I tried to visualize a Mesh that I saved as vtk >> file. However, it seems that an index.json file is required to visialize >> the model. How do you create your models so that they are divided into a >> .json file and a data file? Ist there anyway with vtk to save the data that >> way? >> >> Thank you very much! >> >> Cristina >> >> >> On Mon, May 29, 2017 at 4:56 PM, Sebastien Jourdain < >> sebastien.jourdain at kitware.com> wrote: >> >>> Did you created all the pieces highlighted in the following examples? ( >>> vtkPiecewiseFunction/vtkVolumeMapper/vtkVolume) >>> >>> https://kitware.github.io/vtk-js/examples/ZipHttpReader.html >>> https://kitware.github.io/vtk-js/examples/VolumeMapper.html >>> >>> On Mon, May 29, 2017 at 6:11 AM, Cristina Oyarzun via vtkusers < >>> vtkusers at vtk.org> wrote: >>> >>>> Dear all, >>>> >>>> I am new using VTK-JS. I followed the information given in the webpage >>>> to build a project and it worked nicely. >>>> >>>> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html >>>> >>>> The problem came when I tried to exchange the cone example with the >>>> VolumeMapper example: >>>> >>>> https://kitware.github.io/vtk-js/examples/VolumeMapper.html#Source >>>> >>>> To do this I built an new project like the previous time, with the >>>> difference that I did not create any controller.html, since it seems not to >>>> be required for that example. I copied the volume of that example in the >>>> new project folder at: /Data/volume/LIDC2.vti >>>> >>>> After building this project the only thing I get is a black screen... >>>> >>>> It would be great if someone could give me any idea how to proceed... >>>> >>>> Thank you!!! >>>> >>>> Cristina >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> 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 rccm.kyoshimi at gmail.com Fri Jun 2 02:02:10 2017 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Fri, 2 Jun 2017 15:02:10 +0900 Subject: [vtkusers] How to draw a checkered floor in VTK? In-Reply-To: <1496325209225-5743506.post@n5.nabble.com> References: <1496325209225-5743506.post@n5.nabble.com> Message-ID: Hi alican, I changed your code to show a checkered floor and attached it. But there may be more skillful ways. Thanks, 2017-06-01 22:53 GMT+09:00 alican : > I have tried to do it with vtkQuad, based on this example > , however > nothing is drawn. > > // Add the points to a vtkPoints object > vtkSmartPointer points = vtkSmartPointer::New(); > vtkSmartPointer quads = vtkSmartPointer::New(); > for (int i = 0; i < 3; i++) > { > // Create four points (must be in counter clockwise order) > double p0[3] = { 0.0, 0.0, 0.0 }; > double p1[3] = { 1.0*i, 0.0, 0.0 }; > double p2[3] = { 1.0*i, 0.0, 1.0*i }; > double p3[3] = { 0.0, 0.0, 1.0*i }; > > points->InsertNextPoint(p0); > points->InsertNextPoint(p1); > points->InsertNextPoint(p2); > points->InsertNextPoint(p3); > > // Create a quad on the four points > vtkSmartPointer quad = vtkSmartPointer::New(); > quad->GetPointIds()->SetId(0, 0); > quad->GetPointIds()->SetId(1, 1); > quad->GetPointIds()->SetId(2, 2); > quad->GetPointIds()->SetId(3, 3); > > // Create a cell array to store the quad in > quads->InsertNextCell(quad); > } > > // Create a polydata to store everything in > vtkSmartPointer polydata = > vtkSmartPointer::New(); > > // Add the points and quads to the dataset > polydata->SetPoints(points); > polydata->SetPolys(quads); > // Setup colors > unsigned char red[3] = { 255, 0, 0 }; > unsigned char green[3] = { 0, 255, 0 }; > unsigned char blue[3] = { 0, 0, 255 }; > > vtkSmartPointer colors = > vtkSmartPointer::New(); > colors->SetNumberOfComponents(3); > colors->SetName("Colors"); > colors->InsertNextTupleValue(red); > colors->InsertNextTupleValue(green); > colors->InsertNextTupleValue(blue); > > polydata->GetPointData()->SetScalars(colors); > // Add the points and quads to the dataset > polydata->SetPoints(points); > polydata->SetPolys(quads); > > // Setup actor and mapper > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputData(polydata); > > vtkSmartPointer actor = vtkSmartPointer::New(); > actor->SetMapper(mapper); > > // Setup render window, renderer, and interactor > m_pRenderer->AddViewProp(actor); > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/How-to-draw-a-checkered-floor-in-VTK-tp5743506.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 -------------- A non-text attachment was scrubbed... Name: Checkerboard.tar.gz Type: application/x-gzip Size: 1348 bytes Desc: not available URL: From ufuk.turuncoglu at itu.edu.tr Fri Jun 2 08:13:46 2017 From: ufuk.turuncoglu at itu.edu.tr (Ufuk Turuncoglu) Date: Fri, 2 Jun 2017 15:13:46 +0300 Subject: [vtkusers] is whole extent required for multiblock dataset? Message-ID: Hi Again, I create following test code to write dummy data (checkerboard with 0 and 1) using vtkStructuredGrid in multiblock format. Without extent in left and top of the tiles the data looks correct but there is a gap between pieces (see attached screenshot). To fix the issue, i add a extra piece of code to overlap one row and columns (using hasLeft and hasTop control). The problem is that when i run the code with this modification, i am getting totally wrong grid representation (screen2). I just wonder that do i need to set whole extent in somewhere. I tried to add following to set whole extent to multiblock dataset, int extent[6] = {0, N-1, 0, N-1, 0, 0}; mb->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), extent, 6); but it won't work as i expected. Any suggestion? Thanks. Regards, --ufuk #include #include "mpi.h" #include "vtkStructuredGrid.h" #include "vtkSmartPointer.h" #include "vtkMultiBlockDataSet.h" #include "vtkMultiPieceDataSet.h" #include "vtkNew.h" #include "vtkXMLPMultiBlockDataWriter.h" #include "vtkMPIController.h" #include "vtkDoubleArray.h" #include "vtkDataSet.h" #include "vtkPointData.h" #include "vtkInformation.h" #include "vtkStreamingDemandDrivenPipeline.h" using namespace std; // global variables int const N = 10; int const tileX = 2; int const tileY = 2; int main(int argc, char** argv) { // initialize MPI MPI_Init(NULL, NULL); // setup global controller, true means initialized externally vtkNew controller; controller->Initialize(&argc, &argv, true); vtkMultiProcessController::SetGlobalController(controller.Get()); // get number of processor and rank int nproc, myid; MPI_Comm_size(MPI_COMM_WORLD, &nproc); MPI_Comm_rank(MPI_COMM_WORLD, &myid); // create 2d decomposition parameters bool hasLeft = false, hasTop = false; if (myid%tileX == 0) hasLeft = true; if (myid/tileY == 0) hasTop = true; int istr = myid%tileX*N/tileX; int iend = istr+N/tileX-1; if (hasLeft) iend = iend+1; int jstr = myid/tileX*N/tileY; int jend = jstr+N/tileY-1; if (hasTop) jend = jend+1; int size = (iend-istr+1)*(jend-jstr+1); //cout << myid << " of " << nproc << " " << boolalpha << hasLeft << " " << hasTop << endl; //cout << myid << " " << istr << " " << iend << " " << jstr << " " << jend << endl; // create structured grid vtkSmartPointer grid = vtkSmartPointer::New(); // define grid coordinates vtkSmartPointer points = vtkSmartPointer::New(); points->SetNumberOfPoints(size); int id = 0; for (int i = istr; i <= iend; i++) { for (int j = jstr; j <= jend; j++) { points->SetPoint(id, i, j, 0); id = id+1; } } grid->SetPoints(points); grid->SetExtent(istr, iend, jstr, jend, 0, 0); points->Delete(); // add field, checkerboard type data with full of 0/1 vtkSmartPointer field = vtkSmartPointer::New(); field->SetName("dummy"); field->SetNumberOfComponents(1); field->SetNumberOfValues(size); id = 0; for (int i = istr; i <= iend; i++) { for (int j = jstr; j <= jend; j++) { int val = (i+j)%2 ? 0 : 1; field->SetValue(id, val); id = id+1; } } // create multi block grid vtkMultiBlockDataSet* mb = vtkMultiBlockDataSet::New(); vtkNew mpds; mpds->SetNumberOfPieces(nproc); mpds->SetPiece(myid, grid.GetPointer()); mb->SetNumberOfBlocks(1); mb->SetBlock(0, mpds.GetPointer()); // add field vtkDataSet *ds = vtkDataSet::SafeDownCast(mpds->GetPiece(myid)); ds->GetPointData()->AddArray(field); // create a writer vtkSmartPointer mbw = vtkSmartPointer::New(); mbw->SetFileName("test.vtm"); mbw->SetDataModeToAscii(); mbw->SetInputData(mb); mbw->Write(); // finalize the MPI environment. MPI_Finalize(); return 0; } -------------- next part -------------- A non-text attachment was scrubbed... Name: screen.png Type: image/png Size: 294963 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: screen2.png Type: image/png Size: 321266 bytes Desc: not available URL: From ken.martin at kitware.com Fri Jun 2 08:42:42 2017 From: ken.martin at kitware.com (Ken Martin) Date: Fri, 2 Jun 2017 08:42:42 -0400 Subject: [vtkusers] How to use OpenVR overlay with VTK ? In-Reply-To: References: Message-ID: Yes vtkOpenVROverlay is intended to be a dashboard overlay. Using Qt to create the texture for an overlay (per the OpenVR SDK example) seems like a fine idea. Not sure why you are running into issues as long as you keep the thread/context boundaries clean. I have not tried that approach personally but I think it is a fine way to go. Thanks Ken On Fri, May 19, 2017 at 11:49 AM, liyang lin wrote: > Hi, I have a simple Virtual Reality app that uses VTK for visualization, > and I'm trying to make GUI using OpenVR overlay but can't get it working. > > I tried to use two threads to do the job, In the main thread, I set up > OpenVRRenderWindow, renderer and interactor, and starts the interactor; > In the overlay thread, I create an OpenVR overlay and an OpenGL context > that associated with a Qt offscreen surface, then render a Qt widget into a > framebuffer object in the OpenGL context, then extract the texture from the > framebuffer object, and feed it into the overlay using setOverlayTexture. > The second thread also listens for OpenVR overlayShown, mouse move/up/down > event, and dispatch them to the widget. > > The overlay appears as expected, but the 3D scene rendered by VTK is > problematic, scene in the left eye flashes and doesn't react to HMD > movement, and when I points the controller to the overlay(which cause > rerender of the widget, and a setOverlayTexture call), the scene just > disappears. > > I have no idea why this happens since I use my own OpenGL context in the > overlay thread, why is the scene rendered by VTK is affected ? > > I also looked into vtkOpenVROverlay, it seems that it's a dashboard > overlay and hard to be reused. > > Anybody know how to create GUI in VTK with OpenVR ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 Distinguished Engineer Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 This communication, including all attachments, contains confidential and legally privileged information, and it is intended only for the use of the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken in reliance on it is prohibited and may be unlawful. If you received this communication in error please notify us immediately and destroy the original message. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From abenchaaben at histalim.com Fri Jun 2 08:45:22 2017 From: abenchaaben at histalim.com (abenchaaben) Date: Fri, 2 Jun 2017 05:45:22 -0700 (MST) Subject: [vtkusers] TestDragon Oculus Rift test code In-Reply-To: <1496240337025-5743489.post@n5.nabble.com> References: <1496240337025-5743489.post@n5.nabble.com> Message-ID: <1496407522867-5743514.post@n5.nabble.com> Any help please!!! -- View this message in context: http://vtk.1045678.n5.nabble.com/TestDragon-Oculus-Rift-test-code-tp5743489p5743514.html Sent from the VTK - Users mailing list archive at Nabble.com. From alican1812 at hotmail.com Fri Jun 2 09:12:50 2017 From: alican1812 at hotmail.com (alican) Date: Fri, 2 Jun 2017 06:12:50 -0700 (MST) Subject: [vtkusers] How to draw a checkered floor in VTK? In-Reply-To: References: <1496325209225-5743506.post@n5.nabble.com> Message-ID: <1496409170951-5743516.post@n5.nabble.com> Kenichiro, you are a life saver. I am a completely newbie to VTK, and I am struggling with it a lot. Please allow me one more question: How to make this grid infinite? Like we see in 3D computer games? I have tried this approach: SetOrigin(0.0, 0.0, 0.0) SetPoint1(10.0, 0.0, 0.0 ); SetPoint2(0.0, 10.0, 0.0 ); and then SetXResolution(10); SetYResolution(10); but this way I can only increase / decrease the size and the number of squares in the grid, not the total size of the grid. Sorry if this is a stupid question, as I said, I am still learning. Thank you again. AC -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-draw-a-checkered-floor-in-VTK-tp5743506p5743516.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.bauer at kitware.com Fri Jun 2 13:16:51 2017 From: andy.bauer at kitware.com (Andy Bauer) Date: Fri, 2 Jun 2017 13:16:51 -0400 Subject: [vtkusers] is whole extent required for multiblock dataset? In-Reply-To: References: Message-ID: Hi Ufuk, If there is one vtkStructuredGrid per multi-block you don't need the whole extent. Using a vtkStructuredGrid in a multiblock though will result in each grid block to be considered a separate grid so if you do something like extracting the surface it probably won't look correct unless you generate your own ghost cells (the ghost cell generator filter in PV won't work). I only briefly looked through your code snippet but I suspect there's an "off-by-1" bug in the way you're setting your point coordinates for the structured grids but once that's fixed it will work the way you want it to. I probably don't know your full use case but I would suggest for non-Catalyst stuff to just avoid the multiblock here and just generate structured grid pieces. Best, Andy On Fri, Jun 2, 2017 at 8:13 AM, Ufuk Turuncoglu wrote: > Hi Again, > > I create following test code to write dummy data (checkerboard with 0 and > 1) using vtkStructuredGrid in multiblock format. Without extent in left and > top of the tiles the data looks correct but there is a gap between pieces > (see attached screenshot). To fix the issue, i add a extra piece of code to > overlap one row and columns (using hasLeft and hasTop control). The problem > is that when i run the code with this modification, i am getting totally > wrong grid representation (screen2). I just wonder that do i need to set > whole extent in somewhere. I tried to add following to set whole extent to > multiblock dataset, > > int extent[6] = {0, N-1, 0, N-1, 0, 0}; > mb->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), > extent, 6); > > but it won't work as i expected. Any suggestion? Thanks. > > Regards, > > --ufuk > > > #include > #include "mpi.h" > #include "vtkStructuredGrid.h" > #include "vtkSmartPointer.h" > #include "vtkMultiBlockDataSet.h" > #include "vtkMultiPieceDataSet.h" > #include "vtkNew.h" > #include "vtkXMLPMultiBlockDataWriter.h" > #include "vtkMPIController.h" > #include "vtkDoubleArray.h" > #include "vtkDataSet.h" > #include "vtkPointData.h" > #include "vtkInformation.h" > #include "vtkStreamingDemandDrivenPipeline.h" > > using namespace std; > > // global variables > int const N = 10; > int const tileX = 2; > int const tileY = 2; > > int main(int argc, char** argv) { > // initialize MPI > MPI_Init(NULL, NULL); > > // setup global controller, true means initialized externally > vtkNew controller; > controller->Initialize(&argc, &argv, true); > vtkMultiProcessController::SetGlobalController(controller.Get()); > > // get number of processor and rank > int nproc, myid; > MPI_Comm_size(MPI_COMM_WORLD, &nproc); > MPI_Comm_rank(MPI_COMM_WORLD, &myid); > > // create 2d decomposition parameters > bool hasLeft = false, hasTop = false; > if (myid%tileX == 0) hasLeft = true; > if (myid/tileY == 0) hasTop = true; > > int istr = myid%tileX*N/tileX; > int iend = istr+N/tileX-1; > if (hasLeft) iend = iend+1; > int jstr = myid/tileX*N/tileY; > int jend = jstr+N/tileY-1; > if (hasTop) jend = jend+1; > int size = (iend-istr+1)*(jend-jstr+1); > //cout << myid << " of " << nproc << " " << boolalpha << hasLeft << " " > << hasTop << endl; > //cout << myid << " " << istr << " " << iend << " " << jstr << " " << > jend << endl; > > // create structured grid > vtkSmartPointer grid = vtkSmartPointer rid>::New(); > > // define grid coordinates > vtkSmartPointer points = vtkSmartPointer::New(); > points->SetNumberOfPoints(size); > > int id = 0; > for (int i = istr; i <= iend; i++) { > for (int j = jstr; j <= jend; j++) { > points->SetPoint(id, i, j, 0); > id = id+1; > } > } > > grid->SetPoints(points); > grid->SetExtent(istr, iend, jstr, jend, 0, 0); > points->Delete(); > > // add field, checkerboard type data with full of 0/1 > vtkSmartPointer field = vtkSmartPointer >::New(); > field->SetName("dummy"); > field->SetNumberOfComponents(1); > field->SetNumberOfValues(size); > > id = 0; > for (int i = istr; i <= iend; i++) { > for (int j = jstr; j <= jend; j++) { > int val = (i+j)%2 ? 0 : 1; > field->SetValue(id, val); > id = id+1; > } > } > > // create multi block grid > vtkMultiBlockDataSet* mb = vtkMultiBlockDataSet::New(); > vtkNew mpds; > mpds->SetNumberOfPieces(nproc); > mpds->SetPiece(myid, grid.GetPointer()); > mb->SetNumberOfBlocks(1); > mb->SetBlock(0, mpds.GetPointer()); > > // add field > vtkDataSet *ds = vtkDataSet::SafeDownCast(mpds->GetPiece(myid)); > ds->GetPointData()->AddArray(field); > > // create a writer > vtkSmartPointer mbw = > vtkSmartPointer::New(); > mbw->SetFileName("test.vtm"); > mbw->SetDataModeToAscii(); > mbw->SetInputData(mb); > mbw->Write(); > > // finalize the MPI environment. > MPI_Finalize(); > > return 0; > } > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 Fri Jun 2 14:11:57 2017 From: chuck.atkins at kitware.com (Chuck Atkins) Date: Fri, 2 Jun 2017 14:11:57 -0400 Subject: [vtkusers] Fwd: VTK on Cray XC30 In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F68438ED362@MBX111.d.ethz.ch> References: <82c9c35e-44a9-8334-eca5-bf60a0bc8309@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68438ED362@MBX111.d.ethz.ch> Message-ID: Hi Luis, We're usually building dynamic these days on Cray by exporting the CRAYPE_LINK_TYPE=dynamic environment variable. Also, make sure you're using a recent CMake version >= 3.7, there have been many updates and fixes to the CrayPE support since the initial overhaul in 3.5. Building with PrgEnv-gnu and PrgEnv-intel should both work well; we regularly deploy on a wide variety of Cray's with those. If you have compile issues with Intel, there could be a C++11 issue with your modules; some Cray's have it fixed, some don't. Try it first and we can adjust if needed. ---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc. On Wed, May 31, 2017 at 11:53 AM, Favre Jean wrote: > Luis > > export CRAYPE_LINK_TYPE=dynamic > > and try again > > I just built VTK 8.0rc1 with EGL with shared libs. > > ----------------- > Jean/CSCS > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 ufuk.turuncoglu at itu.edu.tr Fri Jun 2 15:14:38 2017 From: ufuk.turuncoglu at itu.edu.tr (Ufuk Turuncoglu) Date: Fri, 2 Jun 2017 22:14:38 +0300 Subject: [vtkusers] is whole extent required for multiblock dataset? In-Reply-To: References: Message-ID: Hi, Actually, i am trying to create simplified case to test some ideas to improve the performance of my Catalyst application. In this case, i would like to create C++ code one for point data in vtkMultiBlockDataSet and other is cell data again in vtkMultiBlockDataSet. If i manage to create these two cases and ghost regions to have correct representation of the entire field, that would be great. As i know, for point data, i need to create ghost region (or overlapped regions) for point data but not for cell ones. Is it correct? Is there any other way to escape generation of ghost regions (both for point and cell data)? It is not easy to find any example for the cases like these. So, i am looking for an answer in the user lists. By the way, i could not see any "off-by-1" bug in the point coordinates. Is it possible to give more information about it. Thanks. Regards, --ufuk On 02/06/2017 20:16, Andy Bauer wrote: > Hi Ufuk, > > If there is one vtkStructuredGrid per multi-block you don't need the > whole extent. Using a vtkStructuredGrid in a multiblock though will > result in each grid block to be considered a separate grid so if you > do something like extracting the surface it probably won't look > correct unless you generate your own ghost cells (the ghost cell > generator filter in PV won't work). > > I only briefly looked through your code snippet but I suspect there's > an "off-by-1" bug in the way you're setting your point coordinates for > the structured grids but once that's fixed it will work the way you > want it to. > > I probably don't know your full use case but I would suggest for > non-Catalyst stuff to just avoid the multiblock here and just generate > structured grid pieces. > > Best, > Andy > > On Fri, Jun 2, 2017 at 8:13 AM, Ufuk Turuncoglu > > wrote: > > Hi Again, > > I create following test code to write dummy data (checkerboard > with 0 and 1) using vtkStructuredGrid in multiblock format. > Without extent in left and top of the tiles the data looks correct > but there is a gap between pieces (see attached screenshot). To > fix the issue, i add a extra piece of code to overlap one row and > columns (using hasLeft and hasTop control). The problem is that > when i run the code with this modification, i am getting totally > wrong grid representation (screen2). I just wonder that do i need > to set whole extent in somewhere. I tried to add following to set > whole extent to multiblock dataset, > > int extent[6] = {0, N-1, 0, N-1, 0, 0}; > mb->GetInformationObject(0)->Set(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), > extent, 6); > > but it won't work as i expected. Any suggestion? Thanks. > > Regards, > > --ufuk > > > #include > #include "mpi.h" > #include "vtkStructuredGrid.h" > #include "vtkSmartPointer.h" > #include "vtkMultiBlockDataSet.h" > #include "vtkMultiPieceDataSet.h" > #include "vtkNew.h" > #include "vtkXMLPMultiBlockDataWriter.h" > #include "vtkMPIController.h" > #include "vtkDoubleArray.h" > #include "vtkDataSet.h" > #include "vtkPointData.h" > #include "vtkInformation.h" > #include "vtkStreamingDemandDrivenPipeline.h" > > using namespace std; > > // global variables > int const N = 10; > int const tileX = 2; > int const tileY = 2; > > int main(int argc, char** argv) { > // initialize MPI > MPI_Init(NULL, NULL); > > // setup global controller, true means initialized externally > vtkNew controller; > controller->Initialize(&argc, &argv, true); > vtkMultiProcessController::SetGlobalController(controller.Get()); > > // get number of processor and rank > int nproc, myid; > MPI_Comm_size(MPI_COMM_WORLD, &nproc); > MPI_Comm_rank(MPI_COMM_WORLD, &myid); > > // create 2d decomposition parameters > bool hasLeft = false, hasTop = false; > if (myid%tileX == 0) hasLeft = true; > if (myid/tileY == 0) hasTop = true; > > int istr = myid%tileX*N/tileX; > int iend = istr+N/tileX-1; > if (hasLeft) iend = iend+1; > int jstr = myid/tileX*N/tileY; > int jend = jstr+N/tileY-1; > if (hasTop) jend = jend+1; > int size = (iend-istr+1)*(jend-jstr+1); > //cout << myid << " of " << nproc << " " << boolalpha << hasLeft > << " " << hasTop << endl; > //cout << myid << " " << istr << " " << iend << " " << jstr << " > " << jend << endl; > > // create structured grid > vtkSmartPointer grid = > vtkSmartPointer::New(); > > // define grid coordinates > vtkSmartPointer points = > vtkSmartPointer::New(); > points->SetNumberOfPoints(size); > > int id = 0; > for (int i = istr; i <= iend; i++) { > for (int j = jstr; j <= jend; j++) { > points->SetPoint(id, i, j, 0); > id = id+1; > } > } > > grid->SetPoints(points); > grid->SetExtent(istr, iend, jstr, jend, 0, 0); > points->Delete(); > > // add field, checkerboard type data with full of 0/1 > vtkSmartPointer field = > vtkSmartPointer::New(); > field->SetName("dummy"); > field->SetNumberOfComponents(1); > field->SetNumberOfValues(size); > > id = 0; > for (int i = istr; i <= iend; i++) { > for (int j = jstr; j <= jend; j++) { > int val = (i+j)%2 ? 0 : 1; > field->SetValue(id, val); > id = id+1; > } > } > > // create multi block grid > vtkMultiBlockDataSet* mb = vtkMultiBlockDataSet::New(); > vtkNew mpds; > mpds->SetNumberOfPieces(nproc); > mpds->SetPiece(myid, grid.GetPointer()); > mb->SetNumberOfBlocks(1); > mb->SetBlock(0, mpds.GetPointer()); > > // add field > vtkDataSet *ds = vtkDataSet::SafeDownCast(mpds->GetPiece(myid)); > ds->GetPointData()->AddArray(field); > > // create a writer > vtkSmartPointer mbw = > vtkSmartPointer::New(); > mbw->SetFileName("test.vtm"); > mbw->SetDataModeToAscii(); > mbw->SetInputData(mb); > mbw->Write(); > > // finalize the MPI environment. > MPI_Finalize(); > > return 0; > } > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > 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 rccm.kyoshimi at gmail.com Fri Jun 2 22:21:47 2017 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Sat, 3 Jun 2017 11:21:47 +0900 Subject: [vtkusers] How to draw a checkered floor in VTK? In-Reply-To: <1496409170951-5743516.post@n5.nabble.com> References: <1496325209225-5743506.post@n5.nabble.com> <1496409170951-5743516.post@n5.nabble.com> Message-ID: Hi AC, I don't have any idea about how to create an infinite grid, since simulating an infinite plane would need a large meshes and they would require a large amount of memory. And I'm not sure if there is a way to describe meshes periodically in VTK. Alternatively you can use texture mapping. I do not know this way satisfies your needs, but this might be a somewhat better than creating large unstructured or structured grids. I attached the sample code. I hope this will be of some help. Best Regards, 2017-06-02 22:12 GMT+09:00 alican : > Kenichiro, you are a life saver. I am a completely newbie to VTK, and I am > struggling with it a lot. Please allow me one more question: > > How to make this grid infinite? Like we see in 3D computer games? I have > tried this approach: > > SetOrigin(0.0, 0.0, 0.0) > SetPoint1(10.0, 0.0, 0.0 ); > SetPoint2(0.0, 10.0, 0.0 ); > > and then > SetXResolution(10); > SetYResolution(10); > > but this way I can only increase / decrease the size and the number of > squares in the grid, not the total size of the grid. > Sorry if this is a stupid question, as I said, I am still learning. > > Thank you again. > AC > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/How-to-draw-a-checkered-floor-in-VTK-tp5743506p5743516.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 -------------- A non-text attachment was scrubbed... Name: TextureMapPlane.zip Type: application/zip Size: 1954 bytes Desc: not available URL: From Andx_roo at live.com Sat Jun 3 04:45:32 2017 From: Andx_roo at live.com (Andaharoo) Date: Sat, 3 Jun 2017 01:45:32 -0700 (MST) Subject: [vtkusers] vtkImageViewer2 Orientation Scaling and Resetting the Camera Message-ID: <1496479532070-5743526.post@n5.nabble.com> I'm trying to use the vtkImageViewer2 to scrub through volume slices. I've pretty much finished it however I'm having a scaling problem and the usage of the class has not been an intuitive experience at all. First off I want the entire image to fill the window (fit the size). This is sort of the default behavior. However there are 2 problems. 1.) It doesn't fit perfectly. The XY image always fits the view suggesting it is automatically chosen. But there's a ~50-100px border no matter the size of image being used. 2.) It only scales to the XY orientation. If I use 3 vtkImageViewers to view the XY, YZ, and XZ orientations, only the XY consistently fits the view. This suggests that vtkImageViewer2 does not take into account the orientation when it attempts to automatically fit the image. I've search through all the functions of vtkImageViewer2 and couldn't find anything to help me. I've also tried getting the camera from vtkImageViewer2's renderer and editing it. So at the creation of the vtkImageViewer2 object (in the constructor) I turn parallel projection on and set the scale to 1. Like so: imageViewer->GetRenderer()->GetActiveCamera()->ParallelProjectionOn(); imageViewer->GetRenderer()->GetActiveCamera()->SetParallelScale(1); Then I setup the image like so: imageViewer->SetInputConnection(input); imageViewer->SetRenderWindow(window); Set Image Orientation Set Middle Slice imageViewer->Render(); The results of editing the camera are a perfectly scaled XY image. This fixes the border problem but introduces another problem. Every time I run the function again to change the input it zooms in more. A very drastic zoom. I have to recreate the vtkImageViewer2 object and set new input to get it too scale correctly. I thought it would make sense too simply reset the camera before loading the next volume. Then everything would go back to normal. This doesn't work. Resetting the camera doesn't change anything. The only solution I can think of is to recreate the vtkImageViewer2 object every time I want to use a new image to solve the zooming on multiple loading problem (Bad idea, I shouldn't have to recreate it at all). And to use SetParallelScale with some scalar multiplier * the width, height, or length of the image depending on the orientation. This would solve the orientation scaling problem (Haven't tried this yet. It may not even work. Also seems like a bad idea.). I have a gut feeling I'm missing some function in vtkImageViewer2, vtkRenderer, or vtkCamera that can help me properly scale this image to the view. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageViewer2-Orientation-Scaling-and-Resetting-the-Camera-tp5743526.html Sent from the VTK - Users mailing list archive at Nabble.com. From luiceur at gmail.com Sat Jun 3 05:28:48 2017 From: luiceur at gmail.com (Luis Cebamanos) Date: Sat, 3 Jun 2017 10:28:48 +0100 Subject: [vtkusers] Fwd: VTK on Cray XC30 In-Reply-To: References: <82c9c35e-44a9-8334-eca5-bf60a0bc8309@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68438ED362@MBX111.d.ethz.ch> Message-ID: Hi Chuck, Jean, Thanks a lot for your help. Exporting CRAYPE_LINK_TYPE=dynamic and PrgEnv-gnu were probably the key. I have not managed to install it with the Cray compilers though. But I think I have a good installation with gcc 5. Thanks for your help! Luis On 02/06/2017 19:11, Chuck Atkins wrote: > Hi Luis, > We're usually building dynamic these days on Cray by exporting the > CRAYPE_LINK_TYPE=dynamic environment variable. Also, make sure > you're using a recent CMake version >= 3.7, there have been many > updates and fixes to the CrayPE support since the initial overhaul in > 3.5. Building with PrgEnv-gnu and PrgEnv-intel should both work well; > we regularly deploy on a wide variety of Cray's with those. If you > have compile issues with Intel, there could be a C++11 issue with your > modules; some Cray's have it fixed, some don't. Try it first and we > can adjust if needed. > > ---------- > Chuck Atkins > Staff R&D Engineer, Scientific Computing > Kitware, Inc. > > > On Wed, May 31, 2017 at 11:53 AM, Favre Jean > wrote: > > Luis > > export CRAYPE_LINK_TYPE=dynamic > > and try again > > I just built VTK 8.0rc1 with EGL with shared libs. > > ----------------- > Jean/CSCS > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > 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 alican1812 at hotmail.com Sat Jun 3 10:46:29 2017 From: alican1812 at hotmail.com (alican) Date: Sat, 3 Jun 2017 07:46:29 -0700 (MST) Subject: [vtkusers] How to draw a checkered floor in VTK? In-Reply-To: References: <1496325209225-5743506.post@n5.nabble.com> <1496409170951-5743516.post@n5.nabble.com> Message-ID: <1496501189185-5743528.post@n5.nabble.com> Kenichiro hi, Thank you very much. Unfortunately, this is not what I am looking for. What I need is something like this picture . No matter what I try I am not able to get this view. Thank you again for your help. Hopefully one day I will learn enough not only to take, but to give back to VTK users. AC -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-draw-a-checkered-floor-in-VTK-tp5743506p5743528.html Sent from the VTK - Users mailing list archive at Nabble.com. From chenshaoqiang at buaa.edu.cn Sat Jun 3 11:32:04 2017 From: chenshaoqiang at buaa.edu.cn (chensq) Date: Sat, 3 Jun 2017 23:32:04 +0800 Subject: [vtkusers] Can I use OpenGL compute shaders in VTK program? Message-ID: <9582E48A541F462B98F7254A2FE9D12C@chensqPC> VTK use OpenGL2 at backend, but compute shader was introduced in OpenGL4? And it seems that we are not suggested to use opengl directly in VTK. Does anyone has any suggestion or example? thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From mikewithascarf at yahoo.com Sat Jun 3 18:16:54 2017 From: mikewithascarf at yahoo.com (Mike Withascarf) Date: Sat, 3 Jun 2017 22:16:54 +0000 (UTC) Subject: [vtkusers] vtkImageImport memory not freed References: <352723745.1396603.1496528214671.ref@mail.yahoo.com> Message-ID: <352723745.1396603.1496528214671@mail.yahoo.com> Hi, I'm attempting to use vtkImageImport on an array in a function to return a vtkImageData. It works, but once the vtkImageData is deleted the memory is not freed unless I do a DeepCopy in the function for loading it. Unfortunately if I do a DeepCopy it momentarily doubles the amount of memory needed which is really bad for the large data sizes we are using. Here is a stripped down version of the function I'm using. Any help would be very appreciated! vtkSmartPointer load_image(const std::string &fn){ unsigned long long size = 6144000000; int dims[3]{ 800, 600, 6400 }; // load data ifstream fs(fn, ifstream::binary); char* data = new char[size]; fs.read(data, size); fs.close(); // vtk import vtkSmartPointer image_import = vtkSmartPointer::New(); image_import->SetDataSpacing(1, 1, 1); image_import->SetDataOrigin(0, 0, 0); image_import->SetWholeExtent(0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] - 1); image_import->SetDataExtentToWholeExtent(); image_import->SetDataScalarTypeToUnsignedShort(); image_import->SetNumberOfScalarComponents(1); image_import->SetImportVoidPointer(data); image_import->Update(); // This works, but the memory will never be released even when the vtkImageData is deleted return image_import->GetOutput(); // This prevents memory leaks, but means that I need twice the memory available for a brief moment vtkSmartPointer im = vtkSmartPointer::New(); im->DeepCopy(image_import->GetOutput()); delete[] data; return im;} -------------- next part -------------- An HTML attachment was scrubbed... URL: From weiherer.maximilian at gmx.de Sat Jun 3 18:29:08 2017 From: weiherer.maximilian at gmx.de (Maximilian Weiherer) Date: Sun, 4 Jun 2017 00:29:08 +0200 Subject: [vtkusers] Set origin to lower left corner of bounding box Message-ID: <000a01d2dcb8$d1ad89b0$75089d10$@gmx.de> Hi all, I am trying to get the bounding box of a vtkPolyData using vtkOutlineFilter. As this works well so far, however, I now want to set the origin of the whole scene to the lower left corner of the bounding box. How can I get the lower left corner of my bounding box to change the origin? Any suggestions would be appreciated. Best regards, Maximilian --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Sat Jun 3 19:19:21 2017 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Sat, 3 Jun 2017 19:19:21 -0400 Subject: [vtkusers] Set origin to lower left corner of bounding box In-Reply-To: <000a01d2dcb8$d1ad89b0$75089d10$@gmx.de> References: <000a01d2dcb8$d1ad89b0$75089d10$@gmx.de> Message-ID: Use GetBounds on the poly data See: https://lorensen.github.io/VTKExamples/site/Cxx/PolyData/DataBounds/ On Jun 3, 2017 6:29 PM, "Maximilian Weiherer" wrote: > Hi all, > > > > I am trying to get the bounding box of a vtkPolyData using > vtkOutlineFilter. As this works well so far, however, I now want to set the > origin of the whole scene to the lower left corner of the bounding box. How > can I get the lower left corner of my bounding box to change the origin? > > > > Any suggestions would be appreciated. > > > > Best regards, > > Maximilian > > > > > > > > > Virenfrei. > www.avast.com > > <#m_2578252561185547549_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 rccm.kyoshimi at gmail.com Sun Jun 4 08:44:33 2017 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Sun, 4 Jun 2017 21:44:33 +0900 Subject: [vtkusers] vtkImageImport memory not freed In-Reply-To: <352723745.1396603.1496528214671@mail.yahoo.com> References: <352723745.1396603.1496528214671.ref@mail.yahoo.com> <352723745.1396603.1496528214671@mail.yahoo.com> Message-ID: Hi, I am not sure, but it looks like vtkImageReader2 can read a raw volume directly from a file without using a temporary variable. Would the vtkImageReader2 reader solve your problem? Thanks, 2017-06-04 7:16 GMT+09:00 Mike Withascarf via vtkusers : > Hi, I'm attempting to use vtkImageImport on an array in a function to return > a vtkImageData. It works, but once the vtkImageData is deleted the memory is > not freed unless I do a DeepCopy in the function for loading it. > Unfortunately if I do a DeepCopy it momentarily doubles the amount of memory > needed which is really bad for the large data sizes we are using. Here is a > stripped down version of the function I'm using. Any help would be very > appreciated! > > vtkSmartPointer load_image(const std::string &fn) > { > unsigned long long size = 6144000000; > int dims[3]{ 800, 600, 6400 }; > > // load data > ifstream fs(fn, ifstream::binary); > char* data = new char[size]; > fs.read(data, size); > fs.close(); > > // vtk import > vtkSmartPointer image_import = > vtkSmartPointer::New(); > image_import->SetDataSpacing(1, 1, 1); > image_import->SetDataOrigin(0, 0, 0); > image_import->SetWholeExtent(0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] - > 1); > image_import->SetDataExtentToWholeExtent(); > image_import->SetDataScalarTypeToUnsignedShort(); > image_import->SetNumberOfScalarComponents(1); > image_import->SetImportVoidPointer(data); > image_import->Update(); > > // This works, but the memory will never be released even when the > vtkImageData is deleted > return image_import->GetOutput(); > // This prevents memory leaks, but means that I need twice the memory > available for a brief moment > vtkSmartPointer im = vtkSmartPointer::New(); > im->DeepCopy(image_import->GetOutput()); > delete[] data; > return im; > } > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 2448.rok at gmail.com Sun Jun 4 15:15:52 2017 From: 2448.rok at gmail.com (oblakr) Date: Sun, 4 Jun 2017 12:15:52 -0700 (MST) Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working Message-ID: <1496603752652-5743535.post@n5.nabble.com> Hi, the following example: https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html Fails upon the "npm run build" command. The following error is thrown: > my-web-project at 0.0.1 build C:\Users\Rok\Desktop\MyWebProject > webpack module.js:471 throw err; ^ Error: Cannot find module './node_modules/vtk.js/Utilities/config/webpack.loaders.js' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (C:\Users\*****\Desktop\MyWebProject\webpack.config.js:4:15) at Module._compile (module.js:570:32) at Object.Module._extensions..js (module.js:579:10) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) at Function.Module._load (module.js:438:3) There is no webpack.loaders.js inside the Utilities/config folder. What am I doing wrong here? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-working-tp5743535.html Sent from the VTK - Users mailing list archive at Nabble.com. From aron.helser at kitware.com Sun Jun 4 15:23:16 2017 From: aron.helser at kitware.com (Aron Helser) Date: Sun, 4 Jun 2017 15:23:16 -0400 Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: <1496603752652-5743535.post@n5.nabble.com> References: <1496603752652-5743535.post@n5.nabble.com> Message-ID: Hi! vtk-js was just updated on Friday to use Webpack 2.0, and the webpack.loaders.js was re-factored into three separate files. It seems the example hasn't been updated yet. You could either check out version 2.24.8 - just before the Webpack 2.0 transition, or take a stab at updating the example, and post or submit your modifications! Sorry for the confusion, Aron On Sun, Jun 4, 2017 at 3:15 PM, oblakr <2448.rok at gmail.com> wrote: > Hi, > > the following example: > https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html > > Fails upon the "npm run build" command. The following error is thrown: > > > my-web-project at 0.0.1 build C:\Users\Rok\Desktop\MyWebProject > > webpack > > module.js:471 > throw err; > ^ > > Error: Cannot find module > './node_modules/vtk.js/Utilities/config/webpack.loaders.js' > at Function.Module._resolveFilename (module.js:469:15) > at Function.Module._load (module.js:417:25) > at Module.require (module.js:497:17) > at require (internal/module.js:20:19) > at Object. > (C:\Users\*****\Desktop\MyWebProject\webpack.config.js:4:15) > at Module._compile (module.js:570:32) > at Object.Module._extensions..js (module.js:579:10) > at Module.load (module.js:487:32) > at tryModuleLoad (module.js:446:12) > at Function.Module._load (module.js:438:3) > > There is no webpack.loaders.js inside the Utilities/config folder. > What am I doing wrong here? > > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not- > working-tp5743535.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 aron.helser at kitware.com Sun Jun 4 15:30:54 2017 From: aron.helser at kitware.com (Aron Helser) Date: Sun, 4 Jun 2017 15:30:54 -0400 Subject: [vtkusers] vtkImageImport memory not freed In-Reply-To: References: <352723745.1396603.1496528214671.ref@mail.yahoo.com> <352723745.1396603.1496528214671@mail.yahoo.com> Message-ID: Instead of a DeepCopy, I think you may want ShallowCopy - IIRC, it detaches the imageImport like you want, but doesn't copy the data. I remember seeing this go by on a blog post or email, so please double-check me :) Aron On Sun, Jun 4, 2017 at 8:44 AM, kenichiro yoshimi wrote: > Hi, > > I am not sure, but it looks like vtkImageReader2 can read a raw volume > directly from a file without using a temporary variable. Would the > vtkImageReader2 reader solve your problem? > > Thanks, > > 2017-06-04 7:16 GMT+09:00 Mike Withascarf via vtkusers : > > Hi, I'm attempting to use vtkImageImport on an array in a function to > return > > a vtkImageData. It works, but once the vtkImageData is deleted the > memory is > > not freed unless I do a DeepCopy in the function for loading it. > > Unfortunately if I do a DeepCopy it momentarily doubles the amount of > memory > > needed which is really bad for the large data sizes we are using. Here > is a > > stripped down version of the function I'm using. Any help would be very > > appreciated! > > > > vtkSmartPointer load_image(const std::string &fn) > > { > > unsigned long long size = 6144000000; > > int dims[3]{ 800, 600, 6400 }; > > > > // load data > > ifstream fs(fn, ifstream::binary); > > char* data = new char[size]; > > fs.read(data, size); > > fs.close(); > > > > // vtk import > > vtkSmartPointer image_import = > > vtkSmartPointer::New(); > > image_import->SetDataSpacing(1, 1, 1); > > image_import->SetDataOrigin(0, 0, 0); > > image_import->SetWholeExtent(0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] > - > > 1); > > image_import->SetDataExtentToWholeExtent(); > > image_import->SetDataScalarTypeToUnsignedShort(); > > image_import->SetNumberOfScalarComponents(1); > > image_import->SetImportVoidPointer(data); > > image_import->Update(); > > > > // This works, but the memory will never be released even when the > > vtkImageData is deleted > > return image_import->GetOutput(); > > // This prevents memory leaks, but means that I need twice the memory > > available for a brief moment > > vtkSmartPointer im = vtkSmartPointer::New(); > > im->DeepCopy(image_import->GetOutput()); > > delete[] data; > > return im; > > } > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > 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 jhlegarreta at vicomtech.org Sun Jun 4 15:39:58 2017 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Sun, 4 Jun 2017 21:39:58 +0200 Subject: [vtkusers] [vtk-developers] ANN: VTKWikiExamples are now VTKExamples In-Reply-To: References: Message-ID: Nice Bill ! I think it's been a notable and worthwhile effort: making the VTK example contribution process and navigation easier was needed. The contribution guide is crystal clear, and works as expected. JON HAITZ -- On 1 June 2017 at 17:10, Bill Lorensen wrote: > Folks, > > We are moving the wiki-based VTK examples: http://www.vtk.org/Wiki/VTK/ > Examples > to a git-based repository: https://lorensen.github.io/VTKExamples/ > > The new VTK Examples have a more modern look and feel and perform well > on mobile devices. The pages use Google's Material Design guidelines > so navigation will look familiar to many users. > > All of the wiki examples have been moved to the new repository. > Eventually we will decommission the old wiki-based examples. > > Consider this a beta announcement. We need feedback and help to fix > the description pages. > > To contribute, please see these instructions: > https://lorensen.github.io/VTKExamples/site/Instructions/ForDevelopers/ > > To use the new examples, see the instructions here: > https://lorensen.github.io/VTKExamples/site/Instructions/ForUsers/ > > Thanks, > > Bill > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcinwas94 at interia.pl Sun Jun 4 15:45:46 2017 From: marcinwas94 at interia.pl (MarWas18) Date: Sun, 4 Jun 2017 12:45:46 -0700 (MST) Subject: [vtkusers] Cannot install Qt 5.6.2 with VTK 7.0 on Windows 8.1, Microsoft Visual Studio Community 2015 In-Reply-To: References: <20170515143453.GA32097@megas.kitware.com> <1494868521249-5743235.post@n5.nabble.com> <20170515173015.GC26202@megas.kitware.com> <1494940548422-5743247.post@n5.nabble.com> <20170516141349.GA3569@megas.kitware.com> <1494949983133-5743263.post@n5.nabble.com> <20170516175538.GA32636@rotor> <1495537356924-5743356.post@n5.nabble.com> Message-ID: <1496605546127-5743539.post@n5.nabble.com> Guys, I have solved my problem. Here is the solution: *it appeared that I have downloaded winrt version of Qt- it does not work properly with my computer. I replaced it with x64, Qt Creator worked properly *only vtkGUISupportQt.dll was not build properly- I have unlinked it from my projects *I have downloaded Qt package for my Visual Studio *When I was trying to build any exemplary Qt projects from the website there was problem with libraries linking. I copied them manually to project's directory Now everything works properly! I changed nothing in configuration but replacing winrt with x64 version. Thank you! Marcin -- View this message in context: http://vtk.1045678.n5.nabble.com/Cannot-install-Qt-5-6-2-with-VTK-7-0-on-Windows-8-1-Microsoft-Visual-Studio-Community-2015-tp5743206p5743539.html Sent from the VTK - Users mailing list archive at Nabble.com. From mikewithascarf at yahoo.com Sun Jun 4 17:25:11 2017 From: mikewithascarf at yahoo.com (Mike Withascarf) Date: Sun, 4 Jun 2017 21:25:11 +0000 (UTC) Subject: [vtkusers] vtkImageImport memory not freed References: <1555682016.1874120.1496611511647.ref@mail.yahoo.com> Message-ID: <1555682016.1874120.1496611511647@mail.yahoo.com> I found an alternate simple solution, which is creating a vtkImageData, getting the scalar pointer from that, and then putting the data directly into there. For example: vtkSmartPointer im = vtkSmartPointer::New(); im->SetDimensions(dims); im->AllocateScalars(VTK_UNSIGNED_SHORT, 1); char *raw = static_cast(im->GetScalarPointer()); // load data ifstream fs(fn, ifstream::binary); fs.read(raw, ucmp_size); fs.close(); -------------------------------------------- On Sun, 6/4/17, Aron Helser wrote: Subject: Re: [vtkusers] vtkImageImport memory not freed To: "kenichiro yoshimi" Cc: "Mike Withascarf" , "vtkusers at vtk.org" Date: Sunday, June 4, 2017, 3:30 PM Instead of a DeepCopy, I think you may want ShallowCopy - IIRC, it detaches the imageImport like you want, but doesn't copy the data.?I remember seeing this go by on a blog post or email, so please double-check me :)Aron On Sun, Jun 4, 2017 at 8:44 AM, kenichiro yoshimi wrote: Hi, I am not sure, but it looks like vtkImageReader2 can read a raw volume directly from a file without using a temporary variable. Would the vtkImageReader2 reader solve your problem? Thanks, 2017-06-04 7:16 GMT+09:00 Mike Withascarf via vtkusers : > Hi, I'm attempting to use vtkImageImport on an array in a function to return > a vtkImageData. It works, but once the vtkImageData is deleted the memory is > not freed unless I do a DeepCopy in the function for loading it. > Unfortunately if I do a DeepCopy it momentarily doubles the amount of memory > needed which is really bad for the large data sizes we are using. Here is a > stripped down version of the function I'm using. Any help would be very > appreciated! > > vtkSmartPointer load_image(const std::string &fn) > { > unsigned long long size = 6144000000; > int dims[3]{ 800, 600, 6400 }; > > // load data > ifstream fs(fn, ifstream::binary); > char* data = new char[size]; > fs.read(data, size); > fs.close(); > > // vtk import > vtkSmartPointer< vtkImageImport> image_import = > vtkSmartPointer< vtkImageImport>::New(); > image_import->SetDataSpacing( 1, 1, 1); > image_import->SetDataOrigin(0, 0, 0); > image_import->SetWholeExtent( 0, dims[0] - 1, 0, dims[1] - 1, 0, dims[2] - > 1); > image_import-> SetDataExtentToWholeExtent(); > image_import-> SetDataScalarTypeToUnsignedSho rt(); > image_import-> SetNumberOfScalarComponents(1) ; > image_import-> SetImportVoidPointer(data); > image_import->Update(); > > // This works, but the memory will never be released even when the > vtkImageData is deleted > return image_import->GetOutput(); > // This prevents memory leaks, but means that I need twice the memory > available for a brief moment > vtkSmartPointer im = vtkSmartPointer: :New(); > im->DeepCopy(image_import-> GetOutput()); > delete[] data; > return im; > } > > ______________________________ _________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/ opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 sebastien.jourdain at kitware.com Sun Jun 4 19:46:40 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sun, 4 Jun 2017 17:46:40 -0600 Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: References: <1496603752652-5743535.post@n5.nabble.com> Message-ID: Yes I have to fix the documentation to match the new webpack2 usage. Sorry about that. On Sun, Jun 4, 2017 at 1:23 PM, Aron Helser wrote: > Hi! > vtk-js was just updated on Friday to use Webpack 2.0, and the > webpack.loaders.js was re-factored into three separate files. > It seems the example hasn't been updated yet. > You could either check out version 2.24.8 - just before the Webpack 2.0 > transition, or take a stab at updating the example, and post or submit your > modifications! > Sorry for the confusion, > Aron > > On Sun, Jun 4, 2017 at 3:15 PM, oblakr <2448.rok at gmail.com> wrote: > >> Hi, >> >> the following example: >> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html >> >> Fails upon the "npm run build" command. The following error is thrown: >> >> > my-web-project at 0.0.1 build C:\Users\Rok\Desktop\MyWebProject >> > webpack >> >> module.js:471 >> throw err; >> ^ >> >> Error: Cannot find module >> './node_modules/vtk.js/Utilities/config/webpack.loaders.js' >> at Function.Module._resolveFilename (module.js:469:15) >> at Function.Module._load (module.js:417:25) >> at Module.require (module.js:497:17) >> at require (internal/module.js:20:19) >> at Object. >> (C:\Users\*****\Desktop\MyWebProject\webpack.config.js:4:15) >> at Module._compile (module.js:570:32) >> at Object.Module._extensions..js (module.js:579:10) >> at Module.load (module.js:487:32) >> at tryModuleLoad (module.js:446:12) >> at Function.Module._load (module.js:438:3) >> >> There is no webpack.loaders.js inside the Utilities/config folder. >> What am I doing wrong here? >> >> >> >> >> >> >> -- >> View this message in context: http://vtk.1045678.n5.nabble.c >> om/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-work >> ing-tp5743535.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 > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Sun Jun 4 20:34:32 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sun, 4 Jun 2017 18:34:32 -0600 Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: References: <1496603752652-5743535.post@n5.nabble.com> Message-ID: Should be updated now. On Sun, Jun 4, 2017 at 5:46 PM, Sebastien Jourdain < sebastien.jourdain at kitware.com> wrote: > Yes I have to fix the documentation to match the new webpack2 usage. Sorry > about that. > > On Sun, Jun 4, 2017 at 1:23 PM, Aron Helser > wrote: > >> Hi! >> vtk-js was just updated on Friday to use Webpack 2.0, and the >> webpack.loaders.js was re-factored into three separate files. >> It seems the example hasn't been updated yet. >> You could either check out version 2.24.8 - just before the Webpack 2.0 >> transition, or take a stab at updating the example, and post or submit your >> modifications! >> Sorry for the confusion, >> Aron >> >> On Sun, Jun 4, 2017 at 3:15 PM, oblakr <2448.rok at gmail.com> wrote: >> >>> Hi, >>> >>> the following example: >>> https://kitware.github.io/vtk-js/docs/intro_vtk_as_es6_dependency.html >>> >>> Fails upon the "npm run build" command. The following error is thrown: >>> >>> > my-web-project at 0.0.1 build C:\Users\Rok\Desktop\MyWebProject >>> > webpack >>> >>> module.js:471 >>> throw err; >>> ^ >>> >>> Error: Cannot find module >>> './node_modules/vtk.js/Utilities/config/webpack.loaders.js' >>> at Function.Module._resolveFilename (module.js:469:15) >>> at Function.Module._load (module.js:417:25) >>> at Module.require (module.js:497:17) >>> at require (internal/module.js:20:19) >>> at Object. >>> (C:\Users\*****\Desktop\MyWebProject\webpack.config.js:4:15) >>> at Module._compile (module.js:570:32) >>> at Object.Module._extensions..js (module.js:579:10) >>> at Module.load (module.js:487:32) >>> at tryModuleLoad (module.js:446:12) >>> at Function.Module._load (module.js:438:3) >>> >>> There is no webpack.loaders.js inside the Utilities/config folder. >>> What am I doing wrong here? >>> >>> >>> >>> >>> >>> >>> -- >>> View this message in context: http://vtk.1045678.n5.nabble.c >>> om/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-work >>> ing-tp5743535.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 >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Sun Jun 4 20:57:39 2017 From: rickfrank at me.com (Richard Frank) Date: Sun, 04 Jun 2017 20:57:39 -0400 Subject: [vtkusers] vtkCutter Message-ID: Hi I want to quickly add/ remove a vtkCutter from a vtkPolydata. I suppose I could reset the inputs and outputs but is vtkPassthroughFilter a better way? Thanks Rick From nagao-saichi at jcom.home.ne.jp Sun Jun 4 22:11:09 2017 From: nagao-saichi at jcom.home.ne.jp (nagao saichi) Date: Sun, 4 Jun 2017 19:11:09 -0700 (MST) Subject: [vtkusers] I think best version of vtkFXCanvas class, may be. In-Reply-To: <1495758383794-5743420.post@n5.nabble.com> References: <2176973.Iq96Pn6YAV@localhost.localdomain> <70365181.9MZ1cpG9GF@localhost.localdomain> <1495590774125-5743376.post@n5.nabble.com> <1495594212137-5743377.post@n5.nabble.com> <1495600569331-5743378.post@n5.nabble.com> <1495676215299-5743405.post@n5.nabble.com> <1495758383794-5743420.post@n5.nabble.com> Message-ID: <1496628669196-5743544.post@n5.nabble.com> vtkFXCanvas.java -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-and-JavaFX-tp5728083p5743544.html Sent from the VTK - Users mailing list archive at Nabble.com. From 2448.rok at gmail.com Mon Jun 5 01:32:28 2017 From: 2448.rok at gmail.com (oblakr) Date: Sun, 4 Jun 2017 22:32:28 -0700 (MST) Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: References: <1496603752652-5743535.post@n5.nabble.com> Message-ID: <1496640748440-5743545.post@n5.nabble.com> Hi, thanks, the example was updated, but it would still not build: First, it says sourcePath in webpack.config.js is not defined - it really isn't, so I changed it to "entry" (which is defined at the top. Then, it said " - configuration.output.path: The provided value "./dist" is not an absolute path!". I fixed this by changing the "path: './dist'," to "path: path.join(__dirname, './dist'),". This time it got still further, but I got another error: ERROR in ./src/controller.html Module parse failed: /Users/rokoblak/Desktop/vtkapp/src/controller.html Unexpected token (1:0) You may need an appropriate loader to handle this file type. | | | @ ./src/index.js 9:0-45 @ ./src/index.js This one I don't know how to resolve, since I have next to no experience with Webpack. Cheers, Rok -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-working-tp5743535p5743545.html Sent from the VTK - Users mailing list archive at Nabble.com. From yhe20 at sheffield.ac.uk Mon Jun 5 06:07:18 2017 From: yhe20 at sheffield.ac.uk (Yichen He) Date: Mon, 5 Jun 2017 11:07:18 +0100 Subject: [vtkusers] Pass points on surface model to images Message-ID: Hi all My goadl is segmenting bones from micro-CT images using landmarks. I landmarked points on surface model. Then I want to map these points to micro-CT images. But I don't know how to pass the points back to images. Are there any techniques or algorithms to map the point from surface model to images. Cheers Best regards Yichen He -- Yichen He PhD Student Department of Animal and Plant Sciences University of Sheffield Sheffield, S10 2TN http://macroevolution.group.shef.ac.uk/about-the-team/yichen-he/ https://markmybird.org -------------- next part -------------- An HTML attachment was scrubbed... URL: From jam.evan at yahoo.com Mon Jun 5 06:36:25 2017 From: jam.evan at yahoo.com (James Evans) Date: Mon, 5 Jun 2017 10:36:25 +0000 (UTC) Subject: [vtkusers] Data conversion from DBL to VTK format References: <1115112328.3354617.1496658985929.ref@mail.yahoo.com> Message-ID: <1115112328.3354617.1496658985929@mail.yahoo.com> Dear all, I have a DBL format data and I need to convert them to VTK format to be readable by the visualization tool.Actually, I have no idea about this conversion.? Can you help please. James -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Mon Jun 5 09:56:40 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 5 Jun 2017 07:56:40 -0600 Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: <1496640748440-5743545.post@n5.nabble.com> References: <1496603752652-5743535.post@n5.nabble.com> <1496640748440-5743545.post@n5.nabble.com> Message-ID: Hi Rok, Thanks for reporting back. I guess trying to fix documentation on Sunday night while doing other things might not be the best idea. ;-) Anyhow, I did push some fix and hopefully I did not miss anything else. (The website should be updated in ~5 minutes) Let me know if you run into anything else. But in your case you just need to add the following line inside the array of "rules": { test: /\.html$/, loader: 'html-loader' }, Seb On Sun, Jun 4, 2017 at 11:32 PM, oblakr <2448.rok at gmail.com> wrote: > Hi, > > thanks, the example was updated, but it would still not build: > > First, it says sourcePath in webpack.config.js is not defined - it really > isn't, so I changed it to "entry" (which is defined at the top. > Then, it said " - configuration.output.path: The provided value "./dist" is > not an absolute path!". I fixed this by changing the "path: './dist'," to > "path: path.join(__dirname, './dist'),". > > This time it got still further, but I got another error: > > ERROR in ./src/controller.html > Module parse failed: /Users/rokoblak/Desktop/vtkapp/src/controller.html > Unexpected token (1:0) > You may need an appropriate loader to handle this file type. > | > > | > > | > @ ./src/index.js 9:0-45 > @ ./src/index.js > > > This one I don't know how to resolve, since I have next to no experience > with Webpack. > > Cheers, > Rok > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not- > working-tp5743535p5743545.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 2448.rok at gmail.com Mon Jun 5 10:06:43 2017 From: 2448.rok at gmail.com (oblakr) Date: Mon, 5 Jun 2017 07:06:43 -0700 (MST) Subject: [vtkusers] VTK.js - "Using vtk.js as an ES6 dependency" example not working In-Reply-To: References: <1496603752652-5743535.post@n5.nabble.com> <1496640748440-5743545.post@n5.nabble.com> Message-ID: <1496671603978-5743549.post@n5.nabble.com> Hi, thanks, that line did the trick, it builds and runs now. Cheers, Rok -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-js-Using-vtk-js-as-an-ES6-dependency-example-not-working-tp5743535p5743549.html Sent from the VTK - Users mailing list archive at Nabble.com. From chuck.atkins at kitware.com Mon Jun 5 13:08:11 2017 From: chuck.atkins at kitware.com (Chuck Atkins) Date: Mon, 5 Jun 2017 13:08:11 -0400 Subject: [vtkusers] Fwd: VTK on Cray XC30 In-Reply-To: References: <82c9c35e-44a9-8334-eca5-bf60a0bc8309@gmail.com> <0EB9B6375711A04B820E6B6F5CCA9F68438ED362@MBX111.d.ethz.ch> Message-ID: Hi Luis, I have not managed to install it with the Cray compilers though. > GNU and Intel compielrs are both known to work well. Last time I checked about a year ago, PGI and Cray compilers both had problems that were non-trivial to address so we've stopped "actively" supporting them since no one was explicitly asking for them to work, meaining it might work, it might not, but we're not testing them at the moment. However, if PGI and/or Cray compilers are important for VTK to support for your application, I'd be happy to have a discussion off-list with you regarding what options might be available for additional support. > But I think I have a good installation with gcc 5. > Great! Glad to hear it! ---------- Chuck Atkins Staff R&D Engineer, Scientific Computing Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From inglis.dl at gmail.com Mon Jun 5 14:11:46 2017 From: inglis.dl at gmail.com (Dean Inglis) Date: Mon, 5 Jun 2017 14:11:46 -0400 Subject: [vtkusers] surface warping/expansion Message-ID: I have a triangulated surface with inverted ridges or "canyons" for lack of better terminology, that when vtkWarpVector is applied it generates self-intersecting triangles. I am trying to create an offset surface but this approach yields unusable results. Is there a processing or pipeline strategy that could essentially fill in the "canyons", something like a localized convex hull, prior to the warping? - Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.q.hdp at gmail.com Mon Jun 5 15:55:39 2017 From: bill.q.hdp at gmail.com (Bill Q) Date: Tue, 6 Jun 2017 03:55:39 +0800 Subject: [vtkusers] Issues with coordinate conversion, possible VTK bugs? In-Reply-To: References: Message-ID: Hi Elvis, I did give it a try. But still, it didn't work. I think I must have missed something since there mush have hundreds of people tried to do the same thing, getting the world coordinate from the vtk screen. The only way it worked so far is to use a world picker. All other ways would return different settings with z valued at 88 something. Where is the z value coming from? Does the actor add the z in the renderer? Would someone know the correct way doing it give some advices? Many thanks. Bill On Sat, May 27, 2017 at 4:06 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2017-05-26 20:08 GMT+02:00 Bill Q : > > Hi Elvis and Dan, > > Thank you very much for the response. After setting the render window > > SetNumberOfLayers(2) and setting the renderer with text SetLayer(1), both > > the layers with the DICOM images and the layer with the text can show up. > > But, the problem still persists. I still cannot get the correct world > > coordinates by using the following function: > > > > def display_to_world2(self, pt): > > worldPt = [0, 0, 0, 0] > > vtk.vtkInteractorObserver.ComputeDisplayToWorld(self.renderer_dicom, > > pt[0], pt[1], 0, worldPt) > > return worldPt[0] / worldPt[3], worldPt[1] / worldPt[3], worldPt[2] / > > worldPt[3] > > > > The z returned is always 86.33. > > > > Meanwhile, I cannot use the world picker either, because it still picks > the > > text's world coordinate. > > > > So, either I can make the above function work on the DICOM renderer or I > > have to make the world picker not picking up anything on the text > renderer. > > I am not sure how I can get any of these two ways done. > > > > Any suggestions would be greatly appreciated! > > Could you try turning interaction off on the renderer you use for your > "foreground" objects. In my code I have: > > auto foregroundRenderer = vtkSmartPointer::New(); > foregroundRenderer->InteractiveOff(); > foregroundRenderer->SetLayer(1); > ... > GetRenderWindow()->SetNumberOfLayers(2); > > Hope that helps, it's the last idea I have :p > > Elvis > > > > > > > Many thanks. > > > > > > Bill > > > > On Thu, May 25, 2017 at 12:14 AM, Elvis Stansvik > > wrote: > >> > >> Den 24 maj 2017 5:27 em skrev "Bill Q" : > >> > > >> > Hi Dan, > >> > After set the layer, I got this error: > >> > > >> > VTK-7.1.0\Rendering\Core\vtkRendererCollection.cxx, line 61 > >> > vtkRendererCollection (000000001192E3A0): Invalid layer for renderer: > not > >> > rendered. > >> > > >> > And the text renderer didn't show up. > >> > >> You'll need to call SetNumberOfLayers(2) on your render window first I > >> think. > >> > >> Elvis > >> > >> > > >> > Many thanks. > >> > > >> > > >> > Bill > >> > > >> > On Wed, May 24, 2017 at 11:06 PM, Dan Lipsa > >> > wrote: > >> >> > >> >> Bill, > >> >> Try using SetLayer(1) for the renderer that has the text. > >> >> > >> >> Dan > >> >> > >> >> > >> >> On Wed, May 24, 2017 at 10:34 AM, Bill Q > wrote: > >> >>> > >> >>> Hi Dan, > >> >>> Thanks a ton for the example. The example used 4 different > viewports. > >> >>> However, for my application, I need to set all renderers under the > same > >> >>> viewport. The problem is that if I add a second renderer into the > render > >> >>> window and using the default viewport, it will cover the first > renderer and > >> >>> nothing on the first renderer will show up. I am wondering if I did > the > >> >>> whole thing wrong. > >> >>> > >> >>> My purpose is to display some DICOM images, some texts, and scales > on > >> >>> the same screen. Also, I would like to make the scales zoom with > the DICOM > >> >>> images but the texts stay put. Most importantly, I would like to > get the > >> >>> world coordinates on the DICOM image when users click on the > screen, so I > >> >>> can mark the click properly. > >> >>> > >> >>> What should be done in order to get this working? > >> >>> > >> >>> > >> >>> Many thanks. > >> >>> > >> >>> > >> >>> Bill > >> >>> > >> >>> On Wed, May 24, 2017 at 12:02 AM, Dan Lipsa > >> >>> wrote: > >> >>>> > >> >>>> Not sure what is going on. Do the objects you are rendering have > the > >> >>>> same world coordinates? Are both renderers added to the rendering > window? > >> >>>> Here is an example with multiple renderer (they are over different > >> >>>> viewports but they could have the same viewport as well) > >> >>>> > >> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ > MultipleViewports > >> >>>> > >> >>>> On Tue, May 23, 2017 at 11:39 AM, Bill Q > >> >>>> wrote: > >> >>>>> > >> >>>>> I just gave it a try. But when I added another renderer into the > >> >>>>> window that I used for text actors, it overlaps and covered the > first > >> >>>>> renderer. So the first renderer won't show up. Is there a > solution? > >> >>>>> > >> >>>>> Many thanks. > >> >>>>> > >> >>>>> > >> >>>>> Bill > >> >>>>> > >> >>>>> On Tue, May 23, 2017 at 10:16 PM, Dan Lipsa < > dan.lipsa at kitware.com> > >> >>>>> wrote: > >> >>>>>> > >> >>>>>> I think moving those text actors on a different renderer will > solve > >> >>>>>> your problem. > >> >>>>>> > >> >>>>>> Dan > >> >>>>>> > >> >>>>>> > >> >>>>>> On Tue, May 23, 2017 at 9:40 AM, Bill Q > >> >>>>>> wrote: > >> >>>>>>> > >> >>>>>>> Hi Dan, > >> >>>>>>> Thanks a lot for the reply. Yes, that's exactly the case. If I > >> >>>>>>> remove the text actors, the world picker would return the > correct > >> >>>>>>> coordinates. So, what method should I use in order to get the > correct > >> >>>>>>> coordinates no matter how many actors I put in with the dicom > image reader > >> >>>>>>> actor? > >> >>>>>>> > >> >>>>>>> Many thanks. > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> Bill > >> >>>>>>> > >> >>>>>>> On Mon, May 22, 2017 at 10:04 PM, Dan Lipsa > >> >>>>>>> wrote: > >> >>>>>>>> > >> >>>>>>>> Bill, > >> >>>>>>>> For display_to_world, the picker picks up only what is visible > >> >>>>>>>> (closes to the camera). You might have several objects > (several values in > >> >>>>>>>> world coordinates) that end up over the same display > coordinate. This might > >> >>>>>>>> explain why adding those text actors changes what you pick. > >> >>>>>>>> > >> >>>>>>>> Dan > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> On Sun, May 21, 2017 at 5:25 AM, Bill Q > >> >>>>>>>> wrote: > >> >>>>>>>>> > >> >>>>>>>>> Can anybody help? Many thanks. > >> >>>>>>>>> > >> >>>>>>>>> Many thanks. > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> Bill > >> >>>>>>>>> > >> >>>>>>>>> On Fri, May 19, 2017 at 11:20 PM, Bill Q < > bill.q.hdp at gmail.com> > >> >>>>>>>>> wrote: > >> >>>>>>>>>> > >> >>>>>>>>>> Hello Everyone, > >> >>>>>>>>>> I encountered a weird problem in coordinate conversion. > >> >>>>>>>>>> > >> >>>>>>>>>> In order to check the accuracy, I converted from display to > >> >>>>>>>>>> world, and from world back to display. Using the following > ways: > >> >>>>>>>>>> > >> >>>>>>>>>> self.world_picker = vtk.vtkWorldPointPicker() > >> >>>>>>>>>> > >> >>>>>>>>>> def display_to_world(self, pt): > >> >>>>>>>>>> self.world_picker.Pick(pt[0], pt[1], 0, self.ren) > >> >>>>>>>>>> picker_pt = self.world_picker.GetPickPosition() > >> >>>>>>>>>> picker_pt = (picker_pt[0], picker_pt[1], 0) > >> >>>>>>>>>> return picker_pt > >> >>>>>>>>>> > >> >>>>>>>>>> def world_to_display(self, pt): > >> >>>>>>>>>> if len(pt) == 3: > >> >>>>>>>>>> pt = pt + (1.0,) > >> >>>>>>>>>> elif len(pt) == 2: > >> >>>>>>>>>> pt = pt + (0.0, 1.0) > >> >>>>>>>>>> self.ren.SetWorldPoint(pt) > >> >>>>>>>>>> self.ren.WorldToDisplay() > >> >>>>>>>>>> pt = self.ren.GetDisplayPoint() > >> >>>>>>>>>> pt = (pt[0], pt[1]) > >> >>>>>>>>>> return pt > >> >>>>>>>>>> > >> >>>>>>>>>> pt = [5, 5] > >> >>>>>>>>>> > >> >>>>>>>>>> world_pt = self. world_to_display(pt) > >> >>>>>>>>>> > >> >>>>>>>>>> display_pt = self. world_to_display(world_pt) > >> >>>>>>>>>> > >> >>>>>>>>>> In some cases, it's quite accurate, which means pt equals > >> >>>>>>>>>> display_pt. But, in some cases, the result is simply wrong. > For example, for > >> >>>>>>>>>> (5, 5), after conversions back to display, the coordinate > becomes (20.89, > >> >>>>>>>>>> 20.89). > >> >>>>>>>>>> > >> >>>>>>>>>> Any ideas? > >> >>>>>>>>>> > >> >>>>>>>>>> > >> >>>>>>>>>> Many thanks. > >> >>>>>>>>>> > >> >>>>>>>>>> > >> >>>>>>>>>> Bill > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> _______________________________________________ > >> >>>>>>>>> Powered by www.kitware.com > >> >>>>>>>>> > >> >>>>>>>>> Visit other Kitware open-source projects at > >> >>>>>>>>> http://www.kitware.com/opensource/opensource.html > >> >>>>>>>>> > >> >>>>>>>>> Please keep messages on-topic and check the VTK FAQ at: > >> >>>>>>>>> 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 psandana at gmail.com Mon Jun 5 16:27:34 2017 From: psandana at gmail.com (=?UTF-8?Q?Patricio_Sanda=C3=B1a?=) Date: Mon, 5 Jun 2017 16:27:34 -0400 Subject: [vtkusers] VTK Light Model In-Reply-To: References: Message-ID: Hi Ken, Sorry for to take too long to answer back. Reviewing VTK I could notice you have vtkLightKit which seems to do it work as a preset quick setup of lights. What I could notice is that they are all? directional lights, so you can't get, let's say, "realistic shading" with them, as positional lights allow some gradiation on edges with all the vertices with the same normal. I could notice that the lighting model supports positional lights. Is there any implementation, like vtkLightKit which provides a quick setup of a light model including positional lights? Maybe experimental models which I can take a look on? Cheers, Pato El 17 ene. 2017 10:18, "Patricio Sanda?a" escribi?: > Hi Ken, > > Many thanks for the hints. I will take a look. > > Cheers, > > Pato > > > El 17 ene. 2017 11:08, "Ken Martin" escribi?: > > It is all pretty much in Rendering/OpenGL2/vtkOpenGLPolyDataMapper.cxx > except for shadows which are in vtkShadowMapBakerPass and vtkShadowMapPass > > On Tue, Jan 17, 2017 at 8:52 AM, Patricio Sanda?a > wrote: > >> Hello everyone, >> >> Can anybody tell me how the lighting model is implemented on VTK? I'm >> looking for any concrete implementation. I've tracked vtkLights usage, but >> I got nothing so far. >> >> I want to play with the lighting models, but first I wanted to know how >> they works. >> >> Cheers, >> >> Pato >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> 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 <(518)%20371-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 jayavardhanravi at outlook.com Mon Jun 5 18:25:42 2017 From: jayavardhanravi at outlook.com (kay) Date: Mon, 5 Jun 2017 15:25:42 -0700 (MST) Subject: [vtkusers] Linking to Physics libraries Message-ID: <1496701542609-5743554.post@n5.nabble.com> Is it possible to link the VTK with the any of the physics libraries like ODE or Bullet? I would like to use the Joints/collision in the VTK where I am already rendering few actors. Any suggestions would be helpful Thanks For reference to implement something like this -- View this message in context: http://vtk.1045678.n5.nabble.com/Linking-to-Physics-libraries-tp5743554.html Sent from the VTK - Users mailing list archive at Nabble.com. From kayarre at gmail.com Mon Jun 5 19:33:55 2017 From: kayarre at gmail.com (Kurt Sansom) Date: Mon, 5 Jun 2017 16:33:55 -0700 Subject: [vtkusers] Project voxel/pixel value onto surface mesh Message-ID: Hi, I am trying to come up with an efficient way to project voxel values from an image volume to a surface mesh. Basically I have a triangle surface mesh with normal information, and I want to create a new cell array that is the voxel intensity value closest to the surface mesh in the normal direction. I am thinking it's kind of like doing an iso-surface but I want image intensities from the image volume based on the location of the surface mesh and then I want to be able to view the image as projected on the surface mesh. Another way I was thinking of this is texturing the surface with the image intensities based on the closest voxel/pixel to the surface. Another way I thinking of doing it is using two image volumes vol_1 is the image stack and vol_2 is a signed distance field where I want the pixel intensity of vol_1 at the zero level set of vol_2. Does anyone have an example or can think a good way to do this? Regards, ~Kurt -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Mon Jun 5 22:08:29 2017 From: lasso at queensu.ca (Andras Lasso) Date: Tue, 6 Jun 2017 02:08:29 +0000 Subject: [vtkusers] Project voxel/pixel value onto surface mesh In-Reply-To: References: Message-ID: If the surface is inside the volume then you can use vtkProbeFilter to set surface color to the voxel?s color at the same position. 3D Slicer provides this in the ?Probe volume with model? module ? you can try it there or have a look at its source code for an example: https://github.com/Slicer/Slicer/blob/master/Modules/CLI/ProbeVolumeWithModel/ProbeVolumeWithModel.cxx Andras From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Kurt Sansom Sent: Monday, June 5, 2017 7:34 PM To: vtk Subject: [vtkusers] Project voxel/pixel value onto surface mesh Hi, I am trying to come up with an efficient way to project voxel values from an image volume to a surface mesh. Basically I have a triangle surface mesh with normal information, and I want to create a new cell array that is the voxel intensity value closest to the surface mesh in the normal direction. I am thinking it's kind of like doing an iso-surface but I want image intensities from the image volume based on the location of the surface mesh and then I want to be able to view the image as projected on the surface mesh. Another way I was thinking of this is texturing the surface with the image intensities based on the closest voxel/pixel to the surface. Another way I thinking of doing it is using two image volumes vol_1 is the image stack and vol_2 is a signed distance field where I want the pixel intensity of vol_1 at the zero level set of vol_2. Does anyone have an example or can think a good way to do this? Regards, ~Kurt -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: From lasso at queensu.ca Mon Jun 5 23:01:27 2017 From: lasso at queensu.ca (Andras Lasso) Date: Tue, 6 Jun 2017 03:01:27 +0000 Subject: [vtkusers] Issues with coordinate conversion, possible VTK bugs? In-Reply-To: References: Message-ID: See how it is implemented 3D Slicer and MITK: https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/vtkThreeDViewInteractorStyle.cxx#L812-L848 https://github.com/MITK/MITK/blob/master/Modules/Core/src/Rendering/mitkBaseRenderer.cpp#L600-L640 Andras From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bill Q Sent: Monday, June 5, 2017 3:56 PM To: Elvis Stansvik Cc: VTK Users Subject: Re: [vtkusers] Issues with coordinate conversion, possible VTK bugs? Hi Elvis, I did give it a try. But still, it didn't work. I think I must have missed something since there mush have hundreds of people tried to do the same thing, getting the world coordinate from the vtk screen. The only way it worked so far is to use a world picker. All other ways would return different settings with z valued at 88 something. Where is the z value coming from? Does the actor add the z in the renderer? Would someone know the correct way doing it give some advices? Many thanks. Bill On Sat, May 27, 2017 at 4:06 AM, Elvis Stansvik > wrote: 2017-05-26 20:08 GMT+02:00 Bill Q >: > Hi Elvis and Dan, > Thank you very much for the response. After setting the render window > SetNumberOfLayers(2) and setting the renderer with text SetLayer(1), both > the layers with the DICOM images and the layer with the text can show up. > But, the problem still persists. I still cannot get the correct world > coordinates by using the following function: > > def display_to_world2(self, pt): > worldPt = [0, 0, 0, 0] > vtk.vtkInteractorObserver.ComputeDisplayToWorld(self.renderer_dicom, > pt[0], pt[1], 0, worldPt) > return worldPt[0] / worldPt[3], worldPt[1] / worldPt[3], worldPt[2] / > worldPt[3] > > The z returned is always 86.33. > > Meanwhile, I cannot use the world picker either, because it still picks the > text's world coordinate. > > So, either I can make the above function work on the DICOM renderer or I > have to make the world picker not picking up anything on the text renderer. > I am not sure how I can get any of these two ways done. > > Any suggestions would be greatly appreciated! Could you try turning interaction off on the renderer you use for your "foreground" objects. In my code I have: auto foregroundRenderer = vtkSmartPointer::New(); foregroundRenderer->InteractiveOff(); foregroundRenderer->SetLayer(1); ... GetRenderWindow()->SetNumberOfLayers(2); Hope that helps, it's the last idea I have :p Elvis > > > Many thanks. > > > Bill > > On Thu, May 25, 2017 at 12:14 AM, Elvis Stansvik > > wrote: >> >> Den 24 maj 2017 5:27 em skrev "Bill Q" >: >> > >> > Hi Dan, >> > After set the layer, I got this error: >> > >> > VTK-7.1.0\Rendering\Core\vtkRendererCollection.cxx, line 61 >> > vtkRendererCollection (000000001192E3A0): Invalid layer for renderer: not >> > rendered. >> > >> > And the text renderer didn't show up. >> >> You'll need to call SetNumberOfLayers(2) on your render window first I >> think. >> >> Elvis >> >> > >> > Many thanks. >> > >> > >> > Bill >> > >> > On Wed, May 24, 2017 at 11:06 PM, Dan Lipsa > >> > wrote: >> >> >> >> Bill, >> >> Try using SetLayer(1) for the renderer that has the text. >> >> >> >> Dan >> >> >> >> >> >> On Wed, May 24, 2017 at 10:34 AM, Bill Q > wrote: >> >>> >> >>> Hi Dan, >> >>> Thanks a ton for the example. The example used 4 different viewports. >> >>> However, for my application, I need to set all renderers under the same >> >>> viewport. The problem is that if I add a second renderer into the render >> >>> window and using the default viewport, it will cover the first renderer and >> >>> nothing on the first renderer will show up. I am wondering if I did the >> >>> whole thing wrong. >> >>> >> >>> My purpose is to display some DICOM images, some texts, and scales on >> >>> the same screen. Also, I would like to make the scales zoom with the DICOM >> >>> images but the texts stay put. Most importantly, I would like to get the >> >>> world coordinates on the DICOM image when users click on the screen, so I >> >>> can mark the click properly. >> >>> >> >>> What should be done in order to get this working? >> >>> >> >>> >> >>> Many thanks. >> >>> >> >>> >> >>> Bill >> >>> >> >>> On Wed, May 24, 2017 at 12:02 AM, Dan Lipsa > >> >>> wrote: >> >>>> >> >>>> Not sure what is going on. Do the objects you are rendering have the >> >>>> same world coordinates? Are both renderers added to the rendering window? >> >>>> Here is an example with multiple renderer (they are over different >> >>>> viewports but they could have the same viewport as well) >> >>>> >> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleViewports >> >>>> >> >>>> On Tue, May 23, 2017 at 11:39 AM, Bill Q > >> >>>> wrote: >> >>>>> >> >>>>> I just gave it a try. But when I added another renderer into the >> >>>>> window that I used for text actors, it overlaps and covered the first >> >>>>> renderer. So the first renderer won't show up. Is there a solution? >> >>>>> >> >>>>> Many thanks. >> >>>>> >> >>>>> >> >>>>> Bill >> >>>>> >> >>>>> On Tue, May 23, 2017 at 10:16 PM, Dan Lipsa > >> >>>>> wrote: >> >>>>>> >> >>>>>> I think moving those text actors on a different renderer will solve >> >>>>>> your problem. >> >>>>>> >> >>>>>> Dan >> >>>>>> >> >>>>>> >> >>>>>> On Tue, May 23, 2017 at 9:40 AM, Bill Q > >> >>>>>> wrote: >> >>>>>>> >> >>>>>>> Hi Dan, >> >>>>>>> Thanks a lot for the reply. Yes, that's exactly the case. If I >> >>>>>>> remove the text actors, the world picker would return the correct >> >>>>>>> coordinates. So, what method should I use in order to get the correct >> >>>>>>> coordinates no matter how many actors I put in with the dicom image reader >> >>>>>>> actor? >> >>>>>>> >> >>>>>>> Many thanks. >> >>>>>>> >> >>>>>>> >> >>>>>>> Bill >> >>>>>>> >> >>>>>>> On Mon, May 22, 2017 at 10:04 PM, Dan Lipsa >> >>>>>>> > wrote: >> >>>>>>>> >> >>>>>>>> Bill, >> >>>>>>>> For display_to_world, the picker picks up only what is visible >> >>>>>>>> (closes to the camera). You might have several objects (several values in >> >>>>>>>> world coordinates) that end up over the same display coordinate. This might >> >>>>>>>> explain why adding those text actors changes what you pick. >> >>>>>>>> >> >>>>>>>> Dan >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> On Sun, May 21, 2017 at 5:25 AM, Bill Q > >> >>>>>>>> wrote: >> >>>>>>>>> >> >>>>>>>>> Can anybody help? Many thanks. >> >>>>>>>>> >> >>>>>>>>> Many thanks. >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> Bill >> >>>>>>>>> >> >>>>>>>>> On Fri, May 19, 2017 at 11:20 PM, Bill Q > >> >>>>>>>>> wrote: >> >>>>>>>>>> >> >>>>>>>>>> Hello Everyone, >> >>>>>>>>>> I encountered a weird problem in coordinate conversion. >> >>>>>>>>>> >> >>>>>>>>>> In order to check the accuracy, I converted from display to >> >>>>>>>>>> world, and from world back to display. Using the following ways: >> >>>>>>>>>> >> >>>>>>>>>> self.world_picker = vtk.vtkWorldPointPicker() >> >>>>>>>>>> >> >>>>>>>>>> def display_to_world(self, pt): >> >>>>>>>>>> self.world_picker.Pick(pt[0], pt[1], 0, self.ren) >> >>>>>>>>>> picker_pt = self.world_picker.GetPickPosition() >> >>>>>>>>>> picker_pt = (picker_pt[0], picker_pt[1], 0) >> >>>>>>>>>> return picker_pt >> >>>>>>>>>> >> >>>>>>>>>> def world_to_display(self, pt): >> >>>>>>>>>> if len(pt) == 3: >> >>>>>>>>>> pt = pt + (1.0,) >> >>>>>>>>>> elif len(pt) == 2: >> >>>>>>>>>> pt = pt + (0.0, 1.0) >> >>>>>>>>>> self.ren.SetWorldPoint(pt) >> >>>>>>>>>> self.ren.WorldToDisplay() >> >>>>>>>>>> pt = self.ren.GetDisplayPoint() >> >>>>>>>>>> pt = (pt[0], pt[1]) >> >>>>>>>>>> return pt >> >>>>>>>>>> >> >>>>>>>>>> pt = [5, 5] >> >>>>>>>>>> >> >>>>>>>>>> world_pt = self. world_to_display(pt) >> >>>>>>>>>> >> >>>>>>>>>> display_pt = self. world_to_display(world_pt) >> >>>>>>>>>> >> >>>>>>>>>> In some cases, it's quite accurate, which means pt equals >> >>>>>>>>>> display_pt. But, in some cases, the result is simply wrong. For example, for >> >>>>>>>>>> (5, 5), after conversions back to display, the coordinate becomes (20.89, >> >>>>>>>>>> 20.89). >> >>>>>>>>>> >> >>>>>>>>>> Any ideas? >> >>>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> Many thanks. >> >>>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> Bill >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> _______________________________________________ >> >>>>>>>>> Powered by www.kitware.com >> >>>>>>>>> >> >>>>>>>>> Visit other Kitware open-source projects at >> >>>>>>>>> http://www.kitware.com/opensource/opensource.html >> >>>>>>>>> >> >>>>>>>>> Please keep messages on-topic and check the VTK FAQ at: >> >>>>>>>>> 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 alican1812 at hotmail.com Tue Jun 6 04:50:10 2017 From: alican1812 at hotmail.com (alican) Date: Tue, 6 Jun 2017 01:50:10 -0700 (MST) Subject: [vtkusers] How to create an infinite plane? Is it possible at all in VTK? Message-ID: <1496739010426-5743558.post@n5.nabble.com> I know that this question was asked before, but it was never given a good answer. Is there an option in VTK to create an infinite plane? Something that won't show edges no matter how deep we zoom? Something like in the picture? And if the answer is no, can I do it using direct OpenGL call? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-create-an-infinite-plane-Is-it-possible-at-all-in-VTK-tp5743558.html Sent from the VTK - Users mailing list archive at Nabble.com. From EZ7543 at wayne.edu Tue Jun 6 11:17:41 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 08:17:41 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately Message-ID: <1496762261179-5743559.post@n5.nabble.com> Hi VTK-Users, So currently I was able to render a stereoscopic 3D cube using VTK's default capabilities. I was using Crystal Eyes and everything works fine. However, I am now in need of adding head tracking, and I have the eye positions in 3D space. My question is, is it possible to render the left and right eyes separately instead of just using the default Crystal Eyes specification? Basically, I want to be able to set the left view's camera position, and right view's camera position based of the the eye positions. Would really appreciate any help! Regards, Teek -- View this message in context: http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Tue Jun 6 11:34:34 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Tue, 06 Jun 2017 15:34:34 +0000 Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: <1496762261179-5743559.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> Message-ID: Hi Teek, You can use the vtkRenderWindow::SetStereoTypeToLeft() and vtkRenderWindow::SetStereoTypeToRight() API to tell VTK which eye you?re rendering. Hope that helps. Sankhesh ? On Tue, Jun 6, 2017 at 11:17 AM Teek wrote: > Hi VTK-Users, > > So currently I was able to render a stereoscopic 3D cube using VTK's > default > capabilities. > I was using Crystal Eyes and everything works fine. However, I am now in > need of adding head tracking, and I have the eye positions in 3D space. > > My question is, is it possible to render the left and right eyes separately > instead of just using the default Crystal Eyes specification? Basically, I > want to be able to set the left view's camera position, and right view's > camera position based of the the eye positions. > > Would really appreciate any help! > > Regards, > Teek > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Tue Jun 6 11:39:00 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 08:39:00 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> Message-ID: <1496763540524-5743561.post@n5.nabble.com> Thanks for the reply Sankhesh. I read that earlier as well and I wasn't sure if I was implementing that correctly. If I use those do I have the right understanding of the pipeline: 1. Create RenderWindow 2. Create Renderer 3. Add Renderer to RenderWindow 4. Enable StereoCapable Window and StereoRendering (renderWindow->StereoCapableWindowOn(); renderWindow->StereoRenderOn();) 5. SetStereoTypeToLeft 6. Change Camera 7. Repeate 5 & 6 with Right Am I missing anything there? As in do I have to update the Renderer or Window anytime inbetween and where would I add the cube? -- View this message in context: http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559p5743561.html Sent from the VTK - Users mailing list archive at Nabble.com. From EZ7543 at wayne.edu Tue Jun 6 12:14:50 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 09:14:50 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> Message-ID: <1496765690800-5743562.post@n5.nabble.com> So this is the current flow I am following: 1. I set up the Renderer and RenderWindow as normal. By this I mean create a Renderer and RenderWindow and add the Renderer to the RenderWindow. 2. I create the Cube right after this and add the Actor to the Renderer that was created earlier. 3. At this point I call the StereoCapableWindowOn() and StereoRenderingOn() */4-1. Now this is where I'm slightly confused. Do I call SetStereoTypeToLeft() and how do I manipulate the camera for just the left view? As in how do I get the reference to the camera that is currently being used for the left view? 4-2. I'm assuming whatever I do with the camera in 4-1 I can do for the right view here. 4-3. Do I have to change the StereoType again after doing both, because if I run it as in, I seem to only the the right view? As in I no longer get the both views showing on my screen./* If it helps I'm actually using the zSpace display to try and render this. That is also how I am getting the head tracking information. Regards, Teek -- View this message in context: http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559p5743562.html Sent from the VTK - Users mailing list archive at Nabble.com. From chinander at gmail.com Tue Jun 6 12:25:12 2017 From: chinander at gmail.com (Mike Chinander) Date: Tue, 6 Jun 2017 11:25:12 -0500 Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: <1496765690800-5743562.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> Message-ID: Would the OpenVR-related VTK classes be helpful in your situation? https://blog.kitware.com/using-virtual-reality-devices-with-vtk On Tue, Jun 6, 2017 at 11:14 AM, Teek wrote: > So this is the current flow I am following: > > 1. I set up the Renderer and RenderWindow as normal. By this I mean create > a Renderer and RenderWindow and add the Renderer to the RenderWindow. > > 2. I create the Cube right after this and add the Actor to the Renderer > that > was created earlier. > > 3. At this point I call the StereoCapableWindowOn() and StereoRenderingOn() > > */4-1. Now this is where I'm slightly confused. Do I call > SetStereoTypeToLeft() and how do I manipulate the camera for just the left > view? As in how do I get the reference to the camera that is currently > being > used for the left view? > > 4-2. I'm assuming whatever I do with the camera in 4-1 I can do for the > right view here. > > 4-3. Do I have to change the StereoType again after doing both, because if > I > run it as in, I seem to only the the right view? As in I no longer get the > both views showing on my screen./* > > If it helps I'm actually using the zSpace display to try and render this. > That is also how I am getting the head tracking information. > > Regards, > Teek > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately- > tp5743559p5743562.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 EZ7543 at wayne.edu Tue Jun 6 12:32:17 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 09:32:17 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> Message-ID: <1496766737235-5743564.post@n5.nabble.com> I don't think that would be necessary though would it? I only say that because I already able to render the cube in 3D on my display. I can also modify the camera position and focal point, however it modifies it for both eyes. The only thing I would like to achieve is to be able to modify the camera separately for each eye. Not sure if the OpenVR classes would really help facilitate that. mchinand wrote > Would the OpenVR-related VTK classes be helpful in your situation? > > https://blog.kitware.com/using-virtual-reality-devices-with-vtk -- View this message in context: http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559p5743564.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Tue Jun 6 13:20:48 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Tue, 06 Jun 2017 17:20:48 +0000 Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: <1496766737235-5743564.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> Message-ID: Perhaps, I misunderstood what you?re trying to do. That API lets you render a whole scene (i.e. OpenGL context) with one eye. For rendering both, left and right, you?d have to have two different windows with the same scene - one for left and one for right. The compositing will have to be dealt with, by the external system this way. What is the display setup you use? CAVE, HMD, etc? If you?re using off-axis projection, you could use vtkCamera::SetEyePosition (the center of the two eyes) and vtkCamera::SetEyeSeparation. However, these settings are only used for off-axis frustum calculation. On Tue, Jun 6, 2017 at 12:32 PM Teek wrote: I don't think that would be necessary though would it? > I only say that because I already able to render the cube in 3D on my > display. > I can also modify the camera position and focal point, however it modifies > it for both eyes. > > The only thing I would like to achieve is to be able to modify the camera > separately for each eye. > Not sure if the OpenVR classes would really help facilitate that. > > > mchinand wrote > > Would the OpenVR-related VTK classes be helpful in your situation? > > > > https://blog.kitware.com/using-virtual-reality-devices-with-vtk > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTk-Stereo-Help-Rendering-Left-Right-Eye-Seperately-tp5743559p5743564.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 ? -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Tue Jun 6 14:03:14 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 11:03:14 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> Message-ID: <1496772194908-5743566.post@n5.nabble.com> Ahhh I should've been more clear. But I'm using zSpace as my display which handles the stereoscopic rendering fine if I use Crystal Eyes. Would it be possible for me to have 2 renderers on top of each other in one window, and then use the front and back buffers for each renderer? For my use, I can't actually use just the center of the two eyes. I would need to render each eye separately or set the camera for each eye. zSpace has an example of rendering in OpenGL in which they render the scene twice using GL_FRONT_LEFT and GL_BACK_LEFT buffers, respective to each eye. I'm trying to recreate that with VTK because VTK implies volume rendering significantly. Sankhesh Jhaveri-2 wrote > Perhaps, I misunderstood what you?re trying to do. > > That API lets you render a whole scene (i.e. OpenGL context) with one eye. > For rendering both, left and right, you?d have to have two different > windows with the same scene - one for left and one for right. > The compositing will have to be dealt with, by the external system this > way. > > What is the display setup you use? CAVE, HMD, etc? > > If you?re using off-axis projection, you could use > vtkCamera::SetEyePosition > (the center of the two eyes) and vtkCamera::SetEyeSeparation. However, > these settings are only used for off-axis frustum calculation. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743566.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Tue Jun 6 14:12:36 2017 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 06 Jun 2017 18:12:36 +0000 Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: <1496772194908-5743566.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> <1496772194908-5743566.post@n5.nabble.com> Message-ID: If you are using zspace, then you can use Paraview VR plugin and a configuration that lets you open two windows (one for left eye and one for right). One of my colleague was able to run a setup like this in the past. However, then you are using ParaView inside zspace and not using zSpace SDK directly. - Aashish On Tue, Jun 6, 2017 at 2:03 PM Teek wrote: > Ahhh I should've been more clear. But I'm using zSpace as my display which > handles the stereoscopic rendering fine if I use Crystal Eyes. > > Would it be possible for me to have 2 renderers on top of each other in one > window, and then use the front and back buffers for each renderer? > > For my use, I can't actually use just the center of the two eyes. I would > need to render each eye separately or set the camera for each eye. > > zSpace has an example of rendering in OpenGL in which they render the scene > twice using GL_FRONT_LEFT and GL_BACK_LEFT buffers, respective to each eye. > I'm trying to recreate that with VTK because VTK implies volume rendering > significantly. > > > Sankhesh Jhaveri-2 wrote > > Perhaps, I misunderstood what you?re trying to do. > > > > That API lets you render a whole scene (i.e. OpenGL context) with one > eye. > > For rendering both, left and right, you?d have to have two different > > windows with the same scene - one for left and one for right. > > The compositing will have to be dealt with, by the external system this > > way. > > > > What is the display setup you use? CAVE, HMD, etc? > > > > If you?re using off-axis projection, you could use > > vtkCamera::SetEyePosition > > (the center of the two eyes) and vtkCamera::SetEyeSeparation. However, > > these settings are only used for off-axis frustum calculation. > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743566.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 sankhesh.jhaveri at kitware.com Tue Jun 6 14:23:40 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Tue, 06 Jun 2017 18:23:40 +0000 Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> <1496772194908-5743566.post@n5.nabble.com> Message-ID: If zSpace creates the OpenGL context, you could also use the vtkRenderingExternal module (ExternalVTKWidget in particular) which allows one to use VTK in third party visualization architectures. For an example, take a look at the VruiVTK examples on GitHub that allow using VTK inside VRUI. ? On Tue, Jun 6, 2017 at 2:12 PM Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > If you are using zspace, then you can use Paraview VR plugin and a > configuration that lets you open two windows (one for left eye and one for > right). One of my colleague was able to run a setup like this in the past. > However, then you are using ParaView inside zspace and not using zSpace SDK > directly. > > - Aashish > > On Tue, Jun 6, 2017 at 2:03 PM Teek wrote: > >> Ahhh I should've been more clear. But I'm using zSpace as my display which >> handles the stereoscopic rendering fine if I use Crystal Eyes. >> >> Would it be possible for me to have 2 renderers on top of each other in >> one >> window, and then use the front and back buffers for each renderer? >> >> For my use, I can't actually use just the center of the two eyes. I would >> need to render each eye separately or set the camera for each eye. >> >> zSpace has an example of rendering in OpenGL in which they render the >> scene >> twice using GL_FRONT_LEFT and GL_BACK_LEFT buffers, respective to each >> eye. >> I'm trying to recreate that with VTK because VTK implies volume rendering >> significantly. >> >> >> Sankhesh Jhaveri-2 wrote >> > Perhaps, I misunderstood what you?re trying to do. >> > >> > That API lets you render a whole scene (i.e. OpenGL context) with one >> eye. >> > For rendering both, left and right, you?d have to have two different >> > windows with the same scene - one for left and one for right. >> > The compositing will have to be dealt with, by the external system this >> > way. >> > >> > What is the display setup you use? CAVE, HMD, etc? >> > >> > If you?re using off-axis projection, you could use >> > vtkCamera::SetEyePosition >> > (the center of the two eyes) and vtkCamera::SetEyeSeparation. However, >> > these settings are only used for off-axis frustum calculation. >> >> >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743566.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tveerama at bhavi.us Tue Jun 6 15:04:00 2017 From: tveerama at bhavi.us (vtejatv) Date: Tue, 6 Jun 2017 12:04:00 -0700 (MST) Subject: [vtkusers] VTK 8.0 oculus installation Message-ID: <1496775840884-5743570.post@n5.nabble.com> Hi, I have been trying to install VTK8.0 with the VTK Oculus enabled, but I keep on getting errors returned. The error I have been getting is that the SDL.h file is unreadable or corrupted (LNK1107 error). I have double checked that the path to SDL2_Include_DIR is valid and have redownloaded the SDL2 file. My questions is if there is anyway to fix this problem and properly install VTK with Oculus enabled? I have tried this installation multiple times, but it still does not work. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-8-0-oculus-installation-tp5743570.html Sent from the VTK - Users mailing list archive at Nabble.com. From EZ7543 at wayne.edu Tue Jun 6 15:07:16 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 12:07:16 -0700 (MST) Subject: [vtkusers] VTk Stereo - Help Rendering Left & Right Eye Seperately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> <1496772194908-5743566.post@n5.nabble.com> Message-ID: <1496776036927-5743571.post@n5.nabble.com> Unfortunately, one of my constraints is to use the zSpace SDK. Now when you say "directly", would I still be able to use the zSpace SDK for getting tracker information if I were to go this route? Aashish Chaudhary-2 wrote > If you are using zspace, then you can use Paraview VR plugin and a > configuration that lets you open two windows (one for left eye and one for > right). One of my colleague was able to run a setup like this in the past. > However, then you are using ParaView inside zspace and not using zSpace > SDK > directly. > > - Aashish -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743571.html Sent from the VTK - Users mailing list archive at Nabble.com. From trevourspencer at gmail.com Tue Jun 6 15:19:42 2017 From: trevourspencer at gmail.com (Trevour Spencer) Date: Tue, 6 Jun 2017 21:19:42 +0200 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) Message-ID: Dear VTK experts, I'd like to solve a problem with visualizing datasets that are too large to be rendered fluently on a single node. We have datasets that have been distributed with PT-Scotch across ~10-100 nodes of a MPI cluster (each node has a GPU, but for now we are rendering CPU only.). A vtkUnstructuredGrid has been created on each process to visualize the respective fraction of the data that is stored in this process. So far, we have been successful. How would I create a composite image that combines all data from all processes? Apparently http://www.vtk.org/Wiki/VTK/MultiPass_Rendering#Parallel_rendering gives some ideas, and the example http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Parallel/Testing/Cxx/DistributedDataRenderPass.cxx is perfect for distributing the points of a small dataset across 2 processes and rendering the combined image. What I cannot find out with these examples is: How do I proceed, if the data *are* already distributed across the processes? I cannot gather all data on process id #0 (too large) to pass them to a vtkDistributedDataFilter as in the example above. How should the DistributedDataRenderPass.cxx be modified to run with initially distributed data? I appreciate your thoughts Trevour ps: Finding a solution without ParaView is a requirement from our IT side. We can't argue with them :( Virenfrei. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Tue Jun 6 15:31:38 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 6 Jun 2017 12:31:38 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496765690800-5743562.post@n5.nabble.com> <1496766737235-5743564.post@n5.nabble.com> <1496772194908-5743566.post@n5.nabble.com> Message-ID: <1496777498054-5743573.post@n5.nabble.com> Currently I actually have VTK creating window, and then initializing zSpace after that. I'm really using zSpace SDK only for the tracker information such as the pen coordinates and the eye coordinates. I'm passing that information to VTK after transforming the coordinates for the VTK world space. I could try going the other way if it's easier, however would prefer going VTK for the context because I want to incorporate Qt after and not sure if that would be as easy if I had zSpace creating the context. Are there any other ways I could go about modifying each camera (per eye) independently for now? Sankhesh Jhaveri-2 wrote > If zSpace creates the OpenGL context, you could also use the > vtkRenderingExternal module (ExternalVTKWidget in particular) which allows > one to use VTK in third party visualization architectures. For an example, > take a look at the VruiVTK examples <https://github.com/VruiVTK> on > GitHub > that allow using VTK inside VRUI. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743573.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Tue Jun 6 15:41:13 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 6 Jun 2017 15:41:13 -0400 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: On Tue, Jun 6, 2017 at 3:19 PM, Trevour Spencer wrote: > Dear VTK experts, > I'd like to solve a problem with visualizing datasets that are too large > to be rendered fluently on a single node. > We have datasets that have been distributed with PT-Scotch across ~10-100 > nodes of a MPI cluster (each node has a GPU, but for now we are rendering > CPU only.). A vtkUnstructuredGrid has been created on each process to > visualize the respective fraction of the data that is stored in this > process. So far, we have been successful. > > How would I create a composite image that combines all data from all > processes? Apparently http://www.vtk.org/Wiki/VTK/ > MultiPass_Rendering#Parallel_rendering gives some ideas, and the example > http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Parallel/Testing/Cxx/ > DistributedDataRenderPass.cxx is perfect for distributing the points of a > small dataset across 2 processes and rendering the combined image. > > What I cannot find out with these examples is: > How do I proceed, if the data *are* already distributed across the > processes? I cannot gather all data on process id #0 (too large) to pass > them to a vtkDistributedDataFilter as in the example above. How should the > DistributedDataRenderPass.cxx be modified to run with initially distributed > data? > > I appreciate your thoughts > Trevour > > ps: Finding a solution without ParaView is a requirement from our IT side. > We can't argue with them :( > > boo! ;) See tests and examples reachable under doxygen for : http://www.vtk.org/doc/nightly/html/classvtkCompositeRenderManager.html and http://www.vtk.org/doc/nightly/html/classvtkCompositer.html for orchestrating the synchronous independent pipelines and depth compositing respectively. Pretty soon you will want to swap out any VTK native compositor for IceT since that is better optimized and tested. For ideas on how to go about that see: http://www.vtk.org/Wiki/VTK/MultiPass_Rendering_With_IceT Bit of advice - although it can be a chore to compile/install ParaView it can also be a chore to develop something from scratch. good luck with either path. cheers David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sancho at whu.edu.cn Tue Jun 6 20:32:04 2017 From: sancho at whu.edu.cn (=?UTF-8?B?5q615paw5qGl?=) Date: Wed, 7 Jun 2017 08:32:04 +0800 (GMT+08:00) Subject: [vtkusers] Project voxel/pixel value onto surface mesh In-Reply-To: References: Message-ID: <367b3d35.8fd.15c7ff72e61.Coremail.sancho@whu.edu.cn> HI Kurt, If the surface is irregular, the voxel projection might be done by kind of 'closest' searching. If so, this could be done by vtkCellLocator whereas the closest facet and the closest intersection point on the facet are both obtained. sancho At2017-06-06 07:33:55????sancho at whu.edu.cnwrote: Hi, I am trying to come up with an efficient way to project voxel values from an image volume to a surface mesh. Basically I have a triangle surface mesh with normal information, and I want to create a new cell array that is the voxel intensity value closest to the surface mesh in the normal direction. I am thinking it's kind of like doing an iso-surface but I want image intensities from the image volume based on the location of the surface mesh and then I want to be able to view the image as projected on the surface mesh. Another way I was thinking of this is texturing the surface with the image intensities based on the closest voxel/pixel to the surface. Another way I thinking of doing it is using two image volumes vol_1 is the image stack and vol_2 is a signed distance field where I want the pixel intensity of vol_1 at the zero level set of vol_2. Does anyone have an example or can think a good way to do this? Regards, ~Kurt -- Kurt Sansom -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Jun 7 08:15:41 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 7 Jun 2017 14:15:41 +0200 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: 2017-03-13 10:37 GMT+01:00 Elvis Stansvik : > 2017-03-13 10:32 GMT+01:00 Elvis Stansvik : > > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik > : > >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik >: > >>> 2017-03-07 15:53 GMT+01:00 David Cole : > >>>> On Windows, we make resizing our windows interactive by getting the > >>>> vtkInteractorStyle associated with the render window containing the > >>>> volume rendering, and then calling StartState at resize begin time > >>>> (OnEnterSizeMove) and StopState at resize end time (OnExitSizeMove). > >>>> > >>>> I suppose there may be a Qt equivalent which works on many platforms > >>>> for beginning and ending a resize action. If not, there are definitely > >>>> platform-specific hooks you can intercept to achieve smooth resizing > >>>> with this technique. > >>>> > >>>> Wrapping anything in a StartState/StopState pair on the > >>>> vtkInteractorStyle will cause "interactive frame rate rendering" to be > >>>> in effect in between the calls. The volume rendering is not as nice > >>>> looking during interactions, but it is definitely speedier. > >>> > >>> Ah, I was just about to reply to myself with some further information: > >>> > >>> I know that during interaction, the quality of the rendering is > >>> decreased, and that this can account for some of the performance > >>> discrepancy I'm seeing between camera movement vs window resize. > >>> > >>> But, I've experimented with disabling the quality degradation during > >>> interactions (so that the two should be on "equal footing"), and the > >>> resizing is still much more choppy than when interacting with the > >>> camera. So there must be something else. > >>> > >>> In fact, in the screencast I showed, I wasn't using the volume > >>> renderer's default built-in quality degradation during interaction. > >>> I'm using my own since I've found that VTKs own is a little too > >>> aggressive in degrading the quality to maintain frame rate. > >> > >> To illustrate, look at the attached screen recording. In this test > >> case, I'm using > >> > >> mapper->AutoAdjustSampleDistancesOff(); > >> mapper->SetSampleDistance(0.0002); > >> > >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic adjustment > >> of sample distance during interactions, and hardcode the sample > >> distance to 0.0002. > >> > >> Notice how the rendering is still reasonably smooth during > >> interaction, but during resize, the rendering sometimes lags with 100s > >> of milliseconds. During the resizing I was getting warnings like > >> > >> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/ > vtkXOpenGLRenderWindow.cxx, > >> line 1207 > >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not resize in > >> the allotted time > >> > >> printed. > > > > No ideas where this discrepancy in refresh rate, despite automatic > > adjustment of sample distance being turned off, comes from? > > > > At the moment I've worked around it by simply resorting to bounding > > box rendering when my VTK windows are resized, since the choppy resize > > behavior was quite jarring. But that's a kludge and I'd much rather > > find the real problem :/ > > > > Below is a minimal test case, and I'm attaching a video where I first > > interact with the volume rendering, giving a smooth albeit a little > > slow frame rate, and then resizing the window, which gives a jerky and > > choppy rendering. > > > > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. VTK > > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. > > > > Elvis > > > > > > main.cpp: > > > > #include > > > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > > > int main(int argc, char *argv[]) > > { > > vtkNew colorFunction; > > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); > > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); > > > > vtkNew opacityFunction; > > opacityFunction->AddPoint(0.0, 0.0); > > opacityFunction->AddPoint(1.0, 0.02); > > > > vtkNew data; > > data->SetExtent(0, 250, 0, 250, 0, 500); > > data->AllocateScalars(VTK_FLOAT, 1); > > std::random_device device; > > std::mt19937 engine(device()); > > std::uniform_real_distribution<> distribution(0, 1); > > auto dataPointer = static_cast(data->GetScalarPointer()); > > for (int i = 0; i < 250*250*500; ++i) { > > *dataPointer = distribution(engine); > > ++dataPointer; > > } > > > > vtkNew mapper; > > mapper->SetInputData(data.Get()); > > Sorry, the test case should have had > > mapper->AutoAdjustSampleDistancesOff(); > mapper->SetSampleDistance(1); > > here, to show that the discrepancy is there even when automatic > adjustment of sample distance is turned off. > > The result is the same, the rendering is keeping up much better during > interaction that it is during window resize. > > I can understand if it's a little heavier to re-render after window > resize, but not by that much, so I think something is wrong > Anybody have some more advise on this? I'm seeing the same problem in PV 5.4. I had hoped that maybe the new QVTKOpenGLWidget would change things, but it hasn't. I would really like to remove the workarounds I have in place that degrades the rendering to bounding boxes during widget resizing. Elvis > > Elvis > > > > > vtkNew property; > > property->SetScalarOpacity(opacityFunction.Get()); > > property->SetColor(colorFunction.Get()); > > > > vtkNew volume; > > volume->SetMapper(mapper.Get()); > > volume->SetProperty(property.Get()); > > > > vtkNew renderer; > > renderer->AddVolume(volume.Get()); > > renderer->SetBackground(1.0, 1.0, 1.0); > > > > vtkNew window; > > window->AddRenderer(renderer.Get()); > > > > renderer->ResetCamera(); > > > > vtkNew interactor; > > interactor->SetRenderWindow(window.Get()); > > interactor->Start(); > > > > return 0; > > } > > > > > > CMakeLists.txt: > > > > cmake_minimum_required(VERSION 3.1) > > > > project(TestCase) > > > > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) > > > > find_package(VTK 7.1 COMPONENTS > > vtkCommonCore > > vtkCommonDataModel > > vtkCommonExecutionModel > > vtkCommonMath > > vtkInteractionStyle > > vtkRenderingCore > > vtkRenderingOpenGL2 > > vtkRenderingVolume > > vtkRenderingVolumeOpenGL2 > > REQUIRED > > ) > > > > add_executable(TestCase WIN32 main.cpp) > > > > target_link_libraries(TestCase PUBLIC > > vtkCommonCore > > vtkCommonDataModel > > vtkCommonExecutionModel > > vtkCommonMath > > vtkInteractionStyle > > vtkRenderingCore > > vtkRenderingOpenGL2 > > vtkRenderingVolume > > vtkRenderingVolumeOpenGL2 > > ) > > > > target_include_directories(TestCase PUBLIC > > ${VTK_INCLUDE_DIRS} > > ) > > > > target_compile_definitions(TestCase PUBLIC > > ${VTK_DEFINITIONS} > > ) > > > > set_target_properties(TestCase PROPERTIES > > CXX_STANDARD 14 > > CXX_STANDARD_REQUIRED ON > > ) > > > >> > >> Elvis > >> > >>> > >>> Elvis > >>> > >>>> > >>>> > >>>> HTH, > >>>> David C. > >>>> > >>>> > >>>> > >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik > >>>> wrote: > >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik < > elvis.stansvik at orexplore.com>: > >>>>>> Hi all, > >>>>>> > >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of > VTKWidget > >>>>>> showing volume renderings, as well as a window with a chart. > >>>>> > >>>>> Actually, I'm able to reproduce this behavior when not using Qt at > >>>>> all, but just a regular render window + interactor setup with a > single > >>>>> volume rendered. Camera interaction is nice and fast, but resizing > the > >>>>> window, the rendering is very choppy. I'm also getting > >>>>> > >>>>> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/ > vtkXOpenGLRenderWindow.cxx, > >>>>> line 1207 > >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not resize in > >>>>> the allotted time > >>>>> > >>>>> printed to the console, so it seems VTK detects what I'm seeing > >>>>> visually. I did not get this warning printed in the Qt + VTK app. > >>>>> > >>>>> Elvis > >>>>> > >>>>>> > >>>>>> Have a look at the attached screen recording. Notice how camera > >>>>>> interaction in both VTK render windows is nice and smooth, but when > >>>>>> resizing the windows, the updating of the renderings is very > >>>>>> slow/choppy. > >>>>>> > >>>>>> I've been trying to debug this, or at least finding a way of > >>>>>> mitigating it. Could it be that Qt is delivering too many resize > >>>>>> events? Has anyone else dealt with this problem? > >>>>>> > >>>>>> Thanks in advance for any advice, > >>>>>> Elvis > >>>>> _______________________________________________ > >>>>> Powered by www.kitware.com > >>>>> > >>>>> Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > >>>>> > >>>>> Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > >>>>> > >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers > >>>>> > >>>>> Follow this link to subscribe/unsubscribe: > >>>>> http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Jun 7 13:42:53 2017 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 7 Jun 2017 13:42:53 -0400 Subject: [vtkusers] distances in TubeFilter In-Reply-To: References: Message-ID: CC'ing back to the list I see. I did not understand that you have a set of points that is different from the points defining the tube obtained from the TubeFilter. Now that I understand the problem, I would skip vtkSelectEnclosedPoints and just check the distance from the polyline to each point computed with the cell locator. Ignore the points if they are < 3 or > 5 units of distance away, and do your scoring for the other points as you have described. HTH, Cory On Wed, May 31, 2017 at 9:55 AM, Raphael Jakob wrote: > Hey Cory, > > Maybe im wrong and there is a better solution. But i created a TubeFilter > with radius 5 for example. And i want to score the inner points. All points > within the radius 3 to the polyline should be ignored, so that i have a > hollow tube. All points in radius 4 should get a score of 1 and all points > within the radius 5 should get the score 2 for example. To create the points > in the tube i have to use selectEnclosedPoints, arent I?, beacuse the Tube > FIlter gives only the surface of the Tube ? Now I would have the points of > the Tube and can use your solution with AbstractPoint Locator. Or is their a > much better apprach for my goal? > > Best regards! > > 2017-05-31 15:27 GMT+02:00 Cory Quammen : >> >> I'm confused - why isn't the distance from the inner polyline the same >> as the tube filter radius (to within discretization error)? >> >> I don't think vtkDistancePolyDataFilter or vtkImplicitPolyDataDistance >> will do that in the direction you want. Each require that the object >> from which the distances are computed be triangle meshes, and your >> polyline is not a triangle mesh. >> >> Instead, you could use one of the point locators (subclass of >> vtkAbstractPointLocator [1]) and set its input to the polyline. Then >> iterate over the points of the tube and compute the distance manually >> using the locator. Note that the closest point on the polyline may >> fall in the interior of one of the line segments, in which case you >> might be able to use vtkCellLocator. >> >> HTH, >> Cory >> >> [1] http://www.vtk.org/doc/nightly/html/classvtkAbstractPointLocator.html >> [2] http://www.vtk.org/doc/nightly/html/classvtkCellLocator.html >> >> On Wed, May 31, 2017 at 8:04 AM, Raphael Jakob via vtkusers >> wrote: >> > Is it possible to calculate all distances of all points in a TubeFilter >> > Object to the inner polyLine with implicitPolyDataDistance or >> > vtkDistancePolyDataFilter or another fast vtk method? I want to score >> > all >> > points in the tube in dependence of their distance to the line, which >> > created the Tube. >> > >> > Best regards >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> > >> >> >> >> -- >> Cory Quammen >> Staff R&D Engineer >> Kitware, Inc. > > -- Cory Quammen Staff R&D Engineer Kitware, Inc. From sur.chiranjib at gmail.com Wed Jun 7 13:43:25 2017 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Wed, 7 Jun 2017 23:13:25 +0530 Subject: [vtkusers] Linking to Physics libraries In-Reply-To: <1496701542609-5743554.post@n5.nabble.com> References: <1496701542609-5743554.post@n5.nabble.com> Message-ID: I have not used ODE myself but given the C++ API's are available, they can be interfaced with VTK. I have experienced that if you discretize any rigid body interms of point data, it is easy to interface. I have worked on interfacing smoothed particle hydrodynamis (SPH) with VTK - both for computation and rendering. It works like charm! On Tue, Jun 6, 2017 at 3:55 AM, kay wrote: > Is it possible to link the VTK with the any of the physics libraries like > ODE > or Bullet? > I would like to use the Joints/collision in the VTK where I am already > rendering few actors. > > Any suggestions would be helpful > > Thanks > > For reference to implement something like this > ik_inversekinematics.png> > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/Linking-to-Physics-libraries-tp5743554.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 gratt at intales.com Thu Jun 8 02:20:32 2017 From: gratt at intales.com (Manfred Gratt) Date: Thu, 8 Jun 2017 08:20:32 +0200 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: On 07/06/17 14:15, Elvis Stansvik wrote: > 2017-03-13 10:37 GMT+01:00 Elvis Stansvik > >: > > 2017-03-13 10:32 GMT+01:00 Elvis Stansvik > >: > > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik > >: > >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik > >: > >>> 2017-03-07 15:53 GMT+01:00 David Cole >: > >>>> On Windows, we make resizing our windows interactive by > getting the > >>>> vtkInteractorStyle associated with the render window > containing the > >>>> volume rendering, and then calling StartState at resize begin > time > >>>> (OnEnterSizeMove) and StopState at resize end time > (OnExitSizeMove). > >>>> > >>>> I suppose there may be a Qt equivalent which works on many > platforms > >>>> for beginning and ending a resize action. If not, there are > definitely > >>>> platform-specific hooks you can intercept to achieve smooth > resizing > >>>> with this technique. > >>>> > >>>> Wrapping anything in a StartState/StopState pair on the > >>>> vtkInteractorStyle will cause "interactive frame rate > rendering" to be > >>>> in effect in between the calls. The volume rendering is not > as nice > >>>> looking during interactions, but it is definitely speedier. > >>> > >>> Ah, I was just about to reply to myself with some further > information: > >>> > >>> I know that during interaction, the quality of the rendering is > >>> decreased, and that this can account for some of the performance > >>> discrepancy I'm seeing between camera movement vs window resize. > >>> > >>> But, I've experimented with disabling the quality degradation > during > >>> interactions (so that the two should be on "equal footing"), > and the > >>> resizing is still much more choppy than when interacting with the > >>> camera. So there must be something else. > >>> > >>> In fact, in the screencast I showed, I wasn't using the volume > >>> renderer's default built-in quality degradation during > interaction. > >>> I'm using my own since I've found that VTKs own is a little too > >>> aggressive in degrading the quality to maintain frame rate. > >> > >> To illustrate, look at the attached screen recording. In this test > >> case, I'm using > >> > >> mapper->AutoAdjustSampleDistancesOff(); > >> mapper->SetSampleDistance(0.0002); > >> > >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic > adjustment > >> of sample distance during interactions, and hardcode the sample > >> distance to 0.0002. > >> > >> Notice how the rendering is still reasonably smooth during > >> interaction, but during resize, the rendering sometimes lags > with 100s > >> of milliseconds. During the resizing I was getting warnings like > >> > >> Warning: In > /buildbot/vtk7-builder/build/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, > >> line 1207 > >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not > resize in > >> the allotted time > >> > >> printed. > > > > No ideas where this discrepancy in refresh rate, despite automatic > > adjustment of sample distance being turned off, comes from? > > > > At the moment I've worked around it by simply resorting to bounding > > box rendering when my VTK windows are resized, since the choppy > resize > > behavior was quite jarring. But that's a kludge and I'd much rather > > find the real problem :/ > > > > Below is a minimal test case, and I'm attaching a video where I > first > > interact with the volume rendering, giving a smooth albeit a little > > slow frame rate, and then resizing the window, which gives a > jerky and > > choppy rendering. > > > > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. VTK > > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. > > > > Elvis > > > > > > main.cpp: > > > > #include > > > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > #include > > > > int main(int argc, char *argv[]) > > { > > vtkNew colorFunction; > > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); > > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); > > > > vtkNew opacityFunction; > > opacityFunction->AddPoint(0.0, 0.0); > > opacityFunction->AddPoint(1.0, 0.02); > > > > vtkNew data; > > data->SetExtent(0, 250, 0, 250, 0, 500); > > data->AllocateScalars(VTK_FLOAT, 1); > > std::random_device device; > > std::mt19937 engine(device()); > > std::uniform_real_distribution<> distribution(0, 1); > > auto dataPointer = static_cast *>(data->GetScalarPointer()); > > for (int i = 0; i < 250*250*500; ++i) { > > *dataPointer = distribution(engine); > > ++dataPointer; > > } > > > > vtkNew mapper; > > mapper->SetInputData(data.Get()); > > Sorry, the test case should have had > > mapper->AutoAdjustSampleDistancesOff(); > mapper->SetSampleDistance(1); > > here, to show that the discrepancy is there even when automatic > adjustment of sample distance is turned off. > > The result is the same, the rendering is keeping up much better during > interaction that it is during window resize. > > I can understand if it's a little heavier to re-render after window > resize, but not by that much, so I think something is wrong > > > Anybody have some more advise on this? I'm seeing the same problem in > PV 5.4. > > I had hoped that maybe the new QVTKOpenGLWidget would change things, > but it hasn't. I would really like to remove the workarounds I have in > place that degrades the rendering to bounding boxes during widget > resizing. > > Elvis Hi Elvis, if you are using Qt5.5 and VTK the problem may be related to this bug: http://vtk.1045678.n5.nabble.com/Delayed-mouse-interaction-due-to-event-loop-bug-in-Qt5-td5730474.html https://bugreports.qt.io/browse/QTBUG-40889 I have this problem with VTK6 and VTK7 using Ubuntu 16.04 but it was fixed in Ubuntu 16.10 that has Qt5.6 which fixes the bug. Have you tried your program on a newer version of Ubuntu? Manfred > > > Elvis > > > > > vtkNew property; > > property->SetScalarOpacity(opacityFunction.Get()); > > property->SetColor(colorFunction.Get()); > > > > vtkNew volume; > > volume->SetMapper(mapper.Get()); > > volume->SetProperty(property.Get()); > > > > vtkNew renderer; > > renderer->AddVolume(volume.Get()); > > renderer->SetBackground(1.0, 1.0, 1.0); > > > > vtkNew window; > > window->AddRenderer(renderer.Get()); > > > > renderer->ResetCamera(); > > > > vtkNew interactor; > > interactor->SetRenderWindow(window.Get()); > > interactor->Start(); > > > > return 0; > > } > > > > > > CMakeLists.txt: > > > > cmake_minimum_required(VERSION 3.1) > > > > project(TestCase) > > > > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) > > > > find_package(VTK 7.1 COMPONENTS > > vtkCommonCore > > vtkCommonDataModel > > vtkCommonExecutionModel > > vtkCommonMath > > vtkInteractionStyle > > vtkRenderingCore > > vtkRenderingOpenGL2 > > vtkRenderingVolume > > vtkRenderingVolumeOpenGL2 > > REQUIRED > > ) > > > > add_executable(TestCase WIN32 main.cpp) > > > > target_link_libraries(TestCase PUBLIC > > vtkCommonCore > > vtkCommonDataModel > > vtkCommonExecutionModel > > vtkCommonMath > > vtkInteractionStyle > > vtkRenderingCore > > vtkRenderingOpenGL2 > > vtkRenderingVolume > > vtkRenderingVolumeOpenGL2 > > ) > > > > target_include_directories(TestCase PUBLIC > > ${VTK_INCLUDE_DIRS} > > ) > > > > target_compile_definitions(TestCase PUBLIC > > ${VTK_DEFINITIONS} > > ) > > > > set_target_properties(TestCase PROPERTIES > > CXX_STANDARD 14 > > CXX_STANDARD_REQUIRED ON > > ) > > > >> > >> Elvis > >> > >>> > >>> Elvis > >>> > >>>> > >>>> > >>>> HTH, > >>>> David C. > >>>> > >>>> > >>>> > >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik > >>>> > wrote: > >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik > >: > >>>>>> Hi all, > >>>>>> > >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of > VTKWidget > >>>>>> showing volume renderings, as well as a window with a chart. > >>>>> > >>>>> Actually, I'm able to reproduce this behavior when not using > Qt at > >>>>> all, but just a regular render window + interactor setup > with a single > >>>>> volume rendered. Camera interaction is nice and fast, but > resizing the > >>>>> window, the rendering is very choppy. I'm also getting > >>>>> > >>>>> Warning: In > /buildbot/vtk7-builder/build/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, > >>>>> line 1207 > >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not > resize in > >>>>> the allotted time > >>>>> > >>>>> printed to the console, so it seems VTK detects what I'm seeing > >>>>> visually. I did not get this warning printed in the Qt + VTK > app. > >>>>> > >>>>> Elvis > >>>>> > >>>>>> > >>>>>> Have a look at the attached screen recording. Notice how camera > >>>>>> interaction in both VTK render windows is nice and smooth, > but when > >>>>>> resizing the windows, the updating of the renderings is very > >>>>>> slow/choppy. > >>>>>> > >>>>>> I've been trying to debug this, or at least finding a way of > >>>>>> mitigating it. Could it be that Qt is delivering too many > resize > >>>>>> events? Has anyone else dealt with this problem? > >>>>>> > >>>>>> Thanks in advance for any advice, > >>>>>> Elvis > >>>>> _______________________________________________ > >>>>> Powered by www.kitware.com > >>>>> > >>>>> Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > >>>>> > >>>>> Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > >>>>> > >>>>> Search the list archives at: > http://markmail.org/search/?q=vtkusers > > >>>>> > >>>>> Follow this link to subscribe/unsubscribe: > >>>>> 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 elvis.stansvik at orexplore.com Thu Jun 8 02:45:41 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 8 Jun 2017 08:45:41 +0200 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: Den 8 juni 2017 8:26 fm skrev "Manfred Gratt" : > > > > On 07/06/17 14:15, Elvis Stansvik wrote: >> >> 2017-03-13 10:37 GMT+01:00 Elvis Stansvik : >>> >>> 2017-03-13 10:32 GMT+01:00 Elvis Stansvik : >>> > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik < elvis.stansvik at orexplore.com>: >>> >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik < elvis.stansvik at orexplore.com>: >>> >>> 2017-03-07 15:53 GMT+01:00 David Cole : >>> >>>> On Windows, we make resizing our windows interactive by getting the >>> >>>> vtkInteractorStyle associated with the render window containing the >>> >>>> volume rendering, and then calling StartState at resize begin time >>> >>>> (OnEnterSizeMove) and StopState at resize end time (OnExitSizeMove). >>> >>>> >>> >>>> I suppose there may be a Qt equivalent which works on many platforms >>> >>>> for beginning and ending a resize action. If not, there are definitely >>> >>>> platform-specific hooks you can intercept to achieve smooth resizing >>> >>>> with this technique. >>> >>>> >>> >>>> Wrapping anything in a StartState/StopState pair on the >>> >>>> vtkInteractorStyle will cause "interactive frame rate rendering" to be >>> >>>> in effect in between the calls. The volume rendering is not as nice >>> >>>> looking during interactions, but it is definitely speedier. >>> >>> >>> >>> Ah, I was just about to reply to myself with some further information: >>> >>> >>> >>> I know that during interaction, the quality of the rendering is >>> >>> decreased, and that this can account for some of the performance >>> >>> discrepancy I'm seeing between camera movement vs window resize. >>> >>> >>> >>> But, I've experimented with disabling the quality degradation during >>> >>> interactions (so that the two should be on "equal footing"), and the >>> >>> resizing is still much more choppy than when interacting with the >>> >>> camera. So there must be something else. >>> >>> >>> >>> In fact, in the screencast I showed, I wasn't using the volume >>> >>> renderer's default built-in quality degradation during interaction. >>> >>> I'm using my own since I've found that VTKs own is a little too >>> >>> aggressive in degrading the quality to maintain frame rate. >>> >> >>> >> To illustrate, look at the attached screen recording. In this test >>> >> case, I'm using >>> >> >>> >> mapper->AutoAdjustSampleDistancesOff(); >>> >> mapper->SetSampleDistance(0.0002); >>> >> >>> >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic adjustment >>> >> of sample distance during interactions, and hardcode the sample >>> >> distance to 0.0002. >>> >> >>> >> Notice how the rendering is still reasonably smooth during >>> >> interaction, but during resize, the rendering sometimes lags with 100s >>> >> of milliseconds. During the resizing I was getting warnings like >>> >> >>> >> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >>> >> line 1207 >>> >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not resize in >>> >> the allotted time >>> >> >>> >> printed. >>> > >>> > No ideas where this discrepancy in refresh rate, despite automatic >>> > adjustment of sample distance being turned off, comes from? >>> > >>> > At the moment I've worked around it by simply resorting to bounding >>> > box rendering when my VTK windows are resized, since the choppy resize >>> > behavior was quite jarring. But that's a kludge and I'd much rather >>> > find the real problem :/ >>> > >>> > Below is a minimal test case, and I'm attaching a video where I first >>> > interact with the volume rendering, giving a smooth albeit a little >>> > slow frame rate, and then resizing the window, which gives a jerky and >>> > choppy rendering. >>> > >>> > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. VTK >>> > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. >>> > >>> > Elvis >>> > >>> > >>> > main.cpp: >>> > >>> > #include >>> > >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > #include >>> > >>> > int main(int argc, char *argv[]) >>> > { >>> > vtkNew colorFunction; >>> > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); >>> > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); >>> > >>> > vtkNew opacityFunction; >>> > opacityFunction->AddPoint(0.0, 0.0); >>> > opacityFunction->AddPoint(1.0, 0.02); >>> > >>> > vtkNew data; >>> > data->SetExtent(0, 250, 0, 250, 0, 500); >>> > data->AllocateScalars(VTK_FLOAT, 1); >>> > std::random_device device; >>> > std::mt19937 engine(device()); >>> > std::uniform_real_distribution<> distribution(0, 1); >>> > auto dataPointer = static_cast(data->GetScalarPointer()); >>> > for (int i = 0; i < 250*250*500; ++i) { >>> > *dataPointer = distribution(engine); >>> > ++dataPointer; >>> > } >>> > >>> > vtkNew mapper; >>> > mapper->SetInputData(data.Get()); >>> >>> Sorry, the test case should have had >>> >>> mapper->AutoAdjustSampleDistancesOff(); >>> mapper->SetSampleDistance(1); >>> >>> here, to show that the discrepancy is there even when automatic >>> adjustment of sample distance is turned off. >>> >>> The result is the same, the rendering is keeping up much better during >>> interaction that it is during window resize. >>> >>> I can understand if it's a little heavier to re-render after window >>> resize, but not by that much, so I think something is wrong >> >> >> Anybody have some more advise on this? I'm seeing the same problem in PV 5.4. >> >> I had hoped that maybe the new QVTKOpenGLWidget would change things, but it hasn't. I would really like to remove the workarounds I have in place that degrades the rendering to bounding boxes during widget resizing. >> >> Elvis > > Hi Elvis, > if you are using Qt5.5 and VTK the problem may be related to this bug: > > http://vtk.1045678.n5.nabble.com/Delayed-mouse-interaction-due-to-event-loop-bug-in-Qt5-td5730474.html > > https://bugreports.qt.io/browse/QTBUG-40889 > > I have this problem with VTK6 and VTK7 using Ubuntu 16.04 but it was fixed in Ubuntu 16.10 > that has Qt5.6 which fixes the bug. Have you tried your program on a newer version of Ubuntu? Sorry that my thread has gotten so long, but I mentioned QTBUG-40889 in an earlier mail, and that's unfortunately not it. I'm well aware of that bug and even submitted an SRU to backport the upstream fix to 16.04 (not sure of the status of that). I also see the problem both with my AppImage build, which uses 5.6, and on macOS, where I use 5.8. What I would expect is that resizing a window, VTK should be able to maintain roughly the same framerate as during normal interaction (sample distance reduction turned off). But instead, each frame is seemingly taking a lot more time, which I think is what leads to the stuttering. The test case I sent earlier should show the problem, even on newer Qt versions. Elvis > > Manfred > > > >> >>> >>> >>> Elvis >>> >>> > >>> > vtkNew property; >>> > property->SetScalarOpacity(opacityFunction.Get()); >>> > property->SetColor(colorFunction.Get()); >>> > >>> > vtkNew volume; >>> > volume->SetMapper(mapper.Get()); >>> > volume->SetProperty(property.Get()); >>> > >>> > vtkNew renderer; >>> > renderer->AddVolume(volume.Get()); >>> > renderer->SetBackground(1.0, 1.0, 1.0); >>> > >>> > vtkNew window; >>> > window->AddRenderer(renderer.Get()); >>> > >>> > renderer->ResetCamera(); >>> > >>> > vtkNew interactor; >>> > interactor->SetRenderWindow(window.Get()); >>> > interactor->Start(); >>> > >>> > return 0; >>> > } >>> > >>> > >>> > CMakeLists.txt: >>> > >>> > cmake_minimum_required(VERSION 3.1) >>> > >>> > project(TestCase) >>> > >>> > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) >>> > >>> > find_package(VTK 7.1 COMPONENTS >>> > vtkCommonCore >>> > vtkCommonDataModel >>> > vtkCommonExecutionModel >>> > vtkCommonMath >>> > vtkInteractionStyle >>> > vtkRenderingCore >>> > vtkRenderingOpenGL2 >>> > vtkRenderingVolume >>> > vtkRenderingVolumeOpenGL2 >>> > REQUIRED >>> > ) >>> > >>> > add_executable(TestCase WIN32 main.cpp) >>> > >>> > target_link_libraries(TestCase PUBLIC >>> > vtkCommonCore >>> > vtkCommonDataModel >>> > vtkCommonExecutionModel >>> > vtkCommonMath >>> > vtkInteractionStyle >>> > vtkRenderingCore >>> > vtkRenderingOpenGL2 >>> > vtkRenderingVolume >>> > vtkRenderingVolumeOpenGL2 >>> > ) >>> > >>> > target_include_directories(TestCase PUBLIC >>> > ${VTK_INCLUDE_DIRS} >>> > ) >>> > >>> > target_compile_definitions(TestCase PUBLIC >>> > ${VTK_DEFINITIONS} >>> > ) >>> > >>> > set_target_properties(TestCase PROPERTIES >>> > CXX_STANDARD 14 >>> > CXX_STANDARD_REQUIRED ON >>> > ) >>> > >>> >> >>> >> Elvis >>> >> >>> >>> >>> >>> Elvis >>> >>> >>> >>>> >>> >>>> >>> >>>> HTH, >>> >>>> David C. >>> >>>> >>> >>>> >>> >>>> >>> >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik >>> >>>> wrote: >>> >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik < elvis.stansvik at orexplore.com>: >>> >>>>>> Hi all, >>> >>>>>> >>> >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of VTKWidget >>> >>>>>> showing volume renderings, as well as a window with a chart. >>> >>>>> >>> >>>>> Actually, I'm able to reproduce this behavior when not using Qt at >>> >>>>> all, but just a regular render window + interactor setup with a single >>> >>>>> volume rendered. Camera interaction is nice and fast, but resizing the >>> >>>>> window, the rendering is very choppy. I'm also getting >>> >>>>> >>> >>>>> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >>> >>>>> line 1207 >>> >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not resize in >>> >>>>> the allotted time >>> >>>>> >>> >>>>> printed to the console, so it seems VTK detects what I'm seeing >>> >>>>> visually. I did not get this warning printed in the Qt + VTK app. >>> >>>>> >>> >>>>> Elvis >>> >>>>> >>> >>>>>> >>> >>>>>> Have a look at the attached screen recording. Notice how camera >>> >>>>>> interaction in both VTK render windows is nice and smooth, but when >>> >>>>>> resizing the windows, the updating of the renderings is very >>> >>>>>> slow/choppy. >>> >>>>>> >>> >>>>>> I've been trying to debug this, or at least finding a way of >>> >>>>>> mitigating it. Could it be that Qt is delivering too many resize >>> >>>>>> events? Has anyone else dealt with this problem? >>> >>>>>> >>> >>>>>> Thanks in advance for any advice, >>> >>>>>> Elvis >>> >>>>> _______________________________________________ >>> >>>>> Powered by www.kitware.com >>> >>>>> >>> >>>>> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >>> >>>>> >>> >>>>> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >>> >>>>> >>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>>>> >>> >>>>> Follow this link to subscribe/unsubscribe: >>> >>>>> 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 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: 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 rkv72 at mail.ru Thu Jun 8 12:03:24 2017 From: rkv72 at mail.ru (rkv) Date: Thu, 8 Jun 2017 09:03:24 -0700 (MST) Subject: [vtkusers] Is there MeshQuality filter for triangle side length? Message-ID: <1496937804178-5743582.post@n5.nabble.com> Hello. I need to show a triangulated 2D mesh (vtkPolyData containing triangles only) with triangles colored so that highlight triangles having side length out of some given range (let say C1 < length < C2). Could you please help to find out if there is a filter like vtkMeshQuality to create appropriate scalar array on cells? -- View this message in context: http://vtk.1045678.n5.nabble.com/Is-there-MeshQuality-filter-for-triangle-side-length-tp5743582.html Sent from the VTK - Users mailing list archive at Nabble.com. From sean at rogue-research.com Thu Jun 8 12:14:55 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 8 Jun 2017 12:14:55 -0400 Subject: [vtkusers] VTK 7.1 vtkDataArray changes, current best way to copy vtkPolyData data? Message-ID: <20170608161455.629604336@mail.rogue-research.com> Hi all, Since the vtkDataArray changes in VTK 7.1, what is the current best/fastest way to extract the points, strips, and normals from a vtkPolyData into another memory buffer? I'm always working with the same kind of data, so I'm hoping to preflight the sizes/types and then basically memcpy() the data out. Thanks, -- ____________________________________________________________ Sean McBride, B. Eng sean at rogue-research.com Rogue Research www.rogue-research.com Mac Software Developer Montr?al, Qu?bec, Canada From EZ7543 at wayne.edu Thu Jun 8 12:35:02 2017 From: EZ7543 at wayne.edu (Teek) Date: Thu, 8 Jun 2017 09:35:02 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: <1496762261179-5743559.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> Message-ID: <1496939702035-5743584.post@n5.nabble.com> Looking through the OGL sample application again, possible other question: Would I be able to bind 2 VTK renderers, one to the GL_BACK_LEFT draw buffer, and one to the GL_BACK_RIGHT draw buffer? In the mean time building VTK with the External module. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743584.html Sent from the VTK - Users mailing list archive at Nabble.com. From rickfrank at me.com Thu Jun 8 11:51:57 2017 From: rickfrank at me.com (Richard Frank) Date: Thu, 08 Jun 2017 15:51:57 +0000 (GMT) Subject: [vtkusers] =?utf-8?q?ImplicitPlaneWidget2_example_and_coordinates?= =?utf-8?q?_of_clipped_object_=28sphere=29?= Message-ID: Hi, If I try moving the sphere in the ImplicitPlaneWidget2 example, to say (100,100,100), such as at line 90 add actor->SetPosition(100,100,100); The widget doesn't work as I would expect. Can someone assist me with making this work? I would think the problem is in PlaceWidget() -? I would expect it to be placed on the bounds of the object regardless of it's position. Any assistance appreciated. Thanks Rick -------------- next part -------------- An HTML attachment was scrubbed... URL: From robert.brylka at hs-rm.de Thu Jun 8 13:34:15 2017 From: robert.brylka at hs-rm.de (rob_bob) Date: Thu, 8 Jun 2017 10:34:15 -0700 (MST) Subject: [vtkusers] QVTKWidget invisible facec, Linux Message-ID: <1496943255087-5743587.post@n5.nabble.com> Hi everyone! I'm trying to use QVTKWidget and it seems like it doesn't work properly. When I try to render some 3d objects in this widget some of the faces are not render properly. I also tried to run the standard example "RenderWindowNoUiFile" and it shows the same behavior. I have the following environment: * OS - x64 Ubuntu 16.04.5 LTS * Qt 5.9 * VTK 7.1.0 Thank you, Robert -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKWidget-invisible-facec-Linux-tp5743587.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Thu Jun 8 13:54:37 2017 From: DLRdave at aol.com (David Cole) Date: Thu, 8 Jun 2017 13:54:37 -0400 Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: <1496939702035-5743584.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> Message-ID: You should be able to write a subclass of vtkWin32OpenGLRenderWindow (or whatever **actual** vtkRenderWindow subclass gets instantiated for your app) and then provide your own overrides of the methods StereoUpdate, StereoMidpoint, and StereoRenderComplete. In the StereoUpdate method, call the parent method first, and then call camera->SetEyePosition to be at the left eye. In the StereoMidpoint method, call the parent method first, and then call camera->SetEyePosition to be at the right eye. In the StereoRenderComplete method, call the parent method first, and then call camera->SetEyePosition back to its pre-stereo rendering values. The trick with SetEyePosition calls is that they coordinates have to be in **camera** space, not world space. HTH, David C. On Thu, Jun 8, 2017 at 12:35 PM, Teek wrote: > Looking through the OGL sample application again, possible other question: > Would I be able to bind 2 VTK renderers, one to the GL_BACK_LEFT draw > buffer, and one to the GL_BACK_RIGHT draw buffer? > > In the mean time building VTK with the External module. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743584.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 patrick.oleary at kitware.com Thu Jun 8 14:58:35 2017 From: patrick.oleary at kitware.com (Patrick O'Leary) Date: Thu, 8 Jun 2017 12:58:35 -0600 Subject: [vtkusers] CFP: 3rd Annual Workshop on In Situ Infrastructures for Enabling Extreme-Scale Analysis and Visualization (ISAV 2017) Message-ID: In cooperation with SIGHPC and held in conjunction with SC16: The International Conference on High Performance Computing, Networking, Storage and Analysis, Denver, Colorado, U.S.A. ISAV 2017 - http://vis.lbl.gov/Events/ISAV-2017/ Full-day 9:00 AM - 5:30 PM Sunday November 12th, 2017 Workshop Theme The considerable interest in the HPC community regarding in situ analysis and visualization is due to several factors. First is an I/O cost savings, where data is analyzed/visualized while being generated, without first storing to a file system. Second is the potential for increased accuracy, where fine temporal sampling of transient analysis might expose some complex behavior missed in coarse temporal sampling. Third is the ability to use all available resources, CPUs and accelerators, in the computation of analysis products. The workshop brings together researchers, developers and practitioners from industry, academia, and government laboratories developing, applying, and deploying in situ methods in extreme-scale, high performance computing. The goal is to present research findings, lessons learned, and insights related to developing and applying in situ methods and infrastructure across a range of science and engineering applications in HPC environments; to discuss topics like opportunities presented by new architectures, existing infrastructure needs, requirements, and gaps, and experiences to foster and enable in situ analysis and visualization; to serve as a ?center of gravity? for researchers, practitioners, and users/consumers of in situ methods and infrastructure in the HPC space. Participation/Call for Papers and Oral Presentations We invite two types of submissions to ISAV 2017: (1) short, 4-page papers that present research results, that identify opportunities or challenges, and that present case studies/best practices for in situ methods/infrastructure in the areas of data management, analysis and visualization; (2) lightning presentation submission, consisting of a 1- or 2-page submission, for a brief oral presentation at the workshop. Short papers will appear in the workshop proceedings and will be invited to give an oral presentation of 15 to 20 minutes; lightning round submissions that are invited to present at the workshop will have author names and titles included as part of the proceedings. Submissions of both types are welcome that fall within one or more areas of interest, as follows: Areas of interest for ISAV, include, but are not limited to: In situ infrastructures * Current Systems: production quality, research prototypes * Opportunities * Gaps System resources, hardware, and emerging architectures * Enabling Hardware * Hardware and architectures that provide opportunities for in situ processing, such as burst buffers, staging computations on I/O nodes, sharing cores within a node for both simulation and in situ processing Methods/algorithms/applications/Case studies * Best practices * Analysis: feature detection, statistical methods, temporal methods, geometric methods * Visualization: information visualization, scientific visualization, time-varying methods * Data reduction/compression * Examples/case studies of solving a specific science challenge with in situ methods/infrastructure. Simulation * Integration:data modeling, software-engineering * Resilience: error detection, fault recovery * Workflows for supporting complex in situ processing pipelines Requirements * Preserve important elements * Significantly reduce the data size * Flexibility for post-processing exploration Review Process All submissions will undergo a peer-review process consisting of three reviews by experts in the field, and evaluated according to relevance to the workshop theme, technical soundness, creativity, originality, and impactfulness of method/results. Lightning round submissions will be evaluated primarily for relevance to the workshop. Submission Process Authors are invited to submit papers of at most 4 pages in PDF format, excluding references, and lightning presentations of at most 2 pages in PDF format, excluding references. Papers must be submitted in PDF format (readable by Adobe Acrobat Reader 5.0 and higher) and formatted for 8.5" x 11" (U.S. Letter). Submissions are required in the ACM format (http://www.acm.org/sigs/publications/proceedings-templates) using the sample-sigconf template and submitted via EasyChair (https://easychair.org/conferences/?conf=isav17). No changes to the margins, spacing, or font sizes as specified by the style file are allowed. Papers must be self-contained and provide the technical substance required for the program committee to evaluate their contributions. Submitted papers must be original work that has not appeared in and is not under consideration for another conference or a journal. See the ACM Prior Publication Policy for more details (http://www.acm.org/publications/policies/). Papers can be submitted at https://easychair.org/conferences/?conf=isav17. Publication in proceedings, presentation at the workshop All paper submissions that receive favorable reviews will be included as part of the workshop proceedings, which will be published through SIGHPC along with other SC17 workshop proceedings in the ACM Digital Library and IEEE Xplore. Lightning round submissions will not be included as part of the proceedings. Subject to the constraints of workshop length, some subset of the accepted publications will be invited to give a brief oral presentation at the workshop. The exact number of such presentations and their length will be determined after the review process has been completed. Timeline/Important Dates 1 August 2017 Paper submission deadline 15 September 2017 Author notification 30 September 2017 Camera ready copy due 15 October 2017 Final program posted to ISAV web page 12 November 2017 ISAV 2017 workshop at SC17 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Thu Jun 8 16:33:04 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 08 Jun 2017 20:33:04 +0000 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing Message-ID: The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0. You can find the source, data and documentation tarballs here: http://www.vtk.org/download/#candidate Changes new to this release candidate include - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules - Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version. Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag (or earlier) to ensure minimal merge conflicts with the release branch. As always, contact Kitware and the mailing lists for assistance. Thanks, VTK Maintenance Team ? -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From trevourspencer at gmail.com Fri Jun 9 02:08:23 2017 From: trevourspencer at gmail.com (Trevour Spencer) Date: Fri, 9 Jun 2017 08:08:23 +0200 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: After running and studying the tests/examples for vtkCompositeRenderManager, I realized that none of them performs the depth buffer composite operation. All of them show some sort of data parallelism. But each process either renders its own data or all data are sent to process 0, where they are rendered. And for the vtkCompositer I see no examples or tests at all. I also ran all tests for vtkCompositeZPass ( http://www.vtk.org/doc/nightly/html/c2_vtk_t_3.html#c2_vtk_t_vtkCompositeZPass), but although I expect them to show the geometry of all processes in the render window of process 0 (unless the geometry is hidden in some process using SetVisible(0)), each process's render window only shows its own geometry. I may have some misunderstanding of the vtkCompositeZPass. But do you have any example for the vtkCompositeRenderManager that shows a result like http://www.vtk.org/Wiki/VTK/MultiPass_Rendering_With_IceT, namely combine partial geometry on a few processes into a single render window? With vtkCompositeZPass or whatever, but without IceT (because the vtk-IceT-classes are still missing in VTK)? Cheers Trevour 2017-06-06 21:41 GMT+02:00 David E DeMarle : > On Tue, Jun 6, 2017 at 3:19 PM, Trevour Spencer > wrote: > >> Dear VTK experts, >> I'd like to solve a problem with visualizing datasets that are too large >> to be rendered fluently on a single node. >> We have datasets that have been distributed with PT-Scotch across ~10-100 >> nodes of a MPI cluster (each node has a GPU, but for now we are rendering >> CPU only.). A vtkUnstructuredGrid has been created on each process to >> visualize the respective fraction of the data that is stored in this >> process. So far, we have been successful. >> >> How would I create a composite image that combines all data from all >> processes? Apparently http://www.vtk.org/Wiki/VTK/Mu >> ltiPass_Rendering#Parallel_rendering gives some ideas, and the example >> http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Filters/Paralle >> l/Testing/Cxx/DistributedDataRenderPass.cxx is perfect for distributing >> the points of a small dataset across 2 processes and rendering the combined >> image. >> >> What I cannot find out with these examples is: >> How do I proceed, if the data *are* already distributed across the >> processes? I cannot gather all data on process id #0 (too large) to pass >> them to a vtkDistributedDataFilter as in the example above. How should the >> DistributedDataRenderPass.cxx be modified to run with initially distributed >> data? >> >> I appreciate your thoughts >> Trevour >> >> ps: Finding a solution without ParaView is a requirement from our IT >> side. We can't argue with them :( >> >> > boo! ;) > > See tests and examples reachable under doxygen for : > http://www.vtk.org/doc/nightly/html/classvtkCompositeRenderManager.html > and > http://www.vtk.org/doc/nightly/html/classvtkCompositer.html > for orchestrating the synchronous independent pipelines and depth > compositing respectively. > > Pretty soon you will want to swap out any VTK native compositor for IceT > since that is better optimized and tested. > For ideas on how to go about that see: > http://www.vtk.org/Wiki/VTK/MultiPass_Rendering_With_IceT > > Bit of advice - although it can be a chore to compile/install ParaView it > can also be a chore to develop something from scratch. > > good luck with either path. > cheers > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From julien.jomier at kitware.com Fri Jun 9 02:16:21 2017 From: julien.jomier at kitware.com (Julien Jomier) Date: Fri, 9 Jun 2017 08:16:21 +0200 Subject: [vtkusers] [ANN] CMake Training Course - October 9 Message-ID: <2d50072b-a62a-a58a-19a2-dd2747a38b39@kitware.com> Kitware will be holding a CMake training course on October 9, 2017 in Lyon, France. This one-day course will cover CMake, CTest, CPack and CDash. Please visit our website for more information and registration details: https://training.kitware.fr/browse/153 Note that the course will be taught in English. If you have any questions, please contact us at training at kitware.fr or email me directly. We are looking forward to seeing you in Lyon, Julien -- Kitware SAS 26 rue Louis Gu?rin 69100 Villeurbanne, France http://www.kitware.eu From elvis.stansvik at orexplore.com Fri Jun 9 02:28:09 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 9 Jun 2017 08:28:09 +0200 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: Hi Sankhesh, Nice to see rc2 out, it has a fix for a problem I reported (thanks!). I'll update our software probably later today. See below though. Den 8 juni 2017 10:33 em skrev "Sankhesh Jhaveri" < sankhesh.jhaveri at kitware.com>: > > The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0. > > You can find the source, data and documentation tarballs here: > > http://www.vtk.org/download/#candidate > > Changes new to this release candidate include > > Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules > Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine > > Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version. > > Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Just wanted to remind about https://gitlab.kitware.com/vtk/vtk/issues/17058 which I think should be a blocker for 8.0.0. I couldn't find a way to set the milestone when I reported, but I guess I just don't have the necessary bits. Just wanted to promote this issue a little, as I was afraid it was falling through the cracks. Thanks, Elvis Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag (or earlier) to ensure minimal merge conflicts with the release branch. > > As always, contact Kitware and the mailing lists for assistance. > > Thanks, > VTK Maintenance Team > > ? > -- > Sankhesh Jhaveri > Sr. Research & Development Engineer | Kitware | (518) 881-4417 > ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Jun 9 06:56:25 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 9 Jun 2017 06:56:25 -0400 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: We appreciate the reminder. We did consider that issue in rc2 but are unsure yet if a fix will be in time for 8.0.0. If not, we'll make a .1 patch release as soon as the fix is in master. Thanks On Friday, June 9, 2017, Elvis Stansvik wrote: > Hi Sankhesh, > > Nice to see rc2 out, it has a fix for a problem I reported (thanks!). I'll > update our software probably later today. > > See below though. > > Den 8 juni 2017 10:33 em skrev "Sankhesh Jhaveri" < > sankhesh.jhaveri at kitware.com > >: > > > > The VTK maintenance team is happy to announce that the second release > candidate has been tagged for VTK 8.0. > > > > You can find the source, data and documentation tarballs here: > > > > http://www.vtk.org/download/#candidate > > > > Changes new to this release candidate include > > > > Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules > > Removes deprecated classes like vtkStreamer, vtkStreamPoints and > vtkStreamLine > > > > Take a look at the VTK wiki for a complete list of API changes in v8.0.0 > over the previous version. > > > > Please try this version of VTK and report any issues to the VTK mailing > list or the bug tracker so that we can try to address them before the VTK > 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests > to ensure that they are tracked during the remainder of the 8.0 release > process. > > Just wanted to remind about > > https://gitlab.kitware.com/vtk/vtk/issues/17058 > > which I think should be a blocker for 8.0.0. I couldn't find a way to set > the milestone when I reported, but I guess I just don't have the necessary > bits. > > Just wanted to promote this issue a little, as I was afraid it was falling > through the cracks. > > Thanks, > Elvis > > Further, please base / rebase all 8.0 target branches off of the > v8.0.0.rc2 tag (or earlier) to ensure minimal merge conflicts with the > release branch. > > > > As always, contact Kitware and the mailing lists for assistance. > > > > Thanks, > > VTK Maintenance Team > > > > ? > > -- > > Sankhesh Jhaveri > > Sr. Research & Development Engineer | Kitware | (518) 881-4417 > > ? > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > -- David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Jun 9 07:16:29 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 9 Jun 2017 13:16:29 +0200 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: 2017-06-09 12:56 GMT+02:00 David E DeMarle : > We appreciate the reminder. > > We did consider that issue in rc2 but are unsure yet if a fix will be in > time for 8.0.0. If not, we'll make a .1 patch release as soon as the fix is > in master. > Alright, perfectly understandable. In fact, I don't think anyone really know yet where the bug comes from. Ken thought it might be QTBUG-60742 rearing its head, but that's not it it seems. But I hope it's a priority, since it means volume rendering is broken on the 4xxx Intel GPUs for all apps using the new QVTKOpenGLWidget. Let me know if there's something I can do to help debug it. Elvis > > Thanks > > > On Friday, June 9, 2017, Elvis Stansvik > wrote: > >> Hi Sankhesh, >> >> Nice to see rc2 out, it has a fix for a problem I reported (thanks!). >> I'll update our software probably later today. >> >> See below though. >> >> Den 8 juni 2017 10:33 em skrev "Sankhesh Jhaveri" < >> sankhesh.jhaveri at kitware.com>: >> > >> > The VTK maintenance team is happy to announce that the second release >> candidate has been tagged for VTK 8.0. >> > >> > You can find the source, data and documentation tarballs here: >> > >> > http://www.vtk.org/download/#candidate >> > >> > Changes new to this release candidate include >> > >> > Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules >> > Removes deprecated classes like vtkStreamer, vtkStreamPoints and >> vtkStreamLine >> > >> > Take a look at the VTK wiki for a complete list of API changes in >> v8.0.0 over the previous version. >> > >> > Please try this version of VTK and report any issues to the VTK mailing >> list or the bug tracker so that we can try to address them before the VTK >> 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests >> to ensure that they are tracked during the remainder of the 8.0 release >> process. >> >> Just wanted to remind about >> >> https://gitlab.kitware.com/vtk/vtk/issues/17058 >> >> which I think should be a blocker for 8.0.0. I couldn't find a way to set >> the milestone when I reported, but I guess I just don't have the necessary >> bits. >> >> Just wanted to promote this issue a little, as I was afraid it was >> falling through the cracks. >> >> Thanks, >> Elvis >> >> Further, please base / rebase all 8.0 target branches off of the >> v8.0.0.rc2 tag (or earlier) to ensure minimal merge conflicts with the >> release branch. >> > >> > As always, contact Kitware and the mailing lists for assistance. >> > >> > Thanks, >> > VTK Maintenance Team >> > >> > ? >> > -- >> > Sankhesh Jhaveri >> > Sr. Research & Development Engineer | Kitware | (518) 881-4417 >> > ? >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> > >> > > > -- > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <%28518%29%20881-4909> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vtk12af6bc42 at kant.sophonet.de Fri Jun 9 08:08:48 2017 From: vtk12af6bc42 at kant.sophonet.de (Sophonet) Date: Fri, 09 Jun 2017 14:08:48 +0200 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: Any chance that one merge request can still be included in the final release? https://gitlab.kitware.com/vtk/vtk/merge_requests/2712 Thanks, Sophonet On 2017-06-08 22:33, Sankhesh Jhaveri wrote: > The VTK maintenance team is happy to announce that the second release > candidate has been tagged for VTK 8.0. > > You can find the source, data and documentation tarballs here: > > http://www.vtk.org/download/#candidate > > Changes new to this release candidate include > > * Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules > * Removes deprecated classes like vtkStreamer, vtkStreamPoints and > vtkStreamLine > > Take a look at the VTK wiki [1] for a complete list of API changes in > v8.0.0 over the previous version. > > Please try this version of VTK and report any issues to the VTK > mailing list [2] or the bug tracker [3] so that we can try to address > them before the VTK 8.0.0 final. Kindly set the 8.0 milestone [4] on > the issues and merge requests to ensure that they are tracked during > the remainder of the 8.0 release process. Further, please base / > rebase all 8.0 target branches off of the v8.0.0.rc2 tag [5] (or > earlier) to ensure minimal merge conflicts with the release branch. > > As always, contact Kitware [6] and the mailing lists for assistance. > > Thanks, > VTK Maintenance Team > > ? > -- > > SANKHESH JHAVERI > > _SR. RESEARCH & DEVELOPMENT ENGINEER_ | KITWARE [7] | (518) 881-4417 > > ? > > Links: > ------ > [1] http://www.vtk.org/Wiki/VTK/API_Changes_7_1_0_to_8_0_0 > [2] http://www.vtk.org/mailing-lists/ > [3] https://gitlab.kitware.com/vtk/vtk/issues > [4] https://gitlab.kitware.com/vtk/vtk/milestones/6 > [5] https://gitlab.kitware.com/vtk/vtk/tags/v8.0.0.rc2 > [6] http://www.kitware.com > [7] http://www.kitware.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 dave.demarle at kitware.com Fri Jun 9 08:24:32 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 9 Jun 2017 08:24:32 -0400 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: Yes thanks. To make the release team aware of things (merge requests or issues) that are important for the release, add the version number (8.0 in this case) milestone in gitlab. Otherwise we won't necessarily know about it and will miss it. I'll add the milestone to this now. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 <(518)%20881-4909> On Fri, Jun 9, 2017 at 8:08 AM, Sophonet wrote: > Any chance that one merge request can still be included in the final > release? > > https://gitlab.kitware.com/vtk/vtk/merge_requests/2712 > > Thanks, > > Sophonet > > > On 2017-06-08 22:33, Sankhesh Jhaveri wrote: > >> The VTK maintenance team is happy to announce that the second release >> candidate has been tagged for VTK 8.0. >> >> You can find the source, data and documentation tarballs here: >> >> http://www.vtk.org/download/#candidate >> >> Changes new to this release candidate include >> >> * Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules >> * Removes deprecated classes like vtkStreamer, vtkStreamPoints and >> vtkStreamLine >> >> Take a look at the VTK wiki [1] for a complete list of API changes in >> v8.0.0 over the previous version. >> >> Please try this version of VTK and report any issues to the VTK >> mailing list [2] or the bug tracker [3] so that we can try to address >> them before the VTK 8.0.0 final. Kindly set the 8.0 milestone [4] on >> the issues and merge requests to ensure that they are tracked during >> the remainder of the 8.0 release process. Further, please base / >> rebase all 8.0 target branches off of the v8.0.0.rc2 tag [5] (or >> earlier) to ensure minimal merge conflicts with the release branch. >> >> As always, contact Kitware [6] and the mailing lists for assistance. >> >> Thanks, >> VTK Maintenance Team >> >> ? >> -- >> >> SANKHESH JHAVERI >> >> _SR. RESEARCH & DEVELOPMENT ENGINEER_ | KITWARE [7] | (518) 881-4417 >> >> ? >> >> Links: >> ------ >> [1] http://www.vtk.org/Wiki/VTK/API_Changes_7_1_0_to_8_0_0 >> [2] http://www.vtk.org/mailing-lists/ >> [3] https://gitlab.kitware.com/vtk/vtk/issues >> [4] https://gitlab.kitware.com/vtk/vtk/milestones/6 >> [5] https://gitlab.kitware.com/vtk/vtk/tags/v8.0.0.rc2 >> [6] http://www.kitware.com >> [7] http://www.kitware.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/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Fri Jun 9 08:24:57 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 9 Jun 2017 14:24:57 +0200 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: 2017-06-08 8:45 GMT+02:00 Elvis Stansvik : > > Den 8 juni 2017 8:26 fm skrev "Manfred Gratt" : > > > > > > > > On 07/06/17 14:15, Elvis Stansvik wrote: > >> > >> 2017-03-13 10:37 GMT+01:00 Elvis Stansvik >: > >>> > >>> 2017-03-13 10:32 GMT+01:00 Elvis Stansvik < > elvis.stansvik at orexplore.com>: > >>> > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik < > elvis.stansvik at orexplore.com>: > >>> >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik < > elvis.stansvik at orexplore.com>: > >>> >>> 2017-03-07 15:53 GMT+01:00 David Cole : > >>> >>>> On Windows, we make resizing our windows interactive by getting > the > >>> >>>> vtkInteractorStyle associated with the render window containing > the > >>> >>>> volume rendering, and then calling StartState at resize begin time > >>> >>>> (OnEnterSizeMove) and StopState at resize end time > (OnExitSizeMove). > >>> >>>> > >>> >>>> I suppose there may be a Qt equivalent which works on many > platforms > >>> >>>> for beginning and ending a resize action. If not, there are > definitely > >>> >>>> platform-specific hooks you can intercept to achieve smooth > resizing > >>> >>>> with this technique. > >>> >>>> > >>> >>>> Wrapping anything in a StartState/StopState pair on the > >>> >>>> vtkInteractorStyle will cause "interactive frame rate rendering" > to be > >>> >>>> in effect in between the calls. The volume rendering is not as > nice > >>> >>>> looking during interactions, but it is definitely speedier. > >>> >>> > >>> >>> Ah, I was just about to reply to myself with some further > information: > >>> >>> > >>> >>> I know that during interaction, the quality of the rendering is > >>> >>> decreased, and that this can account for some of the performance > >>> >>> discrepancy I'm seeing between camera movement vs window resize. > >>> >>> > >>> >>> But, I've experimented with disabling the quality degradation > during > >>> >>> interactions (so that the two should be on "equal footing"), and > the > >>> >>> resizing is still much more choppy than when interacting with the > >>> >>> camera. So there must be something else. > >>> >>> > >>> >>> In fact, in the screencast I showed, I wasn't using the volume > >>> >>> renderer's default built-in quality degradation during interaction. > >>> >>> I'm using my own since I've found that VTKs own is a little too > >>> >>> aggressive in degrading the quality to maintain frame rate. > >>> >> > >>> >> To illustrate, look at the attached screen recording. In this test > >>> >> case, I'm using > >>> >> > >>> >> mapper->AutoAdjustSampleDistancesOff(); > >>> >> mapper->SetSampleDistance(0.0002); > >>> >> > >>> >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic > adjustment > >>> >> of sample distance during interactions, and hardcode the sample > >>> >> distance to 0.0002. > >>> >> > >>> >> Notice how the rendering is still reasonably smooth during > >>> >> interaction, but during resize, the rendering sometimes lags with > 100s > >>> >> of milliseconds. During the resizing I was getting warnings like > >>> >> > >>> >> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/ > vtkXOpenGLRenderWindow.cxx, > >>> >> line 1207 > >>> >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not resize in > >>> >> the allotted time > >>> >> > >>> >> printed. > >>> > > >>> > No ideas where this discrepancy in refresh rate, despite automatic > >>> > adjustment of sample distance being turned off, comes from? > >>> > > >>> > At the moment I've worked around it by simply resorting to bounding > >>> > box rendering when my VTK windows are resized, since the choppy > resize > >>> > behavior was quite jarring. But that's a kludge and I'd much rather > >>> > find the real problem :/ > >>> > > >>> > Below is a minimal test case, and I'm attaching a video where I first > >>> > interact with the volume rendering, giving a smooth albeit a little > >>> > slow frame rate, and then resizing the window, which gives a jerky > and > >>> > choppy rendering. > >>> > > >>> > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. VTK > >>> > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. > >>> > > >>> > Elvis > >>> > > >>> > > >>> > main.cpp: > >>> > > >>> > #include > >>> > > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > #include > >>> > > >>> > int main(int argc, char *argv[]) > >>> > { > >>> > vtkNew colorFunction; > >>> > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); > >>> > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); > >>> > > >>> > vtkNew opacityFunction; > >>> > opacityFunction->AddPoint(0.0, 0.0); > >>> > opacityFunction->AddPoint(1.0, 0.02); > >>> > > >>> > vtkNew data; > >>> > data->SetExtent(0, 250, 0, 250, 0, 500); > >>> > data->AllocateScalars(VTK_FLOAT, 1); > >>> > std::random_device device; > >>> > std::mt19937 engine(device()); > >>> > std::uniform_real_distribution<> distribution(0, 1); > >>> > auto dataPointer = static_cast *>(data->GetScalarPointer()); > >>> > for (int i = 0; i < 250*250*500; ++i) { > >>> > *dataPointer = distribution(engine); > >>> > ++dataPointer; > >>> > } > >>> > > >>> > vtkNew mapper; > >>> > mapper->SetInputData(data.Get()); > >>> > >>> Sorry, the test case should have had > >>> > >>> mapper->AutoAdjustSampleDistancesOff(); > >>> mapper->SetSampleDistance(1); > >>> > >>> here, to show that the discrepancy is there even when automatic > >>> adjustment of sample distance is turned off. > >>> > >>> The result is the same, the rendering is keeping up much better during > >>> interaction that it is during window resize. > >>> > >>> I can understand if it's a little heavier to re-render after window > >>> resize, but not by that much, so I think something is wrong > >> > >> > >> Anybody have some more advise on this? I'm seeing the same problem in > PV 5.4. > >> > >> I had hoped that maybe the new QVTKOpenGLWidget would change things, > but it hasn't. I would really like to remove the workarounds I have in > place that degrades the rendering to bounding boxes during widget resizing. > >> > >> Elvis > > > > Hi Elvis, > > if you are using Qt5.5 and VTK the problem may be related to this bug: > > > > http://vtk.1045678.n5.nabble.com/Delayed-mouse-interaction- > due-to-event-loop-bug-in-Qt5-td5730474.html > > > > https://bugreports.qt.io/browse/QTBUG-40889 > > > > I have this problem with VTK6 and VTK7 using Ubuntu 16.04 but it was > fixed in Ubuntu 16.10 > > that has Qt5.6 which fixes the bug. Have you tried your program on a > newer version of Ubuntu? > > Sorry that my thread has gotten so long, but I mentioned QTBUG-40889 in an > earlier mail, and that's unfortunately not it. I'm well aware of that bug > and even submitted an SRU to backport the upstream fix to 16.04 (not sure > of the status of that). > > I also see the problem both with my AppImage build, which uses 5.6, and on > macOS, where I use 5.8. > I just tested on Windows 7 as well (Qt 5.6, VTK 8.0.0.rc1), and if anything, the problem is even worse than on Linux :/ Elvis > What I would expect is that resizing a window, VTK should be able to > maintain roughly the same framerate as during normal interaction (sample > distance reduction turned off). But instead, each frame is seemingly taking > a lot more time, which I think is what leads to the stuttering. > > The test case I sent earlier should show the problem, even on newer Qt > versions. > > Elvis > > > > > Manfred > > > > > > > >> > >>> > >>> > >>> Elvis > >>> > >>> > > >>> > vtkNew property; > >>> > property->SetScalarOpacity(opacityFunction.Get()); > >>> > property->SetColor(colorFunction.Get()); > >>> > > >>> > vtkNew volume; > >>> > volume->SetMapper(mapper.Get()); > >>> > volume->SetProperty(property.Get()); > >>> > > >>> > vtkNew renderer; > >>> > renderer->AddVolume(volume.Get()); > >>> > renderer->SetBackground(1.0, 1.0, 1.0); > >>> > > >>> > vtkNew window; > >>> > window->AddRenderer(renderer.Get()); > >>> > > >>> > renderer->ResetCamera(); > >>> > > >>> > vtkNew interactor; > >>> > interactor->SetRenderWindow(window.Get()); > >>> > interactor->Start(); > >>> > > >>> > return 0; > >>> > } > >>> > > >>> > > >>> > CMakeLists.txt: > >>> > > >>> > cmake_minimum_required(VERSION 3.1) > >>> > > >>> > project(TestCase) > >>> > > >>> > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) > >>> > > >>> > find_package(VTK 7.1 COMPONENTS > >>> > vtkCommonCore > >>> > vtkCommonDataModel > >>> > vtkCommonExecutionModel > >>> > vtkCommonMath > >>> > vtkInteractionStyle > >>> > vtkRenderingCore > >>> > vtkRenderingOpenGL2 > >>> > vtkRenderingVolume > >>> > vtkRenderingVolumeOpenGL2 > >>> > REQUIRED > >>> > ) > >>> > > >>> > add_executable(TestCase WIN32 main.cpp) > >>> > > >>> > target_link_libraries(TestCase PUBLIC > >>> > vtkCommonCore > >>> > vtkCommonDataModel > >>> > vtkCommonExecutionModel > >>> > vtkCommonMath > >>> > vtkInteractionStyle > >>> > vtkRenderingCore > >>> > vtkRenderingOpenGL2 > >>> > vtkRenderingVolume > >>> > vtkRenderingVolumeOpenGL2 > >>> > ) > >>> > > >>> > target_include_directories(TestCase PUBLIC > >>> > ${VTK_INCLUDE_DIRS} > >>> > ) > >>> > > >>> > target_compile_definitions(TestCase PUBLIC > >>> > ${VTK_DEFINITIONS} > >>> > ) > >>> > > >>> > set_target_properties(TestCase PROPERTIES > >>> > CXX_STANDARD 14 > >>> > CXX_STANDARD_REQUIRED ON > >>> > ) > >>> > > >>> >> > >>> >> Elvis > >>> >> > >>> >>> > >>> >>> Elvis > >>> >>> > >>> >>>> > >>> >>>> > >>> >>>> HTH, > >>> >>>> David C. > >>> >>>> > >>> >>>> > >>> >>>> > >>> >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik > >>> >>>> wrote: > >>> >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik < > elvis.stansvik at orexplore.com>: > >>> >>>>>> Hi all, > >>> >>>>>> > >>> >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of > VTKWidget > >>> >>>>>> showing volume renderings, as well as a window with a chart. > >>> >>>>> > >>> >>>>> Actually, I'm able to reproduce this behavior when not using Qt > at > >>> >>>>> all, but just a regular render window + interactor setup with a > single > >>> >>>>> volume rendered. Camera interaction is nice and fast, but > resizing the > >>> >>>>> window, the rendering is very choppy. I'm also getting > >>> >>>>> > >>> >>>>> Warning: In /buildbot/vtk7-builder/build/Rendering/OpenGL2/ > vtkXOpenGLRenderWindow.cxx, > >>> >>>>> line 1207 > >>> >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not > resize in > >>> >>>>> the allotted time > >>> >>>>> > >>> >>>>> printed to the console, so it seems VTK detects what I'm seeing > >>> >>>>> visually. I did not get this warning printed in the Qt + VTK app. > >>> >>>>> > >>> >>>>> Elvis > >>> >>>>> > >>> >>>>>> > >>> >>>>>> Have a look at the attached screen recording. Notice how camera > >>> >>>>>> interaction in both VTK render windows is nice and smooth, but > when > >>> >>>>>> resizing the windows, the updating of the renderings is very > >>> >>>>>> slow/choppy. > >>> >>>>>> > >>> >>>>>> I've been trying to debug this, or at least finding a way of > >>> >>>>>> mitigating it. Could it be that Qt is delivering too many resize > >>> >>>>>> events? Has anyone else dealt with this problem? > >>> >>>>>> > >>> >>>>>> Thanks in advance for any advice, > >>> >>>>>> Elvis > >>> >>>>> _______________________________________________ > >>> >>>>> Powered by www.kitware.com > >>> >>>>> > >>> >>>>> Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > >>> >>>>> > >>> >>>>> Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > >>> >>>>> > >>> >>>>> Search the list archives at: http://markmail.org/search/?q= > vtkusers > >>> >>>>> > >>> >>>>> Follow this link to subscribe/unsubscribe: > >>> >>>>> 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 > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > 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 Fri Jun 9 09:19:12 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 9 Jun 2017 09:19:12 -0400 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: Try this one then. Rendering/Parallel/Testing/Cxx/TestParallelRendering.cxx Like all tests grep "Command" in the log file to show the command line used to run it. Like most tests, this one can take a "-I" argument to make it start the interaction loop rather than rendering once and finishing. See in the test how each process uses the MPI rank to tell the polydatamapper what piece it and the pipeline behind it are responsible for. In this case the sphere source just makes its local section of the sphere mesh, but in the same way parallel aware readers know what files or data portions they are responsible for. Regardless of the pipeline, in the end the vtkCompositedSynchronizedRenderer and Window make sure that all ranks run at the same time and that, unlike in the other examples you found, the compositer depth composites the results and gathers them to rank 0 for display. -------------- next part -------------- An HTML attachment was scrubbed... URL: From aron.helser at kitware.com Fri Jun 9 09:34:34 2017 From: aron.helser at kitware.com (Aron Helser) Date: Fri, 9 Jun 2017 09:34:34 -0400 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: Hi Elvis, In my experience on Windows, resize is an extremely expensive operation for an OpenGL pipeline, because essentially everthing has to be rebuilt because the frame buffer changed. I do think my previous experience may be a bit out of date, but I think this issue would need some profiling evaluation or some outside advice/examples to give guidance on how to proceed. I haven't followed the twists of this thread, but is there an example (or counter example) that you have found that says resize could be fast? I'm afraid I haven't taken the time to investigate recently. I'm sorry to be a bit of a wet blanket, but I am concerned that there just may not be a fast path for resize (most games don't resize their windows :) ) Aron On Fri, Jun 9, 2017 at 8:24 AM, Elvis Stansvik wrote: > 2017-06-08 8:45 GMT+02:00 Elvis Stansvik : > >> >> Den 8 juni 2017 8:26 fm skrev "Manfred Gratt" : >> > >> > >> > >> > On 07/06/17 14:15, Elvis Stansvik wrote: >> >> >> >> 2017-03-13 10:37 GMT+01:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> >> >>> 2017-03-13 10:32 GMT+01:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> >>> 2017-03-07 15:53 GMT+01:00 David Cole : >> >>> >>>> On Windows, we make resizing our windows interactive by getting >> the >> >>> >>>> vtkInteractorStyle associated with the render window containing >> the >> >>> >>>> volume rendering, and then calling StartState at resize begin >> time >> >>> >>>> (OnEnterSizeMove) and StopState at resize end time >> (OnExitSizeMove). >> >>> >>>> >> >>> >>>> I suppose there may be a Qt equivalent which works on many >> platforms >> >>> >>>> for beginning and ending a resize action. If not, there are >> definitely >> >>> >>>> platform-specific hooks you can intercept to achieve smooth >> resizing >> >>> >>>> with this technique. >> >>> >>>> >> >>> >>>> Wrapping anything in a StartState/StopState pair on the >> >>> >>>> vtkInteractorStyle will cause "interactive frame rate rendering" >> to be >> >>> >>>> in effect in between the calls. The volume rendering is not as >> nice >> >>> >>>> looking during interactions, but it is definitely speedier. >> >>> >>> >> >>> >>> Ah, I was just about to reply to myself with some further >> information: >> >>> >>> >> >>> >>> I know that during interaction, the quality of the rendering is >> >>> >>> decreased, and that this can account for some of the performance >> >>> >>> discrepancy I'm seeing between camera movement vs window resize. >> >>> >>> >> >>> >>> But, I've experimented with disabling the quality degradation >> during >> >>> >>> interactions (so that the two should be on "equal footing"), and >> the >> >>> >>> resizing is still much more choppy than when interacting with the >> >>> >>> camera. So there must be something else. >> >>> >>> >> >>> >>> In fact, in the screencast I showed, I wasn't using the volume >> >>> >>> renderer's default built-in quality degradation during >> interaction. >> >>> >>> I'm using my own since I've found that VTKs own is a little too >> >>> >>> aggressive in degrading the quality to maintain frame rate. >> >>> >> >> >>> >> To illustrate, look at the attached screen recording. In this test >> >>> >> case, I'm using >> >>> >> >> >>> >> mapper->AutoAdjustSampleDistancesOff(); >> >>> >> mapper->SetSampleDistance(0.0002); >> >>> >> >> >>> >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic >> adjustment >> >>> >> of sample distance during interactions, and hardcode the sample >> >>> >> distance to 0.0002. >> >>> >> >> >>> >> Notice how the rendering is still reasonably smooth during >> >>> >> interaction, but during resize, the rendering sometimes lags with >> 100s >> >>> >> of milliseconds. During the resizing I was getting warnings like >> >>> >> >> >>> >> Warning: In /buildbot/vtk7-builder/build/R >> endering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >> >>> >> line 1207 >> >>> >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not resize >> in >> >>> >> the allotted time >> >>> >> >> >>> >> printed. >> >>> > >> >>> > No ideas where this discrepancy in refresh rate, despite automatic >> >>> > adjustment of sample distance being turned off, comes from? >> >>> > >> >>> > At the moment I've worked around it by simply resorting to bounding >> >>> > box rendering when my VTK windows are resized, since the choppy >> resize >> >>> > behavior was quite jarring. But that's a kludge and I'd much rather >> >>> > find the real problem :/ >> >>> > >> >>> > Below is a minimal test case, and I'm attaching a video where I >> first >> >>> > interact with the volume rendering, giving a smooth albeit a little >> >>> > slow frame rate, and then resizing the window, which gives a jerky >> and >> >>> > choppy rendering. >> >>> > >> >>> > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. VTK >> >>> > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. >> >>> > >> >>> > Elvis >> >>> > >> >>> > >> >>> > main.cpp: >> >>> > >> >>> > #include >> >>> > >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > #include >> >>> > >> >>> > int main(int argc, char *argv[]) >> >>> > { >> >>> > vtkNew colorFunction; >> >>> > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); >> >>> > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); >> >>> > >> >>> > vtkNew opacityFunction; >> >>> > opacityFunction->AddPoint(0.0, 0.0); >> >>> > opacityFunction->AddPoint(1.0, 0.02); >> >>> > >> >>> > vtkNew data; >> >>> > data->SetExtent(0, 250, 0, 250, 0, 500); >> >>> > data->AllocateScalars(VTK_FLOAT, 1); >> >>> > std::random_device device; >> >>> > std::mt19937 engine(device()); >> >>> > std::uniform_real_distribution<> distribution(0, 1); >> >>> > auto dataPointer = static_cast> *>(data->GetScalarPointer()); >> >>> > for (int i = 0; i < 250*250*500; ++i) { >> >>> > *dataPointer = distribution(engine); >> >>> > ++dataPointer; >> >>> > } >> >>> > >> >>> > vtkNew mapper; >> >>> > mapper->SetInputData(data.Get()); >> >>> >> >>> Sorry, the test case should have had >> >>> >> >>> mapper->AutoAdjustSampleDistancesOff(); >> >>> mapper->SetSampleDistance(1); >> >>> >> >>> here, to show that the discrepancy is there even when automatic >> >>> adjustment of sample distance is turned off. >> >>> >> >>> The result is the same, the rendering is keeping up much better during >> >>> interaction that it is during window resize. >> >>> >> >>> I can understand if it's a little heavier to re-render after window >> >>> resize, but not by that much, so I think something is wrong >> >> >> >> >> >> Anybody have some more advise on this? I'm seeing the same problem in >> PV 5.4. >> >> >> >> I had hoped that maybe the new QVTKOpenGLWidget would change things, >> but it hasn't. I would really like to remove the workarounds I have in >> place that degrades the rendering to bounding boxes during widget resizing. >> >> >> >> Elvis >> > >> > Hi Elvis, >> > if you are using Qt5.5 and VTK the problem may be related to this bug: >> > >> > http://vtk.1045678.n5.nabble.com/Delayed-mouse-interaction-d >> ue-to-event-loop-bug-in-Qt5-td5730474.html >> > >> > https://bugreports.qt.io/browse/QTBUG-40889 >> > >> > I have this problem with VTK6 and VTK7 using Ubuntu 16.04 but it was >> fixed in Ubuntu 16.10 >> > that has Qt5.6 which fixes the bug. Have you tried your program on a >> newer version of Ubuntu? >> >> Sorry that my thread has gotten so long, but I mentioned QTBUG-40889 in >> an earlier mail, and that's unfortunately not it. I'm well aware of that >> bug and even submitted an SRU to backport the upstream fix to 16.04 (not >> sure of the status of that). >> >> I also see the problem both with my AppImage build, which uses 5.6, and >> on macOS, where I use 5.8. >> > I just tested on Windows 7 as well (Qt 5.6, VTK 8.0.0.rc1), and if > anything, the problem is even worse than on Linux :/ > > Elvis > >> What I would expect is that resizing a window, VTK should be able to >> maintain roughly the same framerate as during normal interaction (sample >> distance reduction turned off). But instead, each frame is seemingly taking >> a lot more time, which I think is what leads to the stuttering. >> >> The test case I sent earlier should show the problem, even on newer Qt >> versions. >> >> Elvis >> >> > >> > Manfred >> > >> > >> > >> >> >> >>> >> >>> >> >>> Elvis >> >>> >> >>> > >> >>> > vtkNew property; >> >>> > property->SetScalarOpacity(opacityFunction.Get()); >> >>> > property->SetColor(colorFunction.Get()); >> >>> > >> >>> > vtkNew volume; >> >>> > volume->SetMapper(mapper.Get()); >> >>> > volume->SetProperty(property.Get()); >> >>> > >> >>> > vtkNew renderer; >> >>> > renderer->AddVolume(volume.Get()); >> >>> > renderer->SetBackground(1.0, 1.0, 1.0); >> >>> > >> >>> > vtkNew window; >> >>> > window->AddRenderer(renderer.Get()); >> >>> > >> >>> > renderer->ResetCamera(); >> >>> > >> >>> > vtkNew interactor; >> >>> > interactor->SetRenderWindow(window.Get()); >> >>> > interactor->Start(); >> >>> > >> >>> > return 0; >> >>> > } >> >>> > >> >>> > >> >>> > CMakeLists.txt: >> >>> > >> >>> > cmake_minimum_required(VERSION 3.1) >> >>> > >> >>> > project(TestCase) >> >>> > >> >>> > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) >> >>> > >> >>> > find_package(VTK 7.1 COMPONENTS >> >>> > vtkCommonCore >> >>> > vtkCommonDataModel >> >>> > vtkCommonExecutionModel >> >>> > vtkCommonMath >> >>> > vtkInteractionStyle >> >>> > vtkRenderingCore >> >>> > vtkRenderingOpenGL2 >> >>> > vtkRenderingVolume >> >>> > vtkRenderingVolumeOpenGL2 >> >>> > REQUIRED >> >>> > ) >> >>> > >> >>> > add_executable(TestCase WIN32 main.cpp) >> >>> > >> >>> > target_link_libraries(TestCase PUBLIC >> >>> > vtkCommonCore >> >>> > vtkCommonDataModel >> >>> > vtkCommonExecutionModel >> >>> > vtkCommonMath >> >>> > vtkInteractionStyle >> >>> > vtkRenderingCore >> >>> > vtkRenderingOpenGL2 >> >>> > vtkRenderingVolume >> >>> > vtkRenderingVolumeOpenGL2 >> >>> > ) >> >>> > >> >>> > target_include_directories(TestCase PUBLIC >> >>> > ${VTK_INCLUDE_DIRS} >> >>> > ) >> >>> > >> >>> > target_compile_definitions(TestCase PUBLIC >> >>> > ${VTK_DEFINITIONS} >> >>> > ) >> >>> > >> >>> > set_target_properties(TestCase PROPERTIES >> >>> > CXX_STANDARD 14 >> >>> > CXX_STANDARD_REQUIRED ON >> >>> > ) >> >>> > >> >>> >> >> >>> >> Elvis >> >>> >> >> >>> >>> >> >>> >>> Elvis >> >>> >>> >> >>> >>>> >> >>> >>>> >> >>> >>>> HTH, >> >>> >>>> David C. >> >>> >>>> >> >>> >>>> >> >>> >>>> >> >>> >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik >> >>> >>>> wrote: >> >>> >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> >>>>>> Hi all, >> >>> >>>>>> >> >>> >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of >> VTKWidget >> >>> >>>>>> showing volume renderings, as well as a window with a chart. >> >>> >>>>> >> >>> >>>>> Actually, I'm able to reproduce this behavior when not using Qt >> at >> >>> >>>>> all, but just a regular render window + interactor setup with a >> single >> >>> >>>>> volume rendered. Camera interaction is nice and fast, but >> resizing the >> >>> >>>>> window, the rendering is very choppy. I'm also getting >> >>> >>>>> >> >>> >>>>> Warning: In /buildbot/vtk7-builder/build/R >> endering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >> >>> >>>>> line 1207 >> >>> >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not >> resize in >> >>> >>>>> the allotted time >> >>> >>>>> >> >>> >>>>> printed to the console, so it seems VTK detects what I'm seeing >> >>> >>>>> visually. I did not get this warning printed in the Qt + VTK >> app. >> >>> >>>>> >> >>> >>>>> Elvis >> >>> >>>>> >> >>> >>>>>> >> >>> >>>>>> Have a look at the attached screen recording. Notice how camera >> >>> >>>>>> interaction in both VTK render windows is nice and smooth, but >> when >> >>> >>>>>> resizing the windows, the updating of the renderings is very >> >>> >>>>>> slow/choppy. >> >>> >>>>>> >> >>> >>>>>> I've been trying to debug this, or at least finding a way of >> >>> >>>>>> mitigating it. Could it be that Qt is delivering too many >> resize >> >>> >>>>>> events? Has anyone else dealt with this problem? >> >>> >>>>>> >> >>> >>>>>> Thanks in advance for any advice, >> >>> >>>>>> Elvis >> >>> >>>>> _______________________________________________ >> >>> >>>>> Powered by www.kitware.com >> >>> >>>>> >> >>> >>>>> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >>> >>>>> >> >>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >>> >>>>> >> >>> >>>>> Search the list archives at: http://markmail.org/search/?q= >> vtkusers >> >>> >>>>> >> >>> >>>>> Follow this link to subscribe/unsubscribe: >> >>> >>>>> 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/mail >> man/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 >> > >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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.lonie at kitware.com Fri Jun 9 09:42:12 2017 From: david.lonie at kitware.com (David Lonie) Date: Fri, 9 Jun 2017 09:42:12 -0400 Subject: [vtkusers] VTK 7.1 vtkDataArray changes, current best way to copy vtkPolyData data? In-Reply-To: <20170608161455.629604336@mail.rogue-research.com> References: <20170608161455.629604336@mail.rogue-research.com> Message-ID: If you just want to dump the data from any vtkDataArray into a memory buffer using AOS ordering (e.g. typical VTK memory layout with coherent tuples), something like: vtkDataArray *array = ...; int bufSize = array->GetNumberOfValues() * array->GetDataTypeSize(); void *buffer = malloc(bufSize); array->ExportToVoidPointer(buffer); will be the most efficient way to do this. HTH, Dave On Thu, Jun 8, 2017 at 12:14 PM, Sean McBride wrote: > Hi all, > > Since the vtkDataArray changes in VTK 7.1, what is the current best/fastest way to extract the points, strips, and normals from a vtkPolyData into another memory buffer? > > I'm always working with the same kind of data, so I'm hoping to preflight the sizes/types and then basically memcpy() the data out. > > Thanks, > > -- > ____________________________________________________________ > Sean McBride, B. Eng sean at rogue-research.com > Rogue Research www.rogue-research.com > Mac Software Developer Montr?al, Qu?bec, Canada > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: 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 elvis.stansvik at orexplore.com Fri Jun 9 10:05:18 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Fri, 9 Jun 2017 16:05:18 +0200 Subject: [vtkusers] Advice on mitigating choppy resize with Qt 5 + VTK 7.1 In-Reply-To: References: Message-ID: 2017-06-09 15:34 GMT+02:00 Aron Helser : > Hi Elvis, > In my experience on Windows, resize is an extremely expensive operation > for an OpenGL pipeline, because essentially everthing has to be rebuilt > because the frame buffer changed. I do think my previous experience may be > a bit out of date, but I think this issue would need some profiling > evaluation or some outside advice/examples to give guidance on how to > proceed. > > I haven't followed the twists of this thread, but is there an example (or > counter example) that you have found that says resize could be fast? I'm > afraid I haven't taken the time to investigate recently. > > I'm sorry to be a bit of a wet blanket, but I am concerned that there just > may not be a fast path for resize (most games don't resize their windows :) > ) > Ah, no, I don't have a counter example. It's entirely possible that this is just me naively thinking that things should be much better :) I don't have much experience with OpenGL. You mention Windows specifically though. Do you mean that things should be better under Linux in general? Because resize is choppy on Linux as well here (just to a slightly lesser extent). In one of my earlier mails I gave a minimal test case. It was simple application that just renders a volume, and a video showing how the rendering lagged behind the resizing quite a lot. Elvis > Aron > > On Fri, Jun 9, 2017 at 8:24 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> 2017-06-08 8:45 GMT+02:00 Elvis Stansvik : >> >>> >>> Den 8 juni 2017 8:26 fm skrev "Manfred Gratt" : >>> > >>> > >>> > >>> > On 07/06/17 14:15, Elvis Stansvik wrote: >>> >> >>> >> 2017-03-13 10:37 GMT+01:00 Elvis Stansvik < >>> elvis.stansvik at orexplore.com>: >>> >>> >>> >>> 2017-03-13 10:32 GMT+01:00 Elvis Stansvik < >>> elvis.stansvik at orexplore.com>: >>> >>> > 2017-03-07 16:10 GMT+01:00 Elvis Stansvik < >>> elvis.stansvik at orexplore.com>: >>> >>> >> 2017-03-07 15:58 GMT+01:00 Elvis Stansvik < >>> elvis.stansvik at orexplore.com>: >>> >>> >>> 2017-03-07 15:53 GMT+01:00 David Cole : >>> >>> >>>> On Windows, we make resizing our windows interactive by getting >>> the >>> >>> >>>> vtkInteractorStyle associated with the render window containing >>> the >>> >>> >>>> volume rendering, and then calling StartState at resize begin >>> time >>> >>> >>>> (OnEnterSizeMove) and StopState at resize end time >>> (OnExitSizeMove). >>> >>> >>>> >>> >>> >>>> I suppose there may be a Qt equivalent which works on many >>> platforms >>> >>> >>>> for beginning and ending a resize action. If not, there are >>> definitely >>> >>> >>>> platform-specific hooks you can intercept to achieve smooth >>> resizing >>> >>> >>>> with this technique. >>> >>> >>>> >>> >>> >>>> Wrapping anything in a StartState/StopState pair on the >>> >>> >>>> vtkInteractorStyle will cause "interactive frame rate >>> rendering" to be >>> >>> >>>> in effect in between the calls. The volume rendering is not as >>> nice >>> >>> >>>> looking during interactions, but it is definitely speedier. >>> >>> >>> >>> >>> >>> Ah, I was just about to reply to myself with some further >>> information: >>> >>> >>> >>> >>> >>> I know that during interaction, the quality of the rendering is >>> >>> >>> decreased, and that this can account for some of the performance >>> >>> >>> discrepancy I'm seeing between camera movement vs window resize. >>> >>> >>> >>> >>> >>> But, I've experimented with disabling the quality degradation >>> during >>> >>> >>> interactions (so that the two should be on "equal footing"), and >>> the >>> >>> >>> resizing is still much more choppy than when interacting with the >>> >>> >>> camera. So there must be something else. >>> >>> >>> >>> >>> >>> In fact, in the screencast I showed, I wasn't using the volume >>> >>> >>> renderer's default built-in quality degradation during >>> interaction. >>> >>> >>> I'm using my own since I've found that VTKs own is a little too >>> >>> >>> aggressive in degrading the quality to maintain frame rate. >>> >>> >> >>> >>> >> To illustrate, look at the attached screen recording. In this test >>> >>> >> case, I'm using >>> >>> >> >>> >>> >> mapper->AutoAdjustSampleDistancesOff(); >>> >>> >> mapper->SetSampleDistance(0.0002); >>> >>> >> >>> >>> >> on my vtkGPUVolumeRayCastMapper, to turn off the automatic >>> adjustment >>> >>> >> of sample distance during interactions, and hardcode the sample >>> >>> >> distance to 0.0002. >>> >>> >> >>> >>> >> Notice how the rendering is still reasonably smooth during >>> >>> >> interaction, but during resize, the rendering sometimes lags with >>> 100s >>> >>> >> of milliseconds. During the resizing I was getting warnings like >>> >>> >> >>> >>> >> Warning: In /buildbot/vtk7-builder/build/R >>> endering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >>> >>> >> line 1207 >>> >>> >> vtkXOpenGLRenderWindow (0x2a629d0): warning window did not resize >>> in >>> >>> >> the allotted time >>> >>> >> >>> >>> >> printed. >>> >>> > >>> >>> > No ideas where this discrepancy in refresh rate, despite automatic >>> >>> > adjustment of sample distance being turned off, comes from? >>> >>> > >>> >>> > At the moment I've worked around it by simply resorting to bounding >>> >>> > box rendering when my VTK windows are resized, since the choppy >>> resize >>> >>> > behavior was quite jarring. But that's a kludge and I'd much rather >>> >>> > find the real problem :/ >>> >>> > >>> >>> > Below is a minimal test case, and I'm attaching a video where I >>> first >>> >>> > interact with the volume rendering, giving a smooth albeit a little >>> >>> > slow frame rate, and then resizing the window, which gives a jerky >>> and >>> >>> > choppy rendering. >>> >>> > >>> >>> > This was on a Thinkpad T440s laptop with Intel HD 4400 graphics. >>> VTK >>> >>> > 7.1 and Qt 5.5.1 running on Kubuntu 16.04. >>> >>> > >>> >>> > Elvis >>> >>> > >>> >>> > >>> >>> > main.cpp: >>> >>> > >>> >>> > #include >>> >>> > >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > #include >>> >>> > >>> >>> > int main(int argc, char *argv[]) >>> >>> > { >>> >>> > vtkNew colorFunction; >>> >>> > colorFunction->AddRGBPoint(0.0, 0.0, 0.0, 0.0); >>> >>> > colorFunction->AddRGBPoint(1.0, 0.0, 0.0, 0.0); >>> >>> > >>> >>> > vtkNew opacityFunction; >>> >>> > opacityFunction->AddPoint(0.0, 0.0); >>> >>> > opacityFunction->AddPoint(1.0, 0.02); >>> >>> > >>> >>> > vtkNew data; >>> >>> > data->SetExtent(0, 250, 0, 250, 0, 500); >>> >>> > data->AllocateScalars(VTK_FLOAT, 1); >>> >>> > std::random_device device; >>> >>> > std::mt19937 engine(device()); >>> >>> > std::uniform_real_distribution<> distribution(0, 1); >>> >>> > auto dataPointer = static_cast>> *>(data->GetScalarPointer()); >>> >>> > for (int i = 0; i < 250*250*500; ++i) { >>> >>> > *dataPointer = distribution(engine); >>> >>> > ++dataPointer; >>> >>> > } >>> >>> > >>> >>> > vtkNew mapper; >>> >>> > mapper->SetInputData(data.Get()); >>> >>> >>> >>> Sorry, the test case should have had >>> >>> >>> >>> mapper->AutoAdjustSampleDistancesOff(); >>> >>> mapper->SetSampleDistance(1); >>> >>> >>> >>> here, to show that the discrepancy is there even when automatic >>> >>> adjustment of sample distance is turned off. >>> >>> >>> >>> The result is the same, the rendering is keeping up much better >>> during >>> >>> interaction that it is during window resize. >>> >>> >>> >>> I can understand if it's a little heavier to re-render after window >>> >>> resize, but not by that much, so I think something is wrong >>> >> >>> >> >>> >> Anybody have some more advise on this? I'm seeing the same problem in >>> PV 5.4. >>> >> >>> >> I had hoped that maybe the new QVTKOpenGLWidget would change things, >>> but it hasn't. I would really like to remove the workarounds I have in >>> place that degrades the rendering to bounding boxes during widget resizing. >>> >> >>> >> Elvis >>> > >>> > Hi Elvis, >>> > if you are using Qt5.5 and VTK the problem may be related to this bug: >>> > >>> > http://vtk.1045678.n5.nabble.com/Delayed-mouse-interaction-d >>> ue-to-event-loop-bug-in-Qt5-td5730474.html >>> > >>> > https://bugreports.qt.io/browse/QTBUG-40889 >>> > >>> > I have this problem with VTK6 and VTK7 using Ubuntu 16.04 but it was >>> fixed in Ubuntu 16.10 >>> > that has Qt5.6 which fixes the bug. Have you tried your program on a >>> newer version of Ubuntu? >>> >>> Sorry that my thread has gotten so long, but I mentioned QTBUG-40889 in >>> an earlier mail, and that's unfortunately not it. I'm well aware of that >>> bug and even submitted an SRU to backport the upstream fix to 16.04 (not >>> sure of the status of that). >>> >>> I also see the problem both with my AppImage build, which uses 5.6, and >>> on macOS, where I use 5.8. >>> >> I just tested on Windows 7 as well (Qt 5.6, VTK 8.0.0.rc1), and if >> anything, the problem is even worse than on Linux :/ >> >> Elvis >> >>> What I would expect is that resizing a window, VTK should be able to >>> maintain roughly the same framerate as during normal interaction (sample >>> distance reduction turned off). But instead, each frame is seemingly taking >>> a lot more time, which I think is what leads to the stuttering. >>> >>> The test case I sent earlier should show the problem, even on newer Qt >>> versions. >>> >>> Elvis >>> >>> > >>> > Manfred >>> > >>> > >>> > >>> >> >>> >>> >>> >>> >>> >>> Elvis >>> >>> >>> >>> > >>> >>> > vtkNew property; >>> >>> > property->SetScalarOpacity(opacityFunction.Get()); >>> >>> > property->SetColor(colorFunction.Get()); >>> >>> > >>> >>> > vtkNew volume; >>> >>> > volume->SetMapper(mapper.Get()); >>> >>> > volume->SetProperty(property.Get()); >>> >>> > >>> >>> > vtkNew renderer; >>> >>> > renderer->AddVolume(volume.Get()); >>> >>> > renderer->SetBackground(1.0, 1.0, 1.0); >>> >>> > >>> >>> > vtkNew window; >>> >>> > window->AddRenderer(renderer.Get()); >>> >>> > >>> >>> > renderer->ResetCamera(); >>> >>> > >>> >>> > vtkNew interactor; >>> >>> > interactor->SetRenderWindow(window.Get()); >>> >>> > interactor->Start(); >>> >>> > >>> >>> > return 0; >>> >>> > } >>> >>> > >>> >>> > >>> >>> > CMakeLists.txt: >>> >>> > >>> >>> > cmake_minimum_required(VERSION 3.1) >>> >>> > >>> >>> > project(TestCase) >>> >>> > >>> >>> > set(CMAKE_PREFIX_PATH ${CMAKE_PREFIX_PATH} /opt/VTK7) >>> >>> > >>> >>> > find_package(VTK 7.1 COMPONENTS >>> >>> > vtkCommonCore >>> >>> > vtkCommonDataModel >>> >>> > vtkCommonExecutionModel >>> >>> > vtkCommonMath >>> >>> > vtkInteractionStyle >>> >>> > vtkRenderingCore >>> >>> > vtkRenderingOpenGL2 >>> >>> > vtkRenderingVolume >>> >>> > vtkRenderingVolumeOpenGL2 >>> >>> > REQUIRED >>> >>> > ) >>> >>> > >>> >>> > add_executable(TestCase WIN32 main.cpp) >>> >>> > >>> >>> > target_link_libraries(TestCase PUBLIC >>> >>> > vtkCommonCore >>> >>> > vtkCommonDataModel >>> >>> > vtkCommonExecutionModel >>> >>> > vtkCommonMath >>> >>> > vtkInteractionStyle >>> >>> > vtkRenderingCore >>> >>> > vtkRenderingOpenGL2 >>> >>> > vtkRenderingVolume >>> >>> > vtkRenderingVolumeOpenGL2 >>> >>> > ) >>> >>> > >>> >>> > target_include_directories(TestCase PUBLIC >>> >>> > ${VTK_INCLUDE_DIRS} >>> >>> > ) >>> >>> > >>> >>> > target_compile_definitions(TestCase PUBLIC >>> >>> > ${VTK_DEFINITIONS} >>> >>> > ) >>> >>> > >>> >>> > set_target_properties(TestCase PROPERTIES >>> >>> > CXX_STANDARD 14 >>> >>> > CXX_STANDARD_REQUIRED ON >>> >>> > ) >>> >>> > >>> >>> >> >>> >>> >> Elvis >>> >>> >> >>> >>> >>> >>> >>> >>> Elvis >>> >>> >>> >>> >>> >>>> >>> >>> >>>> >>> >>> >>>> HTH, >>> >>> >>>> David C. >>> >>> >>>> >>> >>> >>>> >>> >>> >>>> >>> >>> >>>> On Tue, Mar 7, 2017 at 9:33 AM, Elvis Stansvik >>> >>> >>>> wrote: >>> >>> >>>>> 2017-03-07 15:17 GMT+01:00 Elvis Stansvik < >>> elvis.stansvik at orexplore.com>: >>> >>> >>>>>> Hi all, >>> >>> >>>>>> >>> >>> >>>>>> I'm using Qt 5.5.1 and VTK 7.1. The program has a couple of >>> VTKWidget >>> >>> >>>>>> showing volume renderings, as well as a window with a chart. >>> >>> >>>>> >>> >>> >>>>> Actually, I'm able to reproduce this behavior when not using >>> Qt at >>> >>> >>>>> all, but just a regular render window + interactor setup with >>> a single >>> >>> >>>>> volume rendered. Camera interaction is nice and fast, but >>> resizing the >>> >>> >>>>> window, the rendering is very choppy. I'm also getting >>> >>> >>>>> >>> >>> >>>>> Warning: In /buildbot/vtk7-builder/build/R >>> endering/OpenGL2/vtkXOpenGLRenderWindow.cxx, >>> >>> >>>>> line 1207 >>> >>> >>>>> vtkXOpenGLRenderWindow (0x1353a10): warning window did not >>> resize in >>> >>> >>>>> the allotted time >>> >>> >>>>> >>> >>> >>>>> printed to the console, so it seems VTK detects what I'm seeing >>> >>> >>>>> visually. I did not get this warning printed in the Qt + VTK >>> app. >>> >>> >>>>> >>> >>> >>>>> Elvis >>> >>> >>>>> >>> >>> >>>>>> >>> >>> >>>>>> Have a look at the attached screen recording. Notice how >>> camera >>> >>> >>>>>> interaction in both VTK render windows is nice and smooth, >>> but when >>> >>> >>>>>> resizing the windows, the updating of the renderings is very >>> >>> >>>>>> slow/choppy. >>> >>> >>>>>> >>> >>> >>>>>> I've been trying to debug this, or at least finding a way of >>> >>> >>>>>> mitigating it. Could it be that Qt is delivering too many >>> resize >>> >>> >>>>>> events? Has anyone else dealt with this problem? >>> >>> >>>>>> >>> >>> >>>>>> Thanks in advance for any advice, >>> >>> >>>>>> Elvis >>> >>> >>>>> _______________________________________________ >>> >>> >>>>> Powered by www.kitware.com >>> >>> >>>>> >>> >>> >>>>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> >>>>> >>> >>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> >>>>> >>> >>> >>>>> Search the list archives at: http://markmail.org/search/?q= >>> vtkusers >>> >>> >>>>> >>> >>> >>>>> Follow this link to subscribe/unsubscribe: >>> >>> >>>>> 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 >>> > >>> > >>> > _______________________________________________ >>> > Powered by www.kitware.com >>> > >>> > Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> > >>> > Please keep messages on-topic and check the VTK FAQ at: >>> 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 trevourspencer at gmail.com Fri Jun 9 12:01:06 2017 From: trevourspencer at gmail.com (Trevour Spencer) Date: Fri, 9 Jun 2017 18:01:06 +0200 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: Thank you for another suggestion. Have you run it, and does it work for you? I wonder, If I don't understand what you are recommending, or if my setup is broken and doesn't work as expected, or if the composite renderer just isn't supposed to work as I think it should. I can show you the result from Rendering/Parallel/Testing/Cxx/TestParallelRendering.cxx in the attachment. I started it as "mpirun -n 3 ./TestParallelRendering -I" and took a screenshot of the three windows. What I need is a full sphere in the first window (process 0), made of the red, blue and green segments. But again, only the red part appears in the first window, as in the previous examples that I have tested. Please confirm, whether you have the same result. Cheers Trevour 2017-06-09 15:19 GMT+02:00 David E DeMarle : > Try this one then. Rendering/Parallel/Testing/ > Cxx/TestParallelRendering.cxx > Like all tests grep "Command" in the log file to show the command line > used to run it. Like most tests, this one can take a "-I" argument to make > it start the interaction loop rather than rendering once and finishing. > > See in the test how each process uses the MPI rank to tell the > polydatamapper what piece it and the pipeline behind it are responsible > for. In this case the sphere source just makes its local section of the > sphere mesh, but in the same way parallel aware readers know what files or > data portions they are responsible for. Regardless of the pipeline, in the > end the vtkCompositedSynchronizedRenderer and Window make sure that all > ranks run at the same time and that, unlike in the other examples you > found, the compositer depth composites the results and gathers them to rank > 0 for display. > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: sphere-3pieces.png Type: image/png Size: 83731 bytes Desc: not available URL: From dave.demarle at kitware.com Fri Jun 9 12:06:36 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 9 Jun 2017 12:06:36 -0400 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: Yes it works on my end and on the dashboards: https://open.cdash.org/queryTests.php?project=VTK&date=2017-06-09&filtercount=1&showfilters=1&field1=testname&compare1=63&value1=TestParallelRendering >From my desktop: [image: Inline image 1] David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Fri, Jun 9, 2017 at 12:01 PM, Trevour Spencer wrote: > Thank you for another suggestion. Have you run it, and does it work for > you? > > I wonder, If I don't understand what you are recommending, or if my setup > is broken and doesn't work as expected, or if the composite renderer just > isn't supposed to work as I think it should. > > I can show you the result from Rendering/Parallel/Testing/Cxx/TestParallelRendering.cxx > in the attachment. I started it as "mpirun -n 3 ./TestParallelRendering -I" > and took a screenshot of the three windows. What I need is a full sphere in > the first window (process 0), made of the red, blue and green segments. But > again, only the red part appears in the first window, as in the previous > examples that I have tested. > > Please confirm, whether you have the same result. > > Cheers > Trevour > > 2017-06-09 15:19 GMT+02:00 David E DeMarle : > >> Try this one then. Rendering/Parallel/Testing/Cxx >> /TestParallelRendering.cxx >> Like all tests grep "Command" in the log file to show the command line >> used to run it. Like most tests, this one can take a "-I" argument to make >> it start the interaction loop rather than rendering once and finishing. >> >> See in the test how each process uses the MPI rank to tell the >> polydatamapper what piece it and the pipeline behind it are responsible >> for. In this case the sphere source just makes its local section of the >> sphere mesh, but in the same way parallel aware readers know what files or >> data portions they are responsible for. Regardless of the pipeline, in the >> end the vtkCompositedSynchronizedRenderer and Window make sure that all >> ranks run at the same time and that, unlike in the other examples you >> found, the compositer depth composites the results and gathers them to rank >> 0 for display. >> >> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 58300 bytes Desc: not available URL: From trevourspencer at gmail.com Fri Jun 9 12:45:59 2017 From: trevourspencer at gmail.com (Trevour Spencer) Date: Fri, 9 Jun 2017 18:45:59 +0200 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: Well, thanks, that also explains my problems with the other examples, I guess. I have run these on a machine with Mesa 11.2.2 CPU rendering. Are there any known problems with software rendering? I'll test with a different VTK installation next week and try to get an idea where the bug comes from. The example at http://www.vtk.org/Wiki/VTK/MultiPass_Rendering_With_IceT, compiled against a ParaView 5.3.0 installation with the same Mesa runs fine though (same result as yours). 2017-06-09 18:06 GMT+02:00 David E DeMarle : > Yes it works on my end and on the dashboards: https://open.cdash.org/ > queryTests.php?project=VTK&date=2017-06-09&filtercount=1& > showfilters=1&field1=testname&compare1=63&value1=TestParallelRendering > > From my desktop: > > [image: Inline image 1] > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 <(518)%20881-4909> > > On Fri, Jun 9, 2017 at 12:01 PM, Trevour Spencer > wrote: > >> Thank you for another suggestion. Have you run it, and does it work for >> you? >> >> I wonder, If I don't understand what you are recommending, or if my setup >> is broken and doesn't work as expected, or if the composite renderer just >> isn't supposed to work as I think it should. >> >> I can show you the result from Rendering/Parallel/Testing/ >> Cxx/TestParallelRendering.cxx in the attachment. I started it as "mpirun >> -n 3 ./TestParallelRendering -I" and took a screenshot of the three >> windows. What I need is a full sphere in the first window (process 0), made >> of the red, blue and green segments. But again, only the red part appears >> in the first window, as in the previous examples that I have tested. >> >> Please confirm, whether you have the same result. >> >> Cheers >> Trevour >> >> 2017-06-09 15:19 GMT+02:00 David E DeMarle : >> >>> Try this one then. Rendering/Parallel/Testing/Cxx >>> /TestParallelRendering.cxx >>> Like all tests grep "Command" in the log file to show the command line >>> used to run it. Like most tests, this one can take a "-I" argument to make >>> it start the interaction loop rather than rendering once and finishing. >>> >>> See in the test how each process uses the MPI rank to tell the >>> polydatamapper what piece it and the pipeline behind it are responsible >>> for. In this case the sphere source just makes its local section of the >>> sphere mesh, but in the same way parallel aware readers know what files or >>> data portions they are responsible for. Regardless of the pipeline, in the >>> end the vtkCompositedSynchronizedRenderer and Window make sure that all >>> ranks run at the same time and that, unlike in the other examples you >>> found, the compositer depth composites the results and gathers them to rank >>> 0 for display. >>> >>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 58300 bytes Desc: not available URL: From dave.demarle at kitware.com Fri Jun 9 15:08:18 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 9 Jun 2017 15:08:18 -0400 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: On Fri, Jun 9, 2017 at 12:45 PM, Trevour Spencer wrote: > Well, thanks, that also explains my problems with the other examples, I > guess. > > I have run these on a machine with Mesa 11.2.2 CPU rendering. Are there > any known problems with software rendering? I'll test with a different VTK > installation next week and try to get an idea where the bug comes from. > > For this test and assuming you are using vtk's OpenGL(old) interface, this 11.2.2 should be more than sufficient. For OpenGL2 (new) then I think Mesa 13 is the minimum required without hacks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Fri Jun 9 16:14:31 2017 From: EZ7543 at wayne.edu (Teek) Date: Fri, 9 Jun 2017 13:14:31 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> Message-ID: <1497039271371-5743612.post@n5.nabble.com> Going to try this way. I'm assuming that I'll have to iterate through a RendererCollection from the RenderWindow in order to get the ActiveCamera correct? Then for each Renderer set the camera->SetEyePosition. VTK - Users mailing list wrote > You should be able to write a subclass of vtkWin32OpenGLRenderWindow > (or whatever **actual** vtkRenderWindow subclass gets instantiated for > your app) and then provide your own overrides of the methods > StereoUpdate, StereoMidpoint, and StereoRenderComplete. > > In the StereoUpdate method, call the parent method first, and then > call camera->SetEyePosition to be at the left eye. In the > StereoMidpoint method, call the parent method first, and then call > camera->SetEyePosition to be at the right eye. > > In the StereoRenderComplete method, call the parent method first, and > then call camera->SetEyePosition back to its pre-stereo rendering > values. > > The trick with SetEyePosition calls is that they coordinates have to > be in **camera** space, not world space. > > > HTH, > David C. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743612.html Sent from the VTK - Users mailing list archive at Nabble.com. From EZ7543 at wayne.edu Fri Jun 9 16:15:49 2017 From: EZ7543 at wayne.edu (Teek) Date: Fri, 9 Jun 2017 13:15:49 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: <1497039271371-5743612.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> <1497039271371-5743612.post@n5.nabble.com> Message-ID: <1497039349851-5743613.post@n5.nabble.com> Just to clarify: renderWindow->GetRenderers(), Iterate through each and renderer->GetActiveCamera()->SetEyePosition(...)? Teek wrote > Going to try this way. I'm assuming that I'll have to iterate through a > RendererCollection from the RenderWindow in order to get the ActiveCamera > correct? Then for each Renderer set the camera->SetEyePosition. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743613.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Fri Jun 9 16:35:49 2017 From: DLRdave at aol.com (David Cole) Date: Fri, 9 Jun 2017 16:35:49 -0400 Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: <1497039349851-5743613.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> <1497039271371-5743612.post@n5.nabble.com> <1497039349851-5743613.post@n5.nabble.com> Message-ID: I guess so. I only have one 3D renderer in my case, so it's just one camera in my case. On Fri, Jun 9, 2017 at 4:15 PM, Teek wrote: > Just to clarify: renderWindow->GetRenderers(), Iterate through each and > renderer->GetActiveCamera()->SetEyePosition(...)? > > > Teek wrote >> Going to try this way. I'm assuming that I'll have to iterate through a >> RendererCollection from the RenderWindow in order to get the ActiveCamera >> correct? Then for each Renderer set the camera->SetEyePosition. > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743613.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 weiherer.maximilian at gmx.de Fri Jun 9 17:57:20 2017 From: weiherer.maximilian at gmx.de (Maximilian Weiherer) Date: Fri, 9 Jun 2017 23:57:20 +0200 Subject: [vtkusers] Check if vtkPolyData objects intersect Message-ID: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> Hi all, how to check if two vtkPolyData objects intersect? I tried vtkIntersectionPolyDataFilter but this gives me an error if no intersection is found. What I need is just a boolean value whether or not two meshes intersect. Any suggestions would be appreciated. Thanks! --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Jun 9 18:08:47 2017 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 9 Jun 2017 18:08:47 -0400 Subject: [vtkusers] Check if vtkPolyData objects intersect In-Reply-To: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> References: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> Message-ID: vtkIntersectionPolyDataFilter should be good when both vtkPolyData contain only triangles. If there is an error message, could you post it here? We should address that. It should be possible to get an empty vtkPolyData result from vtkIntersectionPolyDataFilter that you could check. More general vtkPolyData-vtkPolyData intersection (poly data with line segments, quads, etc.) is not available in a convenient VTK class that I know of. On Fri, Jun 9, 2017 at 5:57 PM, Maximilian Weiherer wrote: > Hi all, > > > > how to check if two vtkPolyData objects intersect? I tried > vtkIntersectionPolyDataFilter but this gives me an error if no intersection > is found. What I need is just a boolean value whether or not two meshes > intersect. > > > > Any suggestions would be appreciated. Thanks! > > > > > > > Virenfrei. www.avast.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 Staff R&D Engineer Kitware, Inc. From weiherer.maximilian at gmx.de Fri Jun 9 18:14:46 2017 From: weiherer.maximilian at gmx.de (Maximilian Weiherer) Date: Sat, 10 Jun 2017 00:14:46 +0200 Subject: [vtkusers] Check if vtkPolyData objects intersect In-Reply-To: References: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> Message-ID: <001901d2e16d$cf937cc0$6eba7640$@gmx.de> vtkSmartPointer checkIntersection = vtkSmartPointer::New(); checkIntersection->SetInputData(0, {vtkPolyData object}); checkIntersection->SetInputConnection(1, sphere->GetOutputPort()); checkIntersection->Update(); if (checkIntersection->GetOutput() == NULL) { // no intersection found... do some stuff } This is what I have tried so far and that gives me the following warnings/errors: Generic Warning: In L:\VTK_7_1_1\VTK_7_1_1\Filters\General\vtkIntersectionPolyDataFilter.cxx, line 2507 No Intersection between objects ERROR: In L:\VTK_7_1_1\VTK_7_1_1\Common\DataModel\vtkPointLocator.cxx, line 876 vtkPointLocator (000002377CF27010): No points to subdivide -----Urspr?ngliche Nachricht----- Von: Cory Quammen [mailto:cory.quammen at kitware.com] Gesendet: Samstag, 10. Juni 2017 00:09 An: Maximilian Weiherer Cc: vtkusers at vtk.org Betreff: Re: [vtkusers] Check if vtkPolyData objects intersect vtkIntersectionPolyDataFilter should be good when both vtkPolyData contain only triangles. If there is an error message, could you post it here? We should address that. It should be possible to get an empty vtkPolyData result from vtkIntersectionPolyDataFilter that you could check. More general vtkPolyData-vtkPolyData intersection (poly data with line segments, quads, etc.) is not available in a convenient VTK class that I know of. On Fri, Jun 9, 2017 at 5:57 PM, Maximilian Weiherer wrote: > Hi all, > > > > how to check if two vtkPolyData objects intersect? I tried > vtkIntersectionPolyDataFilter but this gives me an error if no > intersection is found. What I need is just a boolean value whether or > not two meshes intersect. > > > > Any suggestions would be appreciated. Thanks! > > > > > > > Virenfrei. www.avast.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 Staff R&D Engineer Kitware, Inc. --- Diese E-Mail wurde von Avast Antivirus-Software auf Viren gepr?ft. https://www.avast.com/antivirus From leonid_dulman at yahoo.co.uk Sat Jun 10 05:12:10 2017 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Sat, 10 Jun 2017 09:12:10 +0000 (UTC) Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: Message-ID: <4555350.10912853.1497085930965@mail.yahoo.com> vtkStreamer and vtkStreamLine classes are removed from VTK 8.0.0 what I can use instead ?What method I can use instead removed vtkVolumeTextureMapper2D:Render vtkVolumeTextureMapper3D:Render Thank you From: Sankhesh Jhaveri To: vtk-developers ; "vtkusers at vtk.org" Sent: Thursday, June 8, 2017 11:33 PM Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0.You can find the source, data and documentation tarballs here:http://www.vtk.org/download/#candidateChanges new to this release candidate include - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules - Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version.Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag?(or earlier)?to ensure minimal merge conflicts with the release branch.As always, contact Kitware and the mailing lists for assistance. Thanks, VTK Maintenance Team?-- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ?_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid_dulman at yahoo.co.uk Sat Jun 10 12:08:11 2017 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Sat, 10 Jun 2017 16:08:11 +0000 (UTC) Subject: [vtkusers] Fw: Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: <4555350.10912853.1497085930965@mail.yahoo.com> References: <4555350.10912853.1497085930965@mail.yahoo.com> Message-ID: <894028160.11202692.1497110891108@mail.yahoo.com> ----- Forwarded Message ----- From: Leonid Dulman To: Sankhesh Jhaveri ; vtk-developers ; "vtkusers at vtk.org" Sent: Saturday, June 10, 2017 12:12 PM Subject: Re: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing vtkStreamer and vtkStreamLine classes are removed from VTK 8.0.0 what I can use instead ?What method I can use instead removed vtkVolumeTextureMapper2D:Render vtkVolumeTextureMapper3D:Render Thank you From: Sankhesh Jhaveri To: vtk-developers ; "vtkusers at vtk.org" Sent: Thursday, June 8, 2017 11:33 PM Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0.You can find the source, data and documentation tarballs here:http://www.vtk.org/download/#candidateChanges new to this release candidate include - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules - Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version.Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag?(or earlier)?to ensure minimal merge conflicts with the release branch.As always, contact Kitware and the mailing lists for assistance. Thanks, VTK Maintenance Team?-- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ?_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid_dulman at yahoo.co.uk Sat Jun 10 12:08:11 2017 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Sat, 10 Jun 2017 16:08:11 +0000 (UTC) Subject: [vtkusers] Fw: Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: <4555350.10912853.1497085930965@mail.yahoo.com> References: <4555350.10912853.1497085930965@mail.yahoo.com> Message-ID: <894028160.11202692.1497110891108@mail.yahoo.com> ----- Forwarded Message ----- From: Leonid Dulman To: Sankhesh Jhaveri ; vtk-developers ; "vtkusers at vtk.org" Sent: Saturday, June 10, 2017 12:12 PM Subject: Re: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing vtkStreamer and vtkStreamLine classes are removed from VTK 8.0.0 what I can use instead ?What method I can use instead removed vtkVolumeTextureMapper2D:Render vtkVolumeTextureMapper3D:Render Thank you From: Sankhesh Jhaveri To: vtk-developers ; "vtkusers at vtk.org" Sent: Thursday, June 8, 2017 11:33 PM Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0.You can find the source, data and documentation tarballs here:http://www.vtk.org/download/#candidateChanges new to this release candidate include - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules - Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version.Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag?(or earlier)?to ensure minimal merge conflicts with the release branch.As always, contact Kitware and the mailing lists for assistance. Thanks, VTK Maintenance Team?-- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ?_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andx_roo at live.com Sat Jun 10 22:27:16 2017 From: Andx_roo at live.com (Andaharoo) Date: Sat, 10 Jun 2017 19:27:16 -0700 (MST) Subject: [vtkusers] What vtkPicker can handle image spacing? Message-ID: <1497148036764-5743621.post@n5.nabble.com> Hi, I've been using vtkImageViewer2 and vtkPointPicker without point sampling on for my image to get pixel values of the image. But I've realized that vtkPointPicker doesn't account for spacing whereas the renderer does. I've solved this by dividing the values of vtkPointPicker by the spacing of the image. But I would like to know if there is another point picker that would be better suited for what I'm trying to do. Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/What-vtkPicker-can-handle-image-spacing-tp5743621.html Sent from the VTK - Users mailing list archive at Nabble.com. From jonas.natzer at gmail.com Mon Jun 12 03:52:20 2017 From: jonas.natzer at gmail.com (jonas) Date: Mon, 12 Jun 2017 00:52:20 -0700 (MST) Subject: [vtkusers] symbol lookup error with library vtkRenderingOpenGl2 Message-ID: <1497253940785-5743623.post@n5.nabble.com> When I try to run a simple program using the VTK library I get this error message: I tried to compile this example , which uses vtk libraries. Is there a problem with dependencies maybe? What should I check? Do you know what could be the problem? Would be great to find some help! -- View this message in context: http://vtk.1045678.n5.nabble.com/symbol-lookup-error-with-library-vtkRenderingOpenGl2-tp5743623.html Sent from the VTK - Users mailing list archive at Nabble.com. From xabivtk at gmail.com Mon Jun 12 09:25:32 2017 From: xabivtk at gmail.com (Xabi Riobe) Date: Mon, 12 Jun 2017 15:25:32 +0200 Subject: [vtkusers] vtknetcdf_c++ missing -8.0 in name Message-ID: Hi, I am compiling 8.0.0.rc2 with Visual Studio 2013, and this the only library that has not the extension -8.0 in the name. vtknetcdf_c++.lib instead of vtknetcdf_c++-8.0.lib like all other libraries. Is it the expected name, or should it be named with the same convention as others? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Mon Jun 12 09:25:43 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Mon, 12 Jun 2017 13:25:43 +0000 Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: <4555350.10912853.1497085930965@mail.yahoo.com> References: <4555350.10912853.1497085930965@mail.yahoo.com> Message-ID: Hello Leonid, Please use vtkStreamTracer as the replacement for vtkStreamer and its associated classes. Please use vtkGPUVolumeRayCastMapper over the vtkVolumeTextureMapper classes. Thanks, Sankhesh On Sat, Jun 10, 2017 at 5:12 AM Leonid Dulman leonid_dulman at yahoo.co.uk wrote: vtkStreamer and vtkStreamLine classes are removed from VTK 8.0.0 what I can > use instead ? > What method I can use instead removed vtkVolumeTextureMapper2D:Render > vtkVolumeTextureMapper3D:Render > > Thank you > > > ------------------------------ > *From:* Sankhesh Jhaveri > *To:* vtk-developers ; "vtkusers at vtk.org" < > vtkusers at vtk.org> > *Sent:* Thursday, June 8, 2017 11:33 PM > *Subject:* [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing > > The VTK maintenance team is happy to announce that the second release > candidate has been tagged for VTK 8.0. > You can find the source, data and documentation tarballs here: > http://www.vtk.org/download/#candidate > Changes new to this release candidate include > > - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules > - Removes deprecated classes like vtkStreamer, vtkStreamPoints and > vtkStreamLine > > Take a look at the VTK wiki > for a complete > list of API changes in v8.0.0 over the previous version. > Please try this version of VTK and report any issues to the VTK mailing > list or the bug tracker > so that we can try to address > them before the VTK 8.0.0 final. Kindly set the 8.0 milestone > on the issues and merge > requests to ensure that they are tracked during the remainder of the 8.0 > release process. Further, please base / rebase all 8.0 target branches off > of the v8.0.0.rc2 tag (or > earlier) to ensure minimal merge conflicts with the release branch. > As always, contact Kitware and the mailing > lists for assistance. > Thanks, > VTK Maintenance Team > ? > -- > Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware > | (518) 881-4417 > ? > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > ? -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From leonid_dulman at yahoo.co.uk Mon Jun 12 10:56:04 2017 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Mon, 12 Jun 2017 14:56:04 +0000 (UTC) Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing In-Reply-To: References: <4555350.10912853.1497085930965@mail.yahoo.com> Message-ID: <1168722913.13306209.1497279364704@mail.yahoo.com> Thank's a lot for help From: Sankhesh Jhaveri To: Leonid Dulman ; vtk-developers ; "vtkusers at vtk.org" Sent: Monday, June 12, 2017 4:25 PM Subject: Re: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing Hello Leonid,Please use vtkStreamTracer as the replacement for vtkStreamer and its associated classes.Please use vtkGPUVolumeRayCastMapper over the vtkVolumeTextureMapper classes.Thanks, Sankhesh On Sat, Jun 10, 2017 at 5:12 AM Leonid Dulman leonid_dulman at yahoo.co.uk wrote: vtkStreamer and vtkStreamLine classes are removed from VTK 8.0.0 what I can use instead ?What method I can use instead removed vtkVolumeTextureMapper2D:Render vtkVolumeTextureMapper3D:Render Thank you From: Sankhesh Jhaveri To: vtk-developers ; "vtkusers at vtk.org" Sent: Thursday, June 8, 2017 11:33 PM Subject: [vtkusers] Announce: vtk 8.0.0.rc2 ready for testing The VTK maintenance team is happy to announce that the second release candidate has been tagged for VTK 8.0.You can find the source, data and documentation tarballs here:http://www.vtk.org/download/#candidateChanges new to this release candidate include - Deprecated vtkFiltersMatlab and vtkFiltersStatisticsGnuR modules - Removes deprecated classes like vtkStreamer, vtkStreamPoints and vtkStreamLine Take a look at the VTK wiki for a complete list of API changes in v8.0.0 over the previous version.Please try this version of VTK and report any issues to the VTK mailing list or the bug tracker so that we can try to address them before the VTK 8.0.0 final. Kindly set the 8.0 milestone on the issues and merge requests to ensure that they are tracked during the remainder of the 8.0 release process. Further, please base / rebase all 8.0 target branches off of the v8.0.0.rc2 tag?(or earlier)?to ensure minimal merge conflicts with the release branch.As always, contact Kitware and the mailing lists for assistance. Thanks, VTK Maintenance Team?-- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ?_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ?-- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From coyarzunlaura at googlemail.com Mon Jun 12 12:04:46 2017 From: coyarzunlaura at googlemail.com (Cristina Oyarzun) Date: Mon, 12 Jun 2017 18:04:46 +0200 Subject: [vtkusers] Deadline extended!! MICCAI CLIP 2017 Workshop on Clinical Image-based Procedures: Translational Research in Medical Imaging Message-ID: CALL FOR PAPERS MICCAI 2017 Workshop on Clinical Image-based Procedures: Translational Research in Medical Imaging September 17, 2017 Quebec City, Canada Website:http://miccai-clip.org/ ============================== ========================================== SCOPE The outstanding proliferation of medical image applications has created a need for greater study and scrutiny of the clinical application and validation of such methods. New strategies are essential to ensure a smooth and effective translation of computational image-based techniques into the clinic. For these reasons CLIP 2017?s major focus is on translational research filling the gaps between basic science and clinical applications. A highlight of the workshop is the subject of strategies for personalized medicine to enhance diagnosis, treatment and interventions. Authors are encouraged to submit work centered on specific clinical applications, including techniques and procedures based on comprehensive clinical image data. Submissions related to applications already in use and evaluated by clinical users are particularly encouraged. The event will bring together world-class specialists to present ways to strengthen links between computer scientists and engineers, and clinicians. TOPICS *Strategies for patient-specific and anatomical modeling to support planning and interventions *Clinical studies employing advanced image-guided methods *Clinical translation and validation of image-guided systems *Current challenges and emerging techniques in image-based procedures *Identification of parameters and error analysis in image-based procedures *Multimodal image integration for modeling, planning and guidance *Clinical applications in open and minimally invasive procedures PAPER SUBMISSION Papers will be limited to ten pages following the MICCAI submission guidelines. Prospective authors should refer to the Paper Submission section on the workshop website for details on how to submit papers to be presented at the workshop. All submissions will be peer-reviewed by at least 2 members of the program committee. The selection of the papers will be based on the significance of results, novelty, technical merit, relevance and clarity of presentation. Papers will be presented in a day long single track workshop starting with plenary sessions. Accepted papers will be published as a proceedings volume in the Springer Lecture Notes in Computer Science (LNCS) series after the workshop. WORKSHOP FORMAT Accepted papers will be presented in a day long single track workshop. The final program will consist of invited speakers and original papers with time allocated for discussions. Electronic proceedings will be arranged for all of the papers presented at the workshop. IMPORTANT DATES * June 18, 2017: Paper submission due date * June 29, 2017: Notification of acceptance * July 3, 2017: Final camera-ready paper submission deadline CONTACT Inquires about the workshop should be sent to the Information Desk ( info at miccai-clip.org). ORGANIZERS (in alphabetical order) Klaus Drechsler (Fraunhofer IGD, Germany) Marius Erdt (Fraunhofer IDM at NTU, Singapore) Miguel Gonz?lez Ballester (ICREA - Universitat Pompeu Fabra, Spain) Marius George Linguraru (Children's National Medical Center, USA) Cristina Oyarzun Laura (Fraunhofer IGD, Germany) Raj Shekhar (Children's National Medical Center, USA) Stefan Wesarg (Fraunhofer IGD, Germany) ======================================================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason.kimmel at albint.com Mon Jun 12 13:37:46 2017 From: jason.kimmel at albint.com (Kimmel, Jason) Date: Mon, 12 Jun 2017 17:37:46 +0000 Subject: [vtkusers] vtkLegendBoxActor Not Updating Message-ID: Hello, We are using VTK 7.1 with Qt 5.8 on windows and are seeing some bizarre behavior with vtkLegendBoxActor. Under some circumstances which can be reliably reproduced, the screen does not update to show new values in the legend, even if the legend is deleted and re-created. Only when a user clicks in the renderwindow (or we simulate a mouse event) do the new values appear. The 3D actors displayed by the same renderer/renderwindow update as expected, so we know that the render does redraw the scene and the QVTK widget does display it. Does anyone have any idea why that might be happening, or if there is a way to force all actors to update? Our current workaround is to simulate a mouse event to force the update, but this is relatively time-consuming for what should be a simple update of a 2D actor. Thanks for your help, Jason -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Mon Jun 12 13:50:51 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Mon, 12 Jun 2017 17:50:51 +0000 Subject: [vtkusers] vtkLegendBoxActor Not Updating In-Reply-To: References: Message-ID: Hi Jason, Could you post some example code that reproduces the issue? Perhaps, create a bug report on the VTK bug tracker , too. ? On Mon, Jun 12, 2017 at 1:37 PM Kimmel, Jason via vtkusers wrote: > Hello, > > > > We are using VTK 7.1 with Qt 5.8 on windows and are seeing some bizarre > behavior with vtkLegendBoxActor. Under some circumstances which can be > reliably reproduced, the screen does not update to show new values in the > legend, even if the legend is deleted and re-created. Only when a user > clicks in the renderwindow (or we simulate a mouse event) do the new values > appear. The 3D actors displayed by the same renderer/renderwindow update > as expected, so we know that the render does redraw the scene and the QVTK > widget does display it. > > > > Does anyone have any idea why that might be happening, or if there is a > way to force all actors to update? Our current workaround is to simulate a > mouse event to force the update, but this is relatively time-consuming for > what should be a simple update of a 2D actor. > > > > Thanks for your help, > > > > Jason > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From trevourspencer at gmail.com Mon Jun 12 13:55:29 2017 From: trevourspencer at gmail.com (Trevour Spencer) Date: Mon, 12 Jun 2017 19:55:29 +0200 Subject: [vtkusers] concept of visualizing large datasets (no ParaView) In-Reply-To: References: Message-ID: Thank you, the TestParallelExample.cxx produces the expected result after I switched to VTK 7.1 with Mesa 17.1. Trevour Virenfrei. www.avast.com <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> 2017-06-09 21:08 GMT+02:00 David E DeMarle : > > On Fri, Jun 9, 2017 at 12:45 PM, Trevour Spencer > wrote: > >> Well, thanks, that also explains my problems with the other examples, I >> guess. >> >> I have run these on a machine with Mesa 11.2.2 CPU rendering. Are there >> any known problems with software rendering? I'll test with a different VTK >> installation next week and try to get an idea where the bug comes from. >> >> > For this test and assuming you are using vtk's OpenGL(old) interface, this > 11.2.2 should be more than sufficient. For OpenGL2 (new) then I think Mesa > 13 is the minimum required without hacks. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jason.kimmel at albint.com Mon Jun 12 14:11:09 2017 From: jason.kimmel at albint.com (Kimmel, Jason) Date: Mon, 12 Jun 2017 18:11:09 +0000 Subject: [vtkusers] vtkLegendBoxActor Not Updating In-Reply-To: References: Message-ID: Hi Sankesh, Unfortunately the circumstances involved include a large (and proprietary) application. I?ll see if it is possible to create a test case which can recreate the issue, and if so file a bug report. I have a feeling that everything may work properly in the simplified scenario though. Thanks, Jason From: Sankhesh Jhaveri [mailto:sankhesh.jhaveri at kitware.com] Sent: Monday, June 12, 2017 1:51 PM To: Kimmel, Jason ; vtk-users Subject: Re: [vtkusers] vtkLegendBoxActor Not Updating Hi Jason, Could you post some example code that reproduces the issue? Perhaps, create a bug report on the VTK bug tracker, too. ? On Mon, Jun 12, 2017 at 1:37 PM Kimmel, Jason via vtkusers > wrote: Hello, We are using VTK 7.1 with Qt 5.8 on windows and are seeing some bizarre behavior with vtkLegendBoxActor. Under some circumstances which can be reliably reproduced, the screen does not update to show new values in the legend, even if the legend is deleted and re-created. Only when a user clicks in the renderwindow (or we simulate a mouse event) do the new values appear. The 3D actors displayed by the same renderer/renderwindow update as expected, so we know that the render does redraw the scene and the QVTK widget does display it. Does anyone have any idea why that might be happening, or if there is a way to force all actors to update? Our current workaround is to simulate a mouse event to force the update, but this is relatively time-consuming for what should be a simple update of a 2D actor. Thanks for your help, Jason _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: 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 -- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Jun 13 09:10:50 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 13 Jun 2017 15:10:50 +0200 Subject: [vtkusers] How to make vtkChartXY non-interactive? Message-ID: I'm using a vtkChartXY vtkColorTransferControlPointsItem vtkColorTransferFunctionItem trio for editing a vtkColorTransferFunction. I'm now trying to make it non-editable (I want this for system "built-in" color functions). I've tried calling SetInteractive(false) on all three of them. I even tried hiding the control points item, but still I can interact with the points using the mouse. How can I make it non-interactive? I'm using VTK 8.0.0.rc1. Thanks in advance, Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Jun 13 09:16:20 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 13 Jun 2017 15:16:20 +0200 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: 2017-06-13 15:10 GMT+02:00 Elvis Stansvik : > I'm using a > > vtkChartXY > vtkColorTransferControlPointsItem > vtkColorTransferFunctionItem > > trio for editing a vtkColorTransferFunction. > > I'm now trying to make it non-editable (I want this for system "built-in" > color functions). I've tried calling SetInteractive(false) on all three of > them. I even tried hiding the control points item, but still I can interact > with the points using the mouse. > > How can I make it non-interactive? > > I'm using VTK 8.0.0.rc1. > I know I could always override and swallow mouse events, but that seems like the wrong approach? I'm only interested in disabling interaction with the control points item. Even hiding it as well would be OK. Elvis > > Thanks in advance, > Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Tue Jun 13 10:50:50 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 13 Jun 2017 07:50:50 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> Message-ID: <1497365450580-5743635.post@n5.nabble.com> Okay I'm not quite sure what you mean when you say the coordinates for camera space. Would I be able to convert world coordinates to camera coordinates in any way? I can't seem to find any reference to SetEyePosition in the archive of the mailing list either. I've just been trying to set the camera position so I could see the cube source, however it seems that by default the camera locates itself at (0, 0, 0). Can't seem to figure out how to push it back to see the object using SetEyePosition. Let me know if I misunderstood something. Regards, Teek VTK - Users mailing list wrote > The trick with SetEyePosition calls is that they coordinates have to > be in **camera** space, not world space. > > > HTH, > David C. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743635.html Sent from the VTK - Users mailing list archive at Nabble.com. From marcus.hanwell at kitware.com Tue Jun 13 11:53:19 2017 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 13 Jun 2017 11:53:19 -0400 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2017-06-13 15:10 GMT+02:00 Elvis Stansvik : > >> I'm using a >> >> vtkChartXY >> vtkColorTransferControlPointsItem >> vtkColorTransferFunctionItem >> >> trio for editing a vtkColorTransferFunction. >> >> I'm now trying to make it non-editable (I want this for system "built-in" >> color functions). I've tried calling SetInteractive(false) on all three of >> them. I even tried hiding the control points item, but still I can interact >> with the points using the mouse. >> >> How can I make it non-interactive? >> >> I'm using VTK 8.0.0.rc1. >> > > I know I could always override and swallow mouse events, but that seems > like the wrong approach? > > I'm only interested in disabling interaction with the control points item. > Even hiding it as well would be OK. > > So I would use the SetActionToButton method in vtkChart, and set each action to -1 (no button). Looking at the vtkControlPointsItem the press event is not configurable, and so you would really have to derive from it, and override it that way as far as I can see. It could be modified, but that ability doesn't appear to be present. I am trying to remember how we propagate mouse events from the containing chart, but am a little rusty on that logic. We don't have the equivalent of an event filter as far as I am aware, but in the Qt world I would use that to intercept events before they get to the chart. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Tue Jun 13 11:55:34 2017 From: DLRdave at aol.com (David Cole) Date: Tue, 13 Jun 2017 11:55:34 -0400 Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: <1497365450580-5743635.post@n5.nabble.com> References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> <1497365450580-5743635.post@n5.nabble.com> Message-ID: Another thing to recognize is that VTK camera space and zSpace camera space are aligned with each other, but possibly at different scales, depending on the physical meaning of your VTK world coordinates. But they share the same origin, and point in the same directions. So if you have coords in zSpace camera coords, you can just scale them to get corresponding VTK camera coordinates. VTK camera space is at the same scale as VTK world coordinates, but the origin of the camera space is at the camera itself, and the axes are defined as: +x to the right, +y up, +z is the cross-product of those two (+x cross +y). The camera's position is expressed in VTK world coords, and corresponds to the camera origin, so the position is the translation between camera space and world space. The rotation is whatever it takes to align the x, y, and z axes given the above definition, and the camera's ViewUp and ViewNormal vectors (also expressed in world coords). There's a matrix in the camera class which does this transform already. If I'm looking at and interpreting the source code correctly, it's the ViewTransform, computed in this method: https://github.com/Kitware/VTK/blob/635e45b/Rendering/Core/vtkCamera.cxx#L349 You could empirically check that by getting that transform (or its inverse) and calling TransformPoint, and observing the results using (0,0,0) and camera->GetPosition(), and/or TransformVector and the ViewUp and ViewNormal vectors. HTH, David C. On Tue, Jun 13, 2017 at 10:50 AM, Teek wrote: > Okay I'm not quite sure what you mean when you say the coordinates for camera > space. > Would I be able to convert world coordinates to camera coordinates in any > way? > > I can't seem to find any reference to SetEyePosition in the archive of the > mailing list either. > I've just been trying to set the camera position so I could see the cube > source, however it seems that by default the camera locates itself at (0, 0, > 0). Can't seem to figure out how to push it back to see the object using > SetEyePosition. > > Let me know if I misunderstood something. > > Regards, > Teek > > > VTK - Users mailing list wrote >> The trick with SetEyePosition calls is that they coordinates have to >> be in **camera** space, not world space. >> >> >> HTH, >> David C. > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743635.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 rickfrank at me.com Tue Jun 13 12:07:30 2017 From: rickfrank at me.com (Richard Frank) Date: Tue, 13 Jun 2017 12:07:30 -0400 Subject: [vtkusers] ImplicitPlaneWidget2 Message-ID: <77E3FAA1-BEB0-4B19-8987-33103AA77F85@me.com> Dos anyone know how to make this clip a polygon with a user matrix set to translate the polygon to some position say, 10, 100, -1000? I try this with the example cxx code by setting the position of the sphere and it completely falls apart. Any thoughts on why this doesn't work? And what it might take to fix it? 2 of us have been trying to figure this out for a week and we're stumped. Thanks Rick Frank Sent from my iPad From EZ7543 at wayne.edu Tue Jun 13 17:41:54 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 13 Jun 2017 14:41:54 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> <1497365450580-5743635.post@n5.nabble.com> Message-ID: <1497390114011-5743639.post@n5.nabble.com> I actually just left out zSpace for now so I could understand how to use the SetEyePosition properly. See Code I essentially am just trying to create a cube in stereo and then use SetEyePosition to set the left and right camera views in stereo rendering. I'll probably incorporate zSpace once I can figure this out. Thanks again for you help thus far. So if the camera is also the origin in camera space, I'm confused as to how you can SetEyePosition (of the camera) using camera coords since it will always be the center. This also explains why if I create a camera and set the eye position, it seems to just be at the center of the cube. Unless, you mean to say that the camera is originally at an arbitrary location which is defined as camera space. Then those coordinates are transformed into VTK world space coordinates. -- I also tried: /camera->GetEyePosition(eyePosition); cout << eyePosition[0] << ", " << eyePosition[1] << ", " << eyePosition[2] << endl; renderer->SetActiveCamera(camera.GetPointer()); renderer->ResetCamera(); camera->GetEyePosition(eyePosition); cout << eyePosition[0] << ", " << eyePosition[1] << ", " << eyePosition[2] << endl;/ However it returns 0, 0, 0 for both even though the views are different before and after I reset the camera. VTK - Users mailing list wrote > Another thing to recognize is that VTK camera space and zSpace camera > space are aligned with each other, but possibly at different scales, > depending on the physical meaning of your VTK world coordinates. But > they share the same origin, and point in the same directions. So if > you have coords in zSpace camera coords, you can just scale them to > get corresponding VTK camera coordinates. > > VTK camera space is at the same scale as VTK world coordinates, but > the origin of the camera space is at the camera itself, and the axes > are defined as: +x to the right, +y up, +z is the cross-product of > those two (+x cross +y). > > The camera's position is expressed in VTK world coords, and > corresponds to the camera origin, so the position is the translation > between camera space and world space. The rotation is whatever it > takes to align the x, y, and z axes given the above definition, and > the camera's ViewUp and ViewNormal vectors (also expressed in world > coords). > > There's a matrix in the camera class which does this transform > already. If I'm looking at and interpreting the source code correctly, > it's the ViewTransform, computed in this method: > > https://github.com/Kitware/VTK/blob/635e45b/Rendering/Core/vtkCamera.cxx#L349 > > You could empirically check that by getting that transform (or its > inverse) and calling TransformPoint, and observing the results using > (0,0,0) and camera->GetPosition(), and/or TransformVector and the > ViewUp and ViewNormal vectors. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743639.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Wed Jun 14 02:37:44 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 14 Jun 2017 08:37:44 +0200 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: Den 13 juni 2017 5:53 em skrev "Marcus D. Hanwell" < marcus.hanwell at kitware.com>: > > On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: >> >> 2017-06-13 15:10 GMT+02:00 Elvis Stansvik : >>> >>> I'm using a >>> >>> vtkChartXY >>> vtkColorTransferControlPointsItem >>> vtkColorTransferFunctionItem >>> >>> trio for editing a vtkColorTransferFunction. >>> >>> I'm now trying to make it non-editable (I want this for system "built-in" color functions). I've tried calling SetInteractive(false) on all three of them. I even tried hiding the control points item, but still I can interact with the points using the mouse. >>> >>> How can I make it non-interactive? >>> >>> I'm using VTK 8.0.0.rc1. >> >> >> I know I could always override and swallow mouse events, but that seems like the wrong approach? >> >> I'm only interested in disabling interaction with the control points item. Even hiding it as well would be OK. >> > So I would use the SetActionToButton method in vtkChart, and set each action to -1 (no button). Ah thanks, I'll take a look at that. > Looking at the vtkControlPointsItem the press event is not configurable, and so you would really have to derive from it, and override it that way as far as I can see. It could be modified, but that ability doesn't appear to be present. I am trying to remember how we propagate mouse events from the containing chart, but am a little rusty on that logic. > > We don't have the equivalent of an event filter as far as I am aware, but in the Qt world I would use that to intercept events before they get to the chart. Alright, thanks a lot for the info. What surprised me most was that neither SetInteractive(false) on the control points item, nor hiding it with SetVisible(false) would prevent interaction with the points. Should either of those be considered bugs? The heavy-handed approach I came up with yesterday was to simply remove the control points item from the chart temporarily when I want to disable interaction. This was OK for me since having the points also disappear was actually my ultimate goal. Just thought SetVisible(false) would be enough. Elvis -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Wed Jun 14 03:08:12 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 14 Jun 2017 09:08:12 +0200 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: 2017-06-14 8:37 GMT+02:00 Elvis Stansvik : > Den 13 juni 2017 5:53 em skrev "Marcus D. Hanwell" < > marcus.hanwell at kitware.com>: > > > > On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> > >> 2017-06-13 15:10 GMT+02:00 Elvis Stansvik >: > >>> > >>> I'm using a > >>> > >>> vtkChartXY > >>> vtkColorTransferControlPointsItem > >>> vtkColorTransferFunctionItem > >>> > >>> trio for editing a vtkColorTransferFunction. > >>> > >>> I'm now trying to make it non-editable (I want this for system > "built-in" color functions). I've tried calling SetInteractive(false) on > all three of them. I even tried hiding the control points item, but still I > can interact with the points using the mouse. > >>> > >>> How can I make it non-interactive? > >>> > >>> I'm using VTK 8.0.0.rc1. > >> > >> > >> I know I could always override and swallow mouse events, but that seems > like the wrong approach? > >> > >> I'm only interested in disabling interaction with the control points > item. Even hiding it as well would be OK. > >> > > So I would use the SetActionToButton method in vtkChart, and set each > action to -1 (no button). > > Ah thanks, I'll take a look at that. > > > Looking at the vtkControlPointsItem the press event is not configurable, > and so you would really have to derive from it, and override it that way as > far as I can see. It could be modified, but that ability doesn't appear to > be present. I am trying to remember how we propagate mouse events from the > containing chart, but am a little rusty on that logic. > > > > We don't have the equivalent of an event filter as far as I am aware, > but in the Qt world I would use that to intercept events before they get to > the chart. > > Alright, thanks a lot for the info. > > What surprised me most was that neither SetInteractive(false) on the > control points item, nor hiding it with SetVisible(false) would prevent > interaction with the points. Should either of those be considered bugs? > > The heavy-handed approach I came up with yesterday was to simply remove > the control points item from the chart temporarily when I want to disable > interaction. This was OK for me since having the points also disappear was > actually my ultimate goal. Just thought SetVisible(false) would be enough. > Sorry, it's a little early. This was not the approach I ended up with (I tried that though, but had problems adding the control points item back). What I did do was to simply disable (in the Qt sense) the entire QVTKOpenGLWidget that holds the chart (in addition to hiding the control points items with SetVisible(false)). This works, but is less than optimal of course, since now it's impossible to interact with the widget in any way. This is OK for now, but I may need to reconsider, since I might want to e.g. support zoom/panning in the chart (and only disallow interaction with the control points item). Elvis Elvis > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Wed Jun 14 11:01:45 2017 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Wed, 14 Jun 2017 11:01:45 -0400 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: On Wed, Jun 14, 2017 at 2:37 AM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Den 13 juni 2017 5:53 em skrev "Marcus D. Hanwell" < > marcus.hanwell at kitware.com>: > > > > On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> > >> 2017-06-13 15:10 GMT+02:00 Elvis Stansvik >: > >>> > >>> I'm using a > >>> > >>> vtkChartXY > >>> vtkColorTransferControlPointsItem > >>> vtkColorTransferFunctionItem > >>> > >>> trio for editing a vtkColorTransferFunction. > >>> > >>> I'm now trying to make it non-editable (I want this for system > "built-in" color functions). I've tried calling SetInteractive(false) on > all three of them. I even tried hiding the control points item, but still I > can interact with the points using the mouse. > >>> > >>> How can I make it non-interactive? > >>> > >>> I'm using VTK 8.0.0.rc1. > >> > >> > >> I know I could always override and swallow mouse events, but that seems > like the wrong approach? > >> > >> I'm only interested in disabling interaction with the control points > item. Even hiding it as well would be OK. > >> > > So I would use the SetActionToButton method in vtkChart, and set each > action to -1 (no button). > > Ah thanks, I'll take a look at that. > > > Looking at the vtkControlPointsItem the press event is not configurable, > and so you would really have to derive from it, and override it that way as > far as I can see. It could be modified, but that ability doesn't appear to > be present. I am trying to remember how we propagate mouse events from the > containing chart, but am a little rusty on that logic. > > > > We don't have the equivalent of an event filter as far as I am aware, > but in the Qt world I would use that to intercept events before they get to > the chart. > > Alright, thanks a lot for the info. > > What surprised me most was that neither SetInteractive(false) on the > control points item, nor hiding it with SetVisible(false) would prevent > interaction with the points. Should either of those be considered bugs? > Yes, I think these are bugs, and we should try and get them fixed up. > The heavy-handed approach I came up with yesterday was to simply remove > the control points item from the chart temporarily when I want to disable > interaction. This was OK for me since having the points also disappear was > actually my ultimate goal. Just thought SetVisible(false) would be enough. > Agreed, I think it should be, although reading through the code it is clear that is not supported. Marcus -------------- next part -------------- An HTML attachment was scrubbed... URL: From EZ7543 at wayne.edu Wed Jun 14 11:43:11 2017 From: EZ7543 at wayne.edu (Teek) Date: Wed, 14 Jun 2017 08:43:11 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> <1497365450580-5743635.post@n5.nabble.com> Message-ID: <1497454991573-5743643.post@n5.nabble.com> Would you by chance have an example of a simple rendering (cone, cube, etc) that utilizes the SetEyePosition method in order to set up the camera? Speaking strictly just VTK. -- Even if I use SetEyePosition with arbitrary values I see no change in the view. I can't seem to get it to change anything. VTK - Users mailing list wrote > Another thing to recognize is that VTK camera space and zSpace camera > space are aligned with each other, but possibly at different scales, > depending on the physical meaning of your VTK world coordinates. But > they share the same origin, and point in the same directions. So if > you have coords in zSpace camera coords, you can just scale them to > get corresponding VTK camera coordinates. > > VTK camera space is at the same scale as VTK world coordinates, but > the origin of the camera space is at the camera itself, and the axes > are defined as: +x to the right, +y up, +z is the cross-product of > those two (+x cross +y). > > The camera's position is expressed in VTK world coords, and > corresponds to the camera origin, so the position is the translation > between camera space and world space. The rotation is whatever it > takes to align the x, y, and z axes given the above definition, and > the camera's ViewUp and ViewNormal vectors (also expressed in world > coords). > > There's a matrix in the camera class which does this transform > already. If I'm looking at and interpreting the source code correctly, > it's the ViewTransform, computed in this method: > > https://github.com/Kitware/VTK/blob/635e45b/Rendering/Core/vtkCamera.cxx#L349 > > You could empirically check that by getting that transform (or its > inverse) and calling TransformPoint, and observing the results using > (0,0,0) and camera->GetPosition(), and/or TransformVector and the > ViewUp and ViewNormal vectors. > > > HTH, > David C. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743643.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Wed Jun 14 14:29:54 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Wed, 14 Jun 2017 20:29:54 +0200 Subject: [vtkusers] How to make vtkChartXY non-interactive? In-Reply-To: References: Message-ID: 2017-06-14 17:01 GMT+02:00 Marcus D. Hanwell : > On Wed, Jun 14, 2017 at 2:37 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > >> Den 13 juni 2017 5:53 em skrev "Marcus D. Hanwell" < >> marcus.hanwell at kitware.com>: >> > >> > On Tue, Jun 13, 2017 at 9:16 AM, Elvis Stansvik < >> elvis.stansvik at orexplore.com> wrote: >> >> >> >> 2017-06-13 15:10 GMT+02:00 Elvis Stansvik < >> elvis.stansvik at orexplore.com>: >> >>> >> >>> I'm using a >> >>> >> >>> vtkChartXY >> >>> vtkColorTransferControlPointsItem >> >>> vtkColorTransferFunctionItem >> >>> >> >>> trio for editing a vtkColorTransferFunction. >> >>> >> >>> I'm now trying to make it non-editable (I want this for system >> "built-in" color functions). I've tried calling SetInteractive(false) on >> all three of them. I even tried hiding the control points item, but still I >> can interact with the points using the mouse. >> >>> >> >>> How can I make it non-interactive? >> >>> >> >>> I'm using VTK 8.0.0.rc1. >> >> >> >> >> >> I know I could always override and swallow mouse events, but that >> seems like the wrong approach? >> >> >> >> I'm only interested in disabling interaction with the control points >> item. Even hiding it as well would be OK. >> >> >> > So I would use the SetActionToButton method in vtkChart, and set each >> action to -1 (no button). >> >> Ah thanks, I'll take a look at that. >> >> > Looking at the vtkControlPointsItem the press event is not >> configurable, and so you would really have to derive from it, and override >> it that way as far as I can see. It could be modified, but that ability >> doesn't appear to be present. I am trying to remember how we propagate >> mouse events from the containing chart, but am a little rusty on that logic. >> > >> > We don't have the equivalent of an event filter as far as I am aware, >> but in the Qt world I would use that to intercept events before they get to >> the chart. >> >> Alright, thanks a lot for the info. >> >> What surprised me most was that neither SetInteractive(false) on the >> control points item, nor hiding it with SetVisible(false) would prevent >> interaction with the points. Should either of those be considered bugs? >> > Yes, I think these are bugs, and we should try and get them fixed up. > Alright, I filed issues #17066 [1] and #17067 [2]. Elvis [1] https://gitlab.kitware.com/vtk/vtk/issues/17066 [2] https://gitlab.kitware.com/vtk/vtk/issues/17067 The heavy-handed approach I came up with yesterday was to simply remove >> the control points item from the chart temporarily when I want to disable >> interaction. This was OK for me since having the points also disappear was >> actually my ultimate goal. Just thought SetVisible(false) would be enough. >> > Agreed, I think it should be, although reading through the code it is > clear that is not supported. > > Marcus > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Andx_roo at live.com Thu Jun 15 01:35:31 2017 From: Andx_roo at live.com (Andaharoo) Date: Wed, 14 Jun 2017 22:35:31 -0700 (MST) Subject: [vtkusers] vtkImageReslicing from every major axis problem Message-ID: <1497504931852-5743646.post@n5.nabble.com> I have a program that shows the three major axii of a volume using vtkImageViewer2 and I want to output a single image given the x, y, or z slice number. I've been using vtkImageReslice to accomplish this task. Outputting the XY plane is easy, I just do: reslicer->setResliceAxesOrigin(0, 0, slice * spacing[2]); I don't have to transform the plane as XY is default. Then I just set the z of the plane, which in physical space would be the slice number * spacing. Now to do the same thing but with the YZ plane I do: reslicer->SetResliceAxesOrigin(0, 0, slice * spacing[0]); transform->Translate(extent[0], extent[1], extent[2]); transform->RotateY(90); transform->Translate(-extent[0], -extent[1], -extent[2]); reslicer->SetResliceTransform(transform); Note: extent[i] = dim[i] * spacing[i], not vtk's image data extent. So I transform to the origin, then rotate the plane on the Y axis. I've noticed that the axes origin gets applied after transform so the slice number that would have been on the x axis should be specified as z in SetResliceAxesOrigin. Also to get the correct depth of the slice I need the spacing from the corresponding axis in the image which would be x axis spacing or spacing[0]. Now the problem is that while the transform works perfectly the slice number isn't the correct one. In fact it's a suspicious number. With this input image: Dim = 240, 240, 163 Spacing = 1.0444, 1.0444, 1.0999 Dim with Spacing (size) ~ 249, 249, 179 When I try to export the middle slice, 120, I get the wrong slice. Now I noticed if I swap the spacing with the spacing of the z axis (spacing[2]) then I get the middle slice of the z axis. Slice 81 (163/2 floored). Which makes me think the slice is somehow in z axis scale. So I tried manually rescaling the axesorigin by normalizing the slice. frac = slice / maxslice or 0.5 = 120 / 240. Then frac * size[2] or 0.5 * 163 * 1.0999. But the scaling is still off. While I get the correct slice from 120 all the others are still off. -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageReslicing-from-every-major-axis-problem-tp5743646.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien247 at gmail.com Thu Jun 15 09:02:33 2017 From: sebastien247 at gmail.com (sebastien247) Date: Thu, 15 Jun 2017 06:02:33 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED Message-ID: <1497531753548-5743647.post@n5.nabble.com> Hi, I try to use QVTKOpenGlWidget with Qt Designer. But i obtain a black screen in my VTK view. I run tests and following tests FAILED: 525 - vtkGUISupportQtCxx-TestQtDebugLeaksView (OTHER_FAULT) 526 - vtkGUISupportQtCxx-TestQtTableModelAdapter (OTHER_FAULT) 527 - vtkGUISupportQtCxx-TestQtTreeModelAdapter (OTHER_FAULT) 528 - vtkGUISupportQtCxx-TestQVTKOpenGLWidget (OTHER_FAULT) 529 - vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA (OTHER_FAULT) 530 - vtkGUISupportQtCxx-TestWin32QVTKWidget (OTHER_FAULT) 531 - vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 (OTHER_FAULT) Thanks S?bastien -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Jun 15 09:17:13 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 15 Jun 2017 15:17:13 +0200 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497531753548-5743647.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> Message-ID: 2017-06-15 15:02 GMT+02:00 sebastien247 : > Hi, > > I try to use QVTKOpenGlWidget with Qt Designer. But i obtain a black screen > in my VTK view. > > I run tests and following tests FAILED: > 525 - vtkGUISupportQtCxx-TestQtDebugLeaksView (OTHER_FAULT) > 526 - vtkGUISupportQtCxx-TestQtTableModelAdapter (OTHER_FAULT) > 527 - vtkGUISupportQtCxx-TestQtTreeModelAdapter (OTHER_FAULT) > 528 - vtkGUISupportQtCxx-TestQVTKOpenGLWidget (OTHER_FAULT) > 529 - vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA > (OTHER_FAULT) > 530 - vtkGUISupportQtCxx-TestWin32QVTKWidget (OTHER_FAULT) > 531 - vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 (OTHER_FAULT) > Hi Sebastien, Could you try disabling multi-sampling with: auto defaultFormat = QVTKOpenGLWidget::defaultFormat(); defaultFormat.setSamples(0); QSurfaceFormat::setDefaultFormat(defaultFormat); before constructing your QApplication. Or alternatively: vtkOpenGLRenderWindow::SetGlobalMaximumNumberOfMultiSamples(0); If that doesn't help, perhaps you are running into https://gitlab.kitware.com/vtk/vtk/issues/17058 On which platform/GPU is this? Elvis > Thanks > > S?bastien > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.c > om/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647.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/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien247 at gmail.com Thu Jun 15 10:16:18 2017 From: sebastien247 at gmail.com (sebastien247) Date: Thu, 15 Jun 2017 07:16:18 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> Message-ID: <1497536178414-5743649.post@n5.nabble.com> Hi Elvis, Thank you for your quick answer. Yes, i tried to disable multi-samplig with the same two snippets. The result is the same. I think it's more an installation problem than a code problem because unit tests don't work. My platform is Windows 10 and my Graphics card NVidia GeForce GTX 950. QT version 5.8 Best regards, S?bastien -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743649.html Sent from the VTK - Users mailing list archive at Nabble.com. From elvis.stansvik at orexplore.com Thu Jun 15 10:53:38 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Thu, 15 Jun 2017 16:53:38 +0200 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497536178414-5743649.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: 2017-06-15 16:16 GMT+02:00 sebastien247 : > Hi Elvis, > Thank you for your quick answer. > Yes, i tried to disable multi-samplig with the same two snippets. The > result > is the same. > I think it's more an installation problem than a code problem because unit > tests don't work. > > My platform is Windows 10 and my Graphics card NVidia GeForce GTX 950. > QT version 5.8 > Alright, then I don't know :/ (and it's probably not https://gitlab.kitware.com/vtk/vtk/issues/17058 , since that's Intel graphics specific). Perhaps one of the developers has an idea. Elvis > Best regards, > > S?bastien > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743649.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 sankhesh.jhaveri at kitware.com Thu Jun 15 11:01:35 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 15 Jun 2017 15:01:35 +0000 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: Hi Sebastien, Since the ctest result shows OTHER_FAULT, could you run one of the tests with verbose output to see what actual error you get? ctest -V -R TestQVTKOpenGLWidget Secondly, do other tests, other than QVTKOpenGLWidget ones, pass? Sankhesh ? On Thu, Jun 15, 2017 at 10:53 AM Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > 2017-06-15 16:16 GMT+02:00 sebastien247 : > >> Hi Elvis, >> Thank you for your quick answer. >> Yes, i tried to disable multi-samplig with the same two snippets. The >> result >> is the same. >> I think it's more an installation problem than a code problem because unit >> tests don't work. >> >> My platform is Windows 10 and my Graphics card NVidia GeForce GTX 950. >> QT version 5.8 >> > > Alright, then I don't know :/ (and it's probably not > https://gitlab.kitware.com/vtk/vtk/issues/17058 , since that's Intel > graphics specific). > > Perhaps one of the developers has an idea. > > Elvis > > >> Best regards, >> >> S?bastien >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743649.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien247 at gmail.com Thu Jun 15 11:02:04 2017 From: sebastien247 at gmail.com (sebastien247) Date: Thu, 15 Jun 2017 08:02:04 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: <1497538924585-5743652.post@n5.nabble.com> I has run "TestCase" with and without the argument "1" and everythink works fine. -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743652.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien247 at gmail.com Thu Jun 15 11:21:33 2017 From: sebastien247 at gmail.com (sebastien247) Date: Thu, 15 Jun 2017 08:21:33 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: <1497540093924-5743653.post@n5.nabble.com> No vtkGUISupportQtCxx tests passed. Result for ctest -V -R TestQVTKOpenGLWidget passed with command line, but not in VisualStudio 2015, it's very strange : D:\DevTools\VTK-8.0.0.rc2\build>"C:\Program Files\CMake\bin\ctest.exe" -V -R TestQVTKOpenGLWidget -C Release UpdateCTestConfiguration from :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Add coverage exclude regular expressions. Add coverage exclude: vtk.*TCLInit.cxx Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx Add coverage exclude: .*vtkOpenGLState.* Add coverage exclude: .*Testing.Cxx.*cxx Add coverage exclude: .*Testing.Cxx.*h Add coverage exclude: .*moc_.*cxx Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* Add coverage exclude: .*/Utilities/.* Add coverage exclude: .*/ThirdParty/.* Add coverage exclude: .*vtkOpenGLPolyDataMapper.* SetCTestConfiguration:CMakeCommand:C:/Program Files/CMake/bin/cmake.exe UpdateCTestConfiguration from :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Test project D:/DevTools/VTK-8.0.0.rc2/build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 528 Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget 528: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidget" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" 528: Test timeout computed to be: 1500 528: 0Standard0.559 528: 0.56 1/2 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget ........... Passed 0.75 sec test 529 Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA 529: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidgetWithMSAA" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" 529: Test timeout computed to be: 1500 529: 0Standard0.5 529: 0.501 2/2 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA ... Passed 0.64 sec The following tests passed: vtkGUISupportQtCxx-TestQVTKOpenGLWidget vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA 100% tests passed, 0 tests failed out of 2 Label Time Summary: vtkGUISupportQt = 1.39 sec (2 tests) Total Test time (real) = 1.71 sec -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743653.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Thu Jun 15 11:29:36 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 15 Jun 2017 15:29:36 +0000 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497540093924-5743653.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497540093924-5743653.post@n5.nabble.com> Message-ID: How are you running the tests from Visual Studio? If you?re setting the command manually, try adding a -V to the command arguments to get verbose output. ? On Thu, Jun 15, 2017 at 11:21 AM sebastien247 wrote: > No vtkGUISupportQtCxx tests passed. > > Result for ctest -V -R TestQVTKOpenGLWidget passed with command line, but > not in VisualStudio 2015, it's very strange : > > D:\DevTools\VTK-8.0.0.rc2\build>"C:\Program Files\CMake\bin\ctest.exe" -V > -R > TestQVTKOpenGLWidget -C Release > UpdateCTestConfiguration from > :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl > Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl > Add coverage exclude regular expressions. > Add coverage exclude: vtk.*TCLInit.cxx > Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx > Add coverage exclude: .*vtkOpenGLState.* > Add coverage exclude: .*Testing.Cxx.*cxx > Add coverage exclude: .*Testing.Cxx.*h > Add coverage exclude: .*moc_.*cxx > Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* > Add coverage exclude: .*/Utilities/.* > Add coverage exclude: .*/ThirdParty/.* > Add coverage exclude: .*vtkOpenGLPolyDataMapper.* > SetCTestConfiguration:CMakeCommand:C:/Program Files/CMake/bin/cmake.exe > UpdateCTestConfiguration from > :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl > Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl > Test project D:/DevTools/VTK-8.0.0.rc2/build > Constructing a list of tests > Done constructing a list of tests > Updating test list for fixtures > Added 0 tests to meet fixture requirements > Checking test dependency graph... > Checking test dependency graph end > test 528 > Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget > > 528: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQVTKOpenGLWidget" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" > > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" > 528: Test timeout computed to be: 1500 > 528: type="numeric/double">0 name="BaselineImage" > type="text/string">Standard name="WallTime" type="numeric/double">0.559 > 528: type="numeric/double">0.56 > 1/2 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget ........... Passed > 0.75 sec > test 529 > Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA > > 529: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQVTKOpenGLWidgetWithMSAA" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" > > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" > 529: Test timeout computed to be: 1500 > 529: type="numeric/double">0 name="BaselineImage" > type="text/string">Standard name="WallTime" type="numeric/double">0.5 > 529: type="numeric/double">0.501 > 2/2 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA ... Passed > 0.64 sec > > The following tests passed: > vtkGUISupportQtCxx-TestQVTKOpenGLWidget > vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA > > 100% tests passed, 0 tests failed out of 2 > > Label Time Summary: > vtkGUISupportQt = 1.39 sec (2 tests) > > Total Test time (real) = 1.71 sec > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743653.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien247 at gmail.com Thu Jun 15 11:30:13 2017 From: sebastien247 at gmail.com (sebastien247) Date: Thu, 15 Jun 2017 08:30:13 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: <1497540613109-5743654.post@n5.nabble.com> The verbose result with VisualStudio 2015 : test 525 Start 525: vtkGUISupportQtCxx-TestQtDebugLeaksView 525: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQtDebugLeaksView" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 525: Test timeout computed to be: 1500 525/1087 Test #525: vtkGUISupportQtCxx-TestQtDebugLeaksView ......................................***Exception: Other 0.01 sec test 526 Start 526: vtkGUISupportQtCxx-TestQtTableModelAdapter 526: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQtTableModelAdapter" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 526: Test timeout computed to be: 1500 526/1087 Test #526: vtkGUISupportQtCxx-TestQtTableModelAdapter ...................................***Exception: Other 0.00 sec test 527 Start 527: vtkGUISupportQtCxx-TestQtTreeModelAdapter 527: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQtTreeModelAdapter" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 527: Test timeout computed to be: 1500 527/1087 Test #527: vtkGUISupportQtCxx-TestQtTreeModelAdapter ....................................***Exception: Other 0.00 sec test 528 Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget 528: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidget" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" 528: Test timeout computed to be: 1500 528/1087 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget ......................................***Exception: Other 0.00 sec test 529 Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA 529: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidgetWithMSAA" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" 529: Test timeout computed to be: 1500 529/1087 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA ..............................***Exception: Other 0.00 sec test 530 Start 530: vtkGUISupportQtCxx-TestWin32QVTKWidget 530: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestWin32QVTKWidget" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 530: Test timeout computed to be: 1500 530/1087 Test #530: vtkGUISupportQtCxx-TestWin32QVTKWidget .......................................***Exception: Other 0.00 sec test 531 Start 531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 531: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtOpenGLCxxTests.exe "TestQVTKWidget2" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/QtOpenGL/Testing/Data/Baseline/TestQVTKWidget2.png" 531: Test timeout computed to be: 1500 531/1087 Test #531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 .....................................***Exception: Other 0.01 sec test 532 Start 532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase 532: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtSQLCxxTests.exe "TestQtSQLDatabase" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 532: Test timeout computed to be: 1500 532: QT_MODULE_SQL not enabled in this edition, so nothing to test. 532/1087 Test #532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase ...................................... Passed 0.01 sec -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743654.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Thu Jun 15 11:45:15 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 15 Jun 2017 15:45:15 +0000 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497540613109-5743654.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497540613109-5743654.post@n5.nabble.com> Message-ID: I don?t think the -V switch is passed to individual tests here. What is the command you use? Make sure that the environment variable *PATH* lists VTK /bin/ folder. ? On Thu, Jun 15, 2017 at 11:30 AM sebastien247 wrote: > The verbose result with VisualStudio 2015 : > > test 525 > Start 525: vtkGUISupportQtCxx-TestQtDebugLeaksView > > 525: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQtDebugLeaksView" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > 525: Test timeout computed to be: 1500 > 525/1087 Test #525: vtkGUISupportQtCxx-TestQtDebugLeaksView > ......................................***Exception: Other 0.01 sec > test 526 > Start 526: vtkGUISupportQtCxx-TestQtTableModelAdapter > > 526: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQtTableModelAdapter" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > 526: Test timeout computed to be: 1500 > 526/1087 Test #526: vtkGUISupportQtCxx-TestQtTableModelAdapter > ...................................***Exception: Other 0.00 sec > test 527 > Start 527: vtkGUISupportQtCxx-TestQtTreeModelAdapter > > 527: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQtTreeModelAdapter" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > 527: Test timeout computed to be: 1500 > 527/1087 Test #527: vtkGUISupportQtCxx-TestQtTreeModelAdapter > ....................................***Exception: Other 0.00 sec > test 528 > Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget > > 528: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQVTKOpenGLWidget" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" > > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" > 528: Test timeout computed to be: 1500 > 528/1087 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget > ......................................***Exception: Other 0.00 sec > test 529 > Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA > > 529: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestQVTKOpenGLWidgetWithMSAA" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" > > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" > 529: Test timeout computed to be: 1500 > 529/1087 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA > ..............................***Exception: Other 0.00 sec > test 530 > Start 530: vtkGUISupportQtCxx-TestWin32QVTKWidget > > 530: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe > "TestWin32QVTKWidget" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > 530: Test timeout computed to be: 1500 > 530/1087 Test #530: vtkGUISupportQtCxx-TestWin32QVTKWidget > .......................................***Exception: Other 0.00 sec > test 531 > Start 531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 > > 531: Test command: > > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtOpenGLCxxTests.exe > "TestQVTKWidget2" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > "-V" > > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/QtOpenGL/Testing/Data/Baseline/TestQVTKWidget2.png" > 531: Test timeout computed to be: 1500 > 531/1087 Test #531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 > .....................................***Exception: Other 0.01 sec > test 532 > Start 532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase > > 532: Test command: > D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtSQLCxxTests.exe > "TestQtSQLDatabase" "-D" > "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" > "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" > 532: Test timeout computed to be: 1500 > 532: QT_MODULE_SQL not enabled in this edition, so nothing to test. > 532/1087 Test #532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase > ...................................... Passed 0.01 sec > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743654.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Thu Jun 15 11:41:35 2017 From: tjlp at netease.com (Liu_tj) Date: Thu, 15 Jun 2017 23:41:35 +0800 (CST) Subject: [vtkusers] How to get the right 3D world position for the 2d point selected on DICOM slice? Message-ID: <3738e76e.11.15cac6abc58.Coremail.tjlp@netease.com> Hi, In our application, we have 3 2d views using vtkImageViewer2 to display the sagittal, coronal and axial view of the DICOMs, and we have another view for the generated 3D model. Now I want to achieve the requirement below: If user click a point on one slice on the 2D view, I need to get the corresponding 3D point on the 3D model view. If user click a point on the 3D model view, I need to get the corresponding 2D point and slice number. How to achieve that? Thanks tjlp -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Thu Jun 15 12:16:49 2017 From: DLRdave at aol.com (David Cole) Date: Thu, 15 Jun 2017 12:16:49 -0400 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497540613109-5743654.post@n5.nabble.com> Message-ID: You need "ctest -VV" to see the actual output from each individual test. On Thu, Jun 15, 2017 at 11:45 AM, Sankhesh Jhaveri wrote: > I don?t think the -V switch is passed to individual tests here. > What is the command you use? > > Make sure that the environment variable PATH lists VTK dir>/bin/ folder. > > > On Thu, Jun 15, 2017 at 11:30 AM sebastien247 > wrote: >> >> The verbose result with VisualStudio 2015 : >> >> test 525 >> Start 525: vtkGUISupportQtCxx-TestQtDebugLeaksView >> >> 525: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestQtDebugLeaksView" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> 525: Test timeout computed to be: 1500 >> 525/1087 Test #525: vtkGUISupportQtCxx-TestQtDebugLeaksView >> ......................................***Exception: Other 0.01 sec >> test 526 >> Start 526: vtkGUISupportQtCxx-TestQtTableModelAdapter >> >> 526: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestQtTableModelAdapter" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> 526: Test timeout computed to be: 1500 >> 526/1087 Test #526: vtkGUISupportQtCxx-TestQtTableModelAdapter >> ...................................***Exception: Other 0.00 sec >> test 527 >> Start 527: vtkGUISupportQtCxx-TestQtTreeModelAdapter >> >> 527: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestQtTreeModelAdapter" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> 527: Test timeout computed to be: 1500 >> 527/1087 Test #527: vtkGUISupportQtCxx-TestQtTreeModelAdapter >> ....................................***Exception: Other 0.00 sec >> test 528 >> Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget >> >> 528: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestQVTKOpenGLWidget" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" >> >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" >> 528: Test timeout computed to be: 1500 >> 528/1087 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget >> ......................................***Exception: Other 0.00 sec >> test 529 >> Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA >> >> 529: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestQVTKOpenGLWidgetWithMSAA" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" >> >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" >> 529: Test timeout computed to be: 1500 >> 529/1087 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA >> ..............................***Exception: Other 0.00 sec >> test 530 >> Start 530: vtkGUISupportQtCxx-TestWin32QVTKWidget >> >> 530: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe >> "TestWin32QVTKWidget" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> 530: Test timeout computed to be: 1500 >> 530/1087 Test #530: vtkGUISupportQtCxx-TestWin32QVTKWidget >> .......................................***Exception: Other 0.00 sec >> test 531 >> Start 531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 >> >> 531: Test command: >> >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtOpenGLCxxTests.exe >> "TestQVTKWidget2" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> "-V" >> >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/QtOpenGL/Testing/Data/Baseline/TestQVTKWidget2.png" >> 531: Test timeout computed to be: 1500 >> 531/1087 Test #531: vtkGUISupportQtOpenGLCxx-TestQVTKWidget2 >> .....................................***Exception: Other 0.01 sec >> test 532 >> Start 532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase >> >> 532: Test command: >> D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtSQLCxxTests.exe >> "TestQtSQLDatabase" "-D" >> "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" >> "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" >> 532: Test timeout computed to be: 1500 >> 532: QT_MODULE_SQL not enabled in this edition, so nothing to test. >> 532/1087 Test #532: vtkGUISupportQtSQLCxx-TestQtSQLDatabase >> ...................................... Passed 0.01 sec >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743654.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 > > -- > > Sankhesh Jhaveri > > Sr. Research & Development Engineer | Kitware | (518) 881-4417 > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > From Andx_roo at live.com Thu Jun 15 13:40:23 2017 From: Andx_roo at live.com (Andaharoo) Date: Thu, 15 Jun 2017 10:40:23 -0700 (MST) Subject: [vtkusers] How to get the right 3D world position for the 2d point selected on DICOM slice? In-Reply-To: <3738e76e.11.15cac6abc58.Coremail.tjlp@netease.com> References: <3738e76e.11.15cac6abc58.Coremail.tjlp@netease.com> Message-ID: <1497548423265-5743659.post@n5.nabble.com> I've been using vtkPicker to get the point on the image plane. Basically you give it the actor, call pick, and it gives you the point on the plane. If you want to convert that point to your image coordinates you can divide by the image spacing and round. http://www.vtk.org/Wiki/VTK/Examples/Cxx/Images/PickingAPixel2 this is a good example but has one error in it. I'd suggest something more like this when calculating the final point. x = imageViewer->GetSlice(); y = vtkMath::Round(pos[1] / spacing[1]); z = vtkMath::Round(pos[2] / spacing[2]); As you can see in the example, depending on your orientation this changes. But they didn't account for images with spacing that isn't 1. And there is a typo I fixed in the orientation example I provided above. (instead of pos[0] and pos[1] it's pos[1] and pos[2]) -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-the-right-3D-world-position-for-the-2d-point-selected-on-DICOM-slice-tp5743657p5743659.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien247 at gmail.com Fri Jun 16 03:16:16 2017 From: sebastien247 at gmail.com (sebastien247) Date: Fri, 16 Jun 2017 00:16:16 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497540613109-5743654.post@n5.nabble.com> Message-ID: <1497597376293-5743660.post@n5.nabble.com> Thank you for your help. For VisualStudio I build "RUN_TESTS" with this change in Properties > Build Events > Post-Build Event : /setlocal "C:\Program Files\CMake\bin\ctest.exe" --force-new-ctest-process -VV -C $(Configuration) if %errorlevel% neq 0 goto :cmEnd :cmEnd endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone :cmErrorLevel exit /b %1 :cmDone if %errorlevel% neq 0 goto :VCEnd/ But the result is the same like "-V" : / test 525 Start 525: vtkGUISupportQtCxx-TestQtDebugLeaksView 525: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQtDebugLeaksView" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" 525: Test timeout computed to be: 1500 525/1087 Test #525: vtkGUISupportQtCxx-TestQtDebugLeaksView ......................................***Exception: Other 0.01 sec/ The result with -VV in command line is : /*D:\DevTools\VTK-8.0.0.rc2\build>"C:\Program Files\CMake\bin\ctest.exe" -VV -R TestQVTKOpenGLWidget -C Release* UpdateCTestConfiguration from :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Add coverage exclude regular expressions. Add coverage exclude: vtk.*TCLInit.cxx Add coverage exclude: vtk[^\.]+(Java|Python|Tcl).cxx Add coverage exclude: .*vtkOpenGLState.* Add coverage exclude: .*Testing.Cxx.*cxx Add coverage exclude: .*Testing.Cxx.*h Add coverage exclude: .*moc_.*cxx Add coverage exclude: .*/Rendering/OpenGL/vtkgl.* Add coverage exclude: .*/Utilities/.* Add coverage exclude: .*/ThirdParty/.* Add coverage exclude: .*vtkOpenGLPolyDataMapper.* SetCTestConfiguration:CMakeCommand:C:/Program Files/CMake/bin/cmake.exe UpdateCTestConfiguration from :D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Parse Config file:D:/DevTools/VTK-8.0.0.rc2/build/DartConfiguration.tcl Test project D:/DevTools/VTK-8.0.0.rc2/build Constructing a list of tests Done constructing a list of tests Updating test list for fixtures Added 0 tests to meet fixture requirements Checking test dependency graph... Checking test dependency graph end test 528 Start 528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget 528: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidget" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidget.png" 528: Test timeout computed to be: 1500 528: 0Standard0.459 528: 0.46 1/2 Test #528: vtkGUISupportQtCxx-TestQVTKOpenGLWidget ........... Passed 0.56 sec test 529 Start 529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA 529: Test command: D:\DevTools\VTK-8.0.0.rc2\build\bin\Release\vtkGUISupportQtCxxTests.exe "TestQVTKOpenGLWidgetWithMSAA" "-D" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData//Testing" "-T" "D:/DevTools/VTK-8.0.0.rc2/build/Testing/Temporary" "-V" "D:/DevTools/VTK-8.0.0.rc2/build/ExternalData/GUISupport/Qt/Testing/Data/Baseline/TestQVTKOpenGLWidgetWithMSAA.png" 529: Test timeout computed to be: 1500 529: 0Standard0.504 529: 0.504 2/2 Test #529: vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA ... Passed 0.61 sec The following tests passed: vtkGUISupportQtCxx-TestQVTKOpenGLWidget vtkGUISupportQtCxx-TestQVTKOpenGLWidgetWithMSAA 100% tests passed, 0 tests failed out of 2/ Label Time Summary: vtkGUISupportQt = 1.17 sec (2 tests) Total Test time (real) = 1.48 -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743660.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien247 at gmail.com Fri Jun 16 09:14:07 2017 From: sebastien247 at gmail.com (sebastien247) Date: Fri, 16 Jun 2017 06:14:07 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497597376293-5743660.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497540613109-5743654.post@n5.nabble.com> <1497597376293-5743660.post@n5.nabble.com> Message-ID: <1497618847757-5743663.post@n5.nabble.com> I see this issue : https://gitlab.kitware.com/cmake/cmake/issues/15732 -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743663.html Sent from the VTK - Users mailing list archive at Nabble.com. From nabil.bhk at gmail.com Fri Jun 16 10:14:42 2017 From: nabil.bhk at gmail.com (na_bil) Date: Fri, 16 Jun 2017 07:14:42 -0700 (MST) Subject: [vtkusers] vtkBooleanOperationPolyDataFilter creates non-manifold edges In-Reply-To: <1463478477274-5738113.post@n5.nabble.com> References: <1463302418839-5738088.post@n5.nabble.com> <1463437587857-5738108.post@n5.nabble.com> <1463478477274-5738113.post@n5.nabble.com> Message-ID: <1497622482731-5743665.post@n5.nabble.com> Hi normanius, I need to use Adam algorithm, could you please guide me how. I use VTK 7.1 Thx -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkBooleanOperationPolyDataFilter-creates-non-manifold-edges-tp5738088p5743665.html Sent from the VTK - Users mailing list archive at Nabble.com. From juch at zhaw.ch Fri Jun 16 11:22:15 2017 From: juch at zhaw.ch (normanius) Date: Fri, 16 Jun 2017 08:22:15 -0700 (MST) Subject: [vtkusers] vtkBooleanOperationPolyDataFilter creates non-manifold edges In-Reply-To: <1497622482731-5743665.post@n5.nabble.com> References: <1463302418839-5738088.post@n5.nabble.com> <1463437587857-5738108.post@n5.nabble.com> <1463478477274-5738113.post@n5.nabble.com> <1497622482731-5743665.post@n5.nabble.com> Message-ID: <1497626535469-5743666.post@n5.nabble.com> Hi You need to checkout the version and build it from source. Unfortunately, Adam's code has not been merged to Master yet. Documentation of the branch: [1] https://gitlab.kitware.com/vtk/vtk/merge_requests/1272 [2] https://gitlab.kitware.com/updega2/vtk/commits/boolean_retry Try to use git rebase if you want to use a newer version of vtk as reference, maybe you are lucky and don't get any merge conflicts. HTH -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkBooleanOperationPolyDataFilter-creates-non-manifold-edges-tp5738088p5743666.html Sent from the VTK - Users mailing list archive at Nabble.com. From jason.kimmel at albint.com Fri Jun 16 11:34:09 2017 From: jason.kimmel at albint.com (Kimmel, Jason) Date: Fri, 16 Jun 2017 15:34:09 +0000 Subject: [vtkusers] vtkLegendBoxActor Not Updating In-Reply-To: References: Message-ID: Hi, As I suspected, a smaller example trying to create the same scenario failed to reproduce the same behavior. We were able to work around this in the larger application by updating the vtkLegendBoxActor at the same time as the 3D actors instead of in a separate update after the 3D actors we re-rendered. Previously there had been an invocation of Qt?s event loop (and vtk?s render process) separating the updates of the legend and 3D actors. Hopefully this may help someone else facing similar problems, or help narrow down where the issue might be occurring. -Jason From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Kimmel, Jason via vtkusers Sent: Monday, June 12, 2017 2:11 PM To: Sankhesh Jhaveri ; vtk-users Subject: Re: [vtkusers] vtkLegendBoxActor Not Updating Hi Sankesh, Unfortunately the circumstances involved include a large (and proprietary) application. I?ll see if it is possible to create a test case which can recreate the issue, and if so file a bug report. I have a feeling that everything may work properly in the simplified scenario though. Thanks, Jason From: Sankhesh Jhaveri [mailto:sankhesh.jhaveri at kitware.com] Sent: Monday, June 12, 2017 1:51 PM To: Kimmel, Jason >; vtk-users > Subject: Re: [vtkusers] vtkLegendBoxActor Not Updating Hi Jason, Could you post some example code that reproduces the issue? Perhaps, create a bug report on the VTK bug tracker, too. ? On Mon, Jun 12, 2017 at 1:37 PM Kimmel, Jason via vtkusers > wrote: Hello, We are using VTK 7.1 with Qt 5.8 on windows and are seeing some bizarre behavior with vtkLegendBoxActor. Under some circumstances which can be reliably reproduced, the screen does not update to show new values in the legend, even if the legend is deleted and re-created. Only when a user clicks in the renderwindow (or we simulate a mouse event) do the new values appear. The 3D actors displayed by the same renderer/renderwindow update as expected, so we know that the render does redraw the scene and the QVTK widget does display it. Does anyone have any idea why that might be happening, or if there is a way to force all actors to update? Our current workaround is to simulate a mouse event to force the update, but this is relatively time-consuming for what should be a simple update of a 2D actor. Thanks for your help, Jason _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: 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 -- Sankhesh Jhaveri Sr. Research & Development Engineer | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Fri Jun 16 12:36:15 2017 From: rickfrank at me.com (Richard Frank) Date: Fri, 16 Jun 2017 12:36:15 -0400 Subject: [vtkusers] ] How to get the right 3D world position for the 2d Message-ID: <004e01d2e6be$acec0790$06c416b0$@me.com> > > Hi, > > In our application, we have 3 2d views using vtkImageViewer2 to display the > sagittal, coronal and axial view of the DICOMs, and we have another view for > the generated 3D model. Now I want to achieve the requirement below: > > If user click a point on one slice on the 2D view, I need to get the > corresponding 3D point on the 3D model view. > If user click a point on the 3D model view, I need to get the corresponding 2D > point and slice number. > > How to achieve that? > > Thanks > tjlp Depending on how you load the data into the vtkImage, you will need to map from voxel space (I,j,k) to patient space (L,P,S, or R,A S) In general, you will use Equation C.7.6.2.1-1. As seen here http://dicom.nema.org/medical/dicom/current/output/html/part03.html#sect_C.7 .6.2.1.1 The equation doesn't show Z or k values, so you would have to consider them (the Z direction cosines vector, and the k value in the image volume) as part of a 3 dimensional mapping. HTH Rick Frank Dominion Software, Inc. www.dominionsw.com From llangholz89 at gmail.com Fri Jun 16 14:11:37 2017 From: llangholz89 at gmail.com (Logan Langholz) Date: Fri, 16 Jun 2017 12:11:37 -0600 Subject: [vtkusers] vtk JS - Slice Scrolling with vtkInteractorStyleImage Message-ID: <36A988B1-8624-4DD0-A90C-0C9E81AE83C9@gmail.com> Hello, I?ve been playing around with the vtk.js library and am currently stuck when trying to scroll through slices of a volume using the vtkInteractorStyleImage class. Using the examples as a guide and the ?LIDC2.vti? example volume, I can get various slices to show up on loading with ?mapper.setZSclice()?, but am then unable to scroll through. Here?s that bit of the code: const mapper = vtkImageMapper.newInstance(); mapper.setInputData(data); mapper.setZSlice(50); const iStyle = vtkInteractorStyleImage.newInstance(); iStyle.setInteractionMode(?IMAGE_SLICING?); renderWindow.getInteractor().setInteractorStyle(iStyle); Looking at the source code, clicking while holding ?control? should allow me to scroll through, but I?m not getting that event. If I switch the interaction mode to ?IMAGE3D? and hold shift, I can get the expected rotation event. I?m not sure if it?s just something simple that I?m overlooking in the setup (which is likely given that I?m still relatively new to this), but I appreciate any help and pointers! Cheers, -Logan From sebastien.jourdain at kitware.com Fri Jun 16 15:19:15 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Fri, 16 Jun 2017 13:19:15 -0600 Subject: [vtkusers] vtk JS - Slice Scrolling with vtkInteractorStyleImage In-Reply-To: <36A988B1-8624-4DD0-A90C-0C9E81AE83C9@gmail.com> References: <36A988B1-8624-4DD0-A90C-0C9E81AE83C9@gmail.com> Message-ID: Hi Logan, I think the zooming action is going through the slices. Ctrl + drag seems to do the trick for me. If you want, you can report an issue on the project itself. https://github.com/kitware/vtk-js/issues Thanks, Seb On Fri, Jun 16, 2017 at 12:11 PM, Logan Langholz wrote: > Hello, > > I?ve been playing around with the vtk.js library and am currently stuck > when trying to scroll through slices of a volume using the > vtkInteractorStyleImage class. Using the examples as a guide and the > ?LIDC2.vti? example volume, I can get various slices to show up on loading > with ?mapper.setZSclice()?, but am then unable to scroll through. Here?s > that bit of the code: > > const mapper = vtkImageMapper.newInstance(); > mapper.setInputData(data); > mapper.setZSlice(50); > > const iStyle = vtkInteractorStyleImage.newInstance(); > iStyle.setInteractionMode(?IMAGE_SLICING?); > renderWindow.getInteractor().setInteractorStyle(iStyle); > > Looking at the source code, clicking while holding ?control? should allow > me to scroll through, but I?m not getting that event. If I switch the > interaction mode to ?IMAGE3D? and hold shift, I can get the expected > rotation event. > > I?m not sure if it?s just something simple that I?m overlooking in the > setup (which is likely given that I?m still relatively new to this), but I > appreciate any help and pointers! > > Cheers, > > -Logan > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 agatakrason at gmail.com Fri Jun 16 15:35:31 2017 From: agatakrason at gmail.com (agatte) Date: Fri, 16 Jun 2017 12:35:31 -0700 (MST) Subject: [vtkusers] How to set fixed number of points to deciomation ? Message-ID: <1497641731041-5743673.post@n5.nabble.com> Hello, I have a big triangle meshes. I would like to perform decimantion to 1000 points. Is it possible to decimate to fixed numer of points or polygons and triangles ? I would appreciate for any help/info. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-fixed-number-of-points-to-deciomation-tp5743673.html Sent from the VTK - Users mailing list archive at Nabble.com. From john.j.russell95 at gmail.com Fri Jun 16 16:01:12 2017 From: john.j.russell95 at gmail.com (jrtn) Date: Fri, 16 Jun 2017 13:01:12 -0700 (MST) Subject: [vtkusers] Activiz 7.1 - Redefinition errors while compiling Message-ID: <1497643272345-5743675.post@n5.nabble.com> Windows 7 Visual Studio 2008 Express w/ SP1 I'm trying to compile Activiz 7.1 with VTK 7.0. I have mummy and gccxml both compiled and installed. I also have VTK compiling. When I build the ALL_BUILD rule for Activiz, I get the following error: /c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:102: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:94: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:111: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:94: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:121: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:94: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:154: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:146: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:163: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:146: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:173: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:146: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:206: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:198: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:215: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:198: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:225: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:198: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:258: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:250: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:267: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:250: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:277: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:250: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::*)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:310: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:302: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:319: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:302: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:329: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:302: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4), _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:362: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:354: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:371: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:354: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:381: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 6>C:/Users/RUSSELLJJ/Documents/VTK/Activiz/vtk-7.0/Wrapping/Tools/hints(251): warning: m6021: More than one line in the hints file for vtkTypeInt64Array::GetValueRange 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:354: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 6>C:/Users/RUSSELLJJ/Documents/VTK/Activiz/vtk-7.0/Wrapping/Tools/hints(253): warning: m6021: More than one line in the hints file for vtkTypeUInt64Array::GetValueRange 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:414: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:406: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:423: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:406: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:433: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:406: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:466: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:458: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:475: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:458: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:485: error: redefinition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xxresult:458: error: previous definition of 'struct std::tr1::_Result_of5<_Rx (_Arg0::* const)(_Arg1, _Arg2, _Arg3, _Arg4)const volatile, _Farg0&, _Farg1, _Farg2, _Farg3, _Farg4>' 5>In file included from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xfwrap1:222, 5> from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xfwrap:40, 5> from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xrefwrap:44, 5> from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/functional:874, 5> from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/xtree:6, 5> from c:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/include/map:6, 5> from C:/Users/RUSSELLJJ/Documents/VTK/Activiz/vtk-7.0/Rendering/OpenGL2/vtkOpenGLRenderWindow.h:27, 5> from C:/Users/RUSSELLJJ/Documents/VTK/Activiz/vtk-7.0/Rendering/OpenGL2/vtkWin32OpenGLRenderWindow.h:25, 5> from C:/Users/RUSSELLJJ/Documents/VTK/Activiz/activiz-build/xml/vtkWin32OpenGLRenderWindow_gccxml.cxx:1:/ This same error happens multiple times for different files, and each time the error messages range from structs _Result_of1 through _Result_of10. I see in the Activiz build article(http://www.vtk.org/Wiki/VTK/CSharp/ActiViz/Build) that adding /SET (GCCXML_EXTRA_D_ARGS "_HAS_TR1=0")/ to the CMakeLists file should fix this, but I've tried compiling both with and without that line (and the line adding it to the command) yet the error persists. Has anyone encountered this and found a solution? Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-7-1-Redefinition-errors-while-compiling-tp5743675.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Jun 17 00:47:14 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 16 Jun 2017 22:47:14 -0600 Subject: [vtkusers] vtkImageReslicing from every major axis problem In-Reply-To: <1497504931852-5743646.post@n5.nabble.com> References: <1497504931852-5743646.post@n5.nabble.com> Message-ID: Hi Andaharoo, It's possible to simplify things by using one transformation instead of two: When using SetResliceAxesOrigin(), it's best to use SetResliceAxesDirectionCosines() to set the orientation instead of SetResliceTransform(). I'm going to define maxpos[] instead of extent[]: maxpos[i] = (dim[i] - 1) * spacing[i] The "- 1" is very important: the idea here is that the first slice is at position 0, and the last slice is at position n-1 if "n" is the number of slices. Then we can set up vtkImageReslice as follows: reslicer->SetResliceAxesOrigin(slice * spacing[0], 0.0, maxpos[2]); reslicer->SetResliceAxesDirectionCosines(0.0, 1.0, 0.0, 0.0, 0.0, -1.0, -1.0, 0.0, 0.0); reslicer->SetOutputOrigin(0.0, 0.0, 0.0); The "direction cosines" specify the orientation of the extracted slices: in the above example, (0, 1, 0) is in the "y" direction and (0, 0, -1) is in the "-z" direction so it will show a slice from the YZ plane. The third direction (-1, 0, 0) is the slicing direction, and it must be set to the cross product of the other two directions. The reason that the ResliceAxesOrigin must be set to (slicepos, 0.0, maxpos[2]) in this case is that the "z" component of one of the direction cosines is negative. - David On Wed, Jun 14, 2017 at 11:35 PM, Andaharoo wrote: > I have a program that shows the three major axii of a volume using > vtkImageViewer2 and I want to output a single image given the x, y, or z > slice number. I've been using vtkImageReslice to accomplish this task. > Outputting the XY plane is easy, I just do: > > reslicer->setResliceAxesOrigin(0, 0, slice * spacing[2]); > > I don't have to transform the plane as XY is default. Then I just set the z > of the plane, which in physical space would be the slice number * spacing. > > Now to do the same thing but with the YZ plane I do: > > reslicer->SetResliceAxesOrigin(0, 0, slice * spacing[0]); > transform->Translate(extent[0], extent[1], extent[2]); > transform->RotateY(90); > transform->Translate(-extent[0], -extent[1], -extent[2]); > reslicer->SetResliceTransform(transform); > > Note: extent[i] = dim[i] * spacing[i], not vtk's image data extent. > > So I transform to the origin, then rotate the plane on the Y axis. I've > noticed that the axes origin gets applied after transform so the slice > number that would have been on the x axis should be specified as z in > SetResliceAxesOrigin. Also to get the correct depth of the slice I need the > spacing from the corresponding axis in the image which would be x axis > spacing or spacing[0]. > > Now the problem is that while the transform works perfectly the slice > number > isn't the correct one. In fact it's a suspicious number. > > With this input image: > Dim = 240, 240, 163 > Spacing = 1.0444, 1.0444, 1.0999 > Dim with Spacing (size) ~ 249, 249, 179 > > When I try to export the middle slice, 120, I get the wrong slice. Now I > noticed if I swap the spacing with the spacing of the z axis (spacing[2]) > then I get the middle slice of the z axis. Slice 81 (163/2 floored). Which > makes me think the slice is somehow in z axis scale. So I tried manually > rescaling the axesorigin by normalizing the slice. frac = slice / maxslice > or 0.5 = 120 / 240. Then frac * size[2] or 0.5 * 163 * 1.0999. But the > scaling is still off. While I get the correct slice from 120 all the others > are still off. > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/vtkImageReslicing-from-every-major-axis-problem-tp5743646.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 llangholz89 at gmail.com Sat Jun 17 10:38:46 2017 From: llangholz89 at gmail.com (Logan Langholz) Date: Sat, 17 Jun 2017 08:38:46 -0600 Subject: [vtkusers] vtk JS - Slice Scrolling with vtkInteractorStyleImage In-Reply-To: References: <36A988B1-8624-4DD0-A90C-0C9E81AE83C9@gmail.com> Message-ID: Hi Seb, Thanks for the response. When you say the zooming action, are you referencing the ?scroll event?? Frankly, that would be a preferable way for me to scroll through the slices, and I was actually wondering if there was a way to customize those events to whatever action the user wanted (scroll vs. ctl+drag vs. ctl+shift etc.). Anyway, the ctl+drag event still doesn?t seem to work, so I will go ahead and open the issue on GitHub. I?m working on an MBP and tried both 'control+drag' and 'command+drag?; command+drag fired a window/level event while control+drag didn?t do anything. The issue appears in all browsers as well. I?ll open the issue on GitHub, and in the mean time if anyone has any thoughts or ideas I?m all ears! Thanks! -Logan > On Jun 16, 2017, at 1:19 PM, Sebastien Jourdain wrote: > > Hi Logan, > > I think the zooming action is going through the slices. > Ctrl + drag seems to do the trick for me. > > If you want, you can report an issue on the project itself. > https://github.com/kitware/vtk-js/issues > > Thanks, > > Seb > > On Fri, Jun 16, 2017 at 12:11 PM, Logan Langholz > wrote: > Hello, > > I?ve been playing around with the vtk.js library and am currently stuck when trying to scroll through slices of a volume using the vtkInteractorStyleImage class. Using the examples as a guide and the ?LIDC2.vti? example volume, I can get various slices to show up on loading with ?mapper.setZSclice()?, but am then unable to scroll through. Here?s that bit of the code: > > const mapper = vtkImageMapper.newInstance(); > mapper.setInputData(data); > mapper.setZSlice(50); > > const iStyle = vtkInteractorStyleImage.newInstance(); > iStyle.setInteractionMode(?IMAGE_SLICING?); > renderWindow.getInteractor().setInteractorStyle(iStyle); > > Looking at the source code, clicking while holding ?control? should allow me to scroll through, but I?m not getting that event. If I switch the interaction mode to ?IMAGE3D? and hold shift, I can get the expected rotation event. > > I?m not sure if it?s just something simple that I?m overlooking in the setup (which is likely given that I?m still relatively new to this), but I appreciate any help and pointers! > > Cheers, > > -Logan > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: 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 leonid.gluhovsky at gmail.com Mon Jun 19 04:09:37 2017 From: leonid.gluhovsky at gmail.com (leonid) Date: Mon, 19 Jun 2017 01:09:37 -0700 (MST) Subject: [vtkusers] slicing artifact when rendering semi-transparent mesh Message-ID: <1497859777925-5743682.post@n5.nabble.com> Dear all, I have a triangle mesh with no non-manifold edges, with computed normals and correctly oriented triangles. The mesh is available at: http://schket.freeshell.org/prog/chamber-euclidean.vtk I want to render it semi-transparent. Paraview renders it perfectly. But when I render it in VTK, using this straightforward code: import vtk def main(): window = vtk.vtkRenderWindow() window.SetSize(500, 500) ren = vtk.vtkRenderer() window.AddRenderer(ren) interactor = vtk.vtkRenderWindowInteractor() interactor.SetRenderWindow(window) interactor.Initialize() reader = vtk.vtkXMLPolyDataReader() reader.SetFileName('chamber-euclidean.vtp') reader.Update() polydata = reader.GetOutput() mapper = vtk.vtkPolyDataMapper() mapper.SetInputData(polydata) actor = vtk.vtkActor() actor.SetMapper(mapper) actor.GetProperty().SetOpacity(0.5) ren.AddActor(actor) interactor.Start() main() I get artifacts which look like there are some slicing planes inside the mesh (in reality there are none). The artifacts are observed only at certain viewing angles. You can see an image with artifacts here: http://schket.freeshell.org/prog/artifact-image2.png The artifacts occur both with VTK 6.3 and vtk 7.0, both on Windows and on Linux. The hardware is NVIDIA. Paraview on the same hardware renders without artifacts. What am I doing wrong? How to get rid of them? Many thanks, leonid -- View this message in context: http://vtk.1045678.n5.nabble.com/slicing-artifact-when-rendering-semi-transparent-mesh-tp5743682.html Sent from the VTK - Users mailing list archive at Nabble.com. From leonid.gluhovsky at gmail.com Mon Jun 19 06:22:27 2017 From: leonid.gluhovsky at gmail.com (leonid) Date: Mon, 19 Jun 2017 03:22:27 -0700 (MST) Subject: [vtkusers] slicing artifact when rendering semi-transparent mesh In-Reply-To: <1497859777925-5743682.post@n5.nabble.com> References: <1497859777925-5743682.post@n5.nabble.com> Message-ID: <1497867747572-5743684.post@n5.nabble.com> My mesh is produced by vtkMarchingCubes, and I can see that its nodes line up in neat lines (I'm attaching the image "original-edges.png" to illustrate it). I ran 200 iterations of vtkSmoothPolyData filter, and I can see much less regularity in mesh nodes (see the attachment "smoothed200-edges.png") The artifacts are now reduced, and they also became less regular, but they are still too noticeable for my purposes. The question still remains - why are there no artifacts in Paraview? -- View this message in context: http://vtk.1045678.n5.nabble.com/slicing-artifact-when-rendering-semi-transparent-mesh-tp5743682p5743684.html Sent from the VTK - Users mailing list archive at Nabble.com. From jayavardhanravi at outlook.com Mon Jun 19 09:20:28 2017 From: jayavardhanravi at outlook.com (kay) Date: Mon, 19 Jun 2017 06:20:28 -0700 (MST) Subject: [vtkusers] Linking to Physics libraries In-Reply-To: References: <1496701542609-5743554.post@n5.nabble.com> Message-ID: <1497878428153-5743686.post@n5.nabble.com> Thanks for the reply. This was helpful. -- View this message in context: http://vtk.1045678.n5.nabble.com/Linking-to-Physics-libraries-tp5743554p5743686.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.lonie at kitware.com Mon Jun 19 11:02:10 2017 From: david.lonie at kitware.com (David Lonie) Date: Mon, 19 Jun 2017 11:02:10 -0400 Subject: [vtkusers] Problem in Text rendering in VTK 5.10 In-Reply-To: <1292368446.611.1497863551725.JavaMail.administrator@static.162.255.23.22.macminivault.com> References: <1292368446.611.1497863551725.JavaMail.administrator@static.162.255.23.22.macminivault.com> Message-ID: I'm not sure which commit exactly would have fixed that specific problem, but it's likely one of these: https://github.com/Kitware/VTK/commits/master/Rendering/FreeType/vtkFreeTypeTools.cxx On Mon, Jun 19, 2017 at 5:12 AM, wrote: > what's the problem in vtk 5.10 that is causing this ? how it was fixed in later versions ? > > > > These problems were fixed in the rewrite of VTK's text rendering backend > that occurred around the release of version 6.0. A newer version of VTK > should fix this, but let us know if you still see this in version 6 or > later. > > Hope this helps, > Dave > > > On Mon, Feb 10, 2014 at 5:38 AM, dev wrote: > >> here is an other screen shot. As we see here, the number '11' is not fully >> rendered. >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Problem-in-Text-rendering-in-VTK-5-10-tp5725826p5725827.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 >> >> Follow this link to subscribe/unsubscribe: >> http://www.vtk.org/mailman/listinfo/vtkusers >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Follow this link to subscribe/unsubscribe: > http://www.vtk.org/mailman/listinfo/vtkusers > > > Quoted from: > http://vtk.1045678.n5.nabble.com/Problem-in-Text-rendering-in-VTK-Aliased-tp5725826p5725865.html > > > _____________________________________ > Sent from http://vtk.1045678.n5.nabble.com > From spir.robert at gmail.com Mon Jun 19 11:45:52 2017 From: spir.robert at gmail.com (=?iso-8859-2?B?UvNiZXJ0IKlwaXI=?=) Date: Mon, 19 Jun 2017 17:45:52 +0200 Subject: [vtkusers] slicing artifact when rendering semi-transparent mesh In-Reply-To: <1497867747572-5743684.post@n5.nabble.com> References: <1497859777925-5743682.post@n5.nabble.com> <1497867747572-5743684.post@n5.nabble.com> Message-ID: <000001d2e913$226d8920$67489b60$@gmail.com> Hi, try to use depth peeling as described here http://www.vtk.org/Wiki/VTK/Depth_Peeling Robert -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of leonid Sent: Monday, June 19, 2017 12:22 PM To: vtkusers at vtk.org Subject: Re: [vtkusers] slicing artifact when rendering semi-transparent mesh My mesh is produced by vtkMarchingCubes, and I can see that its nodes line up in neat lines (I'm attaching the image "original-edges.png" to illustrate it). I ran 200 iterations of vtkSmoothPolyData filter, and I can see much less regularity in mesh nodes (see the attachment "smoothed200-edges.png") The artifacts are now reduced, and they also became less regular, but they are still too noticeable for my purposes. The question still remains - why are there no artifacts in Paraview? -- View this message in context: http://vtk.1045678.n5.nabble.com/slicing-artifact-when-rendering-semi-transp arent-mesh-tp5743682p5743684.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 randall at scandy.co Mon Jun 19 18:49:17 2017 From: randall at scandy.co (Toepfer, Randall) Date: Mon, 19 Jun 2017 17:49:17 -0500 Subject: [vtkusers] VTK render coordinates Message-ID: I have a mesh in vtk. I created a function to convert the mesh to point cloud library pcl::PointCloud. int vtk2pcl(vtkPolyData* poly_data, pcl::PointCloud::Ptr& pcl_cloud) { pcl_cloud->clear(); vtkSmartPointer mesh_points = poly_data->GetPoints(); vtkIdType nr_points = mesh_points->GetNumberOfPoints(); if (nr_points == 0) return 0; pcl_cloud->points.resize(nr_points); double point_xyz[3]; for (vtkIdType i = 0; i < mesh_points->GetNumberOfPoints(); ++i) { mesh_points->GetPoint(i, &point_xyz[0]); pcl_cloud->points[i].x = static_cast(point_xyz[0]); pcl_cloud->points[i].y = static_cast(point_xyz[1]); pcl_cloud->points[i].z = static_cast(point_xyz[2]); } pcl_cloud->width = static_cast(pcl_cloud->points.size()); pcl_cloud->height = 1; pcl_cloud->is_dense = true; return (static_cast(nr_points)); } I then use this point cloud in PCL's segmentation methods to find planes in my mesh. If I compare the bounds and centroid of my mesh to my point cloud - both are equal. I display the planes in VTK: auto A = plane[0]; auto B = plane[1]; auto C = plane[2]; auto D = plane[3]; double z = (-1 * D) / (-1 * ((A * min_x) + (B * 1)) * C); plane_source->SetCenter(min_x, 1, z); z = (-1 * D) / (-1 * ((A * min_x) + (B * max_y)) * C); plane_source->SetPoint1(min_x, max_y, z); z = (-1 * D) / (-1 * ((A * max_x) + (B * max_y)) * C); plane_source->SetPoint2(max_x, max_y, z); plane_source->Update(); vtkPolyData* vtk_plane = plane_source->GetOutput(); // Create a mapper and actor vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputData(vtk_plane); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); I display the mesh in VTK: // vtkPolyData* mesh .... auto mesh_mapper = vtkSmartPointer::New(); mesh_mapper->SetInputData(mesh); auto mesh_actor = vtkSmartPointer::New(); mesh_actor->SetMapper(mesh_mapper.GetPointer()); renderer->AddActor(mesh_actor); VTK shows my planes but the mesh and planes aren't aligned correctly. Shouldn't they be aligned since my bounds and centroid are equal? How do they get unaligned? -------------- next part -------------- An HTML attachment was scrubbed... URL: From rccm.kyoshimi at gmail.com Mon Jun 19 22:29:06 2017 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Tue, 20 Jun 2017 11:29:06 +0900 Subject: [vtkusers] VTK render coordinates In-Reply-To: References: Message-ID: Hi Randall, Are plane parameters A, B, C and D in an equation Ax + By + Cz + D = 0? In that case, solving equality for z looks incorrect. Thanks, yoshimi 2017-06-20 7:49 GMT+09:00 Toepfer, Randall : > I have a mesh in vtk. I created a function to convert the mesh to point > cloud library pcl::PointCloud. > > int vtk2pcl(vtkPolyData* poly_data, pcl::PointCloud::Ptr& > pcl_cloud) > { > pcl_cloud->clear(); > > vtkSmartPointer mesh_points = poly_data->GetPoints(); > vtkIdType nr_points = mesh_points->GetNumberOfPoints(); > if (nr_points == 0) > return 0; > > pcl_cloud->points.resize(nr_points); > double point_xyz[3]; > for (vtkIdType i = 0; i < mesh_points->GetNumberOfPoints(); ++i) > { > mesh_points->GetPoint(i, &point_xyz[0]); > pcl_cloud->points[i].x = static_cast(point_xyz[0]); > pcl_cloud->points[i].y = static_cast(point_xyz[1]); > pcl_cloud->points[i].z = static_cast(point_xyz[2]); > } > pcl_cloud->width = static_cast(pcl_cloud->points.size()); > pcl_cloud->height = 1; > pcl_cloud->is_dense = true; > > return (static_cast(nr_points)); > } > > I then use this point cloud in PCL's segmentation methods to find planes in > my mesh. > > If I compare the bounds and centroid of my mesh to my point cloud - both are > equal. > > I display the planes in VTK: > > auto A = plane[0]; > auto B = plane[1]; > auto C = plane[2]; > auto D = plane[3]; > double z = (-1 * D) / (-1 * ((A * min_x) + (B * 1)) * C); > plane_source->SetCenter(min_x, 1, z); > z = (-1 * D) / (-1 * ((A * min_x) + (B * max_y)) * C); > plane_source->SetPoint1(min_x, max_y, z); > z = (-1 * D) / (-1 * ((A * max_x) + (B * max_y)) * C); > plane_source->SetPoint2(max_x, max_y, z); > > plane_source->Update(); > > vtkPolyData* vtk_plane = plane_source->GetOutput(); > // Create a mapper and actor > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputData(vtk_plane); > vtkSmartPointer actor = vtkSmartPointer::New(); > actor->SetMapper(mapper); > > > I display the mesh in VTK: > > // vtkPolyData* mesh .... > auto mesh_mapper = vtkSmartPointer::New(); > mesh_mapper->SetInputData(mesh); > auto mesh_actor = vtkSmartPointer::New(); > mesh_actor->SetMapper(mesh_mapper.GetPointer()); > > renderer->AddActor(mesh_actor); > > > VTK shows my planes but the mesh and planes aren't aligned correctly. > Shouldn't they be aligned since my bounds and centroid are equal? How do > they get unaligned? > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 satwik.k8 at gmail.com Tue Jun 20 07:56:04 2017 From: satwik.k8 at gmail.com (satwik k) Date: Tue, 20 Jun 2017 17:26:04 +0530 Subject: [vtkusers] Cursor Lines using VTKPointWidget Message-ID: Hi everyone, I'm trying to draw x,y,z cursor lines on 3D MIP PET dataset. As an input i'm passing the volume. Here is the code: d->pointWidget = vtkSmartPointer::New(); d->pointWidget->SetInteractor(d->m_iren); d->pointWidget->SetPlaceFactor(1.01); d->pointWidget->SetHandleSize(0.005); d->pointWidget->SetProp3D(d->m_volume); d->pointWidget->SetDefaultRenderer(d->m_renderer); d->pointWidget->PlaceWidget(); d->pointWidget->EnabledOff(); d->pointWidget->XShadowsOff(); d->pointWidget->YShadowsOff(); d->pointWidget->ZShadowsOff(); d->pointWidget->OutlineOff(); d->pointWidget->GetProperty()->SetColor(0, 1, 0); d->pointWidget->GetProperty()->SetLineWidth(2); d->pointWidget->GetProperty()->SetOpacity(1); d->pointWidget->On(); Problem i'm facing is that the cursor inside the volume is getting transparent. How can make it visible. So, that i can see the intersection points. If there is any other way to draw cursors(X,Y & Z) suggest. Regards, Satwik k [image: Inline image 1] -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3DMip1.PNG Type: image/png Size: 105823 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 3DMIP.PNG Type: image/png Size: 187812 bytes Desc: not available URL: From sebastien247 at gmail.com Tue Jun 20 10:05:53 2017 From: sebastien247 at gmail.com (sebastien247) Date: Tue, 20 Jun 2017 07:05:53 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> Message-ID: <1497967553103-5743694.post@n5.nabble.com> I found my problem ! When i remove lines, display work fine : vtkRenderWindowInteractor with QVTKOpenGLWidget is not compatible ? also after removed lines i comment a big part of my code for remove an error : Line 227 to 232 : Before QVTKOpenGLWidget i used QVTKWidget and my code work perfectly. -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743694.html Sent from the VTK - Users mailing list archive at Nabble.com. From utkarsh.ayachit at kitware.com Tue Jun 20 10:23:44 2017 From: utkarsh.ayachit at kitware.com (Utkarsh Ayachit) Date: Tue, 20 Jun 2017 10:23:44 -0400 Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: <1497967553103-5743694.post@n5.nabble.com> References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497967553103-5743694.post@n5.nabble.com> Message-ID: > When i remove lines, display work fine : > vtkRenderWindowInteractor with QVTKOpenGLWidget is not compatible ? That's correct. You're better off letting QVTKOpenGLWidget create the interactor for you. Calling vtkSmartPointer::New() will create platform specific interactor, eg. vtkWin32RenderWindowInteractor which is not compatible with `vtkGenericOpenGLRenderWindow` requried by QVTKOpenGLWidget. Utkarsh From sebastien247 at gmail.com Tue Jun 20 11:09:22 2017 From: sebastien247 at gmail.com (sebastien247) Date: Tue, 20 Jun 2017 08:09:22 -0700 (MST) Subject: [vtkusers] QVTKOpenGlWidget black screen and tests FAILED In-Reply-To: References: <1497531753548-5743647.post@n5.nabble.com> <1497536178414-5743649.post@n5.nabble.com> <1497967553103-5743694.post@n5.nabble.com> Message-ID: <1497971362706-5743696.post@n5.nabble.com> Ok Thanks ! My others problem are solved with this missing line : Thanks to all -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTKOpenGlWidget-black-screen-and-tests-FAILED-tp5743647p5743696.html Sent from the VTK - Users mailing list archive at Nabble.com. From EZ7543 at wayne.edu Tue Jun 20 15:01:25 2017 From: EZ7543 at wayne.edu (Teek) Date: Tue, 20 Jun 2017 12:01:25 -0700 (MST) Subject: [vtkusers] VTK Stereo - Help Rendering Left & Right Eye Separately In-Reply-To: References: <1496762261179-5743559.post@n5.nabble.com> <1496939702035-5743584.post@n5.nabble.com> Message-ID: <1497985285228-5743697.post@n5.nabble.com> Just wanted to give a quick update. The methods suggested by both David and Sankhesh worked. Ended up going with the ExternalVTKWidget however. Really simple integration and was able to incorporate it directly into the zSpace Sample application as you mentioned I could! Thanks Everyone, Teek Sankhesh Jhaveri-2 wrote > Hi Teek, > > You can use the vtkRenderWindow::SetStereoTypeToLeft() > <http://www.vtk.org/doc/nightly/html/classvtkRenderWindow.html#a69e5ee012eb84d708851360b8f0706df> > and vtkRenderWindow::SetStereoTypeToRight() > <http://www.vtk.org/doc/nightly/html/classvtkRenderWindow.html#af4b1162e9f6cfed54e8ea3bb2ec0e900> > API to tell VTK which eye you?re rendering. > > Hope that helps. > > Sankhesh -- VTK - Users mailing list wrote > You should be able to write a subclass of vtkWin32OpenGLRenderWindow > (or whatever **actual** vtkRenderWindow subclass gets instantiated for > your app) and then provide your own overrides of the methods > StereoUpdate, StereoMidpoint, and StereoRenderComplete. > > In the StereoUpdate method, call the parent method first, and then > call camera->SetEyePosition to be at the left eye. In the > StereoMidpoint method, call the parent method first, and then call > camera->SetEyePosition to be at the right eye. > > In the StereoRenderComplete method, call the parent method first, and > then call camera->SetEyePosition back to its pre-stereo rendering > values. > > The trick with SetEyePosition calls is that they coordinates have to > be in **camera** space, not world space. > > > HTH, > David C. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-Stereo-Help-Rendering-Left-Right-Eye-Separately-tp5743559p5743697.html Sent from the VTK - Users mailing list archive at Nabble.com. From kevin.gaudet at ihu-strasbourg.eu Wed Jun 21 04:24:37 2017 From: kevin.gaudet at ihu-strasbourg.eu (Kevin GAUDET) Date: Wed, 21 Jun 2017 10:24:37 +0200 Subject: [vtkusers] Rendering bugs with translucent geometry in VTK 7.1 Message-ID: Hi, I currently upgraded my project from VTK 7.0 to VTK 7.1. However I'm currently having some rendering issues especially with transparent geometry. It seems that there are some bug with dual depth peeling because I don't have those issues when setting the VTK_USE_LEGACY_DEPTH_PEELING environment variable. I've already reported two issues : https://gitlab.kitware.com/vtk/vtk/issues/17051 https://gitlab.kitware.com/vtk/vtk/issues/17042 Both issues contain simple code samples that trigger the bugs. Cheers, Kevin. From ysa0829 at gmail.com Wed Jun 21 05:51:24 2017 From: ysa0829 at gmail.com (Ang) Date: Wed, 21 Jun 2017 02:51:24 -0700 (MST) Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) Message-ID: <1498038684487-5743699.post@n5.nabble.com> Hi all, is it possible to implement vtkImageSliceMapper in vtk-js? any suggestion for me ? thanks for help. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal-tp5743699.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Wed Jun 21 06:52:56 2017 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 21 Jun 2017 10:52:56 +0000 Subject: [vtkusers] Rendering bugs with translucent geometry in VTK 7.1 In-Reply-To: References: Message-ID: Hi Kevin, Would it be possible for you to verify if the bug exists with current master of VTK from github? Thanks, On Wed, Jun 21, 2017 at 4:31 AM Kevin GAUDET wrote: > Hi, > > I currently upgraded my project from VTK 7.0 to VTK 7.1. > However I'm currently having some rendering issues especially with > transparent geometry. > It seems that there are some bug with dual depth peeling because I don't > have those issues when setting the VTK_USE_LEGACY_DEPTH_PEELING > environment variable. > > I've already reported two issues : > > https://gitlab.kitware.com/vtk/vtk/issues/17051 > > https://gitlab.kitware.com/vtk/vtk/issues/17042 > > > Both issues contain simple code samples that trigger the bugs. > > Cheers, > 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 kevin.gaudet at ihu-strasbourg.eu Wed Jun 21 09:18:01 2017 From: kevin.gaudet at ihu-strasbourg.eu (Kevin GAUDET) Date: Wed, 21 Jun 2017 15:18:01 +0200 Subject: [vtkusers] Rendering bugs with translucent geometry in VTK 7.1 In-Reply-To: References: Message-ID: <9de2f80f-6ebb-8c59-3af7-5594838d636d@ihu-strasbourg.eu> We've tested with the master branch on github. Both problems remain. Le 6/21/2017 ? 12:52 PM, Aashish Chaudhary a ?crit : > Hi Kevin, > > Would it be possible for you to verify if the bug exists with current > master of VTK from github? > > Thanks, > > > On Wed, Jun 21, 2017 at 4:31 AM Kevin GAUDET > > wrote: > > Hi, > > I currently upgraded my project from VTK 7.0 to VTK 7.1. > However I'm currently having some rendering issues especially with > transparent geometry. > It seems that there are some bug with dual depth peeling because I > don't > have those issues when setting the VTK_USE_LEGACY_DEPTH_PEELING > environment variable. > > I've already reported two issues : > > https://gitlab.kitware.com/vtk/vtk/issues/17051 > > https://gitlab.kitware.com/vtk/vtk/issues/17042 > > > Both issues contain simple code samples that trigger the bugs. > > Cheers, > 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 david.lonie at kitware.com Wed Jun 21 10:25:27 2017 From: david.lonie at kitware.com (David Lonie) Date: Wed, 21 Jun 2017 10:25:27 -0400 Subject: [vtkusers] Rendering bugs with translucent geometry in VTK 7.1 In-Reply-To: <9de2f80f-6ebb-8c59-3af7-5594838d636d@ihu-strasbourg.eu> References: <9de2f80f-6ebb-8c59-3af7-5594838d636d@ihu-strasbourg.eu> Message-ID: I can reproduce the issues here. I'll try to find some time to track these down and fix them soon. Thanks for the reports! Dave On Wed, Jun 21, 2017 at 9:18 AM, Kevin GAUDET wrote: > We've tested with the master branch on github. > Both problems remain. > > > Le 6/21/2017 ? 12:52 PM, Aashish Chaudhary a ?crit : > > Hi Kevin, > > Would it be possible for you to verify if the bug exists with current master > of VTK from github? > > Thanks, > > > On Wed, Jun 21, 2017 at 4:31 AM Kevin GAUDET > wrote: >> >> Hi, >> >> I currently upgraded my project from VTK 7.0 to VTK 7.1. >> However I'm currently having some rendering issues especially with >> transparent geometry. >> It seems that there are some bug with dual depth peeling because I don't >> have those issues when setting the VTK_USE_LEGACY_DEPTH_PEELING >> environment variable. >> >> I've already reported two issues : >> >> https://gitlab.kitware.com/vtk/vtk/issues/17051 >> >> https://gitlab.kitware.com/vtk/vtk/issues/17042 >> >> >> Both issues contain simple code samples that trigger the bugs. >> >> Cheers, >> 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 > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 sebastien.jourdain at kitware.com Wed Jun 21 10:56:28 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 21 Jun 2017 08:56:28 -0600 Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: <1498038684487-5743699.post@n5.nabble.com> References: <1498038684487-5743699.post@n5.nabble.com> Message-ID: Are you talking about something like the example here: https://kitware.github.io/vtk-js/examples/ImageMapper.html Which can also be seen used on real data (27MB) here: https://kitware.github.io/itk-vtk-image-viewer/app/?fileToLoad=https://data.kitware.com/api/v1/file/554a926e8d777f082b592194/download/data.nrrd&use2D => Use Ctrl+drag to move through the slices On Wed, Jun 21, 2017 at 3:51 AM, Ang wrote: > Hi all, > > is it possible to implement vtkImageSliceMapper in vtk-js? > > any suggestion for me ? > > thanks for help. > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal- > tp5743699.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 ysa0829 at gmail.com Wed Jun 21 11:12:46 2017 From: ysa0829 at gmail.com (Ang) Date: Wed, 21 Jun 2017 08:12:46 -0700 (MST) Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: References: <1498038684487-5743699.post@n5.nabble.com> Message-ID: <1498057966670-5743705.post@n5.nabble.com> Hi Sebastien, I have a imageData that dimension is X: 400,Y:400,Z:400. ImageMapper only can show XY plane, and I want to show XZ and YZ plane. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal-tp5743699p5743705.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Wed Jun 21 11:27:26 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Wed, 21 Jun 2017 09:27:26 -0600 Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: <1498057966670-5743705.post@n5.nabble.com> References: <1498038684487-5743699.post@n5.nabble.com> <1498057966670-5743705.post@n5.nabble.com> Message-ID: I see... Based on what you need, it seems that we will need a new class to enable slice extraction along any axis or to extend the actual mapper to support such slice extract. We are most likely planning to support such use case, but I don't have a timing for the release of such feature. If you want, we can help via support contract to specifically develop/integrate what you need into vtk.js for your application. Seb On Wed, Jun 21, 2017 at 9:12 AM, Ang wrote: > Hi Sebastien, > > I have a imageData that dimension is X: 400,Y:400,Z:400. > > ImageMapper only can show XY plane, and I want to show XZ and YZ plane. > > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal- > tp5743699p5743705.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 ysa0829 at gmail.com Wed Jun 21 22:10:36 2017 From: ysa0829 at gmail.com (Ang) Date: Wed, 21 Jun 2017 19:10:36 -0700 (MST) Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: References: <1498038684487-5743699.post@n5.nabble.com> <1498057966670-5743705.post@n5.nabble.com> Message-ID: <1498097436925-5743708.post@n5.nabble.com> Hi Seb, I had a look at vtk.js\Sources\Rendering\OpenGL\ImageMapper\index.js,but I am not able to implement what I plan to. Because I am not similar with OpenGL drawing and Javascript. Do you have any advice for me ? Very appreciate your help. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal-tp5743699p5743708.html Sent from the VTK - Users mailing list archive at Nabble.com. From karanovicm at gmail.com Wed Jun 21 23:05:06 2017 From: karanovicm at gmail.com (KM) Date: Wed, 21 Jun 2017 20:05:06 -0700 (MST) Subject: [vtkusers] vtkBoxClipDataSet ClippedOutput In-Reply-To: <1489280272903-5742438.post@n5.nabble.com> References: <1366686973993-5720293.post@n5.nabble.com> <1489208926728-5742430.post@n5.nabble.com> <1489266917147-5742436.post@n5.nabble.com> <1489280272903-5742438.post@n5.nabble.com> Message-ID: <1498100706017-5743709.post@n5.nabble.com> Bill, Just wanted let you know, with small changes in your code I was able to implement your quick fix into VTK 6.3 and was able to compile ActiViz 6.3, works perfectly. Thanks again for sharing your quick fix. Marinko -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkBoxClipDataSet-ClippedOutput-tp5720293p5743709.html Sent from the VTK - Users mailing list archive at Nabble.com. From ysa0829 at gmail.com Wed Jun 21 23:32:48 2017 From: ysa0829 at gmail.com (Ang) Date: Wed, 21 Jun 2017 20:32:48 -0700 (MST) Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: <1498097436925-5743708.post@n5.nabble.com> References: <1498038684487-5743699.post@n5.nabble.com> <1498057966670-5743705.post@n5.nabble.com> <1498097436925-5743708.post@n5.nabble.com> Message-ID: <1498102368933-5743710.post@n5.nabble.com> Hi Seb, sorry for my bad English , I misunderstood what you meant... I will try it first,if need your help, I will let you know. thanks for your help again. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal-tp5743699p5743710.html Sent from the VTK - Users mailing list archive at Nabble.com. From ananta.satriadi at gmail.com Thu Jun 22 02:15:44 2017 From: ananta.satriadi at gmail.com (kadek) Date: Wed, 21 Jun 2017 23:15:44 -0700 (MST) Subject: [vtkusers] Preserve the color of a vtkPolyData after it is split by vtkOBBDicer Message-ID: <1498112144933-5743711.post@n5.nabble.com> Hi, I am trying to implement isosurface visualisation in Unity using VTK.Since Unity mesh's number of vertices is limited to 65553, a large surface needs to be split up into smaller chunks. I used vtkOBBDicer, vtkThreshold, and vtkGeometryFilter to spit and extract the polydata.However, the resulting polydata from the extraction process lost the color array element.Is there any solution to split up the vtkPolyData and keep the color accordingly?Thank you in advance. This is the method I use to return the vtkPolyData chunks (it uses Activiz C# wrapper)./public static List CreateGroups(vtkPolyData poly) { vtkOBBDicer dicer = vtkOBBDicer.New (); vtkThreshold th = vtkThreshold.New (); vtkGeometryFilter geo = vtkGeometryFilter.New (); List polys = new List (); dicer.SetInput (poly); dicer.SetDiceModeToSpecifiedNumberOfPieces (); dicer.SetNumberOfPointsPerPiece((int) VERTICESMAX); dicer.Update (); th.SetInput (dicer.GetOutput ()); th.AllScalarsOff (); th.SetInputArrayToProcess(0, 0, 0, 0, "vtkOBBDicer_GroupIds"); geo.SetInputConnection (th.GetOutputPort ()); for(int i = 0; i < dicer.GetNumberOfActualPieces(); i ++){ th.ThresholdBetween (i, i); th.Update (); geo.Update (); vtkPolyData pol = vtkPolyData.New(); pol.DeepCopy(geo.GetOutput()); polys.Add (pol); } return polys; }/Cheers,Kadek -- View this message in context: http://vtk.1045678.n5.nabble.com/Preserve-the-color-of-a-vtkPolyData-after-it-is-split-by-vtkOBBDicer-tp5743711.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Thu Jun 22 02:23:46 2017 From: tjlp at netease.com (Liu_tj) Date: Thu, 22 Jun 2017 14:23:46 +0800 (CST) Subject: [vtkusers] How to know whether I should flip the vtkImageData on the Z axis? Message-ID: <1d3418e7.3.15cce788faa.Coremail.tjlp@netease.com> Hi, We use vtkImageView2 to display DICOM data. Usually the vtkDicomReader will load the DICOM slices from bottom to up. So we need to flip it on Z axis. I try the vtkImageFlip and it works. However, there might be some DICOM data which we don't need to flip. How can I know that? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From sur.chiranjib at gmail.com Thu Jun 22 06:00:15 2017 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Thu, 22 Jun 2017 12:00:15 +0200 Subject: [vtkusers] Check if vtkPolyData objects intersect In-Reply-To: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> References: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> Message-ID: I don't think there is something like this available as a solution. However, this example might help you http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject If you know the vtk points from your polydata, you will be able to find out if they are inside or outside the region. Hope that helps. Chiranjib On Fri, Jun 9, 2017 at 11:57 PM, Maximilian Weiherer < weiherer.maximilian at gmx.de> wrote: > Hi all, > > > > how to check if two vtkPolyData objects intersect? I tried vtkIntersectionPolyDataFilter > but this gives me an error if no intersection is found. What I need is just > a boolean value whether or not two meshes intersect. > > > > Any suggestions would be appreciated. Thanks! > > > > > > > Virenfrei. > www.avast.com > > <#m_3394299955697868826_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 lasso at queensu.ca Thu Jun 22 09:11:36 2017 From: lasso at queensu.ca (Andras Lasso) Date: Thu, 22 Jun 2017 13:11:36 +0000 Subject: [vtkusers] Check if vtkPolyData objects intersect In-Reply-To: References: <000001d2e16b$64978e90$2dc6abb0$@gmx.de> Message-ID: We use this collision detection filter. It works well for us. https://github.com/glawlor/vtkbioeng/blob/master/vtkCollisionDetectionFilter.cxx Andras From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Chiranjib Sur Sent: Thursday, June 22, 2017 6:00 AM To: Maximilian Weiherer Cc: VTK Users Subject: Re: [vtkusers] Check if vtkPolyData objects intersect I don't think there is something like this available as a solution. However, this example might help you http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PointInsideObject If you know the vtk points from your polydata, you will be able to find out if they are inside or outside the region. Hope that helps. Chiranjib On Fri, Jun 9, 2017 at 11:57 PM, Maximilian Weiherer > wrote: Hi all, how to check if two vtkPolyData objects intersect? I tried vtkIntersectionPolyDataFilter but this gives me an error if no intersection is found. What I need is just a boolean value whether or not two meshes intersect. Any suggestions would be appreciated. Thanks! [https://ipmcdn.avast.com/images/icons/icon-envelope-tick-round-orange-animated-no-repeat-v1.gif] Virenfrei. www.avast.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 raavi.mohindar.rao at gmail.com Thu Jun 22 10:10:19 2017 From: raavi.mohindar.rao at gmail.com (Raavi M. Mohindar Rao) Date: Thu, 22 Jun 2017 16:10:19 +0200 Subject: [vtkusers] Plotting complex data Message-ID: Hello, I need to plot the surface currents which are complex valued vectors. I am very new to VTK et al and wonder is there any tutorial available that deals complex valued data. Regards, Raavi -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastien.jourdain at kitware.com Thu Jun 22 10:55:28 2017 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Thu, 22 Jun 2017 08:55:28 -0600 Subject: [vtkusers] VTK-JS Implement vtkImageSliceMapper (show axial sagittal coronal) In-Reply-To: <1498102368933-5743710.post@n5.nabble.com> References: <1498038684487-5743699.post@n5.nabble.com> <1498057966670-5743705.post@n5.nabble.com> <1498097436925-5743708.post@n5.nabble.com> <1498102368933-5743710.post@n5.nabble.com> Message-ID: The easier approach would be a creation of a filter that extract a slice of the data array and then use vtkPlaneSource + Texture to reflect the position of the slice in the 3D space. On Wed, Jun 21, 2017 at 9:32 PM, Ang wrote: > Hi Seb, > > sorry for my bad English , I misunderstood what you meant... > > I will try it first,if need your help, I will let you know. > > thanks for your help again. > > > > > -- > View this message in context: http://vtk.1045678.n5.nabble. > com/VTK-JS-Implement-vtkImageSliceMapper-show-axial-sagittal-coronal- > tp5743699p5743710.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 EZ7543 at wayne.edu Thu Jun 22 12:57:00 2017 From: EZ7543 at wayne.edu (Teek) Date: Thu, 22 Jun 2017 09:57:00 -0700 (MST) Subject: [vtkusers] Volume Rendering Issues - External Module Message-ID: <1498150620348-5743719.post@n5.nabble.com> Hi, So I've been using the external module to rendering cubes and spheres successfully. However, I'm trying to incorporate medical volume rendering from DICOM files. I have done so successfully in a normal VTK renderer and render window and also a QVTKWidget. Basically: DICOM Image Reader > SmartVolumeMapper > Volume (Volume Property, Opacity and Color Transfer Functions) > Render When I use the same flow on the ExternalWidget however I get some weird results: Essentially it looks like the volume is actually a texture mapped onto a cube? And as I rotate, I can see the volume continuously deform to fit a "cube shape". Any idea why this could be? I thought maybe it was due to the opacity transfer function, because if I disable that, I get the rendering fine. The only issue is that without the opacity function, what I have is essentially a cube anyway, so I can't really tell any difference. -Teek -- View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Thu Jun 22 13:04:54 2017 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 22 Jun 2017 17:04:54 +0000 Subject: [vtkusers] Volume Rendering Issues - External Module In-Reply-To: <1498150620348-5743719.post@n5.nabble.com> References: <1498150620348-5743719.post@n5.nabble.com> Message-ID: Hi, Thanks for reporting it. Few questions: VTK version? Platform (Windows/Linux) Via SmartVolumeMapper you are getting GPU or FixPoint? Also, OpenGL2 backend or older? It looks like some matrices are incorrect. Can you print them in VTK and ensure they are looking reasonable? Thanks, On Thu, Jun 22, 2017 at 12:57 PM Teek wrote: > Hi, > > So I've been using the external module to rendering cubes and spheres > successfully. > However, I'm trying to incorporate medical volume rendering from DICOM > files. > I have done so successfully in a normal VTK renderer and render window and > also a QVTKWidget. > > Basically: > DICOM Image Reader > SmartVolumeMapper > Volume (Volume Property, Opacity > and Color Transfer Functions) > Render > > When I use the same flow on the ExternalWidget however I get some weird > results: > > > > Essentially it looks like the volume is actually a texture mapped onto a > cube? And as I rotate, I can see the volume continuously deform to fit a > "cube shape". > Any idea why this could be? I thought maybe it was due to the opacity > transfer function, because if I disable that, I get the rendering fine. The > only issue is that without the opacity function, what I have is essentially > a cube anyway, so I can't really tell any difference. > > -Teek > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719.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 EZ7543 at wayne.edu Thu Jun 22 13:29:46 2017 From: EZ7543 at wayne.edu (Teek) Date: Thu, 22 Jun 2017 10:29:46 -0700 (MST) Subject: [vtkusers] Volume Rendering Issues - External Module In-Reply-To: References: <1498150620348-5743719.post@n5.nabble.com> Message-ID: <1498152586545-5743727.post@n5.nabble.com> Aashish Chaudhary-2 wrote > VTK version? VTK 7.1.1 Aashish Chaudhary-2 wrote > Platform (Windows/Linux) Windows Aashish Chaudhary-2 wrote > Via SmartVolumeMapper you are getting GPU or FixPoint? If you mean the last used render mode, I'm getting 4 (GPURenderMode). Aashish Chaudhary-2 wrote > Also, OpenGL2 backend or older? OpenGL2 Aashish Chaudhary-2 wrote > It looks like some matrices are incorrect. Can you print them in VTK and > ensure they are looking reasonable? I'll try printing them to a file and get back to you. Any specific matrices? -- View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719p5743727.html Sent from the VTK - Users mailing list archive at Nabble.com. From sankhesh.jhaveri at kitware.com Thu Jun 22 14:10:11 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Thu, 22 Jun 2017 18:10:11 +0000 Subject: [vtkusers] Volume Rendering Issues - External Module In-Reply-To: <1498152586545-5743727.post@n5.nabble.com> References: <1498150620348-5743719.post@n5.nabble.com> <1498152586545-5743727.post@n5.nabble.com> Message-ID: Hi Teek, Try testing against VTK master. A similar bug was fixed recently that went in after VTK 7.1.1 Related merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/2814 Thanks, Sankhesh ? On Thu, Jun 22, 2017 at 1:29 PM Teek wrote: > Aashish Chaudhary-2 wrote > > VTK version? > > VTK 7.1.1 > > > Aashish Chaudhary-2 wrote > > Platform (Windows/Linux) > > Windows > > > Aashish Chaudhary-2 wrote > > Via SmartVolumeMapper you are getting GPU or FixPoint? > > If you mean the last used render mode, I'm getting 4 (GPURenderMode). > > > Aashish Chaudhary-2 wrote > > Also, OpenGL2 backend or older? > > OpenGL2 > > > Aashish Chaudhary-2 wrote > > It looks like some matrices are incorrect. Can you print them in VTK and > > ensure they are looking reasonable? > > I'll try printing them to a file and get back to you. Any specific > matrices? > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719p5743727.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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From lplavorante at gmail.com Thu Jun 22 17:12:58 2017 From: lplavorante at gmail.com (Luca Pallozzi Lavorante) Date: Thu, 22 Jun 2017 18:12:58 -0300 Subject: [vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints Message-ID: Hi vtkusers, I have a vtkUnstruturedGrid showing depositional data and I'd like to cut this data using contiguous vertical slices defined by a vtkPolyLine. I have seen in the documentation that vtkPolyPlane generates the right implicit function which I can pass to vtkCutter. The resulting cuts are OK, but my vertical slices extends beyond my polyline's endpoints. I would like to end the cutting planes exaclty at my polyline's first and last point. Is this possible? I am using VTK 7.0 on Linux. Thank you very much for any help Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: From llangholz89 at gmail.com Thu Jun 22 19:20:55 2017 From: llangholz89 at gmail.com (Logan Langholz) Date: Thu, 22 Jun 2017 17:20:55 -0600 Subject: [vtkusers] Probe Filter returns nan values Message-ID: <85602E9A-1F0B-4183-B93C-3D1DAAD8D215@gmail.com> Hello, I?m relatively new to VTK, but I?m attempting to probe an image volume with a poly data mesh that represents the outline of the object within the volume. The voxel values outside of the object are ?nan?, which as I understand it causes problems because of the way the probe filter interpolates the image point data. The result is a scalar array with nothing but ?nan? values in the output of the probe. Are there any ways around this or an alternative approach I could take? I really appreciate the help! -Logan From kor1581 at gmail.com Fri Jun 23 01:54:58 2017 From: kor1581 at gmail.com (K O ranjith) Date: Fri, 23 Jun 2017 11:24:58 +0530 Subject: [vtkusers] vtk zoom indicator Message-ID: I'm using vtk for developing a MRI DICOM Image viewer in Qt. The viewer uses vtkDICOMImageReader, vtkImageViewer2 & QVTKWidget. I need to show a zoom indicator line which varies length with zoom value and need not affect other operation like rotate, pan( which is used for DICOM image in same window). It's position should be fixed at side of viewer and should not alter with zoom, pan, rotate. I added an line as an vtkactor to the renderer using vtkLineSource. Its length altering with zoom as I intended, but problem is its position also altering with the zoom, also rotate and Pan affecting on it. How can I make the position of the line fixed at side of the viewer. Have any option in vtk for visual indication of zoom factor something like vtkOrientationMarkerWidget for orientation... -------------- next part -------------- An HTML attachment was scrubbed... URL: From girish.lande at agiliad.com Fri Jun 23 06:24:29 2017 From: girish.lande at agiliad.com (Girish Lande) Date: Fri, 23 Jun 2017 15:54:29 +0530 Subject: [vtkusers] How to enable capping for Cone ? Message-ID: Hi Experts, I am trying to draw Cone with its base closed. For that I am calling CappingOn() function provided for same. But it doesn't seem to work. I can't think of what can be missing here. Following is my code. #include "stdafx.h" #include VTK_MODULE_INIT(vtkRenderingOpenGL2) VTK_MODULE_INIT(vtkRenderingFreeType); #include #include #include #include #include #include #include #include #include #include int main(int, char *[]) { //Create a cone vtkSmartPointer coneSource = vtkSmartPointer::New(); coneSource->SetResolution(100); coneSource->SetCapping(true); coneSource->Update(); //Create a mapper and actor vtkSmartPointer mapper = vtkSmartPointer::New(); mapper->SetInputConnection(coneSource->GetOutputPort()); vtkSmartPointer actor = vtkSmartPointer::New(); actor->SetMapper(mapper); actor->GetProperty()->SetOpacity(0.5); //Create a renderer, render window, and interactor vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); //Add the actors to the scene renderer->AddActor(actor); vtkSmartPointer style = vtkSmartPointer::New(); renderWindowInteractor->SetInteractorStyle(style); //Render and interact renderWindow->SetSize(800, 800); renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } -- thanks & regards, Girish -- ------------------------------------------------------------ ------------------------------------------------------------- *Disclaimer:* This email message including any attachments is confidential, and may be privileged and proprietary to Agiliad. If you are not the intended recipient, please notify us immediately by replying to this message and destroy all copies of this message including any attachments. You are NOT authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. Thank you. ------------------------------------------------------------ ------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From sendtomatteo at yahoo.it Fri Jun 23 08:30:13 2017 From: sendtomatteo at yahoo.it (Matteo) Date: Fri, 23 Jun 2017 14:30:13 +0200 Subject: [vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints In-Reply-To: References: Message-ID: <8f3fc9de-9fa4-3e1d-8a4d-310f3f80ff53@yahoo.it> Hi Luca In April I already asked some help on vtkPolyPlane because a strange behavior of the filter without success, however I think there is some bug in the vtk code... so I am still looking for another kind of solution, if you find it please post details. Regards Matteo Il 22/06/2017 23:12, Luca Pallozzi Lavorante ha scritto: > Hi vtkusers, > > I have a vtkUnstruturedGrid showing depositional data and I'd like to > cut this data using contiguous vertical slices defined by a > vtkPolyLine. I have seen in the documentation that vtkPolyPlane > generates the right implicit function which I can pass to vtkCutter. > The resulting cuts are OK, but my vertical slices extends beyond my > polyline's endpoints. I would like to end the cutting planes exaclty > at my polyline's first and last point. Is this possible? > I am using VTK 7.0 on Linux. > > Thank you very much for any help > > Luca > > > _______________________________________________ > Powered bywww.kitware.com > > Visit other Kitware open-source projects athttp://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: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 lplavorante at gmail.com Fri Jun 23 09:12:31 2017 From: lplavorante at gmail.com (Luca Pallozzi Lavorante) Date: Fri, 23 Jun 2017 10:12:31 -0300 Subject: [vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints In-Reply-To: References: Message-ID: Hi Marco, did you experience the same problem that I reported? I mean, the cuts extending beyond the endpoints of the polyline used to feed vtkPolyPlane? I think that maybe the problem could be solved composing vtkPolyPlane with two more planes normal to each polylne's endpoints. I also think that this could be done using something like vtkImplicitBoolean, but I don't know how. It is not clear to me how instances of vtkImplicitFunction should be composed in order to remove the planes past the polyline's endpoints. I also noticed that this "extensions" are not planar: beyond the polyline's endpoints the planes form "waves" when looked down along the Z axis. I also noticed this behaviour by modifying the Interaction/Widgets/Testing/Cxx/TestPolyPlane.cxx example, where I explicitly created and visualized a vtkPolyData from vtkCutter's output (In this example, vtkCutter received as implicit function an instance of vtkPolyPlane, just as I needed). Any kind help or explanation on this issue would be greatly welcomed. Thank you Luca On Thu, Jun 22, 2017 at 6:12 PM, Luca Pallozzi Lavorante < lplavorante at gmail.com> wrote: > Hi vtkusers, > > I have a vtkUnstruturedGrid showing depositional data and I'd like to cut > this data using contiguous vertical slices defined by a vtkPolyLine. I have > seen in the documentation that vtkPolyPlane generates the right implicit > function which I can pass to vtkCutter. > The resulting cuts are OK, but my vertical slices extends beyond my > polyline's endpoints. I would like to end the cutting planes exaclty at my > polyline's first and last point. Is this possible? > I am using VTK 7.0 on Linux. > > Thank you very much for any help > > Luca > -------------- next part -------------- An HTML attachment was scrubbed... URL: From lplavorante at gmail.com Fri Jun 23 09:30:20 2017 From: lplavorante at gmail.com (Luca Pallozzi Lavorante) Date: Fri, 23 Jun 2017 10:30:20 -0300 Subject: [vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints In-Reply-To: References: Message-ID: Hi vtkusers, regarding my previous posting, describing the "waving" behavior of the plane generated via vtkPolyPlane, I am attaching an image showing this issue. Here I am using the following pipelyne : vtkPolyLine -> vtkPolyPlane -> vtkCutter. The polyline is composed by three points and vtkCutter is cutting through a vtkPolyData Surface. It is possible to see the waving behavior in the resulting cut, just beyond the polyline's endpoints. Thank you for any help. Luca On Fri, Jun 23, 2017 at 10:12 AM, Luca Pallozzi Lavorante < lplavorante at gmail.com> wrote: > Hi Marco, did you experience the same problem that I reported? > I mean, the cuts extending beyond the endpoints of the polyline used to > feed vtkPolyPlane? > > I think that maybe the problem could be solved composing vtkPolyPlane with > two more planes normal to each polylne's endpoints. I also think that this > could be done using something like vtkImplicitBoolean, but I don't know > how. It is not clear to me how instances of vtkImplicitFunction should be > composed in order to remove the planes past the polyline's endpoints. I > also noticed that this "extensions" are not planar: beyond the polyline's > endpoints the planes form "waves" when looked down along the Z axis. I also > noticed this behaviour by modifying the Interaction/Widgets/Testing/Cxx/TestPolyPlane.cxx > example, where I explicitly created and visualized a vtkPolyData from > vtkCutter's output (In this example, vtkCutter received as implicit > function an instance of vtkPolyPlane, just as I needed). > > Any kind help or explanation on this issue would be greatly welcomed. > > Thank you > > Luca > > On Thu, Jun 22, 2017 at 6:12 PM, Luca Pallozzi Lavorante < > lplavorante at gmail.com> wrote: > >> Hi vtkusers, >> >> I have a vtkUnstruturedGrid showing depositional data and I'd like to cut >> this data using contiguous vertical slices defined by a vtkPolyLine. I have >> seen in the documentation that vtkPolyPlane generates the right implicit >> function which I can pass to vtkCutter. >> The resulting cuts are OK, but my vertical slices extends beyond my >> polyline's endpoints. I would like to end the cutting planes exaclty at my >> polyline's first and last point. Is this possible? >> I am using VTK 7.0 on Linux. >> >> Thank you very much for any help >> >> Luca >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkPolyPlaneWaves.png Type: image/png Size: 137319 bytes Desc: not available URL: From sankhesh.jhaveri at kitware.com Fri Jun 23 10:22:03 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Fri, 23 Jun 2017 14:22:03 +0000 Subject: [vtkusers] vtk zoom indicator In-Reply-To: References: Message-ID: Take a look at vtkLegendScaleActor . It uses vtkAxisActor internally. Hth, Sankhesh ? On Fri, Jun 23, 2017 at 1:55 AM K O ranjith wrote: > I'm using vtk for developing a MRI DICOM Image viewer in Qt. > The viewer uses vtkDICOMImageReader, vtkImageViewer2 & QVTKWidget. > I need to show a zoom indicator line which varies length with zoom value > and need not affect other operation like rotate, pan( which is used for > DICOM image in same window). It's position should be fixed at side of > viewer and should not alter with zoom, pan, rotate. > I added an line as an vtkactor to the renderer using vtkLineSource. > Its length altering with zoom as I intended, but problem is its position > also altering with the zoom, also rotate and Pan affecting on it. > How can I make the position of the line fixed at side of the viewer. > Have any option in vtk for visual indication of zoom factor something like vtkOrientationMarkerWidget > for orientation... > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > 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 > -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From sendtomatteo at yahoo.it Fri Jun 23 10:49:01 2017 From: sendtomatteo at yahoo.it (Matteo) Date: Fri, 23 Jun 2017 16:49:01 +0200 Subject: [vtkusers] vtkCutter using vtkPolyPlane extends beyond polyline's endpoints In-Reply-To: References: Message-ID: <3e6ea5fa-880a-ad67-abd0-dca2252c2e2e@yahoo.it> Dear Luca My problem was not related to the cut endpoints, but on some extra part that was not related to the polyline provided. I do not know if the problems can be related, but I can not exclude it. you can read my first messages here: http://public.kitware.com/pipermail/vtkusers/2017-April/098302.html This is the sample image I provided http://public.kitware.com/pipermail/vtkusers/attachments/20170405/c72a409b/attachment.png And this is a short sample code I provided asking for help http://public.kitware.com/pipermail/vtkusers/2017-April/098304.html Regards Matteo Il 23/06/2017 15:30, Luca Pallozzi Lavorante ha scritto: > Hi vtkusers, > > regarding my previous posting, describing the "waving" behavior of the > plane generated via vtkPolyPlane, I am attaching an image showing this > issue. Here I am using the following pipelyne : vtkPolyLine -> > vtkPolyPlane -> vtkCutter. The polyline is composed by three points > and vtkCutter is cutting through a vtkPolyData Surface. It is possible > to see the waving behavior in the resulting cut, just beyond the > polyline's endpoints. > > Thank you for any help. > > Luca > > On Fri, Jun 23, 2017 at 10:12 AM, Luca Pallozzi Lavorante > > wrote: > > Hi Marco, did you experience the same problem that I reported? > I mean, the cuts extending beyond the endpoints of the polyline > used to feed vtkPolyPlane? > > I think that maybe the problem could be solved composing > vtkPolyPlane with two more planes normal to each polylne's > endpoints. I also think that this could be done using something > like vtkImplicitBoolean, but I don't know how. It is not clear to > me how instances of vtkImplicitFunction should be composed in > order to remove the planes past the polyline's endpoints. I also > noticed that this "extensions" are not planar: beyond the > polyline's endpoints the planes form "waves" when looked down > along the Z axis. I also noticed this behaviour by modifying the > Interaction/Widgets/Testing/Cxx/TestPolyPlane.cxx example, where I > explicitly created and visualized a vtkPolyData from vtkCutter's > output (In this example, vtkCutter received as implicit function > an instance of vtkPolyPlane, just as I needed). > > Any kind help or explanation on this issue would be greatly welcomed. > > Thank you > > Luca > > On Thu, Jun 22, 2017 at 6:12 PM, Luca Pallozzi Lavorante > > wrote: > > Hi vtkusers, > > I have a vtkUnstruturedGrid showing depositional data and I'd > like to cut this data using contiguous vertical slices defined > by a vtkPolyLine. I have seen in the documentation that > vtkPolyPlane generates the right implicit function which I can > pass to vtkCutter. > The resulting cuts are OK, but my vertical slices extends > beyond my polyline's endpoints. I would like to end the > cutting planes exaclty at my polyline's first and last point. > Is this possible? > I am using VTK 7.0 on Linux. > > Thank you very much for any help > > Luca > > > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: 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 EZ7543 at wayne.edu Fri Jun 23 10:58:40 2017 From: EZ7543 at wayne.edu (Teek) Date: Fri, 23 Jun 2017 07:58:40 -0700 (MST) Subject: [vtkusers] Volume Rendering Issues - External Module In-Reply-To: References: <1498150620348-5743719.post@n5.nabble.com> <1498152586545-5743727.post@n5.nabble.com> Message-ID: <1498229920106-5743760.post@n5.nabble.com> I shall try this and get back to you. Thanks. -Teek Sankhesh Jhaveri-2 wrote > Hi Teek, > > Try testing against VTK master. > A similar bug was fixed recently that went in after VTK 7.1.1 > > Related merge request: > https://gitlab.kitware.com/vtk/vtk/merge_requests/2814 > > Thanks, > Sankhesh -- View this message in context: http://vtk.1045678.n5.nabble.com/Volume-Rendering-Issues-External-Module-tp5743719p5743760.html Sent from the VTK - Users mailing list archive at Nabble.com. From rccm.kyoshimi at gmail.com Sat Jun 24 03:33:10 2017 From: rccm.kyoshimi at gmail.com (kenichiro yoshimi) Date: Sat, 24 Jun 2017 16:33:10 +0900 Subject: [vtkusers] How to enable capping for Cone ? In-Reply-To: References: Message-ID: Hi Girish, Rendering translucent geometry is incorrectly done. Would you see if the following helps? https://lorensen.github.io/VTKExamples/site/Cxx/Visualization/CorrectlyRenderTranslucentGeometry/ Thanks, yoshimi 2017-06-23 19:24 GMT+09:00 Girish Lande : > Hi Experts, > > I am trying to draw Cone with its base closed. > For that I am calling CappingOn() function provided for same. > But it doesn't seem to work. I can't think of what can be missing here. > > Following is my code. > > > #include "stdafx.h" > > #include > VTK_MODULE_INIT(vtkRenderingOpenGL2) > VTK_MODULE_INIT(vtkRenderingFreeType); > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > int main(int, char *[]) > { > //Create a cone > vtkSmartPointer coneSource = > vtkSmartPointer::New(); > coneSource->SetResolution(100); > coneSource->SetCapping(true); > coneSource->Update(); > > //Create a mapper and actor > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputConnection(coneSource->GetOutputPort()); > > vtkSmartPointer actor = > vtkSmartPointer::New(); > actor->SetMapper(mapper); > actor->GetProperty()->SetOpacity(0.5); > > //Create a renderer, render window, and interactor > vtkSmartPointer renderer = > vtkSmartPointer::New(); > vtkSmartPointer renderWindow = > vtkSmartPointer::New(); > renderWindow->AddRenderer(renderer); > vtkSmartPointer renderWindowInteractor = > vtkSmartPointer::New(); > renderWindowInteractor->SetRenderWindow(renderWindow); > > //Add the actors to the scene > renderer->AddActor(actor); > > vtkSmartPointer style = > vtkSmartPointer::New(); > renderWindowInteractor->SetInteractorStyle(style); > > > //Render and interact > renderWindow->SetSize(800, 800); > renderWindow->Render(); > renderWindowInteractor->Start(); > > return EXIT_SUCCESS; > } > > > > > -- > thanks & regards, > Girish > > > ------------------------------------------------------------------------------------------------------------------------- > Disclaimer: This email message including any attachments is confidential, > and may be privileged and proprietary to Agiliad. If you are not the > intended recipient, please notify us immediately by replying to this message > and destroy all copies of this message including any attachments. You are > NOT authorized to read, print, retain, copy, disseminate, distribute, or use > this message or any part thereof. 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 > From f2014141 at pilani.bits-pilani.ac.in Sat Jun 24 06:25:00 2017 From: f2014141 at pilani.bits-pilani.ac.in (Rishabh Mittar) Date: Sat, 24 Jun 2017 15:55:00 +0530 Subject: [vtkusers] Error While Building VTK with Oculus on Linux In-Reply-To: References: Message-ID: Hi, I am new to CMake as well as VTK. I need to build VTK with Oculus for Android.I am using A Linux PC I have successfully built the standalone VTK and tested with a few examples Have also done the same for Oculus. I am using the nightly master version of VTK from https://github.com/Kitware/VTK And Cmake feature branch of Oculus SDK from https://github.com/jherico/OculusSDK However while building VTK with Module_vtkRenderingOculus ON and OCULUSSDK_DIR set as the path to my Oculus build directory, I am getting the following error: CMake Error at Rendering/Oculus/CMakeLists.txt:3 (find_package): By not providing "FindOCULUSSDK.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configuration file provided by "OCULUSSDK", but CMake did not find one. Could not find a package configuration file provided by "OCULUSSDK" with any of the following names: OCULUSSDKConfig.cmake oculussdk-config.cmake Add the installation prefix of "OCULUSSDK" to CMAKE_PREFIX_PATH or set "OCULUSSDK_DIR" to a directory containing one of the above files. If "OCULUSSDK" provides a separate development package or SDK, be sure it has been installed. I manually searched the Oculus build directory but could not find any such file.Also tried rebuilding Oculus. Is there any mistake I am making? If not how can I solve the above problem? The versions of the required software on my PC are as follows: cmake version 3.9.0-rc3 OpenGL version 3.0.0 My PC specifications are as follows: OS: Ubuntu 14.04 64-bit Processor: Intel Core i3-2100 CPU @ 3.10GHz x 4 Graphics: Intel (HD) Graphics 2000 RAM:4 GB -- Rishabh Mittar -------------- next part -------------- An HTML attachment was scrubbed... URL: From newcfd at yahoo.com Sun Jun 25 23:38:07 2017 From: newcfd at yahoo.com (newcfd) Date: Sun, 25 Jun 2017 20:38:07 -0700 (MST) Subject: [vtkusers] How to get the neighbour block indices in a multiblock data set Message-ID: <1498448287750-5743778.post@n5.nabble.com> I have a multiblock mesh and would like to know all the neighbour block indies of one block. I did not find any function in vtkMultiBlockDataSet to do this. Any idea? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-get-the-neighbour-block-indices-in-a-multiblock-data-set-tp5743778.html Sent from the VTK - Users mailing list archive at Nabble.com. From tjlp at netease.com Mon Jun 26 00:19:18 2017 From: tjlp at netease.com (Liu_tj) Date: Mon, 26 Jun 2017 12:19:18 +0800 (CST) Subject: [vtkusers] Is it possible to create a vtkAngleWidget which the 3 points are on 3 different 3D models? Message-ID: <11be569a.6.15ce2a00986.Coremail.tjlp@netease.com> Hi, If I create 3 3d models for different parts of a DICOM series, these 3 models have their own actors, so it is possible to create a vtkAngleWidget which the 3 points are on these 3 different 3D models? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Mon Jun 26 04:24:28 2017 From: tjlp at netease.com (Liu_tj) Date: Mon, 26 Jun 2017 16:24:28 +0800 (CST) Subject: [vtkusers] How to prevent a window with title "Visualization Tookit" popup? Message-ID: <1134e129.14.15ce3808166.Coremail.tjlp@netease.com> Hi, When we start our Application using VTK library, a window with title "Visualization Tookit" is always popup with several seconds and then disappear. How can I prevent it from popup? Thanks Liu Peng -------------- next part -------------- An HTML attachment was scrubbed... URL: From ruvva at yahoo.com Mon Jun 26 14:57:11 2017 From: ruvva at yahoo.com (Koteswara Rao Ruvva) Date: Mon, 26 Jun 2017 18:57:11 +0000 (UTC) Subject: [vtkusers] Offset contours References: <2101341144.2891648.1498503431895.ref@mail.yahoo.com> Message-ID: <2101341144.2891648.1498503431895@mail.yahoo.com> Hello All, I need to create offset contours for a contour (polygon) that is created by vtkCutter. Basically I need to create an inner and outer contours by a specific offset for cutter contour. I am wondering if there is a way in VTK to get this. Thank youRao -------------- next part -------------- An HTML attachment was scrubbed... URL: From prakeshofficial at gmail.com Tue Jun 27 03:27:53 2017 From: prakeshofficial at gmail.com (rakesh patil) Date: Tue, 27 Jun 2017 12:57:53 +0530 Subject: [vtkusers] Exporting to vector format problem. Message-ID: Hi, I have derived my own class from vtkScalarBarActor. I have redefined ConfigureScalarBar() function. I am getting the desired output on the render window. When I export the renderwindow contents to vector format using vtkGL2PSExporter, the output PS file misses drawing the colour bar. If I replace my derived class with vtkScalarBarActor, the PS file shows proper output. Really wondering what might have gone wrong. Attached the code of my derived class. Experienced users/VTK developers, help me out to fix this problem. Thanks & Regards Rakesh Patil -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MyScalarBarActor.zip Type: application/zip Size: 6191 bytes Desc: not available URL: From my5f2 at mail.missouri.edu Tue Jun 27 05:17:27 2017 From: my5f2 at mail.missouri.edu (Gnim Gnay) Date: Tue, 27 Jun 2017 02:17:27 -0700 (MST) Subject: [vtkusers] How to copy an existing vtkContourRepresentation to another renderer? Message-ID: <1498555047545-5743790.post@n5.nabble.com> Hey, I currently have two vtkrenderwindows and after I get a vtkContourRepresentation by creating a vtkContourwidget. Is it possible to directly copy this vtkContourRepresentation to a different renderwindow ? I know one way is to get polydata from existing vtkContourRepresentation and use it to initialize a new vtkcontourwidget in the other vtkrenderwindow. but can I directly copy the vtkContourRepresentation without using a new vtkcontourwidget? Thanks Gnim Gnay -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-copy-an-existing-vtkContourRepresentation-to-another-renderer-tp5743790.html Sent from the VTK - Users mailing list archive at Nabble.com. From kor1581 at gmail.com Tue Jun 27 08:01:42 2017 From: kor1581 at gmail.com (K O ranjith) Date: Tue, 27 Jun 2017 17:31:42 +0530 Subject: [vtkusers] Error in opening dicom image using vtkDICOMImageReader Message-ID: Hello, While trying to open a mri dicom image using the ReadDICOM vtk example, it showing error in vtkDICOMImageReader. The code properly working with sample image file supplied with the example, but showing error while supplying other dicom images as input. The dicom image file given as input is perfect one, I have tested it with other dicom viewers like RadiAnt. This is the error, ERROR: In C:\VTK8s\VTK-8.0.0.rc1\IO\Image\vtkDICOMImageReader.cxx, line 270 vtkDICOMImageReader(0000020DC5E9CF70): There was a problem retrieving data from: E:/Projects/mri/evaluate/Qt/ImageViewer/VTK/VTKtest/ReadDICOM/DICOMData/image.dcm ERROR: In C:\VTK8s\VTK-8.0.0.rc1\Common\ExecutionModel\vtkExecutive.cxx, line 784 vtkCompositeDataPipeline (0000020DC5E45040): Algorithm vtkDICOMImageReader(0000020DC5E9CF70) returned failure for request: vtkInformation (0000020DC5EF8AA0) Debug: Off Modified Time: 2365 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FROM_OUTPUT_PORT: 0 FORWARD_DIRECTION: 0 ALGORITHM_AFTER_FORWARD: 1 And the code used is : std::string inputFilename = "E:/mri/image.dcm"; vtkSmartPointer reader = vtkSmartPointer::New(); reader->*SetFileName*(inputFilename.c_str()); reader->*Update*(); vtkSmartPointer imageViewer = vtkSmartPointer::New(); imageViewer->*SetInputConnection*(reader->GetOutputPort()); vtkSmartPointerrenderWindowInteractor = vtkSmartPointer::New(); imageViewer->*SetupInteractor*(renderWindowInteractor); imageViewer->*Render*(); imageViewer->*GetRenderer*()->*ResetCamera*(); imageViewer->*Render*(); renderWindowInteractor->*Start*(); Vtk version 8.0 used Please help to sort out the error -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Tue Jun 27 10:57:59 2017 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Tue, 27 Jun 2017 14:57:59 +0000 Subject: [vtkusers] Announce: vtk 8.0.0 is ready! Message-ID: The VTK maintenance team is happy to announce the eighth major release of VTK. Special thanks go out to everyone who tested and provided feedback and fixes during the release candidate cycle. You can find the source, data and documentation tarballs on the VTK website . Please find detailed release notes here: https://blog.kitware.com/vtk-8-0-0/. As always, contact Kitware and the mailing lists for assistance. Thank, VTK Maintenance Team ? -- Sankhesh Jhaveri *Sr. Research & Development Engineer* | Kitware | (518) 881-4417 ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Tue Jun 27 11:00:10 2017 From: david.lonie at kitware.com (David Lonie) Date: Tue, 27 Jun 2017 11:00:10 -0400 Subject: [vtkusers] [vtk-developers] Exporting to vector format problem. In-Reply-To: References: Message-ID: On the OpenGL backend, the scalar bar is handled specially by the GL2PS export code. See https://gitlab.kitware.com/vtk/vtk/blob/master/IO/ExportOpenGL/vtkOpenGLGL2PSExporter.cxx#L798 Exporting vector graphics through GL2PS is a rather tedious process that requires some manual setup for certain actors. In this case, we need to specially handle the scalar bar in order to get the textured color bar to appear correctly. I don't see a way to work around this without modifying the exporter itself. On the OpenGL2 backend, the whole thing will be exported as a raster image, aside from the text labels which will be scalable. So you should at least see something in the output from the new backend. HTH, Dave On Tue, Jun 27, 2017 at 3:27 AM, rakesh patil wrote: > Hi, > > I have derived my own class from vtkScalarBarActor. I have redefined > ConfigureScalarBar() function. I am getting the desired output on the render > window. When I export the renderwindow contents to vector format using > vtkGL2PSExporter, the output PS file misses drawing the colour bar. If I > replace my derived class with vtkScalarBarActor, the PS file shows proper > output. Really wondering what might have gone wrong. > > Attached the code of my derived class. Experienced users/VTK developers, > help me out to fix this problem. > > Thanks & Regards > Rakesh Patil > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > From elvis.stansvik at orexplore.com Tue Jun 27 12:14:10 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 27 Jun 2017 18:14:10 +0200 Subject: [vtkusers] Announce: vtk 8.0.0 is ready! In-Reply-To: References: Message-ID: Den 27 juni 2017 4:58 em skrev "Sankhesh Jhaveri" < sankhesh.jhaveri at kitware.com>: > > The VTK maintenance team is happy to announce the eighth major release of VTK. Special thanks go out to everyone who tested and provided feedback and fixes during the release candidate cycle. Excellent, many thanks! It would be great if someone with the necessary bits could assign the Windows/Intel volume rendering bug I reported to a milestone: https://gitlab.kitware.com/vtk/vtk/issues/17058 I can't seem to do it myself, but on vtk-developers I was told this would probably be worked on for the next point release. It means volume rendering in PV is currently broken on Windows + Haswell/Ivy Bridge, so I hope it's up there on the priority list. Elvis > > You can find the source, data and documentation tarballs on the VTK website. Please find detailed release notes here: https://blog.kitware.com/vtk-8-0-0/. > > As always, contact Kitware and the mailing lists for assistance. > > Thank, > VTK Maintenance Team > > ? > -- > Sankhesh Jhaveri > Sr. Research & Development Engineer | Kitware | (518) 881-4417 > ? > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Jun 27 12:19:20 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 27 Jun 2017 12:19:20 -0400 Subject: [vtkusers] [vtk-developers] Announce: vtk 8.0.0 is ready! In-Reply-To: References: Message-ID: I've associated it with vtk 8.0.1 and pv 5.4.1 to make sure we address it asap. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Jun 27, 2017 at 12:14 PM, Elvis Stansvik < elvis.stansvik at orexplore.com> wrote: > Den 27 juni 2017 4:58 em skrev "Sankhesh Jhaveri" < > sankhesh.jhaveri at kitware.com>: > > > > The VTK maintenance team is happy to announce the eighth major release > of VTK. Special thanks go out to everyone who tested and provided feedback > and fixes during the release candidate cycle. > > Excellent, many thanks! > > It would be great if someone with the necessary bits could assign the > Windows/Intel volume rendering bug I reported to a milestone: > > https://gitlab.kitware.com/vtk/vtk/issues/17058 > > I can't seem to do it myself, but on vtk-developers I was told this would > probably be worked on for the next point release. > > It means volume rendering in PV is currently broken on Windows + > Haswell/Ivy Bridge, so I hope it's up there on the priority list. > > Elvis > > > > > You can find the source, data and documentation tarballs on the VTK > website. Please find detailed release notes here: > https://blog.kitware.com/vtk-8-0-0/. > > > > As always, contact Kitware and the mailing lists for assistance. > > > > Thank, > > VTK Maintenance Team > > > > ? > > -- > > Sankhesh Jhaveri > > Sr. Research & Development Engineer | Kitware | (518) 881-4417 > > ? > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > 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 > > Search the list archives at: http://markmail.org/search/?q=vtk-developers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtk-developers > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From inglis.dl at gmail.com Tue Jun 27 13:18:48 2017 From: inglis.dl at gmail.com (Dean Inglis) Date: Tue, 27 Jun 2017 13:18:48 -0400 Subject: [vtkusers] multi-pass in-place algorithm? Message-ID: I am developing a widget based on a sphere implicit function that smooths polydata meshes locally. The idea is to apply local smoothing interactively to a single input vtkPolyData. Is there a way to do feed back the output of my local smoothing filter into itself as the input or to repeatedly apply filtering operations to the same input? here are the steps: 1) set vtkPolyData with pedigree Ids (via vtkIdFilter) as input to a sphere type widget 2) apply vtkExtractPolyData to the input using the widget as a sphere implicit function 3) smooth the extracted output from 2) and overwrite the original points' coordinates using the smooth points in 1) according to pedigree id mapping 4) move the widget over the input and repeat 2), 3) best, Dean -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.stansvik at orexplore.com Tue Jun 27 13:29:38 2017 From: elvis.stansvik at orexplore.com (Elvis Stansvik) Date: Tue, 27 Jun 2017 19:29:38 +0200 Subject: [vtkusers] [vtk-developers] Announce: vtk 8.0.0 is ready! In-Reply-To: References: Message-ID: 2017-06-27 18:19 GMT+02:00 David E DeMarle : > I've associated it with vtk 8.0.1 and pv 5.4.1 to make sure we address it > asap. Thanks a lot. Elvis > > > David E DeMarle > Kitware, Inc. > Principal Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Jun 27, 2017 at 12:14 PM, Elvis Stansvik > wrote: >> >> Den 27 juni 2017 4:58 em skrev "Sankhesh Jhaveri" >> : >> > >> > The VTK maintenance team is happy to announce the eighth major release >> > of VTK. Special thanks go out to everyone who tested and provided feedback >> > and fixes during the release candidate cycle. >> >> Excellent, many thanks! >> >> It would be great if someone with the necessary bits could assign the >> Windows/Intel volume rendering bug I reported to a milestone: >> >> https://gitlab.kitware.com/vtk/vtk/issues/17058 >> >> I can't seem to do it myself, but on vtk-developers I was told this would >> probably be worked on for the next point release. >> >> It means volume rendering in PV is currently broken on Windows + >> Haswell/Ivy Bridge, so I hope it's up there on the priority list. >> >> Elvis >> >> > >> > You can find the source, data and documentation tarballs on the VTK >> > website. Please find detailed release notes here: >> > https://blog.kitware.com/vtk-8-0-0/. >> > >> > As always, contact Kitware and the mailing lists for assistance. >> > >> > Thank, >> > VTK Maintenance Team >> > >> > >> > -- >> > Sankhesh Jhaveri >> > Sr. Research & Development Engineer | Kitware | (518) 881-4417 >> > >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > 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 >> >> Search the list archives at: http://markmail.org/search/?q=vtk-developers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtk-developers >> >> > From zmanvortex at gmail.com Tue Jun 27 15:56:39 2017 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Tue, 27 Jun 2017 14:56:39 -0500 Subject: [vtkusers] Storing Metadata with VTK objects Message-ID: I have tried asking this question before without response so i am going to try to explain one of my use cases in hopes of clarifying the question. I have vtkactors that are polyline and/or polygon objects that I am rendering. These polyline/polygons represent National Weather Service watch and warning areas. I would like to allow the user to pick a polygon and I will pop up a window with the watch/warning information text. I need a way to store some kind of ID with the actor so that when it is picked I am able to look up the correct informative text from my database. I am struggling with finding a way to store some kind of metadata with the vtkactor that can be referenced when picked. Any help would be appreciated. Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Jun 27 16:17:38 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 27 Jun 2017 14:17:38 -0600 Subject: [vtkusers] Storing Metadata with VTK objects In-Reply-To: References: Message-ID: Hi Donny, The usual way of doing this is by adding FieldData arrays to the VTK data objects: http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData The field data can be retrieved from the data object during a pick. - David On Tue, Jun 27, 2017 at 1:56 PM, Donny Zimmerman wrote: > I have tried asking this question before without response so i am going to > try to explain one of my use cases in hopes of clarifying the question. > > I have vtkactors that are polyline and/or polygon objects that I am > rendering. These polyline/polygons represent National Weather Service watch > and warning areas. I would like to allow the user to pick a polygon and I > will pop up a window with the watch/warning information text. I need a way > to store some kind of ID with the actor so that when it is picked I am able > to look up the correct informative text from my database. I am struggling > with finding a way to store some kind of metadata with the vtkactor that > can be referenced when picked. Any help would be appreciated. > > Thanks. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Tue Jun 27 16:49:32 2017 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Tue, 27 Jun 2017 15:49:32 -0500 Subject: [vtkusers] Storing Metadata with VTK objects In-Reply-To: References: Message-ID: Thanks David! That was exactly what I was looking for. Can I store a string array into FieldData? On Tue, Jun 27, 2017 at 3:17 PM, David Gobbi wrote: > Hi Donny, > > The usual way of doing this is by adding FieldData arrays to the VTK data > objects: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData > > The field data can be retrieved from the data object during a pick. > > - David > > > On Tue, Jun 27, 2017 at 1:56 PM, Donny Zimmerman > wrote: > >> I have tried asking this question before without response so i am going >> to try to explain one of my use cases in hopes of clarifying the question. >> >> I have vtkactors that are polyline and/or polygon objects that I am >> rendering. These polyline/polygons represent National Weather Service watch >> and warning areas. I would like to allow the user to pick a polygon and I >> will pop up a window with the watch/warning information text. I need a way >> to store some kind of ID with the actor so that when it is picked I am able >> to look up the correct informative text from my database. I am struggling >> with finding a way to store some kind of metadata with the vtkactor that >> can be referenced when picked. Any help would be appreciated. >> >> Thanks. >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Jun 27 18:39:11 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 27 Jun 2017 16:39:11 -0600 Subject: [vtkusers] Storing Metadata with VTK objects In-Reply-To: References: Message-ID: Yes, you can store any kind of array in the FieldData, and you can give each array any name that you want. On Tue, Jun 27, 2017 at 2:49 PM, Donny Zimmerman wrote: > Thanks David! That was exactly what I was looking for. Can I store a > string array into FieldData? > > On Tue, Jun 27, 2017 at 3:17 PM, David Gobbi > wrote: > >> Hi Donny, >> >> The usual way of doing this is by adding FieldData arrays to the VTK data >> objects: >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData >> >> The field data can be retrieved from the data object during a pick. >> >> - David >> >> >> On Tue, Jun 27, 2017 at 1:56 PM, Donny Zimmerman >> wrote: >> >>> I have tried asking this question before without response so i am going >>> to try to explain one of my use cases in hopes of clarifying the question. >>> >>> I have vtkactors that are polyline and/or polygon objects that I am >>> rendering. These polyline/polygons represent National Weather Service watch >>> and warning areas. I would like to allow the user to pick a polygon and I >>> will pop up a window with the watch/warning information text. I need a way >>> to store some kind of ID with the actor so that when it is picked I am able >>> to look up the correct informative text from my database. I am struggling >>> with finding a way to store some kind of metadata with the vtkactor that >>> can be referenced when picked. Any help would be appreciated. >>> >>> Thanks. >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tharun160190 at gmail.com Wed Jun 28 00:21:47 2017 From: tharun160190 at gmail.com (Tharun) Date: Tue, 27 Jun 2017 21:21:47 -0700 (MST) Subject: [vtkusers] QVTK widget rendering performance improvements Message-ID: <1498623707113-5743806.post@n5.nabble.com> Hi all, Are there any special techniques by which we can improve the rendering performance of QVTK widget like multi threading? I do not if rendering in a separate thread is possible and if possible, would it improve the performance? Thank you -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTK-widget-rendering-performance-improvements-tp5743806.html Sent from the VTK - Users mailing list archive at Nabble.com. From kor1581 at gmail.com Wed Jun 28 06:38:44 2017 From: kor1581 at gmail.com (K O ranjith) Date: Wed, 28 Jun 2017 16:08:44 +0530 Subject: [vtkusers] vtkGDCMImageReader in vtk Libraray Message-ID: Hello, I'm using vtk 8.0 for an MRI image viewer development. I need to use vtkGDCMImageReader with vtkImageViewer2. I have build VTK with GDCM library. But vtkGDCMImageReader.h is not available in build output. How can I get vtkGDCMImageReader . Is it available vtk library or need to include from GDCM library? can connect output from vtkGDCMImageReader to *vtkImageViewer2* -------------- next part -------------- An HTML attachment was scrubbed... URL: From m.nunes at fratoria.com Wed Jun 28 06:54:57 2017 From: m.nunes at fratoria.com (Shark) Date: Wed, 28 Jun 2017 03:54:57 -0700 (MST) Subject: [vtkusers] VTK6.0 label size problem of vtkScalarBarActor In-Reply-To: <63FC2FD4-FA2F-4129-99F7-E6454EDB6E86@kitware.com> References: <1372167995413-5721585.post@n5.nabble.com> <1372190171430-5721597.post@n5.nabble.com> <1372192073869-5721602.post@n5.nabble.com> <1372193847294-5721606.post@n5.nabble.com> <63FC2FD4-FA2F-4129-99F7-E6454EDB6E86@kitware.com> Message-ID: <1498647297403-5743811.post@n5.nabble.com> Hello, I am taking David's suggestion on vtkPVScalarBarActor. However, I am facing an issue and, hopefully, someone here can help. I am on windows 64bit, vtk 7.1.1, visual studio 2013. I am setting my scalebar with: sbar->SetAddRangeAnnotations(0); sbar->SetNumberOfLabels(0); const double* range = GetLookUpTableForScaleBar()->GetRange(); double dr = range[1] - range[0]; sbar->AddValueLabelIfUnoccluded(0, 105, dr); sbar->AddValueLabelIfUnoccluded(-1, 15, dr); sbar->AddValueLabelIfUnoccluded(1, 200, dr); But these labels are not drawn. When I set up SetNumberOfLabels(3), then 3 automatic labels are shown, and not the ones I indicated. As for the values (105, 15, 200) they are in line with the values returned from the vtkPVScalarBarActor automatic labels. Any suggestions? Another question, will this class be included in VTK 8.0 ? Best regards, Miguel -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK6-0-label-size-problem-of-vtkScalarBarActor-tp5721585p5743811.html Sent from the VTK - Users mailing list archive at Nabble.com. From clement.douarre at gmail.com Wed Jun 28 12:12:30 2017 From: clement.douarre at gmail.com (=?UTF-8?B?Q2zDqW1lbnQgRC4=?=) Date: Wed, 28 Jun 2017 18:12:30 +0200 Subject: [vtkusers] using both SetResliceTransform and SetResliceAxes Message-ID: Hello everyone, new to VTK, etc etc. I wish to extract a 2D slice from a 3D volume, and then translate this slicing in the volume, following the axis of the slice So say I declare my slice this way (code is in Python) : ------------------------------------------- oblique = vtk.vtkMatrix4x4() #Some oblique matrix, vectors are in fact normalised but here I just put random numbers for this example oblique.DeepCopy((0.3, 0 , 0 , 10, 0 , 0.28, 0 , 10, 0.8, 0 , 0.97, 10, 0 , 0 , 0 , 1)) slice=vtk.vtkImageReslice() #create the slice object slice.SetOutputExtent(0, 5, 0, 5, 0, 0) slice.SetOutputOrigin(-0.5 * 5, -0.5 * 5, 0) slice.SetResliceAxes(oblique) #set the resliceAxes matrix to it ----------------------------------------------- So far so good, I get a slice oriented along the oblique matrix. It gets trickier when I want to translate it. Bear in mind that I would like a translation *along the axis of the oblique matrix* and not in world coordinates. I.E. i would like to translate along vectors (0.3,0,0.8), (0,0.28,0) and (0,0,0.97) (vectors of the oblique matrix) So if I do this : ------------------------------------------- transformation = vtk.vtkTransform(); slice.SetResliceTransform(transformation) transformation.Translate(1,0,0) slice.Update() ------------------------------------------- I would expect reading documentation on setResliceTransform that my slice would move along one of these axis (the Z axis here). Because my understanding of setResliceTransform and setResliceAxes being used together is that the latter is used to set up a grid upon which the former will then act (so translating will "slide" along the axes of setResliceAxes) However, I do not observe this behaviour (I don't really how the slice is moving, but certainly not in the axes of oblique), did I get something wrong ? Many thanks, Cl?ment -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Jun 28 13:44:38 2017 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 28 Jun 2017 11:44:38 -0600 Subject: [vtkusers] using both SetResliceTransform and SetResliceAxes In-Reply-To: References: Message-ID: Hi Cl?ment, The basic formula for the transformation in vtkImageReslice is as follows: p_in = T A p_out where T is ResliceTransform, A is ResliceAxes, p_out is "output data coords", and p_in is "input data coords". In most cases, p_out is also "world coords". The documentation says "T is applied to the resampling grid that has been defined by A", which is just another way of saying that "T is applied after A". As shown in the above equation, T is associated with p_in, not with p_out. In other words, you cannot use T to perform a transformation in world coords. Instead, the code would be something like this: # define the desired translation in output (i.e. world) coords t_world = (1.0, 0.0, 0.0, 0.0) # convert to data coords A = slice.GetResliceAxes() t_data = A.MultiplyPoint(t_world) # create a transformation for data coords T.Translate(t_data[0:3]) slice.SetResliceTransform(T) - David On Wed, Jun 28, 2017 at 10:12 AM, Cl?ment D. wrote: > Hello everyone, new to VTK, etc etc. > > I wish to extract a 2D slice from a 3D volume, and then translate this > slicing in the volume, following the axis of the slice > > So say I declare my slice this way (code is in Python) : > > ------------------------------------------- > oblique = vtk.vtkMatrix4x4() > #Some oblique matrix, vectors are in fact normalised but here I just put > random numbers for this example > oblique.DeepCopy((0.3, 0 , 0 , 10, > 0 , 0.28, 0 , 10, > 0.8, 0 , 0.97, 10, > 0 , 0 , 0 , 1)) > > slice=vtk.vtkImageReslice() #create the slice object > slice.SetOutputExtent(0, 5, 0, 5, 0, 0) > slice.SetOutputOrigin(-0.5 * 5, -0.5 * 5, 0) > > slice.SetResliceAxes(oblique) #set the resliceAxes matrix to it > ----------------------------------------------- > > So far so good, I get a slice oriented along the oblique matrix. It gets > trickier when I want to translate it. > Bear in mind that I would like a translation *along the axis of the > oblique matrix* and not in world coordinates. > I.E. i would like to translate along vectors (0.3,0,0.8), (0,0.28,0) and > (0,0,0.97) (vectors of the oblique matrix) > > So if I do this : > > ------------------------------------------- > transformation = vtk.vtkTransform(); > slice.SetResliceTransform(transformation) > transformation.Translate(1,0,0) > slice.Update() > ------------------------------------------- > > I would expect reading documentation on setResliceTransform that my slice > would move along one of these axis (the Z axis here). > Because my understanding of setResliceTransform and setResliceAxes being > used together is that the latter is used to set up a grid upon which the > former will then act (so translating will "slide" along the axes of > setResliceAxes) > However, I do not observe this behaviour (I don't really how the slice is > moving, but certainly not in the axes of oblique), did I get something > wrong ? > > Many thanks, > Cl?ment > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sce2020sahaf at yahoo.com Thu Jun 29 01:29:25 2017 From: sce2020sahaf at yahoo.com (sepideh20) Date: Wed, 28 Jun 2017 22:29:25 -0700 (MST) Subject: [vtkusers] Create custom frustum for vtkExtractGeometry Message-ID: <1498714165961-5743816.post@n5.nabble.com> Hello, I want to create a custom frustum using vtkplanes. That frustum would be then used in vtkExtractGeometry to extract an area of an unstructured grid. Now, my problem is how to create a custom frustum with 8 points (all the corners of the frustum). In other words, using the 8 corner points that I have, how should I set planes in SetFrustumPlanes as below: vtkPlanes planes = vtkPlanes.New(); planes.SetFrustumPlanes( ???? ); Thanks. -- View this message in context: http://vtk.1045678.n5.nabble.com/Create-custom-frustum-for-vtkExtractGeometry-tp5743816.html Sent from the VTK - Users mailing list archive at Nabble.com. From adarshdesai.dsp at gmail.com Thu Jun 29 03:28:51 2017 From: adarshdesai.dsp at gmail.com (abcd efgh) Date: Thu, 29 Jun 2017 00:28:51 -0700 Subject: [vtkusers] Create a slice for 3D glyph In-Reply-To: References: Message-ID: Hi, I have a 3D glyph made of cubes. I want to create a slicer like image plane widget. Using which I can use mouse to slice the 3D glyph. The slice should appear on the renderer. Please tell me the steps as I found examples as not so clear. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From clement.douarre at gmail.com Thu Jun 29 03:37:27 2017 From: clement.douarre at gmail.com (=?UTF-8?B?Q2zDqW1lbnQgRC4=?=) Date: Thu, 29 Jun 2017 09:37:27 +0200 Subject: [vtkusers] using both SetResliceTransform and SetResliceAxes In-Reply-To: References: Message-ID: Great David, I understand and it works now ! Thanks 2017-06-28 19:44 GMT+02:00 David Gobbi : > Hi Cl?ment, > > The basic formula for the transformation in vtkImageReslice is as follows: > > p_in = T A p_out > > where T is ResliceTransform, A is ResliceAxes, p_out is "output data > coords", and p_in is "input data coords". In most cases, p_out is also > "world coords". > > The documentation says "T is applied to the resampling grid that has been > defined by A", which is just another way of saying that "T is applied after > A". As shown in the above equation, T is associated with p_in, not with > p_out. > > In other words, you cannot use T to perform a transformation in world > coords. > > Instead, the code would be something like this: > > # define the desired translation in output (i.e. world) coords > t_world = (1.0, 0.0, 0.0, 0.0) > # convert to data coords > A = slice.GetResliceAxes() > t_data = A.MultiplyPoint(t_world) > # create a transformation for data coords > T.Translate(t_data[0:3]) > slice.SetResliceTransform(T) > > - David > > > On Wed, Jun 28, 2017 at 10:12 AM, Cl?ment D. > wrote: > >> Hello everyone, new to VTK, etc etc. >> >> I wish to extract a 2D slice from a 3D volume, and then translate this >> slicing in the volume, following the axis of the slice >> >> So say I declare my slice this way (code is in Python) : >> >> ------------------------------------------- >> oblique = vtk.vtkMatrix4x4() >> #Some oblique matrix, vectors are in fact normalised but here I just put >> random numbers for this example >> oblique.DeepCopy((0.3, 0 , 0 , 10, >> 0 , 0.28, 0 , 10, >> 0.8, 0 , 0.97, 10, >> 0 , 0 , 0 , 1)) >> >> slice=vtk.vtkImageReslice() #create the slice object >> slice.SetOutputExtent(0, 5, 0, 5, 0, 0) >> slice.SetOutputOrigin(-0.5 * 5, -0.5 * 5, 0) >> >> slice.SetResliceAxes(oblique) #set the resliceAxes matrix to it >> ----------------------------------------------- >> >> So far so good, I get a slice oriented along the oblique matrix. It gets >> trickier when I want to translate it. >> Bear in mind that I would like a translation *along the axis of the >> oblique matrix* and not in world coordinates. >> I.E. i would like to translate along vectors (0.3,0,0.8), (0,0.28,0) and >> (0,0,0.97) (vectors of the oblique matrix) >> >> So if I do this : >> >> ------------------------------------------- >> transformation = vtk.vtkTransform(); >> slice.SetResliceTransform(transformation) >> transformation.Translate(1,0,0) >> slice.Update() >> ------------------------------------------- >> >> I would expect reading documentation on setResliceTransform that my slice >> would move along one of these axis (the Z axis here). >> Because my understanding of setResliceTransform and setResliceAxes being >> used together is that the latter is used to set up a grid upon which the >> former will then act (so translating will "slide" along the axes of >> setResliceAxes) >> However, I do not observe this behaviour (I don't really how the slice is >> moving, but certainly not in the axes of oblique), did I get something >> wrong ? >> >> Many thanks, >> Cl?ment >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zmanvortex at gmail.com Thu Jun 29 09:01:17 2017 From: zmanvortex at gmail.com (Donny Zimmerman) Date: Thu, 29 Jun 2017 08:01:17 -0500 Subject: [vtkusers] Storing Metadata with VTK objects In-Reply-To: References: Message-ID: David your solution is working great. I am using C++/CLI (.NET) so I am going to post my code in case anyone else needs this functionality with .NET strings. *#include * *using namespace msclr::interop; * *String^ idnstr = cap->Identifier; * *std::string idstr = marshal_as(idnstr);* *vtkSmartPointer idarray = vtkSmartPointer::New();* *idarray->SetName("CapId");* *idarray->InsertNextValue(idstr.c_str());* *polyData->GetFieldData()->AddArray(idarray);* Here is the code to retrieve: *int* clickPos = m_iren->GetEventPosition();* *// Pick from this location.* *vtkSmartPointer picker = vtkSmartPointer::New();* *picker->Pick(clickPos[0], clickPos[1], 0, m_caprenderer->GetRenderer());* *if (picker->GetActor() != NULL)* *{* * vtkStringArray* strarr = reinterpret_cast(picker->GetActor()->GetMapper()->GetInput()->GetFieldData()->GetAbstractArray("CapId"));* * String^ capid = gcnew String(strarr->GetValue(0));* * System::Diagnostics::Debug::WriteLine("Cap ID from pick: " + capid);* *}* Not sure if there is a better way to retrieve the array than "picker->GetActor()->GetMapper()->GetInput()->GetFieldData()->GetAbstractArray("CapId")" but it works. Thanks On Tue, Jun 27, 2017 at 5:39 PM, David Gobbi wrote: > Yes, you can store any kind of array in the FieldData, and you can give > each array any name that you want. > > On Tue, Jun 27, 2017 at 2:49 PM, Donny Zimmerman > wrote: > >> Thanks David! That was exactly what I was looking for. Can I store a >> string array into FieldData? >> >> On Tue, Jun 27, 2017 at 3:17 PM, David Gobbi >> wrote: >> >>> Hi Donny, >>> >>> The usual way of doing this is by adding FieldData arrays to the VTK >>> data objects: >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/FieldData >>> >>> The field data can be retrieved from the data object during a pick. >>> >>> - David >>> >>> >>> On Tue, Jun 27, 2017 at 1:56 PM, Donny Zimmerman >>> wrote: >>> >>>> I have tried asking this question before without response so i am going >>>> to try to explain one of my use cases in hopes of clarifying the question. >>>> >>>> I have vtkactors that are polyline and/or polygon objects that I am >>>> rendering. These polyline/polygons represent National Weather Service watch >>>> and warning areas. I would like to allow the user to pick a polygon and I >>>> will pop up a window with the watch/warning information text. I need a way >>>> to store some kind of ID with the actor so that when it is picked I am able >>>> to look up the correct informative text from my database. I am struggling >>>> with finding a way to store some kind of metadata with the vtkactor that >>>> can be referenced when picked. Any help would be appreciated. >>>> >>>> Thanks. >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From tjlp at netease.com Thu Jun 29 11:05:17 2017 From: tjlp at netease.com (Liu_tj) Date: Thu, 29 Jun 2017 23:05:17 +0800 (CST) Subject: [vtkusers] Error in opening dicom image using vtkDICOMImageReader In-Reply-To: References: <307c0bad.3.15ce9ca9cfc.Coremail.tjlp@netease.com> Message-ID: <6dfb17.11.15cf462883a.Coremail.tjlp@netease.com> You can post a request to David Gobbi for his vtkDicomReader. ?2017-06-29?"K O ranjith" ??? -----????----- ???:"K O ranjith" ????:2017?06?29? ??? ???:"Liu_tj" ??:Re: [vtkusers] Error in opening dicom image using vtkDICOMImageReader Thanks for the solution.. It's working. one difference noted between vtkDICOMImageReader vs vtkDICOMReader is, vtkDICOMImageReader set the window level & window width from the dicom metadata properly. But in case of vtkDICOMImageReader, have to manually set.... On Tue, Jun 27, 2017 at 7:13 PM, Liu_tj wrote: Actually vtkDICOMImageReader might fail to parse some DICOM files. As we know, current vtkDICOMImageReader version does not follow the complete DICOM standard. Maybe you can try vtkDICOMReader by David Gobbi. ?2017-06-27?"K O ranjith" ??? -----????----- ???:"K O ranjith" ????:2017?06?27? ??? ???:"vtkusers" ??:[vtkusers] Error in opening dicom image using vtkDICOMImageReader Hello, While trying to open a mri dicom image using the ReadDICOM vtk example, it showing error in vtkDICOMImageReader. The code properly working with sample image file supplied with the example, but showing error while supplying other dicom images as input. The dicom image file given as input is perfect one, I have tested it with other dicom viewers like RadiAnt. This is the error, ERROR: In C:\VTK8s\VTK-8.0.0.rc1\IO\Image\vtkDICOMImageReader.cxx, line 270 vtkDICOMImageReader(0000020DC5E9CF70): There was a problem retrieving data from: E:/Projects/mri/evaluate/Qt/ImageViewer/VTK/VTKtest/ReadDICOM/DICOMData/image.dcm ERROR: In C:\VTK8s\VTK-8.0.0.rc1\Common\ExecutionModel\vtkExecutive.cxx, line 784 vtkCompositeDataPipeline (0000020DC5E45040): Algorithm vtkDICOMImageReader(0000020DC5E9CF70) returned failure for request: vtkInformation (0000020DC5EF8AA0) Debug: Off Modified Time: 2365 Reference Count: 1 Registered Events: (none) Request: REQUEST_DATA FROM_OUTPUT_PORT: 0 FORWARD_DIRECTION: 0 ALGORITHM_AFTER_FORWARD: 1 And the code used is : std::string inputFilename = "E:/mri/image.dcm"; vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(inputFilename.c_str()); reader->Update(); vtkSmartPointer imageViewer = vtkSmartPointer::New(); imageViewer->SetInputConnection(reader->GetOutputPort()); vtkSmartPointerrenderWindowInteractor = vtkSmartPointer::New(); imageViewer->SetupInteractor(renderWindowInteractor); imageViewer->Render(); imageViewer->GetRenderer()->ResetCamera(); imageViewer->Render(); renderWindowInteractor->Start(); Vtk version 8.0 used Please help to sort out the error -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Thu Jun 29 12:44:53 2017 From: sean at rogue-research.com (Sean McBride) Date: Thu, 29 Jun 2017 12:44:53 -0400 Subject: [vtkusers] QVTK widget rendering performance improvements In-Reply-To: <1498623707113-5743806.post@n5.nabble.com> References: <1498623707113-5743806.post@n5.nabble.com> Message-ID: <20170629164453.475074871@mail.rogue-research.com> On Tue, 27 Jun 2017 21:21:47 -0700, Tharun said: > Are there any special techniques by which we can improve the rendering >performance of QVTK widget like multi threading? > >I do not if rendering in a separate thread is possible and if possible, >would it improve the performance? Tharun, There are many reasons your code could be slow. You need to measure by using performance tools. See for example: https://en.wikipedia.org/wiki/Profiling_(computer_programming) Once you identify the bottlenecks, people here may have specific suggestions. 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 bill.q.hdp at gmail.com Thu Jun 29 14:16:15 2017 From: bill.q.hdp at gmail.com (Bill Q) Date: Fri, 30 Jun 2017 02:16:15 +0800 Subject: [vtkusers] Issues with coordinate conversion, possible VTK bugs? In-Reply-To: References: Message-ID: Thanks Andras, I read through the links, but I wasn't able to identify the part that is relevant to my questions. Would you be more specific? Many thanks. Bill On Tue, Jun 6, 2017 at 11:01 AM, Andras Lasso wrote: > See how it is implemented 3D Slicer and MITK: > > > > https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/ > vtkThreeDViewInteractorStyle.cxx#L812-L848 > > > > https://github.com/MITK/MITK/blob/master/Modules/Core/src/ > Rendering/mitkBaseRenderer.cpp#L600-L640 > > > > Andras > > > > *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Bill Q > *Sent:* Monday, June 5, 2017 3:56 PM > *To:* Elvis Stansvik > *Cc:* VTK Users > *Subject:* Re: [vtkusers] Issues with coordinate conversion, possible VTK > bugs? > > > > Hi Elvis, > > I did give it a try. But still, it didn't work. I think I must have missed > something since there mush have hundreds of people tried to do the same > thing, getting the world coordinate from the vtk screen. The only way it > worked so far is to use a world picker. All other ways would return > different settings with z valued at 88 something. Where is the z value > coming from? Does the actor add the z in the renderer? > > > > Would someone know the correct way doing it give some advices? > > > Many thanks. > > Bill > > > > On Sat, May 27, 2017 at 4:06 AM, Elvis Stansvik < > elvis.stansvik at orexplore.com> wrote: > > 2017-05-26 20:08 GMT+02:00 Bill Q : > > Hi Elvis and Dan, > > Thank you very much for the response. After setting the render window > > SetNumberOfLayers(2) and setting the renderer with text SetLayer(1), both > > the layers with the DICOM images and the layer with the text can show up. > > But, the problem still persists. I still cannot get the correct world > > coordinates by using the following function: > > > > def display_to_world2(self, pt): > > worldPt = [0, 0, 0, 0] > > vtk.vtkInteractorObserver.ComputeDisplayToWorld(self.renderer_dicom, > > pt[0], pt[1], 0, worldPt) > > return worldPt[0] / worldPt[3], worldPt[1] / worldPt[3], worldPt[2] / > > worldPt[3] > > > > The z returned is always 86.33. > > > > Meanwhile, I cannot use the world picker either, because it still picks > the > > text's world coordinate. > > > > So, either I can make the above function work on the DICOM renderer or I > > have to make the world picker not picking up anything on the text > renderer. > > I am not sure how I can get any of these two ways done. > > > > Any suggestions would be greatly appreciated! > > Could you try turning interaction off on the renderer you use for your > "foreground" objects. In my code I have: > > auto foregroundRenderer = vtkSmartPointer::New(); > foregroundRenderer->InteractiveOff(); > foregroundRenderer->SetLayer(1); > ... > GetRenderWindow()->SetNumberOfLayers(2); > > Hope that helps, it's the last idea I have :p > > > Elvis > > > > > > > Many thanks. > > > > > > Bill > > > > On Thu, May 25, 2017 at 12:14 AM, Elvis Stansvik > > wrote: > >> > >> Den 24 maj 2017 5:27 em skrev "Bill Q" : > >> > > >> > Hi Dan, > >> > After set the layer, I got this error: > >> > > >> > VTK-7.1.0\Rendering\Core\vtkRendererCollection.cxx, line 61 > >> > vtkRendererCollection (000000001192E3A0): Invalid layer for renderer: > not > >> > rendered. > >> > > >> > And the text renderer didn't show up. > >> > >> You'll need to call SetNumberOfLayers(2) on your render window first I > >> think. > >> > >> Elvis > >> > >> > > >> > Many thanks. > >> > > >> > > >> > Bill > >> > > >> > On Wed, May 24, 2017 at 11:06 PM, Dan Lipsa > >> > wrote: > >> >> > >> >> Bill, > >> >> Try using SetLayer(1) for the renderer that has the text. > >> >> > >> >> Dan > >> >> > >> >> > >> >> On Wed, May 24, 2017 at 10:34 AM, Bill Q > wrote: > >> >>> > >> >>> Hi Dan, > >> >>> Thanks a ton for the example. The example used 4 different > viewports. > >> >>> However, for my application, I need to set all renderers under the > same > >> >>> viewport. The problem is that if I add a second renderer into the > render > >> >>> window and using the default viewport, it will cover the first > renderer and > >> >>> nothing on the first renderer will show up. I am wondering if I did > the > >> >>> whole thing wrong. > >> >>> > >> >>> My purpose is to display some DICOM images, some texts, and scales > on > >> >>> the same screen. Also, I would like to make the scales zoom with > the DICOM > >> >>> images but the texts stay put. Most importantly, I would like to > get the > >> >>> world coordinates on the DICOM image when users click on the > screen, so I > >> >>> can mark the click properly. > >> >>> > >> >>> What should be done in order to get this working? > >> >>> > >> >>> > >> >>> Many thanks. > >> >>> > >> >>> > >> >>> Bill > >> >>> > >> >>> On Wed, May 24, 2017 at 12:02 AM, Dan Lipsa > >> >>> wrote: > >> >>>> > >> >>>> Not sure what is going on. Do the objects you are rendering have > the > >> >>>> same world coordinates? Are both renderers added to the rendering > window? > >> >>>> Here is an example with multiple renderer (they are over different > >> >>>> viewports but they could have the same viewport as well) > >> >>>> > >> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ > MultipleViewports > >> >>>> > >> >>>> On Tue, May 23, 2017 at 11:39 AM, Bill Q > >> >>>> wrote: > >> >>>>> > >> >>>>> I just gave it a try. But when I added another renderer into the > >> >>>>> window that I used for text actors, it overlaps and covered the > first > >> >>>>> renderer. So the first renderer won't show up. Is there a > solution? > >> >>>>> > >> >>>>> Many thanks. > >> >>>>> > >> >>>>> > >> >>>>> Bill > >> >>>>> > >> >>>>> On Tue, May 23, 2017 at 10:16 PM, Dan Lipsa < > dan.lipsa at kitware.com> > >> >>>>> wrote: > >> >>>>>> > >> >>>>>> I think moving those text actors on a different renderer will > solve > >> >>>>>> your problem. > >> >>>>>> > >> >>>>>> Dan > >> >>>>>> > >> >>>>>> > >> >>>>>> On Tue, May 23, 2017 at 9:40 AM, Bill Q > >> >>>>>> wrote: > >> >>>>>>> > >> >>>>>>> Hi Dan, > >> >>>>>>> Thanks a lot for the reply. Yes, that's exactly the case. If I > >> >>>>>>> remove the text actors, the world picker would return the > correct > >> >>>>>>> coordinates. So, what method should I use in order to get the > correct > >> >>>>>>> coordinates no matter how many actors I put in with the dicom > image reader > >> >>>>>>> actor? > >> >>>>>>> > >> >>>>>>> Many thanks. > >> >>>>>>> > >> >>>>>>> > >> >>>>>>> Bill > >> >>>>>>> > >> >>>>>>> On Mon, May 22, 2017 at 10:04 PM, Dan Lipsa > >> >>>>>>> wrote: > >> >>>>>>>> > >> >>>>>>>> Bill, > >> >>>>>>>> For display_to_world, the picker picks up only what is visible > >> >>>>>>>> (closes to the camera). You might have several objects > (several values in > >> >>>>>>>> world coordinates) that end up over the same display > coordinate. This might > >> >>>>>>>> explain why adding those text actors changes what you pick. > >> >>>>>>>> > >> >>>>>>>> Dan > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> > >> >>>>>>>> On Sun, May 21, 2017 at 5:25 AM, Bill Q > >> >>>>>>>> wrote: > >> >>>>>>>>> > >> >>>>>>>>> Can anybody help? Many thanks. > >> >>>>>>>>> > >> >>>>>>>>> Many thanks. > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> Bill > >> >>>>>>>>> > >> >>>>>>>>> On Fri, May 19, 2017 at 11:20 PM, Bill Q < > bill.q.hdp at gmail.com> > >> >>>>>>>>> wrote: > >> >>>>>>>>>> > >> >>>>>>>>>> Hello Everyone, > >> >>>>>>>>>> I encountered a weird problem in coordinate conversion. > >> >>>>>>>>>> > >> >>>>>>>>>> In order to check the accuracy, I converted from display to > >> >>>>>>>>>> world, and from world back to display. Using the following > ways: > >> >>>>>>>>>> > >> >>>>>>>>>> self.world_picker = vtk.vtkWorldPointPicker() > >> >>>>>>>>>> > >> >>>>>>>>>> def display_to_world(self, pt): > >> >>>>>>>>>> self.world_picker.Pick(pt[0], pt[1], 0, self.ren) > >> >>>>>>>>>> picker_pt = self.world_picker.GetPickPosition() > >> >>>>>>>>>> picker_pt = (picker_pt[0], picker_pt[1], 0) > >> >>>>>>>>>> return picker_pt > >> >>>>>>>>>> > >> >>>>>>>>>> def world_to_display(self, pt): > >> >>>>>>>>>> if len(pt) == 3: > >> >>>>>>>>>> pt = pt + (1.0,) > >> >>>>>>>>>> elif len(pt) == 2: > >> >>>>>>>>>> pt = pt + (0.0, 1.0) > >> >>>>>>>>>> self.ren.SetWorldPoint(pt) > >> >>>>>>>>>> self.ren.WorldToDisplay() > >> >>>>>>>>>> pt = self.ren.GetDisplayPoint() > >> >>>>>>>>>> pt = (pt[0], pt[1]) > >> >>>>>>>>>> return pt > >> >>>>>>>>>> > >> >>>>>>>>>> pt = [5, 5] > >> >>>>>>>>>> > >> >>>>>>>>>> world_pt = self. world_to_display(pt) > >> >>>>>>>>>> > >> >>>>>>>>>> display_pt = self. world_to_display(world_pt) > >> >>>>>>>>>> > >> >>>>>>>>>> In some cases, it's quite accurate, which means pt equals > >> >>>>>>>>>> display_pt. But, in some cases, the result is simply wrong. > For example, for > >> >>>>>>>>>> (5, 5), after conversions back to display, the coordinate > becomes (20.89, > >> >>>>>>>>>> 20.89). > >> >>>>>>>>>> > >> >>>>>>>>>> Any ideas? > >> >>>>>>>>>> > >> >>>>>>>>>> > >> >>>>>>>>>> Many thanks. > >> >>>>>>>>>> > >> >>>>>>>>>> > >> >>>>>>>>>> Bill > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> > >> >>>>>>>>> _______________________________________________ > >> >>>>>>>>> Powered by www.kitware.com > >> >>>>>>>>> > >> >>>>>>>>> Visit other Kitware open-source projects at > >> >>>>>>>>> http://www.kitware.com/opensource/opensource.html > >> >>>>>>>>> > >> >>>>>>>>> Please keep messages on-topic and check the VTK FAQ at: > >> >>>>>>>>> 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 lplavorante at gmail.com Thu Jun 29 15:16:03 2017 From: lplavorante at gmail.com (Luca Pallozzi Lavorante) Date: Thu, 29 Jun 2017 16:16:03 -0300 Subject: [vtkusers] Cuts generated using vtkPolyPlane and vtkCutter extend past polyline's endpoints Message-ID: Dear vtkUsers, some days ago I posted a question regarding vtkPolyPlane. I am trying to use it to cut a vtkPolyData using a polygonal line and vtkCutter. When I specify three points (p0, p1 and p2, inside my vtkPolyData's bounding box) for the polyline, the resulting cuts extend past my polyline's endpoints, creating an odd "wave" effect. I am attaching an image to illustrate the problem. Someway, vtkCutter doesn't know that it has to stop the cuts at the polyline's endpoints. I believe this depends on vtkPolyPlane::EvaluateFunction() implementation, but I don?t know how to modify the code. Maybe this is not necessary, because I could perform some kind of vtkImplicitFunction composition. How could I do it? Sorry for posting the question again. Thanks for any help. Luca -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtkPolyPlaneWaves.png Type: image/png Size: 142028 bytes Desc: not available URL: From siva.yedithi at gmail.com Thu Jun 29 17:19:12 2017 From: siva.yedithi at gmail.com (Neel Patel 0-0-0) Date: Thu, 29 Jun 2017 14:19:12 -0700 (MST) Subject: [vtkusers] VTK using Windows Forms and Activiz .NET Message-ID: <1498771152070-5743828.post@n5.nabble.com> Hi all, I'm currently trying to use both Win Forms and VTK. I've looked at the examples on the wiki and whenever the rendering is being done, it is called in an Event (i.e. renderWindowControl1_Load(object sender, EventArgs e) ). So in the case of the oriented arrow example on the wiki (https://itk.org/Wiki/VTK/Examples/CSharp/GeometricObjects/OrientedArrow), the method is called in Load. If I were to call the method directly, it doesn't render. Is it neccesary for it to be structured in that way? Any help might be appreciated, I've looked around but most people seem to prefer using Qt. The reason I ask is because I want to update my render every couple seconds, and the only Event that looks plausible is the OnPaint(), but I'm not quite sure thats correct. Regards, Neel -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-using-Windows-Forms-and-Activiz-NET-tp5743828.html Sent from the VTK - Users mailing list archive at Nabble.com. From zhuangming.shen at sphic.org.cn Thu Jun 29 20:43:43 2017 From: zhuangming.shen at sphic.org.cn (=?gb2312?B?yfLXr8P3?=) Date: Fri, 30 Jun 2017 00:43:43 +0000 Subject: [vtkusers] Compatible version of Twisted and AutobahnPython for vtkWeb in VTK 8.0.0 Message-ID: <1498783427165.58560@sphic.org.cn> Hi all, I'd like to know what is the compatible version of Twisted and AutobahnPython for vtkWeb in VTK 8.0.0. Thanks in advance. Regards, Zhuangming Shen -------------- next part -------------- An HTML attachment was scrubbed... URL: From tharun160190 at gmail.com Fri Jun 30 00:11:45 2017 From: tharun160190 at gmail.com (Tharun) Date: Thu, 29 Jun 2017 21:11:45 -0700 (MST) Subject: [vtkusers] QVTK widget rendering performance improvements In-Reply-To: <20170629164453.475074871@mail.rogue-research.com> References: <1498623707113-5743806.post@n5.nabble.com> <20170629164453.475074871@mail.rogue-research.com> Message-ID: <1498795905632-5743830.post@n5.nabble.com> Thank you Sean for the suggestion. I will check as you have suggested. -- View this message in context: http://vtk.1045678.n5.nabble.com/QVTK-widget-rendering-performance-improvements-tp5743806p5743830.html Sent from the VTK - Users mailing list archive at Nabble.com. From srinivas at rsageventures.com Fri Jun 30 08:24:09 2017 From: srinivas at rsageventures.com (Srinivasa Rao) Date: Fri, 30 Jun 2017 17:54:09 +0530 Subject: [vtkusers] Getting slices from NIFTI volume. Message-ID: <11BF9280-87F3-4545-A90E-0AA0ACB850DF@rsageventures.com> Hi, I would like to extract slices from NIFTI volume in vtkImageData format. any help in this regard much appreciated. Thank You. Regards, Srinivas. From chbrossotaf at gmail.com Fri Jun 30 08:55:16 2017 From: chbrossotaf at gmail.com (CharlesB) Date: Fri, 30 Jun 2017 14:55:16 +0200 Subject: [vtkusers] VTK using Windows Forms and Activiz .NET In-Reply-To: <1498771152070-5743828.post@n5.nabble.com> References: <1498771152070-5743828.post@n5.nabble.com> Message-ID: 2017-06-29 23:19 GMT+02:00 Neel Patel 0-0-0 : > Hi all, > > I'm currently trying to use both Win Forms and VTK. I've looked at the > examples on the wiki and whenever the rendering is being done, it is called > in an Event (i.e. renderWindowControl1_Load(object sender, EventArgs e) ). > > So in the case of the oriented arrow example on the wiki > (https://itk.org/Wiki/VTK/Examples/CSharp/GeometricObjects/OrientedArrow), > the method is called in Load. If I were to call the method directly, it > doesn't render. Is it neccesary for it to be structured in that way? You don't need to restrict the rendering to Forms events. In most examples the rendering appears in the Load event because it is the first event where render control is ready, and examples do the rendering once, at window loading. > Any help might be appreciated, I've looked around but most people seem to > prefer using Qt. The reason I ask is because I want to update my render > every couple seconds, and the only Event that looks plausible is the > OnPaint(), but I'm not quite sure thats correct. Sure, you can render anytime once the render control is ready, Activiz works fine for most cases. -------------- next part -------------- An HTML attachment was scrubbed... URL: From f2014141 at pilani.bits-pilani.ac.in Fri Jun 30 14:14:41 2017 From: f2014141 at pilani.bits-pilani.ac.in (Rishabh Mittar) Date: Fri, 30 Jun 2017 23:44:41 +0530 Subject: [vtkusers] Error While Building VTK 8 with Oculus SDK In-Reply-To: References: Message-ID: Hello vtkusers, I am trying to build VTK 8.0 with Oculus SDK on Windows. While building the Solution file on Visual Studio, I am getting the following errors: error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' doesn't match value '2' in vtkOculusCamera.obj C:\VTK_OCULUS\bin\Rendering\Oculus\LibOVR.lib(OVR_CAPI_Util.obj) Error 3 error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug' in vtkOculusCamera.obj C:\VTK_OCULUS\bin\Rendering\Oculus\LibOVR.lib(OVR_CAPI_Util.obj) I researched a bit and found out that the problem is due to the Oculus SDK having a 'release' build and VTK requires a 'debug' version. However I am unable to figure out a solution to the problem. I am using VTK 8.0.0 and Oculus windows release 1.15.0 from https://developer.oculus.com/downloads/native-windows/ I am using Visual Studio 2013 to build the solution file. Can anyone suggest a way out? -- Rishabh Mittar -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Fri Jun 30 14:22:14 2017 From: dave.demarle at kitware.com (David E DeMarle) Date: Fri, 30 Jun 2017 14:22:14 -0400 Subject: [vtkusers] Error While Building VTK 8 with Oculus SDK In-Reply-To: References: Message-ID: Build VTK in release mode. To do so, under ninja, cmake configure your VTK build tree with CMAKE_BUILD_TYPE=Release. Or under visual studio choose release in the Visual Studio UI after the cmake config when you open up the vtk solution. David E DeMarle Kitware, Inc. Principal Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 <(518)%20881-4909> On Fri, Jun 30, 2017 at 2:14 PM, Rishabh Mittar < f2014141 at pilani.bits-pilani.ac.in> wrote: > Hello vtkusers, > > I am trying to build VTK 8.0 with Oculus SDK on Windows. > > While building the Solution file on Visual Studio, I am getting the > following errors: > > error LNK2038: mismatch detected for '_ITERATOR_DEBUG_LEVEL': value '0' > doesn't match value '2' in vtkOculusCamera.obj > C:\VTK_OCULUS\bin\Rendering\Oculus\LibOVR.lib(OVR_CAPI_Util.obj) > > Error 3 error LNK2038: mismatch detected for 'RuntimeLibrary': value > 'MT_StaticRelease' doesn't match value 'MDd_DynamicDebug' in > vtkOculusCamera.obj > C:\VTK_OCULUS\bin\Rendering\Oculus\LibOVR.lib(OVR_CAPI_Util.obj) > > I researched a bit and found out that the problem is due to the Oculus SDK > having a 'release' build and VTK requires a 'debug' version. > However I am unable to figure out a solution to the problem. > I am using VTK 8.0.0 and Oculus windows release 1.15.0 from > > https://developer.oculus.com/downloads/native-windows/ > > I am using Visual Studio 2013 to build the solution file. > Can anyone suggest a way out? > > -- > Rishabh Mittar > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensou > rce/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siva.yedithi at gmail.com Fri Jun 30 15:24:11 2017 From: siva.yedithi at gmail.com (Neel Patel 0-0-0) Date: Fri, 30 Jun 2017 12:24:11 -0700 (MST) Subject: [vtkusers] VTK using Windows Forms and Activiz .NET In-Reply-To: References: <1498771152070-5743828.post@n5.nabble.com> Message-ID: <1498850651039-5743839.post@n5.nabble.com> Ah ok. That makes sense, I saw the examples only using load so i thought it was the only way to go about it. Thanks for your help! -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-using-Windows-Forms-and-Activiz-NET-tp5743828p5743839.html Sent from the VTK - Users mailing list archive at Nabble.com. From lasso at queensu.ca Fri Jun 30 20:36:19 2017 From: lasso at queensu.ca (Andras Lasso) Date: Sat, 1 Jul 2017 00:36:19 +0000 Subject: [vtkusers] Issues with coordinate conversion, possible VTK bugs? In-Reply-To: References: Message-ID: The highlighted code lines perform point picking in world coordinates. If you need more information then read the entire class and related classes, maybe add a breakpoint and run it step-by-step in a debugger to see how it works exactly. Playing with these, learning about low-level details is fun and useful experience. However, I would strongly recommend not to develop yet another DICOM viewer from scratch. There are several existing open source medical image computing and visualization applications that are used by thousands of people worldwide, they are used in operating rooms, used as a basis of FDA-approved products, have been around for several years, stable, feature-rich, etc. that can be extended to fit your needs. Most of them use VTK! Andras From: Bill Q [mailto:bill.q.hdp at gmail.com] Sent: Thursday, June 29, 2017 8:16 PM To: Andras Lasso Cc: Elvis Stansvik ; VTK Users Subject: Re: [vtkusers] Issues with coordinate conversion, possible VTK bugs? Thanks Andras, I read through the links, but I wasn't able to identify the part that is relevant to my questions. Would you be more specific? Many thanks. Bill On Tue, Jun 6, 2017 at 11:01 AM, Andras Lasso > wrote: See how it is implemented 3D Slicer and MITK: https://github.com/Slicer/Slicer/blob/master/Libs/MRML/DisplayableManager/vtkThreeDViewInteractorStyle.cxx#L812-L848 https://github.com/MITK/MITK/blob/master/Modules/Core/src/Rendering/mitkBaseRenderer.cpp#L600-L640 Andras From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Bill Q Sent: Monday, June 5, 2017 3:56 PM To: Elvis Stansvik > Cc: VTK Users > Subject: Re: [vtkusers] Issues with coordinate conversion, possible VTK bugs? Hi Elvis, I did give it a try. But still, it didn't work. I think I must have missed something since there mush have hundreds of people tried to do the same thing, getting the world coordinate from the vtk screen. The only way it worked so far is to use a world picker. All other ways would return different settings with z valued at 88 something. Where is the z value coming from? Does the actor add the z in the renderer? Would someone know the correct way doing it give some advices? Many thanks. Bill On Sat, May 27, 2017 at 4:06 AM, Elvis Stansvik > wrote: 2017-05-26 20:08 GMT+02:00 Bill Q >: > Hi Elvis and Dan, > Thank you very much for the response. After setting the render window > SetNumberOfLayers(2) and setting the renderer with text SetLayer(1), both > the layers with the DICOM images and the layer with the text can show up. > But, the problem still persists. I still cannot get the correct world > coordinates by using the following function: > > def display_to_world2(self, pt): > worldPt = [0, 0, 0, 0] > vtk.vtkInteractorObserver.ComputeDisplayToWorld(self.renderer_dicom, > pt[0], pt[1], 0, worldPt) > return worldPt[0] / worldPt[3], worldPt[1] / worldPt[3], worldPt[2] / > worldPt[3] > > The z returned is always 86.33. > > Meanwhile, I cannot use the world picker either, because it still picks the > text's world coordinate. > > So, either I can make the above function work on the DICOM renderer or I > have to make the world picker not picking up anything on the text renderer. > I am not sure how I can get any of these two ways done. > > Any suggestions would be greatly appreciated! Could you try turning interaction off on the renderer you use for your "foreground" objects. In my code I have: auto foregroundRenderer = vtkSmartPointer::New(); foregroundRenderer->InteractiveOff(); foregroundRenderer->SetLayer(1); ... GetRenderWindow()->SetNumberOfLayers(2); Hope that helps, it's the last idea I have :p Elvis > > > Many thanks. > > > Bill > > On Thu, May 25, 2017 at 12:14 AM, Elvis Stansvik > > wrote: >> >> Den 24 maj 2017 5:27 em skrev "Bill Q" >: >> > >> > Hi Dan, >> > After set the layer, I got this error: >> > >> > VTK-7.1.0\Rendering\Core\vtkRendererCollection.cxx, line 61 >> > vtkRendererCollection (000000001192E3A0): Invalid layer for renderer: not >> > rendered. >> > >> > And the text renderer didn't show up. >> >> You'll need to call SetNumberOfLayers(2) on your render window first I >> think. >> >> Elvis >> >> > >> > Many thanks. >> > >> > >> > Bill >> > >> > On Wed, May 24, 2017 at 11:06 PM, Dan Lipsa > >> > wrote: >> >> >> >> Bill, >> >> Try using SetLayer(1) for the renderer that has the text. >> >> >> >> Dan >> >> >> >> >> >> On Wed, May 24, 2017 at 10:34 AM, Bill Q > wrote: >> >>> >> >>> Hi Dan, >> >>> Thanks a ton for the example. The example used 4 different viewports. >> >>> However, for my application, I need to set all renderers under the same >> >>> viewport. The problem is that if I add a second renderer into the render >> >>> window and using the default viewport, it will cover the first renderer and >> >>> nothing on the first renderer will show up. I am wondering if I did the >> >>> whole thing wrong. >> >>> >> >>> My purpose is to display some DICOM images, some texts, and scales on >> >>> the same screen. Also, I would like to make the scales zoom with the DICOM >> >>> images but the texts stay put. Most importantly, I would like to get the >> >>> world coordinates on the DICOM image when users click on the screen, so I >> >>> can mark the click properly. >> >>> >> >>> What should be done in order to get this working? >> >>> >> >>> >> >>> Many thanks. >> >>> >> >>> >> >>> Bill >> >>> >> >>> On Wed, May 24, 2017 at 12:02 AM, Dan Lipsa > >> >>> wrote: >> >>>> >> >>>> Not sure what is going on. Do the objects you are rendering have the >> >>>> same world coordinates? Are both renderers added to the rendering window? >> >>>> Here is an example with multiple renderer (they are over different >> >>>> viewports but they could have the same viewport as well) >> >>>> >> >>>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleViewports >> >>>> >> >>>> On Tue, May 23, 2017 at 11:39 AM, Bill Q > >> >>>> wrote: >> >>>>> >> >>>>> I just gave it a try. But when I added another renderer into the >> >>>>> window that I used for text actors, it overlaps and covered the first >> >>>>> renderer. So the first renderer won't show up. Is there a solution? >> >>>>> >> >>>>> Many thanks. >> >>>>> >> >>>>> >> >>>>> Bill >> >>>>> >> >>>>> On Tue, May 23, 2017 at 10:16 PM, Dan Lipsa > >> >>>>> wrote: >> >>>>>> >> >>>>>> I think moving those text actors on a different renderer will solve >> >>>>>> your problem. >> >>>>>> >> >>>>>> Dan >> >>>>>> >> >>>>>> >> >>>>>> On Tue, May 23, 2017 at 9:40 AM, Bill Q > >> >>>>>> wrote: >> >>>>>>> >> >>>>>>> Hi Dan, >> >>>>>>> Thanks a lot for the reply. Yes, that's exactly the case. If I >> >>>>>>> remove the text actors, the world picker would return the correct >> >>>>>>> coordinates. So, what method should I use in order to get the correct >> >>>>>>> coordinates no matter how many actors I put in with the dicom image reader >> >>>>>>> actor? >> >>>>>>> >> >>>>>>> Many thanks. >> >>>>>>> >> >>>>>>> >> >>>>>>> Bill >> >>>>>>> >> >>>>>>> On Mon, May 22, 2017 at 10:04 PM, Dan Lipsa >> >>>>>>> > wrote: >> >>>>>>>> >> >>>>>>>> Bill, >> >>>>>>>> For display_to_world, the picker picks up only what is visible >> >>>>>>>> (closes to the camera). You might have several objects (several values in >> >>>>>>>> world coordinates) that end up over the same display coordinate. This might >> >>>>>>>> explain why adding those text actors changes what you pick. >> >>>>>>>> >> >>>>>>>> Dan >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> >> >>>>>>>> On Sun, May 21, 2017 at 5:25 AM, Bill Q > >> >>>>>>>> wrote: >> >>>>>>>>> >> >>>>>>>>> Can anybody help? Many thanks. >> >>>>>>>>> >> >>>>>>>>> Many thanks. >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> Bill >> >>>>>>>>> >> >>>>>>>>> On Fri, May 19, 2017 at 11:20 PM, Bill Q > >> >>>>>>>>> wrote: >> >>>>>>>>>> >> >>>>>>>>>> Hello Everyone, >> >>>>>>>>>> I encountered a weird problem in coordinate conversion. >> >>>>>>>>>> >> >>>>>>>>>> In order to check the accuracy, I converted from display to >> >>>>>>>>>> world, and from world back to display. Using the following ways: >> >>>>>>>>>> >> >>>>>>>>>> self.world_picker = vtk.vtkWorldPointPicker() >> >>>>>>>>>> >> >>>>>>>>>> def display_to_world(self, pt): >> >>>>>>>>>> self.world_picker.Pick(pt[0], pt[1], 0, self.ren) >> >>>>>>>>>> picker_pt = self.world_picker.GetPickPosition() >> >>>>>>>>>> picker_pt = (picker_pt[0], picker_pt[1], 0) >> >>>>>>>>>> return picker_pt >> >>>>>>>>>> >> >>>>>>>>>> def world_to_display(self, pt): >> >>>>>>>>>> if len(pt) == 3: >> >>>>>>>>>> pt = pt + (1.0,) >> >>>>>>>>>> elif len(pt) == 2: >> >>>>>>>>>> pt = pt + (0.0, 1.0) >> >>>>>>>>>> self.ren.SetWorldPoint(pt) >> >>>>>>>>>> self.ren.WorldToDisplay() >> >>>>>>>>>> pt = self.ren.GetDisplayPoint() >> >>>>>>>>>> pt = (pt[0], pt[1]) >> >>>>>>>>>> return pt >> >>>>>>>>>> >> >>>>>>>>>> pt = [5, 5] >> >>>>>>>>>> >> >>>>>>>>>> world_pt = self. world_to_display(pt) >> >>>>>>>>>> >> >>>>>>>>>> display_pt = self. world_to_display(world_pt) >> >>>>>>>>>> >> >>>>>>>>>> In some cases, it's quite accurate, which means pt equals >> >>>>>>>>>> display_pt. But, in some cases, the result is simply wrong. For example, for >> >>>>>>>>>> (5, 5), after conversions back to display, the coordinate becomes (20.89, >> >>>>>>>>>> 20.89). >> >>>>>>>>>> >> >>>>>>>>>> Any ideas? >> >>>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> Many thanks. >> >>>>>>>>>> >> >>>>>>>>>> >> >>>>>>>>>> Bill >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> >> >>>>>>>>> _______________________________________________ >> >>>>>>>>> Powered by www.kitware.com >> >>>>>>>>> >> >>>>>>>>> Visit other Kitware open-source projects at >> >>>>>>>>> http://www.kitware.com/opensource/opensource.html >> >>>>>>>>> >> >>>>>>>>> Please keep messages on-topic and check the VTK FAQ at: >> >>>>>>>>> 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 adarshdesai.dsp at gmail.com Fri Jun 30 20:54:45 2017 From: adarshdesai.dsp at gmail.com (abcd efgh) Date: Fri, 30 Jun 2017 17:54:45 -0700 Subject: [vtkusers] Coloring a glyph or Append polydata Message-ID: Hi, I have large number of cubes at certain x,y,z postions, So I am combining them into Glyph3D or Append Polydata. I want to color them individually. Please let me know the procedure. Current method: take a cube source, insert point, instert tuple for color, repeat above for all cubes. Finally combine them in poly and glyph. I am getting only one color for all, Red or blue. When I use ClipPolydata, sliced cubes are black in color, Even though scalars property should be same as input. However if I use Append polydata and clip using vtkClipPloydata, I am getting white color(same as cube). I want to color each cube and slice it using vtkClipPolydata and see the respective colors. Please let me know if u know the method. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: