From 862969533 at qq.com Tue Sep 1 04:07:12 2015 From: 862969533 at qq.com (=?gb18030?B?tO3K6Q==?=) Date: Tue, 1 Sep 2015 16:07:12 +0800 Subject: [vtkusers] vtkResliceimageview Message-ID: Hi : I have some problems when use vtkResliceimageview to display image with two cross hair in the center . I got four panel view in the window ,and I want to interactor with mouse click .That is Synchronization of interactions and visualization among windows. For instance, when one clicks on a window to position an axis in a slice of a 3D volume, one would like to have the other windows displaying this data (if any) to automatically set their axis at the exact same position. however, vtkResliceimageview class hasn't provide this trick. And I want to disable rotate the axis . In addition, can you please tell me how to use "SetResliceModeToOblique()" functions. Thanks . -------------- next part -------------- An HTML attachment was scrubbed... URL: From 862969533 at qq.com Tue Sep 1 04:08:26 2015 From: 862969533 at qq.com (=?gb18030?B?tO3K6Q==?=) Date: Tue, 1 Sep 2015 16:08:26 +0800 Subject: [vtkusers] vtkResliceimageview Message-ID: Hi : I have some problems when use vtkResliceimageview to display image with two cross hair in the center . I got four panel view in the window ,and I want to interactor with mouse click .That is Synchronization of interactions and visualization among windows. For instance, when one clicks on a window to position an axis in a slice of a 3D volume, one would like to have the other windows displaying this data (if any) to automatically set their axis at the exact same position. however, vtkResliceimageview class hasn't provide this trick. And I want to disable rotate the axis . In addition, can you please tell me how to use "SetResliceModeToOblique()" functions. Thanks . -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: A09F902E at 58BCCD1C.FA5CE555.png Type: application/octet-stream Size: 69474 bytes Desc: not available URL: From jchris.fillionr at kitware.com Tue Sep 1 11:24:06 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Tue, 1 Sep 2015 11:24:06 -0400 Subject: [vtkusers] [ITK] [ITK-dev] compare between MITK.ORG AND 3D SLICER In-Reply-To: References: Message-ID: Hi Marco, Both applications: - follows the best software development practices (See [1] and [2]) - have a thriving community (See [3] and [4]) - are built on top of proven technologies CTK, ITK, OpenCV, Python, QT and VTK, ... - provide an interface to execute Command Line module: http://commontk.org/index.php/Documentation/Command_Line_Interface - .... Reading the following paper from David Punzo could be helpful. While it applies to a different domain, it described some interesting comparison criteria: The role of 3-D interactive visualization in blind surveys of HI in galaxies http://arxiv.org/abs/1505.06976 Looking at the list of modules and functionalities offered by both may also be helpful: http://docs.mitk.org/nightly/PluginListPage.html http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly#Modules_by_name All of that said, if you have any questions regarding 3D Slicer, you are welcome to join the mailing list and join the weekly hangout (Tuesday at 2.30pm EST): http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/StartHere http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/Meetings Thanks Jc Disclaimer: I am on the of Slicer core developer. [1] http://cdash.mitk.org/index.php?project=MITK [2] http://slicer.cdash.org/index.php?project=Slicer4 [3] http://mitk.org/wiki/MITK_Users_Meeting_2015_Slides [4] http://www.na-mic.org/Wiki/index.php/2015_Summer_Project_Week On Sat, Aug 29, 2015 at 12:18 PM, Marco Dev wrote: > Hi, > I want to choice between MITK and 3d slicer for working in medical > features which one is powerful and going to improving in aspect code and > example ... > Thanks > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Kitware offers ITK Training Courses, for more information visit: > http://kitware.com/products/protraining.php > > Please keep messages on-topic and check the ITK FAQ at: > http://www.itk.org/Wiki/ITK_FAQ > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/insight-developers > > _______________________________________________ > Community mailing list > Community at itk.org > http://public.kitware.com/mailman/listinfo/community > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From bill.lorensen at gmail.com Tue Sep 1 12:48:43 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Tue, 1 Sep 2015 12:48:43 -0400 Subject: [vtkusers] Need Help about vtkTIFFReader(VTK5.1) In-Reply-To: References: Message-ID: Please cc the vtkusers mailing list What error do you get when you read the tif file. On Tue, Sep 1, 2015 at 7:27 AM, ??? <1035456235 at qq.com> wrote: > Bill, > I write this e-mail to you for help. Now I am doing a case about tiff files. > My problem is that > vtkTIIFFReader can not open some tif files. And Algorithm vtkTIFFReader > returned failure for request: > vtkInformation. I know the latest version doesn't have the bug. But My team > use VTK5.1 which have the > problem. I also find the http://review.source.kitware.com/#/c/17871/. But I > don't know how to merge the code > with VTK5.1. Can you give me some advice? I look forward to hearing from you > Yours, > BugWang -- Unpaid intern in BillsBasement at noware dot com From cory.quammen at kitware.com Tue Sep 1 13:35:20 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 1 Sep 2015 13:35:20 -0400 Subject: [vtkusers] WarpScalar - Problem about normal In-Reply-To: <1441076350095-5733700.post@n5.nabble.com> References: <1441013426187-5733689.post@n5.nabble.com> <1441066332697-5733699.post@n5.nabble.com> <1441076350095-5733700.post@n5.nabble.com> Message-ID: As I suspected, your VTP file does not have a vector array that can be used to determine the direction of the warp. In your code, you are generating a scalar array specifying the magnitude of the vector displacement, but you are not generating the vector array that specifies the direction of displacement. You need to compute the surface normals (assuming you want to warp the geometry according to the surface normals). If you do indeed want to warp by surface normals, there is a filter you can use to generate these. vtkSmartPointer normalGenerator = vtkSmartPointer::New(); normalGenerator->SetInputData(polydata); normalGenerator->ComputePointNormalsOn(); normalGenerator->ComputeCellNormalsOff(); normalGenerator->Update(); This snippet is derived from [1]. Connect the output of this filter to your vtkWarpScalar object and you should get warping behavior that matches what happens with the sphere source. HTH, Cory [1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/PolyData/PolyDataExtractNormals On Mon, Aug 31, 2015 at 10:59 PM, lilymo wrote: > I ve got a new version of the code, as I debugged the code that the old > version didn't get a valid number of points of the polydata. > > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > #include > > #include > #include > #include > #include > #include > #include > #include > void TestPointNormals(vtkPolyData* polydata); > void TestCellNormals(vtkPolyData* polydata); > > bool GetPointNormals(vtkPolyData* polydata); > bool GetCellNormals(vtkPolyData* polydata); > > int main(int argc, char *argv[]) > { > vtkSmartPointer polydata = > vtkSmartPointer::New(); > vtkSmartPointer reader = > vtkSmartPointer::New(); > reader->SetFileName("model.vtp"); > reader->Update(); > polydata->DeepCopy(reader->GetOutput()); > > std::cout << "PolyData address: " << polydata << std::endl; > std::cout << "In TestPointNormals: " << > polydata->GetNumberOfPoints() << > std::endl; > > vtkSmartPointer scalars = > vtkSmartPointer::New(); > > reader->GetOutput()->GetPointData()->SetScalars(scalars); > > vtkSmartPointer warpScalar = > vtkSmartPointer::New(); > warpScalar->SetInputConnection(reader->GetOutputPort()); > warpScalar->SetScaleFactor(1); // use the scalars themselves > > int numOfPoints = polydata->GetNumberOfPoints(); > > scalars->SetNumberOfTuples(numOfPoints); > > for(vtkIdType i = 0; i < (polydata->GetNumberOfPoints()); ++i) > { > scalars->SetTuple1(i,200); > } > > //warpScalar->GetUseNormal(); > warpScalar->Update(); > > // Create a mapper and actor > vtkSmartPointer mapper = > vtkSmartPointer::New(); > mapper->SetInputConnection(warpScalar->GetOutputPort()); > > vtkSmartPointer actor = > vtkSmartPointer::New(); > actor->GetProperty()->SetColor(1.0, 1.0, 0.0); > actor->SetMapper(mapper); > > // Create a mapper and actor > vtkSmartPointer smapper = > vtkSmartPointer::New(); > smapper->SetInputConnection(reader->GetOutputPort()); > > vtkSmartPointer sactor = > vtkSmartPointer::New(); > sactor->GetProperty()->SetColor(1.0, 0.0, 1.0); > sactor->SetMapper(smapper); > > > // Visualize > vtkSmartPointer renderer = > vtkSmartPointer::New(); > vtkSmartPointer renderWindow = > vtkSmartPointer::New(); > renderWindow->AddRenderer(renderer); > vtkSmartPointer renderWindowInteractor = > vtkSmartPointer::New(); > renderWindowInteractor->SetRenderWindow(renderWindow); > > renderer->AddActor(actor); > renderer->AddActor(sactor); > > renderer->SetBackground(1,1,1); // Background color white > > renderWindow->Render(); > renderWindowInteractor->Start(); > return EXIT_SUCCESS; > } > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/WarpScalar-Problem-about-normal-tp5733689p5733700.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lilymagic2005 at yahoo.com.hk Tue Sep 1 22:49:47 2015 From: lilymagic2005 at yahoo.com.hk (lilymo) Date: Tue, 1 Sep 2015 19:49:47 -0700 (MST) Subject: [vtkusers] WarpScalar - Problem about normal In-Reply-To: References: <1441013426187-5733689.post@n5.nabble.com> <1441066332697-5733699.post@n5.nabble.com> <1441076350095-5733700.post@n5.nabble.com> Message-ID: <1441162187215-5733709.post@n5.nabble.com> It works, thanks so much, Cory. Though there is some edge not that perfect. -- View this message in context: http://vtk.1045678.n5.nabble.com/WarpScalar-Problem-about-normal-tp5733689p5733709.html Sent from the VTK - Users mailing list archive at Nabble.com. From hchouh at gmail.com Wed Sep 2 09:27:14 2015 From: hchouh at gmail.com (Hamza) Date: Wed, 2 Sep 2015 06:27:14 -0700 (MST) Subject: [vtkusers] Using an OpenGL texture in VTK Message-ID: <1441200434713-5733711.post@n5.nabble.com> Hi everybody, I'm looking for a way of interoperability between CUDA and VTK. More exactly, what I need to do is display in VTK an image I compute with CUDA. To do so, I thought about using the CUDA/OpenGL interoperability. However, I have not found a way to modify a VTK texture outside VTK. I read the documentation about the vtkOpenGLTexture class but did not understand how that could help me. Any idea? Thanks, Hamza -- View this message in context: http://vtk.1045678.n5.nabble.com/Using-an-OpenGL-texture-in-VTK-tp5733711.html Sent from the VTK - Users mailing list archive at Nabble.com. From aashish.chaudhary at kitware.com Wed Sep 2 11:35:30 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 2 Sep 2015 11:35:30 -0400 Subject: [vtkusers] Using an OpenGL texture in VTK In-Reply-To: <1441200434713-5733711.post@n5.nabble.com> References: <1441200434713-5733711.post@n5.nabble.com> Message-ID: I would suggest you use OpenGL2 backend if not using directly. Also, look into vtkTextureObject class. What exactly you need in terms of interoperability? - Aashish On Wed, Sep 2, 2015 at 9:27 AM, Hamza wrote: > Hi everybody, > > I'm looking for a way of interoperability between CUDA and VTK. More > exactly, what I need to do is display in VTK an image I compute with CUDA. > To do so, I thought about using the CUDA/OpenGL interoperability. However, > I > have not found a way to modify a VTK texture outside VTK. I read the > documentation about the vtkOpenGLTexture class but did not understand how > that could help me. > Any idea? > > Thanks, > Hamza > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Using-an-OpenGL-texture-in-VTK-tp5733711.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Wed Sep 2 13:15:19 2015 From: fotosentido at gmail.com (Marcos) Date: Wed, 2 Sep 2015 19:15:19 +0200 Subject: [vtkusers] VTK custom subclass: basic implementation Message-ID: Hi, I created an vtkinteractor subclass. This is the header: #include "vtkInteractionStyleModule.h" // For export macro #include "vtkInteractorStyleImage.h" class DcmInteractorStyle : public vtkInteractorStyleImage { public: static DcmInteractorStyle* New(); vtkTypeRevisionMacro(DcmInteractorStyle, vtkInteractorStyleImage) virtual void OnLeftButtonDown(); }; I just want to override mouse events. I'm following the example: http://www.vtk.org/Wiki/VTK/Tutorials/InteractorStyleSubclass It doesn't show .cpp contents, so I went inside mine with: vtkStandardNewMacro(vtkInteractorStyleImage); void DcmInteractorStyle::OnLeftButtonDown() { // here my code } But the compiler (with CMakeLists.txt) says: ui_qt.lib(viewerwidget.cpp.obj):-1: error: LNK2019: unresolved external symbol "public: static class DcmInteractorStyle * __cdecl DcmInteractorStyle::New(void)" (?New at DcmInteractorStyle@@SAPAV1 at XZ) referenced in function "public: static class vtkSmartPointer __cdecl vtkSmartPointer::New(void)" (?New@?$vtkSmartPointer at VDcmInteractorStyle @@@@SA?AV1 at XZ) At CMake mail list someone told me it was because I don't have the New() method defined (what about the macro then?). My constructor won't do anything different, just the same as the superclass. I tried: DcmInteractorStyle* DcmInteractorStyle::New() : vtkInteractorStyleImage::New() { } It gives me: error: C2550: 'DcmInteractorStyle::New' : constructor initializer lists are only allowed on constructor definitions Any help, please? -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Sep 2 13:25:36 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 2 Sep 2015 13:25:36 -0400 Subject: [vtkusers] VTK custom subclass: basic implementation In-Reply-To: References: Message-ID: Marcos, You should change the line from vtkStandardNewMacro(vtkInteractorStyleImage); to vtkStandardNewMacro(DcmInteractorStyle); HTH, Cory On Wed, Sep 2, 2015 at 1:15 PM, Marcos wrote: > Hi, > > I created an vtkinteractor subclass. This is the header: > > #include "vtkInteractionStyleModule.h" // For export macro > > #include "vtkInteractorStyleImage.h" > > > class DcmInteractorStyle : public vtkInteractorStyleImage > > { > > public: > > static DcmInteractorStyle* New(); > > vtkTypeRevisionMacro(DcmInteractorStyle, vtkInteractorStyleImage) > > > virtual void OnLeftButtonDown(); > > > }; > > > I just want to override mouse events. > I'm following the example: > http://www.vtk.org/Wiki/VTK/Tutorials/InteractorStyleSubclass > > It doesn't show .cpp contents, so I went inside mine with: > > vtkStandardNewMacro(vtkInteractorStyleImage); > > > void DcmInteractorStyle::OnLeftButtonDown() > > { > > // here my code > > } > > > > But the compiler (with CMakeLists.txt) says: > ui_qt.lib(viewerwidget.cpp.obj):-1: error: LNK2019: unresolved external > symbol "public: static class DcmInteractorStyle * __cdecl > DcmInteractorStyle::New(void)" (?New at DcmInteractorStyle@@SAPAV1 at XZ) > referenced in function "public: static class vtkSmartPointer DcmInteractorStyle> __cdecl vtkSmartPointer DcmInteractorStyle>::New(void)" (?New@ > ?$vtkSmartPointer at VDcmInteractorStyle@@@@SA?AV1 at XZ) > > At CMake mail list someone told me it was because I don't have the New() > method defined (what about the macro then?). > > My constructor won't do anything different, just the same as the > superclass. > I tried: > > DcmInteractorStyle* DcmInteractorStyle::New() : vtkInteractorStyleImage::New() > > { > > > } > > > It gives me: > > error: C2550: 'DcmInteractorStyle::New' : constructor initializer lists are only allowed on constructor definitions > > > Any help, please? > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Wed Sep 2 14:33:48 2015 From: fotosentido at gmail.com (Marcos) Date: Wed, 2 Sep 2015 20:33:48 +0200 Subject: [vtkusers] VTK custom subclass: basic implementation In-Reply-To: References: Message-ID: Hi, I'm thought there was a macro for my new class... but it was the superclass. You're right, it was that and linking in Cmake. Now it compiles. It doesn't work, but it compiles. I commented all inside OnLeftButton(), the method overriden. And asigned my interactor to my widget: vtkSmartPointer interactorStyle = vtkSmartPointer::New(); widget->GetRenderWindow()->GetInteractor()->SetInteractorStyle(interactorStyle); imageViewer->SetRenderWindow(widget->GetRenderWindow()); imageViewer->SetupInteractor(widget->GetRenderWindow()->GetInteractor()); widget->update(); My widget shouldn't do anything when I press left button but... it does the same as always (vtkinteractorstyleimage, which is the default style because of the vtkimageviewer2). Thank you, Cory. At least now I can try different things to find out how to make it work. 2015-09-02 19:25 GMT+02:00 Cory Quammen : > Marcos, > > You should change the line from > > vtkStandardNewMacro(vtkInteractorStyleImage); > > to > > vtkStandardNewMacro(DcmInteractorStyle); > > HTH, > Cory > > On Wed, Sep 2, 2015 at 1:15 PM, Marcos wrote: > >> Hi, >> >> I created an vtkinteractor subclass. This is the header: >> >> #include "vtkInteractionStyleModule.h" // For export macro >> >> #include "vtkInteractorStyleImage.h" >> >> >> class DcmInteractorStyle : public vtkInteractorStyleImage >> >> { >> >> public: >> >> static DcmInteractorStyle* New(); >> >> vtkTypeRevisionMacro(DcmInteractorStyle, vtkInteractorStyleImage) >> >> >> virtual void OnLeftButtonDown(); >> >> >> }; >> >> >> I just want to override mouse events. >> I'm following the example: >> http://www.vtk.org/Wiki/VTK/Tutorials/InteractorStyleSubclass >> >> It doesn't show .cpp contents, so I went inside mine with: >> >> vtkStandardNewMacro(vtkInteractorStyleImage); >> >> >> void DcmInteractorStyle::OnLeftButtonDown() >> >> { >> >> // here my code >> >> } >> >> >> >> But the compiler (with CMakeLists.txt) says: >> ui_qt.lib(viewerwidget.cpp.obj):-1: error: LNK2019: unresolved external >> symbol "public: static class DcmInteractorStyle * __cdecl >> DcmInteractorStyle::New(void)" (?New at DcmInteractorStyle@@SAPAV1 at XZ) >> referenced in function "public: static class vtkSmartPointer> DcmInteractorStyle> __cdecl vtkSmartPointer> DcmInteractorStyle>::New(void)" (?New@ >> ?$vtkSmartPointer at VDcmInteractorStyle@@@@SA?AV1 at XZ) >> >> At CMake mail list someone told me it was because I don't have the New() >> method defined (what about the macro then?). >> >> My constructor won't do anything different, just the same as the >> superclass. >> I tried: >> >> DcmInteractorStyle* DcmInteractorStyle::New() : vtkInteractorStyleImage::New() >> >> { >> >> >> } >> >> >> It gives me: >> >> error: C2550: 'DcmInteractorStyle::New' : constructor initializer lists are only allowed on constructor definitions >> >> >> Any help, please? >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hchouh at gmail.com Thu Sep 3 07:12:38 2015 From: hchouh at gmail.com (Hamza Chouh) Date: Thu, 3 Sep 2015 13:12:38 +0200 Subject: [vtkusers] Using an OpenGL texture in VTK In-Reply-To: References: <1441200434713-5733711.post@n5.nabble.com> Message-ID: Just compiled VTK with OpenGL2 backend. The vtkTextureObject class looks to be the one I need but I don't understand the way it works. According to the documentation, it is a way to create a VTK texture while using already loaded data. Which is exactly what I need but I have questions: 1. How do I properly initialize such a texture? 2. How do I get the OpenGL texture ID from a vtkTextureObject? 3. How should I link it to a vtkActor? Anyway, if there was a good example of vtkTextureObject use, it would greatly help me. To answer your question about my need in terms of interoperability: I am generating data on the GPU memory using CUDA. I have no problem setting this data inside an OpenGL texture to display it inside an OpenGL context. However, I need to be able to use such a texture on a VTK actor. 2015-09-02 17:35 GMT+02:00 Aashish Chaudhary : > I would suggest you use OpenGL2 backend if not using directly. Also, look > into vtkTextureObject class. What exactly you need in terms of > interoperability? > > - Aashish > > On Wed, Sep 2, 2015 at 9:27 AM, Hamza wrote: > >> Hi everybody, >> >> I'm looking for a way of interoperability between CUDA and VTK. More >> exactly, what I need to do is display in VTK an image I compute with CUDA. >> To do so, I thought about using the CUDA/OpenGL interoperability. >> However, I >> have not found a way to modify a VTK texture outside VTK. I read the >> documentation about the vtkOpenGLTexture class but did not understand how >> that could help me. >> Any idea? >> >> Thanks, >> Hamza >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Using-an-OpenGL-texture-in-VTK-tp5733711.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Thu Sep 3 10:22:48 2015 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 3 Sep 2015 10:22:48 -0400 Subject: [vtkusers] Time for some more OpenGL2 Polygonal Updates Message-ID: Heya folks, giving an update on some recent changes/features in the OpenGL2 backend. Here we go... 1) *SHADOW SUPPORT* - Added support for shadows back into VTK and changed it up a bit. Shadows can provide valuable depth queues and structural queues in many domains such as surgical simulation, CFD analysis, and surgical planning. You can now turn on shadows in VTK by simply doing renderer->UseShadowsOn() (wow dude that?s easy) Having said that, remember that the default light in VTK is a headlight and a headlight doesn?t really produce any shadows (ahh there?s the catch). So if you want shadows make sure to have a light that is a scene light for best performance or a camera light. There is an example/test in Rendering/OpenGL2/Testing/Cxx/TestShadowMapPass.cxx. That example sets up Shadows using render passes which allows for a bit more flexibility but the same approach is implemented under the hood in renderer->UseShadowsOn() 2) *CUSTOM SHADERS* - Added support for customizing the default PolyDataMapper shaders. You can now modify or completely replace the default VTK shaders using methods such as AddShaderReplacement: replaces a strings in the current shader SetVertexShaderCode: replaces the default shader template with your own AddObserver(vtkCommand::UpdateShaderEvent,...) These methods (and similar others) give you a great degree on control of the VTK PolyData shaders. There are examples/tests in Rendering/OpenGL2/Testing/Cxx/TestUserShader.cxx and TestUserShader2.cxx. Through the UpdateShaderEvent you can modify the default VTK uniforms or your own uniforms as desired. There is currently not a general purpose easy API for binding your own data arrays to attributes but we may add one at some point in the future. Currently VTK will send down the default attributes for you to use in your shader (position, normal, tcoords, colors, etc) 3) *IMPROVED POINT SPRITES* - Significantly improved the vtkPointGaussianMapper. With some great help from Scott Wittenburg and Sebastien Jourdain we added the ability to map size and/or opacity arrays through a vtkPiecewiseFunction so that very large or small data can be rendered in a very flexible manner. We also made it so that if you do provide a cell array with an explicit list of points to use, then the mapper will use only those points, and finally you can modify the fragment shader code on the mapper now to draw whatever shapes you want. There is a new example/test in Rendering/OpenGL2/Testing/Cxx/TestPointGaussianMapperOpacity.cxx that shows using the new features and includes sample shader code for drawing squares or black edged circles. 4) *ANDROID and iOS IMPROVEMENTS* - Revisited the android VTK build with some help from Casey Goodlett and finally added two nightly android dashboards for VTK. One for API 18 with OpenGL ES 2.0 and one for API 21 with OpenGL ES 3.0. This should help us maintain working builds for Android going forward. While we were at it we added the vtkFrameBufferObject and ShadowMap functionality into the OpenGL ES builds so that those devices can make use of that functionality. We are still working on the android build process and hope to someday soon put out some binaries to make using VTK on android even easier. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. *From:* Ken Martin [mailto:ken.martin at kitware.com] *Sent:* Wednesday, July 15, 2015 3:19 PM *To:* 'vtkdev' *Subject:* RE: Some OpenGL2 Polygonal Updates etc It has been a while and I am overdue for updates on the new OpenGL rendering engine. We are in pretty good shape in terms of the new rendering engine with VTK. Tests are passing and we are generally ready to make it the default for the upcoming VTK release. The old engine will also be available as a CMake option. Here are some specific changes since the last update. 1) Added support in the PointGaussianMapper for rendering points as points ( /golfclap ). Sometimes in cosmology distant regions will be rendered as points while closer regions are rendered as splats. Now this mapper can handle both cases. This also makes this mapper an efficient mapper in VTK for rendering point clouds. It will render vtkPoints with colors quickly and with minimal memory. 2) Moved the new backend to OpenGL 3.2. While it still should mostly work with OpenGL 2.1 our target version is 3.2 which adds some nice features and yet is still fairly old. One of the big additions is support for geometry shaders. VTK now supports the use of geometry shaders and vtkOpenGLPolyDataMapper has some features to help make writing a geometry shader easier for all the numerous rendering cases VTK supports. 3) One of the features OpenGL 3.2 does not always support is rendering thick lines. The spec only requires support for thicknesses up to 1.0. So we have implemented support in VTK using a geometry shader for thick lines on systems that do not support them. 4) Had a chance to work with the Mesa folks to fix an issue in Mesa that was causing problems with cell coloring and picking. They were great to work with and as of Mesa version 10.5.5 this is fixed. 5) Made a large change to how cell coloring and picking was handled. In the old OpenGL2 code we would duplicate vertices to handle cell coloring so that each vertex was only used by one cell. This caused a huge explosion in memory required for those cases. The new approach makes use of gl_PrimitiveID to lookup cell colors (or cell normals or pick ids) in a texture map which saves us from having to duplicate vertices. Unfortunately gl_PrimitiveID is buggy on current Apple systems with AMD hardware so we had to implement a workaround for those systems which does impact performance on those systems. Apple is aware of the issue and will hopefully have a fix in the future. 6) Many fixes to vtkCompositePolyDataMapper2 to handle complex cases that ParaView testing exposed. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. *From:* Ken Martin [mailto:ken.martin at kitware.com ] *Sent:* Monday, February 2, 2015 11:26 AM *To:* 'vtkdev' *Subject:* Some OpenGL2 Polygonal Updates etc Here are a few updates to the polygonal work we?ve been doing on the new OpenGL2 backend in VTK. 1) Created a vtkPointGaussianMapper [3] class for cosmology for quickly rendering lots of translucent Gaussian splats. This class will get refined a bit as it starts getting used more. Similar in concept to the PointSprite extensions that were added into Paraview by John Biddiscombe, Ugo Varetto and Stephane Ploix from CSCS and EDF. 2) Changed how the transformation matrices were handled in the vertex shader [7]. It was doing V? = VCDC * MCVC * V and a couple tests were failing. Instead we now compute MCDC on the CPU in double precision and instead do V? = MCDC * V in the shader which fixed the test and is generally a better way to do it. We often need the other two matrices as well which is why the original code just used those. 3) Added a rendering timing framework/executable [5] to make it easier to run test sequences across machines and see the results. Marcus and Rob have expanded on it and Aashish has added a volume rendering test. 4) Rewrote the vtkParametricFunctionSource [6] to be significantly faster (4x) and more memory efficient. We use this source to generate surfaces for rendering timings and it was a bit slow. 5) A bunch of fixes related to getting IceT to work with OpenGL2 [1] which led to some release graphics resource issues being fixed [2]. 6) ?Fixed? a longstanding failing test, TestChartXYZ [4] which was intermittently failing on some systems. 7) Marcus and Rob ran some rendering benchmarks showing upwards of 3 billion triangles per second on a 300 million triangle model. That is a big model and some solid performance. Currently I am wrapping up a change to the vtkCompositePolyDataMapper2 so that in some common circumstances it will render significantly faster (maybe 10x). This is targeted at helping apps that have lots of small polygonal parts that are not glyphed. Also adding in support for texture coordinate transformation matrices which are used by the GeoView classes in VTK. Tim Thirion is fixing up some iOS build issues and David Lonnie is working on removing an old text mapper that was causing some issues. JC has been working on updating Slicer to build against the current VTK with OpenGL2. Thanks Ken [1] http://review.source.kitware.com/#/t/5130/ [2] http://review.source.kitware.com/#/t/5171/ [3] http://review.source.kitware.com/#/t/5198/ [4] http://review.source.kitware.com/#/t/5248/ [5] http://review.source.kitware.com/#/t/5276/ [6] http://review.source.kitware.com/#/t/5302/ [7] http://review.source.kitware.com/#/t/5327/ Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 518 881-4901 (w) 518 371-4573 (f) 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 jfavre at cscs.ch Thu Sep 3 11:22:43 2015 From: jfavre at cscs.ch (Favre Jean) Date: Thu, 3 Sep 2015 15:22:43 +0000 Subject: [vtkusers] vtkMolecule and vtkAtom Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> I have a C++ code building a molecule, Appending atoms, etc. No problem there. Using Python, I cannot do the same. Why aren't the AppendAtom() methods not available to a vtkMolecule object? How should one build a molecule with vtkpython? ----------------- Jean CSCS -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Thu Sep 3 11:36:23 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 3 Sep 2015 11:36:23 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: > > I have a C++ code building a molecule, Appending atoms, etc. No problem > there. > > Using Python, I cannot do the same. Why aren't the AppendAtom() methods not > available to a vtkMolecule object? How should one build a molecule with > vtkpython? I don't think they are wrapped due to limitations in the Python wrapping, and the pattern we wanted to use for scalable storage of molecular data. I think we could get them wrapped, or add some simpler API for the Python/wrapped languages. I don't think this is something we tested, or looked at very deeply. Much of the code was developed in quite a short period as part of a Google Summer of Code project, it would be nice to extend it to better support Python. Marcus From divyarathore at gmail.com Thu Sep 3 11:38:01 2015 From: divyarathore at gmail.com (Divya Rathore) Date: Thu, 3 Sep 2015 21:08:01 +0530 Subject: [vtkusers] .vtk file from vertices, normals and polygons Message-ID: I am trying to create a .vtk file from vertices, normals and polygons: # vtk Datafile Vtk file ASCII DATASET POLYDATA #Vertices POINTS 6000 float X1 Y1 Z1 ... ... CELL_DATA 6000 NORMALS cell_normals double x1 y1 z1 ... ... POLYGONS 15000 60000 3 x11 y11 z11 3 ... 3 ... ParaView gives an error loading this: VtkPolyDataReader: number of cells don't match number data values! What am I doing wrong here? Regards, Divya -------------- next part -------------- An HTML attachment was scrubbed... URL: From kavyabellur.4 at gmail.com Thu Sep 3 12:11:03 2015 From: kavyabellur.4 at gmail.com (Kavya Jain) Date: Thu, 3 Sep 2015 10:11:03 -0600 Subject: [vtkusers] VTK + OpenHaptics interface Message-ID: Hi Everyone, I am working on interfacing Phantom Omni device with VTK using OpenHaptics toolkit. If anyone working on similar topic, could you please share some info on whether any additional library used? Regards, Kavya -------------- next part -------------- An HTML attachment was scrubbed... URL: From felipe.bordeu at ec-nantes.fr Thu Sep 3 12:23:22 2015 From: felipe.bordeu at ec-nantes.fr (Felipe Bordeu Weldt) Date: Thu, 3 Sep 2015 18:23:22 +0200 Subject: [vtkusers] VTK + OpenHaptics interface In-Reply-To: References: Message-ID: <899A343B-8E2D-4466-92CA-8F6AF4723D2C@ec-nantes.fr> Hi Kavla, I worked on this (here is a video https://www.youtube.com/watch?v=Wq1lgHpxb9k). I use only vtk and OpenHaptics toolkit for this particular application. But also I have other interfaces (wiimote/alsa midicontroler) you can watch my videos on youtube. Felipe Le 3 sept. 2015 ? 18:11, Kavya Jain a ?crit : > Hi Everyone, > > I am working on interfacing Phantom Omni device with VTK using OpenHaptics toolkit. > If anyone working on similar topic, could you please share some info on whether any additional library used? > > Regards, > Kavya > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 496 bytes Desc: Message signed with OpenPGP using GPGMail URL: From david.gobbi at gmail.com Thu Sep 3 12:39:01 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 3 Sep 2015 10:39:01 -0600 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Thu, Sep 3, 2015 at 9:36 AM, Marcus D. Hanwell < marcus.hanwell at kitware.com> wrote: > On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: > > > > I have a C++ code building a molecule, Appending atoms, etc. No problem > > there. > > > > Using Python, I cannot do the same. Why aren't the AppendAtom() methods > not > > available to a vtkMolecule object? How should one build a molecule with > > vtkpython? > > I don't think they are wrapped due to limitations in the Python > wrapping, and the pattern we wanted to use for scalable storage of > molecular data. I think we could get them wrapped, or add some simpler > API for the Python/wrapped languages. > > I don't think this is something we tested, or looked at very deeply. > Much of the code was developed in quite a short period as part of a > Google Summer of Code project, it would be nice to extend it to better > support Python. > Marcus, don't be so pessimistic about the Python wrappers. Jean, just tell cmake to wrap vtkAtom, and the AppendAtom method should work just fine. Change the following lines in Common/DataModel/CMakeLists.txt: set_source_files_properties( ... vtkAtom.h PROPERTIES WRAP_SPECIAL 1 ) The problem is that WRAP_EXCLUDE includes all of the classes that Java and Tcl cannot wrap, and as a result, many classes are excluded from the Python wrapping even though Python is perfectly capable of using them. I should do a sweep through the cmake files to make the wrapping more inclusive. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Thu Sep 3 13:18:18 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 3 Sep 2015 13:18:18 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Thu, Sep 3, 2015 at 12:39 PM, David Gobbi wrote: > On Thu, Sep 3, 2015 at 9:36 AM, Marcus D. Hanwell > wrote: >> >> On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: >> > >> > I have a C++ code building a molecule, Appending atoms, etc. No problem >> > there. >> > >> > Using Python, I cannot do the same. Why aren't the AppendAtom() methods >> > not >> > available to a vtkMolecule object? How should one build a molecule with >> > vtkpython? >> >> I don't think they are wrapped due to limitations in the Python >> wrapping, and the pattern we wanted to use for scalable storage of >> molecular data. I think we could get them wrapped, or add some simpler >> API for the Python/wrapped languages. >> >> I don't think this is something we tested, or looked at very deeply. >> Much of the code was developed in quite a short period as part of a >> Google Summer of Code project, it would be nice to extend it to better >> support Python. > > > Marcus, don't be so pessimistic about the Python wrappers. Jean, just tell > cmake to wrap vtkAtom, and the AppendAtom method should work just fine. > Change the following lines in Common/DataModel/CMakeLists.txt: I did mean to say things may well have improved since this was contributed, but we haven't revisited it in quite a while. I know the vtkTuple/vtkVector style classes added many similar features. > > set_source_files_properties( > ... > vtkAtom.h > PROPERTIES WRAP_SPECIAL 1 > ) > > The problem is that WRAP_EXCLUDE includes all of the classes that Java > and Tcl cannot wrap, and as a result, many classes are excluded from the > Python wrapping even though Python is perfectly capable of using them. > I should do a sweep through the cmake files to make the wrapping more > inclusive. That is great, the growing disparity between wrapped languages may be an issue, but I am glad to hear things have improved so much in the Python wrappers. Thanks for the pointers David - can we convert to Doxygen markup in our headers and use typed enums yet ;-) Best, Marcus From marcus.hanwell at kitware.com Thu Sep 3 13:37:53 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Thu, 3 Sep 2015 13:37:53 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Thu, Sep 3, 2015 at 1:18 PM, Marcus D. Hanwell wrote: > On Thu, Sep 3, 2015 at 12:39 PM, David Gobbi wrote: >> On Thu, Sep 3, 2015 at 9:36 AM, Marcus D. Hanwell >> wrote: >>> >>> On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: >>> > >>> > I have a C++ code building a molecule, Appending atoms, etc. No problem >>> > there. >>> > >>> > Using Python, I cannot do the same. Why aren't the AppendAtom() methods >>> > not >>> > available to a vtkMolecule object? How should one build a molecule with >>> > vtkpython? >>> >>> I don't think they are wrapped due to limitations in the Python >>> wrapping, and the pattern we wanted to use for scalable storage of >>> molecular data. I think we could get them wrapped, or add some simpler >>> API for the Python/wrapped languages. >>> >>> I don't think this is something we tested, or looked at very deeply. >>> Much of the code was developed in quite a short period as part of a >>> Google Summer of Code project, it would be nice to extend it to better >>> support Python. >> >> >> Marcus, don't be so pessimistic about the Python wrappers. Jean, just tell >> cmake to wrap vtkAtom, and the AppendAtom method should work just fine. >> Change the following lines in Common/DataModel/CMakeLists.txt: > > I did mean to say things may well have improved since this was > contributed, but we haven't revisited it in quite a while. I know the > vtkTuple/vtkVector style classes added many similar features. >> >> set_source_files_properties( >> ... >> vtkAtom.h >> PROPERTIES WRAP_SPECIAL 1 >> ) >> >> The problem is that WRAP_EXCLUDE includes all of the classes that Java >> and Tcl cannot wrap, and as a result, many classes are excluded from the >> Python wrapping even though Python is perfectly capable of using them. >> I should do a sweep through the cmake files to make the wrapping more >> inclusive. > > That is great, the growing disparity between wrapped languages may be > an issue, but I am glad to hear things have improved so much in the > Python wrappers. > > Thanks for the pointers David - can we convert to Doxygen markup in > our headers and use typed enums yet ;-) > Oh, and Python 3 which sounds like it is most of the way there now! Can't wait to play with this as I seem to hit more and more projects that have moved forward and simply couldn't use VTK until it did too. Awesome to see so many improvements, I will try to take a look at vtkMolecule and friends to improve their exposure to our Python wrappers. Marcus From felipe.bordeu at ec-nantes.fr Fri Sep 4 03:41:27 2015 From: felipe.bordeu at ec-nantes.fr (Felipe Bordeu) Date: Fri, 04 Sep 2015 09:41:27 +0200 Subject: [vtkusers] VTK + OpenHaptics interface In-Reply-To: References: <899A343B-8E2D-4466-92CA-8F6AF4723D2C@ec-nantes.fr> Message-ID: <55E94B27.2010105@ec-nantes.fr> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Kavya, Please reply to the list so anyone can contribute. I use only the vtk and the openHaptics libs. I wrote a simple pipeline and use a TimerEvent to pull the data from the device at regular intervals. I have two different threads to deal with the visual feedback and the force feedback (the visual threads is to slow for the force feedback). So I don't use the run time loop of the openHaptics libs. I usethe openHaptics libs only to pull/push the position/force state of the device. Hope this is more clear. Felipe Le 03/09/2015 18:34, Kavya Jain a ?crit : > Hello Felipe, > > Thank you for sharing it. Could you please provide me some details on whether you have used any additional libraries to achieve this or partial modification of openHaptics\VTK code? > > Regards, > Kavya > > On Thu, Sep 3, 2015 at 10:23 AM, Felipe Bordeu Weldt > wrote: > > Hi Kavla, > > I worked on this (here is a video https://www.youtube.com/watch?v=Wq1lgHpxb9k). > I use only vtk and OpenHaptics toolkit for this particular application. But also I have other interfaces (wiimote/alsa midicontroler) you can watch my videos on youtube. > > Felipe > > > Le 3 sept. 2015 ? 18:11, Kavya Jain > a ?crit : > >> Hi Everyone, >> >> I am working on interfacing Phantom Omni device with VTK using OpenHaptics toolkit. >> If anyone working on similar topic, could you please share some info on whether any additional library used? >> >> Regards, >> Kavya >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 > > - -- Felipe Bordeu Weldt Ing?nieur de Recherche - ------------------------------------- T?l. : 33 (0)2 40 37 16 57 Fax. : 33 (0)2 40 74 74 06 Felipe.Bordeu at ec-nantes.fr Institut GeM - UMR CNRS 6183 ?cole Centrale Nantes 1 Rue de La No?, 44321 Nantes, FRANCE - ------------------------------------- -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iQEcBAEBAgAGBQJV6UsnAAoJEE/fMfNgU9/DoOYIAImEDxBP+ZRNpMe7m2k4+6zQ ObeZ14Mws0gLT+68JGrUAMYNJ4rm5W7tQBNmmxbEak0nw+txhUvlWt3BOkN5qgP3 g82SutWQXcYbpD4I2IQOA4RMLHNi9P5zVPw8J4oiGOKnIsZ7hSgxP6ZotMCaoihr NCgahtoNhch01+US5gA8GL0StDGAN7ySpOJO4ACsbouTcoyHVr9D7yBFK5qnQUsf /imK6wev2m6QCYqUKQj9QIW4/RpXdUZd2b963RMQn4dgMVmYYeHg6DlpstKmY7Xt X76Zj8Z5W8F58OGj99VdYqQNVoMrFVlVEcYU7ZMKMPY28PDzzIQqrU0ildFB95c= =Z91E -----END PGP SIGNATURE----- -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Fri Sep 4 11:24:48 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Fri, 4 Sep 2015 11:24:48 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Thu, Sep 3, 2015 at 12:39 PM, David Gobbi wrote: > On Thu, Sep 3, 2015 at 9:36 AM, Marcus D. Hanwell > wrote: >> >> On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: >> > >> > I have a C++ code building a molecule, Appending atoms, etc. No problem >> > there. >> > >> > Using Python, I cannot do the same. Why aren't the AppendAtom() methods >> > not >> > available to a vtkMolecule object? How should one build a molecule with >> > vtkpython? >> >> I don't think they are wrapped due to limitations in the Python >> wrapping, and the pattern we wanted to use for scalable storage of >> molecular data. I think we could get them wrapped, or add some simpler >> API for the Python/wrapped languages. >> >> I don't think this is something we tested, or looked at very deeply. >> Much of the code was developed in quite a short period as part of a >> Google Summer of Code project, it would be nice to extend it to better >> support Python. > > > Marcus, don't be so pessimistic about the Python wrappers. Jean, just tell > cmake to wrap vtkAtom, and the AppendAtom method should work just fine. > Change the following lines in Common/DataModel/CMakeLists.txt: > > set_source_files_properties( > ... > vtkAtom.h > PROPERTIES WRAP_SPECIAL 1 > ) > > The problem is that WRAP_EXCLUDE includes all of the classes that Java > and Tcl cannot wrap, and as a result, many classes are excluded from the > Python wrapping even though Python is perfectly capable of using them. > I should do a sweep through the cmake files to make the wrapping more > inclusive. > This worked great, I was able to run the folllowing locally in vtkpython: import vtk mol = vtk.vtkMolecule() h1 = mol.AppendAtom(1, 0.0, 0.0, -0.5) h2 = mol.AppendAtom(1, 0.0, 0.0, 0.5) b = mol.AppendBond(1, h1, h2) Proof that it retained the information: >>> print mol.GetNumberOfAtoms() 2 >>> print mol.GetNumberOfBonds() 1 I pushed https://gitlab.kitware.com/mhanwell/vtk/commits/molecules-in-python for anyone that wants to test it out. I will try to add a test before making a merge request. Thanks, Marcus From marcus.hanwell at kitware.com Fri Sep 4 14:50:29 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Fri, 4 Sep 2015 14:50:29 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> Message-ID: On Fri, Sep 4, 2015 at 11:24 AM, Marcus D. Hanwell wrote: > On Thu, Sep 3, 2015 at 12:39 PM, David Gobbi wrote: >> On Thu, Sep 3, 2015 at 9:36 AM, Marcus D. Hanwell >> wrote: >>> >>> On Thu, Sep 3, 2015 at 11:22 AM, Favre Jean wrote: >>> > >>> > I have a C++ code building a molecule, Appending atoms, etc. No problem >>> > there. >>> > >>> > Using Python, I cannot do the same. Why aren't the AppendAtom() methods >>> > not >>> > available to a vtkMolecule object? How should one build a molecule with >>> > vtkpython? >>> >>> I don't think they are wrapped due to limitations in the Python >>> wrapping, and the pattern we wanted to use for scalable storage of >>> molecular data. I think we could get them wrapped, or add some simpler >>> API for the Python/wrapped languages. >>> >>> I don't think this is something we tested, or looked at very deeply. >>> Much of the code was developed in quite a short period as part of a >>> Google Summer of Code project, it would be nice to extend it to better >>> support Python. >> >> >> Marcus, don't be so pessimistic about the Python wrappers. Jean, just tell >> cmake to wrap vtkAtom, and the AppendAtom method should work just fine. >> Change the following lines in Common/DataModel/CMakeLists.txt: >> >> set_source_files_properties( >> ... >> vtkAtom.h >> PROPERTIES WRAP_SPECIAL 1 >> ) >> >> The problem is that WRAP_EXCLUDE includes all of the classes that Java >> and Tcl cannot wrap, and as a result, many classes are excluded from the >> Python wrapping even though Python is perfectly capable of using them. >> I should do a sweep through the cmake files to make the wrapping more >> inclusive. >> > This worked great, I was able to run the folllowing locally in vtkpython: > > I pushed https://gitlab.kitware.com/mhanwell/vtk/commits/molecules-in-python > for anyone that wants to test it out. I will try to add a test before > making a merge request. > So it worked great, I added a test, made a merge request, but Java is tripping up on the vtkAtom class now, https://gitlab.kitware.com/vtk/vtk/merge_requests/629 https://open.cdash.org/viewBuildError.php?buildid=3993935 Merge request, and an example failure that looks like my fault. We will have to fix that before it can be merged. This worked great in Python 2 and 3 on Linux for me, so I was really pleased to see that. Best, Marcus From cory.quammen at kitware.com Fri Sep 4 16:47:53 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 4 Sep 2015 16:47:53 -0400 Subject: [vtkusers] vtkLookUpTable negative scalars In-Reply-To: <55E4715A.2040405@jslengineeringsoftware.com> References: <55E45BD5.8080303@jslengineeringsoftware.com> <55E4715A.2040405@jslengineeringsoftware.com> Message-ID: Hi James, I had some trouble with the example code. The VTK window that pops up displays the visualization briefly then goes black and is hidden by the main JFrame. When I see the visualization, the scalar bar appears both when the values are all negative and when they are all positive. I haven't seen any problems with a completely negative range when looking at data in ParaView, which uses VTK for visualization, either. I suggest trying to get the VTK renderer in the main JFrame. You can take a look at [1] to see an example of how this might work. Thanks, Cory http://www.vtk.org/Wiki/VTK/Examples/Java/SwingIntegration/JFrameRenderer On Mon, Aug 31, 2015 at 11:23 AM, James Labiak < jim at jslengineeringsoftware.com> wrote: > Hi Cory, > Here's a java example below. Also attached with some_points.txt file > (warning: z, theta, dR and not x,y,z). Just comment the dRi sign change > line in order to change the scalars from negative to positive. > Thanks, > Jim > > import java.awt.BorderLayout; > import java.io.BufferedReader; > import java.io.File; > import java.io.FileNotFoundException; > import java.io.FileReader; > import java.io.IOException; > import javax.swing.JFrame; > import javax.swing.JPanel; > import javax.swing.SwingUtilities; > import vtk.*; > > public class PlotSpheres extends JPanel { > > public static void main(String[] args) throws FileNotFoundException { > SwingUtilities.invokeLater(new Runnable() { > public void run() { > JFrame frame = new JFrame("PlotSheres"); > frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); > frame.getContentPane().setLayout(new BorderLayout()); > try { > frame.getContentPane().add(new PlotSpheres(), > BorderLayout.CENTER); > } catch (FileNotFoundException e) { > e.printStackTrace(); > } > frame.setSize(1000, 1000); > frame.setVisible(true); > } > }); > } > > // Load VTK libraries > static { > if (!vtkNativeLibrary.LoadAllNativeLibraries()) { > for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { > if (!lib.IsLoaded()) > System.out.println(lib.GetLibraryName() + " not > loaded"); > } > System.out.println("Make sure the search path is correct: "); > System.out.println(System.getProperty("java.library.path")); > } > vtkNativeLibrary.DisableOutputWindow(null); > } > > // Variables > private String dataFile; > private String dataFilePathString; > Double[] xValsArray = new Double[41]; > Double[] yValsArray = new Double[721]; > Double[][] zValsArray = new Double[41][721]; > private vtkRenderWindowPanel renderWindowPanel = new > vtkRenderWindowPanel(); > private vtkPoints points; > private int pointsNum; > private vtkRenderWindowInteractor renderWindowInteractor; > private vtkPolyData polyData = new vtkPolyData(); > private vtkFloatArray colorsScalars; > > public PlotSpheres() throws FileNotFoundException { > super(new BorderLayout()); > dataFilePathString = "C:\\vtk123"; > dataFile = "some_points.txt"; > calcSheres(); > System.out.println("calcSheres done"); > } > > public void calcSheres() throws FileNotFoundException { > try { > renderWindowPanel.GetRenderer().RemoveAllViewProps(); > } catch (Exception nullEx) { > System.out.println("renderWindowPanel props are null."); > } > > // Read the file > // Count the lines in the file > BufferedReader br_count = new BufferedReader(new FileReader( > dataFilePathString + File.separator + dataFile)); > String lineData = null; > int lineNum = 0; > try { > lineData = br_count.readLine(); > // The first data line has just been read > while (lineData != null) { > // Do nothing except increment the counter > lineNum = lineNum + 1; // on iteration 1, lineNum = 1 > // Read blank line > lineData = br_count.readLine(); > // Next action is in for the br_count.readLine() (the > // next data line) > lineData = br_count.readLine(); > System.out.println("lineNum = " + lineNum + " " + > lineData); > } > } catch (Exception e) { > e.printStackTrace(); > System.out.println("Datafile line counting error"); > } > try { > br_count.close(); > } catch (IOException e) { > System.out.println("Error closing br_count"); > e.printStackTrace(); > } > > BufferedReader br = new BufferedReader(new FileReader( > dataFilePathString + File.separator + dataFile)); > // Set number of data point sets (x,y,z sets) > pointsNum = lineNum; > > // Fill colorsScalars array with the actual scalar values > // Initialize/reinitialize variables > String linej; > int indexNum = 0; > points = new vtkPoints(); > points.SetNumberOfPoints(pointsNum); > Double ZPOSi; > Double theta; > Double dRi; > Double tempx; > Double tempy; > Double tempz; > // colorsScalars is the array of native (pos or neg) scalars > // the sign is changed to meet the required application convention > // the sign change line can be used to show difference between > // plotting of positive and negative scalars > colorsScalars = new vtkFloatArray(); > colorsScalars.SetNumberOfTuples(pointsNum); > String[] linejArray = {}; > try { > linej = br.readLine(); > while (linej != null) { > linejArray = linej.split("\\s+"); > ZPOSi = Double.parseDouble(linejArray[1]); // Z position > (m) > theta = Double.parseDouble(linejArray[2]); // theta (deg) > dRi = Double.parseDouble(linejArray[3]); // dRi (m) > // dRi negative value means smaller than nominal radius > // tempx = (r - dr) * cos(theta) > // tempy = (r - dr) * sin(theta) > // tempz = ZPOSi > tempx = (.094629 - dRi) * Math.cos((3.14159 / 180) * > theta); > tempy = (.094629 - dRi) * Math.sin((3.14159 / 180) * > theta); > tempz = ZPOSi; > points.SetPoint(indexNum, tempx, tempy, tempz); > System.out.println(tempx + " " + tempy + " " + tempz); > // Account for convention used in application > // Change sign of dRi: > dRi *= -1; > colorsScalars.SetValue(indexNum, dRi); > indexNum = indexNum + 1; > System.out.println("indexNum = " + indexNum > + "......... dRi = " + dRi); > linej = br.readLine(); > // (Account for blank line...) > linej = br.readLine(); > } > } catch (Exception ex) { > ex.printStackTrace(); > System.out.println("Error reading datafile"); > } > try { > br_count.close(); > } catch (IOException e) { > System.out.println("Error closing br_count"); > e.printStackTrace(); > } > > // populate the polyData > this.polyData.SetPoints(points); > > // find min and max of colorsScalars array > double[] tmpScalarRange = new double[2]; > tmpScalarRange = this.colorsScalars.GetRange(); > Double scalarMax = tmpScalarRange[1]; > Double scalarMin = tmpScalarRange[0]; > > // populate the scalars > this.polyData.GetPointData().SetScalars(this.colorsScalars); > > // create sphere source > vtkSphereSource sphere = new vtkSphereSource(); > sphere.Update(); > > // setup glyph3D > vtkGlyph3D glyph3D = new vtkGlyph3D(); > glyph3D.SetColorModeToColorByScalar(); > glyph3D.SetSourceConnection(sphere.GetOutputPort()); > glyph3D.SetInputData(polyData); > glyph3D.Update(); > > // visualize > vtkDataSetMapper mapper = new vtkDataSetMapper(); > mapper.SetInputConnection(glyph3D.GetOutputPort()); > mapper.SetScalarRange(scalarMin, scalarMax); > mapper.Update(); > > vtkActor actor = new vtkActor(); > actor.GetProperty().SetSpecularPower(1.0); > actor.GetProperty().SetDiffuse(1.0); > actor.GetProperty().SetOpacity(1.0); > actor.SetMapper(mapper); > > vtkRenderer renderer = new vtkRenderer(); > renderer = renderWindowPanel.GetRenderer(); > renderer.AddActor(actor); > renderer.SetBackground(0.0, 0.0, 0.0); > renderer.ResetCameraClippingRange(); > > // Create a lookup table to share between the mapper and the > scalarbar > vtkLookupTable hueLut = new vtkLookupTable(); > hueLut.SetTableRange(scalarMin, scalarMax); > hueLut.SetHueRange(0.6667, 0.0000); // H from HSV red (top) to blue > hueLut.SetSaturationRange(1.0, 1.0); > hueLut.SetValueRange(1.0, 1.0); // V from HSV > hueLut.Build(); > mapper.SetLookupTable(hueLut); > mapper.Update(); > > vtkScalarBarWidget sbWidget = new vtkScalarBarWidget(); > sbWidget.RepositionableOn(); > renderWindowInteractor = > renderWindowPanel.getRenderWindowInteractor(); > sbWidget.SetInteractor(renderWindowInteractor); > sbWidget.GetScalarBarActor().SetTitle("dR (m)"); > > sbWidget.GetScalarBarActor().SetLookupTable(mapper.GetLookupTable()); > > vtkTextProperty SBtprop = new vtkTextProperty(); > SBtprop.SetFontSize(1); > SBtprop.SetBold(1); > sbWidget.GetScalarBarActor().SetLabelTextProperty(SBtprop); > sbWidget.GetScalarBarActor().SetBarRatio(.7); > SBtprop.SetLineOffset(-10); > > renderer.ResetCameraClippingRange(); > > vtkCubeAxesActor2D axes = new vtkCubeAxesActor2D(); > axes.SetCamera(renderer.GetActiveCamera()); > axes.SetBounds(actor.GetBounds()); > axes.SetFlyModeToOuterEdges(); > renderer.AddActor(axes); > renderer.ResetCamera(); > sbWidget.EnabledOn(); > > System.out.println("B4 this.add"); > this.add(renderWindowPanel, BorderLayout.CENTER); > > renderer.ResetCamera(); > renderWindowInteractor.Start(); > > } > } > > On 8/31/2015 10:08 AM, Cory Quammen wrote: > > Hmm, that should work. Mind posting a code example showing the problem? > > Thanks, > Cory > > On Mon, Aug 31, 2015 at 9:51 AM, James Labiak < > jim at jslengineeringsoftware.com> wrote: > >> (vtk 6.0, Java wrapper) When using a vtkLookUpTable to map scalar values >> to hue range, it appears that everything works correctly when the table >> range is entirely positive, but when the table range is entirely negative, >> the graphical output is blank. If this is intended behavior, then I would >> make my own LUT except for mapper.SetLookupTable(hueLut). Is this likely my >> error or a LUT issue? >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > > > -- > James Labiak > JSL Engineering and Software > Mobile: 231-638-3725 > email: jim at jslengineeringsoftware.com > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From wumengda at gmail.com Sat Sep 5 10:04:27 2015 From: wumengda at gmail.com (Wei Xiong) Date: Sat, 5 Sep 2015 16:04:27 +0200 Subject: [vtkusers] From: Wei Xiong Message-ID: <19AF415852997B5268DB0B1DE6A493E5@teclasimples.pt> Hi vtkusers http://www.perfectpicturesentertainment.com/height.php?born=9vhzh72v9da Wei Xiongwumengda at gmail.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.krotkiewski at gmail.com Sat Sep 5 15:32:21 2015 From: marcin.krotkiewski at gmail.com (marcin.krotkiewski) Date: Sat, 5 Sep 2015 21:32:21 +0200 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 Message-ID: <55EB4345.2070508@gmail.com> I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor with the standard OpenGL backend. I use ubuntu 14.04 and compile with gcc 4.9.2 and jdk1.8.0_60. On my laptop, the segfaults are 100 reproducible with mesa library - some lines from glxinfo: OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 OpenGL core profile shading language version string: 3.30 When I use the high performance card (fglrx drivers, Radeon HD 8790M) the segfaults sometimes happen, sometimes not. Lines from glxinfo: OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: AMD Radeon HD 8790M OpenGL core profile version string: 4.3.13374 Core Profile Context 15.20.1013 OpenGL core profile shading language version string: 4.40 I have attached a simplified java code based on VTKCanvas - In my experience this one segfaults always, both with mesa, and with Radeon drivers. I get the following line before vtk dies: ERROR: In /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 412 vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized. And this is the top of the stack reported by the dying Java VM R11=0x00007fcbd8a79840: in /usr/lib/fglrx/libGL.so.1 at 0x00007fcbd8a07000 Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], sp=0x00007fcbb95e1148, free space=1012k Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j vtk.vtkRenderWindow.Render_9()V+0 j vtk.vtkRenderWindow.Render()V+1 j vtk.vtkPanel.Render()V+164 j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 [...] It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I could not reproduce it for 6.2.0, nor when using OpenGL backend. Do you know any reason why this could happen? I will be happy to provide more information and help to solve this. Cheers, Marcin -------------- next part -------------- A non-text attachment was scrubbed... Name: VTKCanvas.java Type: text/x-java Size: 1037 bytes Desc: not available URL: From dejan.zivkovic90 at gmail.com Sat Sep 5 16:29:33 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Sat, 5 Sep 2015 22:29:33 +0200 Subject: [vtkusers] Unresolved externals when trying to compile my VTK sample project Message-ID: I got some unresolved externals when trying to compile my VTK sample project in Visual Studio 2010 I did the following steps: 1) Downloaded VTK 6.3 from GIT 2) Configured it with cmake for VisualStudio 2010 x64 3) Generated a VTK solution, and made an INSTALL release build The result was the folder VTK in C:\ProgramFiles which has *include* and *libs* folders that I intended to use for my solution. Finally, I - made an empty VS C++ project - made a cpp files with copied sample code - added include directories from C:\ProgramFiles\VTK\include - set additional lib dir to C:\ProgramFiles\VTK\libs - added all libs in the folder above to the linker input And I get 15 unresolved externals: 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@ @@Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkProp3D::RotateY(double)" (__imp_?RotateY at vtkProp3D@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkProp3D::RotateX(double)" (__imp_?RotateX at vtkProp3D@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Zoom(double)" (__imp_?Zoom at vtkCamera@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkCylinderSource * __cdecl vtkCylinderSource::New(void)" (__imp_?New at vtkCylinderSource@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkProperty * __thiscall vtkActor::GetProperty(void)" (__imp_?GetProperty at vtkActor @@QAEPAVvtkProperty@@XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkActor * __cdecl vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCamera(void)" (__imp_?ResetCamera at vtkRenderer@@QAEXXZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)" (__imp_?GetActiveCamera at vtkRenderer @@QAEPAVvtkCamera@@XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(void)" (__imp_?GetOutputPort at vtkAlgorithm @@QAEPAVvtkAlgorithmOutput@@XZ) 1>C:\Users\Dejan\documents\visual studio 2010\Projects\VTKTest\Release\VTKTest.exe : fatal error LNK1120: 15 unresolved externals Can someone help? This has been bugging me for more than a day. -------------- next part -------------- An HTML attachment was scrubbed... URL: From g.bogle at auckland.ac.nz Sat Sep 5 16:50:58 2015 From: g.bogle at auckland.ac.nz (Gib Bogle) Date: Sat, 5 Sep 2015 20:50:58 +0000 Subject: [vtkusers] [FORGED] Unresolved externals when trying to compile my VTK sample project In-Reply-To: References: Message-ID: My suggestions, Dejan: 1) Don't put your own code in the VTK install tree. 2) Build your own applications with cmake. This will take care of all the include files and libraries. I suggest you start by finding one of the many online examples, which come complete with a CMakeLists.txt. Then build your program using this example as a guide. Cmake makes life very easy. Gib ________________________________ From: vtkusers [vtkusers-bounces at vtk.org] on behalf of Dejan Zivkovic [dejan.zivkovic90 at gmail.com] Sent: Sunday, 6 September 2015 8:29 a.m. To: vtkusers at vtk.org Subject: [FORGED] [vtkusers] Unresolved externals when trying to compile my VTK sample project I got some unresolved externals when trying to compile my VTK sample project in Visual Studio 2010 I did the following steps: 1) Downloaded VTK 6.3 from GIT 2) Configured it with cmake for VisualStudio 2010 x64 3) Generated a VTK solution, and made an INSTALL release build The result was the folder VTK in C:\ProgramFiles which has include and libs folders that I intended to use for my solution. Finally, I - made an empty VS C++ project - made a cpp files with copied sample code - added include directories from C:\ProgramFiles\VTK\include - set additional lib dir to C:\ProgramFiles\VTK\libs - added all libs in the folder above to the linker input And I get 15 unresolved externals: 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderWindowInteractor::SetRenderWindow(class vtkRenderWindow *)" (__imp_?SetRenderWindow at vtkRenderWindowInteractor@@QAEXPAVvtkRenderWindow@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindowInteractor * __cdecl vtkRenderWindowInteractor::New(void)" (__imp_?New at vtkRenderWindowInteractor@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkProp3D::RotateY(double)" (__imp_?RotateY at vtkProp3D@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkProp3D::RotateX(double)" (__imp_?RotateX at vtkProp3D@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkCamera::Zoom(double)" (__imp_?Zoom at vtkCamera@@QAEXN at Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkCylinderSource * __cdecl vtkCylinderSource::New(void)" (__imp_?New at vtkCylinderSource@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderWindow * __cdecl vtkRenderWindow::New(void)" (__imp_?New at vtkRenderWindow@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkProperty * __thiscall vtkActor::GetProperty(void)" (__imp_?GetProperty at vtkActor@@QAEPAVvtkProperty@@XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkActor * __cdecl vtkActor::New(void)" (__imp_?New at vtkActor@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkPolyDataMapper * __cdecl vtkPolyDataMapper::New(void)" (__imp_?New at vtkPolyDataMapper@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::ResetCamera(void)" (__imp_?ResetCamera at vtkRenderer@@QAEXXZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkCamera * __thiscall vtkRenderer::GetActiveCamera(void)" (__imp_?GetActiveCamera at vtkRenderer@@QAEPAVvtkCamera@@XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __thiscall vtkRenderer::AddActor(class vtkProp *)" (__imp_?AddActor at vtkRenderer@@QAEXPAVvtkProp@@@Z) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static class vtkRenderer * __cdecl vtkRenderer::New(void)" (__imp_?New at vtkRenderer@@SAPAV1 at XZ) 1>main.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: class vtkAlgorithmOutput * __thiscall vtkAlgorithm::GetOutputPort(void)" (__imp_?GetOutputPort at vtkAlgorithm@@QAEPAVvtkAlgorithmOutput@@XZ) 1>C:\Users\Dejan\documents\visual studio 2010\Projects\VTKTest\Release\VTKTest.exe : fatal error LNK1120: 15 unresolved externals Can someone help? This has been bugging me for more than a day. -------------- next part -------------- An HTML attachment was scrubbed... URL: From giumas at yahoo.it Sun Sep 6 00:40:39 2015 From: giumas at yahoo.it (gmas) Date: Sat, 5 Sep 2015 21:40:39 -0700 (MST) Subject: [vtkusers] Rendering large 2d numpy array as DEM with several level of details Message-ID: <1441514439373-5733747.post@n5.nabble.com> I am struggling with a quite simple task. How can I implement several LODs for rendering a 2D numpy array? w = 1585 h = 1262 np_array = np.random.random(w*h) data = vtk.vtkImageData() data.SetDimensions(w, h, 1) data.GetPointData().SetScalars(numpy_to_vtk(np_array, deep=True, array_type=vtk.VTK_FLOAT)) mapper = vtk.vtkDataSetMapper() mapper.ScalarVisibilityOn() # set the visibility on the scalar mapper.SetScalarRange(data.GetPointData().GetArray(0).GetRange()) mapper.SetInputData(data) actor = vtk.vtkLODProp3D() actor.AddLOD(mapper, 0.0) # actor.AddLOD(low_mapper, 0.0) <<< How can I implement a low-resolution mapper for vtkImageData??? ren.AddViewProp(actor) vtk_widget.GetRenderWindow().Render() I have not been able to find working examples. Which filters could be applied? -- View this message in context: http://vtk.1045678.n5.nabble.com/Rendering-large-2d-numpy-array-as-DEM-with-several-level-of-details-tp5733747.html Sent from the VTK - Users mailing list archive at Nabble.com. From wumengda at gmail.com Sun Sep 6 22:32:37 2015 From: wumengda at gmail.com (Mengda Wu) Date: Sun, 6 Sep 2015 22:32:37 -0400 Subject: [vtkusers] Uneven interpolation from vtkTupleInterpolator? Message-ID: Hello, I am trying to get an even interpolation between two points. For example, the following code: vtkSmartPointer pointInterpolator = vtkSmartPointer::New(); pointInterpolator->SetNumberOfComponents(3); double coord0[3] = {0.0, 0.0, 0.0}; double coord1[3] = {0.0, 0.0, 1.0}; pointInterpolator->AddTuple(0.0, coord0); pointInterpolator->AddTuple(1.0, coord1); double coord[3]; double t; for(int i=0; i<=3; i++) { t = i/3.0; pointInterpolator->InterpolateTuple(t, coord); std::cout << t << ": " << coord[0] << ", " << coord[1] << ", " << coord[2] << std::endl; } gives me: 0: 0, 0, 0 0.333333: 0, 0, 0.259259 0.666667: 0, 0, 0.740741 1: 0, 0, 1 while I am expecting 0: 0, 0, 0 0.333333: 0, 0, 0.333333 0.666667: 0, 0, 0.666667 1: 0, 0, 1 How should I do this? What if I have more than two points and I need an interpolating spline which gives points at even distribution? Thanks, Mengda -------------- next part -------------- An HTML attachment was scrubbed... URL: From jfavre at cscs.ch Mon Sep 7 05:15:32 2015 From: jfavre at cscs.ch (Favre Jean) Date: Mon, 7 Sep 2015 09:15:32 +0000 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> , Message-ID: <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Thanks David for the tip, and thanks to Marcus for pushing integration of this into the main code. Things work really well in Python. I love the vtkSimpleBondPerceiver and vtkMoleculeMapper and the improved vtkPointGaussianMapper enables me to show the electrons through the molecular structure. That Google Summer of Code project is a great contribution. Jean/CSCS From Nigel.Mcfarlane at beds.ac.uk Mon Sep 7 07:23:00 2015 From: Nigel.Mcfarlane at beds.ac.uk (Nigel Mcfarlane) Date: Mon, 7 Sep 2015 11:23:00 +0000 Subject: [vtkusers] Extents update problem in vtkOutlineCornerFilter Message-ID: Dear VTK Users, I am having problems updating the extents on vtkOutlineCornerFilter when the input image changes. The code below reads an image and displays its bounding box with vtkOutlineCornerFilter. Then it changes the filename to an image with different dimensions and executes the render loop again. An error message is displayed: "Update extent ... outside WholeExtent". If a corresponding slice view is added using vtkImageSliceMapper, the slice updates perfectly but the outline box does not. //--------------------------------------------------------------- // Create the visual pipe //--------------------------------------------------------------- vtkStructuredPointsReader *reader = vtkStructuredPointsReader::New(); reader->SetFileName(fname2.c_str()); vtkOutlineCornerFilter* ocf = vtkOutlineCornerFilter::New(); ocf->SetInputConnection(reader->GetOutputPort()); vtkPolyDataMapper* mapper = vtkPolyDataMapper::New(); mapper->SetInputConnection(ocf->GetOutputPort()); vtkActor *actor = vtkActor::New(); actor->SetMapper(mapper); Renderer->AddActor(actor); // ------------------------------- // Render loop 1 // Enter 'e' to exit and continue // ------------------------------- RWI->Initialize(); RWI->Start(); //--------------------------------------------------------------- // Render loop 2 // Change the filename and render again //--------------------------------------------------------------- reader->SetFileName(fname1.c_str()); RWI->Initialize(); RWI->Start(); This appears to be the same as a the problem with vtkAppendPolyData which I reported on 6/8/15: http://public.kitware.com/pipermail/vtkusers/2015-August/091772.html and which was fixed by Dan Lipsa as bug #15662. I copied this bug fix into vtkOutlineCornerFilter and it fixed the problem: int vtkOutlineCornerFilter::RequestUpdateExtent(vtkInformation *vtkNotUsed(request), vtkInformationVector **inputVector, vtkInformationVector *outputVector) { vtkInformation* req = vtkInformation::New(); // because we can't pass the "unused" argument int retVal = vtkPolyDataAlgorithm::RequestUpdateExtent(req, inputVector, outputVector); req->Delete(); vtkInformation * inputInfo = inputVector[0]->GetInformationObject(0); if (inputInfo->Has(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT())) { int ext[6]; inputInfo->Get(vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), ext); inputInfo->Set(vtkStreamingDemandDrivenPipeline::UPDATE_EXTENT(), ext, 6); } return retVal; } However, unlike vtkAppendPolyData, vtkOutlineCornerFilter does not have its own RequestUpateExptent() - it inherits it from vtkPolyDataAlgorithm. The code above solves my immediate problem but it is a bodge: an override which calls the base class and appends a fix. Is there an underlying problem in vtkPolyDataAlgorithm? Regards Nigel McFarlane University of Bedfordshire UK -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Mon Sep 7 09:49:00 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Mon, 7 Sep 2015 09:49:00 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: On Mon, Sep 7, 2015 at 5:15 AM, Favre Jean wrote: > > Thanks David for the tip, and thanks to Marcus for pushing integration of this into the main code. It is now merged into master. > > Things work really well in Python. I love the vtkSimpleBondPerceiver and vtkMoleculeMapper and the improved vtkPointGaussianMapper enables me to show the electrons through the molecular structure. Glad it is working well, I would love to see any examples you might be able to share. > > That Google Summer of Code project is a great contribution. > Yes, it was great to start some of this work with a GSoC project, there has been a fair bit of follow up work too, such as a specialized mapper in OpenGL2. Glad we can now make it simpler to experiment using the Python bindings to build visualizations. It is great it took so little code now that the Python bindings are able to wrap more and more of C++. Best, Marcus From bill.lorensen at gmail.com Mon Sep 7 10:51:40 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 7 Sep 2015 10:51:40 -0400 Subject: [vtkusers] Uneven interpolation from vtkTupleInterpolator? In-Reply-To: References: Message-ID: Add pointInterpolator->SetInterpolationTypeToLinear(); before pointInterpolator->SetNumberOfComponents(3); On Sun, Sep 6, 2015 at 10:32 PM, Mengda Wu wrote: > Hello, > > I am trying to get an even interpolation between two points. For example, > the following code: > > vtkSmartPointer pointInterpolator = > vtkSmartPointer::New(); > pointInterpolator->SetNumberOfComponents(3); > > double coord0[3] = {0.0, 0.0, 0.0}; > double coord1[3] = {0.0, 0.0, 1.0}; > > pointInterpolator->AddTuple(0.0, coord0); > pointInterpolator->AddTuple(1.0, coord1); > > double coord[3]; > double t; > for(int i=0; i<=3; i++) > { > t = i/3.0; > pointInterpolator->InterpolateTuple(t, coord); > std::cout << t << ": " << coord[0] << ", " << coord[1] << ", " << > coord[2] << std::endl; > } > > gives me: > 0: 0, 0, 0 > 0.333333: 0, 0, 0.259259 > 0.666667: 0, 0, 0.740741 > 1: 0, 0, 1 > > while I am expecting > 0: 0, 0, 0 > 0.333333: 0, 0, 0.333333 > 0.666667: 0, 0, 0.666667 > 1: 0, 0, 1 > > How should I do this? What if I have more than two points and I need an > interpolating spline which gives points at even distribution? > > Thanks, > Mengda > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Unpaid intern in BillsBasement at noware dot com From jens.g.w.schmidt at gmx.de Mon Sep 7 12:52:42 2015 From: jens.g.w.schmidt at gmx.de (Jens Schmidt) Date: Mon, 7 Sep 2015 18:52:42 +0200 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <55EB4345.2070508@gmail.com> References: <55EB4345.2070508@gmail.com> Message-ID: <55EDC0DA.6030104@gmx.de> To chime in, the jvm (1.8.60) crashes on debian jessie (virtualbox) when using the opengl2 rendering backend (vtk 6.3.0rc1 and rc2) and the swtComponent. The old OpenGL works fine. When not using virtualbox's 3d accelleration the window wont even open. When activating the 3d accelleration you get a window but as soon as you add some actors and call update it crashes (some of the time). Also the jvm crashes when running everything on "real" hardware (Intel HD Graphics 4600) instead of a virtual machine. Unfortunately i cannot access the logs right now (vacation) if this still is an issue after, i happily provide any logs you desire :-) Just wanted to let you know, keep up the good work! i also have segfaults with the opengl2 backend on linux (debian jessie) running on virtualbox. Am 05.09.2015 um 21:32 schrieb marcin.krotkiewski: > I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 > backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor > with the standard OpenGL backend. I use ubuntu 14.04 and compile with > gcc 4.9.2 and jdk1.8.0_60. > > On my laptop, the segfaults are 100 reproducible with mesa library - > some lines from glxinfo: > > > OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile > OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 > OpenGL core profile shading language version string: 3.30 > > > When I use the high performance card (fglrx drivers, Radeon HD 8790M) > the segfaults sometimes happen, sometimes not. Lines from glxinfo: > > > OpenGL vendor string: Advanced Micro Devices, Inc. > OpenGL renderer string: AMD Radeon HD 8790M > OpenGL core profile version string: 4.3.13374 Core Profile Context > 15.20.1013 > OpenGL core profile shading language version string: 4.40 > > > I have attached a simplified java code based on VTKCanvas - In my > experience this one segfaults always, both with mesa, and with Radeon > drivers. I get the following line before vtk dies: > > > ERROR: In > /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 412 > vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized. > > > And this is the top of the stack reported by the dying Java VM > > > R11=0x00007fcbd8a79840: in /usr/lib/fglrx/libGL.so.1 > at 0x00007fcbd8a07000 > > Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], > sp=0x00007fcbb95e1148, free space=1012k > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j vtk.vtkRenderWindow.Render_9()V+0 > j vtk.vtkRenderWindow.Render()V+1 > j vtk.vtkPanel.Render()V+164 > j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 > > [...] > > > It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I > could not reproduce it for 6.2.0, nor when using OpenGL backend. Do > you know any reason why this could happen? I will be happy to provide > more information and help to solve this. > > Cheers, > > Marcin > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Sep 7 13:54:07 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 7 Sep 2015 11:54:07 -0600 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: On Mon, Sep 7, 2015 at 7:49 AM, Marcus D. Hanwell < marcus.hanwell at kitware.com> wrote: > > > It is great it took so little code now that the Python bindings are > able to wrap more and more of C++. > In order to wrap more of VTK, it would be nice if the python wrappers ignored the generic WRAP_EXCLUDE flag. They could have their own flag, WRAP_EXCLUDE_PYTHON. I did a test build and it seems to work. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcus.hanwell at kitware.com Mon Sep 7 14:52:53 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Mon, 7 Sep 2015 14:52:53 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: On Mon, Sep 7, 2015 at 1:54 PM, David Gobbi wrote: > On Mon, Sep 7, 2015 at 7:49 AM, Marcus D. Hanwell > wrote: >> >> >> It is great it took so little code now that the Python bindings are >> able to wrap more and more of C++. > > > In order to wrap more of VTK, it would be nice if the python wrappers > ignored the generic WRAP_EXCLUDE flag. They could have their own flag, > WRAP_EXCLUDE_PYTHON. > > I did a test build and it seems to work. > As Python already wraps quite a bit more I think that would be helpful. In future if other languages wrappers improve they could add WRAP_EXCLUDE_ too, with WRAP_EXCLUDE being the default for TCL and Java. Not sure how others feel, and it should likely be more than just me, but +1 from me. Best, Marcus From matthew.brett at gmail.com Mon Sep 7 16:45:36 2015 From: matthew.brett at gmail.com (Matthew Brett) Date: Mon, 7 Sep 2015 13:45:36 -0700 Subject: [vtkusers] Help building Python wheels for VTK In-Reply-To: References: <53e17def2dc65_48b93fd8b2693d48102957@shanghai.local.mail> Message-ID: Hi, On Fri, Aug 8, 2014 at 1:46 PM, Matthew Brett wrote: > Hi, > > On Fri, Aug 8, 2014 at 9:15 AM, David E DeMarle > wrote: >> Thanks Dave for laying it out. >> >> I'll try and steal some of my cycles too, but they likely won't come until >> the runup to the next release (a month or more from now). >> >> We do 1c for paraview and vtkpython binaries. The exact incantations vary >> per OS. Search for fixup bundle for reference material. >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> >> On Fri, Aug 8, 2014 at 12:07 PM, David Gobbi wrote: >>> >>> Okay, I've taken a long look at PEP 427 and I have an inkling of how a >>> python VTK wheel can be built. >>> >>> First, a new CMake variable "VTK_BUILD_PYTHON_WHEEL" should be >>> added, to turn on the wheel-building machinery. When this variable is >>> set, >>> the following should happen: >>> >>> >>> 1) CMake should build a wheel-compatible vtk module directory, >>> which will differ from the current vtk python module directory in the >>> following ways: >>> >>> 1a) The .py files will not be compiled (no .pyc files) >>> >>> 1b) The directory will contain not only the extension modules (i.e. >>> the .so/.pyd files), but it will also contain all of the VTK runtime >>> libraries that the extension modules depend on. >>> >>> 1c) CMake will have to set the loader paths in all the shared objects >>> so that they can find each other. >>> >>> >>> 2) After CMake has built the module, the python wheel-building tools >>> can hopefully do the rest: >>> >>> 2a) CMake will check that python has the "wheel" installed >>> >>> 2b) the python module directory that CMake built above becomes the >>> wheel platlib subdir. >>> >>> 2c) "wheel" will create all the other necessary files and create the .whl >>> >>> >>> I know how to do 1a and 1b, and can look into 1c (CMake should easily >>> be able to do it for all platforms). I probably won't be able to do >>> any work on this in the immediate future, though. >>> >>> - David > > Thanks for looking into this - it would be a huge win to be able to do > 'pip install vtk'... > > If there is anything I can do to help, please let me know, I just came across this : https://bitbucket.org/dholth/sdl2_lib/src/tip It includes a waf script that builds the Python wheel independently of Python distutils, and is by the main author of the Python wheel package and format, so it might be a useful inspiration. Cheers, Matthew From berk.geveci at kitware.com Mon Sep 7 19:52:41 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 7 Sep 2015 16:52:41 -0700 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: +1 On Mon, Sep 7, 2015 at 11:52 AM, Marcus D. Hanwell < marcus.hanwell at kitware.com> wrote: > On Mon, Sep 7, 2015 at 1:54 PM, David Gobbi wrote: > > On Mon, Sep 7, 2015 at 7:49 AM, Marcus D. Hanwell > > wrote: > >> > >> > >> It is great it took so little code now that the Python bindings are > >> able to wrap more and more of C++. > > > > > > In order to wrap more of VTK, it would be nice if the python wrappers > > ignored the generic WRAP_EXCLUDE flag. They could have their own flag, > > WRAP_EXCLUDE_PYTHON. > > > > I did a test build and it seems to work. > > > As Python already wraps quite a bit more I think that would be > helpful. In future if other languages wrappers improve they could add > WRAP_EXCLUDE_ too, with WRAP_EXCLUDE being the default for TCL > and Java. > > Not sure how others feel, and it should likely be more than just me, > but +1 from me. > > Best, > > Marcus > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From wumengda at gmail.com Mon Sep 7 23:34:26 2015 From: wumengda at gmail.com (Mengda Wu) Date: Mon, 7 Sep 2015 23:34:26 -0400 Subject: [vtkusers] Uneven interpolation from vtkTupleInterpolator? In-Reply-To: References: Message-ID: That works pretty well. What if I would still want the spline fitting since I will have actually 3 points to insert into the tupleinterpolator? Can I parameterize by length? Thanks, Mengda On Mon, Sep 7, 2015 at 10:51 AM, Bill Lorensen wrote: > Add > pointInterpolator->SetInterpolationTypeToLinear(); > before > pointInterpolator->SetNumberOfComponents(3); > > > On Sun, Sep 6, 2015 at 10:32 PM, Mengda Wu wrote: > > Hello, > > > > I am trying to get an even interpolation between two points. For > example, > > the following code: > > > > vtkSmartPointer pointInterpolator = > > vtkSmartPointer::New(); > > pointInterpolator->SetNumberOfComponents(3); > > > > double coord0[3] = {0.0, 0.0, 0.0}; > > double coord1[3] = {0.0, 0.0, 1.0}; > > > > pointInterpolator->AddTuple(0.0, coord0); > > pointInterpolator->AddTuple(1.0, coord1); > > > > double coord[3]; > > double t; > > for(int i=0; i<=3; i++) > > { > > t = i/3.0; > > pointInterpolator->InterpolateTuple(t, coord); > > std::cout << t << ": " << coord[0] << ", " << coord[1] << ", " << > > coord[2] << std::endl; > > } > > > > gives me: > > 0: 0, 0, 0 > > 0.333333: 0, 0, 0.259259 > > 0.666667: 0, 0, 0.740741 > > 1: 0, 0, 1 > > > > while I am expecting > > 0: 0, 0, 0 > > 0.333333: 0, 0, 0.333333 > > 0.666667: 0, 0, 0.666667 > > 1: 0, 0, 1 > > > > How should I do this? What if I have more than two points and I need > an > > interpolating spline which gives points at even distribution? > > > > Thanks, > > Mengda > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > Unpaid intern in BillsBasement at noware dot com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Sep 8 00:20:51 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 7 Sep 2015 22:20:51 -0600 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: I've pushed a merge request: https://gitlab.kitware.com/vtk/vtk/merge_requests/634 On Mon, Sep 7, 2015 at 5:52 PM, Berk Geveci wrote: > +1 > > On Mon, Sep 7, 2015 at 11:52 AM, Marcus D. Hanwell < > marcus.hanwell at kitware.com> wrote: > >> >> Not sure how others feel, and it should likely be more than just me, >> but +1 from me. >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sayasonawane11 at gmail.com Tue Sep 8 07:07:11 2015 From: sayasonawane11 at gmail.com (Sayali Sonawane) Date: Tue, 8 Sep 2015 12:07:11 +0100 Subject: [vtkusers] Survey on Visualization of Oceanographic Data Message-ID: Hey everyone, I'm currently collecting data for dissertation. I am running out of time to collect results for my dissertation survey, I would really appreciate if you could fill out my questionnaire. I am running out of time to collect results for my dissertation survey, I would really appreciate if you could fill out my questionnaire. Please follow the link: https://docs.google.com/forms/d/1MOpWN9oB0Y3tTZGVsLVQgKg73Gac32cKQoyjGCCsS8A/viewform?usp=send_form Thank you again for your time and input, I truly value the information you have provided. Best Regards, Sayali Sonawane -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Sep 8 08:47:57 2015 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 8 Sep 2015 08:47:57 -0400 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <55EDC0DA.6030104@gmx.de> References: <55EB4345.2070508@gmail.com> <55EDC0DA.6030104@gmx.de> Message-ID: <8235b87906c3f45aca23856ba5665409@mail.gmail.com> Can either of you verify that the VTK C++ tests work on the system? E.g. ctest ?R Mace passes? Just trying to see if this is a general system/VM issue or tied specifically to Java/OpenGL2 interactions. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Jens Schmidt *Sent:* Monday, September 7, 2015 12:53 PM *To:* marcin.krotkiewski; VTK Users *Subject:* Re: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 To chime in, the jvm (1.8.60) crashes on debian jessie (virtualbox) when using the opengl2 rendering backend (vtk 6.3.0rc1 and rc2) and the swtComponent. The old OpenGL works fine. When not using virtualbox's 3d accelleration the window wont even open. When activating the 3d accelleration you get a window but as soon as you add some actors and call update it crashes (some of the time). Also the jvm crashes when running everything on "real" hardware (Intel HD Graphics 4600) instead of a virtual machine. Unfortunately i cannot access the logs right now (vacation) if this still is an issue after, i happily provide any logs you desire :-) Just wanted to let you know, keep up the good work! i also have segfaults with the opengl2 backend on linux (debian jessie) running on virtualbox. Am 05.09.2015 um 21:32 schrieb marcin.krotkiewski: I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor with the standard OpenGL backend. I use ubuntu 14.04 and compile with gcc 4.9.2 and jdk1.8.0_60. On my laptop, the segfaults are 100 reproducible with mesa library - some lines from glxinfo: OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 OpenGL core profile shading language version string: 3.30 When I use the high performance card (fglrx drivers, Radeon HD 8790M) the segfaults sometimes happen, sometimes not. Lines from glxinfo: OpenGL vendor string: Advanced Micro Devices, Inc. OpenGL renderer string: AMD Radeon HD 8790M OpenGL core profile version string: 4.3.13374 Core Profile Context 15.20.1013 OpenGL core profile shading language version string: 4.40 I have attached a simplified java code based on VTKCanvas - In my experience this one segfaults always, both with mesa, and with Radeon drivers. I get the following line before vtk dies: ERROR: In /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, line 412 vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized. And this is the top of the stack reported by the dying Java VM R11=0x00007fcbd8a79840: in /usr/lib/fglrx/libGL.so.1 at 0x00007fcbd8a07000 Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], sp=0x00007fcbb95e1148, free space=1012k Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) j vtk.vtkRenderWindow.Render_9()V+0 j vtk.vtkRenderWindow.Render()V+1 j vtk.vtkPanel.Render()V+164 j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 [...] It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I could not reproduce it for 6.2.0, nor when using OpenGL backend. Do you know any reason why this could happen? I will be happy to provide more information and help to solve this. Cheers, Marcin _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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 marcin.krotkiewski at gmail.com Tue Sep 8 09:32:18 2015 From: marcin.krotkiewski at gmail.com (Marcin Krotkiewski) Date: Tue, 8 Sep 2015 15:32:18 +0200 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <8235b87906c3f45aca23856ba5665409@mail.gmail.com> References: <55EB4345.2070508@gmail.com> <55EDC0DA.6030104@gmx.de> <8235b87906c3f45aca23856ba5665409@mail.gmail.com> Message-ID: <55EEE362.4010800@gmail.com> Hi, Ken, I have found two issues here. First, I think the vtk.sample.VTKCanvas example (on which I based my simplified code) might be wrong because it does not call frame.setVisible in EDT. From what I have seen in other examples frame.setVisible should be called from InvokeLater. Note that there are other places in Java examples where JFrame.setVisible is called _NOT_ from within InvokeLater. If this is an error, it might be a good idea to fix this.. At least for me changing this partly fixed the problem, i.e., the error was more difficult for me to get in the example, but not in my real code, where frame.setVisible is called from EDT (I am _almost_ certain of this, as I call Java indirectly from MATLAB, and I do use MATLABs EDT framework). Hunting the real problem, I have already mentioned that I got error from glewInit. Writing out the reason for the error gave me 'Missing GL version'. I am no expert in OpenGL, so I googled around and understood that this might mean that glewInit was called before OpenGL context was created. Due to this fact glew was not initialized and the code segfaulted on call to glBlendFuncSeparate in OpenGLInitState due to the address being NULL. This made me experiment with vtkOpenGLRenderWindow and vtkXOpenGLRenderWindow. I have found that from 6.2 you have changed the initialization in vtkXOpenGLRenderWindow::CreateAWindow. In particular, you have added the if statement after '// try for 32 context'. Being desperate I have commented out the entire if(this->internal->fbconfig) statement. This worked for me, i.e., I did not manage to get a glewInit error after the change. Neither in my code, nor in the VTKCanvas sample. I do not know exactly what this code does, but it might need a second look. From the observed behavior it was very much like a race condition: I was getting the glewInit 'Missing GL version' condition sometimes, but not always. Of course, this might mean that commenting out those lines does not fix anything, just hides the problem. Let me know if you need more information - I will gladly work towards fixing this. Marcin On 09/08/2015 02:47 PM, Ken Martin wrote: > > Can either of you verify that the VTK C++ tests work on the system? > E.g. ctest ?R Mace passes? Just trying to see if this is a general > system/VM issue or tied specifically to Java/OpenGL2 interactions. > > Thanks > > Ken > > Ken Martin PhD > > Chairman & CFO > > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > ken.martin at kitware.com > > 919 869-8871 (w) > > 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. > > *From:*vtkusers [mailto:vtkusers-bounces at vtk.org > ] *On Behalf Of *Jens Schmidt > *Sent:* Monday, September 7, 2015 12:53 PM > *To:* marcin.krotkiewski; VTK Users > *Subject:* Re: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 > > To chime in, the jvm (1.8.60) crashes on debian jessie (virtualbox) > when using the opengl2 rendering backend (vtk 6.3.0rc1 and rc2) and > the swtComponent. The old OpenGL works fine. > When not using virtualbox's 3d accelleration the window wont even > open. When activating the 3d accelleration you get a window but as > soon as you add some actors and call update it crashes (some of the time). > Also the jvm crashes when running everything on "real" hardware (Intel > HD Graphics 4600) instead of a virtual machine. > Unfortunately i cannot access the logs right now (vacation) if this > still is an issue after, i happily provide any logs you desire :-) > Just wanted to let you know, keep up the good work! > > > i also have segfaults with the opengl2 backend on linux (debian > jessie) running on virtualbox. > > Am 05.09.2015 um 21:32 schrieb marcin.krotkiewski: > > I keep getting segfaults when using vtk.sample.VTKCanvas with > OpenGL2 backend in 6.3.0.rc2. This does not happen with 6.2.0 + > OpenGL2, nor with the standard OpenGL backend. I use ubuntu 14.04 > and compile with gcc 4.9.2 and jdk1.8.0_60. > > On my laptop, the segfaults are 100 reproducible with mesa library > - some lines from glxinfo: > > > OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile > OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 > OpenGL core profile shading language version string: 3.30 > > > When I use the high performance card (fglrx drivers, Radeon HD > 8790M) the segfaults sometimes happen, sometimes not. Lines from > glxinfo: > > > OpenGL vendor string: Advanced Micro Devices, Inc. > OpenGL renderer string: AMD Radeon HD 8790M > OpenGL core profile version string: 4.3.13374 Core Profile Context > 15.20.1013 > OpenGL core profile shading language version string: 4.40 > > > I have attached a simplified java code based on VTKCanvas - In my > experience this one segfaults always, both with mesa, and with > Radeon drivers. I get the following line before vtk dies: > > > ERROR: In > /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 412 > vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be > initialized. > > > And this is the top of the stack reported by the dying Java VM > > > R11=0x00007fcbd8a79840: in > /usr/lib/fglrx/libGL.so.1 at 0x00007fcbd8a07000 > > Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], > sp=0x00007fcbb95e1148, free space=1012k > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j vtk.vtkRenderWindow.Render_9()V+0 > j vtk.vtkRenderWindow.Render()V+1 > j vtk.vtkPanel.Render()V+164 > j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 > > [...] > > > It seems that this is a problem specific to 6.3.0.rc2 with > OpenGL2. I could not reproduce it for 6.2.0, nor when using OpenGL > backend. Do you know any reason why this could happen? I will be > happy to provide more information and help to solve this. > > Cheers, > > Marcin > > > > > _______________________________________________ > > 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 marcus.hanwell at kitware.com Tue Sep 8 10:20:22 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 8 Sep 2015 10:20:22 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: It looks like there are quite a few build issues right now. On Tue, Sep 8, 2015 at 12:20 AM, David Gobbi wrote: > I've pushed a merge request: > > https://gitlab.kitware.com/vtk/vtk/merge_requests/634 > > On Mon, Sep 7, 2015 at 5:52 PM, Berk Geveci wrote: >> >> +1 >> >> On Mon, Sep 7, 2015 at 11:52 AM, Marcus D. Hanwell >> wrote: >>> >>> >>> Not sure how others feel, and it should likely be more than just me, >>> but +1 from me. From marcus.hanwell at kitware.com Tue Sep 8 10:21:01 2015 From: marcus.hanwell at kitware.com (Marcus D. Hanwell) Date: Tue, 8 Sep 2015 10:21:01 -0400 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: Sorry, need more coffee...clicked on the wrong link! Looks great when clicking on the later link ;-) On Tue, Sep 8, 2015 at 10:20 AM, Marcus D. Hanwell wrote: > It looks like there are quite a few build issues right now. > > On Tue, Sep 8, 2015 at 12:20 AM, David Gobbi wrote: >> I've pushed a merge request: >> >> https://gitlab.kitware.com/vtk/vtk/merge_requests/634 >> >> On Mon, Sep 7, 2015 at 5:52 PM, Berk Geveci wrote: >>> >>> +1 >>> >>> On Mon, Sep 7, 2015 at 11:52 AM, Marcus D. Hanwell >>> wrote: >>>> >>>> >>>> Not sure how others feel, and it should likely be more than just me, >>>> but +1 from me. From david.gobbi at gmail.com Tue Sep 8 10:30:14 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 8 Sep 2015 08:30:14 -0600 Subject: [vtkusers] vtkMolecule and vtkAtom In-Reply-To: References: <0EB9B6375711A04B820E6B6F5CCA9F6841F4D406@MBX211.d.ethz.ch> <0EB9B6375711A04B820E6B6F5CCA9F6841F4DFB4@MBX211.d.ethz.ch> Message-ID: It's causing some build problems in ParaView, though. So far it looks like minor stuff, but I'll be taking a deeper look tonight. - David On Tue, Sep 8, 2015 at 8:21 AM, Marcus D. Hanwell < marcus.hanwell at kitware.com> wrote: > Sorry, need more coffee...clicked on the wrong link! Looks great when > clicking on the later link ;-) > > On Tue, Sep 8, 2015 at 10:20 AM, Marcus D. Hanwell > wrote: > > It looks like there are quite a few build issues right now. > > > > On Tue, Sep 8, 2015 at 12:20 AM, David Gobbi > wrote: > >> I've pushed a merge request: > >> > >> https://gitlab.kitware.com/vtk/vtk/merge_requests/634 > >> > >> On Mon, Sep 7, 2015 at 5:52 PM, Berk Geveci > wrote: > >>> > >>> +1 > >>> > >>> On Mon, Sep 7, 2015 at 11:52 AM, Marcus D. Hanwell > >>> wrote: > >>>> > >>>> > >>>> Not sure how others feel, and it should likely be more than just me, > >>>> but +1 from me. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From shawn.waldon at kitware.com Tue Sep 8 11:26:01 2015 From: shawn.waldon at kitware.com (Shawn Waldon) Date: Tue, 8 Sep 2015 11:26:01 -0400 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <55EEE362.4010800@gmail.com> References: <55EB4345.2070508@gmail.com> <55EDC0DA.6030104@gmx.de> <8235b87906c3f45aca23856ba5665409@mail.gmail.com> <55EEE362.4010800@gmail.com> Message-ID: Hi all, Just my 2 cents: the OpenGL2 backend not working in virtualbox is a known issue (at least to the build machine folks here at Kitware). VirtualBox doesn't support OpenGL 2 (or 3.2, not sure) in it's drivers so you while you can build the OpenGL2 backend, you can't test it. If you are using Mesa, be aware that while working on the OpenGL2 backend, Ken found and reported a bug in Mesa. It was fixed by the Mesa developers, but you will need a very recent (since April or May) version of Mesa for everything to work correctly. HTH, Shawn On Tue, Sep 8, 2015 at 9:32 AM, Marcin Krotkiewski < marcin.krotkiewski at gmail.com> wrote: > Hi, Ken, > > I have found two issues here. First, I think the vtk.sample.VTKCanvas > example (on which I based my simplified code) might be wrong because it > does not call frame.setVisible in EDT. From what I have seen in other > examples frame.setVisible should be called from InvokeLater. Note that > there are other places in Java examples where JFrame.setVisible is called > _NOT_ from within InvokeLater. If this is an error, it might be a good idea > to fix this.. At least for me changing this partly fixed the problem, i.e., > the error was more difficult for me to get in the example, but not in my > real code, where frame.setVisible is called from EDT (I am _almost_ > certain of this, as I call Java indirectly from MATLAB, and I do use > MATLABs EDT framework). > > Hunting the real problem, I have already mentioned that I got error from > glewInit. Writing out the reason for the error gave me 'Missing GL > version'. I am no expert in OpenGL, so I googled around and understood that > this might mean that glewInit was called before OpenGL context was created. > Due to this fact glew was not initialized and the code segfaulted on call > to glBlendFuncSeparate in OpenGLInitState due to the address being NULL. > > This made me experiment with vtkOpenGLRenderWindow and > vtkXOpenGLRenderWindow. I have found that from 6.2 you have changed the > initialization in vtkXOpenGLRenderWindow::CreateAWindow. In particular, you > have added the if statement after '// try for 32 context'. Being desperate > I have commented out the entire if(this->internal->fbconfig) statement. > This worked for me, i.e., I did not manage to get a glewInit error after > the change. Neither in my code, nor in the VTKCanvas sample. > > I do not know exactly what this code does, but it might need a second > look. From the observed behavior it was very much like a race condition: I > was getting the glewInit 'Missing GL version' condition sometimes, but not > always. Of course, this might mean that commenting out those lines does not > fix anything, just hides the problem. > > Let me know if you need more information - I will gladly work towards > fixing this. > > Marcin > > > > > On 09/08/2015 02:47 PM, Ken Martin wrote: > > Can either of you verify that the VTK C++ tests work on the system? E.g. > ctest ?R Mace passes? Just trying to see if this is a general system/VM > issue or tied specifically to Java/OpenGL2 interactions. > > > > Thanks > > Ken > > > > Ken Martin PhD > > Chairman & CFO > > Kitware Inc. > > 28 Corporate Drive > > Clifton Park NY 12065 > > ken.martin at kitware.com > > 919 869-8871 (w) > > > > > > 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. > > > > *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *Jens > Schmidt > *Sent:* Monday, September 7, 2015 12:53 PM > *To:* marcin.krotkiewski; VTK Users > *Subject:* Re: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 > > > > To chime in, the jvm (1.8.60) crashes on debian jessie (virtualbox) when > using the opengl2 rendering backend (vtk 6.3.0rc1 and rc2) and the > swtComponent. The old OpenGL works fine. > When not using virtualbox's 3d accelleration the window wont even open. > When activating the 3d accelleration you get a window but as soon as you > add some actors and call update it crashes (some of the time). > Also the jvm crashes when running everything on "real" hardware (Intel HD > Graphics 4600) instead of a virtual machine. > Unfortunately i cannot access the logs right now (vacation) if this still > is an issue after, i happily provide any logs you desire :-) > Just wanted to let you know, keep up the good work! > > > i also have segfaults with the opengl2 backend on linux (debian jessie) > running on virtualbox. > > Am 05.09.2015 um 21:32 schrieb marcin.krotkiewski: > > I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 > backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor with > the standard OpenGL backend. I use ubuntu 14.04 and compile with gcc 4.9.2 > and jdk1.8.0_60. > > On my laptop, the segfaults are 100 reproducible with mesa library - some > lines from glxinfo: > > > OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile > OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 > OpenGL core profile shading language version string: 3.30 > > > When I use the high performance card (fglrx drivers, Radeon HD 8790M) the > segfaults sometimes happen, sometimes not. Lines from glxinfo: > > > OpenGL vendor string: Advanced Micro Devices, Inc. > OpenGL renderer string: AMD Radeon HD 8790M > OpenGL core profile version string: 4.3.13374 Core Profile Context > 15.20.1013 > OpenGL core profile shading language version string: 4.40 > > > I have attached a simplified java code based on VTKCanvas - In my > experience this one segfaults always, both with mesa, and with Radeon > drivers. I get the following line before vtk dies: > > > ERROR: In > /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 412 > vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized. > > > And this is the top of the stack reported by the dying Java VM > > > R11=0x00007fcbd8a79840: in /usr/lib/fglrx/libGL.so.1 at > 0x00007fcbd8a07000 > > Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], sp=0x00007fcbb95e1148, > free space=1012k > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j vtk.vtkRenderWindow.Render_9()V+0 > j vtk.vtkRenderWindow.Render()V+1 > j vtk.vtkPanel.Render()V+164 > j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 > > [...] > > > It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I > could not reproduce it for 6.2.0, nor when using OpenGL backend. Do you > know any reason why this could happen? I will be happy to provide more > information and help to solve this. > > Cheers, > > Marcin > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > > > 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 dejan.zivkovic90 at gmail.com Tue Sep 8 11:56:56 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Tue, 8 Sep 2015 17:56:56 +0200 Subject: [vtkusers] 3D text Message-ID: Hi, Can someone advise me how can I make 3D text? I need a 3D text which stands in the scene origin on xy plane, and rotates around z axis. I found some examples with vtkLinearExtrusionFilter, but I can't use it. Is there any other way? Thanks in advance, Dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From daviddoria at gmail.com Tue Sep 8 12:01:10 2015 From: daviddoria at gmail.com (David Doria) Date: Tue, 8 Sep 2015 12:01:10 -0400 Subject: [vtkusers] 3D text In-Reply-To: References: Message-ID: On Tue, Sep 8, 2015 at 11:56 AM, Dejan Zivkovic wrote: > Hi, > > Can someone advise me how can I make 3D text? > I need a 3D text which stands in the scene origin on xy plane, > and rotates around z axis. > > I found some examples with vtkLinearExtrusionFilter, but > I can't use it. Is there any other way? > > Thanks in advance, > Dejan > Is this what you're looking for? http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/VectorText David -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Sep 8 16:03:04 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 8 Sep 2015 16:03:04 -0400 Subject: [vtkusers] ANNOUNCE: Kitware is hiring Message-ID: Hi folks, We are looking to hire visualization developers to our Scientific Computing team. If you are a talented visualization researcher and developer with strong C++ skills, please consider applying. You will join a great team and work on many interesting and challenging technical problems - always aiming to deliver robust and widely used software solutions. For the full posting see: http://tinyurl.com/l8sgvzw JOB DESCRIPTION Kitware is seeking to hire highly skilled Research and Development Engineers (R&D Engineers) to join our Scientific Computing team and contribute to our scientific and information visualization efforts. Candidates will work to develop and improve leading visualization software solutions. Kitware collaborates on a multitude of basic and applied research and development projects. Our collaborators include the top universities from around the world, national research labs, medical device manufacturers, car manufacturers, oil and gas companies, financial institutes, and many others. The projects range from extending our open source C++ libraries and applications, such as VTK, ParaView, and CMake, to developing proprietary domain-specific vertical applications for a wide array of platforms including web and mobile devices. By joining our team you will participate in a dynamic work environment with exceptionally talented and friendly coworkers who are committed to high-quality development practices. You will collaborate with esteemed researchers from around the world by: * Designing and developing scalable data analysis and visualization tools for use by researchers and professionals from various domains; * Solving a wide array of problems ranging from developing distributed memory parallel algorithms for data analysis, optimizing distributed parallel codes to compiling and maintaining software on supercomputers. * Designing and developing tools to improve scientific data analysis workflows; * Contributing to and supporting our dynamic open source communities built around several of our open source tools. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gram526 at aucklanduni.ac.nz Tue Sep 8 22:03:49 2015 From: gram526 at aucklanduni.ac.nz (Girish Ramlugun) Date: Wed, 9 Sep 2015 14:03:49 +1200 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <55EB4345.2070508@gmail.com> References: <55EB4345.2070508@gmail.com> Message-ID: Hi all Just FYI, this seems to have 'solved' my issue too. I am using fglrx drivers on Ubuntu (12.04) for volume rendering. Regards Girish On 6 September 2015 at 07:32, marcin.krotkiewski < marcin.krotkiewski at gmail.com> wrote: > I keep getting segfaults when using vtk.sample.VTKCanvas with OpenGL2 > backend in 6.3.0.rc2. This does not happen with 6.2.0 + OpenGL2, nor with > the standard OpenGL backend. I use ubuntu 14.04 and compile with gcc 4.9.2 > and jdk1.8.0_60. > > On my laptop, the segfaults are 100 reproducible with mesa library - some > lines from glxinfo: > > > OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile > OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 > OpenGL core profile shading language version string: 3.30 > > > When I use the high performance card (fglrx drivers, Radeon HD 8790M) the > segfaults sometimes happen, sometimes not. Lines from glxinfo: > > > OpenGL vendor string: Advanced Micro Devices, Inc. > OpenGL renderer string: AMD Radeon HD 8790M > OpenGL core profile version string: 4.3.13374 Core Profile Context > 15.20.1013 > OpenGL core profile shading language version string: 4.40 > > > I have attached a simplified java code based on VTKCanvas - In my > experience this one segfaults always, both with mesa, and with Radeon > drivers. I get the following line before vtk dies: > > > ERROR: In > /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, > line 412 > vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be initialized. > > > And this is the top of the stack reported by the dying Java VM > > > R11=0x00007fcbd8a79840: in /usr/lib/fglrx/libGL.so.1 at > 0x00007fcbd8a07000 > > Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], sp=0x00007fcbb95e1148, > free space=1012k > Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) > j vtk.vtkRenderWindow.Render_9()V+0 > j vtk.vtkRenderWindow.Render()V+1 > j vtk.vtkPanel.Render()V+164 > j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 > > [...] > > > It seems that this is a problem specific to 6.3.0.rc2 with OpenGL2. I > could not reproduce it for 6.2.0, nor when using OpenGL backend. Do you > know any reason why this could happen? I will be happy to provide more > information and help to solve this. > > Cheers, > > Marcin > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 lilymagic2005 at yahoo.com.hk Wed Sep 9 03:55:50 2015 From: lilymagic2005 at yahoo.com.hk (momo) Date: Wed, 9 Sep 2015 00:55:50 -0700 (MST) Subject: [vtkusers] Merge two layers of .stl file (Filling the space between them) Message-ID: <1441785350525-5733782.post@n5.nabble.com> I now have a .stl file, and I extract it with its normals by using vtkPolyDataNormals. Then it becomes input of vtkWarpScalar, in order to obtain its offset layer. So now I have two layers (see the capture below). (And I later append the two layers and clean it.) I would like to merge/link/connect the two layers, so the space between them is filled, and I can print the .stl file with 3D Printer. Is there any VTK functions that can help? Thanks. My code here: Warp.cxx -- View this message in context: http://vtk.1045678.n5.nabble.com/Merge-two-layers-of-stl-file-Filling-the-space-between-them-tp5733782.html Sent from the VTK - Users mailing list archive at Nabble.com. From langerts at iis.fraunhofer.de Wed Sep 9 05:29:21 2015 From: langerts at iis.fraunhofer.de (Tobias Langer) Date: Wed, 9 Sep 2015 11:29:21 +0200 Subject: [vtkusers] Linking Problems with VTK 6.3 and Qt 5.5 Message-ID: <55EFFBF1.305@iis.fraunhofer.de> Hi, I'm currently trying to get VTK 6.3 from git and Qt 5.5 working under Windows 7 64 Bit. However I got stuck in the build process, more presicely when linking the vtkGUISupportQt and the QVTKWidgetPlugin projects. The linker complains about unresolved external symbols for methods of QString, QImage and QItemSelection. My setup is: - Microsoft Visual Studio 2015 (using the VTK sources from git, I can compile VTK without errors for snprintf being redefined) - Qt 5.5 - CMake 3.2.3 I configure the project with cmake-gui: - VTK_Group_Qt = true - Qt5-DIR = C:/Qt/Qt5.5.0/5.5/msvc2013_64/lib/cmake/Qt5 - Qt5Xml-DIR = C:/Qt/Qt5.5.0/5.5/msvc2013_64/lib/cmake/Qt5Xml - ... (The same as above for the other modules) - QT_QMAKE_EXECUTABLE = C:/Qt/Qt5.5.0/5.5/msvc2013_64/bin/qmake.exe These paths should be correct and as far as I have tested other (own) Qt applications, my Qt installation should work as well. Do I have problems in my cmake settings / paths or is there no support for Qt5.5 yet? -- Tobias Langer From royalmatador at gmail.com Wed Sep 9 06:27:44 2015 From: royalmatador at gmail.com (AIs) Date: Wed, 9 Sep 2015 03:27:44 -0700 (MST) Subject: [vtkusers] mapping a 3D polydata model to a sphere Message-ID: <1441794464229-5733784.post@n5.nabble.com> Hi Everyone, I have a 3D polydata model which I would like to map to a 3D sphere. Does anyone know how I can achieve this? Cheers AIs -- View this message in context: http://vtk.1045678.n5.nabble.com/mapping-a-3D-polydata-model-to-a-sphere-tp5733784.html Sent from the VTK - Users mailing list archive at Nabble.com. From robert.maynard at kitware.com Wed Sep 9 09:04:49 2015 From: robert.maynard at kitware.com (Robert Maynard) Date: Wed, 9 Sep 2015 09:04:49 -0400 Subject: [vtkusers] Linking Problems with VTK 6.3 and Qt 5.5 In-Reply-To: <55EFFBF1.305@iis.fraunhofer.de> References: <55EFFBF1.305@iis.fraunhofer.de> Message-ID: Hi Tobias, You need to make sure that the Visual Studio version you use to compile VTK matches the one that Qt was built against. In this case you need to either build VTK with VS2013, or build Qt from source with VS2015. On Wed, Sep 9, 2015 at 5:29 AM, Tobias Langer wrote: > Hi, > > I'm currently trying to get VTK 6.3 from git and Qt 5.5 working under > Windows 7 64 Bit. > However I got stuck in the build process, more presicely when linking the > vtkGUISupportQt and the QVTKWidgetPlugin projects. > > The linker complains about unresolved external symbols for methods > of QString, QImage and QItemSelection. > > My setup is: > - Microsoft Visual Studio 2015 (using the VTK sources from git, I can > compile VTK without errors for snprintf being redefined) > - Qt 5.5 > - CMake 3.2.3 > > I configure the project with cmake-gui: > - VTK_Group_Qt = true > - Qt5-DIR = C:/Qt/Qt5.5.0/5.5/msvc2013_64/lib/cmake/Qt5 > - Qt5Xml-DIR = C:/Qt/Qt5.5.0/5.5/msvc2013_64/lib/cmake/Qt5Xml > - ... (The same as above for the other modules) > - QT_QMAKE_EXECUTABLE = C:/Qt/Qt5.5.0/5.5/msvc2013_64/bin/qmake.exe > > These paths should be correct and as far as I have tested other (own) Qt > applications, my Qt installation should work as well. > > Do I have problems in my cmake settings / paths or is there no support for > Qt5.5 yet? > > -- > Tobias Langer > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 MEEHANBT at nv.doe.gov Wed Sep 9 10:27:08 2015 From: MEEHANBT at nv.doe.gov (Meehan, Bernard) Date: Wed, 9 Sep 2015 14:27:08 +0000 Subject: [vtkusers] mapping a 3D polydata model to a sphere In-Reply-To: <201509091029.t89AT4JY025802-t89AT4JZ025802@mta-1.nv.doe.gov> References: <201509091029.t89AT4JY025802-t89AT4JZ025802@mta-1.nv.doe.gov> Message-ID: If you don?t mind only the points being moved, you could try something like this: #!/usr/bin/env python # This example creates a simple stereographic projection of a portion of a # sphere. I have taken a lot of the code from the "ExpCos.py" demo program on # the GitHub site: # https://github.com/Kitware/VTK/blob/master/Examples/Modelling/Python/expCos .py import sys, vtk from math import * #-------------------------------------------------------------------------- ----# # set up a plane in the center of the view area # #-------------------------------------------------------------------------- ----# plane = vtk.vtkPlaneSource() plane.SetXResolution(20) plane.SetYResolution(20) plane.SetCenter(0., -0.5, 0.) transform = vtk.vtkTransform() transform.Scale(pi, pi, 1) scale_transform = vtk.vtkTransformPolyDataFilter() scale_transform.SetInputConnection(plane.GetOutputPort()) scale_transform.SetTransform(transform) scale_transform.Update() # Perform the stereographic projection directly on the points in the plane # above. This assumes that the x coordinate is the azimuthal angle, and is in # the range (-pi, pi), and that the y coordinate is the altitude angle, in the # range (-pi/2, pi/2). input_pd = scale_transform.GetOutputDataObject(0) stereo_pd = vtk.vtkPolyData() stereo_pd.CopyStructure(input_pd) new_points = vtk.vtkPoints() for i in range(input_pd.GetNumberOfPoints()): location = input_pd.GetPoint(i) phi, theta = location[:2] x = sin(phi)*sin(theta)/(1 - cos(phi)*sin(theta)) y = cos(theta)/(1 - cos(phi)*sin(theta)) new_points.InsertPoint(i, x, y, 0.) stereo_pd.SetPoints(new_points) stereo_edges = vtk.vtkExtractEdges() stereo_edges.SetInputData(stereo_pd) stereo_edge_mapper = vtk.vtkPolyDataMapper() stereo_edge_mapper.SetInputConnection(stereo_edges.GetOutputPort()) stereo_map_mapper = vtk.vtkPolyDataMapper() stereo_map_mapper.SetInputData(stereo_pd) stereo_map_actor = vtk.vtkActor() stereo_map_actor.SetMapper(stereo_map_mapper) stereo_map_actor.GetProperty().SetColor(0.9020, 0.6627, 1.0000) stereo_map_actor.GetProperty().SetOpacity(0.4) stereo_edge_actor = vtk.vtkActor() stereo_edge_actor.SetMapper(stereo_edge_mapper) stereo_edge_actor.GetProperty().SetColor(0.1882, 0.1294, 1.0000) #-------------------------------------------------------------------------- ----# # rendering stuff # #-------------------------------------------------------------------------- ----# ren = vtk.vtkRenderer() ren.AddActor(stereo_map_actor) ren.AddActor(stereo_edge_actor) renWin = vtk.vtkRenderWindow() renWin.AddRenderer(ren) renWin.SetSize(500, 500) iren = vtk.vtkRenderWindowInteractor() iren.SetRenderWindow(renWin) ren.ResetCamera() iren.Initialize() renWin.Render() iren.Start() On 9/9/15, 3:27 AM, "vtkusers on behalf of AIs" wrote: >Hi Everyone, >I have a 3D polydata model which I would like to map to a 3D sphere. >Does anyone know how I can achieve this? >Cheers >AIs > > > >-- >View this message in context: >http://vtk.1045678.n5.nabble.com/mapping-a-3D-polydata-model-to-a-sphere-t >p5733784.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 agatakrason at gmail.com Wed Sep 9 15:38:05 2015 From: agatakrason at gmail.com (agatte) Date: Wed, 9 Sep 2015 12:38:05 -0700 (MST) Subject: [vtkusers] question ? [mesh quality] Message-ID: <1441827485197-5733804.post@n5.nabble.com> Hi, I have a problem with generating bone mesh. I received mesh like that You can see on the image. Could anyone help me what can I improve this mesh ? Any filter in vtk ? I would appreciate for any help please. agatte -- View this message in context: http://vtk.1045678.n5.nabble.com/question-mesh-quality-tp5733804.html Sent from the VTK - Users mailing list archive at Nabble.com. From jd379252 at gmail.com Wed Sep 9 18:53:39 2015 From: jd379252 at gmail.com (pof) Date: Thu, 10 Sep 2015 00:53:39 +0200 Subject: [vtkusers] Problem using vtkXYActor in vtk6.2.0 (and vtk6.3.0rc2) Message-ID: <55F0B873.3060802@gmail.com> Hi all, I have got an application that is currently linked against vtk6.1.0 (compiled on VC++2010, win64). One of its windows uses vtkXYChart to display 2D graphs, and it works just perfectly with vtk6.1.0. Here is the code relevant portion: ... //////////////////////////////////////////////////// // Create the Chart and all its related objects //////////////////////////////////////////////////// vtkChartXY *chart = vtkChartXY::New(); vtkContextScene *chartScene = vtkContextScene::New(); vtkContextActor *chartActor = vtkContextActor::New(); chartScene->AddItem(chart); chartActor->SetScene(chartScene); Renderer->AddActor(chartActor); // BUG is induced by this line chartScene->SetRenderer(Renderer); // Create a table for the displayed variables vtkTable *table = vtkTable::New(); // Fill the table ... ... // Add the plot vtkPlot *line = chart->AddPlot(vtkChart::LINE); #if VTK_MAJOR_VERSION <= 5 line->SetInput(table, 0, 1); #else line->SetInputData(table, 0, 1); #endif ... Now I am trying to upgrade to vtk6.2.0. It compiles and links fine. However, the vtkXYActor is no longer displayed, the line causing the trouble is this one: Renderer->AddActor(chartActor); // BUG is induced by this line Running in debug, and exiting the program after this line returns the following message: First chance exception at 0x000007fef5340cfc (vtkRenderingContext2D-6.2.dll) in myapp.exe : 0xC0000005: Access violation reading location 0x0000000000000000. So my question is simple, though the answer might not be: Were there any changes between vtk6.1 and vtk6.2 related to vtkXYActor that could explain such behaviour? Any ideas or advices are welcome. Thanks Pof From siavashk at ece.ubc.ca Wed Sep 9 19:02:01 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Wed, 9 Sep 2015 16:02:01 -0700 (MST) Subject: [vtkusers] Problem using vtkXYActor in vtk6.2.0 (and vtk6.3.0rc2) In-Reply-To: <55F0B873.3060802@gmail.com> References: <55F0B873.3060802@gmail.com> Message-ID: <1441839721231-5733816.post@n5.nabble.com> This does not seem related to the upgrade. It seems either chartActor or Renderer are null. Are you initializing them properly? Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/Problem-using-vtkXYActor-in-vtk6-2-0-and-vtk6-3-0rc2-tp5733815p5733816.html Sent from the VTK - Users mailing list archive at Nabble.com. From audrius at tomographix.com Thu Sep 10 02:42:23 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Thu, 10 Sep 2015 02:42:23 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? Message-ID: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> Hello, OS: Windows 10 x64 CMAKE: 3.3.0 IDE: VS MS2015 x64 VTK: 6.3.0 VTK BUILD: Debug x64 VTK built in Debug and installed okay. Thank you. Attempting to switch to OpenGL2. In CMAKE, the relevant switches set BUILD BUILD_SHARED_LIBS [On] MODULE Module_vtkRenderingContextOpenGL2 [On] Module_vtkRenderingOpenGL2 [On] Module_vtkRenderingVolumeOpenGL2 [On] Module_vtkglew [On] VTK VTK_LEGACY_REMOVE [On] VTK_LEGACY_SILENT [On] VTK_RENDERING_BACKEND OpenGL2 [CMake cache cleared before running Configure with OpenGL2 switches set] Including shared vtk libs in a project. Build progresses fine [as before] until the last linking libraries stage 1> Finished searching libraries 1>stdafx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiato- r::vtkRenderingOpenGL2Instantiator(void)" (__imp_??0vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in function "void __cdecl `dynamic initializer for 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" (??__EvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) 1>stdafx.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instantiato- r::~vtkRenderingOpenGL2Instantiator(void)" (__imp_??1vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in function "void __cdecl `dynamic atexit destructor for 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" (??__FvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) Have included all created vtk libs and dlls in the project, so puzzled as to why these external vtk symbols have not been resolved. Google and vtk user mailing list did unfortunately not provide insight. Please advise. Regards. -------------- next part -------------- An HTML attachment was scrubbed... URL: From lilymagic2005 at yahoo.com.hk Thu Sep 10 05:38:50 2015 From: lilymagic2005 at yahoo.com.hk (momo) Date: Thu, 10 Sep 2015 02:38:50 -0700 (MST) Subject: [vtkusers] Cap Clip Surface Message-ID: <1441877930901-5733821.post@n5.nabble.com> I have a surface like the left in the picture belows. I applied Cap Clip on the surface, and I append the original surface and the caps, then output to a .stl file. It looks well in the render window in VTK. However, when I used Paraview to view the output file, it looks the same as the original surface. The left of the picture shows the actual result of the output file after appending in Paraview. So what happened actually?Thanks. CapClip.cxx -- View this message in context: http://vtk.1045678.n5.nabble.com/Cap-Clip-Surface-tp5733821.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Thu Sep 10 08:23:48 2015 From: DLRdave at aol.com (David Cole) Date: Thu, 10 Sep 2015 08:23:48 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> Message-ID: Are you using CMake to build your app as well? If not, are you defining the autoinit macros before including VTK header files, as discussed here? http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines HTH, David C. On Thursday, September 10, 2015, Audrius Stundzia wrote: > Hello, > > OS: Windows 10 x64 > CMAKE: 3.3.0 > IDE: VS MS2015 x64 > VTK: 6.3.0 > VTK BUILD: Debug x64 > > VTK built in Debug and installed okay. Thank you. > > Attempting to switch to OpenGL2. > > In CMAKE, the relevant switches set > > BUILD > > BUILD_SHARED_LIBS [On] > > MODULE > > Module_vtkRenderingContextOpenGL2 [On] > > Module_vtkRenderingOpenGL2 [On] > > Module_vtkRenderingVolumeOpenGL2 [On] > > Module_vtkglew [On] > > VTK > > VTK_LEGACY_REMOVE [On] > > VTK_LEGACY_SILENT [On] > > VTK_RENDERING_BACKEND OpenGL2 > > [CMake cache cleared before running Configure with OpenGL2 switches set] > > Including shared vtk libs in a project. > Build progresses fine [as before] until the last linking libraries stage > > 1> Finished searching libraries > 1>stdafx.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __cdecl > vtkRenderingOpenGL2Instantiator::vtkRenderingOpenGL2Instantiator(void)" > (__imp_??0vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in > function "void __cdecl `dynamic initializer for > 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" > (??__EvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) > > 1>stdafx.obj : error LNK2019: unresolved external symbol > "__declspec(dllimport) public: __cdecl > vtkRenderingOpenGL2Instantiator::~vtkRenderingOpenGL2Instantiator(void)" > (__imp_??1vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in > function "void __cdecl `dynamic atexit destructor for > 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" > (??__FvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) > > Have included all created vtk libs and dlls in the project, so puzzled as > to why these external vtk symbols have not been resolved. > > Google and vtk user mailing list did unfortunately not provide insight. > > Please advise. > > Regards. > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From giumas at yahoo.it Thu Sep 10 08:36:59 2015 From: giumas at yahoo.it (gmas) Date: Thu, 10 Sep 2015 05:36:59 -0700 (MST) Subject: [vtkusers] Rendering large 2d numpy array as DEM with several level of details In-Reply-To: <1441514439373-5733747.post@n5.nabble.com> References: <1441514439373-5733747.post@n5.nabble.com> Message-ID: <1441888619651-5733823.post@n5.nabble.com> The example code can be in whatever language.. my task is to add LODs to a large vtkImageData. Many thanks to whoever will give me a hint or a link! -- View this message in context: http://vtk.1045678.n5.nabble.com/Rendering-large-2d-numpy-array-as-DEM-with-several-level-of-details-tp5733747p5733823.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Sep 10 08:43:56 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Sep 2015 06:43:56 -0600 Subject: [vtkusers] Cap Clip Surface In-Reply-To: <1441877930901-5733821.post@n5.nabble.com> References: <1441877930901-5733821.post@n5.nabble.com> Message-ID: The problem is that the VTK rendering pipeline expects polydata to contain only convex polygons, but following code can create a non-convex polygon: // Change the polylines into polygons vtkSmartPointer boundaryPoly = vtkSmartPointer::New(); boundaryPoly->SetPoints(boundaryStrips->GetOutput()->GetPoints()); boundaryPoly->SetPolys(boundaryStrips->GetOutput()->GetLines()); The vtkContourTriangulator filter (which I contributed to VTK) can fix this: // Triangulate the polyline contour vtkSmartPointer triangulator = vtkSmartPointer::New(); triangulator->SetInputConnection(boundaryStrips->GetOutputPort()); triangulator->Update(); // use the triangulator output as the cap Please let me know if this works for you. Cheers, - David On Thu, Sep 10, 2015 at 3:38 AM, momo wrote: > I have a surface like the left in the picture belows. I applied Cap Clip on > the surface, and I append the original surface and the caps, then output to > a .stl file. It looks well in the render window in VTK. However, when I > used > Paraview to view the output file, it looks the same as the original > surface. > The left of the picture shows the actual result of the output file after > appending in Paraview. So what happened actually?Thanks. > > > CapClip.cxx > -------------- next part -------------- An HTML attachment was scrubbed... URL: From audrius at tomographix.com Thu Sep 10 12:19:21 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Thu, 10 Sep 2015 12:19:21 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> Message-ID: <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> Hello, > Are you using CMake to build your app as well? ? No, I am not. Building the VTK project, including header files, and linking the shared libs should be sufficient, should it not, as is the case with any other 3rd party library. I don't think that I should have to learn how to write CMake just to use, as opposed to develop, VTK, as VTK one of many 3rd party library tools that we use. > > If not, are you defining the autoinit macros before including VTK > header files, as discussed here? > http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines Thank you for the link. Yes, that was the bit of info that I did manage to find. I have the following #include VTK_MODULE_INIT(vtkRenderingOpenGL2); VTK_MODULE_INIT(vtkInteractionStyle); in stdafx.h which generated the two link errors listed below. Adding VTK_MODULE_INIT(vtkRenderingFreeType); VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL2); VTK_MODULE_INIT(vtkRenderingVolumeOpenGL2); only generates new link error messages of the type 1>stdafx.obj : error LNK2019: unresolved external symbol "void __cdecl vtkRenderingFreeTypeOpenGL2_AutoInit_Construct(void)" (?vtkRenderingFreeTypeOpenGL2_AutoInit_Construct@@YAXXZ) referenced in function "public: __cdecl vtkRenderingFreeTypeOpenGL2_ModuleInit::vtk- RenderingFreeTypeOpenGL2_ModuleInit(void)" (??0vtkRenderingFreeTypeOpenGL2_ModuleInit@@QEAA at XZ) There is also the CMake switch VTK VTK_MAKE_INSTANTIATORS [On or Off] However, turning this on or off does not change the linking problem. Regarding the last comment by the author of the Wiki note, I am linking to all libs generated by VTK, with as many as possible to be removed later, yet still receiving this error message. If there additional unique vtk-specific code that one needs to add, above and beyond the standard C++ setup, in order to use vtk, I think that it is reasonable that these steps be documented. Thank you. > > > HTH, David C. > >> >> >> >> On Thu, Sep 10, 2015, at 02:42, Audrius Stundzia wrote: Hello, >> >> OS: Windows 10 x64 CMAKE: 3.3.0 IDE: VS MS2015 x64 VTK: 6.3.0 VTK >> BUILD: Debug x64 >> >> VTK built in Debug and installed okay. Thank you. >> >> Attempting to switch to OpenGL2. >> >> In CMAKE, the relevant switches set >> >> BUILD >> >> BUILD_SHARED_LIBS [On] >> >> MODULE >> >> Module_vtkRenderingContextOpenGL2 [On] >> >> Module_vtkRenderingOpenGL2 [On] >> >> Module_vtkRenderingVolumeOpenGL2 [On] >> >> Module_vtkglew [On] >> >> VTK >> >> VTK_LEGACY_REMOVE [On] >> >> VTK_LEGACY_SILENT [On] >> >> VTK_RENDERING_BACKEND OpenGL2 >> >> [CMake cache cleared before running Configure with OpenGL2 >> switches set] >> >> Including shared vtk libs in a project. Build progresses fine [as >> before] until the last linking libraries stage >> >> 1> Finished searching libraries >> 1>stdafx.obj : error LNK2019: unresolved external symbol >> "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instanti- >> ator::vtkRenderingOpenGL2Instantiator(void)" >> (__imp_??0vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in >> function "void __cdecl `dynamic initializer for >> 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" >> (??__EvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) >> >> 1>stdafx.obj : error LNK2019: unresolved external symbol >> "__declspec(dllimport) public: __cdecl vtkRenderingOpenGL2Instanti- >> ator::~vtkRenderingOpenGL2Instantiator(void)" >> (__imp_??1vtkRenderingOpenGL2Instantiator@@QEAA at XZ) referenced in >> function "void __cdecl `dynamic atexit destructor for >> 'vtkRenderingOpenGL2InstantiatorInitializer''(void)" >> (??__FvtkRenderingOpenGL2InstantiatorInitializer@@YAXXZ) >> >> Have included all created vtk libs and dlls in the project, so >> puzzled as to why these external vtk symbols have not been resolved. >> >> Google and vtk user mailing list did unfortunately not provide >> insight. >> >> Please advise. >> >> Regards. >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From jvimort at umich.edu Thu Sep 10 13:57:40 2015 From: jvimort at umich.edu (Jean-Baptiste Vimort) Date: Thu, 10 Sep 2015 13:57:40 -0400 Subject: [vtkusers] Problem using vtkIterativeClosestPointTransform Message-ID: Hi everyone, I'm working on a module for Slicer, and I have some difficulties with vtkIterativeClosestPointTransform: When I run my code I haven't got any errors but in some cases, that I can't really identify, my output transform matrix is only filled with "nan". I was wondering if someone know how work the algorithm of this transform? And if it exist some conditions needed on the inputs polydata to avoid those "nan" in the output transform matrix? Any help will be greatly appreciated! Thank you in advance, Jean-Baptiste -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Sep 10 14:09:50 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 10 Sep 2015 14:09:50 -0400 Subject: [vtkusers] VTK 6.3.0 Message-ID: VTK 6.3 is ready. Release notes are at: http://www.kitware.com/blog/home/post/963 Thank you everyone who contributed their time to VTK! David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 -------------- next part -------------- An HTML attachment was scrubbed... URL: From siavashk at ece.ubc.ca Thu Sep 10 18:57:42 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Thu, 10 Sep 2015 15:57:42 -0700 (MST) Subject: [vtkusers] VTK 6.3.0 In-Reply-To: References: Message-ID: <1441925862703-5733850.post@n5.nabble.com> Hi David, I am coming from an image registration background and my question is most likely trivial to you and most people in the graphics community. Given that OpenGL2 was released in 2004 , I am wondering why migrating to it is difficult? Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-3-0-tp5733847p5733850.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Thu Sep 10 19:16:27 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 10 Sep 2015 17:16:27 -0600 Subject: [vtkusers] VTK 6.3.0 In-Reply-To: <1441925862703-5733850.post@n5.nabble.com> References: <1441925862703-5733850.post@n5.nabble.com> Message-ID: Hi Siavash, I'm not the David who posted the announcement, but I can help to clarify. And I also have a background in image registration, so what the heck. 1) VTK has been using some parts of OpenGL 2 for a long, long time already. The big change is that VTK has now been completely converted to OpenGL2, so it is possible to build VTK with all OpenGL 1 code removed. 2) VTK had a lot of OpenGL 1 code. Tons of it. Converting that code to OpenGL 2 is a lot of work. It would have been a lot of work in 2005. It would have been a lot of work in 2010. Just because OpenGL 2 has existed for a long time, that doesn't mean that magic tools have appeared that automatically convert OpenGL 1 code to OpenGL 2 code. 3) In addition to converting all the OpenGL 1 code to OpenGL 2, many features were added to take advantage of OpenGL 2. 4) VTK didn't stop at OpenGL 2. The new backend simply requires OpenGL 2 as a minimum. It allows use of features and extensions from later version of OpenGL. 5) This change was overdue, for sure. So we have to thank Will Schroeder and Kitware for all the effort they put forth to get the NIH grant that allowed the work to be done. - David On Thu, Sep 10, 2015 at 4:57 PM, Siavash Khallaghi wrote: > Hi David, > > I am coming from an image registration background and my question is most > likely trivial to you and most people in the graphics community. Given that > OpenGL2 was released in 2004 > , I am wondering why > migrating to it is difficult? > > Siavash > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Sep 10 19:17:31 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 10 Sep 2015 19:17:31 -0400 Subject: [vtkusers] VTK 6.3.0 In-Reply-To: <1441925862703-5733850.post@n5.nabble.com> References: <1441925862703-5733850.post@n5.nabble.com> Message-ID: Hi Siavash, First when we say OpenGL2 we don't mean exactly OpenGL2.0. We really should have called the library OpenGLNew or maybe OpenGLAnythingButFixedFunctionPipeline. But you still have a valid point. Ken and others will hopefully clarify but I think mostly what made it difficult is the large body of code that VTK is (and probably because VTK had a leaky rendering abstraction layer after years of disuse). Sure just rendering a mesh in the old or new GL API is easy to do. Marcus's first prototype only took him a couple of days. Keep in mind though that we also have to support a number of stereo types, antialising options, interaction picking and selection, line integral convolution, sprite techniques, parallel compositing, multi pass rendering, on any number of platforms and in any number of different applications, etc. The crufty old rendering code and all its corner case treatments was also a factor. So basically I think it was the size of the library that made it kind of a bear and why it took us so long to take the plunge. thanks! David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Sep 10, 2015 at 6:57 PM, Siavash Khallaghi wrote: > Hi David, > > I am coming from an image registration background and my question is most > likely trivial to you and most people in the graphics community. Given that > OpenGL2 was released in 2004 > , I am wondering why > migrating to it is difficult? > > Siavash > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK-6-3-0-tp5733847p5733850.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 siavashk at ece.ubc.ca Thu Sep 10 19:27:47 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Thu, 10 Sep 2015 16:27:47 -0700 (MST) Subject: [vtkusers] VTK 6.3.0 In-Reply-To: References: <1441925862703-5733850.post@n5.nabble.com> Message-ID: <1441927667707-5733853.post@n5.nabble.com> Thanks to both Davids for the clarification. I am looking forward to the new release! Cheers, Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-3-0-tp5733847p5733853.html Sent from the VTK - Users mailing list archive at Nabble.com. From ken.martin at kitware.com Thu Sep 10 20:12:50 2015 From: ken.martin at kitware.com (Ken Martin) Date: Thu, 10 Sep 2015 20:12:50 -0400 Subject: [vtkusers] VTK 6.3.0 In-Reply-To: <1441927667707-5733853.post@n5.nabble.com> References: <1441925862703-5733850.post@n5.nabble.com> <1441927667707-5733853.post@n5.nabble.com> Message-ID: Adding a few more points. As David said OpenGL2 could have been named OpenGLNew, the 2 is really just there because we are implementing it without yet replacing the old OpenGL code. So we have two libraries so we needed a name that was different than just OpenGL so we called it OpenGL2 :-) In terms of what version of OpenGL we support it is mostly OpenGL version 3.2 which has the nice property that I believe it is mostly forward compatible with later versions of OpenGL including the latest releases. So I believe you could create an OpenGL 4.4 context and most if not all of the new rendering code would work in it which is nice for those who want to experiment with the latest OpenGL features. The difference between OpenGL 1.0 which VTK originally used and OpenGL 3.2 Core is significant given how much rendering code VTK has in it. Plus at the same time we made the new OpenGL code support OpenGL ES versions 2.0 and 3.0 which are used on Android and iOS devices and added in support for multitouch events etc. There is a lot in this upgrade :-) Hope that helps! Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Siavash Khallaghi Sent: Thursday, September 10, 2015 7:28 PM To: vtkusers at vtk.org Subject: Re: [vtkusers] VTK 6.3.0 Thanks to both Davids for the clarification. I am looking forward to the new release! Cheers, Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-6-3-0-tp5733847p5733853.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 pedropaulobmjr at hotmail.com Fri Sep 11 02:52:44 2015 From: pedropaulobmjr at hotmail.com (Pedro Paulo) Date: Fri, 11 Sep 2015 06:52:44 +0000 Subject: [vtkusers] Simple Viewer Dicom Message-ID: Hello, I am developing an application in python to view a dicom image and to change brightness and contrast, I could already make application to view, from this example (http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOM) I adapted to python, and when show the picture if I press the left button mouse and move it across the image it changes the brightness and contrast of it, and if I press the R key the pixels back the original settings. So my question is, how can I make these changes brightness, contrast and R button (to reset the values of the original pixels) in my code? I would not like to do algebraic operations on pixels of the dicom image, such as gamma correction for contrast, but I wanted functions that VTK probably already own, but searching I have not found. I thank the attention. The code in python that I adapted: import vtkimport sys def show_dicom_image(ndicom): reader = vtk.vtkDICOMImageReader() reader.SetFileName(ndicom) reader.Update() # Visualize imageViewer = vtk.vtkImageViewer() imageViewer.SetInputConnection(reader.GetOutputPort()) renderWindowInteractor = vtk.vtkRenderWindowInteractor() imageViewer.SetupInteractor(renderWindowInteractor) imageViewer.Render() imageViewer.GetRenderer().ResetCamera() imageViewer.Render() renderWindowInteractor.Start() show_dicom_image(sys.argv[1]) -------------- next part -------------- An HTML attachment was scrubbed... URL: From langerts at iis.fraunhofer.de Fri Sep 11 06:34:21 2015 From: langerts at iis.fraunhofer.de (Tobias Langer) Date: Fri, 11 Sep 2015 12:34:21 +0200 Subject: [vtkusers] Linking Problems with VTK 6.3 and Qt 5.5 In-Reply-To: References: <55EFFBF1.305@iis.fraunhofer.de> Message-ID: <55F2AE2D.2070605@iis.fraunhofer.de> Hi Robert, > You need to make sure that the Visual Studio version you use to compile > VTK matches the one that Qt was built against. In this case you need to > either build VTK with VS2013, or build Qt from source with VS2015. well, this was too easy. Thanks for your fast reply, I got VTK6.3 and Qt5.5 working :). -- Tobias Langer From liuyanbc157 at gmail.com Fri Sep 11 06:46:57 2015 From: liuyanbc157 at gmail.com (Yan) Date: Fri, 11 Sep 2015 10:46:57 +0000 (UTC) Subject: [vtkusers] Installing VTK 6.2.0 in LINUX Message-ID: Hello, everyone, I'm now first time installing VTK 6.2 in LINUX. In Comparison with VTK 5.4 which i have used before, I set VTK-DIR to ~/VTK-6.2.0/lib. But when I make the configuration, it shows me>> CMake Error at /usr/share/cmake/Modules/FindVTK.cmake:135(message): VTK not found. Set the VTK_DIR cmake cache entry to the directory containing VTKConfig.cmake This is either the root of the build tree, or PREFIX/libn/vtk for an installation For VTK 4.0, this is the location of UseVTK.cmake. This is either the root of the build tree or PREFIX/include/vtk for an installation.<< I try to find the file VTKConfig.cmake, it locates in ~/VTK- 6.2.0/lib/cmake/vtk-6.2 instead of VTK-6.2.0/lib which includes libxxxx.so files. But in VTK 5.4 it locates directly in ~/vtk/lib/vtk-5.4, which includes libxxxx.so and many VTKConfig.cmake and many other files like vtkxxxxx.cmake files. If I set VTK-DIR as ~/VTK-6.2.0/lib/cmake/vtk-6.2, but it causes other problems in my program. What could I do if I change from VTK 5.4.0 to 6.2.0? thanks a lot Yan From berk.geveci at kitware.com Fri Sep 11 10:27:37 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 11 Sep 2015 10:27:37 -0400 Subject: [vtkusers] VTK 6.3.0 In-Reply-To: References: <1441925862703-5733850.post@n5.nabble.com> <1441927667707-5733853.post@n5.nabble.com> Message-ID: An interesting metric. Ken, who is not the only developer working on this, had 773 commits solely on this topic. Some of these commits changed or added thousands of lines at once. Not trivial to migrate hundreds of classes, tens of thousands of lines of code from fixed pipeline to modern OpenGL. On Thu, Sep 10, 2015 at 8:12 PM, Ken Martin wrote: > Adding a few more points. As David said OpenGL2 could have been named > OpenGLNew, the 2 is really just there because we are implementing it > without yet replacing the old OpenGL code. So we have two libraries so we > needed a name that was different than just OpenGL so we called it OpenGL2 > :-) In terms of what version of OpenGL we support it is mostly OpenGL > version 3.2 which has the nice property that I believe it is mostly > forward compatible with later versions of OpenGL including the latest > releases. So I believe you could create an OpenGL 4.4 context and most if > not all of the new rendering code would work in it which is nice for those > who want to experiment with the latest OpenGL features. The difference > between OpenGL 1.0 which VTK originally used and OpenGL 3.2 Core is > significant given how much rendering code VTK has in it. Plus at the same > time we made the new OpenGL code support OpenGL ES versions 2.0 and 3.0 > which are used on Android and iOS devices and added in support for > multitouch events etc. There is a lot in this upgrade :-) > > Hope that helps! > Ken > > > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > ken.martin at kitware.com > 919 869-8871 (w) > > > 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. > > -----Original Message----- > From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Siavash > Khallaghi > Sent: Thursday, September 10, 2015 7:28 PM > To: vtkusers at vtk.org > Subject: Re: [vtkusers] VTK 6.3.0 > > Thanks to both Davids for the clarification. I am looking forward to the > new release! > > Cheers, > > Siavash > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/VTK-6-3-0-tp5733847p5733853.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 berk.geveci at kitware.com Fri Sep 11 10:51:29 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Fri, 11 Sep 2015 10:51:29 -0400 Subject: [vtkusers] HPCWire Reader's Choice Awards. Please vote for VTK! Message-ID: Hi folks, VTK have been nominated for HPCWire Reader's Choice Awards in the category of visualization: http://www.hpcwire.com/2015-hpcwire-readers-choice-awards/ We would really appreciate your support and your vote this year. 2015 has been a year of major advancement for VTK in the area of HPC. The most notable efforts towards next generation computing is VTK-m ( http://m.vtk.org/). This emerging effort, which significantly improves our ability to compute on GPUs and massively multi-core CPUs, will be our main infrastructure to support next generation supercomputers such as the upcoming Cori, Trinity, Summit, Sierra and Aurora, all of which feature massive parallelism through the use of GPUs of Intel Xeon Phi processors. We have also a number of other efforts, including vtkSMP, which aims to introduces multi-threaded parallelism and together with VTK-m help us close any performance holds on multi-core systems, Intel IPCC with TACC which focuses on better leveraging vector units on CPUs and last but not least our next generation OpenGL efforts which focus on significant rendering improvements on modern GPUs as well as Intel's upcoming OpenSWR software rendering library. As these technologies mature and are deployed over the next few months, expect major performance boost in VTK and ParaView. Thank you for your support. Berk for the VTK team -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Fri Sep 11 10:24:57 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Fri, 11 Sep 2015 10:24:57 -0400 Subject: [vtkusers] Has vtkVolumeTextureMapper3D changed from v5.1 to v6.2 In-Reply-To: <55F2DE04.1070804@sharcnet.ca> References: <55EFFBF1.305@iis.fraunhofer.de> <55F2DE04.1070804@sharcnet.ca> Message-ID: <55F2E439.9090204@rhpcs.mcmaster.ca> Hi VTK users, We develop a viz system using vtkVolumeTextureMapper3D for volume rendering. Recently, we've moved up from v5.1 to v6.2. After that, we notice our viz system has a significant slow-down in rendering speed (compared on the same computer) when volume size is large, say LxWxH ~= 512^3. It can always render small volumes at interactive rate. I know vtkVolumeTextureMapper3D needs to resample large volume to fit in 128*256*256 (BTW, our data is regular volume data with a single component). But this down-sampling process is not new in 6.2. Are there other changes that cause the performance issue? Do anyone experience the same issue? Thanks. Best, Weiguang -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Sep 11 13:02:23 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Sep 2015 11:02:23 -0600 Subject: [vtkusers] Simple Viewer Dicom In-Reply-To: References: Message-ID: Hi Pedro, Take a look at Examples/ImageProcessing/Python/ImageInteractorReslice.py (in the VTK source). It provides window/level interaction with the left mouse button. - David On Fri, Sep 11, 2015 at 12:52 AM, Pedro Paulo wrote: > Hello, I am developing an application in python to view a dicom image and > to change brightness and contrast, I could already make application to > view, from this example ( > http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOM) I adapted to > python, and when show the picture if I press the left button mouse and move > it across the image it changes the brightness and contrast of it, and if I > press the R key the pixels back the original settings. So my question is, > how can I make these changes brightness, contrast and R button (to reset > the values of the original pixels) in my code? I would not like to do > algebraic operations on pixels of the dicom image, such as gamma correction > for contrast, but I wanted functions that VTK probably already own, but > searching I have not found. I thank the attention. > > > The code in python that I adapted: > > import vtk > import sys > > def show_dicom_image(ndicom): > reader = vtk.vtkDICOMImageReader() > reader.SetFileName(ndicom) > reader.Update() > > # Visualize > imageViewer = vtk.vtkImageViewer() > imageViewer.SetInputConnection(reader.GetOutputPort()) > renderWindowInteractor = vtk.vtkRenderWindowInteractor() > imageViewer.SetupInteractor(renderWindowInteractor) > imageViewer.Render() > imageViewer.GetRenderer().ResetCamera() > imageViewer.Render() > renderWindowInteractor.Start() > > show_dicom_image(sys.argv[1]) > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Fri Sep 11 13:22:51 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Fri, 11 Sep 2015 13:22:51 -0400 Subject: [vtkusers] vtkVolumeTextureMapper3D behaves differently between v5.1 and v6.2 Message-ID: <55F30DEB.1070504@rhpcs.mcmaster.ca> Hello VTK users, We develop a viz system using vtkVolumeTextureMapper3D for volume rendering. Recently, we've moved up from v5.1 to v6.2. After that, we notice our viz system has a significant slow-down in rendering speed (compared on the same computer) when volume size is large, say LxWxH ~= 512^3. It can always render small volumes at interactive rate. I know that vtkVolumeTextureMapper3D needs to resample large volume to fit in 128*256*256 (BTW, our data is regular volume data with a single component). But this down-sampling process is not new in 6.2. Are there other changes that cause the performance issue? Does anyone experience the same issue? Thanks. Best, Weiguang -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Fri Sep 11 13:48:57 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Fri, 11 Sep 2015 11:48:57 -0600 Subject: [vtkusers] vtkVolumeTextureMapper3D behaves differently between v5.1 and v6.2 In-Reply-To: <55F30DEB.1070504@rhpcs.mcmaster.ca> References: <55F30DEB.1070504@rhpcs.mcmaster.ca> Message-ID: Hi Weiguang, You can do the image resizing as a preliminary step with vtkImageResize, which does efficient band-limited sinc interpolation and can do a good job of shrinking the image without introducing aliasing artifacts. Hopefully someone else will answer your question about vtkVolumeTextureMapper3D (I haven't used it in a while). - David On Fri, Sep 11, 2015 at 11:22 AM, Weiguang guan wrote: > Hello VTK users, > > We develop a viz system using vtkVolumeTextureMapper3D for volume > rendering. Recently, we've moved up from v5.1 to v6.2. After that, we > notice our viz system has a significant slow-down in rendering speed > (compared on the same computer) when volume size is large, say LxWxH ~= 512 > ^3. It can always render small volumes at interactive rate. > > I know that vtkVolumeTextureMapper3D needs to resample large volume to fit > in 128*256*256 (BTW, our data is regular volume data with a single > component). But this down-sampling process is not new in 6.2. Are there > other changes that cause the performance issue? Does anyone experience the > same issue? Thanks. > > Best, > Weiguang > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Sat Sep 12 00:09:49 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Fri, 11 Sep 2015 23:09:49 -0500 Subject: [vtkusers] Activiz 6.2 VTK OpenGL2 Message-ID: <92d895e7c0e94dd89f10bf34ca3baff5@cascadeacoustic.com> I am building Activiz 6.2 from source right now. Everything has gone pretty well, or as well as any type of large build like this ever goes on Windows. I'm down to the last couple of errors to sort out in linking against my VTK build. Something to do with AUTOINIT error LNK2019: unresolved external symbol "void __cdecl vtkRenderingContextOpenGL_AutoInit_Construct(void)" Anyway, that really isn't my question. I built VTK with the default OpenGL renderer. Then as I was searching for clues on this error I started reading about the OpenGL2 renderer. Is this supported with Activiz? Has anyone tried it? I'm a little worried that if I go back and spend all the time to get it working, there might be some issues hosting the content inside a WPF window. Thanks in advance, Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sancho at whu.edu.cn Sat Sep 12 03:03:00 2015 From: sancho at whu.edu.cn (oyster) Date: Sat, 12 Sep 2015 00:03:00 -0700 (MST) Subject: [vtkusers] Numeric instability of FindClosestPoint from vtkCellLocator? Message-ID: <1442041380751-5733872.post@n5.nabble.com> Hello vtk users: I have just a 3D surface in triangles, 2400 points and 4600 cells. After some kind of computation, for each point I have a new point, this point do not necessarily lies on the Origin surface. So I use vtkCellLocator and FindClosestPoint to project the new point onto the surface. Here is the code snip: /vtk_create(vtkCellLocator, celoc); celoc->SetDataSet(oriPd); celoc->SetTolerance(1e-30); celoc->BuildLocator(); //some loop over the total vetices vtk_create(vtkGenericCell, cell); double t, x[3] = { meanx, meany, meanz }, nearest[3], dist2; //squared distance vtkIdType cellId; int subId=-1; celoc->FindClosestPoint(x, nearest, cell,cellId, subId, dist2);/ But the question is, every time I run the loop, I got points with different positions. Is this some kind of numeric instabilities? If so, how can I improve the analytic computation results with some kind more accurate control? Or, am I missing something important? BTW, I further tried vtkOBBTree and vtkModifiedBSPTree's intersectWithLine, they also performs such instabilities. Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/Numeric-instability-of-FindClosestPoint-from-vtkCellLocator-tp5733872.html Sent from the VTK - Users mailing list archive at Nabble.com. From sancho at whu.edu.cn Sat Sep 12 04:09:23 2015 From: sancho at whu.edu.cn (oyster) Date: Sat, 12 Sep 2015 01:09:23 -0700 (MST) Subject: [vtkusers] Numeric instability of FindClosestPoint from vtkCellLocator? In-Reply-To: <1442041380751-5733872.post@n5.nabble.com> References: <1442041380751-5733872.post@n5.nabble.com> Message-ID: <1442045363229-5733873.post@n5.nabble.com> The bounds of the surface model is about {-78,78, -78,78, 0, 60}, and the sample vertices is about 2400. In such a configuration, gaps between incident vertices is about 160/2400=0.0666, and I set the celllocator's tolerence to 1e-30. However, a tol with 1e-6 and 1e-30 generates different point sets; And every time I go through a different loop, points with different positions got, every time. Though they all lie on the surface through a quick visual examine. -- View this message in context: http://vtk.1045678.n5.nabble.com/Numeric-instability-of-FindClosestPoint-from-vtkCellLocator-tp5733872p5733873.html Sent from the VTK - Users mailing list archive at Nabble.com. From andy.bauer at kitware.com Sat Sep 12 08:52:06 2015 From: andy.bauer at kitware.com (Andy Bauer) Date: Sat, 12 Sep 2015 08:52:06 -0400 Subject: [vtkusers] Numeric instability of FindClosestPoint from vtkCellLocator? In-Reply-To: <1442045363229-5733873.post@n5.nabble.com> References: <1442041380751-5733872.post@n5.nabble.com> <1442045363229-5733873.post@n5.nabble.com> Message-ID: If you're looking for points you probably want to use vtkPointLocator instead of vtkCellLocator. On Sat, Sep 12, 2015 at 4:09 AM, oyster wrote: > The bounds of the surface model is about {-78,78, -78,78, 0, 60}, and the > sample vertices is about 2400. In such a configuration, gaps between > incident vertices is about 160/2400=0.0666, and I set the celllocator's > tolerence to 1e-30. > However, a tol with 1e-6 and 1e-30 generates different point sets; And > every > time I go through a different loop, points with different positions got, > every time. Though they all lie on the surface through a quick visual > examine. > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Numeric-instability-of-FindClosestPoint-from-vtkCellLocator-tp5733872p5733873.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 sancho at whu.edu.cn Sat Sep 12 09:08:48 2015 From: sancho at whu.edu.cn (oyster) Date: Sat, 12 Sep 2015 06:08:48 -0700 (MST) Subject: [vtkusers] Numeric instability of FindClosestPoint from vtkCellLocator? In-Reply-To: References: <1442041380751-5733872.post@n5.nabble.com> <1442045363229-5733873.post@n5.nabble.com> Message-ID: <1442063328364-5733875.post@n5.nabble.com> Hi Andy, As far as I know, vtkPointLocator won't generate/interpolate point on the nearest cell, while what I want is something like "projecting" the new positioned point onto the origin surface. regards Sancho -- View this message in context: http://vtk.1045678.n5.nabble.com/Numeric-instability-of-FindClosestPoint-from-vtkCellLocator-tp5733872p5733875.html Sent from the VTK - Users mailing list archive at Nabble.com. From sancho at whu.edu.cn Sat Sep 12 10:02:16 2015 From: sancho at whu.edu.cn (oyster) Date: Sat, 12 Sep 2015 07:02:16 -0700 (MST) Subject: [vtkusers] Numeric instability of FindClosestPoint from vtkCellLocator? In-Reply-To: <1442063328364-5733875.post@n5.nabble.com> References: <1442041380751-5733872.post@n5.nabble.com> <1442045363229-5733873.post@n5.nabble.com> <1442063328364-5733875.post@n5.nabble.com> Message-ID: <1442066536386-5733876.post@n5.nabble.com> Hi all, During a second examination, I dumped the coordinates generated and compared them manually and visualized them via VTK however not the previous Paraview, I found it is Paraview's fault. When loading two datasets, Paraview gives sightly visual difference to these overlapped datasets, especially those "steepest" vertices will exhibit conspicuous position displacements, which vigilantly confused me. sancho -- View this message in context: http://vtk.1045678.n5.nabble.com/Numeric-instability-of-FindClosestPoint-from-vtkCellLocator-tp5733872p5733876.html Sent from the VTK - Users mailing list archive at Nabble.com. From leonid_dulman at yahoo.co.uk Sat Sep 12 12:40:35 2015 From: leonid_dulman at yahoo.co.uk (Leonid Dulman) Date: Sat, 12 Sep 2015 17:40:35 +0100 Subject: [vtkusers] VTKAda version 6.3.0 free edition release 12/09/2015 Message-ID: <1442076035.88778.YahooMailBasic@web173103.mail.ir2.yahoo.com> I'm pleased to announce VTKAda version 6.3.0 free edition release 12/09/2015 VTKAda is Ada-2012 port to VTK (Visualization Toolkit by Kitware, Inc) and Qt5 application and UI framework by Nokia VTK version 6.3.0, Qt version 5.5.0 open source and vtkc.dll,vtkc2.dll,qt5c.dll(libvtkc.so,libvtkc2.so,libqt5c.so) were built with Microsoft Visual Studio 2012 in Windows (WIN32) and gcc in Linux x86 and x86-64 Package was tested with gnat gpl 2012 ada compiler in Windows 8 64bit,Debian 7.3 x86 and x86-64 As a role ADA is used in embeded systems, but with VTKADA(+QTADA) you can build any desktop applications with powerful 2D/3D rendering and imaging (games, animations, emulations) GUI, Database connection, server/client, Internet browsing and many others thinks. VTKADA you can use without QTADA subsystem VTKAda for Windows and Linux (Unix) is available from https://drive.google.com/folderview?id=0B2QuZLoe-yiPbmNQRl83M1dTRVE&usp=sharing (google drive. It can be mounted as virtual drive or directory or viewed with Web Browser) or download from http://ul.to/wrpp7zsi Leonid Dulman (leonid.dulman at gmail.com) From mark at cascadeacoustic.com Sat Sep 12 14:42:12 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Sat, 12 Sep 2015 13:42:12 -0500 Subject: [vtkusers] Activiz 6.2 VTK OpenGL2 In-Reply-To: <92d895e7c0e94dd89f10bf34ca3baff5@cascadeacoustic.com> References: <92d895e7c0e94dd89f10bf34ca3baff5@cascadeacoustic.com> Message-ID: <3e6a4e2592df4bdb9e252988c75f55d3@cascadeacoustic.com> Just in case someone else is wondering how to fix the linker error I mentioned in my first email: Simply add vtkRenderingContextOpenGL-6.2.lib to the linker input. I'm sure this error is because Activiz 6.2 has not been patched to build against VTK-6.2 yet. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mark DeArman" Sent: Friday, September 11, 2015 9:09 PM To: vtkusers at vtk.org Subject: Activiz 6.2 VTK OpenGL2 I am building Activiz 6.2 from source right now. Everything has gone pretty well, or as well as any type of large build like this ever goes on Windows. I'm down to the last couple of errors to sort out in linking against my VTK build. Something to do with AUTOINIT error LNK2019: unresolved external symbol "void __cdecl vtkRenderingContextOpenGL_AutoInit_Construct(void)" Anyway, that really isn't my question. I built VTK with the default OpenGL renderer. Then as I was searching for clues on this error I started reading about the OpenGL2 renderer. Is this supported with Activiz? Has anyone tried it? I'm a little worried that if I go back and spend all the time to get it working, there might be some issues hosting the content inside a WPF window. Thanks in advance, Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Sun Sep 13 06:29:50 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Sun, 13 Sep 2015 03:29:50 -0700 (MST) Subject: [vtkusers] How can I zoom without using mouse wheel in a vtkCanvas? Message-ID: <1442140190383-5733881.post@n5.nabble.com> Hi there, I use vtkImageSlice's, which are represented in a vtkCanvas. Now, when I use the mouse wheel then the images are zoomed. This is okay, but I don't want to zoom with the mouse wheel but rather by pressing a button. By setting Interactor style on NULL zooming is disabled. How can I, for example using the mouse button to zoom in or out? Or which Interactor style should I use? Any hints? -- View this message in context: http://vtk.1045678.n5.nabble.com/How-can-I-zoom-without-using-mouse-wheel-in-a-vtkCanvas-tp5733881.html Sent from the VTK - Users mailing list archive at Nabble.com. From sebastien.jourdain at kitware.com Sun Sep 13 11:19:15 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Sun, 13 Sep 2015 09:19:15 -0600 Subject: [vtkusers] How can I zoom without using mouse wheel in a vtkCanvas? In-Reply-To: <1442140190383-5733881.post@n5.nabble.com> References: <1442140190383-5733881.post@n5.nabble.com> Message-ID: If you keep the default interaction style, then I think the right click with moving the mouse up and down should zoom. On Sun, Sep 13, 2015 at 4:29 AM, -Daniel- wrote: > Hi there, > > I use vtkImageSlice's, which are represented in a vtkCanvas. > Now, when I use the mouse wheel then the images are zoomed. This is okay, > but I don't want to zoom with the mouse wheel but rather by pressing a > button. > By setting Interactor style on NULL zooming is disabled. > > How can I, for example using the mouse button to zoom in or out? Or which > Interactor style should I use? > Any hints? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/How-can-I-zoom-without-using-mouse-wheel-in-a-vtkCanvas-tp5733881.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 fotosentido at gmail.com Sun Sep 13 18:01:02 2015 From: fotosentido at gmail.com (Marcos) Date: Mon, 14 Sep 2015 00:01:02 +0200 Subject: [vtkusers] ITK image to VTK: wrong display Message-ID: Hi, I'm using ITK to read dicom files, and connecting them to VTK. I'm using the examples of gdcmdata ( http://sourceforge.net/projects/gdcm/files/gdcmData/) But still... I'm beginning to surrender, because I can't get right the first image (3E768EB7.dcm). I'm posting my problem in VTK because I saved my image from ITK (changing personal metadata) and opened with the Philips DICOM Viewer, and I see it right too. So it has to be my VTK setup. The thing is I don't apply any filter in VTK. I was applying one on ITK (RescaleIntensityFilter, setting minimum 0 and maximum output 255.) but without effect. Philips DICOM Viewer, here the image: http://s8.postimg.org/d6oey6esl/correctimage.png In my application, using unsigned short from ITK: http://s22.postimg.org/5hjhjwlsh/unsignedshort.png In my application, using unsigned int from ITK: http://s13.postimg.org/xaoknjjzr/unsignedchar.png I tried this in VTK: double* range = imageViewer->GetInput()->GetScalarRange(); imageViewer->SetColorWindow(range[1] - range[0]); imageViewer->SetColorLevel(0.5 * (range[1] + range[0])); But nothing. I just don't know what to do. Also I can't see color images. I'd aprecciate any kind of guidance. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Sun Sep 13 18:35:57 2015 From: fotosentido at gmail.com (Marcos) Date: Mon, 14 Sep 2015 00:35:57 +0200 Subject: [vtkusers] ITK image to VTK: wrong display In-Reply-To: References: Message-ID: Ok, I don't know why (if somebody can explain...), changing pixel type from unsigned short to float makes a difference: http://s24.postimg.org/srf8937np/firstcompare_after_float.png Not enough, but I have two user controls to change window/level, and incrementing window value and decrementing level value I get the same image that Philips Viewer shows (about 350 window and 30 level): http://s4.postimg.org/qz2o7zf65/after_windowlevel.png PD: I found out in the Philips viewer some window/level presets... and the one it's using has window: 360 and level: 60 (you can choose another presets) I was opening another files, and there's always those presets. Does that mean that is correct that I always set those presets when loading my files? That doesn't resolve why I can't load color on my images :( But the color Dicom file I'm trying... Philips can't even load it, it says it has invalid data. I can view it at least. But if I set it to 360 and 60 I see it too bright so... I return to my question: how to know what preset is fine for each file? Thanks. 2015-09-14 0:01 GMT+02:00 Marcos : > Hi, > I'm using ITK to read dicom files, and connecting them to VTK. > > I'm using the examples of gdcmdata ( > http://sourceforge.net/projects/gdcm/files/gdcmData/) > > But still... I'm beginning to surrender, because I can't get right the > first image (3E768EB7.dcm). > > I'm posting my problem in VTK because I saved my image from ITK (changing > personal metadata) and opened with the Philips DICOM Viewer, and I see it > right too. So it has to be my VTK setup. > > The thing is I don't apply any filter in VTK. I was applying one on ITK > (RescaleIntensityFilter, setting minimum 0 and maximum output 255.) but > without effect. > > > Philips DICOM Viewer, here the image: > > http://s8.postimg.org/d6oey6esl/correctimage.png > > In my application, using unsigned short from ITK: > > http://s22.postimg.org/5hjhjwlsh/unsignedshort.png > > In my application, using unsigned int from ITK: > > http://s13.postimg.org/xaoknjjzr/unsignedchar.png > > I tried this in VTK: > > double* range = imageViewer->GetInput()->GetScalarRange(); > > imageViewer->SetColorWindow(range[1] - range[0]); > > imageViewer->SetColorLevel(0.5 * (range[1] + range[0])); > > > But nothing. I just don't know what to do. > Also I can't see color images. > I'd aprecciate any kind of guidance. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Mon Sep 14 01:17:13 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Mon, 14 Sep 2015 09:47:13 +0430 Subject: [vtkusers] transparency or opacity Message-ID: Hi, how to opacity on a Dicom image in itk is there any Clear Example Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Mon Sep 14 01:19:20 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Mon, 14 Sep 2015 00:19:20 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Message-ID: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> I finally finished patching and testing the build. VTK-6.2 built with Intel C++ 14.0 Activiz 6.2 built with .NET 4.0 Mummy 1.0.3 built with .NET 4.0 If anyone else is having trouble getting this working, feel free to get in contact with me, I can send you my patched source directories. This is my first experience with CMake, and I've got to say it sure made things a breeze. The only thing which drove me nuts was the number of times a full rebuild got triggered after patching individual source files. I wish the maintainers would remove the gccxml/mummy generate functions from the configure step, and just make it another build step. I hope I can get more involved with the project but I've got a lot of learning to do before I'd feel comfortable in CMake. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Mon Sep 14 01:25:08 2015 From: matimontg at gmail.com (Matias Montroull) Date: Mon, 14 Sep 2015 02:25:08 -0300 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> Message-ID: Hi Mark, I will spin up an Azure VM this week to try compile Activiz 6.2 I will let you know how it goes, if doesnt work well I will contact you. Regards, Matias On Sep 14, 2015 2:19 AM, "Mark DeArman" wrote: > I finally finished patching and testing the build. > VTK-6.2 built with Intel C++ 14.0 > Activiz 6.2 built with .NET 4.0 > Mummy 1.0.3 built with .NET 4.0 > > If anyone else is having trouble getting this working, feel free to get in > contact with me, I can send you my patched source directories. This is my > first experience with CMake, and I've got to say it sure made things a > breeze. > > The only thing which drove me nuts was the number of times a full rebuild > got triggered after patching individual source files. I wish the > maintainers would remove the gccxml/mummy generate functions from the > configure step, and just make it another build step. > > I hope I can get more involved with the project but I've got a lot of > learning to do before I'd feel comfortable in CMake. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 mark at cascadeacoustic.com Mon Sep 14 01:36:47 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Mon, 14 Sep 2015 00:36:47 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> Message-ID: <2a33b3ea71214e09bb1e4064f612ac08@cascadeacoustic.com> Yes, if you do the entire build with VS2008, most likely you will need to patch nothing except for those library inputs and those PInvoke signatures which I emailed you, All the other patches to mummy and activiz had to do with .NET 4.0 compatibility and Intel C++. Image of the sample running :-) https://www.facebook.com/photo.php?fbid=10205892603607509&l=9d2363fc4e Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Sunday, September 13, 2015 10:26 PM To: mark at cascadeacoustic.com Cc: vtkusers at vtk.org Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi Mark, I will spin up an Azure VM this week to try compile Activiz 6.2 I will let you know how it goes, if doesnt work well I will contact you. Regards, Matias On Sep 14, 2015 2:19 AM, "Mark DeArman" wrote: I finally finished patching and testing the build. VTK-6.2 built with Intel C++ 14.0 Activiz 6.2 built with .NET 4.0 Mummy 1.0.3 built with .NET 4.0 If anyone else is having trouble getting this working, feel free to get in contact with me, I can send you my patched source directories. This is my first experience with CMake, and I've got to say it sure made things a breeze. The only thing which drove me nuts was the number of times a full rebuild got triggered after patching individual source files. I wish the maintainers would remove the gccxml/mummy generate functions from the configure step, and just make it another build step. I hope I can get more involved with the project but I've got a lot of learning to do before I'd feel comfortable in CMake. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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 marcin.krotkiewski at gmail.com Mon Sep 14 03:46:22 2015 From: marcin.krotkiewski at gmail.com (Marcin Krotkiewski) Date: Mon, 14 Sep 2015 09:46:22 +0200 Subject: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 In-Reply-To: <55EEE362.4010800@gmail.com> References: <55EB4345.2070508@gmail.com> <55EDC0DA.6030104@gmx.de> <8235b87906c3f45aca23856ba5665409@mail.gmail.com> <55EEE362.4010800@gmail.com> Message-ID: <55F67B4E.1020405@gmail.com> FYI, the problem is still present in the final VTK 6.3. The solution provided by Ken can be found at https://gitlab.kitware.com/vtk/vtk/merge_requests/638 Marcin On 09/08/2015 03:32 PM, Marcin Krotkiewski wrote: > Hi, Ken, > > I have found two issues here. First, I think the vtk.sample.VTKCanvas > example (on which I based my simplified code) might be wrong because > it does not call frame.setVisible in EDT. From what I have seen in > other examples frame.setVisible should be called from InvokeLater. > Note that there are other places in Java examples where > JFrame.setVisible is called _NOT_ from within InvokeLater. If this is > an error, it might be a good idea to fix this.. At least for me > changing this partly fixed the problem, i.e., the error was more > difficult for me to get in the example, but not in my real code, where > frame.setVisible is called from EDT (I am _almost_ certain of this, > as I call Java indirectly from MATLAB, and I do use MATLABs EDT > framework). > > Hunting the real problem, I have already mentioned that I got error > from glewInit. Writing out the reason for the error gave me 'Missing > GL version'. I am no expert in OpenGL, so I googled around and > understood that this might mean that glewInit was called before OpenGL > context was created. Due to this fact glew was not initialized and the > code segfaulted on call to glBlendFuncSeparate in OpenGLInitState due > to the address being NULL. > > This made me experiment with vtkOpenGLRenderWindow and > vtkXOpenGLRenderWindow. I have found that from 6.2 you have changed > the initialization in vtkXOpenGLRenderWindow::CreateAWindow. In > particular, you have added the if statement after '// try for 32 > context'. Being desperate I have commented out the entire > if(this->internal->fbconfig) statement. This worked for me, i.e., I > did not manage to get a glewInit error after the change. Neither in my > code, nor in the VTKCanvas sample. > > I do not know exactly what this code does, but it might need a second > look. From the observed behavior it was very much like a race > condition: I was getting the glewInit 'Missing GL version' condition > sometimes, but not always. Of course, this might mean that commenting > out those lines does not fix anything, just hides the problem. > > Let me know if you need more information - I will gladly work towards > fixing this. > > Marcin > > > > On 09/08/2015 02:47 PM, Ken Martin wrote: >> >> Can either of you verify that the VTK C++ tests work on the system? >> E.g. ctest ?R Mace passes? Just trying to see if this is a general >> system/VM issue or tied specifically to Java/OpenGL2 interactions. >> >> Thanks >> >> Ken >> >> Ken Martin PhD >> >> Chairman & CFO >> >> Kitware Inc. >> >> 28 Corporate Drive >> >> Clifton Park NY 12065 >> >> ken.martin at kitware.com >> >> 919 869-8871 (w) >> >> 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. >> >> *From:*vtkusers [mailto:vtkusers-bounces at vtk.org >> ] *On Behalf Of *Jens Schmidt >> *Sent:* Monday, September 7, 2015 12:53 PM >> *To:* marcin.krotkiewski; VTK Users >> *Subject:* Re: [vtkusers] segfault with Opengl2 in 6.3.0.rc2 >> >> To chime in, the jvm (1.8.60) crashes on debian jessie (virtualbox) >> when using the opengl2 rendering backend (vtk 6.3.0rc1 and rc2) and >> the swtComponent. The old OpenGL works fine. >> When not using virtualbox's 3d accelleration the window wont even >> open. When activating the 3d accelleration you get a window but as >> soon as you add some actors and call update it crashes (some of the >> time). >> Also the jvm crashes when running everything on "real" hardware >> (Intel HD Graphics 4600) instead of a virtual machine. >> Unfortunately i cannot access the logs right now (vacation) if this >> still is an issue after, i happily provide any logs you desire :-) >> Just wanted to let you know, keep up the good work! >> >> >> i also have segfaults with the opengl2 backend on linux (debian >> jessie) running on virtualbox. >> >> Am 05.09.2015 um 21:32 schrieb marcin.krotkiewski: >> >> I keep getting segfaults when using vtk.sample.VTKCanvas with >> OpenGL2 backend in 6.3.0.rc2. This does not happen with 6.2.0 + >> OpenGL2, nor with the standard OpenGL backend. I use ubuntu 14.04 >> and compile with gcc 4.9.2 and jdk1.8.0_60. >> >> On my laptop, the segfaults are 100 reproducible with mesa >> library - some lines from glxinfo: >> >> >> OpenGL renderer string: Mesa DRI Intel(R) Haswell Mobile >> OpenGL core profile version string: 3.3 (Core Profile) Mesa 10.1.3 >> OpenGL core profile shading language version string: 3.30 >> >> >> When I use the high performance card (fglrx drivers, Radeon HD >> 8790M) the segfaults sometimes happen, sometimes not. Lines from >> glxinfo: >> >> >> OpenGL vendor string: Advanced Micro Devices, Inc. >> OpenGL renderer string: AMD Radeon HD 8790M >> OpenGL core profile version string: 4.3.13374 Core Profile >> Context 15.20.1013 >> OpenGL core profile shading language version string: 4.40 >> >> >> I have attached a simplified java code based on VTKCanvas - In my >> experience this one segfaults always, both with mesa, and with >> Radeon drivers. I get the following line before vtk dies: >> >> >> ERROR: In >> /home/angainor/bergverk/vtk/VTK-6.3.0.rc2/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx, >> line 412 >> vtkXOpenGLRenderWindow (0x7f110429aa90): GLEW could not be >> initialized. >> >> >> And this is the top of the stack reported by the dying Java VM >> >> >> R11=0x00007fcbd8a79840: in >> /usr/lib/fglrx/libGL.so.1 at 0x00007fcbd8a07000 >> >> Stack: [0x00007fcbb94e4000,0x00007fcbb95e5000], >> sp=0x00007fcbb95e1148, free space=1012k >> Java frames: (J=compiled Java code, j=interpreted, Vv=VM code) >> j vtk.vtkRenderWindow.Render_9()V+0 >> j vtk.vtkRenderWindow.Render()V+1 >> j vtk.vtkPanel.Render()V+164 >> j vtk.vtkPanel.paint(Ljava/awt/Graphics;)V+1 >> >> [...] >> >> >> It seems that this is a problem specific to 6.3.0.rc2 with >> OpenGL2. I could not reproduce it for 6.2.0, nor when using >> OpenGL backend. Do you know any reason why this could happen? I >> will be happy to provide more information and help to solve this. >> >> Cheers, >> >> Marcin >> >> >> >> >> _______________________________________________ >> >> 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 A.Buykx at tnodiana.com Mon Sep 14 04:43:36 2015 From: A.Buykx at tnodiana.com (Andreas Buykx) Date: Mon, 14 Sep 2015 08:43:36 +0000 Subject: [vtkusers] VTK6.3.0 and python3? Message-ID: <65D987BE62E58141AA480A59A8B5BBEA715988CE@srv-mail.diana.local> Hi, First of all: thanks for providing VTK6.3.0! Is python3 support included in this version? I thought it would be but the release message didn't mention it... Thanks for your clarification. Kind regards, Andreas Buykx ____________________________________________________________ TNO DIANA BV is a limited liability company registered in the trade register of the Chamber of Commerce as TNO DIANA BV with registered number 27252655. ____________________________________________________________ This e-mail and its contents are subject to the DISCLAIMER at http://tnodiana.com/content/Disclaimer ____________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From oscar.cainelli at smarthydrosol.com Mon Sep 14 05:02:08 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Mon, 14 Sep 2015 02:02:08 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <2a33b3ea71214e09bb1e4064f612ac08@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <2a33b3ea71214e09bb1e4064f612ac08@cascadeacoustic.com> Message-ID: <1442221328944-5733894.post@n5.nabble.com> Hi Mark, I tried to do that in august but got no luck and I gave up trying, I don't remember exactly what the errors I had but they seemed to be related to some porting issues. What was hard was related to the instructions which are based on VS2008 (I have VS 2012 pro but I also downloaded VS2008) and seems to be a bit obsolete. I am wondering if you could post a small guide with the (hopefully detailed) list of things you have done to succeed in building activiz 6.2 (also compilers versions), and where you retrieved the sources you used. Or in alternative if you could share somehow your build sources or directly the binaries I hope not to have asked too much Thank you Oscar -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5733894.html Sent from the VTK - Users mailing list archive at Nabble.com. From csaravanakumar2010 at gmail.com Mon Sep 14 05:07:21 2015 From: csaravanakumar2010 at gmail.com (saravanakumar) Date: Mon, 14 Sep 2015 02:07:21 -0700 (MST) Subject: [vtkusers] To draw a line. Message-ID: <1442221641798-5733895.post@n5.nabble.com> Hi, I am trying to draw a line (i.e) Horizontal and vertical lines with drag-able over the DICOM image. I am struggling for that last one month. Please help me to draw a line sir. Thanks in Advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/To-draw-a-line-tp5733895.html Sent from the VTK - Users mailing list archive at Nabble.com. From A.Buykx at tnodiana.com Mon Sep 14 05:08:48 2015 From: A.Buykx at tnodiana.com (Andreas Buykx) Date: Mon, 14 Sep 2015 09:08:48 +0000 Subject: [vtkusers] VTK6.3.0 and ghost levels Message-ID: <65D987BE62E58141AA480A59A8B5BBEA715988EB@srv-mail.diana.local> Hi, I have read the kitware blog post about the change in handling of ghost levels in VTK6.3.0, and I understand that there are no longer multiple levels of ghost cells. However there is still the vtkStreamingDemandDrivenPipeline key UPDATE_NUMBER_OF_GHOST_LEVELS that is being updated throughout the pipeline. Could you please explain how this key is related to the new ghost-level behavior? Thanks a lot, Andreas Buykx ____________________________________________________________ TNO DIANA BV is a limited liability company registered in the trade register of the Chamber of Commerce as TNO DIANA BV with registered number 27252655. ____________________________________________________________ This e-mail and its contents are subject to the DISCLAIMER at http://tnodiana.com/content/Disclaimer ____________________________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Sep 14 08:13:03 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 14 Sep 2015 08:13:03 -0400 Subject: [vtkusers] VTK6.3.0 and python3? In-Reply-To: <65D987BE62E58141AA480A59A8B5BBEA715988CE@srv-mail.diana.local> References: <65D987BE62E58141AA480A59A8B5BBEA715988CE@srv-mail.diana.local> Message-ID: Unfortunately no it is not. The enhancement affects python2 as well and was introduced just after the release branch was started. Sometime after vtk7, which is near and will have Python3, we may make a 6.4 just for it. thanks On Monday, September 14, 2015, Andreas Buykx wrote: > Hi, > > > > First of all: thanks for providing VTK6.3.0! > > Is python3 support included in this version? I thought it would be but the > release message didn?t mention it? > > > > Thanks for your clarification. > > > > Kind regards, > > Andreas Buykx > ____________________________________________________________ > TNO DIANA BV is a limited liability company registered in the trade > register of the Chamber of Commerce as TNO DIANA BV with registered number > 27252655. > ____________________________________________________________ > This e-mail and its contents are subject to the DISCLAIMER at > http://tnodiana.com/content/Disclaimer > ____________________________________________________________ > -------------- next part -------------- An HTML attachment was scrubbed... URL: From seun at rogue-research.com Mon Sep 14 09:12:32 2015 From: seun at rogue-research.com (Seun Odutola) Date: Mon, 14 Sep 2015 09:12:32 -0400 Subject: [vtkusers] VTK Newbie Message-ID: <97245EEB-7BB5-4109-841F-5EED24646BF5@rogue-research.com> Hi Everyone, I?m new here. I was wondering if anyone here could help me out. The project I?m working on at my workplace involves the use of VTK, and we are currently planning on transitioning from the fixed-function pipeline to the OpenGL2 (I believe it?s still beta). However, I noticed on running a test with OpenGL2 as the renderer the previous Line Stipple we used to have when rendering our model / content is now replaced with straight Lines. My question is was this a change within VTK or what, if so is there a way to get back the Line Stipple. Thanks From david.gobbi at gmail.com Mon Sep 14 09:13:53 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 14 Sep 2015 07:13:53 -0600 Subject: [vtkusers] VTK6.3.0 and python3? In-Reply-To: References: <65D987BE62E58141AA480A59A8B5BBEA715988CE@srv-mail.diana.local> Message-ID: Right now, the only way to get Python 3 with vtk 6.3 is to fetch and merge the python-py3k branch that I've been using for development: git fetch https://gitlab.kitware.com/dgobbi/vtk.git python-py3k git merge FETCH_HEAD The branch is on the web here: https://gitlab.kitware.com/dgobbi/vtk/commits/python-py3k - David On Mon, Sep 14, 2015 at 6:13 AM, David E DeMarle wrote: > Unfortunately no it is not. The enhancement affects python2 as well and > was introduced just after the release branch was started. Sometime after > vtk7, which is near and will have Python3, we may make a 6.4 just for it. > > thanks > > On Monday, September 14, 2015, Andreas Buykx wrote: > >> Hi, >> >> >> >> First of all: thanks for providing VTK6.3.0! >> >> Is python3 support included in this version? I thought it would be but >> the release message didn?t mention it? >> >> >> >> Thanks for your clarification. >> >> >> >> Kind regards, >> >> Andreas Buykx >> ____________________________________________________________ >> TNO DIANA BV is a limited liability company registered in the trade >> register of the Chamber of Commerce as TNO DIANA BV with registered number >> 27252655. >> ____________________________________________________________ >> This e-mail and its contents are subject to the DISCLAIMER at >> http://tnodiana.com/content/Disclaimer >> ____________________________________________________________ >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Mon Sep 14 09:55:39 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Mon, 14 Sep 2015 09:55:39 -0400 Subject: [vtkusers] vtkVolumeTextureMapper3D behaves differently between v5.1 and v6.2 In-Reply-To: References: <55F30DEB.1070504@rhpcs.mcmaster.ca> Message-ID: <55F6D1DB.1010407@rhpcs.mcmaster.ca> Hi David, I'll try vtkImageResize. Thanks. Best, Weiguang On 11/09/2015 1:48 PM, David Gobbi wrote: > Hi Weiguang, > > You can do the image resizing as a preliminary step with > vtkImageResize, which does efficient band-limited sinc interpolation > and can do a good job of shrinking the image without introducing > aliasing artifacts. > > Hopefully someone else will answer your question about > vtkVolumeTextureMapper3D (I haven't used it in a while). > > - David > > On Fri, Sep 11, 2015 at 11:22 AM, Weiguang guan > > wrote: > > Hello VTK users, > > We develop a viz system using vtkVolumeTextureMapper3D for volume > rendering. Recently, we've moved up from v5.1 to v6.2. After that, > we notice our viz system has a significant slow-down in rendering > speed (compared on the same computer) when volume size is large, > say LxWxH ~= 512^^3 . It can always render small volumes at > interactive rate. > > I know that vtkVolumeTextureMapper3D needs to resample large > volume to fit in 128*256*256 (BTW, our data is regular volume data > with a single component). But this down-sampling process is not > new in 6.2. Are there other changes that cause the performance > issue? Does anyone experience the same issue? Thanks. > > Best, > Weiguang > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Mon Sep 14 10:46:23 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Mon, 14 Sep 2015 10:46:23 -0400 Subject: [vtkusers] VTK6.3.0 and ghost levels In-Reply-To: <65D987BE62E58141AA480A59A8B5BBEA715988EB@srv-mail.diana.local> References: <65D987BE62E58141AA480A59A8B5BBEA715988EB@srv-mail.diana.local> Message-ID: Hi Andreas, There are still multiple levels of ghost cells. The difference is that they are no longer marked by their level. Rather, we are using that unsigned char / cell to encode other information (as a bit field). This works because algorithms are no longer required to strip the ghost level they requested. Rather, the removal now happens at the end of the pipeline. It is still possible for consumers to request multiple ghost levels and for sources to produce them. Note that the only sources that really support this are the structured data sources and filters like D3. Best, -berk On Mon, Sep 14, 2015 at 5:08 AM, Andreas Buykx wrote: > Hi, > > > > I have read the kitware blog post about the change in handling of ghost > levels in VTK6.3.0, and I understand that there are no longer multiple > levels of ghost cells. However there is still the > vtkStreamingDemandDrivenPipeline key UPDATE_NUMBER_OF_GHOST_LEVELS that is > being updated throughout the pipeline. Could you please explain how this > key is related to the new ghost-level behavior? > > > > Thanks a lot, > > Andreas Buykx > ____________________________________________________________ > TNO DIANA BV is a limited liability company registered in the trade > register of the Chamber of Commerce as TNO DIANA BV with registered number > 27252655. > ____________________________________________________________ > This e-mail and its contents are subject to the DISCLAIMER at > http://tnodiana.com/content/Disclaimer > ____________________________________________________________ > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 simon.esneault at gmail.com Mon Sep 14 10:48:53 2015 From: simon.esneault at gmail.com (Simon ESNEAULT) Date: Mon, 14 Sep 2015 16:48:53 +0200 Subject: [vtkusers] vtkVolumeTextureMapper3D behaves differently between v5.1 and v6.2 In-Reply-To: <55F6D1DB.1010407@rhpcs.mcmaster.ca> References: <55F30DEB.1070504@rhpcs.mcmaster.ca> <55F6D1DB.1010407@rhpcs.mcmaster.ca> Message-ID: Hello, Yes we were suffering the same issue. I believe the change occurred with this commit https://github.com/Kitware/VTK/commit/0164fa1e25d9c584e7ec60acb7e221f7ea9e5d7c The 128x256x256 thing is no longer hard coded, it now relies on the vtkgl::MAX_3D_TEXTURE_SIZE variable to compute a correct reduction ratio, which will lead to this significant slow down. Some more explanations : http://marc.info/?l=vtkusers&m=128869084800678 The Volume Texture Mapper 3D has just been marked as deprecated so I don't think there will be any sort of fix, but you should be able to restore the old behavior if you look to the commit, and revert the changes made in the method int vtkOpenGLVolumeTextureMapper3D::IsTextureSizeSupported(int size[3], int components){...} Best Regards Simon 2015-09-14 15:55 GMT+02:00 Weiguang guan : > Hi David, > > I'll try vtkImageResize. Thanks. > > Best, > Weiguang > > > On 11/09/2015 1:48 PM, David Gobbi wrote: > > Hi Weiguang, > > You can do the image resizing as a preliminary step with vtkImageResize, > which does efficient band-limited sinc interpolation and can do a good job > of shrinking the image without introducing aliasing artifacts. > > Hopefully someone else will answer your question about > vtkVolumeTextureMapper3D (I haven't used it in a while). > > - David > > On Fri, Sep 11, 2015 at 11:22 AM, Weiguang guan > wrote: > >> Hello VTK users, >> >> We develop a viz system using vtkVolumeTextureMapper3D for volume >> rendering. Recently, we've moved up from v5.1 to v6.2. After that, we >> notice our viz system has a significant slow-down in rendering speed >> (compared on the same computer) when volume size is large, say LxWxH ~= 512 >> ^3. It can always render small volumes at interactive rate. >> >> I know that vtkVolumeTextureMapper3D needs to resample large volume to >> fit in 128*256*256 (BTW, our data is regular volume data with a single >> component). But this down-sampling process is not new in 6.2. Are there >> other changes that cause the performance issue? Does anyone experience the >> same issue? Thanks. >> >> Best, >> Weiguang >> > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- ------------------------------------------------------------------ Simon Esneault Rennes, France ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Mon Sep 14 11:35:52 2015 From: fotosentido at gmail.com (Marcos) Date: Mon, 14 Sep 2015 17:35:52 +0200 Subject: [vtkusers] Rotate slices in vtkimageViewer2 Message-ID: Hi, I'm trying to rotate every frame of a DICOM file. I've readed the file, and I can iterate over frames with a slider. I'm trying to set a 90? rotation and vertical or horizontal flip. I get this rotating the first camera. So far so good, but... in images with width != height, the 90? rotated image appears "compressed", I guess that's because the camera doesn't change "its view size" and tries to "fit" all image in its projection. Not sure. Any ideas to fix it? Thanks. -------------- next part -------------- An HTML attachment was scrubbed... URL: From xf.guan at gmail.com Mon Sep 14 12:29:46 2015 From: xf.guan at gmail.com (Guan, Xuefei) Date: Mon, 14 Sep 2015 12:29:46 -0400 Subject: [vtkusers] vtkLegendScaleActor as a ruler Message-ID: Dear All, This is an old question I asked before but I got no reply, and I wonder if anyone gets a solution to it. I am using vtkImageData to display a 2D image and I added vtkLegendScaleActor to show the scale on screen after I set up the SetSpacing of the vtkImageData to its physical resolution, e.g., mm/pixel in x-direction and mm/pixel in y-direction. For example, I have an image with a dimension of 620x176x1 and the physical dimension of it is (0.13, 1,1), so I setup the spacing to (0.13, 1, 1). And thevtkLegendScaleActor will display the physical dimension correctly. The image will show as a long strip because of the spacing are not even in x- and y-direction. Now I would like to fill the image to a 3:2 ratio window, which means I need to set the spacing to (3/0.13, 2/1, 1) but the vtkLegendScaleActor will no longer show the correct physical dimension of the image. I wonder if there is a way to override the actor's tick label text so it can still show the correct physical dimension. One way to do it is to extract the tick label text and converted to numeric value and then multiple a scaling factor to make it to the actual physical value. Or I wonder if there is an existing function to do it. I searched google on this topic but find nothing useful yet. I tried SetAspect for the vtkRender but it seems no magic. Can someone help? Regards, -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Mon Sep 14 13:03:41 2015 From: fotosentido at gmail.com (Marcos) Date: Mon, 14 Sep 2015 19:03:41 +0200 Subject: [vtkusers] Undo vtkImageFlip effects Message-ID: Hi, I attached a vtkImageFlip filter to my pipeline, but I can't find the way to "switch off" this filter or revert its effects. I just want to flip my image when I press a button. Any suggestions? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Mon Sep 14 13:19:15 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Mon, 14 Sep 2015 11:19:15 -0600 Subject: [vtkusers] Undo vtkImageFlip effects In-Reply-To: References: Message-ID: Hi Marcos, It might be more convenient to use vtkImageReslice to flip the images. It can take a 3x3 or 4x4 matrix that describes the transformation. For a 3x3 matrix that flips the Y axis, you would use this: reslice->SetResliceAxesDirectionCosines( 1, 0, 0, 0, -1, 0, 0, 0, 1); Be careful, though, because this flips the image around the origin, rather than flipping it around its center. For a 4x4 matrix, use reslice->SetResliceAxes(vtkMatrix4x4 *). By using a 4x4 matrix, you can make sure that the correct center-of-rotation is applied. - David On Mon, Sep 14, 2015 at 11:03 AM, Marcos wrote: > Hi, > > I attached a vtkImageFlip filter to my pipeline, but I can't find the way > to "switch off" this filter or revert its effects. > > I just want to flip my image when I press a button. > > Any suggestions? > Thank you. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From marcin.krotkiewski at gmail.com Mon Sep 14 14:48:13 2015 From: marcin.krotkiewski at gmail.com (marcin.krotkiewski) Date: Mon, 14 Sep 2015 20:48:13 +0200 Subject: [vtkusers] Legacy code: OpenGL vs. OpenGL2 Message-ID: <55F7166D.4000305@gmail.com> The OpenGL version of vtkOpenGLPolyDataMapper has been marked as obsolete starting from VTK6.2, the replacement being vtkPainterPolyDataMapper. The OpenGL2 version is not marked as such, and there is no vtkPainter class. Is this intended, or is the OpenGL2 version also going away? Thanks! Marcin From seun at rogue-research.com Mon Sep 14 14:50:14 2015 From: seun at rogue-research.com (Seun Odutola) Date: Mon, 14 Sep 2015 14:50:14 -0400 Subject: [vtkusers] New to VTK (OpenGL2 Line Stipple) Message-ID: Hi Everyone, I?m new here. I was wondering if anyone here could help me out. The project I?m working on at my workplace involves the use of VTK, and we are currently planning on transitioning from the fixed-function pipeline to the OpenGL2 (I believe it?s still beta). However, I noticed on running a test with OpenGL2 as the renderer the previous Line Stipple we used to have when rendering our model / content is now replaced with straight Lines. My question is was this a change within VTK or what, if so is there a way to get back the Line Stipple. Thanks From ken.martin at kitware.com Mon Sep 14 15:03:33 2015 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 14 Sep 2015 15:03:33 -0400 Subject: [vtkusers] New to VTK (OpenGL2 Line Stipple) In-Reply-To: References: Message-ID: <24e9cc4652cd24f479eb005c52c6e4ed@mail.gmail.com> Unfortunately LineStipple was removed in OpenGL version 3.1 about six years ago (along with LineWidth sort of) and there is no replacement in OpenGL. It has never been in OpenGL ES for Android/iOS to my knowledge. Currently in VTK it is not supported on the OpenGL2 backend. At some point we could try to add it back in fully or partially with our own implementation just not sure how high of a priority it is relative to everything else. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Seun Odutola Sent: Monday, September 14, 2015 2:50 PM To: vtkusers at vtk.org Subject: [vtkusers] New to VTK (OpenGL2 Line Stipple) Hi Everyone, I?m new here. I was wondering if anyone here could help me out. The project I?m working on at my workplace involves the use of VTK, and we are currently planning on transitioning from the fixed-function pipeline to the OpenGL2 (I believe it?s still beta). However, I noticed on running a test with OpenGL2 as the renderer the previous Line Stipple we used to have when rendering our model / content is now replaced with straight Lines. My question is was this a change within VTK or what, if so is there a way to get back the Line Stipple. Thanks _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From ken.martin at kitware.com Mon Sep 14 15:07:48 2015 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 14 Sep 2015 15:07:48 -0400 Subject: [vtkusers] Legacy code: OpenGL vs. OpenGL2 In-Reply-To: <55F7166D.4000305@gmail.com> References: <55F7166D.4000305@gmail.com> Message-ID: <85cc67d482b339835198e3b9c8ea64ff@mail.gmail.com> vtkOpenGLPolyDataMapper is the intended replacement for OpenGL2. The painter API currently is not supported and I do not think there are plans to support it currently. A number of features that were implemented with painters have been converted to baseline features of the mapper or a subclass of it. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of marcin.krotkiewski Sent: Monday, September 14, 2015 2:48 PM To: VTK Users Subject: [vtkusers] Legacy code: OpenGL vs. OpenGL2 The OpenGL version of vtkOpenGLPolyDataMapper has been marked as obsolete starting from VTK6.2, the replacement being vtkPainterPolyDataMapper. The OpenGL2 version is not marked as such, and there is no vtkPainter class. Is this intended, or is the OpenGL2 version also going away? Thanks! Marcin _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ 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 mark at cascadeacoustic.com Mon Sep 14 19:18:22 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Mon, 14 Sep 2015 18:18:22 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> Message-ID: <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> Nothing will make it build in VS2013. Because of gccxml, you have to have VS2008 to do the build. I started to work on patching gccxml, but that was kind of a nightmare I'll leave to someone with more time. I am not a C++ template guru. But, the changes I've made build the binaries targeting .NET 4.0 instead of .NET 2.0. Here is the link to the Source download directory. I'm uploading it right now, so it will be a little bit. https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9V LyqTef24FY&ithint=folder%2c Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mallikarjun K" Sent: Monday, September 14, 2015 5:55 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi Mark, Can you send me the patched source directories. I want to make use of activiz 6.2 for vtk 6.2 with vs2013? Thanks On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman wrote: I finally finished patching and testing the build. VTK-6.2 built with Intel C++ 14.0 Activiz 6.2 built with .NET 4.0 Mummy 1.0.3 built with .NET 4.0 If anyone else is having trouble getting this working, feel free to get in contact with me, I can send you my patched source directories. This is my first experience with CMake, and I've got to say it sure made things a breeze. The only thing which drove me nuts was the number of times a full rebuild got triggered after patching individual source files. I wish the maintainers would remove the gccxml/mummy generate functions from the configure step, and just make it another build step. I hope I can get more involved with the project but I've got a lot of learning to do before I'd feel comfortable in CMake. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- With Kind Regards: Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Mon Sep 14 23:07:19 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Mon, 14 Sep 2015 22:07:19 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> Message-ID: <7004f45df60c46a481a964ea9b1cdcbd@cascadeacoustic.com> I have uploaded some notes and the cmake cache files to: https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9V LyqTef24FY&ithint=folder%2c What's left? Well the biggest thing would be fixing gccxml. But a stop gap measure might be to change the build a little bit so that once the export layer has been generated with mummy, the second build pass is done with a different compiler. This would get rid of the MSCRT9.0 dependency which I see as the biggest issue right now. You have this extra runtime getting linked in, which is doing nothing but reference management between VTK and .NET. This is just plain old goofy. Anyway good luck, Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mark DeArman" Sent: Monday, September 14, 2015 4:19 PM To: vtkusers at vtk.org Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Nothing will make it build in VS2013. Because of gccxml, you have to have VS2008 to do the build. I started to work on patching gccxml, but that was kind of a nightmare I'll leave to someone with more time. I am not a C++ template guru. But, the changes I've made build the binaries targeting .NET 4.0 instead of .NET 2.0. Here is the link to the Source download directory. I'm uploading it right now, so it will be a little bit. https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9V LyqTef24FY&ithint=folder%2c Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mallikarjun K" Sent: Monday, September 14, 2015 5:55 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi Mark, Can you send me the patched source directories. I want to make use of activiz 6.2 for vtk 6.2 with vs2013? Thanks On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman wrote: I finally finished patching and testing the build. VTK-6.2 built with Intel C++ 14.0 Activiz 6.2 built with .NET 4.0 Mummy 1.0.3 built with .NET 4.0 If anyone else is having trouble getting this working, feel free to get in contact with me, I can send you my patched source directories. This is my first experience with CMake, and I've got to say it sure made things a breeze. The only thing which drove me nuts was the number of times a full rebuild got triggered after patching individual source files. I wish the maintainers would remove the gccxml/mummy generate functions from the configure step, and just make it another build step. I hope I can get more involved with the project but I've got a lot of learning to do before I'd feel comfortable in CMake. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- With Kind Regards: Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ich_daniel at habmalnefrage.de Tue Sep 15 02:38:26 2015 From: ich_daniel at habmalnefrage.de (-Daniel-) Date: Mon, 14 Sep 2015 23:38:26 -0700 (MST) Subject: [vtkusers] How can I zoom without using mouse wheel in a vtkCanvas? In-Reply-To: References: <1442140190383-5733881.post@n5.nabble.com> Message-ID: <1442299106362-5733926.post@n5.nabble.com> I modified this example (http://www.vtk.org/Wiki/VTK/Examples/Java/Interaction/SphereInteractorPanel) slightly. So that the zoom works by the right mouse button. But not in my application. Now I'll have to take a closer look at my code ... Thank you for your hint. -- View this message in context: http://vtk.1045678.n5.nabble.com/How-can-I-zoom-without-using-mouse-wheel-in-a-vtkCanvas-tp5733881p5733926.html Sent from the VTK - Users mailing list archive at Nabble.com. From dejan.zivkovic90 at gmail.com Tue Sep 15 04:33:44 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Tue, 15 Sep 2015 10:33:44 +0200 Subject: [vtkusers] Rendering animation Message-ID: Hi, I have a problem running the animation in vtk widget. I followed this tutorial for making animation: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/AnimationScene , and I put the animation in some vtk widget. Problem is that the animation (specifically renderWindowInteractors method start()) jumps into main loop and blocks the whole vtk widget. Can you give me some hint how to solve this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From csaravanakumar2010 at gmail.com Tue Sep 15 04:41:30 2015 From: csaravanakumar2010 at gmail.com (saravanakumar) Date: Tue, 15 Sep 2015 01:41:30 -0700 (MST) Subject: [vtkusers] To draw a line. In-Reply-To: <1442229832380-5733898.post@n5.nabble.com> References: <1442221641798-5733895.post@n5.nabble.com> <1442229120499-5733897.post@n5.nabble.com> <1442229832380-5733898.post@n5.nabble.com> Message-ID: <1442306490782-5733928.post@n5.nabble.com> Hi sir, Thanks for your reply. I need to drag two lines in vertically and horizontally. I am already tried with VTKCursor3D. I could not able to drag it. Please help me to drag. Thanks in advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/To-draw-a-line-tp5733895p5733928.html Sent from the VTK - Users mailing list archive at Nabble.com. From liuyanbc157 at gmail.com Tue Sep 15 05:36:03 2015 From: liuyanbc157 at gmail.com (Yan) Date: Tue, 15 Sep 2015 09:36:03 +0000 (UTC) Subject: [vtkusers] Migration to VTK 6.x Message-ID: Hi, dear all, I'm new to VTK. My task is changing codes from VTK 5.4 to 6.2 or later to 6.3. But I found that some functions are removed or totally changed in VTK 6.x. Now my problem is that vtkTemporalDataSetAlgorithm from VTK 5.4 and together with vtkTemporalDataSet cannot be used anymore in 6.2. What should I do with those functions, how could I change them? Thanks alot Yan From kavyajain4 at gmail.com Tue Sep 15 07:01:57 2015 From: kavyajain4 at gmail.com (kavya) Date: Tue, 15 Sep 2015 04:01:57 -0700 (MST) Subject: [vtkusers] Mapping from vtk5 to vtk6 libraries In-Reply-To: <20140607222153.GW10647@stoneboat.aleph1.co.uk> References: <20140605201222.GP10647@stoneboat.aleph1.co.uk> <20140607222153.GW10647@stoneboat.aleph1.co.uk> Message-ID: <1442314917498-5733931.post@n5.nabble.com> Hi, Have anyone found the mapping of VTK5 - VTK6 library names? Please share some information. -- View this message in context: http://vtk.1045678.n5.nabble.com/Mapping-from-vtk5-to-vtk6-libraries-tp5727352p5733931.html Sent from the VTK - Users mailing list archive at Nabble.com. From marco.dev.open at gmail.com Tue Sep 15 07:15:42 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Tue, 15 Sep 2015 15:45:42 +0430 Subject: [vtkusers] draw diocom image in vtk window via itk reader Message-ID: Hi, how can to read a dicom image through itk::gdcm reader and show in vtk render window I want to read from itk reader no vtkdicomreader I read dicom images then converted to vtkImageData but the image poistion is not correct in drawing imageViewer->SetInputConnection(reader->GetOutputPort()); Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Tue Sep 15 08:31:12 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Tue, 15 Sep 2015 17:01:12 +0430 Subject: [vtkusers] PET Cult Message-ID: Hi, Preset for PET Clut in vtkLookupTable format look like such as follow bellow: vtkSmartPointer lut = lut::New(); // hot color map lut->SetRange(x, y); lut->SetHueRange(x,y ); lut->SetValueRange( y, y ); lut->Build(); Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Sep 15 08:48:49 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 15 Sep 2015 08:48:49 -0400 Subject: [vtkusers] Migration to VTK 6.x In-Reply-To: References: Message-ID: Dear Yan, This somewhat depends on your use cases. We removed vtkTemporalDataSet and pushed the temporal streaming functionality to the pipeline and algorithms. It is still possible for an algorithm to ask for multiple time steps, for example by subclassing vtkMultiTimeStepAlgorithm. I can guide you better if you provide a description of how these are currently used. Also see: http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet Best, -berk Best, -berk On Tue, Sep 15, 2015 at 5:36 AM, Yan wrote: > Hi, dear all, > > I'm new to VTK. My task is changing codes from VTK 5.4 to 6.2 or later to > 6.3. But I found that some functions are removed or totally changed in VTK > 6.x. > > Now my problem is that vtkTemporalDataSetAlgorithm from VTK 5.4 and > together > with vtkTemporalDataSet cannot be used anymore in 6.2. What should I do > with > those functions, how could I change them? > > Thanks alot > > Yan > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Tue Sep 15 09:02:06 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 15 Sep 2015 07:02:06 -0600 Subject: [vtkusers] PET Cult In-Reply-To: References: Message-ID: Hi Marco, Building a PET lookup table is more complicated than that. For example, here is the code in my vtkDICOMLookupTable class: https://github.com/dgobbi/vtk-dicom/blob/master/Source/vtkDICOMLookupTable.cxx#L95 Or, you can use the LUT data from the dicom standard, e.g.: https://www.dabsoft.ch/dicom/6/B.1/ - David On Tue, Sep 15, 2015 at 6:31 AM, Marco Dev wrote: > Hi, > Preset for PET Clut in vtkLookupTable format look like such as follow > bellow: > vtkSmartPointer lut = > lut::New(); // hot color map > lut->SetRange(x, y); > lut->SetHueRange(x,y ); > lut->SetValueRange( y, y ); > lut->Build(); > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Tue Sep 15 09:21:14 2015 From: DLRdave at aol.com (David Cole) Date: Tue, 15 Sep 2015 09:21:14 -0400 Subject: [vtkusers] Rendering animation In-Reply-To: References: Message-ID: Don't call Start? Instead, just call Render over and over again from whatever code is driving your animation. HTH, David C. On Tuesday, September 15, 2015, Dejan Zivkovic wrote: > Hi, > > I have a problem running the animation in vtk widget. > I followed this tutorial for making animation: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Utilities/AnimationScene , > and I put the animation in some vtk widget. > > Problem is that the animation (specifically renderWindowInteractors method > start()) > jumps into main loop and blocks the whole vtk widget. > > Can you give me some hint how to solve this? > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From berk.geveci at kitware.com Tue Sep 15 09:22:00 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 15 Sep 2015 09:22:00 -0400 Subject: [vtkusers] Migration to VTK 6.x In-Reply-To: <9CA54CCA-2153-4CC7-8A54-0495B003994E@gmail.com> References: <9CA54CCA-2153-4CC7-8A54-0495B003994E@gmail.com> Message-ID: Dear Yan, I still need some more information. More about how this is all used than which filters there are. That filter is no longer needed since the time information is now handled differently. Instead, the functionality is pushed to the consumers of the time information. They are expect to request the appropriate time steps. Best, -berk On Tue, Sep 15, 2015 at 9:14 AM, Ich wrote: > Dear Berk, > > Thanks for your replying. > In my software, some functions like vtkTemporalSnaptoTimeStep were > rewrite, named as vtkLocalSnaptoStep, but it looks like > vtkTemporalSnaptoTimeStep in GitHub. With VTK 5.4 it was inherit from > vtkTemporalDataSetAlgorithm. In VTK 6.2 I don?t know how to change the > things in it. > > Thanks in advance. > > Yan > > Am 15.09.2015 um 14:48 schrieb Berk Geveci : > > Dear Yan, > > This somewhat depends on your use cases. We removed vtkTemporalDataSet > and pushed the temporal streaming functionality to the pipeline and > algorithms. It is still possible for an algorithm to ask for multiple time > steps, for example by subclassing vtkMultiTimeStepAlgorithm. I can guide > you better if you provide a description of how these are currently used. > Also see: > http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet > > Best, > -berk > > Best, > -berk > > On Tue, Sep 15, 2015 at 5:36 AM, Yan wrote: > >> Hi, dear all, >> >> I'm new to VTK. My task is changing codes from VTK 5.4 to 6.2 or later to >> 6.3. But I found that some functions are removed or totally changed in VTK >> 6.x. >> >> Now my problem is that vtkTemporalDataSetAlgorithm from VTK 5.4 and >> together >> with vtkTemporalDataSet cannot be used anymore in 6.2. What should I do >> with >> those functions, how could I change them? >> >> Thanks alot >> >> Yan >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> 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 al221 at hotmail.it Tue Sep 15 09:46:27 2015 From: al221 at hotmail.it (erpupones) Date: Tue, 15 Sep 2015 06:46:27 -0700 (MST) Subject: [vtkusers] DICOM table series names Message-ID: <1442324787158-5733938.post@n5.nabble.com> Hello to all, I would like to create a table (in Qt) in which i can see, from a DICOM directory, the names of the series that are contained in that directory; something like this: The fields of this table must be clickable. Thanks advance. -- View this message in context: http://vtk.1045678.n5.nabble.com/DICOM-table-series-names-tp5733938.html Sent from the VTK - Users mailing list archive at Nabble.com. From berk.geveci at kitware.com Tue Sep 15 10:29:13 2015 From: berk.geveci at kitware.com (Berk Geveci) Date: Tue, 15 Sep 2015 10:29:13 -0400 Subject: [vtkusers] Migration to VTK 6.x In-Reply-To: References: <9CA54CCA-2153-4CC7-8A54-0495B003994E@gmail.com> Message-ID: Hi Yan, I would like to suggest that someone who is more familiar with this code joins in on this discussion. This is not a straightforward replacement of one class with another. Also, please keep the discussion on the mailing list. Best, -berk On Tue, Sep 15, 2015 at 10:12 AM, Yan Liu wrote: > Hi, Berk, > This is one Code with .h and .cxx , which should be fixed for VTK 6.2. > > I'm not sure what is the destination to use these codes, because i'm a > beginner for this software. > *vtkLocalTemporalNew.h:* > > #ifndef __vtkLocalTemporalNew_h > #define __vtkLocalTemporalNew_h > > #include "vtkTemporalDataSetAlgorithm.h" > #include "vtkStreamingDemandDrivenPipeline.h" > #include > > //class vtkCompositeDataSet; > class vtkDataSet; > class vtkDataObject; > //class vtkHierarchicalBoxDataSet; > //class vtkIntArray; > //class vtkRectilinearGrid; > //class vtkUniformGrid; > > > struct dim_item { > unsigned int dim; // dimension count 1,2,3... > unsigned int number; // number of different points in this dimension > char * name; // name of dimension > struct dim_item* next; > }; > > struct timestep_item { > double time; // > struct timestep_item* next; > }; > > class VTK_PARALLEL_EXPORT vtkLocalTemporalNew : public > vtkTemporalDataSetAlgorithm > { > public: > static vtkLocalTemporalNew *New(); > vtkTypeRevisionMacro(vtkLocalTemporalNew,vtkTemporalDataSetAlgorithm); > void PrintSelf(ostream& os, vtkIndent indent); > > void AddDimension(char * dimName, double planeValue = 0.0); > char * GetDimName(int dim); > int GetDimCount(); > //void SetInputData(vtkTemporalDataSet *dataset); > void SetStepData(double ident[], unsigned int dim, vtkDataObject* dobj); > void SetStepData(vtkDataObject* dobj); > void ReplaceStepData(double ident[], unsigned int dim, vtkDataObject* > dobj); > void ReplaceStepData(vtkDataObject* dobj); > int GetIndex(double ident[]); > void SetParameter(unsigned int dim, double param); > void UpdateParameter(vtkStreamingDemandDrivenPipeline *sdd); > > protected: > vtkLocalTemporalNew(); > ~vtkLocalTemporalNew(); > > // Description: > // This is called by the superclass. > // This is the method you should override. > virtual int RequestInformation(vtkInformation *request, > vtkInformationVector **inputVector, > vtkInformationVector *outputVector); > > // Description: > // This is called by the superclass. > // This is the method you should override. > virtual int RequestData(vtkInformation *request, > vtkInformationVector **inputVector, > vtkInformationVector *outputVector); > > //vtkTemporalDataSet *inputdata; > vtkTemporalDataSet *dataset; > dim_item *dimlist; > timestep_item *timesteps; > double *parameterArr; > unsigned int *parameterArrInt; > > void AppendTimestepsReverse(timestep_item *timestep); > void AppendTimestep(double time); > void ClearTimeSteps(); > > private: > vtkLocalTemporalNew(const vtkLocalTemporalNew&); // Not implemented. > void operator=(const vtkLocalTemporalNew&); // Not implemented. > //BTX > vtkstd::vector< vtkstd::vector > dataparams; > char errormessage; > //ETX > > }; > > > #endif > > *And another:* > *vtkLocalTemporalNew.cxx* > > *#*include "vtkLocalTemporalNew.h" > > //#include "vtkAMRBox.h" > //#include "vtkCellData.h" > //#include "vtkCompositeDataIterator.h" > //#include "vtkDoubleArray.h" > //#include "vtkHierarchicalBoxDataSet.h" > //#include "vtkImageMandelbrotSource.h" > #include "vtkInformation.h" > #include "vtkInformationVector.h" > //#include "vtkIntArray.h" > //#include "vtkMath.h" > #include "vtkMultiBlockDataSet.h" > #include "vtkObjectFactory.h" > //#include "vtkPointData.h" > //#include "vtkRectilinearGrid.h" > #include "vtkStreamingDemandDrivenPipeline.h" > #include "vtkTemporalDataSet.h" //has to be changed****** > //#include "vtkUniformGrid.h" > //#include "vtkUnsignedCharArray.h" > #include "vtkPolyData.h" > #include > #include > > //#include "vtkExtractCTHPart.h" // for the BOUNDS key > > #include > vtkCxxRevisionMacro(vtkLocalTemporalNew, "$Revision$"); > vtkStandardNewMacro(vtkLocalTemporalNew); > > > //---------------------------------------------------------------------------- > vtkLocalTemporalNew::vtkLocalTemporalNew() > { > this->SetNumberOfInputPorts(0); > > // this->inputdata = vtkTemporalDataSet::New(); > this->dataset = vtkTemporalDataSet::New(); > this->dimlist = NULL; // contains information about dimensions in > decreasing order > this->timesteps = NULL; > this->parameterArr = NULL; // store parameter temporarily > this->parameterArrInt = NULL; // store parameter temporarily > //this->data = 0 // will be replaced by the multidimensional array > } > > > //---------------------------------------------------------------------------- > vtkLocalTemporalNew::~vtkLocalTemporalNew() > { > // TODO!! Speicher von dimlist freigeben! > // TODO!! Speicher von timesteps freigeben! > > } > > void vtkLocalTemporalNew::AddDimension(char * dimName, double planeValue) > { > // number: points in the new dimension > dim_item *item = new dim_item; > if (this->dimlist == NULL) > { > item->dim = 1; // first dimension -> dim = 1 > item->next = NULL; > } else > { > item->dim = this->dimlist->dim + 1; > item->next = this->dimlist; > // add planeValue to all data > for (int i = 0; i < this->dataparams.size(); i++) > { > this->dataparams[i].push_back(planeValue); > } > } > item->name = dimName; > this->dimlist = item; > //Set the missing parameter (we have a new dimension here) > this->SetParameter(this->dimlist->dim,planeValue); > //(this->GetOutputPort())->Modified(); > this->Modified(); > // if (this->dimlist->dim > 1) > // { > // this->Update(); > // } > } > > char * vtkLocalTemporalNew::GetDimName(int dim) > { > dim_item *item = this->dimlist; > while (item != NULL) > { > if (item->dim == dim + 1) > { > vtkDebugMacro("vtkLocalTemporalNew::GetDimName: " << item->name); > return item->name; > } > item = item->next; > } > vtkDebugMacro("vtkLocalTemporalNew::GetDimName: Did not find name of > dimension "<< dim +1); > this->errormessage = 'vtkLocalTemporalNew::GetDimName: Did not find name > of dimension'; > return &this->errormessage; > } > > int vtkLocalTemporalNew::GetDimCount() > { > return this->dimlist->dim; > } > > void vtkLocalTemporalNew::SetParameter(unsigned int dim, double param) > { > // set parameter of dimension dim to value param > if ((dim <= 0) or (this->dimlist == NULL) > or (dim > this->dimlist->dim)) > { > vtkDebugMacro("vtkLocalTemporalNew::SetParameter Wrong dimension " << dim); > return; > } > if (this->parameterArr == NULL) > { > this->parameterArr = new double[this->dimlist->dim]; > } > this->parameterArr[dim-1] = param; > } > > void vtkLocalTemporalNew::UpdateParameter(vtkStreamingDemandDrivenPipeline > *sdd) > { > // Update the pipeline according to the stored parameter > // paramter have to be set before by calling > vtkLocalTemporalNew::SetParameter > vtkDebugMacro("vtkLocalTemporalNew::UpdateParameter"); > if (this->parameterArr == NULL) > return; > sdd->SetUpdateTimeSteps(0, this->parameterArr, this->dimlist->dim); > this->Update(); > } > > void vtkLocalTemporalNew::SetStepData(vtkDataObject* dobj) > { > if (this->parameterArr == NULL) > return; > > this->SetStepData(this->parameterArr, this->dimlist->dim, dobj); > > this->Modified(); > this->Update(); > } > > void vtkLocalTemporalNew::SetStepData(double ident[], unsigned int dim, > vtkDataObject* dobj) > { > // dim should contain the length of ident > if (dim != this->dimlist->dim) > { > vtkDebugMacro("vtkLocalTemporalNew::SetStepData: ERROR wrong dimension!"); > return; > } > // get index to store dobj > int index = this->dataparams.size(); > // store dobj > this->dataset->SetTimeStep(index, dobj); > // store params > vtkstd::vector params; > params.resize(dim); > for (int i = 0; i < dim; i++) > { > params[i] = ident[i]; > } > this->dataparams.push_back(params); > > } > > void vtkLocalTemporalNew::ReplaceStepData(vtkDataObject* dobj) > { > if (this->parameterArr == NULL) > return; > > this->ReplaceStepData(this->parameterArr, this->dimlist->dim, dobj); > > this->Modified(); > this->Update(); > } > > void vtkLocalTemporalNew::ReplaceStepData(double ident[], unsigned int > dim, vtkDataObject* dobj) > { > // dim should contain the length of ident > if (dim != this->dimlist->dim) > { > vtkDebugMacro("vtkLocalTemporalNew::ReplaceStepData: ERROR wrong > dimension!"); > return; > } > // get index to store dobj > int index; > bool match = false; > for (int i = 0; i < this->dataparams.size(); i++) > { > for (int j = 0; j < dim; j++) > { > if ( this->dataparams[i][j] != ident[j] ) > { > break; > } > index = i; > match = true; > } > if (match) > break; > } > if (!match) > { > vtkDebugMacro("vtkLocalTemporalNew::ReplaceStepData: ERROR timestep not > found!"); > return; > } > > // store dobj > this->dataset->SetTimeStep(index, dobj); > } > > > > int vtkLocalTemporalNew::GetIndex(double ident[]) > { > for (int i = 0; i < this->dataparams.size(); i++) > { > bool ok = true; > for (int par = 0; par < this->dataparams[i].size(); par++) > { > if (this->dataparams[i][par] != ident[par]) > { > ok = false; > } > } > if (ok) // found index > { > vtkDebugMacro("vtkLocalTemporalNew::GetIndex " << i); > return i; > } > } > vtkDebugMacro("vtkLocalTemporalNew::GetIndex did not found parameterset " > << ident[0] << " " << ident[1]); > return -1; > } > > int vtkLocalTemporalNew::RequestInformation( > vtkInformation *request, > vtkInformationVector **inputVector, > vtkInformationVector *outputVector) > { > vtkDebugMacro("vtkLocalTemporalNew::RequestInformation"); > > if(!this->Superclass::RequestInformation(request,inputVector,outputVector)) > { > return 0; > } > vtkDebugMacro("vtkLocalTemporalNew::RequestInformation 2 "); > vtkInformation *info=outputVector->GetInformationObject(0); > vtkDebugMacro("vtkLocalTemporalNew::RequestInformation 3 "); > > // get time steps > int nrsteps = this->dataparams.size() * this->dimlist->dim; > double tsteps[nrsteps]; > int count = 0; > for (int i = 0; i < this->dataparams.size(); i++) > { > for (int par = 0; par < this->dataparams[i].size(); par++) > { > tsteps[count] = this->dataparams[i][par]; > count++; > } > } > > info->Set(vtkStreamingDemandDrivenPipeline::TIME_STEPS(),tsteps,nrsteps); > > // get time range > dim_item *dlist = this->dimlist; > double trange[this->dimlist->dim * 2]; > > vtkstd::vector maxval(this->dimlist->dim); > vtkstd::vector minval(this->dimlist->dim); > > for (int par = 0; par < this->dimlist->dim; par++) > { > maxval[par] = this->dataparams[0][par]; > minval[par] = this->dataparams[0][par]; > } > for (int i = 1; i < this->dataparams.size(); i++) > { > for (int par = 0; par < this->dataparams[i].size(); par++) > { > if (maxval[par] < this->dataparams[i][par]) > { > maxval[par] = this->dataparams[i][par]; > } > if (minval[par] > this->dataparams[i][par]) > { > minval[par] = this->dataparams[i][par]; > } > } > } > > for (int i = 0; i < this->dimlist->dim; i++) > { > trange[i] = minval[i]; > trange[i+this->dimlist->dim] = maxval[i]; > } > > > info->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(),trange,this->dimlist->dim > * 2); > > //info->Set(vtkStreamingDemandDrivenPipeline::TIME_RANGE(),trange,this->dimlist->dim > * 2); > vtkDebugMacro("vtkLocalTemporalNew::RequestInformation 5 " << > this->dimlist->dim * 2); > > info->Set(vtkStreamingDemandDrivenPipeline::MAXIMUM_NUMBER_OF_PIECES(),-1); > return 1; > } > > > > //---------------------------------------------------------------------------- > int vtkLocalTemporalNew::RequestData( > vtkInformation *request, > vtkInformationVector **inputVector, > vtkInformationVector *outputVector) > { > vtkInformation *info=outputVector->GetInformationObject(0); > vtkDebugMacro("vtkLocalTemporalNew::RequestData"); > // get how many time steps were requested > int numTimeSteps = > info->Length(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS()); > double *timeSteps = > info->Get(vtkStreamingDemandDrivenPipeline::UPDATE_TIME_STEPS()); > > for (int j = 0; j < numTimeSteps; j++) > { > vtkDebugMacro("vtkLocalTemporalNew::RequestData timeSteps " << > timeSteps[j]); > } > > // handle initial request > int arrlen; > if ((numTimeSteps == 1) and (this->dimlist->dim > 1)) > { > // request for first element -> adjust length of numTimeSteps > arrlen = this->dimlist->dim; > } else > { > arrlen = numTimeSteps; > } > > double newTimeSteps[arrlen]; > > if ((numTimeSteps == 1) and (this->dimlist->dim > 1)) > { > numTimeSteps = arrlen; > if (this->dataparams[0].size() > 0) > { > // fill newTimeSteps with first dataset params > for (int i = 0; i < numTimeSteps; i++) > { > newTimeSteps[i] = this->dataparams[0][i]; > } > } else > // fill newTimeSteps with zero params > for (int i = 0; i < numTimeSteps; i++) > { > newTimeSteps[i] = 0.0; > } > { > > } > } else > { > // fill newTimeSteps with given data from pipeline > for (int i = 0; i < numTimeSteps; i++) > { > newTimeSteps[i] = timeSteps[i]; > } > } > > // convert 1-dim steps / points to n-dim > unsigned int newnum = numTimeSteps / this->dimlist->dim; > double newsteps[newnum][this->dimlist->dim]; > unsigned int iter_oldsteps = 0; > for (int i = 0; i < newnum; i++) > { > for (int j = 0; j < this->dimlist->dim; j++) > { > newsteps[i][j] = newTimeSteps[iter_oldsteps]; > iter_oldsteps++; > } > } > > vtkDebugMacro("vtkLocalTemporalNew::RequestData 2 " << numTimeSteps); > vtkDataObject *doOutput=info->Get(vtkDataObject::DATA_OBJECT()); > vtkTemporalDataSet *output = vtkTemporalDataSet::SafeDownCast(doOutput); > > if(output==0) > { > vtkErrorMacro("The output is not a TemporalDataSet"); > return 0; > } > > if (!info->Has(vtkStreamingDemandDrivenPipeline::UPDATE_PIECE_NUMBER()) > || > > !info->Has(vtkStreamingDemandDrivenPipeline::UPDATE_NUMBER_OF_PIECES())) > { > vtkErrorMacro("Expected information not found. " > "Cannot provide update extent."); > return 0; > } > vtkDebugMacro("vtkLocalTemporalNew::RequestData 3 " << newnum); > > vtkSmartPointer unStructuredGrid = > vtkSmartPointer::New(); > // now create the HierarchicalDataSet for each time step > int ts; > for (ts = 0; ts < newnum; ++ts) > { > int count = output->GetNumberOfTimeSteps(); > int index = this->GetIndex(newsteps[ts]); > if (index == -1) > { > output->SetTimeStep(count, unStructuredGrid); > } else > { > output->SetTimeStep(count, this->dataset->GetTimeStep( index )); > } > > vtkDebugMacro("vtkLocalTemporalNew::RequestData - write output "); > // vtkDebugMacro(""<< this->inputdata->GetTimeStep( timeSteps[ts] ) ); > vtkDebugMacro(""<< numTimeSteps ); > vtkDebugMacro(""<< newTimeSteps[ts]); > } > output->GetInformation()->Set(vtkDataObject::DATA_TIME_STEPS(), > newTimeSteps, numTimeSteps); > return 1; > } > > > //---------------------------------------------------------------------------- > void vtkLocalTemporalNew::PrintSelf(ostream& os, vtkIndent indent) > { > this->Superclass::PrintSelf(os,indent); > > // os << indent << "NumberOfTimeSteps: " << > this->inputdata->GetNumberOfTimeSteps() << endl; > os<< endl; > } > > > 2015-09-15 15:22 GMT+02:00 Berk Geveci : > >> Dear Yan, >> >> I still need some more information. More about how this is all used than >> which filters there are. That filter is no longer needed since the time >> information is now handled differently. Instead, the functionality is >> pushed to the consumers of the time information. They are expect to request >> the appropriate time steps. >> >> Best, >> -berk >> >> On Tue, Sep 15, 2015 at 9:14 AM, Ich wrote: >> >>> Dear Berk, >>> >>> Thanks for your replying. >>> In my software, some functions like vtkTemporalSnaptoTimeStep were >>> rewrite, named as vtkLocalSnaptoStep, but it looks like >>> vtkTemporalSnaptoTimeStep in GitHub. With VTK 5.4 it was inherit from >>> vtkTemporalDataSetAlgorithm. In VTK 6.2 I don?t know how to change the >>> things in it. >>> >>> Thanks in advance. >>> >>> Yan >>> >>> Am 15.09.2015 um 14:48 schrieb Berk Geveci : >>> >>> Dear Yan, >>> >>> This somewhat depends on your use cases. We removed vtkTemporalDataSet >>> and pushed the temporal streaming functionality to the pipeline and >>> algorithms. It is still possible for an algorithm to ask for multiple time >>> steps, for example by subclassing vtkMultiTimeStepAlgorithm. I can >>> guide you better if you provide a description of how these are currently >>> used. Also see: >>> http://www.vtk.org/Wiki/VTK/Remove_vtkTemporalDataSet >>> >>> Best, >>> -berk >>> >>> Best, >>> -berk >>> >>> On Tue, Sep 15, 2015 at 5:36 AM, Yan wrote: >>> >>>> Hi, dear all, >>>> >>>> I'm new to VTK. My task is changing codes from VTK 5.4 to 6.2 or later >>>> to >>>> 6.3. But I found that some functions are removed or totally changed in >>>> VTK >>>> 6.x. >>>> >>>> Now my problem is that vtkTemporalDataSetAlgorithm from VTK 5.4 and >>>> together >>>> with vtkTemporalDataSet cannot be used anymore in 6.2. What should I do >>>> with >>>> those functions, how could I change them? >>>> >>>> Thanks alot >>>> >>>> Yan >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> >>> >> > > > -- > mit freundlicher Gr??e > Yan Liu > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Tue Sep 15 11:08:11 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Tue, 15 Sep 2015 11:08:11 -0400 Subject: [vtkusers] vtkVolumeTextureMapper3D has severe performance issue in v6.2 In-Reply-To: <55F30DEB.1070504@rhpcs.mcmaster.ca> References: <55F30DEB.1070504@rhpcs.mcmaster.ca> Message-ID: <55F8345B.2060203@rhpcs.mcmaster.ca> Hello, I have experienced extremely slow performance of vtkVolumeTextureMapper3D when rendering large volume (LxWxH = 512^3 for example). The slowdown issue is new in v6.2, not in the old release v5.1. Has anyone noticed the issue? What changes has been made to vtkVolumeTextureMapper3D between v5.1 and v6.2? Thanks. Best, Weiguang From oscar.cainelli at smarthydrosol.com Tue Sep 15 11:23:29 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Tue, 15 Sep 2015 08:23:29 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> Message-ID: Thank you very much Mark, great job! I will try next days to follow your instructions, Thank you Oscar 2015-09-15 1:19 GMT+02:00 Mark DeArman [via VTK] : > Nothing will make it build in VS2013. Because of gccxml, you have to have > VS2008 to do the build. > I started to work on patching gccxml, but that was kind of a nightmare I'll > leave to someone with more time. > I am not a C++ template guru. > > But, the changes I've made build the binaries targeting .NET 4.0 instead of > .NET 2.0. > > Here is the link to the Source download directory. I'm uploading it right > now, so it will be a little bit. > > https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ________________________________ > From: "Mallikarjun K" <[hidden email]> > Sent: Monday, September 14, 2015 5:55 AM > To: [hidden email] > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > > Hi Mark, > > Can you send me the patched source directories. I want to make use of > activiz 6.2 for vtk 6.2 with vs2013? > > Thanks > > > On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman <[hidden email]> wrote: >> >> I finally finished patching and testing the build. >> VTK-6.2 built with Intel C++ 14.0 >> Activiz 6.2 built with .NET 4.0 >> Mummy 1.0.3 built with .NET 4.0 >> >> If anyone else is having trouble getting this working, feel free to get in >> contact with me, I can send you my patched source directories. This is my >> first experience with CMake, and I've got to say it sure made things a >> breeze. >> >> The only thing which drove me nuts was the number of times a full rebuild >> got triggered after patching individual source files. I wish the >> maintainers would remove the gccxml/mummy generate functions from the >> configure step, and just make it another build step. >> >> I hope I can get more involved with the project but I've got a lot of >> learning to do before I'd feel comfortable in CMake. >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> > value="+912532005353">(253) 200-5353 >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > With Kind Regards: > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5733924.html > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, > click here. > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5733941.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From kavyabellur.4 at gmail.com Tue Sep 15 12:49:55 2015 From: kavyabellur.4 at gmail.com (Kavya Bellur Padmesh) Date: Tue, 15 Sep 2015 10:49:55 -0600 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' Message-ID: Hello All, I am new into VTK as well QT. I followed the installation procedure and integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application getting linker error as "error LNL1104 Not able to open QVTK.lib, vtkCommon.lib' . I have provided the path variables, still as library name doesnot match with older version getting the error. If anyone been successful in porting VTK5 to VTK6, could you please let me know how did you modify the .lib files names? Regards, Kavya -------------- next part -------------- An HTML attachment was scrubbed... URL: From drescherjm at gmail.com Tue Sep 15 13:01:23 2015 From: drescherjm at gmail.com (John Drescher) Date: Tue, 15 Sep 2015 13:01:23 -0400 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' In-Reply-To: References: Message-ID: > I am new into VTK as well QT. I followed the installation procedure and > integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application getting > linker error as "error LNL1104 Not able to open QVTK.lib, vtkCommon.lib' . I > have provided the path variables, still as library name doesnot match with > older version getting the error. > > If anyone been successful in porting VTK5 to VTK6, could you please let me > know how did you modify the .lib files names? > It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt instead of specifying individual libraries. There are quite a few libraries now with the modularization. John From dave.demarle at kitware.com Tue Sep 15 13:13:46 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 15 Sep 2015 13:13:46 -0400 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' In-Reply-To: References: Message-ID: Kavya, The problem you see is that VTK 5's vtkCommon.lib was split in VTK 6 into vtkCommonDataModel.lib, vtkCommonColor.lib, vtkCommonComputatinalGeometry.lib, vtkCommonCore.lib, vtkCommonExecutionModel.lib, vtkCommonMath.lib, vtkCommonMisc.lib, vtkCommonSystem.lib, and vtkCommonTransforms.lib. This is the modularization John referred to and its purpose was to make it possible to link to only small parts of VTK if you don't need all of it. See: http://www.vtk.org/Wiki/VTK/Build_System_Migration for more information. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Sep 15, 2015 at 1:01 PM, John Drescher wrote: > > I am new into VTK as well QT. I followed the installation procedure and > > integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application getting > > linker error as "error LNL1104 Not able to open QVTK.lib, vtkCommon.lib' > . I > > have provided the path variables, still as library name doesnot match > with > > older version getting the error. > > > > If anyone been successful in porting VTK5 to VTK6, could you please let > me > > know how did you modify the .lib files names? > > > > It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt > instead of specifying individual libraries. There are quite a few > libraries now with the modularization. > > John > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From kavyabellur.4 at gmail.com Tue Sep 15 14:47:41 2015 From: kavyabellur.4 at gmail.com (Kavya Bellur Padmesh) Date: Tue, 15 Sep 2015 12:47:41 -0600 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' In-Reply-To: References: Message-ID: David, Thank you for the clarification. As I am porting the application with VS2013, all the lib file names are mentioned under Project-> Properties->Linker->Input-> Additional dependencies. Now I have to replace included 'vtkCommon.lib' with new modularised .lib file for building my application. The project I have been porting, is not created with cmake_lists.txt. In this scenario, how will I be able to port the application? Kindly provide me some information. On Tue, Sep 15, 2015 at 11:13 AM, David E DeMarle wrote: > Kavya, > > The problem you see is that VTK 5's vtkCommon.lib was split in VTK 6 into > vtkCommonDataModel.lib, vtkCommonColor.lib, > vtkCommonComputatinalGeometry.lib, vtkCommonCore.lib, > vtkCommonExecutionModel.lib, vtkCommonMath.lib, vtkCommonMisc.lib, > vtkCommonSystem.lib, and vtkCommonTransforms.lib. This is the > modularization John referred to and its purpose was to make it possible to > link to only small parts of VTK if you don't need all of it. > > See: http://www.vtk.org/Wiki/VTK/Build_System_Migration for more > information. > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Sep 15, 2015 at 1:01 PM, John Drescher > wrote: > >> > I am new into VTK as well QT. I followed the installation procedure and >> > integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application getting >> > linker error as "error LNL1104 Not able to open QVTK.lib, >> vtkCommon.lib' . I >> > have provided the path variables, still as library name doesnot match >> with >> > older version getting the error. >> > >> > If anyone been successful in porting VTK5 to VTK6, could you please let >> me >> > know how did you modify the .lib files names? >> > >> >> It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt >> instead of specifying individual libraries. There are quite a few >> libraries now with the modularization. >> >> John >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Tue Sep 15 14:57:41 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Tue, 15 Sep 2015 14:57:41 -0400 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' In-Reply-To: References: Message-ID: Not using cmake in your code is fine. In VTK's source, Utilities/Maintainance/WhatModules.py is a python script that scans code and figures out what modules(i.e. libraries) it needs. That should help. Otherwise you have to figure it out manually. Also, your code now has to call some initialization functions that it didn't have to with VTK 5. Cmake based projects that use VTK 6 do this automatically. See the last part of the wiki page I pointed you at for more details. David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Sep 15, 2015 at 2:47 PM, Kavya Bellur Padmesh < kavyabellur.4 at gmail.com> wrote: > David, > > Thank you for the clarification. As I am porting the application with > VS2013, all the lib file names are mentioned under Project-> > Properties->Linker->Input-> Additional dependencies. > Now I have to replace included 'vtkCommon.lib' with new modularised .lib > file for building my application. > The project I have been porting, is not created with cmake_lists.txt. In > this scenario, how will I be able to port the application? > > Kindly provide me some information. > > > > On Tue, Sep 15, 2015 at 11:13 AM, David E DeMarle < > dave.demarle at kitware.com> wrote: > >> Kavya, >> >> The problem you see is that VTK 5's vtkCommon.lib was split in VTK 6 into >> vtkCommonDataModel.lib, vtkCommonColor.lib, >> vtkCommonComputatinalGeometry.lib, vtkCommonCore.lib, >> vtkCommonExecutionModel.lib, vtkCommonMath.lib, vtkCommonMisc.lib, >> vtkCommonSystem.lib, and vtkCommonTransforms.lib. This is the >> modularization John referred to and its purpose was to make it possible to >> link to only small parts of VTK if you don't need all of it. >> >> See: http://www.vtk.org/Wiki/VTK/Build_System_Migration for more >> information. >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Tue, Sep 15, 2015 at 1:01 PM, John Drescher >> wrote: >> >>> > I am new into VTK as well QT. I followed the installation procedure and >>> > integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application >>> getting >>> > linker error as "error LNL1104 Not able to open QVTK.lib, >>> vtkCommon.lib' . I >>> > have provided the path variables, still as library name doesnot match >>> with >>> > older version getting the error. >>> > >>> > If anyone been successful in porting VTK5 to VTK6, could you please >>> let me >>> > know how did you modify the .lib files names? >>> > >>> >>> It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt >>> instead of specifying individual libraries. There are quite a few >>> libraries now with the modularization. >>> >>> John >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jd379252 at gmail.com Tue Sep 15 17:22:23 2015 From: jd379252 at gmail.com (pof) Date: Tue, 15 Sep 2015 23:22:23 +0200 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) Message-ID: <55F88C0F.4050901@gmail.com> Hi all, I am trying to build vtk6.3.0 dlls (using CMake to generate the MSVC project files). - For win64, everything compile and links fine. - For win32, there is a repetitive compilation error complaining about VTK_SIZEOF_CHAR. Apparently, the mistake is in the vtkConfigure.h file, in which the line #define VTK_SIZEOF_CHAR is uncomplete. Modifying as #define VTK_SIZEOF_CHAR = 1 solves the problem, i.e. it compiles and links Pof From siavashk at ece.ubc.ca Tue Sep 15 20:49:33 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Tue, 15 Sep 2015 17:49:33 -0700 (MST) Subject: [vtkusers] vtkImageAppend Runtime Error Message-ID: <1442364573889-5733951.post@n5.nabble.com> Hello, I am struggling with a problem with vtkImageAppend. Let me explain what I am trying to do. The vtkImageAppend sits inside of a vtkCallback class (inherited from vtkCommand) used for custom panning of vtkImageData (2D). Its purpose is to stitch the new region to the region that is currently being displayed in the renderer. As the user pans, the vtkImageAppend filter is continuously called. The relevant portion of my code is similar to this: vtkSmartPointer mutex = vtkSmartPointer ::New(); vtkSmartPointer horizontalAppend = vtkSmartPointer::New(); horizontalAppend->AddInputData(overlapImage); //overlap image is currently displayed in the renderer horizontalAppend->AddInputData(horizontalImage); //horizontalImage is the horizontal difference image that is being panned to horizontalAppend->SetAppendAxis(0); //mutex->Lock(); this->horizontalAppend->Update(); //mutex->Unlock(); Sometimes, my code throws the following runtime error and crashes when I try to pan: Unhandled exception at 0x00007FF84C30320C (vtkFiltersCore-6.2.dll) in Viewer.exe: 0xC0000005: Access violation reading location 0x000000C443D57000. This feels like a thread safety issue to me, although I am not sure. I found the following ticket that isrelated to vtkImageAppend in the Mantis bug tracker. I am not sure if my problem is related to it: http://www.vtk.org/Bug/view.php?id=12655 I also tried placing the update call inside mutex locks to make it thread safe. But this did not help. Why do you think the memory access error is happening? I would appreciate any hints. Thank you, Siavash Khallaghi -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageAppend-Runtime-Error-tp5733951.html Sent from the VTK - Users mailing list archive at Nabble.com. From kavyabellur.4 at gmail.com Tue Sep 15 21:26:42 2015 From: kavyabellur.4 at gmail.com (Kavya Bellur Padmesh) Date: Tue, 15 Sep 2015 19:26:42 -0600 Subject: [vtkusers] [vtk-users] VTK6.2 VS2013+Qt5.5.0 - Linker error not able to open 'vtkCommon.lib' In-Reply-To: References: Message-ID: Thank you! The error resolved by including all the required library paths manually under project-> properties->Linker->Additional dependencies. However now with successful build, when try to run the .exe file getting error as below [image: Inline image 1] Tried to resolve this issue as per wiki page( http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Factories_now_require_defines) As I have been porting my application to VTK6.2 have added the macros in application header files with vtk instance. " #include VTK_MODULE_INIT(vtkRenderingOpenGL);" Still same error observed. Could you please correct me whether I am doing it wrong? Else if there are any workarounds kindly let me know. On Tue, Sep 15, 2015 at 12:57 PM, David E DeMarle wrote: > Not using cmake in your code is fine. > > In VTK's source, Utilities/Maintainance/WhatModules.py is a python script > that scans code and figures out what modules(i.e. libraries) it needs. That > should help. Otherwise you have to figure it out manually. > > Also, your code now has to call some initialization functions that it > didn't have to with VTK 5. Cmake based projects that use VTK 6 do this > automatically. See the last part of the wiki page I pointed you at for more > details. > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Tue, Sep 15, 2015 at 2:47 PM, Kavya Bellur Padmesh < > kavyabellur.4 at gmail.com> wrote: > >> David, >> >> Thank you for the clarification. As I am porting the application with >> VS2013, all the lib file names are mentioned under Project-> >> Properties->Linker->Input-> Additional dependencies. >> Now I have to replace included 'vtkCommon.lib' with new modularised .lib >> file for building my application. >> The project I have been porting, is not created with cmake_lists.txt. In >> this scenario, how will I be able to port the application? >> >> Kindly provide me some information. >> >> >> >> On Tue, Sep 15, 2015 at 11:13 AM, David E DeMarle < >> dave.demarle at kitware.com> wrote: >> >>> Kavya, >>> >>> The problem you see is that VTK 5's vtkCommon.lib was split in VTK 6 >>> into vtkCommonDataModel.lib, vtkCommonColor.lib, >>> vtkCommonComputatinalGeometry.lib, vtkCommonCore.lib, >>> vtkCommonExecutionModel.lib, vtkCommonMath.lib, vtkCommonMisc.lib, >>> vtkCommonSystem.lib, and vtkCommonTransforms.lib. This is the >>> modularization John referred to and its purpose was to make it possible to >>> link to only small parts of VTK if you don't need all of it. >>> >>> See: http://www.vtk.org/Wiki/VTK/Build_System_Migration for more >>> information. >>> >>> >>> >>> >>> David E DeMarle >>> Kitware, Inc. >>> R&D Engineer >>> 21 Corporate Drive >>> Clifton Park, NY 12065-8662 >>> Phone: 518-881-4909 >>> >>> On Tue, Sep 15, 2015 at 1:01 PM, John Drescher >>> wrote: >>> >>>> > I am new into VTK as well QT. I followed the installation procedure >>>> and >>>> > integrated VTK6.2 with QT5.5.0. As I am porting VTK5 application >>>> getting >>>> > linker error as "error LNL1104 Not able to open QVTK.lib, >>>> vtkCommon.lib' . I >>>> > have provided the path variables, still as library name doesnot match >>>> with >>>> > older version getting the error. >>>> > >>>> > If anyone been successful in porting VTK5 to VTK6, could you please >>>> let me >>>> > know how did you modify the .lib files names? >>>> > >>>> >>>> It's much simpler to just use ${VTK_LIBRARIES} in your CMakeLists.txt >>>> instead of specifying individual libraries. There are quite a few >>>> libraries now with the modularization. >>>> >>>> John >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image.png Type: image/png Size: 62936 bytes Desc: not available URL: From marco.dev.open at gmail.com Wed Sep 16 00:22:42 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Wed, 16 Sep 2015 08:52:42 +0430 Subject: [vtkusers] vtk Marco usage Message-ID: Hi, can you explain with clearly about vtkStandardNewMacro and how does it work , what's it's usage ? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Wed Sep 16 01:00:10 2015 From: david.thompson at kitware.com (David Thompson) Date: Wed, 16 Sep 2015 01:00:10 -0400 Subject: [vtkusers] vtk Marco usage In-Reply-To: References: Message-ID: <3C2E34ED-A25A-4D2D-A024-3CCA60F85628@kitware.com> Hi Marco, > can you explain with clearly about vtkStandardNewMacro and how does it work , what's it's usage ? Every concrete class that inherits vtkObject is expected to implement a class-static method named New() that returns an instance of the class (since the constructor and destructor are protected). This macro can be placed in each class's implementation file to provide the implementation of that method. (You still have to declare the method in the header file.) Normally, the macro simplifies to "return new X;" (where X is the name of your class). However, when VTK_DEBUG_LEAKS is turned on, some additional bookkeeping is done for debugging memory leaks. You can look at how the macro is defined in Common/Core/vtkObjectFactory.h. David From jchris.fillionr at kitware.com Wed Sep 16 01:00:59 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Wed, 16 Sep 2015 01:00:59 -0400 Subject: [vtkusers] vtk Marco usage In-Reply-To: References: Message-ID: Hi Marco, The macro declare and defines the New() of VTK classes. Looking at the source code of vtkObjectFactory.h [1] should be insightful. I would also recommend reading the article "A Tour of VTK Pointer Classes". See [2] Hth Jc [1] https://github.com/Kitware/VTK/blob/26480bda9bb29bd1a2f7a5f06493a360bbe65ff2/Common/Core/vtkObjectFactory.h#L320-L325 [2] http://www.kitware.com/source/home/post/7 On Wed, Sep 16, 2015 at 12:22 AM, Marco Dev wrote: > Hi, > can you explain with clearly about vtkStandardNewMacro and how does it > work , what's it's usage ? > Thanks > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Wed Sep 16 01:13:22 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 16 Sep 2015 00:13:22 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> Message-ID: <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> Mallikarjun, Your very welcome. I hope they'll help someone else out. I've been very excited about using Activiz in a project for years. Since I was a kid stuck running BSD on mac68k I've always enjoyed the challenge of porting software, so I had a great time working on the build. gccxml generates the XML description of the C++ VTK library exports. Mummy reads these and generates the csharp wrapper files. I really have not dug into it deep enough yet to know how the Activiz export layer source fits into the puzzle, but if I get some time, I'll see if my idea of adding a second build step can get rid of the VS2008/MSCRT9 dependency for the final library. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mallikarjun K" Sent: Tuesday, September 15, 2015 9:52 PM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi Mark, Thanks for sharing the source directories. One quick question..if I am not wrong,the purpose of gcc-xml is to generate the xml descryption of c++ program, I found link https://github.com/dgobbi/WrapVTK which has a generator for xml. Thank you. On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman wrote: Nothing will make it build in VS2013. Because of gccxml, you have to have VS2008 to do the build. I started to work on patching gccxml, but that was kind of a nightmare I'll leave to someone with more time. I am not a C++ template guru. But, the changes I've made build the binaries targeting .NET 4.0 instead of .NET 2.0. Here is the link to the Source download directory. I'm uploading it right now, so it will be a little bit. https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9V LyqTef24FY&ithint=folder%2c Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Mallikarjun K" Sent: Monday, September 14, 2015 5:55 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi Mark, Can you send me the patched source directories. I want to make use of activiz 6.2 for vtk 6.2 with vs2013? Thanks On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman wrote: I finally finished patching and testing the build. VTK-6.2 built with Intel C++ 14.0 Activiz 6.2 built with .NET 4.0 Mummy 1.0.3 built with .NET 4.0 If anyone else is having trouble getting this working, feel free to get in contact with me, I can send you my patched source directories. This is my first experience with CMake, and I've got to say it sure made things a breeze. The only thing which drove me nuts was the number of times a full rebuild got triggered after patching individual source files. I wish the maintainers would remove the gccxml/mummy generate functions from the configure step, and just make it another build step. I hope I can get more involved with the project but I've got a lot of learning to do before I'd feel comfortable in CMake. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- With Kind Regards: Mallikarjuna K, 07795531103/09908238861. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- With Kind Regards: Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Wed Sep 16 01:23:04 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Wed, 16 Sep 2015 09:53:04 +0430 Subject: [vtkusers] Blending dicom images Message-ID: Hi, I try to bending two dicom images via itk reader and visualization by VTK as you know for blending in vtk use this such as line code follow bellow : vtkSmartPointer firstColorMapper = vtkSmartPointer::New(); * firstColorMapper->SetInputConnection( imgReader->GetOutputPort() ); // vtk reader firstColorMapper->SetInputData( image ); // itk reader * firstColorMapper->SetLookupTable( imgFirstColorMap ); vtkSmartPointer imgBlender = vtkSmartPointer::New(); imgBlender->SetOpacity( 0, 0.5 ); imgBlender->SetOpacity( 1, 1.0 ); imgBlender->AddInputConnection( firstColorMapper->GetOutputPort() ); imgBlender->AddInputConnection( secondColorMapper->GetOutputPort() ); But this pipeline for vtk reader (// vtk reader) via *SetInputConnection is correct * But for itk reader no effect Opacity and ... *in totally I want to Blend two dicom images via itk reader* can you give me a guide line Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dejan.zivkovic90 at gmail.com Wed Sep 16 06:11:57 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Wed, 16 Sep 2015 12:11:57 +0200 Subject: [vtkusers] VectorText rotating center Message-ID: Hi, I would like to have VectorText that is rotation around its central vertical axis. I wrote some code like this: *vtkSmartPointer m_TextSource = vtkSmartPointer::New();* *m_TextSource->SetText("3DIA");* *m_TextSource->Update();* *vtkSmartPointer m_Mapper = vtkSmartPointer::New();* *m_Mapper->SetInputConnection(m_TextSource->GetOutputPort());* *vtkSmartPointer **m_Actor = vtkSmartPointer::New();* *m_Actor->GetProperty()->SetColor(1.0, 1.0, 1.0);* *m_Actor->SetMapper(m_Mapper);* *m_Actor->RotateY(2.0);* and this way the text rotates around the world center. How to move the center of rotation to the center of the text? Thanks, Dejan Zivkovic -------------- next part -------------- An HTML attachment was scrubbed... URL: From emmasaunders123 at gmail.com Wed Sep 16 06:39:43 2015 From: emmasaunders123 at gmail.com (emmasaunders123) Date: Wed, 16 Sep 2015 03:39:43 -0700 (MST) Subject: [vtkusers] Pre clinincal high resolution mouse CT Message-ID: <1442399983580-5733959.post@n5.nabble.com> Is anyone aware of a database where I can obtain an example of a Pre clinincal high resolution mouse CT? Thanks Emma -- View this message in context: http://vtk.1045678.n5.nabble.com/Pre-clinincal-high-resolution-mouse-CT-tp5733959.html Sent from the VTK - Users mailing list archive at Nabble.com. From jojo2100 at gmx.de Wed Sep 16 08:42:34 2015 From: jojo2100 at gmx.de (josci) Date: Wed, 16 Sep 2015 05:42:34 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1440017775588-5733567.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> Message-ID: <1442407354278-5733960.post@n5.nabble.com> Hi Drak, where you able to solve your problem? I'm experiencing the same with spherical surface read from an stl file. My second geometry is generated by spheresource->trianglefilter. I'm trying to reproduce this error. If I'm successful doing this I'll post the stl file and the source code here. Best regards Johannes P.s.: Is the mailinglist the proper place for a bug report? -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733960.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Sep 16 09:11:05 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 16 Sep 2015 09:11:05 -0400 Subject: [vtkusers] VectorText rotating center In-Reply-To: References: Message-ID: Hi Dejan, You'll have to compute the center of the text source (available by getting the bounds of the m_TextSource) and shifting the actor so that the center is at the world center, rotate, then shift back. Hope that helps, Cory On Wed, Sep 16, 2015 at 6:11 AM, Dejan Zivkovic wrote: > Hi, > > I would like to have VectorText that is rotation around its central > vertical axis. > > I wrote some code like this: > > *vtkSmartPointer m_TextSource = > vtkSmartPointer::New();* > *m_TextSource->SetText("3DIA");* > *m_TextSource->Update();* > > *vtkSmartPointer m_Mapper = > vtkSmartPointer::New();* > *m_Mapper->SetInputConnection(m_TextSource->GetOutputPort());* > > *vtkSmartPointer **m_Actor = vtkSmartPointer::New();* > *m_Actor->GetProperty()->SetColor(1.0, 1.0, 1.0);* > *m_Actor->SetMapper(m_Mapper);* > *m_Actor->RotateY(2.0);* > > and this way the text rotates around the world center. > How to move the center of rotation to the center of the text? > > Thanks, > Dejan Zivkovic > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Sep 16 09:13:06 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 16 Sep 2015 09:13:06 -0400 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1442407354278-5733960.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> Message-ID: Hi Johannes, Yes, the mailing list is a suitable place for a bug report. Thanks, Cory On Wed, Sep 16, 2015 at 8:42 AM, josci wrote: > Hi Drak, > > where you able to solve your problem? I'm experiencing the same with > spherical surface read from an stl file. My second geometry is generated by > spheresource->trianglefilter. > > I'm trying to reproduce this error. If I'm successful doing this I'll post > the stl file and the source code here. > > > Best regards > > Johannes > > P.s.: Is the mailinglist the proper place for a bug report? > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733960.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Sep 16 09:14:34 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 16 Sep 2015 09:14:34 -0400 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1440017775588-5733567.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> Message-ID: Hi Drak, Two things: 1). You might want to try the master branch in VTK's git repository. There have been some recent changes that might fix your problem. 2). Would it be possible to post a stack trace where your program crashes? Or report radius values that lead to the crash? Thanks, Cory On Wed, Aug 19, 2015 at 4:56 PM, Drak wrote: > I've noticed that by playing with the radius value and the resolution of > the > cylinder, the boolean operation filter may or may not crash > > Here is my code bellow. > > // The outer cylinder > vtkCylinderSource * _cylinderSource1 = vtkCylinderSource::New(); > _cylinderSource1->SetCenter(0, 0, 0); > _cylinderSource1->SetHeight(width); > _cylinderSource1->SetRadius(0.13); > _cylinderSource1->SetResolution(10); > _cylinderSource1->Update(); > > vtkTriangleFilter * _cylinder1Triangle = vtkTriangleFilter::New(); > _cylinder1Triangle->SetInputData(_cylinderSource1->GetOutput()); > _cylinder1Triangle->Update(); > > // The inner cylinder > vtkCylinderSource * _cylinderSource2 = vtkCylinderSource::New(); > _cylinderSource2->SetCenter(0, 0, 0); > _cylinderSource2->SetHeight(width+0.01); > _cylinderSource2->SetRadius(0.001); > _cylinderSource2->SetResolution(20); > _cylinderSource2->Update(); > > vtkTriangleFilter * _cylinder2Triangle = vtkTriangleFilter::New(); > _cylinder2Triangle->SetInputData(_cylinderSource2->GetOutput()); > _cylinder2Triangle->Update(); > > vtkBooleanOperationPolyDataFilter * _filter = > vtkBooleanOperationPolyDataFilter::New(); > _filter->SetOperationToDifference(); > _filter->SetInputData(0, _cylinder1Triangle->GetOutput()); > _filter->SetInputData(1, _cylinder2Triangle->GetOutput()); > _filter->Update(); // CRASH > > What should I do to make it work 100 % of the time? I don't care if I have > sometimes weird holes, but I cannot accept to have crashes in my program :\ > . > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jojo2100 at gmx.de Wed Sep 16 09:53:22 2015 From: jojo2100 at gmx.de (josci) Date: Wed, 16 Sep 2015 06:53:22 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> Message-ID: <1442411602765-5733964.post@n5.nabble.com> Hi Cory Quammen-2, thanks for your reply. If written some code to reproduce the crash: #include #include #include #include #include #include #include #include #include #include #include #include int main ( int argc, char *argv[] ) { double volume, r0; r0 = 0.013; vtkSmartPointer reader1 = vtkSmartPointer::New(); reader1->SetFileName(argv[1]); reader1->Update(); vtkSmartPointer sphere_source_2 = vtkSmartPointer::New(); sphere_source_2->SetCenter(0,0,0); sphere_source_2->SetRadius(r0); sphere_source_2->SetThetaResolution(16); sphere_source_2->SetPhiResolution(16); sphere_source_2->Update(); vtkSmartPointer sphere_triangle_2 = vtkSmartPointer::New(); sphere_triangle_2->SetInputConnection(sphere_source_2->GetOutputPort()); sphere_triangle_2->Update(); vtkSmartPointer booleanOperation = vtkSmartPointer::New(); booleanOperation->SetOperationToIntersection(); booleanOperation->SetInputConnection(0, reader1->GetOutputPort()); booleanOperation->SetInputConnection(1, sphere_triangle_2->GetOutputPort()); booleanOperation->Update(); vtkSmartPointer massprop = vtkSmartPointer::New(); massprop->SetInputConnection(booleanOperation->GetOutputPort()); for (double r = r0; r < 0.03; r+=0.001) { sphere_source_2->SetRadius(r); sphere_source_2->Update(); sphere_triangle_2->Update(); booleanOperation->Update(); //crash :if SetThetaResolution = SetThetaResolution = 8 and r = 0.015 //no crassh :if SetThetaResolution = SetThetaResolution = 16 and r = 0.015 or r = 0.016 //no crassh :if SetThetaResolution = SetThetaResolution = 8 and r = 0.014 or r = 0.016 massprop->Update(); volume = massprop->GetVolume(); printf("r = %1.5f: intersection volumt = %1.16f\n", r, volume); } return EXIT_SUCCESS; } just pass the filename of the stl (file attached) as first and only parameter to the program. In the source code there are a few cases discribed, which work and one "parameter combination" which leads to the crash. single_sphere.stl Best regards Cory Quammen-2 wrote > Hi Johannes, > > Yes, the mailing list is a suitable place for a bug report. > > Thanks, > Cory > > On Wed, Sep 16, 2015 at 8:42 AM, josci < > jojo2100@ > > wrote: > >> Hi Drak, >> >> where you able to solve your problem? I'm experiencing the same with >> spherical surface read from an stl file. My second geometry is generated >> by >> spheresource->trianglefilter. >> >> I'm trying to reproduce this error. If I'm successful doing this I'll >> post >> the stl file and the source code here. >> >> >> Best regards >> >> Johannes >> >> P.s.: Is the mailinglist the proper place for a bug report? >> >> >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733960.html >> Sent from the VTK - Users mailing list archive at Nabble.com. >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733964.html Sent from the VTK - Users mailing list archive at Nabble.com. From DLRdave at aol.com Wed Sep 16 10:11:45 2015 From: DLRdave at aol.com (David Cole) Date: Wed, 16 Sep 2015 10:11:45 -0400 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> Message-ID: > "if my idea of adding a second build step can get rid of the VS2008/MSCRT9 dependency for the final library" Yes, I think it absolutely could. It would be based on the assumption, however, that the interface generated by analyzing the source under the VS2008 environment would in the end be compatible with what you compile and link for the final library. And it would mean a two-stage build, with VS2008 still required for the first stage. I would be interested to see if anybody can replace gcc-xml with the new&improved CastXML, and still build ActiViz using a more modern VS all in one go. I haven't had time to investigate bringing things up to date for using CastXML, but if anybody else does, please do let us all know here on the VTK lists. Question for you: Why not just publish a git branch with your changes on GitHub or some other publicly hosted site? Perhaps your branch would get picked up by the folks maintaining the ActiViz repo now. Cheers, David C. On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman wrote: > Mallikarjun, > Your very welcome. I hope they'll help someone else out. I've been very > excited about using Activiz in a project for years. Since I was a kid stuck > running BSD on mac68k I've always enjoyed the challenge of porting software, > so I had a great time working on the build. > > gccxml generates the XML description of the C++ VTK library exports. Mummy > reads these and generates the csharp wrapper files. I really have not dug > into it deep enough yet to know how the Activiz export layer source fits > into the puzzle, but if I get some time, I'll see if my idea of adding a > second build step can get rid of the VS2008/MSCRT9 dependency for the final > library. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ________________________________ > From: "Mallikarjun K" > Sent: Tuesday, September 15, 2015 9:52 PM > To: mark at cascadeacoustic.com > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > > Hi Mark, > > Thanks for sharing the source directories. One quick question..if I am not > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ > program, I found link https://github.com/dgobbi/WrapVTK which has a > generator for xml. > > Thank you. > > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman > wrote: >> >> Nothing will make it build in VS2013. Because of gccxml, you have to have >> VS2008 to do the build. >> I started to work on patching gccxml, but that was kind of a nightmare >> I'll leave to someone with more time. >> I am not a C++ template guru. >> >> But, the changes I've made build the binaries targeting .NET 4.0 instead >> of .NET 2.0. >> >> Here is the link to the Source download directory. I'm uploading it right >> now, so it will be a little bit. >> >> >> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ________________________________ >> From: "Mallikarjun K" >> Sent: Monday, September 14, 2015 5:55 AM >> To: mark at cascadeacoustic.com >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> Hi Mark, >> >> Can you send me the patched source directories. I want to make use of >> activiz 6.2 for vtk 6.2 with vs2013? >> >> Thanks >> >> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman >> wrote: >>> >>> I finally finished patching and testing the build. >>> VTK-6.2 built with Intel C++ 14.0 >>> Activiz 6.2 built with .NET 4.0 >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> If anyone else is having trouble getting this working, feel free to get >>> in contact with me, I can send you my patched source directories. This is >>> my first experience with CMake, and I've got to say it sure made things a >>> breeze. >>> >>> The only thing which drove me nuts was the number of times a full rebuild >>> got triggered after patching individual source files. I wish the >>> maintainers would remove the gccxml/mummy generate functions from the >>> configure step, and just make it another build step. >>> >>> I hope I can get more involved with the project but I've got a lot of >>> learning to do before I'd feel comfortable in CMake. >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> (253) 200-5353 >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> With Kind Regards: >> Mallikarjuna K, >> 07795531103/09908238861. >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > With Kind Regards: > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 oscar.cainelli at smarthydrosol.com Wed Sep 16 10:47:28 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Wed, 16 Sep 2015 07:47:28 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> Message-ID: Hi Mark, I started to follow your instructions and while gcc compiles and installs perfectly, as soon as I try to build mummy I get into some errors. I attach a txt file with the VS2008 output during build. If I go to the bin\release directory I cannot find for example kitware.runtime.dll and I guess many other files haven't been built. Am I forgetting something? Consider that I don't have much of experience with c++ Oscar 2015-09-16 7:14 GMT+02:00 Mark DeArman [via VTK] : > Mallikarjun, > Your very welcome. I hope they'll help someone else out. I've been very > excited about using Activiz in a project for years. Since I was a kid stuck > running BSD on mac68k I've always enjoyed the challenge of porting software, > so I had a great time working on the build. > > gccxml generates the XML description of the C++ VTK library exports. Mummy > reads these and generates the csharp wrapper files. I really have not dug > into it deep enough yet to know how the Activiz export layer source fits > into the puzzle, but if I get some time, I'll see if my idea of adding a > second build step can get rid of the VS2008/MSCRT9 dependency for the final > library. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ________________________________ > From: "Mallikarjun K" <[hidden email]> > Sent: Tuesday, September 15, 2015 9:52 PM > To: [hidden email] > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > > Hi Mark, > > Thanks for sharing the source directories. One quick question..if I am not > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ > program, I found link https://github.com/dgobbi/WrapVTK which has a > generator for xml. > > Thank you. > > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman <[hidden email]> wrote: >> >> Nothing will make it build in VS2013. Because of gccxml, you have to have >> VS2008 to do the build. >> I started to work on patching gccxml, but that was kind of a nightmare >> I'll leave to someone with more time. >> I am not a C++ template guru. >> >> But, the changes I've made build the binaries targeting .NET 4.0 instead >> of .NET 2.0. >> >> Here is the link to the Source download directory. I'm uploading it right >> now, so it will be a little bit. >> >> >> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> > value="+912532005353">(253) 200-5353 >> >> ________________________________ >> From: "Mallikarjun K" <[hidden email]> >> Sent: Monday, September 14, 2015 5:55 AM >> To: [hidden email] >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> Hi Mark, >> >> Can you send me the patched source directories. I want to make use of >> activiz 6.2 for vtk 6.2 with vs2013? >> >> Thanks >> >> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman <[hidden email]> wrote: >>> >>> I finally finished patching and testing the build. >>> VTK-6.2 built with Intel C++ 14.0 >>> Activiz 6.2 built with .NET 4.0 >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> If anyone else is having trouble getting this working, feel free to get >>> in contact with me, I can send you my patched source directories. This is >>> my first experience with CMake, and I've got to say it sure made things a >>> breeze. >>> >>> The only thing which drove me nuts was the number of times a full rebuild >>> got triggered after patching individual source files. I wish the >>> maintainers would remove the gccxml/mummy generate functions from the >>> configure step, and just make it another build step. >>> >>> I hope I can get more involved with the project but I've got a lot of >>> learning to do before I'd feel comfortable in CMake. >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> >> value="+912532005353">(253) 200-5353 >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> With Kind Regards: >> Mallikarjuna K, >> > value="+917795531103">07795531103/> value="+919908238861">09908238861. >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > With Kind Regards: > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5733956.html > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, > click here. > NAML mummy.txt (6M) -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5733967.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 16 11:20:40 2015 From: matimontg at gmail.com (Matimont) Date: Wed, 16 Sep 2015 08:20:40 -0700 (MST) Subject: [vtkusers] Build ActiViz 6.2 In-Reply-To: <1439308189513-5733426.post@n5.nabble.com> References: <1439308189513-5733426.post@n5.nabble.com> Message-ID: <1442416840712-5733968.post@n5.nabble.com> Hi Gajo, have you been able to get rid of this error? The name 'vtkCommonEL_dll' does not exist in the current context Thanks, Matias. -- View this message in context: http://vtk.1045678.n5.nabble.com/Build-ActiViz-6-2-tp5733422p5733968.html Sent from the VTK - Users mailing list archive at Nabble.com. From ben.boeckel at kitware.com Wed Sep 16 11:37:31 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 16 Sep 2015 11:37:31 -0400 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: <55F88C0F.4050901@gmail.com> References: <55F88C0F.4050901@gmail.com> Message-ID: <20150916153731.GA9347@megas.khq.kitware.com> On Tue, Sep 15, 2015 at 23:22:23 +0200, pof wrote: > I am trying to build vtk6.3.0 dlls (using CMake to generate the MSVC > project files). > - For win64, everything compile and links fine. > - For win32, there is a repetitive compilation error complaining about > VTK_SIZEOF_CHAR. > > Apparently, the mistake is in the vtkConfigure.h file, in which the line > #define VTK_SIZEOF_CHAR > is uncomplete. > Modifying as > #define VTK_SIZEOF_CHAR = 1 > solves the problem, i.e. it compiles and links Hmm, that doesn't look like the right fix (it should be just '1', without the '='). We do have VS2010 builds, but they are all 32bit. Our 32bit builders are VS2012. I guess one should be bumped down to VS2010 to test it out. But this looks like a very weird case anyways. I don't know why char would fail, but the rest would succeed. Any thoughts from those more familiar with this part of VTK's configure? --Ben From jojo2100 at gmx.de Wed Sep 16 14:04:17 2015 From: jojo2100 at gmx.de (josci) Date: Wed, 16 Sep 2015 11:04:17 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1442411602765-5733964.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> Message-ID: <1442426657256-5733973.post@n5.nabble.com> Hi Cory Quammen-2, I although tested the code with the current developer version (6.3 master branch). Sadly it gives the same result. Johannes josci wrote > Hi Cory Quammen-2, > > thanks for your reply. If written some code to reproduce the crash: > > #include > > ........... > > > Cory Quammen-2 wrote >> Hi Johannes, >> >> Yes, the mailing list is a suitable place for a bug report. >> >> Thanks, >> Cory >> >> On Wed, Sep 16, 2015 at 8:42 AM, josci < >> jojo2100@ >> > wrote: >> >>> Hi Drak, >>> >>> where you able to solve your problem? I'm experiencing the same with >>> spherical surface read from an stl file. My second geometry is generated >>> by >>> spheresource->trianglefilter. >>> >>> I'm trying to reproduce this error. If I'm successful doing this I'll >>> post >>> the stl file and the source code here. >>> >>> >>> Best regards >>> >>> Johannes >>> >>> P.s.: Is the mailinglist the proper place for a bug report? >>> >>> >>> >>> >>> >>> -- >>> View this message in context: >>> http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733960.html >>> Sent from the VTK - Users mailing list archive at Nabble.com. >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733973.html Sent from the VTK - Users mailing list archive at Nabble.com. From mark at cascadeacoustic.com Wed Sep 16 14:08:03 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 16 Sep 2015 13:08:03 -0500 Subject: [vtkusers] Activiz 6.2 VTK OpenGL2 In-Reply-To: References: <92d895e7c0e94dd89f10bf34ca3baff5@cascadeacoustic.com> <7b01f9af69ae450fb5671255b57c24e7@cascadeacoustic.com> <5a400cf5f0574d2aabbaeb2e54fd3c89@cascadeacoustic.com> <5359457747024ee6b5c2da0ea7fe0fdc@cascadeacoustic.com> Message-ID: You need to patch all of the *.in files in the activiz source directory, search for vtkCommonEL_dll and replace with vtkCommonCoreEL_dll reconfigure, regenerate. Or you can just patch the CS files in the build directory. ---------------------------------------- From: "Matias Montroull" Sent: Wednesday, September 16, 2015 7:25 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 Hi Mark. I'm almost donde building usign the ActiViz repo, I haven't tried yours yet as I'm getting close to a success build. I had 177 projects built successful and one failed (Project: Kitware.VTK, Configuration: Release Win32 ------) I'm getting one last error which is this: Error 3834 error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context c:\ActiViz\activizdotnet_build\csharp\vtkObject.cs 615 Here's the full log: 177>------ Build started: Project: Kitware.VTK, Configuration: Release Win32 ------ 177>Generating bin/Release/Kitware.mummy.Runtime.dll 177>Building C# library 'Kitware.VTK'... 177>Microsoft (R) Visual C# 2008 Compiler version 3.5.30729.7903 177>for Microsoft (R) .NET Framework version 3.5 177>Copyright (C) Microsoft Corporation. All rights reserved. 177>warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' 177>warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\atlmfc\lib\i386' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' 177>warning CS1668: Invalid search path 'C:\Program Files (x86)\Microsoft Visual Studio 9.0\lib' specified in 'LIB environment variable' -- 'The system cannot find the path specified. ' 177>csharp\vtkEnSightMasterServerReader.cs(114,15): warning CS0108: 'Kitware.VTK.vtkEnSightMasterServerReader.CanReadFile(string)' hides inherited member 'Kitware.VTK.vtkGenericEnSightReader.CanReadFile(string)'. Use the new keyword if hiding was intended. 177>csharp\vtkGenericEnSightReader.cs(164,22): (Location of symbol related to previous warning) 177>csharp\vtkObject.cs(615,14): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkObject.cs(3978,15): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkObject.cs(4005,15): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkObject.cs(4042,14): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkObject.cs(4059,14): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkStringArray.cs(720,15): error CS0103: The name 'vtkCommonEL_dll' does not exist in the current context 177>csharp\vtkProgrammableAttributeDataFilter.cs(346,15): error CS0103: The name 'vtkGraphicsEL_dll' does not exist in the current context 177>csharp\vtkResliceImageViewer.cs(136,16): warning CS1591: Missing XML comment for publicly visible type or member 'Kitware.VTK.vtkResliceImageViewer.SliceChangedEvent_WrapperEnum' 177>Project : error PRJ0019: A tool returned an error code from "Building C# library 'Kitware.VTK'..." Did you have the same issue while you were building your project? Thank you, Matias. El mar., 15 de sept. de 2015 a la(s) 6:02 p. m., Mark DeArman escribi?: You can either edit the project files in Visual studio, and add it to the Project Options->Linker->Input Or you can download my patched source bundle which will generate the correct project files. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Tuesday, September 15, 2015 1:39 PM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 I'm in the same boat now. Getting these: Error 4003 error LNK2001: unresolved external symbol "void __cdecl vtkRenderingContextOpenGL_AutoInit_Destruct(void)" (?vtkRenderingContextOpenGL_AutoInit_Destruct@@YAXXZ) vtkChartEL.obj How did you do this: You just need to add the library: vtkRenderingContextOpenGL-6.2.lib To the linker input in the activiz projects it is missing from. Thanks, Matias. El mar., 15 de sept. de 2015 a la(s) 3:41 p. m., Matias Montroull escribi?: I selected .Net 3.5 Should I select another target platform? El mar., 15 de sept. de 2015 a la(s) 3:03 p. m., Mark DeArman escribi?: I mean, did you chose .NET 2.0, 3.5, 4.0? If you choose > 3.5 then you need to download my patched source tree, otherwise it will fail. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Tuesday, September 15, 2015 10:37 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 I used the one from GitHub... I used the 9.0 compiler which is VS 2008 Regards El mar., 15 de sept. de 2015 a la(s) 1:59 p. m., Mark DeArman escribi?: Lol, I don't know about that one ;-) Did you use my source code, or the one from github? Which CSC compiler did you use? Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Tuesday, September 15, 2015 9:55 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 Ok, so, I generated the Kitware.mummy.Runtime.dll and the mummy.exe with no errors. When I ran the tests, I got this: The following tests FAILED: 20 - TestAllVehicles_csharp (Not Run) 21 - TestCallback_csharp (Not Run) 22 - TestPerformance_csharp (Not Run) 23 - TestPerformanceArrayAccess_csharp (Not Run) 24 - ManualTestAllVehicles_csharp (Not Run) 25 - ManualTestEvent_csharp (Not Run) 26 - ManualTestRefCountedVehicle_csharp (Not Run) 27 - ManualTestSignatureSeries_csharp (Not Run) 28 - ManualTestSimpleVehicle_csharp (Not Run) 29 - ManualTestBlatMobile_csharp (Not Run) 30 - ManualTestCallback_csharp (Not Run) 31 - ManualTestPerformance_csharp (Not Run) 32 - ManualTestPerformanceArrayAccess_csharp (Not Run) All other passed ok El mar., 15 de sept. de 2015 a la(s) 1:33 p. m., Mark DeArman escribi?: You don't need to build the Vehicle projects. Just Mummy.Runtime ensure it builds and run Mummy.Runtime TESTING project. There were errors building many of the other projects. Otherwise, Make sure CMAKE is set to VS2008 Generator and CMAKE C,CXX compiler is set to VS2008 and that you have run the GCCXML include file patch bat script. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Tuesday, September 15, 2015 8:30 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 Hi Mark, Thanks for all the information, I'm building Mummy and I'm getting errors of this type: Error 1 error PRJ0019: A tool returned an error code from "Generating xml/VehicleDescriptor.xml" base_csharp Any ideas what it may be? Thanks, Matias. El s?b., 12 de sept. de 2015 a la(s) 4:48 p. m., Mark DeArman escribi?: Okay, last e-mail. The last key to getting it to build, is to patch the csharp files once everything else is built. vtkObject.cs and vtkStringArray.cs replace vtkCommonEL_dll with vtkCommonCoreEL_dll vtkProgrammableAttributeDataFilter.cs replace vtkGraphicsEL_dll with vtkFiltersProgrammableEL_dll I checked that the symbols are in fact in those dlls. You should be good to go from there. If you know how to actually patch the source distribution, I would love to know, but I don't have any time to waste figuring that part out. Good luck, Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 From: "Matias Montroull" Sent: Saturday, September 12, 2015 10:00 AM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 VTK OpenGL2 Hi Mark, I'm also trying to build activiz but not getting that error, I get other errors and I think I selected the opengl2. Can you send me the steps you followed to build ActiViz so I can compare and see where the issue may be? Thanks Matias I am building Activiz 6.2 from source right now. Everything has gone pretty well, or as well as any type of large build like this ever goes on Windows. I'm down to the last couple of errors to sort out in linking against my VTK build. Something to do with AUTOINIT error LNK2019: unresolved external symbol "void __cdecl vtkRenderingContextOpenGL_AutoInit_Construct(void)" Anyway, that really isn't my question. I built VTK with the default OpenGL renderer. Then as I was searching for clues on this error I started reading about the OpenGL2 renderer. Is this supported with Activiz? Has anyone tried it? I'm a little worried that if I go back and spend all the time to get it working, there might be some issues hosting the content inside a WPF window. Thanks in advance, Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers -- Matias -- Matias -- Matias -- Matias -- Matias -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Wed Sep 16 14:19:48 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 16 Sep 2015 13:19:48 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> Message-ID: <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> >Why not just publish a git branch with your changes on GitHub or some >other publicly hosted site? Perhaps your branch would get picked up by >the folks maintaining the ActiViz repo now. Because I don't use git. We use TFS at work, and the easiest way to publish it was to zip it all up and put it on a cloud drive. Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real solution. What is the point in patching it for modern VS support if it's a dead project. Fixing mummy to support the standard VTK wrapping libraries makes the most since. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "David Cole" Sent: Wednesday, September 16, 2015 7:12 AM To: mark at cascadeacoustic.com Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > "if my idea of adding a second build step can get rid of the VS2008/MSCRT9 dependency for the final library" Yes, I think it absolutely could. It would be based on the assumption, however, that the interface generated by analyzing the source under the VS2008 environment would in the end be compatible with what you compile and link for the final library. And it would mean a two-stage build, with VS2008 still required for the first stage. I would be interested to see if anybody can replace gcc-xml with the new&improved CastXML, and still build ActiViz using a more modern VS all in one go. I haven't had time to investigate bringing things up to date for using CastXML, but if anybody else does, please do let us all know here on the VTK lists. Question for you: Why not just publish a git branch with your changes on GitHub or some other publicly hosted site? Perhaps your branch would get picked up by the folks maintaining the ActiViz repo now. Cheers, David C. On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman wrote: > Mallikarjun, > Your very welcome. I hope they'll help someone else out. I've been very > excited about using Activiz in a project for years. Since I was a kid stuck > running BSD on mac68k I've always enjoyed the challenge of porting software, > so I had a great time working on the build. > > gccxml generates the XML description of the C++ VTK library exports. Mummy > reads these and generates the csharp wrapper files. I really have not dug > into it deep enough yet to know how the Activiz export layer source fits > into the puzzle, but if I get some time, I'll see if my idea of adding a > second build step can get rid of the VS2008/MSCRT9 dependency for the final > library. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ________________________________ > From: "Mallikarjun K" > Sent: Tuesday, September 15, 2015 9:52 PM > To: mark at cascadeacoustic.com > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > > Hi Mark, > > Thanks for sharing the source directories. One quick question..if I am not > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ > program, I found link https://github.com/dgobbi/WrapVTK which has a > generator for xml. > > Thank you. > > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman > wrote: >> >> Nothing will make it build in VS2013. Because of gccxml, you have to have >> VS2008 to do the build. >> I started to work on patching gccxml, but that was kind of a nightmare >> I'll leave to someone with more time. >> I am not a C++ template guru. >> >> But, the changes I've made build the binaries targeting .NET 4.0 instead >> of .NET 2.0. >> >> Here is the link to the Source download directory. I'm uploading it right >> now, so it will be a little bit. >> >> >> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9V LyqTef24FY&ithint=folder%2c >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ________________________________ >> From: "Mallikarjun K" >> Sent: Monday, September 14, 2015 5:55 AM >> To: mark at cascadeacoustic.com >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> Hi Mark, >> >> Can you send me the patched source directories. I want to make use of >> activiz 6.2 for vtk 6.2 with vs2013? >> >> Thanks >> >> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman >> wrote: >>> >>> I finally finished patching and testing the build. >>> VTK-6.2 built with Intel C++ 14.0 >>> Activiz 6.2 built with .NET 4.0 >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> If anyone else is having trouble getting this working, feel free to get >>> in contact with me, I can send you my patched source directories. This is >>> my first experience with CMake, and I've got to say it sure made things a >>> breeze. >>> >>> The only thing which drove me nuts was the number of times a full rebuild >>> got triggered after patching individual source files. I wish the >>> maintainers would remove the gccxml/mummy generate functions from the >>> configure step, and just make it another build step. >>> >>> I hope I can get more involved with the project but I've got a lot of >>> learning to do before I'd feel comfortable in CMake. >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> (253) 200-5353 >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> With Kind Regards: >> Mallikarjuna K, >> 07795531103/09908238861. >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > With Kind Regards: > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 jd379252 at gmail.com Wed Sep 16 14:39:50 2015 From: jd379252 at gmail.com (pof) Date: Wed, 16 Sep 2015 20:39:50 +0200 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: <20150916153731.GA9347@megas.khq.kitware.com> References: <55F88C0F.4050901@gmail.com> <20150916153731.GA9347@megas.khq.kitware.com> Message-ID: <55F9B776.80905@gmail.com> Le 16/09/2015 17:37, Ben Boeckel a ?crit : > On Tue, Sep 15, 2015 at 23:22:23 +0200, pof wrote: >> I am trying to build vtk6.3.0 dlls (using CMake to generate the MSVC >> project files). >> - For win64, everything compile and links fine. >> - For win32, there is a repetitive compilation error complaining about >> VTK_SIZEOF_CHAR. >> >> Apparently, the mistake is in the vtkConfigure.h file, in which the line >> #define VTK_SIZEOF_CHAR >> is uncomplete. >> Modifying as >> #define VTK_SIZEOF_CHAR = 1 >> solves the problem, i.e. it compiles and links > Hmm, that doesn't look like the right fix (it should be just '1', > without the '='). We do have VS2010 builds, but they are all 32bit. Our > 32bit builders are VS2012. I guess one should be bumped down to VS2010 > to test it out. > > But this looks like a very weird case anyways. I don't know why char > would fail, but the rest would succeed. Any thoughts from those more > familiar with this part of VTK's configure? > > --Ben My mistake Ben, of course, the correct fix is (as you mentioned): #define VTK_SIZEOF_CHAR = 1 and this is obviously the one I implemented (which makes it possible to compile and link vtk in my case). To be more accurate, compilation errors were reported in vtkType.h at the following line: #if VTK_SIZEOF_CHAR == 1 Pof From david.gobbi at gmail.com Wed Sep 16 14:47:42 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 16 Sep 2015 12:47:42 -0600 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: <55F9B776.80905@gmail.com> References: <55F88C0F.4050901@gmail.com> <20150916153731.GA9347@megas.khq.kitware.com> <55F9B776.80905@gmail.com> Message-ID: On Wed, Sep 16, 2015 at 12:39 PM, pof wrote: > Le 16/09/2015 17:37, Ben Boeckel a ?crit : > >> On Tue, Sep 15, 2015 at 23:22:23 +0200, pof wrote: >> >>> I am trying to build vtk6.3.0 dlls (using CMake to generate the MSVC >>> project files). >>> - For win64, everything compile and links fine. >>> - For win32, there is a repetitive compilation error complaining about >>> VTK_SIZEOF_CHAR. >>> >>> Apparently, the mistake is in the vtkConfigure.h file, in which the line >>> #define VTK_SIZEOF_CHAR >>> is uncomplete. >>> Modifying as >>> #define VTK_SIZEOF_CHAR = 1 >>> solves the problem, i.e. it compiles and links >>> >> Hmm, that doesn't look like the right fix (it should be just '1', >> without the '='). We do have VS2010 builds, but they are all 32bit. Our >> 32bit builders are VS2012. I guess one should be bumped down to VS2010 >> to test it out. >> >> But this looks like a very weird case anyways. I don't know why char >> would fail, but the rest would succeed. Any thoughts from those more >> familiar with this part of VTK's configure? >> >> --Ben >> > > My mistake Ben, of course, the correct fix is (as you mentioned): > #define VTK_SIZEOF_CHAR = 1 > Doesn't look fixed to me ;) My primary Windows builds are VS2010 32-bit, and I've never seen this problem. Is it possible that there are header files on your system other than those in VS2010 that might be confusing the build? E.g. do you have mingw-gcc or cygwin installed on your system? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Wed Sep 16 14:57:04 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Wed, 16 Sep 2015 14:57:04 -0400 Subject: [vtkusers] vtkVolumeTextureMapper3D behaves differently between v5.1 and v6.2 In-Reply-To: References: <55F30DEB.1070504@rhpcs.mcmaster.ca> <55F6D1DB.1010407@rhpcs.mcmaster.ca> Message-ID: <55F9BB80.7000901@rhpcs.mcmaster.ca> Thank you very much for confirming the problem and related information. Best, Weiguang On 14/09/2015 10:48 AM, Simon ESNEAULT wrote: > Hello, > > Yes we were suffering the same issue. > I believe the change occurred with this commit > https://github.com/Kitware/VTK/commit/0164fa1e25d9c584e7ec60acb7e221f7ea9e5d7c > The 128x256x256 thing is no longer hard coded, it now relies on > the vtkgl::MAX_3D_TEXTURE_SIZE variable to compute a correct reduction > ratio, which will lead to this significant slow down. > > Some more explanations : > http://marc.info/?l=vtkusers&m=128869084800678 > > The Volume Texture Mapper 3D has just been marked as deprecated so I > don't think there will be any sort of fix, but you should be able to > restore the old behavior if you look to the commit, and revert the > changes made in the method > int vtkOpenGLVolumeTextureMapper3D::IsTextureSizeSupported(int > size[3], int components){...} > > Best Regards > Simon > > > > 2015-09-14 15:55 GMT+02:00 Weiguang guan >: > > Hi David, > > I'll try vtkImageResize. Thanks. > > Best, > Weiguang > > > On 11/09/2015 1:48 PM, David Gobbi wrote: >> Hi Weiguang, >> >> You can do the image resizing as a preliminary step with >> vtkImageResize, which does efficient band-limited sinc >> interpolation and can do a good job of shrinking the image >> without introducing aliasing artifacts. >> >> Hopefully someone else will answer your question about >> vtkVolumeTextureMapper3D (I haven't used it in a while). >> >> - David >> >> On Fri, Sep 11, 2015 at 11:22 AM, Weiguang guan >> > wrote: >> >> Hello VTK users, >> >> We develop a viz system using vtkVolumeTextureMapper3D for >> volume rendering. Recently, we've moved up from v5.1 to v6.2. >> After that, we notice our viz system has a significant >> slow-down in rendering speed (compared on the same computer) >> when volume size is large, say LxWxH ~= 512^^3 . It can >> always render small volumes at interactive rate. >> >> I know that vtkVolumeTextureMapper3D needs to resample large >> volume to fit in 128*256*256 (BTW, our data is regular volume >> data with a single component). But this down-sampling process >> is not new in 6.2. Are there other changes that cause the >> performance issue? Does anyone experience the same issue? >> Thanks. >> >> Best, >> Weiguang >> >> > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > ------------------------------------------------------------------ > Simon Esneault > Rennes, France > ------------------------------------------------------------------ -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Wed Sep 16 15:35:37 2015 From: fotosentido at gmail.com (Marcos) Date: Wed, 16 Sep 2015 21:35:37 +0200 Subject: [vtkusers] =?utf-8?q?non-square_image_=22cropped=22_after_rotate_?= =?utf-8?q?90=C2=BA?= Message-ID: Hi, using vtkImageReslice and vtkTransform I rotate 90? my vtkImageData, shown with an imageViewer2 on a QVTKWidget. The problem is with non squares images: they appear cropped. I rotate again and I see it right again. It has something to do with the camera, I guess? Any ideas how can I I solve that? Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From siavashk at ece.ubc.ca Wed Sep 16 15:46:09 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Wed, 16 Sep 2015 12:46:09 -0700 (MST) Subject: [vtkusers] =?utf-8?q?non-square_image_=22cropped=22_after_rotate_?= =?utf-8?q?90=C2=BA?= In-Reply-To: References: Message-ID: <1442432769029-5733980.post@n5.nabble.com> Hi Marcos, Can you compare the extent of the output of vtkImageReslice against its input? My gut feeling is that they are not equal. Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/non-square-image-cropped-after-rotate-90-tp5733979p5733980.html Sent from the VTK - Users mailing list archive at Nabble.com. From jd379252 at gmail.com Wed Sep 16 15:52:37 2015 From: jd379252 at gmail.com (pof) Date: Wed, 16 Sep 2015 21:52:37 +0200 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: References: <55F88C0F.4050901@gmail.com> <20150916153731.GA9347@megas.khq.kitware.com> <55F9B776.80905@gmail.com> Message-ID: <55F9C885.8040306@gmail.com> Le 16/09/2015 20:47, David Gobbi a ?crit : > On Wed, Sep 16, 2015 at 12:39 PM, pof > wrote: > > Le 16/09/2015 17:37, Ben Boeckel a ?crit : > > On Tue, Sep 15, 2015 at 23:22:23 +0200, pof wrote: > > I am trying to build vtk6.3.0 dlls (using CMake to > generate the MSVC > project files). > - For win64, everything compile and links fine. > - For win32, there is a repetitive compilation error > complaining about > VTK_SIZEOF_CHAR. > > Apparently, the mistake is in the vtkConfigure.h file, in > which the line > #define VTK_SIZEOF_CHAR > is uncomplete. > Modifying as > #define VTK_SIZEOF_CHAR = 1 > solves the problem, i.e. it compiles and links > > Hmm, that doesn't look like the right fix (it should be just '1', > without the '='). We do have VS2010 builds, but they are all > 32bit. Our > 32bit builders are VS2012. I guess one should be bumped down > to VS2010 > to test it out. > > But this looks like a very weird case anyways. I don't know > why char > would fail, but the rest would succeed. Any thoughts from > those more > familiar with this part of VTK's configure? > > --Ben > > My mistake Ben, of course, the correct fix is (as you mentioned): > #define VTK_SIZEOF_CHAR = 1 > > > Doesn't look fixed to me ;) > > My primary Windows builds are VS2010 32-bit, and I've never seen this > problem. Is it possible that there are header files on your system other > than those in VS2010 that might be confusing the build? E.g. do you have > mingw-gcc or cygwin installed on your system? > > - David again yes #define VTK_SIZEOF_CHAR 1 No David, I have neither mingw-gcc nor cygwin installed. I have just run again CMake from scratch to produce win32 project, and this time everything is fine in vtkConfigure.h. I don't know why yesterday CMake ended with this mistake in vtkConfigure.h Sorry for reporting what seems to be a wrong issue. Pof -------------- next part -------------- An HTML attachment was scrubbed... URL: From guanw at rhpcs.mcmaster.ca Wed Sep 16 15:53:59 2015 From: guanw at rhpcs.mcmaster.ca (Weiguang guan) Date: Wed, 16 Sep 2015 15:53:59 -0400 Subject: [vtkusers] What's a good way to do volume rendering when the capability of graphics hardware is unknown In-Reply-To: <55F9BB80.7000901@rhpcs.mcmaster.ca> References: <55F30DEB.1070504@rhpcs.mcmaster.ca> <55F6D1DB.1010407@rhpcs.mcmaster.ca> <55F9BB80.7000901@rhpcs.mcmaster.ca> Message-ID: <55F9C8D7.5030208@rhpcs.mcmaster.ca> Hi everyone, If you have an answer or suggestions regarding the question in the subject line, please share them. Thanks. Using vtkSmartVolumeMapper and SetRequestedRenderModeToDefault() is certainly designed for this purpose. But it has some issues: (1) If GPU ray casting is not supported, then it will try 3D texture mapping. Simon ESNEAULT reported a bug that sneaked into vtkVolumeTextureMapper3D in v5.5 or v5.6 five years ago that causes dramatic slow down. The problem hasn't been fixed so far, and it is not likely to be fixed soon as the mapper is considered as "depreciated". (2) GPU ray casting is supported on my laptop and desktop, but I am not sure it can do LOD. They dynamic rate is not very good to be interactive. I tried to play with SetInteractiveUpdateRate(double) but it didn't seem have any effect. Any suggestion? Thanks. Best, Weiguang From david.gobbi at gmail.com Wed Sep 16 16:03:09 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 16 Sep 2015 14:03:09 -0600 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: <55F9C885.8040306@gmail.com> References: <55F88C0F.4050901@gmail.com> <20150916153731.GA9347@megas.khq.kitware.com> <55F9B776.80905@gmail.com> <55F9C885.8040306@gmail.com> Message-ID: On Wed, Sep 16, 2015 at 1:52 PM, pof wrote: > > No David, I have neither mingw-gcc nor cygwin installed. > > I have just run again CMake from scratch to produce win32 project, and > this time everything is fine in vtkConfigure.h. > I don't know why yesterday CMake ended with this mistake in vtkConfigure.h > Sorry for reporting what seems to be a wrong issue. > I've had similar cmake mess-ups occur when I forget to run the vcvars .bat file, or when I otherwise don't have the environment variables set correctly. Also, whenever you make compiler-related changes to your configuration (e.g. changing from 32-bit to 64-bit), be sure to start with a clean build directory and a new CMakeCache.txt. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jd379252 at gmail.com Wed Sep 16 16:12:27 2015 From: jd379252 at gmail.com (pof) Date: Wed, 16 Sep 2015 22:12:27 +0200 Subject: [vtkusers] Error compiling vtk 6.3.0 on win32 (VC++ 2010) In-Reply-To: References: <55F88C0F.4050901@gmail.com> <20150916153731.GA9347@megas.khq.kitware.com> <55F9B776.80905@gmail.com> <55F9C885.8040306@gmail.com> Message-ID: <55F9CD2B.2050909@gmail.com> Le 16/09/2015 22:03, David Gobbi a ?crit : > On Wed, Sep 16, 2015 at 1:52 PM, pof > wrote: > > > No David, I have neither mingw-gcc nor cygwin installed. > > I have just run again CMake from scratch to produce win32 project, > and this time everything is fine in vtkConfigure.h. > I don't know why yesterday CMake ended with this mistake in > vtkConfigure.h > Sorry for reporting what seems to be a wrong issue. > > > I've had similar cmake mess-ups occur when I forget to run the vcvars > .bat file, or when I otherwise don't have the environment variables > set correctly. > > Also, whenever you make compiler-related changes to your configuration > (e.g. changing from 32-bit to 64-bit), be sure to start with a clean > build directory and a new CMakeCache.txt. > > - David > Hum, I always run CMake from GUI and never run vcvars.bat. Now thinking a bit more about yesterday error, I think VC2010 was launched when I run CMake, which could be a reason. I'll avoid that in the future. Pof -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Sep 16 16:49:58 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 16 Sep 2015 14:49:58 -0600 Subject: [vtkusers] =?utf-8?q?non-square_image_=22cropped=22_after_rotate_?= =?utf-8?q?90=C2=BA?= In-Reply-To: <1442432769029-5733980.post@n5.nabble.com> References: <1442432769029-5733980.post@n5.nabble.com> Message-ID: On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi wrote: > Hi Marcos, > > Can you compare the extent of the output of vtkImageReslice against its > input? My gut feeling is that they are not equal. > I suggest to use SetResliceAxes() (using transform->GetMatrix()) instead of SetResliceTransform. Here is why: When you use SetResliceAxes(), vtkImageReslice will transform the input sampling (i.e. the extent and spacing) so that the output extent is rotated as compared to the input extent. Another option is to manually set the output extent, with reslice->SetOutputExtent(). - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From pedropaulobmjr at hotmail.com Wed Sep 16 17:33:47 2015 From: pedropaulobmjr at hotmail.com (Pedro Paulo) Date: Wed, 16 Sep 2015 21:33:47 +0000 Subject: [vtkusers] Tag DICOM Message-ID: Hello, I'm trying to extract a file dicom its parameters of window and level, but I do not know how, researching I read that vtkMedicalImageProperties class can return these two values, but I have not found an example of how to use it, someone know how I can get these values using this class or otherwise using vtk or gdcm?If possible, an example in python would be good, otherwise it could be in C++ anyway.I thank the attention. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Sep 16 17:55:59 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 16 Sep 2015 15:55:59 -0600 Subject: [vtkusers] Tag DICOM In-Reply-To: References: Message-ID: Hi Pedro, The vtkDICOMImageReader is an old class, nobody is maintaining it, and it does not provide a vtkMedicalImageProperties instance. I recommend trying vtk-dicom (https://github.com/dgobbi/vtk-dicom/), it has a dicom reader that provides full access to all meta-data, as well as vtkMedicalImageProperties for the files that it reads. It also has some pdf documentation (not yet complete), and a small number of examples. (I'm biased, of course, because I wrote it :-) - David On Wed, Sep 16, 2015 at 3:33 PM, Pedro Paulo wrote: > Hello, I'm trying to extract a file dicom its parameters of window and > level, but I do not know how, researching I read that > vtkMedicalImageProperties class can return these two values, but I have not > found an example of how to use it, someone know how I can get these values > using this class or otherwise using vtk or gdcm? > If possible, an example in python would be good, otherwise it could be in > C++ anyway. > I thank the attention. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ben.boeckel at kitware.com Wed Sep 16 18:02:29 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 16 Sep 2015 18:02:29 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> Message-ID: <20150916220229.GA18438@megas.khq.kitware.com> On Thu, Sep 10, 2015 at 12:19:21 -0400, Audrius Stundzia wrote: > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL2); ... > only generates new link error messages of the type > > 1>stdafx.obj : error LNK2019: unresolved external symbol "void __cdecl > vtkRenderingFreeTypeOpenGL2_AutoInit_Construct(void)" > (?vtkRenderingFreeTypeOpenGL2_AutoInit_Construct@@YAXXZ) referenced in > function "public: __cdecl vtkRenderingFreeTypeOpenGL2_ModuleInit::vtk- > RenderingFreeTypeOpenGL2_ModuleInit(void)" > (??0vtkRenderingFreeTypeOpenGL2_ModuleInit@@QEAA at XZ) This module does not exist (and the vtkRenderingFreeTypeOpenGL module is also gone). --Be From ben.boeckel at kitware.com Wed Sep 16 18:04:13 2015 From: ben.boeckel at kitware.com (Ben Boeckel) Date: Wed, 16 Sep 2015 18:04:13 -0400 Subject: [vtkusers] Installing VTK 6.2.0 in LINUX In-Reply-To: References: Message-ID: <20150916220413.GB18438@megas.khq.kitware.com> On Fri, Sep 11, 2015 at 10:46:57 +0000, Yan wrote: > If I set VTK-DIR as ~/VTK-6.2.0/lib/cmake/vtk-6.2, but it causes other > problems in my program. What are these other problems? This directory is the right setting for VTK_DIR. --Ben From fotosentido at gmail.com Wed Sep 16 18:24:25 2015 From: fotosentido at gmail.com (Marcos) Date: Thu, 17 Sep 2015 00:24:25 +0200 Subject: [vtkusers] =?utf-8?q?Fwd=3A__non-square_image_=22cropped=22_after?= =?utf-8?q?_rotate_90=C2=BA?= In-Reply-To: References: <1442432769029-5733980.post@n5.nabble.com> Message-ID: Hi, I tried before woth SetResliceAxes, but I didn't get how to use a vtkMatrix4x4 as I said in another post. It was working with SetResliceTransform, until I saw that. I tried to do this: void ViewerWidget::rotateCalculate(int angle, double axis[]) { double bounds[6]; con->GetOutput()->GetBounds(bounds); double center[3]; center[0] = (bounds[1] + bounds[0]) / 2.0; center[1] = (bounds[3] + bounds[2]) / 2.0; center[2] = (bounds[5] + bounds[4]) / 2.0; transform->Translate(center[0], center[1], center[2]); transform->RotateWXYZ(angle, axis); transform->Translate(-center[0], -center[1], -center[2]); reslicer->SetResliceTransform(transform); // added this line, reslicer->SetOutputExtent(bounds[2], bounds[3], bounds[0], bounds[1], bounds[4], bounds[5]); reslicer->Update(); } I got an exception : read access violation on vtkImageMapToWindowLevelColors ::ThreadedRequestData even with square images. The bound values for a non square-image (multiframe): 299.5, 898.5, 214.5, 643.5, 4.5, 13.5 The bound values for the square image (multiframe): 127.5, 382.5, 127.5, 382.5, 521.024, 1563.0749 2015-09-16 22:49 GMT+02:00 David Gobbi : > On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi > wrote: > >> Hi Marcos, >> >> Can you compare the extent of the output of vtkImageReslice against its >> input? My gut feeling is that they are not equal. >> > > I suggest to use SetResliceAxes() (using transform->GetMatrix()) instead of > SetResliceTransform. Here is why: > > When you use SetResliceAxes(), vtkImageReslice will transform the input > sampling (i.e. the extent and spacing) so that the output extent is > rotated as > compared to the input extent. > > Another option is to manually set the output extent, with > reslice->SetOutputExtent(). > > - David > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Wed Sep 16 18:36:31 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Wed, 16 Sep 2015 16:36:31 -0600 Subject: [vtkusers] =?utf-8?q?Fwd=3A_non-square_image_=22cropped=22_after_?= =?utf-8?q?rotate_90=C2=BA?= In-Reply-To: References: <1442432769029-5733980.post@n5.nabble.com> Message-ID: Hi Marcos, Changing to SetResliceAxes is simple. Just do this: reslicer->SetResliceAxes(transform->GetMatrix()); Then remove the call to SetOutputExtent(). The output extent should not be the same as the input extent when you rotate a rectangular image. Also, do not set the Extent with the Bounds. The Bounds and the Extent are not the same thing (here the Bounds is measured in millimetres, but the Extent is measured in voxels). It might have worked for you if your voxel size was 1mm x 1mm x 1mm, but in general this is not the case. - David On Wed, Sep 16, 2015 at 4:24 PM, Marcos wrote: > > Hi, > > I tried before woth SetResliceAxes, but I didn't get how to use a > vtkMatrix4x4 as I said in another post. > > It was working with SetResliceTransform, until I saw that. > > > I tried to do this: > > void ViewerWidget::rotateCalculate(int angle, double axis[]) > > { > > double bounds[6]; > > con->GetOutput()->GetBounds(bounds); > > double center[3]; > > center[0] = (bounds[1] + bounds[0]) / 2.0; > > center[1] = (bounds[3] + bounds[2]) / 2.0; > > center[2] = (bounds[5] + bounds[4]) / 2.0; > > transform->Translate(center[0], center[1], center[2]); > > transform->RotateWXYZ(angle, axis); > > transform->Translate(-center[0], -center[1], -center[2]); > > reslicer->SetResliceTransform(transform); > > > // added this line, > > reslicer->SetOutputExtent(bounds[2], bounds[3], bounds[0], bounds[1], > > bounds[4], bounds[5]); > > > reslicer->Update(); > > } > > > I got an exception : read access violation on > vtkImageMapToWindowLevelColors::ThreadedRequestData > even with square images. > > The bound values for a non square-image (multiframe): > 299.5, 898.5, 214.5, 643.5, 4.5, 13.5 > > The bound values for the square image (multiframe): > 127.5, 382.5, 127.5, 382.5, 521.024, 1563.0749 > > > 2015-09-16 22:49 GMT+02:00 David Gobbi : > >> On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi >> wrote: >> >>> Hi Marcos, >>> >>> Can you compare the extent of the output of vtkImageReslice against its >>> input? My gut feeling is that they are not equal. >>> >> >> I suggest to use SetResliceAxes() (using transform->GetMatrix()) instead >> of >> SetResliceTransform. Here is why: >> >> When you use SetResliceAxes(), vtkImageReslice will transform the input >> sampling (i.e. the extent and spacing) so that the output extent is >> rotated as >> compared to the input extent. >> >> Another option is to manually set the output extent, with >> reslice->SetOutputExtent(). >> >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 16 19:41:48 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 16 Sep 2015 23:41:48 +0000 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> Message-ID: Hi, I was able to build ActiViz successfully. Altough Mummy did not completely built, I got the 2 Kitware.Mummy DLLs that are needed for ActiViz to be built as well as the mummy.exe file. *I thank Mark for all the information he provided*, I'll try to post the steps I followed, it's pretty similar to what you can find in the Wiki Page but there are some tweaks that need to be done in order to get it working. I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring the project with Cmake and needed to change vtkCommonEL_dll to vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll in the vtkProgrammableAttributeDataFilter_Extra.cs Regards, Matias. El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman < mark at cascadeacoustic.com> escribi?: > >Why not just publish a git branch with your changes on GitHub or some > >other publicly hosted site? Perhaps your branch would get picked up by > >the folks maintaining the ActiViz repo now. > > Because I don't use git. We use TFS at work, and the easiest way to > publish it was to zip it all up and put it on a cloud drive. > > Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real > solution. What is the point in patching it for modern VS support if it's a > dead project. Fixing mummy to support the standard VTK wrapping libraries > makes the most since. > > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ------------------------------ > *From*: "David Cole" > *Sent*: Wednesday, September 16, 2015 7:12 AM > *To*: mark at cascadeacoustic.com > *Cc*: "vtkusers at vtk.org" > > *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build > Success > > > "if my idea of adding a second build step can get rid of the > VS2008/MSCRT9 dependency for the final library" > > Yes, I think it absolutely could. It would be based on the assumption, > however, that the interface generated by analyzing the source under > the VS2008 environment would in the end be compatible with what you > compile and link for the final library. And it would mean a two-stage > build, with VS2008 still required for the first stage. > > I would be interested to see if anybody can replace gcc-xml with the > new&improved CastXML, and still build ActiViz using a more modern VS > all in one go. I haven't had time to investigate bringing things up to > date for using CastXML, but if anybody else does, please do let us all > know here on the VTK lists. > > Question for you: > Why not just publish a git branch with your changes on GitHub or some > other publicly hosted site? Perhaps your branch would get picked up by > the folks maintaining the ActiViz repo now. > > > Cheers, > David C. > > > > > On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman > wrote: > > Mallikarjun, > > Your very welcome. I hope they'll help someone else out. I've been very > > excited about using Activiz in a project for years. Since I was a kid > stuck > > running BSD on mac68k I've always enjoyed the challenge of porting > software, > > so I had a great time working on the build. > > > > gccxml generates the XML description of the C++ VTK library exports. > Mummy > > reads these and generates the csharp wrapper files. I really have not dug > > into it deep enough yet to know how the Activiz export layer source fits > > into the puzzle, but if I get some time, I'll see if my idea of adding a > > second build step can get rid of the VS2008/MSCRT9 dependency for the > final > > library. > > > > Mark DeArman > > Cascade Acoustic Research > > http://www.cascadeacoustic.com > > (253) 200-5353 > > > > ________________________________ > > From: "Mallikarjun K" > > Sent: Tuesday, September 15, 2015 9:52 PM > > To: mark at cascadeacoustic.com > > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build > Success > > > > Hi Mark, > > > > Thanks for sharing the source directories. One quick question..if I am > not > > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ > > program, I found link https://github.com/dgobbi/WrapVTK which has a > > generator for xml. > > > > Thank you. > > > > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman > > wrote: > >> > >> Nothing will make it build in VS2013. Because of gccxml, you have to > have > >> VS2008 to do the build. > >> I started to work on patching gccxml, but that was kind of a nightmare > >> I'll leave to someone with more time. > >> I am not a C++ template guru. > >> > >> But, the changes I've made build the binaries targeting .NET 4.0 instead > >> of .NET 2.0. > >> > >> Here is the link to the Source download directory. I'm uploading it > right > >> now, so it will be a little bit. > >> > >> > >> > https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c > >> > >> Mark DeArman > >> Cascade Acoustic Research > >> http://www.cascadeacoustic.com > >> (253) 200-5353 > >> > >> ________________________________ > >> From: "Mallikarjun K" > >> Sent: Monday, September 14, 2015 5:55 AM > >> To: mark at cascadeacoustic.com > >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build > >> Success > >> > >> Hi Mark, > >> > >> Can you send me the patched source directories. I want to make use of > >> activiz 6.2 for vtk 6.2 with vs2013? > >> > >> Thanks > >> > >> > >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman < > mark at cascadeacoustic.com> > >> wrote: > >>> > >>> I finally finished patching and testing the build. > >>> VTK-6.2 built with Intel C++ 14.0 > >>> Activiz 6.2 built with .NET 4.0 > >>> Mummy 1.0.3 built with .NET 4.0 > >>> > >>> If anyone else is having trouble getting this working, feel free to get > >>> in contact with me, I can send you my patched source directories. This > is > >>> my first experience with CMake, and I've got to say it sure made > things a > >>> breeze. > >>> > >>> The only thing which drove me nuts was the number of times a full > rebuild > >>> got triggered after patching individual source files. I wish the > >>> maintainers would remove the gccxml/mummy generate functions from the > >>> configure step, and just make it another build step. > >>> > >>> I hope I can get more involved with the project but I've got a lot of > >>> learning to do before I'd feel comfortable in CMake. > >>> > >>> Mark DeArman > >>> Cascade Acoustic Research > >>> http://www.cascadeacoustic.com > >>> (253) 200-5353 > >>> > >>> _______________________________________________ > >>> Powered by www.kitware.com > >>> > >>> Visit other Kitware open-source projects at > >>> http://www.kitware.com/opensource/opensource.html > >>> > >>> Please keep messages on-topic and check the VTK FAQ at: > >>> http://www.vtk.org/Wiki/VTK_FAQ > >>> > >>> Search the list archives at: http://markmail.org/search/?q=vtkusers > >>> > >>> Follow this link to subscribe/unsubscribe: > >>> http://public.kitware.com/mailman/listinfo/vtkusers > >>> > >> > >> > >> > >> -- > >> With Kind Regards: > >> Mallikarjuna K, > >> 07795531103/09908238861. > >> > >> > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the VTK FAQ at: > >> http://www.vtk.org/Wiki/VTK_FAQ > >> > >> Search the list archives at: http://markmail.org/search/?q=vtkusers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtkusers > >> > > > > > > > > -- > > With Kind Regards: > > Mallikarjuna K, > > 07795531103/09908238861. > > > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > 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 > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From elvis.chen at gmail.com Wed Sep 16 22:28:03 2015 From: elvis.chen at gmail.com (Elvis Chen) Date: Wed, 16 Sep 2015 22:28:03 -0400 Subject: [vtkusers] different interactor style for each renderer Message-ID: hi all, I have 1 vtkRenderWindow with multiple vtkRenderers occupying non-overlapping viewports. Is it possible to assign different interactorstyle for each renderer? or am I forced to use multiple vtkRenderWindows since interactor can only be accessed through vtkRenderWindow? any tip is very much appreciated, -------------- next part -------------- An HTML attachment was scrubbed... URL: From karsten.tausche at student.hpi.uni-potsdam.de Thu Sep 17 04:14:40 2015 From: karsten.tausche at student.hpi.uni-potsdam.de (Karsten Tausche) Date: Thu, 17 Sep 2015 10:14:40 +0200 Subject: [vtkusers] Transparent NaN color with OpenGL2 Message-ID: <55FA7670.7060107@student.hpi.uni-potsdam.de> Hi, I'm using vtkLookupTable::SetNanColor to hide cells with NaN scalar values in my data sets (alpha value set to zero). This worked fine with the old OpenGL backend, but seems to break the depth test with OpenGL2. See the attached images: the red/blue quad is always rendered in the foreground, no matter how you rotate the camera. This happens when you set the alpha value for NaN-values to something different to 1 for both planes. I tested this with today's nightly branch, but it seems to be broken in the OpenGL2 backend since a while. (On Nvidia, Windows 8.1x64, MSVC2015) Is this a bug in the new backend, or is there some parameter that I have to configure for this setup? Thanks, Karsten -------------- next part -------------- A non-text attachment was scrubbed... Name: pos1 - correct.png Type: image/png Size: 11627 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: pos2 - wrong depth order.png Type: image/png Size: 12410 bytes Desc: not available URL: -------------- next part -------------- #include #include #include #include #include #include #include #include #include #include #include #include #include int main() { int resolution = 5; vtkSmartPointer planeSource = vtkSmartPointer::New(); planeSource->SetXResolution(resolution); planeSource->SetYResolution(resolution); planeSource->Update(); vtkPolyData * plane = planeSource->GetOutput(); vtkSmartPointer cellData = vtkSmartPointer::New(); int numValues = resolution * resolution; for (int i = 0; i < numValues; i++) { float value = (i % (resolution - 1) == 0) ? std::nanf(0) : float(i) / (numValues - 1); cellData->InsertNextValue(value); } plane->GetCellData()->SetScalars(cellData); vtkSmartPointer lut1 = vtkSmartPointer::New(); lut1->SetTableRange(0, 1); lut1->SetHueRange(0, 0.5); lut1->SetNumberOfTableValues(numValues); lut1->Build(); lut1->SetNanColor(1, 1, 1, 0); vtkSmartPointer lut2 = vtkSmartPointer::New(); lut2->SetTableRange(0, 1); lut2->SetHueRange(0.5, 1.0); lut2->SetNumberOfTableValues(numValues); lut2->Build(); lut2->SetNanColor(1, 1, 1, 0); vtkSmartPointer mapper1 = vtkSmartPointer::New(); mapper1->SetInputData(plane); mapper1->SetLookupTable(lut1); vtkSmartPointer mapper2 = vtkSmartPointer::New(); mapper2->SetInputData(plane); mapper2->SetLookupTable(lut2); vtkSmartPointer actor1 = vtkSmartPointer::New(); actor1->SetMapper(mapper1); actor1->SetPosition(0, 0, -0.2); actor1->GetProperty()->LightingOff(); vtkSmartPointer actor2 = vtkSmartPointer::New(); actor2->SetMapper(mapper2); actor2->SetPosition(0, 0, 0.2); actor2->GetProperty()->LightingOff(); vtkSmartPointer renderer = vtkSmartPointer::New(); vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->AddRenderer(renderer); vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); renderer->AddActor(actor1); renderer->AddActor(actor2); renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } From marco.dev.open at gmail.com Thu Sep 17 08:12:26 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Thu, 17 Sep 2015 16:42:26 +0430 Subject: [vtkusers] overlay a color-mapped Message-ID: Hi, how to overlay a color-mapped PET image onto an image can you give a guide line Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jose.de.paula at live.com Thu Sep 17 09:20:35 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Thu, 17 Sep 2015 06:20:35 -0700 (MST) Subject: [vtkusers] Modify the format of text shown in distanceWidget In-Reply-To: References: Message-ID: <1442496035296-5734000.post@n5.nabble.com> Jothy, You know me explain why be written as ""% - # 6.3g mm "? I wanted to be able to show two decimal places, arrendondando from the second. Something like .. Decimal :: Round (Decimal :: Parse (lineWidget-> GetLineRepresentation () -> getDistance () ToString ()). 2); -- View this message in context: http://vtk.1045678.n5.nabble.com/Modify-the-format-of-text-shown-in-distanceWidget-tp1251137p5734000.html Sent from the VTK - Users mailing list archive at Nabble.com. From marco.dev.open at gmail.com Thu Sep 17 10:43:58 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Thu, 17 Sep 2015 19:13:58 +0430 Subject: [vtkusers] nrrd to dicom series Message-ID: Hi, How to generate a DICOM series from .nrrd file do you have any way for compound the pipeline itk and vtk Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Thu Sep 17 11:01:19 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Thu, 17 Sep 2015 19:31:19 +0430 Subject: [vtkusers] nrrd to dicom series In-Reply-To: References: Message-ID: Hi, 3D Slicer has a module "Create a Dicom Series" for doing this option Thanks On Thu, Sep 17, 2015 at 7:13 PM, Marco Dev wrote: > Hi, > How to generate a DICOM series from .nrrd file do you have any way for > compound the pipeline itk and vtk > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From liuyanbc157 at gmail.com Thu Sep 17 11:45:54 2015 From: liuyanbc157 at gmail.com (Yan) Date: Thu, 17 Sep 2015 15:45:54 +0000 (UTC) Subject: [vtkusers] vtkTemporalInterpolator Message-ID: Hi,everyone I'm trying to rewrite vtkTemporalInterpolator this class. I have already a class which is rewroten, but in VTK 5.4. Now i'm trying to fix it in VTK 6.2. But I found, RequestData this function is totally different with in VTK 6.2. In my project the new class has also used inTimes, numInTimes, UpTimes and numUptimes, those variables. But in VTK 6.2 in class vtkTemporalInterpolator, I can just see some other variables in function RequestData. So what could I do, can I still use variables in VTK 5.4, but it seems that I must also change some of them, or if I use variables in VTK 6.2. How could I do? Could someone also give me some instructions or hints of the mechanism of those vtkTemporalxxxx class. For me it is relatively hard to understand them all. Thanks in advance Yan From marco.dev.open at gmail.com Thu Sep 17 12:25:51 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Thu, 17 Sep 2015 20:55:51 +0430 Subject: [vtkusers] PET/CT DICOM SERIES Message-ID: Hi, Can you help me I need to the same PET/CT dicom series patient there is a create dicom series module in 3d slicer for convert .nrrd to dicom series But there is not (float) pixel type for converting That .nrrd PET is float so Ii can not convert with correct pixel type Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Thu Sep 17 12:43:32 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Thu, 17 Sep 2015 12:43:32 -0400 Subject: [vtkusers] Python required for vtkDICOM? Message-ID: Is it normal that Python libraries are required when vtkDICOM module is enabled? Otherwise it is a bug in VTK 6.3.0. Just enabling vtkDICOM module requires Python libraries. -------------- next part -------------- An HTML attachment was scrubbed... URL: From fotosentido at gmail.com Thu Sep 17 12:52:02 2015 From: fotosentido at gmail.com (Marcos) Date: Thu, 17 Sep 2015 18:52:02 +0200 Subject: [vtkusers] =?utf-8?q?Fwd=3A_non-square_image_=22cropped=22_after_?= =?utf-8?q?rotate_90=C2=BA?= In-Reply-To: References: <1442432769029-5733980.post@n5.nabble.com> Message-ID: Thank you so much, it worked. Just one thing: after your change, in a multiframe image, when I rotated it, it was still cropped on one side. I noticed that, switching to the next/previous, it was corrected (I could the entire image rotated), so my solution for now is moving to the next frame and inmediatly going back again. 2015-09-17 0:36 GMT+02:00 David Gobbi : > Hi Marcos, > > Changing to SetResliceAxes is simple. Just do this: > > reslicer->SetResliceAxes(transform->GetMatrix()); > > Then remove the call to SetOutputExtent(). > > The output extent should not be the same as the input extent when > you rotate a rectangular image. > > Also, do not set the Extent with the Bounds. The Bounds and the Extent > are not the same thing (here the Bounds is measured in millimetres, but > the Extent is measured in voxels). It might have worked for you if your > voxel size was 1mm x 1mm x 1mm, but in general this is not the case. > > - David > > > > On Wed, Sep 16, 2015 at 4:24 PM, Marcos wrote: > >> >> Hi, >> >> I tried before woth SetResliceAxes, but I didn't get how to use a >> vtkMatrix4x4 as I said in another post. >> >> It was working with SetResliceTransform, until I saw that. >> >> >> I tried to do this: >> >> void ViewerWidget::rotateCalculate(int angle, double axis[]) >> >> { >> >> double bounds[6]; >> >> con->GetOutput()->GetBounds(bounds); >> >> double center[3]; >> >> center[0] = (bounds[1] + bounds[0]) / 2.0; >> >> center[1] = (bounds[3] + bounds[2]) / 2.0; >> >> center[2] = (bounds[5] + bounds[4]) / 2.0; >> >> transform->Translate(center[0], center[1], center[2]); >> >> transform->RotateWXYZ(angle, axis); >> >> transform->Translate(-center[0], -center[1], -center[2]); >> >> reslicer->SetResliceTransform(transform); >> >> >> // added this line, >> >> reslicer->SetOutputExtent(bounds[2], bounds[3], bounds[0], bounds[1], >> >> bounds[4], bounds[5]); >> >> >> reslicer->Update(); >> >> } >> >> >> I got an exception : read access violation on >> vtkImageMapToWindowLevelColors::ThreadedRequestData >> even with square images. >> >> The bound values for a non square-image (multiframe): >> 299.5, 898.5, 214.5, 643.5, 4.5, 13.5 >> >> The bound values for the square image (multiframe): >> 127.5, 382.5, 127.5, 382.5, 521.024, 1563.0749 >> >> >> 2015-09-16 22:49 GMT+02:00 David Gobbi : >> >>> On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi >>> wrote: >>> >>>> Hi Marcos, >>>> >>>> Can you compare the extent of the output of vtkImageReslice against its >>>> input? My gut feeling is that they are not equal. >>>> >>> >>> I suggest to use SetResliceAxes() (using transform->GetMatrix()) instead >>> of >>> SetResliceTransform. Here is why: >>> >>> When you use SetResliceAxes(), vtkImageReslice will transform the input >>> sampling (i.e. the extent and spacing) so that the output extent is >>> rotated as >>> compared to the input extent. >>> >>> Another option is to manually set the output extent, with >>> reslice->SetOutputExtent(). >>> >>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Sep 17 12:59:08 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 17 Sep 2015 10:59:08 -0600 Subject: [vtkusers] Python required for vtkDICOM? In-Reply-To: References: Message-ID: On Thu, Sep 17, 2015 at 10:43 AM, D?enan Zuki? wrote: > Is it normal that Python libraries are required when vtkDICOM module is > enabled? Otherwise it is a bug in VTK 6.3.0. > > Just enabling vtkDICOM module requires Python libraries. > The "remote modules" feature was added just before the VTK 6.3 release, and of course it can benefit from additional testing. The CMakeLists.txt in vtk-dicom itself don't yet fit cleanly into the needed "modular" configuration. Bill did a couple passes through the cmake code to get things working, and I meant to do a sweep through the code myself last weekend to clean things up, but I've been overextended recently. Hopefully, everything will be tidy by VTK 7 (whenever that will be) and if there is a VTK 6.4, it'll be fixed there, too. But for now, I recommend that people using VTK 6.3 (or earlier) build vtk-dicom separately rather than enable it as a remote module. - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Thu Sep 17 13:04:08 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Thu, 17 Sep 2015 13:04:08 -0400 Subject: [vtkusers] Python required for vtkDICOM? In-Reply-To: References: Message-ID: Thanks David. I was just testing, I did not need vtkDICOM. On Thu, Sep 17, 2015 at 12:59 PM, David Gobbi wrote: > On Thu, Sep 17, 2015 at 10:43 AM, D?enan Zuki? wrote: > >> Is it normal that Python libraries are required when vtkDICOM module is >> enabled? Otherwise it is a bug in VTK 6.3.0. >> >> Just enabling vtkDICOM module requires Python libraries. >> > > The "remote modules" feature was added just before the VTK 6.3 release, > and of course it can benefit from additional testing. The CMakeLists.txt > in > vtk-dicom itself don't yet fit cleanly into the needed "modular" > configuration. > Bill did a couple passes through the cmake code to get things working, and > I meant to do a sweep through the code myself last weekend to clean things > up, but I've been overextended recently. > > Hopefully, everything will be tidy by VTK 7 (whenever that will be) and > if there is a VTK 6.4, it'll be fixed there, too. > > But for now, I recommend that people using VTK 6.3 (or earlier) build > vtk-dicom separately rather than enable it as a remote module. > > - David > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Sep 17 13:06:48 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 17 Sep 2015 11:06:48 -0600 Subject: [vtkusers] =?utf-8?q?Fwd=3A_non-square_image_=22cropped=22_after_?= =?utf-8?q?rotate_90=C2=BA?= In-Reply-To: References: <1442432769029-5733980.post@n5.nabble.com> Message-ID: Hi Marcos, You'll have to describe your pipeline in more detail before I can help. - David On Thu, Sep 17, 2015 at 10:52 AM, Marcos wrote: > Thank you so much, it worked. > > Just one thing: after your change, in a multiframe image, when I rotated > it, it was still cropped on one side. I noticed that, switching to the > next/previous, it was corrected (I could the entire image rotated), so my > solution for now is moving to the next frame and inmediatly going back > again. > > > > 2015-09-17 0:36 GMT+02:00 David Gobbi : > >> Hi Marcos, >> >> Changing to SetResliceAxes is simple. Just do this: >> >> reslicer->SetResliceAxes(transform->GetMatrix()); >> >> Then remove the call to SetOutputExtent(). >> >> The output extent should not be the same as the input extent when >> you rotate a rectangular image. >> >> Also, do not set the Extent with the Bounds. The Bounds and the Extent >> are not the same thing (here the Bounds is measured in millimetres, but >> the Extent is measured in voxels). It might have worked for you if your >> voxel size was 1mm x 1mm x 1mm, but in general this is not the case. >> >> - David >> >> >> >> On Wed, Sep 16, 2015 at 4:24 PM, Marcos wrote: >> >>> >>> Hi, >>> >>> I tried before woth SetResliceAxes, but I didn't get how to use a >>> vtkMatrix4x4 as I said in another post. >>> >>> It was working with SetResliceTransform, until I saw that. >>> >>> >>> I tried to do this: >>> >>> void ViewerWidget::rotateCalculate(int angle, double axis[]) >>> >>> { >>> >>> double bounds[6]; >>> >>> con->GetOutput()->GetBounds(bounds); >>> >>> double center[3]; >>> >>> center[0] = (bounds[1] + bounds[0]) / 2.0; >>> >>> center[1] = (bounds[3] + bounds[2]) / 2.0; >>> >>> center[2] = (bounds[5] + bounds[4]) / 2.0; >>> >>> transform->Translate(center[0], center[1], center[2]); >>> >>> transform->RotateWXYZ(angle, axis); >>> >>> transform->Translate(-center[0], -center[1], -center[2]); >>> >>> reslicer->SetResliceTransform(transform); >>> >>> >>> // added this line, >>> >>> reslicer->SetOutputExtent(bounds[2], bounds[3], bounds[0], bounds[1], >>> >>> bounds[4], bounds[5]); >>> >>> >>> reslicer->Update(); >>> >>> } >>> >>> >>> I got an exception : read access violation on >>> vtkImageMapToWindowLevelColors::ThreadedRequestData >>> even with square images. >>> >>> The bound values for a non square-image (multiframe): >>> 299.5, 898.5, 214.5, 643.5, 4.5, 13.5 >>> >>> The bound values for the square image (multiframe): >>> 127.5, 382.5, 127.5, 382.5, 521.024, 1563.0749 >>> >>> >>> 2015-09-16 22:49 GMT+02:00 David Gobbi : >>> >>>> On Wed, Sep 16, 2015 at 1:46 PM, Siavash Khallaghi >>> > wrote: >>>> >>>>> Hi Marcos, >>>>> >>>>> Can you compare the extent of the output of vtkImageReslice against its >>>>> input? My gut feeling is that they are not equal. >>>>> >>>> >>>> I suggest to use SetResliceAxes() (using transform->GetMatrix()) >>>> instead of >>>> SetResliceTransform. Here is why: >>>> >>>> When you use SetResliceAxes(), vtkImageReslice will transform the input >>>> sampling (i.e. the extent and spacing) so that the output extent is >>>> rotated as >>>> compared to the input extent. >>>> >>>> Another option is to manually set the output extent, with >>>> reslice->SetOutputExtent(). >>>> >>> -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.gobbi at gmail.com Thu Sep 17 13:09:45 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Thu, 17 Sep 2015 11:09:45 -0600 Subject: [vtkusers] Python required for vtkDICOM? In-Reply-To: References: Message-ID: Would you be willing to do some more testing, when I submit patches for this? ;-) - David On Thu, Sep 17, 2015 at 11:04 AM, D?enan Zuki? wrote: > Thanks David. > > I was just testing, I did not need vtkDICOM. > > On Thu, Sep 17, 2015 at 12:59 PM, David Gobbi > wrote: > >> On Thu, Sep 17, 2015 at 10:43 AM, D?enan Zuki? wrote: >> >>> Is it normal that Python libraries are required when vtkDICOM module is >>> enabled? Otherwise it is a bug in VTK 6.3.0. >>> >>> Just enabling vtkDICOM module requires Python libraries. >>> >> >> The "remote modules" feature was added just before the VTK 6.3 release, >> and of course it can benefit from additional testing. The CMakeLists.txt >> in >> vtk-dicom itself don't yet fit cleanly into the needed "modular" >> configuration. >> Bill did a couple passes through the cmake code to get things working, and >> I meant to do a sweep through the code myself last weekend to clean things >> up, but I've been overextended recently. >> >> Hopefully, everything will be tidy by VTK 7 (whenever that will be) and >> if there is a VTK 6.4, it'll be fixed there, too. >> >> But for now, I recommend that people using VTK 6.3 (or earlier) build >> vtk-dicom separately rather than enable it as a remote module. >> >> - David >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dzenanz at gmail.com Thu Sep 17 13:10:56 2015 From: dzenanz at gmail.com (=?UTF-8?B?RMW+ZW5hbiBadWtpxIc=?=) Date: Thu, 17 Sep 2015 13:10:56 -0400 Subject: [vtkusers] Python required for vtkDICOM? In-Reply-To: References: Message-ID: Sure! On Thu, Sep 17, 2015 at 1:09 PM, David Gobbi wrote: > Would you be willing to do some more testing, when I submit patches for > this? ;-) > > - David > > > On Thu, Sep 17, 2015 at 11:04 AM, D?enan Zuki? wrote: > >> Thanks David. >> >> I was just testing, I did not need vtkDICOM. >> >> On Thu, Sep 17, 2015 at 12:59 PM, David Gobbi >> wrote: >> >>> On Thu, Sep 17, 2015 at 10:43 AM, D?enan Zuki? >>> wrote: >>> >>>> Is it normal that Python libraries are required when vtkDICOM module is >>>> enabled? Otherwise it is a bug in VTK 6.3.0. >>>> >>>> Just enabling vtkDICOM module requires Python libraries. >>>> >>> >>> The "remote modules" feature was added just before the VTK 6.3 release, >>> and of course it can benefit from additional testing. The >>> CMakeLists.txt in >>> vtk-dicom itself don't yet fit cleanly into the needed "modular" >>> configuration. >>> Bill did a couple passes through the cmake code to get things working, >>> and >>> I meant to do a sweep through the code myself last weekend to clean >>> things >>> up, but I've been overextended recently. >>> >>> Hopefully, everything will be tidy by VTK 7 (whenever that will be) and >>> if there is a VTK 6.4, it'll be fixed there, too. >>> >>> But for now, I recommend that people using VTK 6.3 (or earlier) build >>> vtk-dicom separately rather than enable it as a remote module. >>> >>> - David >>> >>> >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: From siavashk at ece.ubc.ca Thu Sep 17 15:24:51 2015 From: siavashk at ece.ubc.ca (Siavash Khallaghi) Date: Thu, 17 Sep 2015 12:24:51 -0700 (MST) Subject: [vtkusers] vtkImageAppend Runtime Error In-Reply-To: <1442364573889-5733951.post@n5.nabble.com> References: <1442364573889-5733951.post@n5.nabble.com> Message-ID: <1442517891806-5734014.post@n5.nabble.com> After a lot of debugging, I found the culprit. It has nothing to do with vtkImageAppend, but the inputs that I was supplying to the filter. Basically, overlapImage has bad memory sometimes (I don't know why). overlapImage is the output of a vtkExtractVOI filter and has mapper->GetInput() as input data. I was writing it out after the update call, and everything worked fine, so I did not suspect it. After the vtkExtractVOI update call, I set the the extent of the overlapImage to be between (0, 0, 0) and (Nx, Ny, Nz), where is N is the number of pixels in each dimension. This is because I do calculations with the assumption that the extent starts from (0, 0, 0). Now something really weird happens: I noticed that after overlapImage->SetExtent(0, Nx, 0, Ny, 0, Nz), I can no longer write out the overlapImage. If I write it out, it would be empty (size of 0 KB). So when I was passing it to vtkImageAppend, it would also crash my program. Here is an example set of numbers for the extent: overlapImage extent before SetExtent: 501, 1910, 251, 1007, 0, 0 overlapImage extent after SetExtent: 0, 1410, 0, 757, 0, 0 Does anyone know why setting the image extent manually would mess up the memory for vtkImageData? Maybe SetExtent is not meant to be used in this way? In the mean time, I will work on creating a small program that would reproducible the problem. Thank you, Siavash -- View this message in context: http://vtk.1045678.n5.nabble.com/vtkImageAppend-Runtime-Error-tp5733951p5734014.html Sent from the VTK - Users mailing list archive at Nabble.com. From lgazoni at gmail.com Thu Sep 17 19:32:31 2015 From: lgazoni at gmail.com (Leandro Gazoni) Date: Thu, 17 Sep 2015 20:32:31 -0300 Subject: [vtkusers] Show LabelIds start from 1 - vtkLabeledDataMapper Message-ID: Hello, I am creating a program to show label Ids of a mesh, but could not get show these labels starting with number one. Would be able to modify the display of labes to start from 1 rather than zero? Atenciosamente, Leandro Gazoni -------------- next part -------------- An HTML attachment was scrubbed... URL: From nirhal at post.bgu.ac.il Fri Sep 18 11:02:38 2015 From: nirhal at post.bgu.ac.il (nirhal) Date: Fri, 18 Sep 2015 08:02:38 -0700 (MST) Subject: [vtkusers] VTK compiling error with MinGW-w64: "cast loses precision" Message-ID: <1442588558605-5734017.post@n5.nabble.com> Hi, I'm trying to compile VTK 6.3 (from git) using MinGW-w64. During the comilation i'm getting this error: C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function 'FT_ Bitmap* vtkFreeTypeTools::GetBitmap(FT_UInt32, FTC_Scaler, FT_UInt&, FT_BitmapGl yphRec_*&)': C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2348:75: error: cast fro m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision [-fpermissive] if (!this->GetGlyphIndex(reinterpret_cast(scaler->face_id), c, ^ C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function 'FT_ Outline* vtkFreeTypeTools::GetOutline(FT_UInt32, FTC_Scaler, FT_UInt&, FT_Outlin eGlyphRec_*&)': C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2410:75: error: cast fro m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision [-fpermissive] if (!this->GetGlyphIndex(reinterpret_cast(scaler->face_id), c, What should i do? Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-compiling-error-with-MinGW-w64-cast-loses-precision-tp5734017.html Sent from the VTK - Users mailing list archive at Nabble.com. From chaffra at gmail.com Fri Sep 18 11:30:12 2015 From: chaffra at gmail.com (Chaffra Affouda) Date: Fri, 18 Sep 2015 11:30:12 -0400 Subject: [vtkusers] VTK compiling error with MinGW-w64: "cast loses precision" In-Reply-To: <1442588558605-5734017.post@n5.nabble.com> References: <1442588558605-5734017.post@n5.nabble.com> Message-ID: <55FC2E04.8010600@gmail.com> Hi Nirhal, I had a similar error but this should have been fixed in the trunk. line 2348 should read if (!this->GetGlyphIndex(reinterpret_cast(scaler->face_id), c, &gindex)) If not you need to pull from the trunk. Chaffra On 9/18/2015 11:02 AM, nirhal wrote: > Hi, > > I'm trying to compile VTK 6.3 (from git) using MinGW-w64. > During the comilation i'm getting this error: > > C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function > 'FT_ > Bitmap* vtkFreeTypeTools::GetBitmap(FT_UInt32, FTC_Scaler, FT_UInt&, > FT_BitmapGl > yphRec_*&)': > C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2348:75: error: cast > fro > m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision > [-fpermissive] > > if (!this->GetGlyphIndex(reinterpret_cast long>(scaler->face_id), c, > > ^ > C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx: In member function > 'FT_ > Outline* vtkFreeTypeTools::GetOutline(FT_UInt32, FTC_Scaler, FT_UInt&, > FT_Outlin > eGlyphRec_*&)': > C:\libs\VTK\VTK\Rendering\FreeType\vtkFreeTypeTools.cxx:2410:75: error: cast > fro > m 'FTC_FaceID {aka void*}' to 'long unsigned int' loses precision > [-fpermissive] > > if (!this->GetGlyphIndex(reinterpret_cast long>(scaler->face_id), c, > > > What should i do? > > Thanks > > > > -- > View this message in context: http://vtk.1045678.n5.nabble.com/VTK-compiling-error-with-MinGW-w64-cast-loses-precision-tp5734017.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 friebel at izbi.uni-leipzig.de Fri Sep 18 11:23:27 2015 From: friebel at izbi.uni-leipzig.de (Adrian Friebel) Date: Fri, 18 Sep 2015 17:23:27 +0200 Subject: [vtkusers] Removal of graph vertices causes error: Could not find edge in source edge list. Message-ID: <55FC2C6F.5080207@izbi.uni-leipzig.de> Hi everyone, I recently moved on from VTK 5.8 / 5.10 to the 6.3 build and apparently the vtkGraph behaves now a bit unexpected. In the minimal example below I load an undirected graph (points & pedigreeIDs attached to vertices, spatially neighbouring vertices are connected), collect all pedIDs and then try to remove one vertex after the other, using their pedIDs. That worked perfectly fine in 5.8. And it works fine for the first couple hundred vertices, but occasionally some throw the following message: ERROR: In /path/to/VTK-6.3.0/Common/DataModel/vtkGraphInternals.cxx , line 53 vtkGraphInternals (0x7ffc54080080): Could not find edge in source edge list. In another test I tried to manually remove all edges of a vertex before removing the vertex itself, which didn't help either in the above cases: The number of edges of the graph was correctly decremented by the number of egdes the vertex had. But despite the vertices that threw above error message apparently had still some of the edges they previously had. Is there a new update-call that is mandatory after removal of vertices/edges, or is it a bug? Any idea where it is coming from? I tried 6.2 with the same result. I am a bit lost here, help is much appreciated, Adrian. vtkSmartPointer g = vtkMutableUndirectedGraph::New(); vtkSmartPointer graphReader = vtkSmartPointer::New(); graphReader->SetFileName("/path/to/graph.txt "); graphReader->Update(); graphReader->GetOutput()->ToUndirectedGraph(g); std::cout << "graph has " << g->GetVertexData()->GetNumberOfArrays() << " vertex arrays and " << g->GetEdgeData()->GetNumberOfArrays() << " edge arrays" << std::endl; vtkSmartPointer pedigreeIdArray = vtkUnsignedLongArray::SafeDownCast(g->GetVertexData()->GetPedigreeIds()); vtkSmartPointer it = vtkSmartPointer::New(); g->GetVertices(it); std::set vertsToDelete; while (it->HasNext()) { vtkIdType v = it->Next(); vertsToDelete.insert(pedigreeIdArray- >GetValue(v)); } for(std::set::iterator it=vertsToDelete.begin(); it!=vertsToDelete.end(); ++it) { g->RemoveVertex(g->FindVertex(*it)); g->Modified(); std::cout << "num verts = " << g->GetNumberOfVertices() << " and num pedIDEntries = " << g->GetVertexData()->GetPedigreeIds()->GetNumberOfTuples() << std::endl; for(int i=0; iGetVertexData()->GetNumberOfArrays(); i++) g->GetVertexData()->GetArray(i)->DataChanged(); g->Squeeze(); } vtkSmartPointer graphWriter = vtkSmartPointer::New(); graphWriter->SetFileName("/scratch/friebel/TestData/graphVTKError/graph_collapsed.txt "); graphWriter->SetInputData(g); graphWriter->Update(); -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- # vtk DataFile Version 4.0 vtk output ASCII DATASET UNDIRECTED_GRAPH POINTS 1763 float 10.1017 10.3347 0 32.1078 10.7118 0 54.1644 11.8279 0 77.8851 10.6984 0 102.028 10.3401 0 128.197 12.0757 0 153.129 11.3543 0 177.478 9.49714 0 201.994 12.5198 0 230.702 7.16387 0 268.21 8.44878 0 290.603 11.1965 0 315.837 10.5342 0 342.166 9.23274 0 368.764 10.203 0 394.304 12.3945 0 419.85 9.1752 0 444.01 13.2093 0 466.947 9.9425 0 488.752 11.619 0 511.122 11.298 0 536.319 10.2316 0 563.93 10.1933 0 588.153 16.0687 0 607.374 10.3307 0 631.205 11.7204 0 657.463 13.8061 0 684.667 9.00351 0 716.028 10.5868 0 751.082 8.77217 0 779.378 13.0281 0 808.622 9.46523 0 838.93 10.3713 0 861.322 14.2705 0 879.643 12.6548 0 900.706 9.20088 0 923.534 10.5777 0 949.403 10.3467 0 978.16 9.38333 0 1011.45 9.57707 0 250.244 15.7044 0 735.373 22.7764 0 1002.19 25.0066 0 351.361 27.9475 0 689.861 28.1016 0 222.611 28.0654 0 324.933 31.6661 0 828.666 33.3273 0 108.277 32.2346 0 954.608 32.1641 0 62.3447 32.1523 0 419.544 30.2166 0 555.181 32.3453 0 803.227 30.7504 0 899.257 29.9869 0 178.422 32.4911 0 268.118 32.0509 0 374.204 33.814 0 466.101 34.3 0 516.416 34.1809 0 577.172 35.4941 0 759.57 32.8692 0 979.852 35.2587 0 11.4211 33.7842 0 35.6731 33.2552 0 85.2413 36.1074 0 296.084 34.233 0 535.637 32.2948 0 926.415 33.4633 0 151.379 35.0754 0 491.9 36.0925 0 240.923 35.0552 0 716.116 36.2148 0 852.153 35.3078 0 127.888 36.9547 0 607.512 34.1897 0 631.989 34.4861 0 654.193 36.875 0 878.136 43.363 0 397.374 41.0186 0 440.448 41.4218 0 779.3 40.4939 0 206.264 42.6867 0 740.287 42.9922 0 1008.43 46.6058 0 676.43 47.4439 0 342.773 48.6092 0 250.168 49.1248 0 362.359 54.2176 0 702.572 55.0742 0 812.438 49.7541 0 905.651 53.2588 0 40.5051 54.113 0 59.2617 54.5592 0 590.073 57.3032 0 613.451 53.9232 0 795.054 57.5206 0 273.559 54.0238 0 319.456 56.9928 0 564.244 57.6611 0 848.275 55.3983 0 949.519 56.4343 0 104.021 58.8994 0 635.24 58.9746 0 185.423 55.9162 0 420.065 59.3672 0 514.295 56.6883 0 539.309 56.1219 0 11.9848 57.339 0 133.327 58.3374 0 160.108 59.4878 0 753.857 61.6395 0 927.461 57.5048 0 973.155 59.0971 0 78.5551 58.8957 0 293.895 59.4332 0 231.661 62.221 0 387.243 60.5409 0 454.562 59.5979 0 491.031 61.2129 0 470.787 64.787 0 726.371 61.7892 0 881.822 62.4815 0 657.376 64.175 0 776.672 61.0031 0 822.541 65.0351 0 207.338 67.6385 0 1006.78 71.4426 0 687.72 73.544 0 255.442 73.2472 0 855.401 73.8535 0 443.784 80.2822 0 31.1744 75.8808 0 345.212 77.0429 0 370.147 75.1928 0 181.175 79.9062 0 396.235 78.8714 0 898.274 78.1634 0 921.891 79.2786 0 123.042 80.2388 0 74.0381 79.4007 0 277.421 81.441 0 612.972 79.1589 0 770.89 79.5533 0 799.169 79.4311 0 512.274 78.7906 0 535.821 79.1843 0 670.526 81.7895 0 977.939 83.2607 0 52.0548 82.1174 0 302.042 82.1337 0 324.467 81.9595 0 584.424 83.487 0 947.38 81.2766 0 10.0321 83.0981 0 558.085 84.6161 0 707.823 84.169 0 735.998 83.2568 0 830.289 83.2276 0 874.154 82.4375 0 151.62 84.8778 0 97.1996 84.3232 0 641.126 85.9763 0 420.172 86.9088 0 481.441 84.1649 0 230.097 85.2531 0 205.537 87.3522 0 497 91.8071 0 463.912 97.4091 0 366.698 96.206 0 753.702 97.45 0 250.36 98.4335 0 1006.82 99.9355 0 803.026 101.811 0 855.066 101.028 0 903.886 102.747 0 31.6541 103.353 0 173.109 103.119 0 518.979 102.797 0 661.01 104.703 0 718.972 102.866 0 777.982 104.858 0 107.9 105.651 0 393.182 103.414 0 688.275 104.971 0 830.118 104.813 0 881.477 101.259 0 926.255 104.232 0 82.1115 106.24 0 130.916 106.106 0 538.531 103.507 0 948.53 104.224 0 57.8843 106.054 0 271.353 108.146 0 297.075 107.254 0 320.21 103.852 0 612.086 104.544 0 198.617 108.965 0 344.27 109.613 0 7.48588 105.294 0 634.686 110.322 0 971.724 109.239 0 224.46 106.231 0 565.276 107.738 0 590.315 107.871 0 440.896 112.076 0 496.903 109.14 0 151.13 112.325 0 417.761 114.774 0 733.497 115.322 0 370.903 121.507 0 755.958 122.45 0 482.455 123.704 0 986.202 127.124 0 243.024 123.621 0 462.849 121.119 0 876.309 123.839 0 10.8004 124.98 0 542.979 123.488 0 707.299 125.111 0 851.182 127.511 0 218.423 130.487 0 579.901 124.894 0 800.755 127.135 0 826.102 127.06 0 1009.75 129.564 0 173.109 126.667 0 514.186 129.048 0 606.913 129.07 0 658.089 127.7 0 680.719 128.866 0 903.971 129.021 0 28.2651 131.962 0 49.8082 128.767 0 101.586 132.218 0 320.479 128.083 0 777.881 129.395 0 930.676 129.372 0 954.867 130.128 0 74.1614 134.373 0 290.229 129.322 0 397.128 132.215 0 131.077 134.508 0 265.377 133.182 0 153.432 131.737 0 193.247 132.728 0 561.311 137.283 0 632.721 133.543 0 733.155 136.536 0 340.553 141.842 0 454.267 140.914 0 429.269 140.534 0 360.304 140.779 0 413.17 147.998 0 490.232 147.898 0 585.998 146.685 0 299.866 148.797 0 535.613 148.892 0 690.035 150.364 0 712.956 148.725 0 961.547 149.976 0 246.648 149.924 0 665.069 149.426 0 757.113 149.298 0 807.342 147.524 0 876.36 150.289 0 179.553 152.458 0 10.2018 151.888 0 205.859 154.769 0 386.023 153.477 0 470.186 156.886 0 828.541 152.115 0 853.49 153.141 0 898.086 153.018 0 1011.71 161.05 0 32.9346 152.755 0 54.2181 154.859 0 228.766 153.373 0 509.292 155.002 0 611.17 152.536 0 639.853 152.876 0 781.901 154.229 0 926.663 153.389 0 987.877 156.285 0 158.168 153.396 0 272.354 155.867 0 321.69 155.633 0 437.547 157.824 0 128.131 155.442 0 103.156 157.418 0 366.204 161.741 0 564.005 160.529 0 735.318 162.345 0 78.6514 160.143 0 402.1 173 0 804.434 173.04 0 952.202 173.605 0 346.409 173.791 0 526.983 172.167 0 596.619 171.246 0 291.731 171.545 0 626.488 174.257 0 904.548 174.484 0 149.866 173.769 0 194.057 173.026 0 226.189 176.104 0 253.333 172.797 0 680.82 174.784 0 708.026 172.841 0 654.585 174.182 0 832.574 175.216 0 129.39 176.294 0 459.967 178.542 0 490.087 176.148 0 860.71 176.303 0 34.9382 175.17 0 320.601 177.356 0 424.087 186.921 0 758.87 178.982 0 882.624 179.733 0 976.884 179.367 0 11.2389 177.137 0 59.038 177.183 0 437.448 177.333 0 781.484 177.503 0 928.173 179.531 0 174.263 181.553 0 106.009 179.936 0 554.249 182.841 0 83.5709 181.243 0 576.261 185.098 0 378.587 182.013 0 733.157 187.31 0 1012.9 191.896 0 205.045 191.778 0 269.033 186.623 0 505.552 192.138 0 601.027 194.071 0 996.302 194.041 0 533.924 195.12 0 294.392 193.495 0 159.546 199.19 0 246.879 199.317 0 365.477 195.834 0 473.082 198.945 0 849.261 198.056 0 119.61 196.777 0 636.933 197.672 0 659.327 196.868 0 824.161 198.563 0 391.715 201.159 0 706.81 197.52 0 344.154 201.328 0 621.902 201.064 0 35.1993 198.775 0 318.36 202.57 0 683.87 200.997 0 781.36 200.551 0 804.713 202.123 0 60.2658 199.183 0 901.998 202.026 0 952.74 198.119 0 223.814 204.09 0 416.285 204.055 0 875.76 203.606 0 11.2345 203.192 0 137.806 206.977 0 977.379 205.285 0 86.843 203.411 0 186.564 205.259 0 752.389 206.398 0 925.582 203.858 0 272.025 207.208 0 444.599 208.723 0 109.594 215.888 0 563.1 209.602 0 723.43 211.875 0 587.216 211.113 0 504.973 212.049 0 532.595 214.901 0 946.361 218.194 0 610.522 221.078 0 297.118 218.01 0 463.559 220.352 0 371.364 220.952 0 1007.42 226.715 0 489.017 224.98 0 656.575 219.11 0 829.262 221.991 0 857.071 222.04 0 203.515 225.075 0 775.81 223.078 0 60.01 222.157 0 399.471 225.183 0 35.1653 223.47 0 156.524 225.69 0 179.379 227.157 0 636.42 227.169 0 681.058 224.187 0 802.409 226.317 0 229.046 227.257 0 252.109 225.432 0 323.321 226.209 0 422.522 225.961 0 702.688 226.837 0 885.763 228.335 0 85.1757 226.228 0 346.216 226.849 0 911.242 225.457 0 127.862 230.11 0 973.779 230.4 0 11.1532 229.09 0 276.986 229.738 0 520.494 233.044 0 729.1 232.038 0 554.293 230.04 0 751.201 228.786 0 584.803 230.105 0 927.789 234.835 0 442.46 233.81 0 103.665 241.096 0 301.119 241.909 0 471.232 244.649 0 660.881 243.389 0 783.484 245.987 0 832.585 243.403 0 379.307 244.837 0 620.858 243.743 0 858.098 245.017 0 905.067 249.442 0 949.456 246.254 0 256.258 245.47 0 355.926 247.441 0 501.324 248.044 0 149.745 247.387 0 571.322 249.404 0 708.127 247.369 0 60.4111 246.097 0 544.13 250.002 0 758.097 248.111 0 34.4613 247.485 0 177.866 248.972 0 596.283 251.237 0 685.227 253.445 0 400.045 250.316 0 202.231 251.329 0 324.449 251.359 0 421.135 250.92 0 809.506 253.179 0 982.372 255.515 0 82.8661 252.749 0 228.237 251.086 0 878.422 256.17 0 127.248 252.156 0 11.2735 254.397 0 733.185 255.549 0 277.34 256.36 0 445.853 255.459 0 522.972 258.413 0 1011.34 259.442 0 638.958 257.698 0 927.635 261.445 0 492.239 267.377 0 104.625 265.155 0 157.121 267.605 0 847.914 267.013 0 344.745 268.596 0 254.535 268.348 0 297.281 269.145 0 613.509 273.16 0 58.3434 269.071 0 373.051 272.064 0 561.295 270.482 0 667.186 270.962 0 764.305 268.587 0 795.981 271.87 0 951.66 269.553 0 710.471 273.341 0 35.0033 272.945 0 469.386 273.138 0 399.159 274.744 0 129.252 274.159 0 180.837 276.364 0 232.615 275.98 0 424.938 272.814 0 825.248 278.16 0 900.28 275.98 0 206.15 277.05 0 587.358 278.362 0 82.8961 279.672 0 318.691 278.939 0 446.995 278.8 0 539.398 278.167 0 970.292 281.077 0 1003.73 278.82 0 738.07 279.918 0 11.0431 279.31 0 514.232 282.421 0 642.106 278.23 0 871.149 279.749 0 687.814 280.757 0 275.177 280.948 0 929.529 283.113 0 774.796 287.9 0 108.194 294.314 0 419.141 292.152 0 487.878 293.064 0 159.29 292.748 0 58.5458 294.561 0 335.81 297.272 0 362.041 294.189 0 661.15 294.158 0 848.888 295.278 0 137.933 296.59 0 252.249 296.972 0 300.313 298.151 0 569.529 297.108 0 32.0923 297.023 0 802.526 295.064 0 987.185 299.709 0 621.062 298.032 0 705.919 296.062 0 955.082 300.323 0 1012.31 300.992 0 397.842 298.221 0 755.044 303.185 0 223.304 300.57 0 379.181 303.199 0 460.112 300.465 0 195.964 302.129 0 877.062 300.255 0 541.313 300.019 0 728.043 302.346 0 902.966 302.341 0 598.58 306.194 0 274.653 302.514 0 644.741 305.978 0 685.138 305.496 0 10.0195 306.611 0 172.607 306.644 0 927.383 302.99 0 825.343 305.192 0 433.314 310.289 0 85.1359 306.308 0 514.889 305.085 0 783.52 308.735 0 127.292 320.98 0 351.469 319.746 0 491.66 317.032 0 807.786 318.434 0 407.786 318.725 0 857.059 320.251 0 325.409 319.285 0 34.0108 319.126 0 59.596 321.122 0 105.545 322.229 0 152.006 322.385 0 232.898 324.228 0 565.826 319.594 0 668.838 323.432 0 712.834 322.13 0 835.048 322.66 0 977.996 322.976 0 253.549 323.412 0 365.954 326.107 0 587.115 327.444 0 949.502 324.117 0 469.176 325.789 0 546.274 323.349 0 619.248 323.854 0 879.305 322.08 0 81.0553 323.236 0 277.211 324.647 0 300.124 325.002 0 735.442 321.062 0 924.025 323.795 0 520.401 328.305 0 211.843 329.164 0 386.329 326.358 0 447.808 328.555 0 1009.99 326.284 0 185.293 326.845 0 758.448 329.84 0 645.193 328.671 0 693.511 330.026 0 900.191 331.434 0 783.752 328.632 0 12.3573 330.022 0 419.904 337.983 0 344.991 342.18 0 41.3831 342.443 0 88.023 341.97 0 173.02 342.785 0 322.174 342.143 0 807.882 341.218 0 491.2 342.155 0 734.047 339.643 0 66.3471 345.206 0 832.669 344.25 0 852.812 347.229 0 998.617 346.151 0 397.192 347.098 0 564.932 347.105 0 609.262 346.652 0 108.241 345.014 0 155.625 347.353 0 245.52 348.957 0 270.975 347.754 0 542.256 346.904 0 874.119 346.252 0 969.141 348.923 0 130.478 348.932 0 370.641 348.239 0 632.831 348.28 0 920.463 349.788 0 196.329 348.068 0 657.804 349.975 0 682.577 349.64 0 944.176 349.304 0 439.182 349.243 0 711.82 349.148 0 777.954 350.72 0 297.927 352.361 0 12.3951 348.684 0 222.618 350.204 0 466.569 353.052 0 587.056 351.472 0 515.072 354.02 0 747.315 357.441 0 890.317 357.373 0 1011.79 364.55 0 33.3333 363.813 0 55.3595 367.845 0 324.236 366.029 0 347.981 364.94 0 724.871 366.734 0 804.537 366.966 0 78.6299 362.88 0 179.131 369.34 0 417.463 368.158 0 698.965 368.183 0 152.604 368.222 0 201.686 367.485 0 830.855 369.521 0 103.889 368.292 0 491.952 369.832 0 539.846 368.487 0 763.274 370.425 0 982.422 373.3 0 392.31 369.634 0 902.307 372.122 0 11.9202 371.518 0 222.63 370.521 0 445.178 371.078 0 663.612 370.111 0 855.1 370.327 0 246.914 370.416 0 271.606 371.246 0 370.061 371.804 0 584.573 371.83 0 606.146 371.838 0 632.951 369.948 0 128.578 371.796 0 927.176 374.803 0 953.174 375.001 0 562.333 375.742 0 781.786 376.611 0 295.608 374.979 0 876.078 377.397 0 466.058 379.618 0 519.309 379.586 0 682.734 381.813 0 82.0935 383.865 0 748.921 388.168 0 318.232 388.895 0 344.468 388.175 0 31.6195 387.206 0 616.799 392.107 0 643.295 392.262 0 1008.75 389.447 0 156.798 389.821 0 410.559 395.379 0 54.9838 390.261 0 203.785 391.13 0 434.258 393.128 0 703.794 391.649 0 727.392 392.506 0 228.476 394.061 0 252.002 391.508 0 664.946 392.438 0 129.401 392.444 0 387.911 392.699 0 824.881 394.839 0 10.0442 394.844 0 106.173 394.277 0 485.556 394.338 0 181.261 398.159 0 274.26 392.778 0 541.537 398.611 0 590.518 395.587 0 799.02 397.465 0 853.013 397.376 0 905.938 395.2 0 963.579 396.721 0 365.968 398.731 0 878.779 397.157 0 507.142 399.041 0 566.648 394.02 0 773.687 398.979 0 934.675 400.773 0 984.842 399.179 0 295.943 399.466 0 461.084 403.758 0 682.326 406.398 0 524.86 404.163 0 80.709 406.847 0 32.1892 410.17 0 148.003 412.833 0 338.436 413.058 0 562.796 413.446 0 315.028 415.344 0 710.4 414.007 0 1009.99 415.164 0 55.8498 413.936 0 272.168 414.966 0 609.951 415.47 0 637.4 416.304 0 121.968 417.009 0 248.919 415.354 0 663.142 418.213 0 755.288 418.075 0 886.887 415.111 0 390.988 416.932 0 494.494 418.724 0 585.239 417.219 0 731.115 421.176 0 174.162 420.108 0 201.027 419.275 0 441.123 420.37 0 835.986 420.177 0 954.582 418.637 0 10.4866 420.107 0 99.4938 420.831 0 225.243 419.898 0 913.446 421.55 0 417.298 420.451 0 811.221 419.205 0 472.294 422.485 0 982.611 421.269 0 364.207 421.637 0 693.941 425.487 0 779.173 421.192 0 542.533 424.671 0 295.068 426.42 0 517.101 428.453 0 862.932 427.136 0 74.5955 433.049 0 797.526 437.024 0 936.812 430.63 0 135.943 437.437 0 48.3595 437.906 0 628.96 438.646 0 344.309 437.966 0 28.0255 439.649 0 165.998 439.03 0 460.486 438.99 0 244.081 440.34 0 587.271 438.054 0 683.355 443.853 0 884.721 437.076 0 322.082 440.49 0 564.081 440.041 0 821.792 440.72 0 272.126 440.12 0 386.9 440.213 0 487.753 441.341 0 605.609 444.414 0 657.484 441.264 0 744.835 442.105 0 976.597 443.122 0 1007.53 441.979 0 104.657 442.309 0 216.561 444.424 0 412.975 443.124 0 714.179 445.237 0 192.243 446.855 0 851.036 448.171 0 951.617 445.785 0 765.611 445.924 0 902.194 448.413 0 9.21912 446.532 0 439.108 446.392 0 780.968 448.165 0 365.082 448.06 0 536.108 447.301 0 923.587 443.525 0 301.078 449.337 0 508.148 455.852 0 63.42 459.289 0 154.276 455.368 0 880.394 463.556 0 86.6306 459.831 0 925.84 461.896 0 131.461 463.792 0 827.708 461.725 0 1006.84 465.619 0 280.767 464.111 0 463.118 461.172 0 556.042 464.993 0 585.934 464.323 0 618.426 464.313 0 174.406 465.884 0 256.664 464.776 0 394.967 463.111 0 421.857 466.094 0 647.695 465.255 0 736.581 463.788 0 37.3164 465.633 0 230.042 466.556 0 346.077 465.158 0 807.325 467.884 0 110.039 467.024 0 321.708 466.128 0 485.172 467.453 0 757.426 467.339 0 670.522 469.253 0 526.583 471.206 0 692.918 469.038 0 977.991 467.364 0 373.462 471.244 0 948.58 469.525 0 11.6839 470.361 0 202.944 472.412 0 786.393 470.22 0 909.039 470.716 0 715.676 471.636 0 299.751 472.216 0 443.041 476.883 0 852.92 474.301 0 152.748 473.716 0 1012.95 486.48 0 90.1448 481.445 0 65.5725 485.712 0 403.001 485.45 0 499.156 489.553 0 629.395 488.286 0 603.034 488.583 0 248.541 487.061 0 469.352 488.281 0 777.777 487.976 0 828.955 487.759 0 897.925 489.358 0 338.611 488.564 0 561.737 485.613 0 579.998 488.731 0 927.211 490.236 0 181.073 489.613 0 273.79 490.155 0 731.15 490.951 0 957.717 491.258 0 984.728 491.166 0 36.8469 488.836 0 365.902 490.199 0 655.044 492.254 0 753.905 490.422 0 876.34 490.289 0 120.151 494.085 0 225.04 492.002 0 542.538 492.832 0 682.053 493.208 0 147.103 491.73 0 298.277 491.272 0 317.71 492.457 0 99.7506 494.316 0 11.745 495.492 0 524.782 496.688 0 707.138 496.47 0 804.273 497.985 0 864.67 499.499 0 438.295 501.673 0 208.004 505.066 0 410.226 505.483 0 850.498 505.698 0 160.583 509.534 0 386.893 509.425 0 82.6389 509.533 0 560.884 509.906 0 293.093 511.588 0 465.608 510.898 0 779.474 510.818 0 1006.66 510.282 0 247.189 508.007 0 610.329 510.429 0 55.0415 514.167 0 510.917 514.406 0 912.807 513.29 0 941.22 516.368 0 33.0465 510.952 0 342.809 514.066 0 130.361 515.212 0 187.819 514.302 0 486.2 515.929 0 830.162 513.426 0 365.205 512.031 0 583.346 515.06 0 634.961 515.865 0 269.138 516.118 0 663.412 517.696 0 750.987 514.844 0 882.993 518.034 0 979.793 518.336 0 317.941 515.297 0 687.085 516.633 0 727.227 518.583 0 959.663 517.255 0 6.02174 516.754 0 538.477 518.649 0 231.162 520.074 0 706.339 522.421 0 104.994 526.638 0 812.796 523.589 0 446.538 524.571 0 415.746 524.739 0 16.205 530.579 0 794.449 533.59 0 176.687 532.251 0 78.0868 533.828 0 851.296 530.947 0 153.804 536.252 0 604.981 533.837 0 206.206 535.11 0 1008.72 536.38 0 393.559 536.489 0 925.191 538.454 0 280.746 537.926 0 371.682 536.247 0 36.5217 536.849 0 255.833 537.439 0 328.356 537.158 0 561.307 538.33 0 763.304 535.989 0 303.039 537.115 0 515.71 537.314 0 900.136 539.773 0 491.969 539.945 0 351.194 539.968 0 466.704 541.275 0 537.163 537.496 0 584.019 541.195 0 632.101 538.453 0 127.471 539.963 0 654.435 544.174 0 57.0933 543.342 0 231.957 536.653 0 737.843 541.882 0 871.874 544.721 0 423.518 541.304 0 681.578 541.263 0 825.299 543.059 0 951.34 542.479 0 979.609 548.304 0 443.83 547.826 0 709.516 545.886 0 184.911 548.95 0 101.284 546.919 0 9.84959 555.868 0 778.71 546.879 0 220.93 559.363 0 318.166 558.602 0 616.845 556.91 0 403.656 556.408 0 243.259 559.15 0 543.355 560.25 0 689.17 561.37 0 805.834 561.141 0 852.082 560.599 0 33.1388 560.139 0 267.997 562.024 0 149.758 563.436 0 377.311 565.114 0 81.2299 564.401 0 292.438 565.591 0 346.37 562.435 0 489.669 562.534 0 571.472 563.935 0 595.072 562.944 0 730.394 562.947 0 1006.21 562.39 0 127.229 561.02 0 173.052 568.54 0 415.258 566.965 0 515.869 562.836 0 754.3 566.366 0 834.466 564.931 0 887.859 565.744 0 198.724 566.414 0 665.083 565.104 0 910.815 566.333 0 105.896 566.275 0 637.172 566.841 0 929.968 568.731 0 955.809 564.788 0 778.65 560.723 0 469.038 569.245 0 713.401 567.225 0 57.02 570.585 0 444.426 567.373 0 706.265 581.97 0 430.8 581.475 0 872.059 585.16 0 978.788 577.897 0 777.283 580.307 0 250.035 581.946 0 610.498 582.161 0 560.427 587.194 0 11.0452 584.262 0 810.882 584.056 0 318.121 582.1 0 1007.9 584.94 0 34.3573 584.19 0 132.808 583.92 0 397.889 589.439 0 538.541 585.826 0 584.108 588.938 0 683.149 586.752 0 228.629 588.795 0 347.171 585.826 0 208.364 587.341 0 458.269 588.178 0 485.758 587.657 0 511.376 586.078 0 637.74 587.788 0 950.442 586.039 0 158.514 590.204 0 272.781 589.626 0 660.146 588.047 0 730.199 585.054 0 846.245 588.994 0 91.0771 592.587 0 71.5225 592.826 0 110.76 592.255 0 750.922 594.261 0 187.557 594.523 0 371.14 595.33 0 906.308 589.84 0 295.297 597.004 0 423.651 598.428 0 979.839 596.68 0 52.5388 601.618 0 786.243 601.094 0 930.823 598.563 0 824.883 603.86 0 703.021 605.039 0 325.409 607.614 0 613.938 606.296 0 447.074 609.447 0 129.097 607.993 0 762.696 611.821 0 253.245 609.105 0 495.458 607.651 0 517.419 608.156 0 887.542 609.423 0 956.737 608.284 0 29.3046 611.065 0 346.735 610.184 0 472.404 611.431 0 660.537 607.998 0 727.45 609.794 0 1011.33 611.296 0 7.86854 610.662 0 177.894 614.091 0 208.336 612.636 0 391.13 617.484 0 539.131 610.546 0 564.06 611.883 0 590.877 614.209 0 638.263 610.469 0 868.282 615.097 0 907.476 612.072 0 153.311 614.606 0 682.738 612.99 0 807.023 618.092 0 842.292 616.254 0 102.35 616.998 0 230.674 614.867 0 414.227 617.823 0 76.8427 621.088 0 984.858 616.318 0 277.061 621.103 0 304.322 623.521 0 930.722 617.755 0 365.347 622.297 0 742.308 627.738 0 55.3465 632.151 0 782.514 628.879 0 709.098 630.832 0 630.457 631.955 0 127.517 632.297 0 197.112 633.692 0 438.663 633.523 0 493.87 629.811 0 520.107 634.733 0 660.112 630.809 0 687.312 632.833 0 947.258 632.807 0 972.696 634.475 0 342.587 632.537 0 547.105 635.165 0 573.211 634.229 0 466.734 636.446 0 605.989 635.913 0 859.357 636.602 0 897.921 634.416 0 917.646 634.3 0 9.79158 634.168 0 249.349 636.773 0 880.631 636.843 0 1005.13 634.864 0 31.8696 636.033 0 173.957 639.299 0 147.775 639.283 0 222.323 637.877 0 759.971 639.885 0 106.957 640.27 0 371.753 642.662 0 836.509 638.898 0 727.783 645.597 0 418.265 642.756 0 809.176 641.095 0 394.943 643.842 0 325.323 639.885 0 276.702 650.253 0 76.4731 646.982 0 300.053 649.337 0 588.416 648.736 0 1012.6 657.927 0 928.689 653.758 0 86.4537 657.949 0 654.704 652.812 0 986.2 656.499 0 497.151 653.951 0 681.491 654.302 0 777.428 655.058 0 954.302 657.366 0 905.093 657.69 0 322.982 658.093 0 347.175 657.787 0 631.029 658.002 0 858.29 658.033 0 12.278 657.247 0 209.863 658.95 0 446.182 659.655 0 533.93 660.282 0 563.123 661.246 0 708.228 659.45 0 36.9815 658.579 0 882.005 660.197 0 131.257 660.095 0 161.718 661.505 0 233.288 661.602 0 749.002 661.383 0 58.1382 663.991 0 610.027 662.54 0 256.523 663.151 0 472.381 663.563 0 418.372 664.151 0 803.95 663.106 0 106.665 663.968 0 833.119 664.467 0 188.357 668.339 0 392.02 666.388 0 732.831 672.628 0 370.572 668.954 0 510.858 674.302 0 589.327 668.361 0 288.926 675.285 0 308.169 670.665 0 972.744 678.575 0 661.35 680.231 0 687.886 681.47 0 781.788 677.451 0 926.442 677.953 0 94.3313 679.502 0 9.58758 683.049 0 149.038 683.63 0 327.359 683.529 0 488.295 684.247 0 758.858 683.645 0 33.588 682.131 0 635.982 683.147 0 854.655 682.328 0 1005.38 683.911 0 121.481 683.128 0 350.931 683.252 0 434.772 685.013 0 903.309 684.276 0 949.073 686.092 0 64.9646 685.869 0 266.397 685.425 0 408.418 684.389 0 462.68 685.931 0 541.805 680.248 0 880.494 684.284 0 223.625 684.66 0 243.397 685.164 0 558.261 688.002 0 715.358 687.35 0 828.857 689.878 0 202.234 689.315 0 581.014 689.641 0 805.741 687.432 0 608.283 687.126 0 174.761 690.311 0 526.166 692.868 0 387.849 691.687 0 301.499 696.177 0 371.749 692.102 0 84.3568 698.005 0 738.455 701.736 0 106.527 704.051 0 980.429 704.088 0 277.927 704.053 0 446.687 704.687 0 782.597 701.012 0 40.9079 704.298 0 129.595 704.591 0 548.573 708.257 0 499.289 707.175 0 13.0464 709.238 0 931.496 706.002 0 226.978 707.298 0 342.048 708.268 0 367.302 709.512 0 415.788 706.816 0 630.502 707.259 0 854.402 703.731 0 252.518 707.948 0 906.345 707.927 0 1008.72 707.748 0 472.774 712.102 0 657.255 709.882 0 201.208 711.699 0 317.307 711.131 0 686.054 710.46 0 759.414 709.509 0 876.296 709.276 0 174.607 710.43 0 956.188 712.401 0 67.21 712.487 0 152.434 712.875 0 605.649 710.203 0 715.601 711.225 0 572.875 708.74 0 807.422 713.702 0 390.534 713.47 0 830.777 713.764 0 522.794 717.02 0 585.616 716.336 0 88.2857 716.63 0 295.728 726.488 0 891.113 727.561 0 438.765 728.526 0 563.622 730.695 0 782.866 725.054 0 30.1133 728.656 0 53.0258 729.401 0 853.027 727.284 0 273.237 730.069 0 351.735 730.315 0 244.588 730.092 0 738.661 729.534 0 922.456 730.038 0 979.972 728.189 0 103.114 730.351 0 127.927 728.573 0 640.235 734.211 0 220.407 733.089 0 412.926 729.07 0 614.466 731.443 0 1008.61 731.348 0 194.98 733.351 0 325.286 734.266 0 667.36 735.467 0 172.923 732.286 0 711.858 732.317 0 489.626 738.327 0 760.635 732.363 0 466.136 739.582 0 541.17 736.249 0 10.0111 736.828 0 77.2083 734.783 0 390.378 736.856 0 513.073 738.69 0 951.204 738.282 0 151.235 738.804 0 371.206 741.841 0 686.808 736.295 0 804.065 737.215 0 588.04 735.584 0 870.53 741.195 0 829.935 738.872 0 902.122 748.326 0 258.481 748.526 0 303.808 752.134 0 402.973 751.55 0 779.834 752.157 0 982.113 750.616 0 654.475 752.968 0 110.229 754.252 0 131.058 753.959 0 442.885 751.404 0 34.9385 753.481 0 59.9637 755.878 0 419.368 754.789 0 729.772 753.984 0 854.757 754.628 0 84.3355 755.447 0 753.707 755.328 0 177.574 755.267 0 337.257 754.774 0 926.267 755.744 0 206.083 755.377 0 232.44 759.385 0 588.713 757.661 0 613.606 757.035 0 707.519 756.65 0 1011.54 759.67 0 357.728 760.401 0 565.798 758.172 0 881.152 761.581 0 277.581 762.048 0 522.426 760.253 0 548.643 760.65 0 807.467 759.093 0 835.204 759.431 0 683.608 761.248 0 9.57812 761.199 0 634.642 766.727 0 383.48 766.958 0 950.116 765.197 0 150.965 765.098 0 491.342 765.804 0 465.303 766.699 0 971.115 773.014 0 321.623 776.247 0 443.928 770.794 0 252.207 775.824 0 663.195 773.84 0 905.176 775.199 0 98.9113 777.097 0 426.484 776.871 0 820.755 776.008 0 296.601 777.111 0 738.089 779.164 0 788.882 777.906 0 994.614 779.331 0 200.298 780.114 0 850.33 777.486 0 34.7702 776.213 0 402.981 779.35 0 15.7214 780.813 0 172.982 779.489 0 534.935 781.704 0 764.814 779.131 0 52.9802 785.91 0 124.588 782.14 0 346.721 780.853 0 566.083 783.457 0 595.374 781.944 0 74.6058 778.74 0 708.7 781.572 0 371.109 784.895 0 509.358 784.734 0 926.478 783.534 0 225.924 787.979 0 878.121 785.379 0 618.441 789.41 0 272.231 789.893 0 484.992 788.129 0 684.559 789.126 0 5.94072 796.771 0 149.359 791.589 0 642.602 789.806 0 1013.93 797.238 0 460.262 789.807 0 947.857 793.626 0 807.696 792.56 0 438.166 800.777 0 76.285 798.515 0 413.941 798.061 0 662.212 794.06 0 830.151 798.526 0 968.652 800.48 0 30.7158 802.366 0 293.857 798.987 0 900.09 804.159 0 186.394 804.123 0 342.692 801.385 0 776.043 804.043 0 854.142 803.765 0 390.403 807.064 0 543.647 802.633 0 584.186 803.981 0 753.014 805.903 0 100.313 801.913 0 252.567 804.072 0 319.222 803.702 0 727.76 804.042 0 521.535 806.541 0 701.465 806.357 0 992.107 808.642 0 366.256 808.309 0 801.075 807.722 0 161.684 811.386 0 491.265 808.681 0 673.178 808.638 0 924.072 808.804 0 126.354 808.9 0 212.241 810.46 0 646.419 809.577 0 464.357 811.669 0 562.336 812.269 0 608.588 812.644 0 877.401 812.402 0 56.0504 811.294 0 234.268 817.89 0 274.387 818.104 0 816.418 824.694 0 10.5302 823.327 0 631.1 826.438 0 418.916 823.567 0 297.279 822.077 0 504.635 825.294 0 944.692 825.421 0 82.4562 824.461 0 838.904 825.125 0 105.511 825.346 0 148.002 828.79 0 346.794 824.484 0 787.197 826.991 0 973.317 825.629 0 681.94 826.584 0 443.911 828.85 0 704.171 829.986 0 1008.72 829.202 0 32.0101 828.204 0 318.198 829.071 0 545.818 827.787 0 729.145 828.603 0 57.2182 828.36 0 178.875 833.328 0 203.152 828.987 0 523.958 832.837 0 586.09 830.566 0 658.357 829.971 0 256.274 833.174 0 567.834 833.158 0 864.884 833.396 0 396.5 833.757 0 755.942 832.089 0 917.511 833.45 0 124.323 833.167 0 370.294 835.323 0 897.213 831.921 0 470.925 833.713 0 226.848 836.264 0 605.54 836.693 0 286.513 840.534 0 331.248 845.443 0 886.727 842.81 0 492.893 848.176 0 801.18 849.94 0 773.987 849.308 0 986.134 849.937 0 825.53 851.212 0 963.607 850.143 0 104.606 852.327 0 10.2941 853.071 0 59.6876 851.119 0 82.7801 848.273 0 611.871 853.898 0 936.9 853.207 0 201.227 851.016 0 304.114 854.386 0 438.364 850.869 0 539.41 850.324 0 635.101 852.195 0 848.027 854.106 0 34.393 852.216 0 152.214 852.744 0 415.444 855.585 0 657.081 849.12 0 682.216 852.514 0 559.16 854.571 0 346.92 857.362 0 707.681 855.574 0 731.433 854.748 0 1010.47 855.917 0 128.522 853.882 0 275.482 856.568 0 387.311 856.746 0 514.484 854.012 0 584.076 855.075 0 175.212 857.657 0 228.4 853.29 0 254.115 853.24 0 468.055 857.104 0 752.19 859.07 0 872.364 858.02 0 905.841 859.167 0 365.167 866.454 0 622.247 873.829 0 317.4 874.319 0 448.992 872.835 0 245.855 872.136 0 659.727 871.043 0 781.199 873.854 0 80.2066 872.089 0 520.327 872.876 0 545.099 874.869 0 594.955 875.954 0 962.695 875.275 0 222.274 874.33 0 886.453 877.031 0 55.0753 876.477 0 130.461 875.358 0 199.566 872.878 0 267.953 878.049 0 494.796 877.106 0 567.62 879.173 0 806.278 876.975 0 831.081 879.513 0 33.3556 876.772 0 104.261 877.873 0 155.995 877.855 0 290.893 879.705 0 400.185 877.069 0 911.715 882.578 0 989.251 876.273 0 684.536 877.879 0 713.232 878.55 0 857.362 880.947 0 934.272 878.023 0 11.8485 879.453 0 428.616 883.346 0 638.248 883.791 0 179.133 879.233 0 758.161 879.37 0 470.368 882.094 0 735.569 882.485 0 1011.68 882.857 0 342.132 887.204 0 378.356 886.069 0 361.028 894.819 0 233.602 897.111 0 977.416 898.099 0 74.0751 896.752 0 204.988 895.541 0 658.252 895.411 0 947.388 898.639 0 121.117 899.652 0 541.483 897.861 0 585.554 898.224 0 147.528 900.109 0 520.271 900.237 0 609.497 900.042 0 257.655 901.066 0 703.852 900.735 0 880.165 899.833 0 97.3049 901.146 0 322.146 902.18 0 396.759 898.622 0 679.48 900.816 0 755.938 899.709 0 781.757 901.073 0 9.35471 903.533 0 31.0673 900.716 0 299.802 905.56 0 446.096 904.874 0 806.956 904.941 0 52.0567 904.212 0 178.273 901.053 0 418.41 906.177 0 498.041 903.708 0 835.356 903.251 0 903.273 906.005 0 926.038 908.463 0 278.154 909.524 0 730.407 906.246 0 1006.6 907.188 0 472.139 902.654 0 633.964 905.032 0 858.429 908.032 0 562.345 911.726 0 373.338 911.586 0 344.39 919.177 0 163.147 920.57 0 206.75 917.043 0 78.4392 920.828 0 663.529 923.653 0 134.629 923.74 0 245.109 923.054 0 394.059 923.518 0 589.958 923.751 0 686.549 922.309 0 465.914 923.324 0 612.294 924.908 0 641.979 923.432 0 826.931 926.356 0 949.769 924.058 0 975.633 923.272 0 105.688 925.289 0 488.785 927.239 0 707.282 926.311 0 753.267 925.419 0 30.9858 925.171 0 183.622 928.145 0 224.267 931.491 0 777.932 927.681 0 878.222 927.008 0 9.28667 930.938 0 323.682 930.423 0 515.463 929.451 0 541.134 930.802 0 55.1361 929.627 0 802.18 929.615 0 267.538 933.658 0 418.209 929.599 0 444.423 931.604 0 852.153 931.088 0 902.294 928.266 0 925.282 935.354 0 572.205 936.275 0 727.947 934.817 0 1008.12 933.033 0 301.142 933.528 0 368.037 935.438 0 631.682 945.384 0 157.32 942.006 0 200.321 944.773 0 477.58 946.037 0 979.741 945.121 0 82.4255 945.257 0 680.266 945.515 0 129.343 948.707 0 283.68 952.084 0 345.149 949.754 0 390.616 950.525 0 29.5406 951.844 0 657.14 954.368 0 872.423 952.902 0 951.683 951.895 0 104.136 951.533 0 244.881 952.345 0 503.061 953.699 0 586.964 955.407 0 608.339 955.994 0 435.678 953.404 0 460.176 955.296 0 704.791 954.736 0 740.289 951.286 0 822.713 953.324 0 846.049 953.185 0 898.427 953.694 0 413.581 955.49 0 753.535 956.496 0 775.78 953.642 0 798.649 953.707 0 56.669 953.846 0 181.597 955.641 0 559.442 957.089 0 327.546 959.503 0 532.392 958.132 0 1008.57 957.468 0 217.56 960.275 0 306.69 958.823 0 8.31507 957.151 0 152.073 961.462 0 925.069 960.616 0 365.76 962.408 0 265.694 968.861 0 726.006 968.467 0 981.321 969.026 0 82.1719 975.635 0 113.229 974.222 0 482.976 976.092 0 634.25 974.623 0 683.649 975.805 0 168.307 978.683 0 853.406 976.864 0 199.397 980.808 0 291.433 978.44 0 959.515 979.111 0 11.3234 978.736 0 231.582 979.833 0 762.67 977.674 0 391.743 981.947 0 436.039 981.459 0 806.758 980.555 0 53.6582 978.79 0 510.157 982.23 0 831.753 981.643 0 878.254 979.872 0 32.5511 984.593 0 137.548 984.13 0 412.326 979.431 0 538.336 980.449 0 904.632 981.935 0 657.263 985.597 0 784.251 981.551 0 1005.89 982.701 0 316.098 980.017 0 587.405 982.155 0 932.99 983.858 0 342.643 988.527 0 370.747 984.071 0 458.854 982.901 0 562.955 987.144 0 612.185 984.586 0 711.14 987.272 0 255.412 989.005 0 741.724 990.993 0 280.199 1000.45 0 100.433 1004.02 0 178.635 1002.92 0 978.376 1006.32 0 58.3602 1006.44 0 487.451 1004.6 0 691.28 1006.66 0 868.957 1007.03 0 124.133 1009.25 0 223.221 1006.86 0 316.848 1002.79 0 530.217 1004.48 0 949.423 1008.34 0 78.5929 1008.79 0 154.663 1010.51 0 415.767 1007.89 0 634.162 1008.27 0 921.144 1009.75 0 12.5381 1007.74 0 779.795 1008.94 0 801.441 1008.25 0 825.164 1008.9 0 848.039 1008.55 0 894.71 1010.06 0 1008.29 1009.85 0 465.35 1009.87 0 578.175 1010.73 0 605.579 1009.8 0 665.079 1011.73 0 755.109 1011.48 0 199.278 1011.46 0 362.434 1010.4 0 390.423 1010.11 0 294.781 1013.71 0 441.041 1010.7 0 720.999 1012.07 0 36.9964 1012.83 0 251.743 1012.37 0 550.05 1013.08 0 508.31 1014.38 0 332.789 1016.39 0 VERTICES 1763 EDGES 5121 0 1 0 63 1 2 1 64 2 3 2 50 3 4 3 50 3 65 4 5 4 48 5 6 5 69 5 74 6 7 6 69 6 55 7 8 7 55 8 9 8 45 8 82 9 10 9 40 9 45 10 11 10 56 11 12 11 66 12 13 12 46 12 66 13 14 13 43 14 15 14 57 15 16 15 57 15 51 15 79 16 17 16 51 17 18 17 58 17 80 18 19 18 58 19 20 19 58 19 70 20 21 20 59 20 70 21 22 21 59 21 67 21 52 22 23 22 52 22 60 23 24 23 75 24 25 24 75 25 26 25 75 25 76 25 77 26 27 26 44 26 77 27 28 27 44 28 29 28 41 28 72 29 30 29 41 29 61 30 31 30 53 30 61 30 81 31 32 31 47 31 53 32 33 32 47 32 73 33 34 33 73 33 78 34 35 34 54 34 78 35 36 35 54 36 37 36 68 37 38 37 49 37 68 38 39 38 42 38 62 39 42 10 40 40 56 40 71 41 61 41 83 42 84 14 43 43 57 43 86 43 88 28 44 44 72 44 85 44 89 40 45 45 71 45 116 13 46 43 46 46 86 46 98 47 73 47 90 47 100 47 125 5 48 48 74 48 102 38 49 49 62 49 101 49 113 50 65 50 93 50 114 17 51 51 79 51 80 51 105 52 60 52 99 52 107 47 53 53 90 53 96 36 54 54 68 54 78 54 91 8 55 55 82 55 104 55 110 11 56 56 66 56 87 56 97 57 79 57 117 58 70 58 118 58 120 58 119 59 67 59 106 59 107 23 60 60 75 60 94 61 81 61 111 42 62 62 84 1 63 63 64 63 108 2 64 50 64 64 92 64 93 64 108 4 65 48 65 65 102 46 66 66 97 66 98 66 115 52 67 67 107 49 68 68 91 68 101 68 112 55 69 69 109 69 110 59 70 70 106 70 119 56 71 71 87 71 116 41 72 72 83 72 89 72 121 73 78 73 100 69 74 74 109 75 76 75 95 76 95 76 103 44 77 76 77 77 85 77 123 78 91 78 100 78 122 78 130 79 105 79 117 58 80 80 118 80 131 53 81 81 96 81 124 45 82 82 104 82 116 82 126 61 83 83 111 84 127 85 89 85 128 86 88 86 133 87 97 87 116 87 129 57 88 88 117 88 134 89 121 89 156 90 125 91 112 91 137 91 138 92 93 92 149 93 114 93 149 93 140 75 94 94 95 94 142 94 152 95 103 95 142 90 96 96 124 96 125 96 144 97 115 97 129 97 141 86 98 98 133 98 150 98 151 60 99 99 107 94 99 99 152 99 155 100 130 100 158 101 113 101 153 74 102 102 109 102 139 102 161 77 103 103 123 103 162 104 126 104 135 80 105 105 131 105 136 105 163 106 107 106 145 106 146 107 146 107 155 92 108 108 132 108 154 109 110 109 139 109 160 104 110 110 135 110 160 81 111 111 124 111 143 111 157 101 112 112 138 112 153 62 113 84 113 113 127 113 148 65 114 102 114 114 140 114 161 98 115 115 150 116 129 116 165 105 117 117 136 118 120 119 120 106 119 119 145 119 164 119 167 120 164 120 168 83 121 111 121 121 157 91 122 122 137 122 159 85 123 123 128 123 147 123 162 124 143 124 144 100 125 125 144 125 158 116 126 126 165 126 166 127 148 127 172 89 128 128 147 128 156 128 184 129 141 129 171 122 130 130 159 130 174 118 131 120 131 131 168 131 205 92 132 132 149 132 176 88 133 133 134 133 169 133 198 117 134 134 136 134 169 126 135 135 166 135 197 136 163 136 183 137 138 137 175 137 186 138 153 138 175 138 187 139 160 139 182 139 189 140 149 140 161 140 188 115 141 141 150 141 193 141 194 103 142 142 162 142 196 143 170 143 181 143 144 144 158 144 173 145 146 145 167 145 178 146 155 146 190 147 184 148 172 148 191 148 201 149 192 150 151 150 194 150 195 133 151 151 195 151 198 142 152 152 196 152 203 152 204 113 153 148 153 153 187 153 191 132 154 154 176 154 199 152 155 155 190 155 203 121 156 156 157 156 180 156 184 143 157 157 170 130 158 158 174 158 185 137 159 159 186 135 160 160 177 160 207 139 161 161 182 161 188 147 162 162 179 162 196 162 200 131 163 163 183 163 205 163 208 164 167 129 165 165 171 165 202 165 166 166 202 167 178 167 206 164 168 167 168 168 206 168 212 168 215 136 169 169 183 169 210 170 181 170 209 170 211 141 171 171 193 171 214 172 201 172 213 172 225 158 173 173 185 173 223 173 224 159 174 174 186 174 216 174 220 175 187 175 216 175 231 149 176 176 192 176 217 176 232 176 233 135 177 177 197 177 226 146 178 178 190 178 227 178 218 147 179 179 184 179 229 179 230 157 180 170 180 180 209 180 219 144 181 173 181 181 223 181 236 182 189 182 234 183 208 183 241 180 184 184 219 184 230 174 185 185 224 185 220 175 186 186 216 187 191 187 231 187 237 182 188 188 234 188 239 160 189 189 207 189 242 189 234 190 203 190 218 191 201 191 237 191 238 140 192 188 192 192 233 192 239 193 194 193 214 193 240 193 243 194 195 194 240 194 235 195 198 195 235 196 200 196 228 166 197 197 221 197 245 169 198 198 210 198 249 176 199 199 217 179 200 200 229 200 247 201 213 201 238 171 202 197 202 202 214 202 221 203 204 203 218 203 222 203 246 196 204 204 222 204 228 168 205 205 215 205 251 205 250 178 206 206 212 206 227 177 207 207 226 207 242 207 244 205 208 208 241 208 251 208 253 209 211 209 248 183 210 210 241 210 252 210 269 181 211 211 236 211 263 212 227 212 254 212 270 213 225 213 283 214 243 214 261 214 277 212 215 215 250 216 231 216 265 217 232 217 267 218 246 218 257 209 219 219 248 219 259 216 220 220 265 220 272 214 221 221 268 221 277 222 228 222 255 223 224 223 264 223 281 220 224 224 271 225 274 225 283 197 226 226 245 226 266 226 284 218 227 227 254 227 257 227 278 200 228 228 247 228 279 229 230 229 262 229 280 219 230 230 258 231 237 231 273 231 282 232 233 232 275 233 239 233 275 233 276 234 242 234 289 234 288 198 235 235 249 235 256 235 286 223 236 236 281 237 238 237 282 213 238 238 260 238 282 234 239 239 293 239 289 235 240 240 256 240 285 241 253 241 269 242 244 242 284 242 288 240 243 243 261 243 285 226 244 244 284 221 245 245 266 245 268 222 246 246 255 246 257 246 291 229 247 247 280 247 279 211 248 248 263 248 292 210 249 249 252 249 290 249 297 212 250 250 270 250 287 250 251 251 287 252 269 252 290 251 253 253 317 253 287 254 278 254 313 228 255 255 279 255 299 256 286 256 300 257 291 257 298 219 258 258 259 258 307 258 308 248 259 259 292 259 308 213 260 260 283 260 296 260 320 261 285 261 306 230 262 258 262 262 307 262 309 236 263 263 281 263 292 263 318 224 264 264 271 264 295 231 265 265 273 265 319 266 268 266 304 266 326 232 267 267 275 267 321 268 277 268 304 268 305 269 290 253 269 269 294 269 331 254 270 270 312 270 313 220 271 271 272 271 310 265 272 272 310 272 314 273 282 273 302 274 333 275 276 275 315 275 321 239 276 276 293 276 315 276 322 261 277 277 305 257 278 278 298 278 313 279 280 279 299 279 301 262 280 280 309 264 281 281 295 281 318 281 324 260 282 282 296 282 302 282 325 274 283 283 320 283 333 266 284 284 303 284 326 256 285 285 300 285 306 249 286 286 297 286 316 270 287 287 312 287 323 284 288 288 303 288 311 288 289 289 293 289 327 290 331 255 291 291 299 291 328 291 330 292 318 292 332 293 322 293 329 253 294 294 317 294 350 294 363 271 295 295 310 295 349 295 357 295 358 296 320 296 361 296 367 290 297 297 331 297 343 297 352 291 298 298 328 298 336 298 339 299 301 299 337 286 300 300 316 300 335 300 340 280 301 301 309 301 347 301 353 302 325 302 360 303 326 303 341 303 366 304 326 304 305 304 334 261 305 305 306 305 334 305 342 305 362 300 306 306 335 306 342 307 308 307 348 307 351 307 356 292 308 308 332 308 351 307 309 309 348 309 347 310 314 310 349 310 345 303 311 311 346 311 366 312 313 312 344 312 373 298 313 313 336 313 344 265 314 314 319 314 345 314 364 315 322 315 354 297 316 316 340 316 355 316 352 287 317 317 323 317 373 318 324 318 357 318 370 273 319 302 319 319 364 319 360 320 333 320 338 320 367 315 321 321 354 321 365 322 329 322 359 312 323 323 373 295 324 324 357 296 325 325 360 325 371 325 361 326 341 326 334 326 369 288 327 311 327 327 346 327 374 328 330 328 339 328 375 289 329 327 329 329 368 299 330 330 337 330 375 330 377 294 331 331 343 331 350 318 332 332 370 332 376 333 385 334 362 334 369 334 390 335 340 335 372 336 339 336 378 301 337 337 353 337 377 337 381 333 338 338 367 338 385 339 375 339 378 339 379 340 355 340 372 340 382 341 369 341 395 341 396 335 342 342 372 342 401 343 350 343 384 336 344 344 378 344 383 344 386 345 364 345 388 345 389 346 366 347 353 347 348 347 387 347 397 348 356 348 387 345 349 349 388 350 363 350 393 332 351 351 376 351 404 343 352 352 384 352 402 352 407 353 381 353 397 322 354 354 359 354 394 354 392 352 355 355 402 351 356 356 387 356 398 356 404 357 358 357 391 357 399 349 358 358 388 329 359 359 368 359 392 360 371 360 405 360 408 361 367 361 380 342 362 362 400 317 363 363 373 363 403 360 364 364 405 354 365 365 394 365 411 341 366 366 374 366 395 366 409 367 385 367 410 327 368 368 374 368 406 369 390 357 370 370 391 370 416 361 371 371 380 371 418 372 382 372 412 344 373 373 383 373 419 346 374 374 406 374 409 374 420 375 377 375 417 370 376 376 414 377 381 377 417 378 379 378 413 375 379 379 413 379 415 367 380 380 410 380 418 380 430 381 397 381 427 381 442 355 382 382 402 382 421 383 386 383 419 383 422 350 384 384 393 384 426 384 432 385 459 378 386 386 413 386 433 387 398 387 423 388 389 388 425 364 389 389 405 389 425 389 428 362 390 390 400 390 445 391 399 391 424 368 392 392 406 392 437 363 393 393 403 393 426 393 444 392 394 394 411 394 437 394 440 395 434 395 441 369 396 395 396 390 396 396 441 387 397 397 427 397 423 398 404 398 443 358 399 388 399 399 425 399 448 342 400 400 401 400 445 400 451 372 401 401 412 401 431 402 407 402 446 373 403 403 419 403 447 376 404 404 414 404 436 404 443 405 408 405 429 405 428 405 452 406 420 406 437 406 450 384 407 407 432 407 446 371 408 408 418 395 409 409 434 409 453 385 410 410 430 410 449 411 440 411 454 382 412 412 421 412 431 412 456 413 415 413 438 413 458 370 414 414 416 414 436 414 455 414 439 375 415 415 417 415 435 415 438 391 416 416 439 381 417 417 435 417 442 418 430 418 461 419 422 419 457 409 420 420 450 420 453 420 463 402 421 421 446 421 456 421 468 386 422 422 433 422 462 422 479 398 423 423 443 423 460 423 473 399 424 424 448 424 474 424 475 425 428 425 448 425 465 425 485 426 444 426 471 423 427 427 460 427 469 428 452 428 465 408 429 418 429 429 461 429 486 430 461 430 449 430 476 431 456 431 467 426 432 432 466 432 471 413 433 433 458 433 462 434 441 434 464 434 481 435 442 435 472 435 488 436 455 436 477 437 450 437 470 438 458 435 438 438 472 438 492 391 439 424 439 439 474 437 440 440 470 440 478 441 445 441 482 427 442 442 469 442 488 436 443 443 473 443 477 443 500 403 444 444 447 444 480 445 451 445 482 445 487 432 446 446 466 446 490 419 447 447 457 447 484 447 480 448 475 448 485 385 449 449 459 449 494 449 493 450 463 450 489 431 451 451 467 451 483 429 452 452 465 452 486 452 499 434 453 453 481 440 454 454 478 454 496 439 455 455 474 455 495 456 468 456 501 422 457 457 484 457 479 457 491 458 497 458 492 459 494 460 473 460 498 461 476 461 502 458 462 462 497 462 506 453 463 463 481 463 504 441 464 464 482 464 507 465 499 465 512 466 471 466 509 456 467 467 501 467 514 446 468 468 490 468 501 468 515 460 469 469 498 469 520 469 534 450 470 470 489 470 508 444 471 471 480 471 510 471 527 472 488 472 516 473 498 473 500 473 511 474 475 474 503 475 485 475 518 449 476 476 493 476 522 455 477 477 495 477 521 477 532 470 478 478 508 462 479 479 506 479 528 480 484 480 505 480 524 464 481 481 504 481 507 481 513 482 487 482 507 482 529 482 539 467 483 483 514 483 526 484 491 484 505 465 485 485 512 485 541 461 486 486 502 486 530 486 533 451 487 483 487 487 526 487 529 469 488 488 516 488 534 463 489 489 504 489 543 466 490 490 509 479 491 491 528 491 542 472 492 492 516 492 531 493 494 493 519 494 523 474 495 495 525 495 532 478 496 496 517 496 538 492 497 497 531 497 544 498 511 498 520 498 536 486 499 499 530 477 500 500 521 500 537 501 514 501 515 501 535 476 502 502 522 502 540 475 503 503 518 503 545 504 513 504 546 491 505 505 542 505 550 497 506 506 544 506 548 507 539 507 556 489 508 508 517 508 543 508 553 508 554 471 509 509 510 509 552 509 547 510 527 510 547 510 564 500 511 511 537 511 559 499 512 512 541 512 530 512 551 512 561 507 513 513 546 513 556 514 535 514 563 490 515 515 535 509 515 515 552 515 572 515 573 516 531 516 534 516 558 516 565 478 517 517 553 485 518 518 541 518 549 494 519 519 523 519 562 519 580 520 536 520 569 521 532 521 560 493 522 519 522 522 562 523 580 505 524 524 550 524 578 503 525 525 545 525 582 514 526 526 557 526 577 480 527 524 527 527 578 506 528 528 548 528 567 528 579 526 529 529 577 529 581 530 533 530 570 531 558 531 568 525 532 532 574 502 533 533 540 533 575 533 585 520 534 534 565 534 569 535 572 511 536 536 559 536 569 536 583 521 537 537 560 537 584 517 538 538 553 538 587 529 539 539 581 522 540 540 566 540 575 541 549 541 561 528 542 542 579 542 588 504 543 543 555 543 571 531 544 544 576 518 545 545 549 545 586 546 556 546 604 546 611 547 564 547 589 544 548 548 576 548 595 549 586 549 561 549 594 542 550 550 588 550 601 530 551 551 570 551 599 551 609 547 552 552 589 552 593 553 554 553 590 543 554 554 571 554 590 554 597 504 555 546 555 555 591 555 604 539 556 556 581 556 592 556 605 514 557 557 563 557 606 557 624 558 568 558 565 558 602 537 559 559 584 559 616 559 617 532 560 560 574 560 596 560 620 551 561 561 598 561 599 562 580 562 600 562 610 535 563 563 572 563 606 563 607 527 564 564 578 564 612 565 569 565 603 565 626 522 566 562 566 566 610 566 618 548 567 567 595 567 625 568 608 568 602 569 583 569 603 569 613 533 570 570 585 570 609 555 571 571 591 571 597 572 573 572 607 572 622 552 573 573 593 573 622 525 574 574 582 574 596 566 575 575 614 575 618 531 576 568 576 576 608 557 577 577 615 577 624 550 578 578 601 578 612 567 579 579 619 579 625 580 600 580 630 577 581 581 592 581 615 545 582 582 586 582 621 582 628 559 583 583 613 583 616 560 584 584 617 584 620 575 585 585 614 585 629 586 594 553 587 587 590 587 623 579 588 588 619 588 639 564 589 589 612 589 633 589 634 590 597 590 631 590 632 591 604 591 637 591 644 592 605 592 615 592 638 589 593 593 622 593 633 561 594 594 598 594 621 594 636 576 595 595 627 595 645 582 596 596 620 596 628 591 597 597 632 597 637 598 599 598 643 598 636 599 609 599 655 600 630 600 648 588 601 601 639 601 649 565 602 602 626 602 659 602 646 602 665 603 613 603 660 603 661 604 611 604 644 605 641 605 638 606 607 606 656 607 657 602 608 608 627 608 646 585 609 609 629 609 655 609 668 600 610 610 648 610 664 556 611 605 611 611 641 611 662 601 612 612 649 612 658 613 616 613 661 614 663 615 624 615 642 616 617 616 661 616 654 617 620 617 640 617 654 614 618 610 618 618 664 619 625 619 639 619 653 620 628 620 635 620 640 586 621 621 636 621 647 621 666 607 622 622 633 622 667 590 623 623 631 623 651 606 624 624 652 595 625 625 645 625 653 625 669 603 626 626 660 576 627 627 645 627 646 627 670 621 628 628 647 628 673 614 629 629 650 629 668 630 679 631 632 631 676 632 637 632 672 632 682 633 634 633 675 612 634 634 658 634 675 628 635 635 673 635 686 636 643 636 666 636 692 636 700 637 644 637 672 615 638 638 642 638 683 638 696 639 653 639 681 639 684 635 640 640 671 640 685 638 641 641 680 624 642 642 652 642 683 599 643 643 655 643 692 643 701 611 644 644 662 644 672 644 694 645 670 645 695 645 706 646 665 646 670 646 698 647 666 647 673 647 708 630 648 648 679 648 710 639 649 649 681 649 691 614 650 650 663 650 702 650 705 631 651 651 676 651 693 606 652 652 656 652 683 652 687 653 669 653 684 653 712 640 654 654 671 654 678 654 689 655 668 655 701 607 656 656 657 656 687 656 688 622 657 657 667 657 688 657 697 649 658 658 691 658 704 626 659 659 665 659 660 659 699 660 661 660 677 654 661 661 678 641 662 662 690 662 694 662 680 618 663 663 664 663 709 648 664 664 703 664 709 665 707 666 700 666 708 633 667 667 674 667 697 667 711 650 668 668 705 645 669 669 695 669 712 670 706 670 698 670 714 671 685 671 713 672 682 672 694 672 715 673 686 673 708 673 730 633 674 674 675 674 718 674 720 658 675 675 704 675 718 632 676 676 682 676 716 661 677 677 678 677 725 677 726 678 689 678 726 678 729 679 722 638 680 680 696 680 717 680 736 681 684 681 732 681 745 682 715 682 716 682 723 683 687 683 737 683 743 684 712 684 738 684 745 635 685 685 686 685 721 686 721 686 735 687 688 687 728 687 743 688 697 688 724 688 728 671 689 689 713 680 690 690 717 690 727 681 691 691 732 692 701 692 739 692 746 676 693 693 716 693 741 690 694 694 715 694 727 694 742 695 706 695 733 695 747 683 696 696 737 697 711 697 724 665 698 698 707 698 719 698 752 660 699 677 699 699 725 699 734 692 700 700 746 700 751 700 757 668 701 701 705 701 755 663 702 702 709 702 731 702 744 648 703 703 710 703 740 703 748 691 704 704 732 704 749 702 705 705 731 705 755 706 714 706 754 659 707 699 707 707 719 707 734 700 708 708 751 703 709 709 740 709 758 679 710 710 722 710 748 674 711 711 720 711 753 695 712 712 738 712 747 685 713 713 721 713 750 698 714 715 742 715 756 716 723 716 760 716 763 717 736 717 759 717 764 704 718 718 749 718 762 718 770 719 734 719 771 718 720 720 770 721 750 721 735 721 784 722 780 715 723 723 756 711 724 724 753 724 773 725 726 725 761 725 767 725 776 726 729 726 761 726 777 717 727 727 759 724 728 728 766 728 773 689 729 713 729 729 750 729 768 729 777 708 730 730 751 730 778 730 788 731 744 731 769 732 745 732 774 732 783 706 733 733 747 733 754 733 775 725 734 734 767 734 771 673 735 730 735 735 778 735 784 696 736 736 737 736 764 736 785 737 743 737 782 737 785 738 747 738 765 738 791 701 739 739 755 739 786 740 748 740 758 740 779 740 787 716 741 741 763 741 790 727 742 742 781 728 743 743 766 743 782 709 744 744 758 744 789 744 795 738 745 745 783 745 791 739 746 746 772 747 775 722 748 748 779 748 780 732 749 749 774 749 793 750 768 750 784 751 757 751 792 719 752 752 771 752 794 720 753 753 770 753 796 714 754 698 754 752 754 754 794 754 797 731 755 755 769 755 786 742 756 756 781 756 798 756 801 746 757 757 772 757 792 757 820 758 787 758 795 759 764 759 803 759 799 723 760 756 760 760 798 761 777 761 810 761 815 749 762 762 793 762 819 760 763 763 817 763 831 764 785 764 799 764 811 747 765 765 775 765 807 766 773 766 812 766 818 767 776 767 809 768 784 768 825 768 827 744 769 769 789 769 800 762 770 770 822 770 819 767 771 771 808 771 809 739 772 772 786 772 804 753 773 773 796 773 806 773 812 774 783 774 813 754 775 775 797 775 807 775 823 761 776 776 810 776 809 768 777 777 815 777 825 778 788 778 784 778 816 778 824 779 780 779 828 780 805 727 781 759 781 781 801 781 803 781 821 766 782 782 818 782 832 783 791 783 814 784 816 784 827 784 835 782 785 785 832 769 786 786 800 786 838 779 787 787 802 787 830 751 788 788 792 788 824 788 833 789 795 789 802 789 834 763 790 790 831 765 791 791 807 791 837 792 833 792 820 774 793 793 819 793 813 793 829 771 794 794 808 794 826 787 795 795 802 770 796 796 822 796 836 794 797 797 823 797 826 797 844 798 801 798 842 799 811 799 839 789 800 800 834 800 851 800 865 801 821 801 841 802 830 802 855 799 803 803 839 803 870 786 804 804 838 804 850 805 840 805 860 796 806 806 836 806 857 806 871 807 823 807 848 808 809 808 853 808 854 808 868 809 810 809 846 809 854 810 845 810 846 785 811 811 832 811 856 806 812 812 857 783 813 813 814 813 843 791 814 814 837 814 843 810 815 815 825 815 863 816 824 816 835 816 864 760 817 798 817 817 842 817 861 812 818 818 847 818 867 819 829 819 852 819 862 772 820 804 820 820 850 820 877 803 821 821 866 821 873 819 822 822 852 822 872 823 844 823 848 824 849 824 864 825 827 825 863 825 869 808 826 826 868 826 875 827 835 827 876 780 828 805 828 828 859 828 860 813 829 829 862 829 843 779 830 828 830 830 859 817 831 831 861 831 874 818 832 832 856 832 867 832 880 820 833 824 833 833 849 833 877 802 834 834 851 834 855 835 858 835 876 822 836 836 871 836 872 807 837 837 848 837 879 800 838 838 865 838 878 838 882 811 839 839 870 839 856 840 890 821 841 841 873 801 842 841 842 842 885 842 893 837 843 843 879 843 881 826 844 844 875 844 894 844 901 815 845 845 863 845 892 845 905 845 846 846 892 812 847 847 857 847 891 844 848 848 888 848 901 849 877 849 889 838 850 850 882 850 902 851 855 851 895 851 909 852 862 852 898 853 854 853 886 846 854 854 886 854 904 830 855 855 859 855 895 855 896 856 880 856 883 856 900 857 871 857 887 857 906 816 858 858 864 858 913 858 908 859 860 859 896 859 910 859 914 840 860 860 890 860 910 842 861 861 897 861 893 843 862 862 884 862 898 862 903 863 869 863 905 863 907 849 864 864 889 864 908 851 865 865 909 803 866 866 870 866 899 866 919 847 867 867 891 867 917 853 868 868 886 868 916 827 869 869 876 869 912 856 870 870 883 871 872 871 887 871 911 852 872 872 911 872 898 866 873 861 874 874 897 874 915 868 875 875 916 858 876 876 913 876 918 850 877 877 902 877 920 877 924 865 878 878 909 848 879 879 888 879 921 867 880 880 917 880 930 879 881 881 922 878 882 882 909 882 927 883 900 883 925 883 928 843 884 881 884 884 922 884 932 884 935 841 885 873 885 866 885 885 919 885 926 886 904 886 939 887 911 887 934 887 941 888 901 888 946 877 889 889 924 889 940 890 931 857 891 891 906 891 917 891 937 892 905 892 929 885 893 893 926 893 952 875 894 894 916 894 942 894 944 895 896 895 933 895 943 896 914 896 933 896 959 893 897 897 923 897 936 898 903 898 938 898 945 898 935 870 899 883 899 899 928 899 950 880 900 900 925 900 930 894 901 901 944 882 902 902 920 902 927 902 958 884 903 903 935 846 904 892 904 904 929 904 939 904 948 905 907 905 929 905 949 905 951 887 906 906 934 906 937 869 907 907 912 907 951 907 957 889 908 908 940 908 954 895 909 909 927 909 943 909 955 890 910 910 931 910 960 898 911 911 941 911 938 876 912 912 918 912 957 908 913 913 954 910 914 914 959 914 960 897 915 915 923 915 965 886 916 916 942 916 947 916 939 917 937 917 953 913 918 918 962 899 919 919 950 919 964 920 958 888 921 921 946 921 956 921 961 879 922 921 922 922 932 922 956 923 936 923 965 920 924 924 966 924 958 924 974 925 963 925 989 919 926 926 952 926 964 926 980 927 955 927 975 925 928 928 950 928 978 928 989 929 949 929 969 929 985 917 930 925 930 930 953 930 963 930 967 930 995 931 960 931 987 932 956 932 970 933 959 933 997 933 1000 934 941 934 977 934 981 932 935 935 945 935 979 893 936 936 952 936 976 937 953 934 937 937 977 938 945 938 968 938 982 939 948 939 972 939 984 924 940 940 966 940 992 938 941 941 968 941 981 942 947 942 991 942 972 933 943 943 994 943 997 942 944 944 983 944 991 945 982 945 979 901 946 944 946 946 983 946 1003 939 947 947 972 929 948 948 985 949 951 949 999 950 978 950 988 951 957 951 996 951 999 952 980 952 976 952 1005 953 967 953 971 940 954 954 986 954 992 943 955 955 994 955 1009 956 961 956 970 956 990 918 957 957 962 957 973 957 996 927 958 958 974 958 975 958 993 959 960 959 1001 960 987 960 1010 946 961 961 1006 961 990 913 962 954 962 962 973 962 986 962 1004 963 995 950 964 964 980 964 988 964 998 936 965 965 976 965 1015 966 992 966 974 966 1002 967 971 967 1025 967 1027 968 982 968 1017 949 969 969 999 969 1013 970 990 937 971 971 977 971 1012 971 1025 972 984 972 1014 972 1022 973 1004 973 1007 973 1024 974 1002 974 993 974 1016 955 975 975 1009 975 1037 976 1005 976 1019 977 981 977 1034 978 989 978 1020 978 1033 932 979 970 979 979 1021 979 1043 980 998 980 1038 980 1039 968 981 981 1017 981 1034 981 1045 979 982 982 1026 983 991 983 1003 983 1029 983 1030 948 984 984 985 984 1014 984 1023 969 985 985 1013 986 992 986 1036 987 1018 978 988 988 1020 963 989 989 995 989 1033 989 1042 990 1006 990 1008 972 991 991 1022 991 1030 992 1002 992 1011 992 1041 975 993 993 1016 993 1037 994 997 994 1044 967 995 995 1027 995 1042 973 996 996 1024 996 1035 997 1000 997 1044 988 998 998 1020 998 1038 998 1040 996 999 999 1031 959 1000 1000 1001 1000 1032 1000 1044 1000 1050 960 1001 1001 1010 1001 1032 1002 1011 1003 1029 986 1004 1004 1007 1004 1036 980 1005 1005 1039 1005 1048 1003 1006 1006 1028 1007 1024 1007 1036 1007 1052 1006 1008 1008 1028 1008 1046 1008 1055 994 1009 1009 1044 1009 1061 1009 1077 987 1010 1010 1047 974 1011 1011 1016 1011 1049 977 1012 1012 1034 1012 1058 999 1013 1013 1031 1013 1054 1014 1074 976 1015 1015 1019 1015 1069 1015 1063 1016 1037 1016 1049 1016 1051 1016 1081 982 1017 1017 1026 1017 1045 1017 1053 1010 1018 1018 1047 1018 1068 1005 1019 1019 1048 1019 1063 1020 1040 1020 1033 1020 1056 970 1021 990 1021 1008 1021 1021 1046 1021 1072 1021 1085 1014 1022 1022 1060 1022 1073 985 1023 1013 1023 1014 1023 1023 1054 1023 1074 1023 1075 1024 1052 1024 1066 1024 1080 1012 1025 1025 1058 1025 1084 979 1026 1026 1043 1026 1064 1025 1027 1027 1071 1003 1028 1028 1029 1028 1055 1028 1065 1029 1030 1029 1059 1022 1030 1030 1059 1030 1060 996 1031 1031 1035 1031 1076 1010 1032 1032 1047 1032 1062 1033 1042 1033 1056 1033 1070 1033 1079 1034 1045 1034 1088 1024 1035 1035 1066 1035 1076 992 1036 1036 1041 1036 1067 1009 1037 1037 1051 1037 1082 1037 1077 1038 1040 1038 1083 1038 1086 1038 1039 1039 1086 1040 1056 1040 1083 1011 1041 1041 1057 1041 1049 1041 1067 1027 1042 1042 1070 1042 1071 1021 1043 1043 1072 1043 1091 1044 1050 1044 1078 1045 1053 1045 1088 1045 1089 1046 1055 1046 1085 1047 1062 1047 1068 1047 1087 1039 1048 1048 1086 1048 1093 1049 1081 1049 1094 1032 1050 1050 1062 1050 1090 1051 1082 1052 1067 1052 1095 1026 1053 1053 1064 1053 1089 1053 1106 1031 1054 1054 1076 1054 1096 1054 1110 1055 1065 1055 1099 1055 1109 1056 1079 1056 1097 1049 1057 1057 1092 1057 1094 1057 1122 1034 1058 1058 1088 1058 1115 1059 1060 1059 1100 1060 1073 1060 1101 1044 1061 1061 1078 1061 1112 1061 1116 1062 1087 1062 1104 1062 1105 1048 1063 1063 1093 1063 1118 1043 1064 1064 1091 1064 1106 1029 1065 1059 1065 1065 1100 1065 1109 1066 1080 1066 1102 1057 1067 1067 1092 1067 1095 1068 1117 1063 1069 1069 1114 1070 1071 1070 1098 1070 1119 1025 1071 1071 1084 1071 1098 1071 1121 1072 1085 1072 1124 1072 1129 1072 1127 1014 1073 1073 1074 1073 1101 1073 1107 1074 1075 1074 1108 1054 1075 1075 1108 1075 1110 1066 1076 1076 1102 1061 1077 1077 1116 1050 1078 1078 1090 1078 1112 1078 1113 1070 1079 1079 1120 1079 1119 1052 1080 1080 1095 1080 1103 1080 1102 1051 1081 1081 1082 1081 1125 1081 1128 1077 1082 1082 1111 1082 1125 1056 1083 1083 1097 1083 1123 1058 1084 1084 1115 1084 1121 1055 1085 1085 1099 1085 1127 1083 1086 1086 1123 1086 1132 1068 1087 1087 1117 1088 1089 1088 1131 1089 1106 1089 1130 1089 1131 1089 1133 1062 1090 1090 1104 1090 1113 1072 1091 1091 1124 1092 1122 1086 1093 1093 1132 1093 1155 1093 1161 1081 1094 1094 1128 1094 1142 1092 1095 1095 1126 1095 1154 1076 1096 1096 1102 1096 1138 1096 1147 1079 1097 1097 1120 1097 1157 1098 1121 1098 1150 1099 1109 1099 1151 1060 1100 1100 1101 1100 1140 1101 1107 1101 1140 1101 1152 1102 1103 1102 1138 1102 1141 1095 1103 1103 1141 1103 1154 1104 1105 1104 1143 1087 1105 1105 1117 1105 1139 1091 1106 1106 1130 1106 1124 1106 1146 1074 1107 1107 1108 1107 1152 1107 1153 1108 1110 1108 1134 1108 1153 1100 1109 1109 1151 1109 1140 1109 1164 1096 1110 1110 1134 1110 1147 1110 1162 1077 1111 1111 1125 1111 1116 1111 1148 1112 1116 1112 1113 1112 1144 1112 1156 1104 1113 1113 1136 1063 1114 1114 1118 1114 1149 1088 1115 1115 1131 1115 1159 1115 1163 1116 1156 1117 1135 1117 1139 1093 1118 1118 1149 1118 1155 1098 1119 1119 1158 1119 1150 1119 1169 1119 1120 1120 1157 1120 1158 1115 1121 1121 1150 1121 1159 1094 1122 1122 1142 1122 1160 1097 1123 1123 1137 1123 1157 1123 1167 1124 1129 1124 1172 1124 1170 1125 1148 1125 1168 1092 1126 1122 1126 1126 1160 1126 1171 1099 1127 1127 1165 1127 1151 1125 1128 1128 1166 1128 1168 1127 1129 1129 1165 1129 1170 1130 1145 1130 1146 1131 1133 1131 1163 1131 1175 1131 1176 1131 1198 1123 1132 1132 1137 1130 1133 1133 1145 1133 1176 1134 1162 1134 1174 1104 1136 1136 1143 1136 1181 1137 1167 1137 1182 1137 1197 1138 1141 1138 1178 1135 1139 1139 1177 1139 1191 1140 1152 1140 1173 1140 1186 1141 1154 1141 1179 1141 1178 1128 1142 1142 1166 1142 1180 1142 1187 1105 1143 1139 1143 1143 1177 1143 1196 1113 1144 1136 1144 1144 1181 1144 1195 1145 1146 1145 1176 1145 1185 1124 1146 1146 1172 1146 1193 1138 1147 1147 1178 1147 1189 1116 1148 1148 1156 1148 1168 1148 1202 1149 1155 1149 1183 1149 1188 1150 1169 1150 1159 1150 1208 1150 1203 1151 1164 1151 1194 1151 1200 1152 1153 1152 1201 1152 1213 1134 1153 1153 1174 1153 1201 1153 1205 1153 1209 1126 1154 1154 1171 1154 1206 1155 1161 1155 1188 1144 1156 1156 1202 1156 1195 1157 1167 1157 1158 1157 1184 1157 1192 1158 1169 1158 1184 1158 1212 1159 1163 1159 1203 1159 1204 1142 1160 1160 1187 1132 1161 1137 1161 1161 1197 1161 1188 1147 1162 1162 1189 1162 1211 1163 1198 1163 1204 1140 1164 1164 1186 1164 1200 1151 1165 1165 1199 1165 1194 1166 1168 1166 1180 1166 1207 1166 1210 1167 1182 1167 1192 1168 1190 1168 1207 1169 1208 1169 1212 1165 1170 1170 1199 1170 1214 1160 1171 1171 1187 1171 1218 1170 1172 1172 1214 1172 1216 1152 1173 1173 1213 1173 1227 1162 1174 1174 1209 1174 1211 1175 1176 1175 1215 1175 1221 1176 1185 1176 1215 1177 1191 1177 1220 1178 1179 1178 1240 1178 1243 1154 1179 1179 1206 1179 1243 1180 1210 1180 1223 1143 1181 1181 1195 1181 1196 1181 1229 1182 1192 1182 1217 1182 1219 1183 1188 1183 1228 1184 1212 1184 1225 1184 1249 1146 1185 1185 1193 1185 1231 1185 1242 1173 1186 1186 1227 1186 1239 1180 1187 1187 1218 1187 1223 1187 1244 1188 1197 1188 1224 1178 1189 1189 1234 1189 1240 1148 1190 1190 1202 1190 1235 1135 1191 1191 1220 1191 1238 1184 1192 1192 1225 1172 1193 1193 1216 1193 1231 1193 1232 1194 1200 1194 1222 1195 1237 1195 1229 1177 1196 1196 1229 1196 1220 1196 1247 1182 1197 1197 1217 1197 1248 1175 1198 1198 1221 1194 1199 1199 1233 1186 1200 1200 1222 1200 1239 1201 1205 1201 1226 1195 1202 1202 1245 1203 1204 1203 1230 1198 1204 1204 1236 1205 1209 1205 1226 1171 1206 1206 1218 1206 1251 1190 1207 1207 1235 1207 1253 1207 1255 1203 1208 1208 1241 1208 1230 1209 1211 1209 1252 1209 1250 1209 1257 1207 1210 1210 1253 1189 1211 1211 1234 1211 1250 1208 1212 1212 1246 1212 1249 1212 1241 1201 1213 1213 1226 1199 1214 1214 1233 1214 1254 1185 1215 1215 1242 1215 1259 1214 1216 1216 1232 1216 1254 1217 1219 1217 1258 1218 1244 1218 1270 1192 1219 1219 1225 1219 1258 1219 1273 1219 1274 1220 1238 1220 1272 1215 1221 1221 1259 1221 1267 1222 1239 1222 1261 1222 1287 1210 1223 1223 1253 1223 1263 1197 1224 1224 1248 1224 1265 1225 1249 1225 1274 1209 1226 1226 1252 1226 1262 1226 1288 1213 1227 1227 1256 1227 1285 1227 1292 1188 1228 1224 1228 1228 1264 1228 1289 1229 1237 1229 1247 1229 1293 1204 1230 1230 1236 1230 1269 1230 1276 1231 1232 1231 1268 1232 1268 1232 1295 1194 1233 1233 1254 1222 1233 1233 1261 1233 1277 1234 1240 1234 1250 1234 1275 1234 1278 1202 1235 1235 1245 1235 1266 1198 1236 1221 1236 1236 1267 1237 1271 1238 1272 1238 1279 1227 1239 1239 1285 1240 1243 1240 1282 1230 1241 1241 1276 1231 1242 1242 1281 1243 1251 1243 1282 1243 1284 1243 1296 1223 1244 1244 1263 1244 1286 1195 1245 1237 1245 1245 1260 1245 1266 1245 1299 1241 1246 1246 1280 1246 1283 1220 1247 1247 1272 1247 1293 1217 1248 1248 1258 1248 1290 1246 1249 1249 1283 1249 1294 1250 1278 1250 1298 1218 1251 1251 1270 1251 1284 1252 1257 1253 1255 1253 1297 1253 1300 1232 1254 1254 1277 1254 1291 1254 1295 1235 1255 1255 1266 1255 1300 1213 1256 1226 1256 1256 1288 1250 1257 1257 1298 1258 1273 1258 1290 1242 1259 1259 1281 1259 1303 1237 1260 1260 1299 1260 1271 1260 1301 1260 1329 1261 1287 1261 1310 1252 1262 1257 1262 1262 1298 1262 1328 1262 1332 1253 1263 1263 1297 1263 1305 1224 1264 1264 1265 1264 1311 1248 1265 1265 1290 1265 1311 1265 1312 1266 1300 1266 1299 1266 1315 1259 1267 1267 1302 1267 1303 1267 1330 1268 1295 1268 1319 1268 1327 1236 1269 1267 1269 1269 1302 1244 1270 1270 1286 1270 1314 1270 1317 1229 1271 1271 1293 1271 1301 1271 1320 1272 1279 1272 1306 1273 1274 1273 1308 1273 1316 1249 1274 1274 1294 1274 1309 1240 1275 1275 1282 1275 1307 1275 1324 1275 1337 1269 1276 1276 1321 1276 1322 1261 1277 1277 1291 1277 1304 1277 1313 1275 1278 1278 1324 1279 1306 1279 1326 1241 1280 1276 1280 1280 1321 1231 1281 1268 1281 1281 1319 1282 1296 1282 1335 1280 1283 1283 1318 1284 1296 1270 1284 1284 1314 1284 1325 1285 1292 1285 1341 1263 1286 1286 1305 1286 1317 1239 1287 1285 1287 1287 1342 1287 1341 1262 1288 1288 1331 1288 1332 1264 1289 1289 1311 1289 1336 1273 1290 1290 1312 1290 1316 1291 1304 1291 1338 1256 1292 1288 1292 1292 1331 1292 1341 1272 1293 1293 1306 1293 1339 1283 1294 1294 1309 1294 1318 1294 1340 1291 1295 1295 1338 1296 1325 1296 1335 1297 1300 1297 1305 1297 1333 1278 1298 1298 1323 1298 1324 1298 1328 1299 1329 1300 1315 1300 1334 1301 1320 1301 1348 1302 1322 1302 1330 1302 1346 1281 1303 1303 1319 1303 1344 1303 1352 1304 1359 1305 1333 1305 1354 1305 1363 1306 1326 1306 1339 1306 1343 1306 1355 1282 1307 1307 1335 1307 1347 1274 1308 1308 1309 1308 1349 1308 1365 1309 1340 1309 1365 1287 1310 1310 1342 1310 1345 1311 1312 1311 1358 1312 1316 1312 1364 1312 1369 1261 1313 1304 1313 1310 1313 1313 1350 1313 1345 1313 1359 1314 1317 1314 1325 1314 1353 1314 1370 1299 1315 1315 1329 1315 1357 1308 1316 1316 1349 1316 1369 1305 1317 1317 1353 1317 1363 1280 1318 1318 1321 1318 1361 1318 1356 1319 1327 1319 1366 1293 1320 1320 1339 1320 1348 1320 1373 1321 1322 1321 1356 1321 1374 1269 1322 1322 1346 1322 1374 1323 1328 1323 1324 1323 1368 1323 1367 1324 1337 1324 1368 1324 1376 1325 1370 1326 1383 1295 1327 1327 1338 1327 1371 1328 1332 1328 1367 1301 1329 1329 1348 1329 1375 1303 1330 1330 1352 1330 1377 1331 1332 1331 1362 1331 1372 1332 1362 1332 1367 1300 1333 1333 1334 1333 1351 1315 1334 1334 1351 1334 1357 1325 1335 1335 1370 1335 1379 1311 1336 1336 1360 1336 1380 1307 1337 1337 1347 1337 1382 1304 1338 1338 1359 1339 1343 1339 1373 1339 1385 1318 1340 1340 1361 1340 1381 1331 1341 1341 1372 1341 1342 1342 1378 1342 1384 1343 1355 1343 1392 1319 1344 1344 1397 1344 1406 1342 1345 1345 1384 1345 1387 1330 1346 1346 1377 1346 1405 1335 1347 1347 1379 1347 1382 1347 1390 1348 1373 1348 1395 1349 1365 1349 1388 1349 1404 1345 1350 1350 1387 1351 1357 1351 1386 1351 1391 1344 1352 1352 1377 1352 1394 1353 1363 1353 1403 1353 1407 1333 1354 1351 1354 1354 1386 1354 1412 1326 1355 1355 1383 1355 1410 1356 1374 1356 1396 1356 1418 1329 1357 1357 1375 1357 1399 1312 1358 1358 1364 1358 1393 1350 1359 1359 1389 1311 1360 1358 1360 1360 1393 1356 1361 1361 1381 1361 1396 1361 1413 1362 1367 1362 1401 1354 1363 1363 1398 1364 1369 1364 1388 1364 1424 1340 1365 1365 1381 1365 1417 1327 1366 1344 1366 1366 1371 1366 1397 1367 1368 1367 1402 1367 1421 1368 1376 1368 1402 1368 1422 1349 1369 1369 1388 1353 1370 1370 1407 1370 1409 1338 1371 1359 1371 1371 1400 1371 1397 1371 1411 1362 1372 1372 1408 1373 1385 1373 1416 1346 1374 1374 1405 1374 1418 1374 1425 1348 1375 1375 1395 1375 1423 1337 1376 1376 1382 1376 1422 1376 1419 1376 1429 1377 1394 1377 1405 1377 1426 1341 1378 1372 1378 1378 1414 1378 1420 1370 1379 1379 1415 1379 1409 1360 1380 1380 1393 1380 1428 1381 1417 1381 1413 1382 1390 1382 1419 1383 1444 1378 1384 1384 1420 1343 1385 1385 1392 1385 1433 1386 1391 1384 1387 1387 1420 1387 1442 1388 1404 1388 1424 1388 1434 1350 1389 1387 1389 1389 1430 1379 1390 1390 1415 1390 1419 1357 1391 1391 1399 1391 1427 1391 1435 1355 1392 1392 1410 1392 1440 1364 1393 1393 1424 1393 1428 1393 1445 1394 1406 1394 1426 1394 1431 1373 1395 1395 1416 1395 1460 1395 1463 1396 1450 1396 1451 1397 1411 1397 1438 1354 1398 1398 1412 1398 1439 1375 1399 1399 1423 1399 1457 1359 1400 1389 1400 1400 1430 1400 1458 1367 1401 1401 1408 1401 1421 1401 1447 1401 1452 1402 1422 1402 1453 1363 1403 1398 1403 1403 1459 1365 1404 1404 1417 1404 1436 1405 1426 1405 1455 1397 1406 1406 1431 1406 1446 1406 1438 1403 1407 1407 1448 1362 1408 1408 1432 1408 1452 1407 1409 1409 1441 1409 1443 1409 1448 1383 1410 1410 1444 1400 1411 1411 1438 1411 1462 1386 1412 1391 1412 1412 1427 1412 1439 1396 1413 1413 1437 1413 1450 1372 1414 1408 1414 1414 1432 1414 1464 1414 1470 1409 1415 1415 1441 1385 1416 1416 1433 1416 1460 1413 1417 1417 1437 1417 1461 1396 1418 1418 1425 1418 1465 1415 1419 1419 1454 1414 1420 1420 1464 1402 1421 1421 1456 1421 1453 1422 1429 1422 1466 1395 1423 1423 1463 1423 1469 1424 1434 1424 1449 1405 1425 1425 1455 1426 1431 1426 1467 1427 1435 1427 1471 1427 1474 1428 1445 1428 1477 1419 1429 1429 1454 1429 1480 1429 1486 1387 1430 1430 1442 1430 1458 1430 1484 1430 1490 1431 1446 1431 1467 1431 1483 1432 1452 1392 1433 1433 1440 1433 1475 1433 1481 1404 1434 1434 1436 1434 1479 1434 1476 1399 1435 1435 1457 1435 1474 1435 1487 1417 1436 1436 1461 1436 1476 1437 1450 1437 1489 1437 1498 1438 1462 1438 1468 1438 1494 1427 1439 1439 1471 1439 1472 1410 1440 1440 1444 1440 1473 1440 1475 1441 1443 1441 1492 1420 1442 1442 1464 1442 1484 1443 1448 1443 1492 1443 1495 1444 1473 1444 1497 1424 1445 1445 1449 1445 1477 1445 1488 1438 1446 1446 1468 1446 1483 1421 1447 1447 1456 1447 1485 1447 1493 1403 1448 1448 1459 1448 1496 1434 1449 1449 1478 1449 1479 1450 1451 1450 1482 1450 1503 1418 1451 1451 1465 1451 1482 1447 1452 1452 1485 1452 1501 1422 1453 1453 1466 1453 1502 1415 1454 1441 1454 1454 1486 1454 1491 1454 1492 1426 1455 1455 1467 1455 1499 1455 1505 1453 1456 1456 1493 1456 1502 1423 1457 1457 1469 1457 1487 1457 1508 1458 1490 1458 1500 1398 1459 1439 1459 1459 1472 1459 1507 1433 1460 1460 1481 1460 1509 1437 1461 1461 1498 1400 1462 1458 1462 1462 1500 1462 1510 1460 1463 1463 1509 1464 1470 1464 1506 1425 1465 1455 1465 1465 1504 1429 1466 1466 1480 1467 1483 1467 1499 1468 1494 1468 1483 1468 1512 1463 1469 1469 1508 1469 1509 1432 1470 1452 1470 1470 1501 1470 1528 1471 1474 1471 1530 1471 1472 1472 1516 1473 1497 1473 1538 1474 1487 1474 1530 1474 1531 1473 1475 1475 1521 1461 1476 1476 1498 1476 1517 1476 1533 1476 1525 1477 1488 1477 1532 1477 1543 1478 1479 1478 1517 1478 1524 1476 1479 1479 1517 1480 1486 1480 1511 1480 1520 1475 1481 1481 1521 1481 1542 1465 1482 1482 1504 1482 1503 1482 1522 1482 1526 1483 1512 1483 1535 1464 1484 1484 1506 1484 1513 1484 1544 1485 1519 1486 1491 1486 1515 1486 1545 1487 1508 1487 1531 1487 1541 1449 1488 1478 1488 1488 1524 1488 1532 1450 1489 1489 1503 1489 1525 1489 1534 1484 1490 1490 1536 1490 1544 1491 1492 1491 1515 1492 1495 1492 1539 1485 1493 1493 1519 1493 1529 1462 1494 1494 1510 1494 1551 1448 1495 1495 1496 1495 1540 1459 1496 1496 1507 1496 1549 1497 1538 1497 1550 1489 1498 1498 1525 1483 1499 1499 1527 1499 1535 1490 1500 1500 1536 1500 1552 1485 1501 1501 1518 1466 1502 1493 1502 1480 1502 1502 1520 1502 1529 1503 1526 1503 1546 1455 1504 1504 1505 1504 1514 1504 1522 1499 1505 1505 1514 1505 1527 1470 1506 1506 1528 1506 1548 1472 1507 1507 1516 1507 1547 1507 1549 1508 1509 1508 1523 1508 1541 1481 1509 1509 1537 1509 1542 1500 1510 1510 1552 1510 1553 1486 1511 1511 1545 1511 1565 1494 1512 1512 1551 1512 1570 1512 1577 1506 1513 1513 1544 1513 1548 1513 1578 1514 1522 1514 1527 1514 1566 1492 1515 1515 1539 1515 1558 1471 1516 1516 1530 1516 1574 1517 1533 1517 1556 1517 1569 1485 1518 1518 1519 1518 1561 1518 1564 1519 1529 1519 1561 1511 1520 1520 1562 1520 1565 1473 1521 1521 1538 1521 1555 1521 1559 1522 1554 1509 1523 1523 1537 1523 1568 1517 1524 1524 1556 1524 1580 1525 1534 1525 1560 1525 1563 1522 1526 1526 1557 1527 1535 1527 1566 1527 1587 1501 1528 1518 1528 1528 1564 1528 1583 1520 1529 1529 1562 1529 1593 1530 1531 1530 1579 1531 1541 1531 1584 1524 1532 1532 1576 1532 1580 1525 1533 1533 1560 1533 1569 1503 1534 1534 1546 1534 1563 1534 1581 1512 1535 1535 1577 1536 1544 1536 1571 1536 1582 1537 1542 1537 1585 1537 1586 1538 1550 1539 1540 1539 1572 1539 1567 1496 1540 1540 1549 1540 1567 1540 1588 1523 1541 1541 1568 1541 1592 1521 1542 1542 1559 1542 1586 1532 1543 1543 1575 1543 1576 1544 1578 1544 1582 1515 1545 1545 1558 1545 1591 1526 1546 1546 1557 1546 1581 1516 1547 1547 1573 1547 1574 1528 1548 1548 1578 1548 1590 1548 1583 1547 1549 1549 1573 1549 1588 1550 1589 1510 1551 1551 1553 1551 1595 1536 1552 1552 1553 1552 1571 1552 1594 1553 1594 1553 1595 1514 1554 1554 1566 1554 1601 1554 1617 1538 1555 1550 1555 1555 1589 1555 1610 1556 1569 1556 1598 1522 1557 1554 1557 1557 1597 1539 1558 1558 1572 1558 1599 1558 1607 1555 1559 1559 1609 1559 1610 1560 1563 1560 1600 1560 1611 1529 1561 1561 1593 1561 1623 1562 1565 1562 1593 1562 1603 1563 1581 1563 1596 1563 1600 1561 1564 1564 1622 1564 1623 1545 1565 1565 1591 1565 1603 1565 1606 1566 1587 1566 1601 1566 1626 1567 1588 1567 1604 1567 1613 1537 1568 1568 1585 1568 1619 1560 1569 1569 1598 1569 1611 1551 1570 1570 1595 1570 1621 1571 1582 1571 1594 1571 1602 1567 1572 1572 1599 1572 1604 1573 1574 1573 1614 1530 1574 1574 1579 1574 1614 1574 1618 1575 1576 1575 1620 1575 1615 1576 1580 1576 1615 1570 1577 1577 1621 1577 1635 1578 1590 1578 1605 1578 1628 1531 1579 1579 1584 1579 1608 1579 1625 1556 1580 1580 1598 1580 1615 1580 1624 1557 1581 1581 1596 1581 1597 1581 1616 1578 1582 1582 1627 1564 1583 1583 1612 1583 1622 1541 1584 1584 1592 1584 1608 1584 1629 1585 1586 1585 1630 1559 1586 1586 1609 1586 1631 1586 1630 1535 1587 1577 1587 1587 1635 1573 1588 1588 1614 1588 1633 1589 1634 1583 1590 1590 1605 1590 1612 1558 1591 1591 1607 1568 1592 1592 1619 1592 1629 1593 1623 1593 1603 1593 1632 1594 1602 1594 1636 1594 1595 1595 1636 1595 1646 1596 1616 1596 1638 1554 1597 1597 1617 1597 1639 1598 1611 1598 1642 1599 1604 1599 1643 1599 1649 1596 1600 1600 1638 1600 1644 1601 1626 1601 1653 1582 1602 1602 1627 1602 1647 1603 1606 1603 1655 1603 1656 1604 1613 1604 1643 1605 1612 1605 1628 1605 1640 1605 1658 1591 1606 1606 1607 1606 1637 1606 1656 1599 1607 1607 1637 1607 1649 1608 1629 1608 1661 1608 1662 1609 1610 1609 1631 1609 1651 1609 1641 1589 1610 1610 1634 1610 1641 1600 1611 1611 1642 1611 1644 1611 1652 1612 1622 1612 1640 1612 1654 1588 1613 1613 1633 1613 1643 1613 1659 1614 1618 1614 1665 1614 1666 1615 1624 1615 1648 1597 1616 1616 1639 1616 1669 1601 1617 1617 1639 1617 1653 1617 1674 1618 1625 1618 1666 1618 1667 1585 1619 1619 1630 1619 1650 1619 1663 1615 1620 1620 1648 1620 1676 1595 1621 1621 1646 1621 1671 1622 1623 1622 1654 1622 1672 1623 1632 1623 1670 1623 1672 1598 1624 1624 1642 1624 1648 1624 1668 1608 1625 1625 1661 1625 1667 1587 1626 1626 1635 1626 1645 1626 1680 1627 1628 1627 1647 1627 1657 1627 1664 1628 1658 1619 1629 1629 1650 1629 1662 1630 1631 1631 1651 1631 1663 1631 1678 1603 1632 1632 1655 1632 1670 1614 1633 1633 1660 1633 1681 1634 1641 1634 1673 1621 1635 1635 1645 1635 1675 1602 1636 1636 1646 1636 1647 1636 1679 1637 1656 1637 1649 1637 1686 1616 1638 1638 1644 1638 1669 1638 1677 1639 1669 1639 1674 1639 1690 1640 1658 1640 1654 1640 1685 1641 1673 1641 1682 1642 1652 1642 1683 1643 1659 1643 1687 1644 1677 1644 1684 1644 1704 1645 1675 1645 1691 1646 1679 1646 1714 1647 1664 1647 1696 1648 1668 1648 1693 1648 1699 1648 1703 1643 1649 1649 1687 1649 1708 1650 1663 1650 1702 1641 1651 1651 1678 1651 1682 1651 1692 1644 1652 1652 1684 1652 1683 1626 1653 1653 1680 1653 1694 1654 1672 1654 1685 1654 1700 1655 1656 1655 1712 1656 1686 1656 1718 1628 1657 1657 1697 1657 1658 1658 1685 1658 1716 1633 1659 1659 1681 1659 1719 1614 1660 1660 1665 1661 1662 1661 1698 1661 1701 1650 1662 1662 1689 1662 1701 1630 1663 1663 1678 1663 1707 1657 1664 1664 1697 1664 1705 1665 1695 1665 1666 1666 1667 1666 1709 1661 1667 1667 1698 1667 1709 1642 1668 1668 1683 1668 1699 1669 1688 1669 1690 1655 1670 1670 1706 1670 1717 1670 1712 1646 1671 1671 1711 1671 1714 1670 1672 1672 1706 1673 1710 1653 1674 1674 1694 1621 1675 1671 1675 1675 1691 1675 1711 1648 1676 1676 1693 1669 1677 1677 1688 1677 1704 1678 1707 1678 1713 1678 1692 1647 1679 1679 1715 1679 1696 1645 1680 1680 1691 1660 1681 1665 1681 1681 1695 1681 1721 1673 1682 1682 1710 1682 1725 1683 1684 1683 1723 1683 1735 1684 1704 1684 1723 1684 1730 1685 1700 1685 1727 1649 1686 1686 1708 1686 1738 1659 1687 1687 1708 1687 1719 1687 1728 1687 1750 1688 1690 1688 1724 1688 1736 1650 1689 1689 1702 1689 1729 1689 1744 1674 1690 1690 1694 1690 1724 1690 1731 1690 1752 1691 1711 1691 1722 1691 1720 1691 1732 1691 1755 1682 1692 1692 1725 1692 1734 1693 1703 1693 1740 1680 1694 1694 1720 1694 1731 1666 1695 1695 1709 1695 1741 1695 1751 1664 1696 1696 1705 1696 1754 1696 1737 1658 1697 1697 1716 1697 1737 1697 1756 1698 1701 1698 1742 1698 1743 1683 1699 1699 1726 1672 1700 1700 1706 1700 1727 1700 1733 1700 1761 1689 1701 1701 1743 1701 1744 1663 1702 1702 1707 1702 1729 1702 1745 1699 1703 1703 1726 1703 1758 1688 1704 1704 1730 1704 1736 1697 1705 1705 1737 1706 1717 1706 1733 1707 1713 1707 1739 1708 1738 1708 1750 1698 1709 1709 1741 1709 1742 1710 1746 1711 1714 1711 1732 1656 1712 1712 1717 1712 1718 1712 1748 1712 1749 1692 1713 1713 1734 1713 1739 1679 1714 1714 1715 1714 1753 1714 1762 1696 1715 1715 1753 1715 1754 1685 1716 1716 1727 1716 1747 1716 1756 1717 1733 1717 1748 1717 1760 1686 1718 1718 1738 1718 1749 1681 1719 1719 1721 1719 1757 1680 1720 1720 1722 1720 1759 1695 1721 1721 1751 1722 1755 1722 1759 1723 1730 1724 1752 1710 1725 1725 1746 1683 1726 1726 1735 1727 1747 1727 1761 1719 1728 1728 1757 1729 1745 1730 1736 1720 1731 1731 1759 1714 1732 1732 1762 1733 1760 1725 1734 1723 1735 1724 1736 1737 1756 1738 1750 1734 1739 1703 1740 1740 1758 1741 1742 1742 1743 1729 1744 1743 1744 1707 1745 1739 1745 1748 1749 1738 1749 1728 1750 1741 1751 1731 1752 1753 1754 1753 1762 1737 1754 1732 1755 1747 1756 1721 1757 1751 1757 1726 1758 1755 1759 1748 1760 1733 1761 VERTEX_DATA 1763 PEDIGREE_IDS Pedigree%20IDs unsigned_long 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 From yxliuwm at gmail.com Fri Sep 18 13:34:09 2015 From: yxliuwm at gmail.com (Yixun Liu) Date: Fri, 18 Sep 2015 10:34:09 -0700 Subject: [vtkusers] how to blend a live video with a 3D virtual object (augumented reality) Message-ID: Hi, I have a live video to show the scene. Let's say their is only one board in the scene. The normal of the board is parallel to the projection direction of the real camera. I want to put a 3D virtual ball before or after the board. If the ball is before (near the camera) the board, part of the board will be occluded and if the ball is after (far from the camera) the ball, the board become translucent to show the ball. For the live video, for each pixel, I know its depth because I use a stereo camera. How to use vtk to do the rendering? Thanks a lot. Xin -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Sat Sep 19 02:53:54 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Sat, 19 Sep 2015 11:23:54 +0430 Subject: [vtkusers] color overlay Message-ID: Hi, Are there notices about color overlay for setting (threshold and window level ) in two dicom images For Example range of between in two issue Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.arneson at geotoolkit.net Sat Sep 19 14:51:33 2015 From: michael.arneson at geotoolkit.net (Michael Arneson) Date: Sat, 19 Sep 2015 11:51:33 -0700 (MST) Subject: [vtkusers] performance reading large data sets Message-ID: <1442688693702-5734024.post@n5.nabble.com> Hi I am trying to read in a large vtk file (13 million points) using the java wrapped vtk libraries. It takes my program 15 minutes just to load the vtk file but when i load the data into ParaView, it takes 3 minutes to load and view the file. Should I be using a different reader to read in the data? Does anyone know what ParaView is using to load the data so quickly (since ParaView uses vtk) I am using the following code to load the file: static { vtkNativeLibrary.LoadAllNativeLibraries(); } ... vtkGenericDataObjectReader reader = new vtkGenericDataObjectReader(); reader.SetFileName("...."); reader.Update(); Thank you, Michael -- View this message in context: http://vtk.1045678.n5.nabble.com/performance-reading-large-data-sets-tp5734024.html Sent from the VTK - Users mailing list archive at Nabble.com. From nirhal at post.bgu.ac.il Sat Sep 19 15:36:54 2015 From: nirhal at post.bgu.ac.il (nirhal) Date: Sat, 19 Sep 2015 12:36:54 -0700 (MST) Subject: [vtkusers] VTK compiling error with MinGW-w64: "cast loses precision" In-Reply-To: <55FC2E04.8010600@gmail.com> References: <1442588558605-5734017.post@n5.nabble.com> <55FC2E04.8010600@gmail.com> Message-ID: <1442691414743-5734025.post@n5.nabble.com> i've changed line 2410 also. Now it works. Thank you. -- View this message in context: http://vtk.1045678.n5.nabble.com/VTK-compiling-error-with-MinGW-w64-cast-loses-precision-tp5734017p5734025.html Sent from the VTK - Users mailing list archive at Nabble.com. From audrius at tomographix.com Sat Sep 19 16:35:34 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Sat, 19 Sep 2015 16:35:34 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: <20150916220229.GA18438@megas.khq.kitware.com> References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> <20150916220229.GA18438@megas.khq.kitware.com> Message-ID: <1442694934.3583867.388220385.286524C4@webmail.messagingengine.com> On Wed, Sep 16, 2015, at 18:02, Ben Boeckel wrote: > On Thu, Sep 10, 2015 at 12:19:21 -0400, Audrius Stundzia wrote: > > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL2); > > ... > > > only generates new link error messages of the type > > > > 1>stdafx.obj : error LNK2019: unresolved external symbol "void __cdecl > > vtkRenderingFreeTypeOpenGL2_AutoInit_Construct(void)" > > (?vtkRenderingFreeTypeOpenGL2_AutoInit_Construct@@YAXXZ) referenced in > > function "public: __cdecl vtkRenderingFreeTypeOpenGL2_ModuleInit::vtk- > > RenderingFreeTypeOpenGL2_ModuleInit(void)" > > (??0vtkRenderingFreeTypeOpenGL2_ModuleInit@@QEAA at XZ) > > This module does not exist (and the vtkRenderingFreeTypeOpenGL module is > also gone). > > --Be Understood. Thanks. Is there a summary page for vtk "OpenGL2" that summarizes what is required to get it running? Which CMake switches to set and which to turn off? Which vtk dlls to load? Which classes to instantiate? Thank you in advance. From cory.quammen at kitware.com Sat Sep 19 20:22:17 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Sat, 19 Sep 2015 20:22:17 -0400 Subject: [vtkusers] performance reading large data sets In-Reply-To: References: <1442688693702-5734024.post@n5.nabble.com> Message-ID: Adding in the list. On Sep 19, 2015 8:21 PM, "Cory Quammen" wrote: > Is your VTK compiled in debug or release mode? That can make a huge > difference, especially when you are loading ASCII files. > > HTH, > Cory > > On Sep 19, 2015 2:51 PM, "Michael Arneson" > wrote: > > > > Hi > > I am trying to read in a large vtk file (13 million points) using the > java > > wrapped vtk libraries. > > > > It takes my program 15 minutes just to load the vtk file but when i load > the > > data into ParaView, it takes 3 minutes to load and view the file. > > > > Should I be using a different reader to read in the data? > > > > Does anyone know what ParaView is using to load the data so quickly > (since > > ParaView uses vtk) > > > > I am using the following code to load the file: > > > > static { > > vtkNativeLibrary.LoadAllNativeLibraries(); > > } > > > > ... > > > > vtkGenericDataObjectReader reader = new vtkGenericDataObjectReader(); > > reader.SetFileName("...."); > > reader.Update(); > > > > Thank you, > > Michael > > > > > > > > -- > > View this message in context: > http://vtk.1045678.n5.nabble.com/performance-reading-large-data-sets-tp5734024.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 niels_dekker_address_until_2018 at xs4all.nl Sun Sep 20 05:20:30 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Sun, 20 Sep 2015 11:20:30 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' Message-ID: <55FE7A5E.8030908@xs4all.nl> When building VTK within Microsoft Visual Studio, I always get many (20+) 'D9025' warnings, saying: "cl : Command line warning D9025: overriding '/W1' with '/w'" These warnings appear useless and distracting to me. Can someone please fix this issue? The issue can be fixed by using '/W0', instead of '-w' or '/w', to disable MSVC warnings. It should be fixed in the following six files: CMake\vtkModuleMacros.cmake CMake\vtkThirdParty.cmake ThirdParty\xdmf2\vtkxdmf2\CMake\vtkThirdParty.cmake ThirdParty\exodusII\vtkexodusII\CMakeLists.txt ThirdParty\hdf5\vtkhdf5\CMakeLists.txt ThirdParty\netcdf\vtknetcdf\CMakeLists.txt I encountered these warnings on any version of VTK, CMake, and Visual Studio that I tried recently, including the latest releases, VTK 6.3.0, CMake 3.3.2, and Visual Studio 2015 (but also Visual Studio 2010). ITK used to have the same issue. My fix for the ITK issue was included with ITK 4.8.0. It was discussed at the ITK users mailing list: http://public.kitware.com/pipermail/community/2015-February/008349.html My ITK patch is at: http://review.source.kitware.com/#/c/19311/ A patch (unified diff) for VTK is hereby attached. Can someone please commit + push it to Kitware's VTK GIT, for me? Kind regards, Niels -- Niels Dekker Scientific programmer LKEB, Division of Image Processing Leiden University Medical Center -------------- next part -------------- CMake/vtkModuleMacros.cmake | 3 ++- CMake/vtkThirdParty.cmake | 6 +++--- ThirdParty/exodusII/vtkexodusII/CMakeLists.txt | 6 +++--- ThirdParty/hdf5/vtkhdf5/CMakeLists.txt | 8 ++++---- ThirdParty/netcdf/vtknetcdf/CMakeLists.txt | 8 ++++---- ThirdParty/xdmf2/vtkxdmf2/CMake/vtkThirdParty.cmake | 6 +++--- 6 files changed, 19 insertions(+), 18 deletions(-) diff --git a/CMake/vtkModuleMacros.cmake b/CMake/vtkModuleMacros.cmake index 556d4b1..cbc00e8 100644 --- a/CMake/vtkModuleMacros.cmake +++ b/CMake/vtkModuleMacros.cmake @@ -374,7 +374,8 @@ function(vtk_module_warnings_disable) foreach(lang IN LISTS ARGN) if(MSVC) string(REGEX REPLACE "(^| )[/-]W[0-4]( |$)" " " - CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -w") + CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}") + set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} /W0") elseif(BORLAND) set(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} -w-") else() diff --git a/CMake/vtkThirdParty.cmake b/CMake/vtkThirdParty.cmake index 0f58a1a..277f127 100644 --- a/CMake/vtkThirdParty.cmake +++ b/CMake/vtkThirdParty.cmake @@ -1,13 +1,13 @@ #----------------------------------------------------------------------------- MACRO(VTK_THIRD_PARTY_WARNING_SUPPRESS upper lang) IF(NOT ${upper}_WARNINGS_ALLOW) - # MSVC uses /w to suppress warnings. It also complains if another - # warning level is given, so remove it. + # Visual Studio generators of CMake use /W0 to suppress warnings. + # MSVC complains if another warning level is given, so remove it. IF(MSVC) SET(${upper}_WARNINGS_BLOCKED 1) STRING(REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}") - SET(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} /w") + SET(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} /W0") ENDIF() # Borland uses -w- to suppress warnings. diff --git a/ThirdParty/exodusII/vtkexodusII/CMakeLists.txt b/ThirdParty/exodusII/vtkexodusII/CMakeLists.txt index 870742f..1d2efa8 100644 --- a/ThirdParty/exodusII/vtkexodusII/CMakeLists.txt +++ b/ThirdParty/exodusII/vtkexodusII/CMakeLists.txt @@ -20,13 +20,13 @@ OPTION (EXODUSII_DISABLE_COMPILER_WARNINGS "Disable compiler warnings" ON) MARK_AS_ADVANCED(EXODUSII_DISABLE_COMPILER_WARNINGS) IF (EXODUSII_DISABLE_COMPILER_WARNINGS) - # MSVC uses /w to suppress warnings. It also complains if another - # warning level is given, so remove it. + # Visual Studio generators of CMake use /W0 to suppress warnings. + # MSVC complains if another warning level is given, so remove it. IF (MSVC) SET (EXODUSII_WARNINGS_BLOCKED 1) STRING (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") - SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") + SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0") ENDIF () IF(WIN32) ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS) diff --git a/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt b/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt index 6f89861..bee625c 100644 --- a/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt +++ b/ThirdParty/hdf5/vtkhdf5/CMakeLists.txt @@ -445,14 +445,14 @@ endif (HDF5_ENABLE_EMBEDDED_LIBINFO) #----------------------------------------------------------------------------- option (HDF5_DISABLE_COMPILER_WARNINGS "Disable compiler warnings" OFF) if (HDF5_DISABLE_COMPILER_WARNINGS) - # MSVC uses /w to suppress warnings. It also complains if another - # warning level is given, so remove it. + # Visual Studio generators of CMake use /W0 to suppress warnings. + # MSVC complains if another warning level is given, so remove it. if (MSVC) set (HDF5_WARNINGS_BLOCKED 1) string (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") + set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0") string (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0") endif (MSVC) if (WIN32) add_definitions (-D_CRT_SECURE_NO_WARNINGS) diff --git a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt index 974e82f..4ed8168 100644 --- a/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt +++ b/ThirdParty/netcdf/vtknetcdf/CMakeLists.txt @@ -270,15 +270,15 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/ncconfig.h.in OPTION (NETCDF_DISABLE_COMPILER_WARNINGS "Disable compiler warnings" ON) MARK_AS_ADVANCED(NETCDF_DISABLE_COMPILER_WARNINGS) IF (NETCDF_DISABLE_COMPILER_WARNINGS) - # MSVC uses /w to suppress warnings. It also complains if another - # warning level is given, so remove it. + # Visual Studio generators of CMake use /W0 to suppress warnings. + # MSVC complains if another warning level is given, so remove it. IF (MSVC) STRING (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_C_FLAGS "${CMAKE_C_FLAGS}") STRING (REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}") - SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /w") - SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /w") + SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /W0") + SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W0") # Borland uses -w- to suppress warnings. ELSEIF (BORLAND) SET (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -w-") diff --git a/ThirdParty/xdmf2/vtkxdmf2/CMake/vtkThirdParty.cmake b/ThirdParty/xdmf2/vtkxdmf2/CMake/vtkThirdParty.cmake index 8af7ab4..63caa10 100644 --- a/ThirdParty/xdmf2/vtkxdmf2/CMake/vtkThirdParty.cmake +++ b/ThirdParty/xdmf2/vtkxdmf2/CMake/vtkThirdParty.cmake @@ -55,13 +55,13 @@ ENDMACRO() #----------------------------------------------------------------------------- MACRO(VTK_THIRD_PARTY_WARNING_SUPPRESS upper lang) IF(NOT ${upper}_WARNINGS_ALLOW) - # MSVC uses /w to suppress warnings. It also complains if another - # warning level is given, so remove it. + # Visual Studio generators of CMake use /W0 to suppress warnings. + # MSVC complains if another warning level is given, so remove it. IF(MSVC) SET(${upper}_WARNINGS_BLOCKED 1) STRING(REGEX REPLACE "(^| )([/-])W[0-9]( |$)" " " CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS}") - SET(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} /w") + SET(CMAKE_${lang}_FLAGS "${CMAKE_${lang}_FLAGS} /W0") ENDIF() # Borland uses -w- to suppress warnings. From marco.dev.open at gmail.com Sun Sep 20 06:58:48 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Sun, 20 Sep 2015 15:28:48 +0430 Subject: [vtkusers] Automated Threshold-Finding Methods Message-ID: Hi , is there any method in itk vtk or 3d slicer or any image proceeding field about this subject "Automated Threshold-Finding Methods " Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From jhlegarreta at vicomtech.org Sun Sep 20 15:41:17 2015 From: jhlegarreta at vicomtech.org (Jon Haitz Legarreta) Date: Sun, 20 Sep 2015 21:41:17 +0200 Subject: [vtkusers] [slicer-devel] Automated Threshold-Finding Methods In-Reply-To: <1ba272cc4be04cabbce057be510b0ad4@PHSX10HT3.partners.org> References: <1ba272cc4be04cabbce057be510b0ad4@PHSX10HT3.partners.org> Message-ID: Dear Marco, you may find useful the OtsuThresholdImageFilter [1] provided by ITK. HTH, JON HAITZ [1] http://www.itk.org/Doxygen/html/classitk_1_1OtsuThresholdImageFilter.html On 20 September 2015 at 12:58, Marco Dev wrote: > Hi , > is there any method in itk vtk or 3d slicer or any image proceeding field > about this subject " Automated Threshold-Finding Methods " > > Thanks > > _______________________________________________ > slicer-devel mailing list > slicer-devel at bwh.harvard.edu > http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel > To unsubscribe: send email to slicer-devel-request at bwh.harvard.edu with > unsubscribe as the subject > > http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ > > > The information in this e-mail is intended only for the person to whom it > is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Mon Sep 21 09:25:56 2015 From: ken.martin at kitware.com (Ken Martin) Date: Mon, 21 Sep 2015 09:25:56 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: <1442694934.3583867.388220385.286524C4@webmail.messagingengine.com> References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> <20150916220229.GA18438@megas.khq.kitware.com> <1442694934.3583867.388220385.286524C4@webmail.messagingengine.com> Message-ID: You select OpenGL2 by setting VTK_RENDERING_BACKEND to OpenGL2 Libraries should all be the same as the old OpenGL just with the name changed to OpenGL2 with the exception of LIC changing to LICOpenGL2 if you are using LIC. If you build with CMake using VTK in the standard way I believe most of this is handled for you. The classes to instantiate depends on your application but in general they should not change. vtkActor, vtkPolyDataMapper, vtkRenderWindow, etc. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Audrius Stundzia Sent: Saturday, September 19, 2015 4:36 PM To: Ben Boeckel Cc: VTK Users Subject: Re: [vtkusers] vtk 6.3.0 | Using OpenGL2? On Wed, Sep 16, 2015, at 18:02, Ben Boeckel wrote: > On Thu, Sep 10, 2015 at 12:19:21 -0400, Audrius Stundzia wrote: > > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL2); > > ... > > > only generates new link error messages of the type > > > > 1>stdafx.obj : error LNK2019: unresolved external symbol "void > > 1>__cdecl > > vtkRenderingFreeTypeOpenGL2_AutoInit_Construct(void)" > > (?vtkRenderingFreeTypeOpenGL2_AutoInit_Construct@@YAXXZ) referenced in > > function "public: __cdecl vtkRenderingFreeTypeOpenGL2_ModuleInit::vtk- > > RenderingFreeTypeOpenGL2_ModuleInit(void)" > > (??0vtkRenderingFreeTypeOpenGL2_ModuleInit@@QEAA at XZ) > > This module does not exist (and the vtkRenderingFreeTypeOpenGL module > is also gone). > > --Be Understood. Thanks. Is there a summary page for vtk "OpenGL2" that summarizes what is required to get it running? Which CMake switches to set and which to turn off? Which vtk dlls to load? Which classes to instantiate? Thank you in advance. _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers From oscar.cainelli at smarthydrosol.com Mon Sep 21 09:26:29 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Mon, 21 Sep 2015 06:26:29 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> Message-ID: <1442841989315-5734032.post@n5.nabble.com> Hi Matias, I am interested in knowing what tweaks you did to get it work. Whatever I do I only get the runtime.unmanaged dll but not the runtime.managed one Thank you Oscar -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734032.html Sent from the VTK - Users mailing list archive at Nabble.com. From matimontg at gmail.com Mon Sep 21 09:34:49 2015 From: matimontg at gmail.com (Matias Montroull) Date: Mon, 21 Sep 2015 13:34:49 +0000 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <1442841989315-5734032.post@n5.nabble.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <1442841989315-5734032.post@n5.nabble.com> Message-ID: Hi Oscar, When I downloaded mummy I did it from git: git clone git://public.kitware.com/mummy.git Then I created the .snk file with SDK and modified the Cmakelist.txt file to set the path to my .snk file One important step is to add these lines in mummy/CMakeLists.txt: SET(gccxml_compiler "${CMAKE_CXX_COMPILER}") IF(MSVC80) SET(gccxml_compiler "msvc8") ENDIF(MSVC80) IF(MSVC90) SET(gccxml_compiler "msvc9") ENDIF(MSVC90) SET (GCCXML_EXTRA_D_ARGS "_HAS_TR1=0") - This must be at the top of the file or else the variable GCCXML_EXTRA_D_ARGS will not be set for CMakeLists.txt. Best to add after CMAKE_MINIMUM_REQUIRED line. Then make sure you select Visual 9 in Cmake, I assume you instaklled Visual C++ 2008 El lun., 21 de sept. de 2015 a la(s) 10:26 a. m., oscarafone77 < oscar.cainelli at smarthydrosol.com> escribi?: > Hi Matias, > > I am interested in knowing what tweaks you did to get it work. > Whatever I do I only get the runtime.unmanaged dll but not the > runtime.managed one > > Thank you > Oscar > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734032.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 > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Mon Sep 21 10:13:11 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Mon, 21 Sep 2015 10:13:11 -0400 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> Message-ID: Please feel free to update the wiki page directly. Also, post a link to it in this thread when you do. That way the information will have the best visibility for others to find. thanks David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Wed, Sep 16, 2015 at 7:41 PM, Matias Montroull wrote: > Hi, > > I was able to build ActiViz successfully. Altough Mummy did not completely > built, I got the 2 Kitware.Mummy DLLs that are needed for ActiViz to be > built as well as the mummy.exe file. > > *I thank Mark for all the information he provided*, I'll try to post the > steps I followed, it's pretty similar to what you can find in the Wiki Page > but there are some tweaks that need to be done in order to get it working. > > I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring the > project with Cmake and needed to change vtkCommonEL_dll to > vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll > in the vtkProgrammableAttributeDataFilter_Extra.cs > > Regards, > > Matias. > > El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman < > mark at cascadeacoustic.com> escribi?: > >> >Why not just publish a git branch with your changes on GitHub or some >> >other publicly hosted site? Perhaps your branch would get picked up by >> >the folks maintaining the ActiViz repo now. >> >> Because I don't use git. We use TFS at work, and the easiest way to >> publish it was to zip it all up and put it on a cloud drive. >> >> Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real >> solution. What is the point in patching it for modern VS support if it's a >> dead project. Fixing mummy to support the standard VTK wrapping libraries >> makes the most since. >> >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ------------------------------ >> *From*: "David Cole" >> *Sent*: Wednesday, September 16, 2015 7:12 AM >> *To*: mark at cascadeacoustic.com >> *Cc*: "vtkusers at vtk.org" >> >> *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> > "if my idea of adding a second build step can get rid of the >> VS2008/MSCRT9 dependency for the final library" >> >> Yes, I think it absolutely could. It would be based on the assumption, >> however, that the interface generated by analyzing the source under >> the VS2008 environment would in the end be compatible with what you >> compile and link for the final library. And it would mean a two-stage >> build, with VS2008 still required for the first stage. >> >> I would be interested to see if anybody can replace gcc-xml with the >> new&improved CastXML, and still build ActiViz using a more modern VS >> all in one go. I haven't had time to investigate bringing things up to >> date for using CastXML, but if anybody else does, please do let us all >> know here on the VTK lists. >> >> Question for you: >> Why not just publish a git branch with your changes on GitHub or some >> other publicly hosted site? Perhaps your branch would get picked up by >> the folks maintaining the ActiViz repo now. >> >> >> Cheers, >> David C. >> >> >> >> >> On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman >> wrote: >> > Mallikarjun, >> > Your very welcome. I hope they'll help someone else out. I've been very >> > excited about using Activiz in a project for years. Since I was a kid >> stuck >> > running BSD on mac68k I've always enjoyed the challenge of porting >> software, >> > so I had a great time working on the build. >> > >> > gccxml generates the XML description of the C++ VTK library exports. >> Mummy >> > reads these and generates the csharp wrapper files. I really have not >> dug >> > into it deep enough yet to know how the Activiz export layer source fits >> > into the puzzle, but if I get some time, I'll see if my idea of adding a >> > second build step can get rid of the VS2008/MSCRT9 dependency for the >> final >> > library. >> > >> > Mark DeArman >> > Cascade Acoustic Research >> > http://www.cascadeacoustic.com >> > (253) 200-5353 >> > >> > ________________________________ >> > From: "Mallikarjun K" >> > Sent: Tuesday, September 15, 2015 9:52 PM >> > To: mark at cascadeacoustic.com >> > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> > >> > Hi Mark, >> > >> > Thanks for sharing the source directories. One quick question..if I am >> not >> > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ >> > program, I found link https://github.com/dgobbi/WrapVTK which has a >> > generator for xml. >> > >> > Thank you. >> > >> > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman > > >> > wrote: >> >> >> >> Nothing will make it build in VS2013. Because of gccxml, you have to >> have >> >> VS2008 to do the build. >> >> I started to work on patching gccxml, but that was kind of a nightmare >> >> I'll leave to someone with more time. >> >> I am not a C++ template guru. >> >> >> >> But, the changes I've made build the binaries targeting .NET 4.0 >> instead >> >> of .NET 2.0. >> >> >> >> Here is the link to the Source download directory. I'm uploading it >> right >> >> now, so it will be a little bit. >> >> >> >> >> >> >> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >> >> >> >> Mark DeArman >> >> Cascade Acoustic Research >> >> http://www.cascadeacoustic.com >> >> (253) 200-5353 >> >> >> >> ________________________________ >> >> From: "Mallikarjun K" >> >> Sent: Monday, September 14, 2015 5:55 AM >> >> To: mark at cascadeacoustic.com >> >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> >> Success >> >> >> >> Hi Mark, >> >> >> >> Can you send me the patched source directories. I want to make use of >> >> activiz 6.2 for vtk 6.2 with vs2013? >> >> >> >> Thanks >> >> >> >> >> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman < >> mark at cascadeacoustic.com> >> >> wrote: >> >>> >> >>> I finally finished patching and testing the build. >> >>> VTK-6.2 built with Intel C++ 14.0 >> >>> Activiz 6.2 built with .NET 4.0 >> >>> Mummy 1.0.3 built with .NET 4.0 >> >>> >> >>> If anyone else is having trouble getting this working, feel free to >> get >> >>> in contact with me, I can send you my patched source directories. >> This is >> >>> my first experience with CMake, and I've got to say it sure made >> things a >> >>> breeze. >> >>> >> >>> The only thing which drove me nuts was the number of times a full >> rebuild >> >>> got triggered after patching individual source files. I wish the >> >>> maintainers would remove the gccxml/mummy generate functions from the >> >>> configure step, and just make it another build step. >> >>> >> >>> I hope I can get more involved with the project but I've got a lot of >> >>> learning to do before I'd feel comfortable in CMake. >> >>> >> >>> Mark DeArman >> >>> Cascade Acoustic Research >> >>> http://www.cascadeacoustic.com >> >>> (253) 200-5353 >> >>> >> >>> _______________________________________________ >> >>> Powered by www.kitware.com >> >>> >> >>> Visit other Kitware open-source projects at >> >>> http://www.kitware.com/opensource/opensource.html >> >>> >> >>> Please keep messages on-topic and check the VTK FAQ at: >> >>> http://www.vtk.org/Wiki/VTK_FAQ >> >>> >> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >>> >> >>> Follow this link to subscribe/unsubscribe: >> >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >>> >> >> >> >> >> >> >> >> -- >> >> With Kind Regards: >> >> Mallikarjuna K, >> >> 07795531103/09908238861. >> >> >> >> >> >> _______________________________________________ >> >> Powered by www.kitware.com >> >> >> >> Visit other Kitware open-source projects at >> >> http://www.kitware.com/opensource/opensource.html >> >> >> >> Please keep messages on-topic and check the VTK FAQ at: >> >> http://www.vtk.org/Wiki/VTK_FAQ >> >> >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> >> >> Follow this link to subscribe/unsubscribe: >> >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> > >> > >> > >> > -- >> > With Kind Regards: >> > Mallikarjuna K, >> > 07795531103/09908238861. >> > >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > 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 >> > -- > Matias > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 jim at jslengineeringsoftware.com Mon Sep 21 10:20:56 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Mon, 21 Sep 2015 10:20:56 -0400 Subject: [vtkusers] Java vtkPointToCellData Message-ID: <56001248.9030406@jslengineeringsoftware.com> Hello all, I created a pipeline that seems to make sense to me, but always my polyDataComplete is empty. Any ideas why this code doesn't work? The only vtkPointToCellData example on the web that I can find uses blow.vtk, which doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets correctly populated with the points and their scalars below. // Create a new, empty polyData polyData = new vtkPolyData(); // populate the polyData points polyData.SetPoints(points); // populate the polyData scalars polyData.GetPointData().SetScalars(colorsScalars); vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = new vtkPolyData(); polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataComplete); polyMapper.ScalarVisibilityOn(); polyMapper.SetScalarRange(scalarMin, scalarMax); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); // ...Usual render stuff... Thanks, Jim -------------- next part -------------- An HTML attachment was scrubbed... URL: From audrius at tomographix.com Mon Sep 21 10:29:31 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Mon, 21 Sep 2015 10:29:31 -0400 Subject: [vtkusers] vtk 6.3.0 | Using OpenGL2? In-Reply-To: References: <1441867343.1301467.379586993.594EB58A@webmail.messagingengine.com> <1441901961.2051878.380010673.22F27C30@webmail.messagingengine.com> <20150916220229.GA18438@megas.khq.kitware.com> <1442694934.3583867.388220385.286524C4@webmail.messagingengine.com> Message-ID: <1442845771.1120528.389413185.26DEC6E9@webmail.messagingengine.com> On Mon, Sep 21, 2015, at 09:25, Ken Martin wrote: > You select OpenGL2 by setting VTK_RENDERING_BACKEND to OpenGL2 > > Libraries should all be the same as the old OpenGL just with the name > changed to OpenGL2 with the exception of LIC changing to LICOpenGL2 if > you > are using LIC. If you build with CMake using VTK in the standard way I > believe most of this is handled for you. The classes to instantiate > depends on your application but in general they should not change. > vtkActor, vtkPolyDataMapper, vtkRenderWindow, etc. Project up and running now. Thank you. > Thanks > Ken > > Ken Martin PhD > Chairman & CFO > Kitware Inc. > 28 Corporate Drive > Clifton Park NY 12065 > ken.martin at kitware.com > 919 869-8871 (w) > > > 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. > > > -----Original Message----- > From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Audrius > Stundzia > Sent: Saturday, September 19, 2015 4:36 PM > To: Ben Boeckel > Cc: VTK Users > Subject: Re: [vtkusers] vtk 6.3.0 | Using OpenGL2? > > > > On Wed, Sep 16, 2015, at 18:02, Ben Boeckel wrote: > > On Thu, Sep 10, 2015 at 12:19:21 -0400, Audrius Stundzia wrote: > > > VTK_MODULE_INIT(vtkRenderingFreeTypeOpenGL2); > > > > ... > > > > > only generates new link error messages of the type > > > > > > 1>stdafx.obj : error LNK2019: unresolved external symbol "void > > > 1>__cdecl > > > vtkRenderingFreeTypeOpenGL2_AutoInit_Construct(void)" > > > (?vtkRenderingFreeTypeOpenGL2_AutoInit_Construct@@YAXXZ) referenced > in > > > function "public: __cdecl > vtkRenderingFreeTypeOpenGL2_ModuleInit::vtk- > > > RenderingFreeTypeOpenGL2_ModuleInit(void)" > > > (??0vtkRenderingFreeTypeOpenGL2_ModuleInit@@QEAA at XZ) > > > > This module does not exist (and the vtkRenderingFreeTypeOpenGL module > > is also gone). > > > > --Be > > Understood. Thanks. > > Is there a summary page for vtk "OpenGL2" that summarizes what is > required > to get it running? > > Which CMake switches to set and which to turn off? > > Which vtk dlls to load? > > Which classes to instantiate? > > Thank you in advance. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers From sebastien.jourdain at kitware.com Mon Sep 21 10:38:59 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Mon, 21 Sep 2015 08:38:59 -0600 Subject: [vtkusers] Java vtkPointToCellData In-Reply-To: <56001248.9030406@jslengineeringsoftware.com> References: <56001248.9030406@jslengineeringsoftware.com> Message-ID: Try that vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // <==== For the execution of the filter // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // No need to create a polydata just get a ref from the filter On Mon, Sep 21, 2015 at 8:20 AM, James Labiak < jim at jslengineeringsoftware.com> wrote: > Hello all, > I created a pipeline that seems to make sense to me, but always my > polyDataComplete is empty. Any ideas why this code doesn't work? The only > vtkPointToCellData example on the web that I can find uses blow.vtk, which > doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets > correctly populated with the points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oleg.krivosheev at xcision.com Mon Sep 21 12:27:11 2015 From: oleg.krivosheev at xcision.com (Oleg Krivosheev) Date: Mon, 21 Sep 2015 12:27:11 -0400 Subject: [vtkusers] performance reading large data sets In-Reply-To: <1442688693702-5734024.post@n5.nabble.com> References: <1442688693702-5734024.post@n5.nabble.com> Message-ID: Michael it might be not reading per se, but data memory allocation. Did you try to profile it? I remember question about 2mo ago wrt large data set memory allocation in Java, you might want to check it in archives OK On Sat, Sep 19, 2015 at 2:51 PM, Michael Arneson < michael.arneson at geotoolkit.net> wrote: > Hi > I am trying to read in a large vtk file (13 million points) using the java > wrapped vtk libraries. > > It takes my program 15 minutes just to load the vtk file but when i load > the > data into ParaView, it takes 3 minutes to load and view the file. > > Should I be using a different reader to read in the data? > > Does anyone know what ParaView is using to load the data so quickly (since > ParaView uses vtk) > > I am using the following code to load the file: > > static { > vtkNativeLibrary.LoadAllNativeLibraries(); > } > > ... > > vtkGenericDataObjectReader reader = new vtkGenericDataObjectReader(); > reader.SetFileName("...."); > reader.Update(); > > Thank you, > Michael > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/performance-reading-large-data-sets-tp5734024.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 marco.dev.open at gmail.com Mon Sep 21 12:43:38 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Mon, 21 Sep 2015 21:13:38 +0430 Subject: [vtkusers] pet/ct threshold segmentation Message-ID: Hi , How about ConnectedThresholdSegmentatio for (PET / CT ) ?? Full body I want to after give specific CLUT for pet rainbow and for ct grey .... this filter should remove the RED color from rainbow to boundary shape means (OUTSIDE - INSIDE ) can you give me a guide line Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From audrius at tomographix.com Mon Sep 21 13:09:38 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Mon, 21 Sep 2015 13:09:38 -0400 Subject: [vtkusers] vtk 6.3.0 | OpenGL2: OpenGL errors? Message-ID: <1442855378.1815151.389566673.4FEAA289@webmail.messagingengine.com> Hello, OS: Windows 10 x64 IDE: MS VS2015 x64 CMake: VTK_RENDERING_BACKEND OpenGL2 VTK_REPORT_OPENGL_ERRORS [Checkmark - On] VTK: 6.3.0 x64 Debug build In stdafx.h, have #include Encountering the following runtime error message: Error in ...\OpenGL2\vtkOpenGLRenderer.cxx, line 351 vtkOpenGLRenderer [...]: failed after Clear 16 OpenGL errors detected :[1282] Invalid Operation ... 15:[1282] Invalid Operation in previously working code, in vtk 5.10.1, that texture maps an image onto a plane. The image is displayed as before, however, it is accompanied by the above error message. A Google search suggests that this may be a GLSL version issue: https://stackoverflow.com/questions/31323870/opengl-error-1282-invalid-operation-when-using-texture Also, attempting to add the vtk line of code vtkOpenGLClearErrorMacro(); generates the following error message: error LNK2019: unresolved external symbol __imp_glGetError referenced in function "void __cdecl vtkClearOpenGLErrors(unsigned int)" (?vtkClearOpenGLErrors@@YAXI at Z) Please advise. -------------- next part -------------- An HTML attachment was scrubbed... URL: From michael.arneson at geotoolkit.net Mon Sep 21 13:42:29 2015 From: michael.arneson at geotoolkit.net (Michael Arneson) Date: Mon, 21 Sep 2015 10:42:29 -0700 (MST) Subject: [vtkusers] performance reading large data sets In-Reply-To: References: <1442688693702-5734024.post@n5.nabble.com> Message-ID: <1442857349016-5734041.post@n5.nabble.com> my VTK was comiled in debug mode. Changing it to release mode did improve performance. Now it takes 5 minutes to read in the file. Is there anything else I can do to improve performance for loading in large files? Right now I am just building my vtk with the default options and VTK_WRAP_JAVA. Thanks Michael -- View this message in context: http://vtk.1045678.n5.nabble.com/performance-reading-large-data-sets-tp5734024p5734041.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Sep 21 13:53:09 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 21 Sep 2015 13:53:09 -0400 Subject: [vtkusers] performance reading large data sets In-Reply-To: <1442857349016-5734041.post@n5.nabble.com> References: <1442688693702-5734024.post@n5.nabble.com> <1442857349016-5734041.post@n5.nabble.com> Message-ID: Michael, If you are currently reading ASCII VTK files, you will get a huge improvement in reading performance if you switch to reading binary VTK files. You'll have to convert your ASCII files at least once, or change how you are writing VTK files if you are writing them yourself. - Cory On Mon, Sep 21, 2015 at 1:42 PM, Michael Arneson < michael.arneson at geotoolkit.net> wrote: > my VTK was comiled in debug mode. Changing it to release mode did improve > performance. Now it takes 5 minutes to read in the file. > > Is there anything else I can do to improve performance for loading in large > files? > > Right now I am just building my vtk with the default options and > VTK_WRAP_JAVA. > > Thanks > Michael > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/performance-reading-large-data-sets-tp5734024p5734041.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pablo.hernandez.cerdan at outlook.com Mon Sep 21 17:10:05 2015 From: pablo.hernandez.cerdan at outlook.com (=?iso-8859-1?B?UGFibG8gSGVybuFuZGV6?=) Date: Mon, 21 Sep 2015 23:10:05 +0200 Subject: [vtkusers] GraphLayoutView and showing EdgePoints Message-ID: Is there any way to show EdgePoints (points attached to each edge) with vtkGraphLayoutView? I would like to view the edges as a polyLine from initial vertex, follow the EdgePoints and finish in the other vertex (undirectedGraph). I am using: vtkSmartPointer graphLayoutView = vtkSmartPointer::New(); graphLayoutView->AddRepresentationFromInput(graph); graphLayoutView->SetLayoutStrategy("Pass Through"); I have been testing it, and I have only managed to render edges between connected points that were set with graph->SetPoints(). Is there any API to visualize EdgePoints? vtkGraphToPolyData uses EdgePoints to generate vtkLines, stored at CellData, but then I lose track at vtkRenderedGraphRepresentation (used by GraphLayoutView) . The internal pipeline of vtkRenderedGraphRepresentation is a bit complex, the related bits are: this->GraphToPoly = vtkSmartPointer::New(); // Edge actor this->GraphToPoly->SetInputConnection(this->ApplyColors->GetOutputPort()); this->EdgeMapper->SetInputConnection(this->GraphToPoly->GetOutputPort()); this->EdgeActor->SetMapper(this->EdgeMapper); this->EdgeMapper->SetScalarModeToUseCellFieldData(); this->EdgeMapper->SelectColorArray("vtkApplyColors color"); this->EdgeMapper->SetScalarVisibility(true); Any suggestion? about API, or about the class that requires tweaking. Thanks a lot, Pablo -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Mon Sep 21 21:05:16 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Mon, 21 Sep 2015 21:05:16 -0400 Subject: [vtkusers] Java vtkPointToCellData In-Reply-To: References: <56001248.9030406@jslengineeringsoftware.com> Message-ID: <5600A94C.7040209@jslengineeringsoftware.com> Hi Sebastien, I made the change, but it still seems not to be running the filter. Attached is a java file and a .vtp data file to see what's happening. Also below is the code. Thanks, Jim package com.profiles; import vtk.*; public class PlotSomePolyDataFromFileRead { public static void main(String[] args) { try { new PlotSomePolyDataFromFileRead(); } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { System.out.println("[main] Exception at new PlotSomePolyDataFromFileRead()"); ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); } } // Load VTK libraries static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) System.out .println(lib.GetLibraryName() + " not loaded"); } System.out.println("Make sure the search path is correct: "); System.out.println(System.getProperty("java.library.path")); } vtkNativeLibrary.DisableOutputWindow(null); } } private PlotSomePolyDataFromFileRead() { // Read the polyData from the data file vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); xmlReader.Update(); // Use the filter vtkPointDataToCellData to create the // cells from the point data that's in the vtkPolyData from the reader // *The vtkPolyData from the reader intentionally only includes vtkPoints // and their scalars (that's the given data from the application output) vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // In order to check if the vtkPointDataToCellData filter worked: // Create new polyData, retrieve polyData (with cells now) from // polyDataCreateCells filter, check values during debug operation vtkPolyData polyDataWithCells = new vtkPolyData(); polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); // At this point, polyDataWithCells has (when I run it) // point data but not cell data, nor scalar data // and it should have all 3 vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); vtkRenderer renderer = new vtkRenderer(); renderer.AddActor(polyActor); renderer.SetBackground(0.0, 0.0, 0.0); vtkRenderWindow renderWindow = new vtkRenderWindow(); renderWindow.AddRenderer(renderer); renderWindow.SetSize(800, 800); vtkRenderWindowInteractor renderWindowInteractor = new vtkRenderWindowInteractor(); renderWindowInteractor.SetRenderWindow(renderWindow); renderWindow.Render(); renderWindowInteractor.Start(); } } On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: > Try that > > vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); // <==== For the execution of the filter > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); // No need to create a > polydata just get a ref from the filter > > On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > > wrote: > > Hello all, > I created a pipeline that seems to make sense to me, but always my > polyDataComplete is empty. Any ideas why this code doesn't work? > The only vtkPointToCellData example on the web that I can find > uses blow.vtk, which doesn't exist on my 6.0.0 installation > anywhere. The polyData variable gets correctly populated with the > points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- package com.profiles; import vtk.*; public class PlotSomePolyDataFromFileRead { public static void main(String[] args) { try { new PlotSomePolyDataFromFileRead(); } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { System.out.println("[main] Exception at new PlotSomePolyDataFromFileRead()"); ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); } } // Load VTK libraries static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) System.out .println(lib.GetLibraryName() + " not loaded"); } System.out.println("Make sure the search path is correct: "); System.out.println(System.getProperty("java.library.path")); } vtkNativeLibrary.DisableOutputWindow(null); } } private PlotSomePolyDataFromFileRead() { // Read the polyData from the data file vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); xmlReader.Update(); // Use the filter vtkPointDataToCellData to create the // cells from the point data that's in the vtkPolyData from the reader // *The vtkPolyData from the reader intentionally only includes vtkPoints // and their scalars (that's the given data from the application output) vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // In order to check if the vtkPointDataToCellData filter worked: // Create new polyData, retrieve polyData (with cells now) from // polyDataCreateCells filter, check values during debug operation vtkPolyData polyDataWithCells = new vtkPolyData(); polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); // At this point, polyDataWithCells has (when I run it) // point data but not cell data, nor scalar data // and it should have all 3 vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); vtkRenderer renderer = new vtkRenderer(); renderer.AddActor(polyActor); renderer.SetBackground(0.0, 0.0, 0.0); vtkRenderWindow renderWindow = new vtkRenderWindow(); renderWindow.AddRenderer(renderer); renderWindow.SetSize(800, 800); vtkRenderWindowInteractor renderWindowInteractor = new vtkRenderWindowInteractor(); renderWindowInteractor.SetRenderWindow(renderWindow); renderWindow.Render(); renderWindowInteractor.Start(); } } -------------- next part -------------- A non-text attachment was scrubbed... Name: test_data.vtp Type: text/xml Size: 15824 bytes Desc: not available URL: From mallikarjun49 at gmail.com Tue Sep 22 00:28:32 2015 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Tue, 22 Sep 2015 09:58:32 +0530 Subject: [vtkusers] VolumeRendering Window Width and Window Level Message-ID: Hi Everyone, How can I set color transfer function and opacity transfer function based on window width and window level ? Thanks in advance.. Regards, Mallikarjun -------------- next part -------------- An HTML attachment was scrubbed... URL: From ken.martin at kitware.com Tue Sep 22 08:08:43 2015 From: ken.martin at kitware.com (Ken Martin) Date: Tue, 22 Sep 2015 08:08:43 -0400 Subject: [vtkusers] Transparent NaN color with OpenGL2 In-Reply-To: <55FA7670.7060107@student.hpi.uni-potsdam.de> References: <55FA7670.7060107@student.hpi.uni-potsdam.de> Message-ID: <19042394d2ea398711f378c9a0fe9c32@mail.gmail.com> Hmm interesting. So what is happening is that the new code in OpenGL is a bit "better" at figuring out when something is translucent. In your case by adding a transparent element to your lookup table the new backend is marking that prop as Translucent. Historically, and currently, translucent props get rendering without depth tests but with alpha blending turned on. In the old backend that prop would still be considered opaque and if you really needed it blended you would do the old "SetOpacity(0.99) trick to force VTK to recognize that the prop should be translucent. Not sure how to handle t but I wanted to let you know what was happening. Thanks Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Karsten Tausche Sent: Thursday, September 17, 2015 4:15 AM To: vtkusers at vtk.org Subject: [vtkusers] Transparent NaN color with OpenGL2 Hi, I'm using vtkLookupTable::SetNanColor to hide cells with NaN scalar values in my data sets (alpha value set to zero). This worked fine with the old OpenGL backend, but seems to break the depth test with OpenGL2. See the attached images: the red/blue quad is always rendered in the foreground, no matter how you rotate the camera. This happens when you set the alpha value for NaN-values to something different to 1 for both planes. I tested this with today's nightly branch, but it seems to be broken in the OpenGL2 backend since a while. (On Nvidia, Windows 8.1x64, MSVC2015) Is this a bug in the new backend, or is there some parameter that I have to configure for this setup? Thanks, Karsten From Gerrick.Bivins at halliburton.com Tue Sep 22 08:35:45 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Tue, 22 Sep 2015 12:35:45 +0000 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: <5600A94C.7040209@jslengineeringsoftware.com> References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> Message-ID: The vtp file seems invalid. It looks like the cells aren?t defined. Even if the polydata is just points, I think you still have to define the ?Verts? cell array of the polydata. [cid:image001.jpg at 01D0F509.4A5AF490] Gerrick From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of James Labiak Sent: Monday, September 21, 2015 8:05 PM To: Sebastien Jourdain Cc: vtkusers Subject: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData Hi Sebastien, I made the change, but it still seems not to be running the filter. Attached is a java file and a .vtp data file to see what's happening. Also below is the code. Thanks, Jim package com.profiles; import vtk.*; public class PlotSomePolyDataFromFileRead { public static void main(String[] args) { try { new PlotSomePolyDataFromFileRead(); } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { System.out.println("[main] Exception at new PlotSomePolyDataFromFileRead()"); ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); } } // Load VTK libraries static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) System.out .println(lib.GetLibraryName() + " not loaded"); } System.out.println("Make sure the search path is correct: "); System.out.println(System.getProperty("java.library.path")); } vtkNativeLibrary.DisableOutputWindow(null); } } private PlotSomePolyDataFromFileRead() { // Read the polyData from the data file vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); xmlReader.Update(); // Use the filter vtkPointDataToCellData to create the // cells from the point data that's in the vtkPolyData from the reader // *The vtkPolyData from the reader intentionally only includes vtkPoints // and their scalars (that's the given data from the application output) vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // In order to check if the vtkPointDataToCellData filter worked: // Create new polyData, retrieve polyData (with cells now) from // polyDataCreateCells filter, check values during debug operation vtkPolyData polyDataWithCells = new vtkPolyData(); polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); // At this point, polyDataWithCells has (when I run it) // point data but not cell data, nor scalar data // and it should have all 3 vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); vtkRenderer renderer = new vtkRenderer(); renderer.AddActor(polyActor); renderer.SetBackground(0.0, 0.0, 0.0); vtkRenderWindow renderWindow = new vtkRenderWindow(); renderWindow.AddRenderer(renderer); renderWindow.SetSize(800, 800); vtkRenderWindowInteractor renderWindowInteractor = new vtkRenderWindowInteractor(); renderWindowInteractor.SetRenderWindow(renderWindow); renderWindow.Render(); renderWindowInteractor.Start(); } } On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: Try that vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // <==== For the execution of the filter // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // No need to create a polydata just get a ref from the filter On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > wrote: Hello all, I created a pipeline that seems to make sense to me, but always my polyDataComplete is empty. Any ideas why this code doesn't work? The only vtkPointToCellData example on the web that I can find uses blow.vtk, which doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets correctly populated with the points and their scalars below. // Create a new, empty polyData polyData = new vtkPolyData(); // populate the polyData points polyData.SetPoints(points); // populate the polyData scalars polyData.GetPointData().SetScalars(colorsScalars); vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = new vtkPolyData(); polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataComplete); polyMapper.ScalarVisibilityOn(); polyMapper.SetScalarRange(scalarMin, scalarMax); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); // ...Usual render stuff... Thanks, Jim _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ---------------------------------------------------------------------- This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 91063 bytes Desc: image001.jpg URL: From jim at jslengineeringsoftware.com Tue Sep 22 09:35:12 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Tue, 22 Sep 2015 09:35:12 -0400 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> Message-ID: <56015910.7060706@jslengineeringsoftware.com> Hi Gerrick, Yes, this is the problem; my cells are not being created by the vtkPointDataToCellData filter. I'm trying to figure out why that filter is not creating the cells from the point data that I supply it. For the .vtp file, I was just trying to simplify the code sample. For reference, to create it, I created vtkPoints with a sequential index number + x,y,z coordinate values. Note that the index number has no obvious relation to the ordering of points (ID's) that would create a cell. However, it seems to me like this should be a common scenario in the field. I also create a vtkFloatArray scalars array called colorsScalars. Then, I do this: // Create a new, empty polyData polyData = new vtkPolyData(); // populate the polyData with the points polyData.SetPoints(points); // populate the polyData with the scalars polyData.GetPointData().SetScalars(this.colorsScalars); // Write the polyData to an XML-based ".vtp" format // This gives an input file for a simpler test class vtkXMLPolyDataWriter xmlWriter = new vtkXMLPolyDataWriter(); xmlWriter.SetInputData(polyData); xmlWriter.SetFileName("C:\\vtk123\\test_data.vtp"); xmlWriter.Write(); Regards, Jim On 9/22/2015 8:35 AM, Gerrick Bivins wrote: > > The vtp file seems invalid. It looks like the cells aren?t defined. > > Even if the polydata is just points, I think you still have to define the > > ?Verts? cell array of the polydata. > > Gerrick > > *From:*vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *James > Labiak > *Sent:* Monday, September 21, 2015 8:05 PM > *To:* Sebastien Jourdain > *Cc:* vtkusers > *Subject:* [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData > > Hi Sebastien, > I made the change, but it still seems not to be running the filter. > Attached is a java file and a .vtp data file to see what's happening. > Also below is the code. > Thanks, > Jim > > package com.profiles; > > import vtk.*; > > public class PlotSomePolyDataFromFileRead { > > public static void main(String[] args) { > try { > new PlotSomePolyDataFromFileRead(); > } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { > System.out.println("[main] Exception at new > PlotSomePolyDataFromFileRead()"); > ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); > } > } > > // Load VTK libraries > static { > if (!vtkNativeLibrary.LoadAllNativeLibraries()) { > { > for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { > if (!lib.IsLoaded()) > System.out > .println(lib.GetLibraryName() + " not loaded"); > } > System.out.println("Make sure the search path is > correct: "); > System.out.println(System.getProperty("java.library.path")); > } > vtkNativeLibrary.DisableOutputWindow(null); > } > } > > private PlotSomePolyDataFromFileRead() { > > // Read the polyData from the data file > vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); > xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); > xmlReader.Update(); > > // Use the filter vtkPointDataToCellData to create the > // cells from the point data that's in the vtkPolyData from > the reader > // *The vtkPolyData from the reader intentionally only > includes vtkPoints > // and their scalars (that's the given data from the > application output) > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); > > // In order to check if the vtkPointDataToCellData filter worked: > // Create new polyData, retrieve polyData (with cells now) from > // polyDataCreateCells filter, check values during debug operation > vtkPolyData polyDataWithCells = new vtkPolyData(); > polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); > // At this point, polyDataWithCells has (when I run it) > // point data but not cell data, nor scalar data > // and it should have all 3 > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > vtkRenderer renderer = new vtkRenderer(); > renderer.AddActor(polyActor); > renderer.SetBackground(0.0, 0.0, 0.0); > > vtkRenderWindow renderWindow = new vtkRenderWindow(); > renderWindow.AddRenderer(renderer); > renderWindow.SetSize(800, 800); > > vtkRenderWindowInteractor renderWindowInteractor = new > vtkRenderWindowInteractor(); > renderWindowInteractor.SetRenderWindow(renderWindow); > > renderWindow.Render(); > renderWindowInteractor.Start(); > } > } > > On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: > > Try that > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); // <==== For the execution of the > filter > > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); // No need to create a > polydata just get a ref from the filter > > On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > > wrote: > > Hello all, > I created a pipeline that seems to make sense to me, but always my > polyDataComplete is empty. Any ideas why this code doesn't work? > The only vtkPointToCellData example on the web that I can find > uses blow.vtk, which doesn't exist on my 6.0.0 installation > anywhere. The polyData variable gets correctly populated with the > points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: > http://markmail.org/search/?q=vtkusers > > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > ------------------------------------------------------------------------ > This e-mail, including any attached files, may contain confidential > and privileged information for the sole use of the intended recipient. > Any review, use, distribution, or disclosure by others is strictly > prohibited. If you are not the intended recipient (or authorized to > receive information for the intended recipient), please contact the > sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 91063 bytes Desc: not available URL: From sebastien.jourdain at kitware.com Tue Sep 22 09:36:43 2015 From: sebastien.jourdain at kitware.com (Sebastien Jourdain) Date: Tue, 22 Sep 2015 07:36:43 -0600 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> Message-ID: I wasn't sure at first based on your comment, but I don't think vtkPointDataToCellData is meant to create Cells. And if you don't create any cell, then you won't be able to see anything. You can create a single polyverts with all the points ids. vtkCellArray verts = new vtkCellArray(); verts.InsertNextCell( points.GetNumberOfPoints() ); for(int i=0; i < points.GetNumberOfPoints(); i++) { verts.InsertNextPoint(i); } polyDataWithCells.SetVerts(verts) The code above, should create the expected cells. Just be aware that it was written in a mail with uncertainty regarding the method names and class names. But that should be enough to get you started with an appropriate IDE. Seb On Tue, Sep 22, 2015 at 6:35 AM, Gerrick Bivins < Gerrick.Bivins at halliburton.com> wrote: > The vtp file seems invalid. It looks like the cells aren?t defined. > > Even if the polydata is just points, I think you still have to define the > > ?Verts? cell array of the polydata. > > > > Gerrick > > > > > > > > > > *From:* vtkusers [mailto:vtkusers-bounces at vtk.org] *On Behalf Of *James > Labiak > *Sent:* Monday, September 21, 2015 8:05 PM > *To:* Sebastien Jourdain > *Cc:* vtkusers > *Subject:* [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData > > > > Hi Sebastien, > I made the change, but it still seems not to be running the filter. > Attached is a java file and a .vtp data file to see what's happening. Also > below is the code. > Thanks, > Jim > > package com.profiles; > > import vtk.*; > > public class PlotSomePolyDataFromFileRead { > > public static void main(String[] args) { > try { > new PlotSomePolyDataFromFileRead(); > } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { > System.out.println("[main] Exception at new > PlotSomePolyDataFromFileRead()"); > ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); > } > } > > // Load VTK libraries > static { > if (!vtkNativeLibrary.LoadAllNativeLibraries()) { > { > for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { > if (!lib.IsLoaded()) > System.out > .println(lib.GetLibraryName() + " not > loaded"); > } > System.out.println("Make sure the search path is correct: > "); > > System.out.println(System.getProperty("java.library.path")); > } > vtkNativeLibrary.DisableOutputWindow(null); > } > } > > private PlotSomePolyDataFromFileRead() { > > // Read the polyData from the data file > vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); > xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); > xmlReader.Update(); > > // Use the filter vtkPointDataToCellData to create the > // cells from the point data that's in the vtkPolyData from the > reader > // *The vtkPolyData from the reader intentionally only includes > vtkPoints > // and their scalars (that's the given data from the application > output) > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); > > // In order to check if the vtkPointDataToCellData filter worked: > // Create new polyData, retrieve polyData (with cells now) from > // polyDataCreateCells filter, check values during debug operation > vtkPolyData polyDataWithCells = new vtkPolyData(); > polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); > // At this point, polyDataWithCells has (when I run it) > // point data but not cell data, nor scalar data > // and it should have all 3 > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > vtkRenderer renderer = new vtkRenderer(); > renderer.AddActor(polyActor); > renderer.SetBackground(0.0, 0.0, 0.0); > > vtkRenderWindow renderWindow = new vtkRenderWindow(); > renderWindow.AddRenderer(renderer); > renderWindow.SetSize(800, 800); > > vtkRenderWindowInteractor renderWindowInteractor = new > vtkRenderWindowInteractor(); > renderWindowInteractor.SetRenderWindow(renderWindow); > > renderWindow.Render(); > renderWindowInteractor.Start(); > } > } > > On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: > > Try that > > > > vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); // <==== For the execution of the filter > > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // > No need to create a polydata just get a ref from the filter > > > > On Mon, Sep 21, 2015 at 8:20 AM, James Labiak < > jim at jslengineeringsoftware.com> wrote: > > Hello all, > I created a pipeline that seems to make sense to me, but always my > polyDataComplete is empty. Any ideas why this code doesn't work? The only > vtkPointToCellData example on the web that I can find uses blow.vtk, which > doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets > correctly populated with the points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > ------------------------------ > This e-mail, including any attached files, may contain confidential and > privileged information for the sole use of the intended recipient. Any > review, use, distribution, or disclosure by others is strictly prohibited. > If you are not the intended recipient (or authorized to receive information > for the intended recipient), please contact the sender by reply e-mail and > delete all copies of this message. > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 91063 bytes Desc: not available URL: From 15891495523 at 126.com Tue Sep 22 10:43:01 2015 From: 15891495523 at 126.com (zhq) Date: Tue, 22 Sep 2015 07:43:01 -0700 (MST) Subject: [vtkusers] A problem with ConstrainedDelaunay2D Message-ID: <1442932981489-5734051.post@n5.nabble.com> Dear allI want to construct a delaunay triangulation like: And I refer to the example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ConstrainedDelaunay2DBut the result I get is: How to deal with the triangulation in the inner circle ? Maybe I should set a good boundary. But I don't know how to set the boundary. It's still not correct if I set the inner circle as the boundary.My code is :#include #include #include #include #include #include #include #include #include #include #include #include #include #include #define PI 3.1415926int main(int, char *[]){ // Generate a 10 x 10 grid of points vtkSmartPointer points = vtkSmartPointer::New(); /*for(unsigned int x = 0; x < 10; x++) { for(unsigned int y = 0; y < 10; y++) { points->InsertNextPoint(x + vtkMath::Random(-.25, .25), y + vtkMath::Random(-.25,.25), 0); } }*/ for (int theta = 0;theta<360;theta++) { double x = 2*cos(theta*PI/180); double y = 2*sin(theta*PI/180); points->InsertNextPoint(x,y,0); } for (int theta = 0;theta<360;theta++) { double x = cos(theta*PI/180); double y = sin(theta*PI/180); points->InsertNextPoint(x,y,0); } vtkSmartPointer aPolyData = vtkSmartPointer::New(); aPolyData->SetPoints(points); // Create a cell array to store the polygon in vtkSmartPointer aCellArray = vtkSmartPointer::New(); // Define a polygonal hole with a clockwise polygon vtkSmartPointer aPolygon = vtkSmartPointer::New(); /*for (int i=0;i<360;i++) { aPolygon->GetPointIds()->InsertNextId(i+360); }*/ double x[3]; /*aPolygon->GetPointIds()->InsertNextId(22); aPolygon->GetPointIds()->InsertNextId(23); aPolygon->GetPointIds()->InsertNextId(24); aPolygon->GetPointIds()->InsertNextId(25); aPolygon->GetPointIds()->InsertNextId(35); aPolygon->GetPointIds()->InsertNextId(45); aPolygon->GetPointIds()->InsertNextId(44); aPolygon->GetPointIds()->InsertNextId(43); aPolygon->GetPointIds()->InsertNextId(42); aPolygon->GetPointIds()->InsertNextId(32);*/ aCellArray->InsertNextCell(aPolygon); // Create a polydata to store the boundary. The points must be the // same as the points we will triangulate. vtkSmartPointer boundary = vtkSmartPointer::New(); boundary->SetPoints(aPolyData->GetPoints()); boundary->SetPolys(aCellArray); boundary->GetPoint(1,x); int n = boundary->GetPoints()->GetNumberOfPoints(); for (int i=0;iGetPoint(i,x); } // Triangulate the grid points vtkSmartPointer delaunay = vtkSmartPointer::New();#if VTK_MAJOR_VERSION <= 5 delaunay->SetInput(aPolyData); delaunay->SetSource(boundary);#else delaunay->SetInputData(aPolyData); delaunay->SetSourceData(boundary);#endif delaunay->Update(); // Visualize vtkSmartPointer meshMapper = vtkSmartPointer::New(); meshMapper->SetInputConnection(delaunay->GetOutputPort()); vtkSmartPointer meshActor = vtkSmartPointer::New(); meshActor->SetMapper(meshMapper); //meshActor->GetProperty()->SetEdgeColor(0,0,1); // Why aren't the edges aren't visible unless we set the representation to wireframe? //meshActor->GetProperty()->SetInterpolationToFlat(); meshActor->GetProperty()->SetRepresentationToWireframe(); vtkSmartPointer boundaryMapper = vtkSmartPointer::New();#if VTK_MAJOR_VERSION <= 5 boundaryMapper->SetInputConnection(boundary->GetProducerPort());#else boundaryMapper->SetInputData(boundary);#endif vtkSmartPointer boundaryActor = vtkSmartPointer::New(); boundaryActor->SetMapper(boundaryMapper); boundaryActor->GetProperty()->SetColor(1,0,0); // 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 actor to the scene renderer->AddActor(meshActor); renderer->AddActor(boundaryActor); renderer->SetBackground(.3, .6, .3); // Background color green // Render and interact renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS;} Thanks in advance !ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/A-problem-with-ConstrainedDelaunay2D-tp5734051.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shooki.robinson at gmail.com Tue Sep 22 10:50:53 2015 From: shooki.robinson at gmail.com (Joshua Robinson) Date: Tue, 22 Sep 2015 09:50:53 -0500 Subject: [vtkusers] VTK vs. OpenCV for computer vision Message-ID: Howdy , Can vtk be used in vision (robotics) like open-cv ? Regards, Joshua Robinson -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15891495523 at 126.com Tue Sep 22 11:25:44 2015 From: 15891495523 at 126.com (zhq) Date: Tue, 22 Sep 2015 08:25:44 -0700 (MST) Subject: [vtkusers] A problem with ConstrainedDelaunay2D In-Reply-To: <1442932981489-5734051.post@n5.nabble.com> References: <1442932981489-5734051.post@n5.nabble.com> Message-ID: <1442935544119-5734053.post@n5.nabble.com> sorry, My code is : #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define PI 3.1415926 int main(int, char *[]) { // Generate a 10 x 10 grid of points vtkSmartPointer points = vtkSmartPointer::New(); /*for(unsigned int x = 0; x < 10; x++) { for(unsigned int y = 0; y < 10; y++) { points->InsertNextPoint(x + vtkMath::Random(-.25, .25), y + vtkMath::Random(-.25,.25), 0); } }*/ for (int theta = 0;theta<360;theta++) { double x = 2*cos(theta*PI/180); double y = 2*sin(theta*PI/180); points->InsertNextPoint(x,y,0); } for (int theta = 0;theta<360;theta++) { double x = cos(theta*PI/180); double y = sin(theta*PI/180); points->InsertNextPoint(x,y,0); } vtkSmartPointer aPolyData = vtkSmartPointer::New(); aPolyData->SetPoints(points); // Create a cell array to store the polygon in vtkSmartPointer aCellArray = vtkSmartPointer::New(); // Define a polygonal hole with a clockwise polygon vtkSmartPointer aPolygon = vtkSmartPointer::New(); /*for (int i=0;i<360;i++) { aPolygon->GetPointIds()->InsertNextId(i+360); }*/ double x[3]; /*aPolygon->GetPointIds()->InsertNextId(22); aPolygon->GetPointIds()->InsertNextId(23); aPolygon->GetPointIds()->InsertNextId(24); aPolygon->GetPointIds()->InsertNextId(25); aPolygon->GetPointIds()->InsertNextId(35); aPolygon->GetPointIds()->InsertNextId(45); aPolygon->GetPointIds()->InsertNextId(44); aPolygon->GetPointIds()->InsertNextId(43); aPolygon->GetPointIds()->InsertNextId(42); aPolygon->GetPointIds()->InsertNextId(32);*/ aCellArray->InsertNextCell(aPolygon); // Create a polydata to store the boundary. The points must be the // same as the points we will triangulate. vtkSmartPointer boundary = vtkSmartPointer::New(); boundary->SetPoints(aPolyData->GetPoints()); boundary->SetPolys(aCellArray); boundary->GetPoint(1,x); int n = boundary->GetPoints()->GetNumberOfPoints(); for (int i=0;iGetPoint(i,x); } // Triangulate the grid points vtkSmartPointer delaunay = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 delaunay->SetInput(aPolyData); delaunay->SetSource(boundary); #else delaunay->SetInputData(aPolyData); delaunay->SetSourceData(boundary); #endif delaunay->Update(); // Visualize vtkSmartPointer meshMapper = vtkSmartPointer::New(); meshMapper->SetInputConnection(delaunay->GetOutputPort()); vtkSmartPointer meshActor = vtkSmartPointer::New(); meshActor->SetMapper(meshMapper); //meshActor->GetProperty()->SetEdgeColor(0,0,1); // Why aren't the edges aren't visible unless we set the representation to wireframe? //meshActor->GetProperty()->SetInterpolationToFlat(); meshActor->GetProperty()->SetRepresentationToWireframe(); vtkSmartPointer boundaryMapper = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 boundaryMapper->SetInputConnection(boundary->GetProducerPort()); #else boundaryMapper->SetInputData(boundary); #endif vtkSmartPointer boundaryActor = vtkSmartPointer::New(); boundaryActor->SetMapper(boundaryMapper); boundaryActor->GetProperty()->SetColor(1,0,0); // 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 actor to the scene renderer->AddActor(meshActor); renderer->AddActor(boundaryActor); renderer->SetBackground(.3, .6, .3); // Background color green // Render and interact renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } -- View this message in context: http://vtk.1045678.n5.nabble.com/A-problem-with-ConstrainedDelaunay2D-tp5734051p5734053.html Sent from the VTK - Users mailing list archive at Nabble.com. From Nigel.Mcfarlane at beds.ac.uk Tue Sep 22 11:37:17 2015 From: Nigel.Mcfarlane at beds.ac.uk (Nigel Mcfarlane) Date: Tue, 22 Sep 2015 15:37:17 +0000 Subject: [vtkusers] VTK vs. OpenCV for computer vision In-Reply-To: References: Message-ID: Hi Joshua, From my own limited vtk user experience, it?s easy to write simple image processing algorithms like a Sobel filter in vtk. For more complicated stuff, I think the main disadvantage would be that the scalar type of the image buffer is not represented to the outside world by a template, so if you want to write algorithms where the inputs and outputs involve more than two unknown scalar types, the switch statements get very cumbersome. Regards Nigel McFarlane University of Bedfordshire From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of Joshua Robinson Sent: 22 September 2015 15:51 To: vtkusers at vtk.org Subject: [vtkusers] VTK vs. OpenCV for computer vision Howdy , Can vtk be used in vision (robotics) like open-cv ? Regards, Joshua Robinson -------------- next part -------------- An HTML attachment was scrubbed... URL: From rickfrank at me.com Tue Sep 22 10:51:43 2015 From: rickfrank at me.com (Richard Frank) Date: Tue, 22 Sep 2015 10:51:43 -0400 Subject: [vtkusers] Qml VTK itk etc Message-ID: <90FAFE13-215B-4C4D-A52A-9F5C4B1FE70D@me.com> I'm working on a project where the UI folks want to use Qml for the UI, which apparent requires QtCreator as the IDE. Does qtVtkwidgets play well with qml? Has anyone done this ( recently)? Because of all the static linked libraries in ITK,header folders, etc, I'm unclear if there's a "good" way to use QtCreator as the IDE with these toolkits. Has anyone done this? Thanks Rick Sent from my iPad Rick Frank From marco.dev.open at gmail.com Tue Sep 22 12:39:01 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Tue, 22 Sep 2015 20:09:01 +0330 Subject: [vtkusers] Threshold setting Message-ID: HI, I use double scaler type from input but work with (Black or white ) threshold setting My code is follow bellow int apply = 0; imageThreshold->SetInputConnection(firstColorMapper->GetOutputPort()); imageThreshold->ReplaceInOn(); imageThreshold->SetInValue(255); imageThreshold->ReplaceOutOn(); imageThreshold->SetOutValue(255); imageThreshold->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); //double imageThreshold->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX); imageThreshold->ThresholdBetween( -3495, 2161 ); imageThreshold->SetOutValue(apply ? 0 : 255); imageThreshold->Update(); double low = (!enableThreshold) ? range[0] : lowThreshold; double upper = (!enableThreshold) ? range[1] : upperThreshold; vtkSmartPointer imageThreshold2 = vtkSmartPointer::New(); // imageThreshold2->SetInputData(mImage); imageThreshold2->SetInputConnection(secondColorMapper->GetOutputPort()); imageThreshold2->ReplaceInOn(); imageThreshold2->SetInValue(255); imageThreshold2->ReplaceOutOn(); imageThreshold2->SetOutValue(255); imageThreshold2->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); //double imageThreshold2->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX); imageThreshold2->ThresholdBetween( 160, 6088 ); imageThreshold2->SetOutValue(apply ? 0 : 255); imageThreshold2->Update(); Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From oleg.krivosheev at xcision.com Tue Sep 22 14:33:07 2015 From: oleg.krivosheev at xcision.com (Oleg Krivosheev) Date: Tue, 22 Sep 2015 14:33:07 -0400 Subject: [vtkusers] VTK vs. OpenCV for computer vision In-Reply-To: References: Message-ID: Are you sure you want VTK? ITK vs OpenCV is more sensitive comparison regrds OK On Tue, Sep 22, 2015 at 10:50 AM, Joshua Robinson wrote: > > Howdy , > > Can vtk be used in vision (robotics) like open-cv ? > > Regards, > Joshua Robinson > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 snakexf at gmail.com Tue Sep 22 16:13:03 2015 From: snakexf at gmail.com (Feng Xing) Date: Tue, 22 Sep 2015 22:13:03 +0200 Subject: [vtkusers] smart pointer as member in class Message-ID: <66588355-C7BB-4161-AA08-FC0429D06EDA@gmail.com> Hello everyone, I tried to define a class, its number is vtkSmartPointer data. It is allocated in one member function (init()), and given values in another member function(setdata()). I get always segmentation errors. Il seems that data in setdata() function is not allocated or (freed?). If I put data->SetComponents in init(). All works well. Where is the problem? The pointer? Thank you very much. The code is similar like this class VisuVTK private: vtkSmartPointer data; public: init(){ data = vtkSmartPointer::New(); data->SetNumberOfComponents(1); // size of component in tuple is 1 data->SetNumberOfTuples(Ncell); // size of data }; setdata(){ for(int i=0;iSetComponent(i,0,1.0); } }; end class Feng Xing Postdoc in France From yxliuwm at gmail.com Tue Sep 22 21:15:49 2015 From: yxliuwm at gmail.com (Yixun Liu) Date: Tue, 22 Sep 2015 18:15:49 -0700 Subject: [vtkusers] multi-pass and layer rendering Message-ID: Hi, Where can I find the document about VTK implementation of multi-pass and layer rendering? I find it is hard to make full use of VTK without completely understanding how it is implemented. Thanks. Yixun -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Sep 22 21:16:52 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 22 Sep 2015 21:16:52 -0400 Subject: [vtkusers] Rendering large 2d numpy array as DEM with several level of details In-Reply-To: <1441888619651-5733823.post@n5.nabble.com> References: <1441514439373-5733747.post@n5.nabble.com> <1441888619651-5733823.post@n5.nabble.com> Message-ID: How about using vtkImageResize [1] to downsample your image for the lower LOD mapper? HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkImageResize.html On Thu, Sep 10, 2015 at 8:36 AM, gmas wrote: > The example code can be in whatever language.. my task is to add LODs to a > large vtkImageData. Many thanks to whoever will give me a hint or a link! > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Rendering-large-2d-numpy-array-as-DEM-with-several-level-of-details-tp5733747p5733823.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Sep 22 22:10:51 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 22 Sep 2015 22:10:51 -0400 Subject: [vtkusers] smart pointer as member in class In-Reply-To: <66588355-C7BB-4161-AA08-FC0429D06EDA@gmail.com> References: <66588355-C7BB-4161-AA08-FC0429D06EDA@gmail.com> Message-ID: Hi, I assume you are callling init() before setdata()? If not, that's obviously the problem. There shouldn't be any memory free'd until your object is deleted, so make sure your object is still around when you call setdata(). Thanks, Cory On Tue, Sep 22, 2015 at 4:13 PM, Feng Xing wrote: > Hello everyone, > > I tried to define a class, its number is vtkSmartPointer > data. It is allocated in one member function (init()), and given values in > another member function(setdata()). I get always segmentation errors. Il > seems that data in setdata() function is not allocated or (freed?). If I > put data->SetComponents in init(). All works well. Where is the problem? > The pointer? > > Thank you very much. > > The code is similar like this > > class VisuVTK > > private: > vtkSmartPointer data; > > public: > > init(){ > data = vtkSmartPointer::New(); > data->SetNumberOfComponents(1); // size of component in tuple is 1 > data->SetNumberOfTuples(Ncell); // size of data > }; > > setdata(){ > for(int i=0;i data->SetComponent(i,0,1.0); } > }; > > end class > > Feng Xing > Postdoc in France > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Sep 22 22:49:03 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 22 Sep 2015 22:49:03 -0400 Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: <1442426657256-5733973.post@n5.nabble.com> References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> Message-ID: Hi Johannes, I can confirm the crash you see with the parameters you cite. The crash occurs in the vtkDelaunay2D filter that is used by the boolean operations filter. Specifically, the crash is in vtkDelaunay2D::RecoverEdge() due to an invalid memory access, but I don't see an obvious underlying cause. Unfortunately, I'm not sure when I'll have time to debug it further. - Cory On Wed, Sep 16, 2015 at 2:04 PM, josci wrote: > Hi Cory Quammen-2, > > I although tested the code with the current developer version (6.3 master > branch). Sadly it gives the same result. > > Johannes > > > > josci wrote > > Hi Cory Quammen-2, > > > > thanks for your reply. If written some code to reproduce the crash: > > > > #include > > > > ........... > > > > > > Cory Quammen-2 wrote > >> Hi Johannes, > >> > >> Yes, the mailing list is a suitable place for a bug report. > >> > >> Thanks, > >> Cory > >> > >> On Wed, Sep 16, 2015 at 8:42 AM, josci < > > >> jojo2100@ > > >> > wrote: > >> > >>> Hi Drak, > >>> > >>> where you able to solve your problem? I'm experiencing the same with > >>> spherical surface read from an stl file. My second geometry is > generated > >>> by > >>> spheresource->trianglefilter. > >>> > >>> I'm trying to reproduce this error. If I'm successful doing this I'll > >>> post > >>> the stl file and the source code here. > >>> > >>> > >>> Best regards > >>> > >>> Johannes > >>> > >>> P.s.: Is the mailinglist the proper place for a bug report? > >>> > >>> > >>> > >>> > >>> > >>> -- > >>> View this message in context: > >>> > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733960.html > >>> Sent from the VTK - Users mailing list archive at Nabble.com. > >>> _______________________________________________ > >>> Powered by www.kitware.com > >>> > >>> Visit other Kitware open-source projects at > >>> http://www.kitware.com/opensource/opensource.html > >>> > >>> Please keep messages on-topic and check the VTK FAQ at: > >>> http://www.vtk.org/Wiki/VTK_FAQ > >>> > >>> Search the list archives at: http://markmail.org/search/?q=vtkusers > >>> > >>> Follow this link to subscribe/unsubscribe: > >>> http://public.kitware.com/mailman/listinfo/vtkusers > >>> > >> > >> > >> > >> -- > >> Cory Quammen > >> R&D Engineer > >> Kitware, Inc. > >> > >> _______________________________________________ > >> Powered by www.kitware.com > >> > >> Visit other Kitware open-source projects at > >> http://www.kitware.com/opensource/opensource.html > >> > >> Please keep messages on-topic and check the VTK FAQ at: > >> http://www.vtk.org/Wiki/VTK_FAQ > >> > >> Search the list archives at: http://markmail.org/search/?q=vtkusers > >> > >> Follow this link to subscribe/unsubscribe: > >> http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5733973.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jchris.fillionr at kitware.com Wed Sep 23 00:44:22 2015 From: jchris.fillionr at kitware.com (Jean-Christophe Fillion-Robin) Date: Wed, 23 Sep 2015 00:44:22 -0400 Subject: [vtkusers] [slicer-devel] Threshold setting In-Reply-To: <631fd687330741468305e9159d6208c6@PHSX10HT3.partners.org> References: <631fd687330741468305e9159d6208c6@PHSX10HT3.partners.org> Message-ID: Hi Marco, Great to see you are making progress. While the members of the ITK, VTK and Slicer communities would be more than happy to help you, I think sending an email to all of them will have the opposite effect. Instead, to get meaningful help, before sending an email I would suggest you consider the following checklist. I use it myself everyday. [ ] Did I check the documentation, examples or existing tests of the related projects ? [ ] Did I search the existing mailing archives and/or stack overflow for similar question ? It is not uncommon that other users asked a similar question. Using a search engine should be helpful here. [ ] Did I check FAQ (Frequently Asked Questions) sections of the projects ? For example, on the Slicer wiki there are a user and developer FAQs. [ ] Am I providing enough context for others to understand and reproduce the problem. Reading the SSCCE guidlines [Short, Self Contained, Correct (Compilable), Example] available on http://sscce.org/ is always a good thing. [ ] Is my question specific to a given library (ITK, VTK) or application (Slicer). For example, if the question is about the use of vtkImageThreshold filter, the VTK user list is probably a good place to ask questions. [ ] Did I re-read my email before sending it. Considering your email will be read by hundreds (or may be thousands) of individuals, re-reading before sending is always good. That said, let us know if you have any questions, Thanks, Jc On Tue, Sep 22, 2015 at 12:39 PM, Marco Dev wrote: > HI, > I use double scaler type from input but work with (Black or white ) > threshold setting My code is follow bellow > int apply = 0; > imageThreshold->SetInputConnection(firstColorMapper->GetOutputPort()); > imageThreshold->ReplaceInOn(); > imageThreshold->SetInValue(255); > imageThreshold->ReplaceOutOn(); > imageThreshold->SetOutValue(255); > > imageThreshold->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); > //double > imageThreshold->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX); > imageThreshold->ThresholdBetween( -3495, 2161 ); > imageThreshold->SetOutValue(apply ? 0 : 255); > imageThreshold->Update(); > > > > double low = (!enableThreshold) ? range[0] : lowThreshold; > double upper = (!enableThreshold) ? range[1] : upperThreshold; > > > vtkSmartPointer imageThreshold2 = > vtkSmartPointer::New(); > // imageThreshold2->SetInputData(mImage); > > imageThreshold2->SetInputConnection(secondColorMapper->GetOutputPort()); > imageThreshold2->ReplaceInOn(); > imageThreshold2->SetInValue(255); > imageThreshold2->ReplaceOutOn(); > imageThreshold2->SetOutValue(255); > imageThreshold2->SetOutputScalarType(fixedConnector->GetOutput()->GetScalarType()); > //double > imageThreshold2->ThresholdBetween(VTK_SHORT_MIN, VTK_SHORT_MAX); > imageThreshold2->ThresholdBetween( 160, 6088 ); > imageThreshold2->SetOutValue(apply ? 0 : 255); > imageThreshold2->Update(); > > > Thanks > > > > > > _______________________________________________ > slicer-devel mailing list > slicer-devel at bwh.harvard.edu > http://massmail.spl.harvard.edu/mailman/listinfo/slicer-devel > To unsubscribe: send email to slicer-devel-request at bwh.harvard.edu with > unsubscribe as the subject > > http://www.slicer.org/slicerWiki/index.php/Documentation/Nightly/Developers/FAQ > > > The information in this e-mail is intended only for the person to whom it > is > addressed. If you believe this e-mail was sent to you in error and the > e-mail > contains patient information, please contact the Partners Compliance > HelpLine at > http://www.partners.org/complianceline . If the e-mail was sent to you in > error > but does not contain patient information, please contact the sender and > properly > dispose of the e-mail. > > -- +1 919 869 8849 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jojo2100 at gmx.de Wed Sep 23 02:28:10 2015 From: jojo2100 at gmx.de (josci) Date: Tue, 22 Sep 2015 23:28:10 -0700 (MST) Subject: [vtkusers] Segmentation fault with vtkBooleanOperationPolyDataFilter using 2 cylinders [HELP] In-Reply-To: References: <1440017775588-5733567.post@n5.nabble.com> <1442407354278-5733960.post@n5.nabble.com> <1442411602765-5733964.post@n5.nabble.com> <1442426657256-5733973.post@n5.nabble.com> Message-ID: <1442989690263-5734067.post@n5.nabble.com> Hi Cory, thank your for taking a look into this issue. If there is anthing which I can contribute to track down this bug, like a "smaller data set (in best case reduced to a few triangles)" for example, please let me know. Johannes Hi Johannes, I can confirm the crash you see with the parameters you cite. The crash occurs in the vtkDelaunay2D filter that is used by the boolean operations filter. Specifically, the crash is in vtkDelaunay2D::RecoverEdge() due to an invalid memory access, but I don't see an obvious underlying cause. Unfortunately, I'm not sure when I'll have time to debug it further. - Cory On Wed, Sep 16, 2015 at 2:04 PM, josci <jojo2100@> wrote: > Hi Cory Quammen-2, > > I although tested the code with the current developer version (6.3 master > branch). Sadly it gives the same result. > > Johannes > > > > josci wrote > > Hi Cory Quammen-2, > > > > thanks for your reply. If written some code to reproduce the crash: > > > > #include > > > > ........... > > > > > > Cory Quammen-2 wrote > >> Hi Johannes, > >> > >> Yes, the mailing list is a suitable place for a bug report. > >> > >> Thanks, > >> Cory > >> > >> On Wed, Sep 16, 2015 at 8:42 AM, josci < > > >> jojo2100@ > > >> > wrote: > >> > >>> Hi Drak, > >>> > >>> where you able to solve your problem? I'm experiencing the same with > >>> spherical surface read from an stl file. My second geometry is > generated > >>> by > >>> spheresource->trianglefilter. > >>> > >>> I'm trying to reproduce this error. If I'm successful doing this I'll > >>> post > >>> the stl file and the source code here. > >>> > >>> > >>> Best regards > >>> > >>> Johannes > >>> > >>> P.s.: Is the mailinglist the proper place for a bug report? -- View this message in context: http://vtk.1045678.n5.nabble.com/Segmentation-fault-with-vtkBooleanOperationPolyDataFilter-using-2-cylinders-HELP-tp5733567p5734067.html Sent from the VTK - Users mailing list archive at Nabble.com. From joaorobertojr88 at gmail.com Wed Sep 23 09:01:48 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 23 Sep 2015 06:01:48 -0700 (MST) Subject: [vtkusers] Label vtkActor Message-ID: <1443013308719-5734069.post@n5.nabble.com> Hi VTK users, I've searched in this list about *labeling a single vtkActor*, but I have no luck. Does anyone know how to do it? Thanks, Jo?o. -- View this message in context: http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Sep 23 09:15:07 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Sep 2015 09:15:07 -0400 Subject: [vtkusers] Label vtkActor In-Reply-To: <1443013308719-5734069.post@n5.nabble.com> References: <1443013308719-5734069.post@n5.nabble.com> Message-ID: Hi Jo?o, You might try vtkTextActor [1]. If that isn't what you are looking for, could you be more specific about how you want to label an actor? Maybe sketch an image? HTH, Cory [1] http://www.vtk.org/doc/nightly/html/classvtkTextActor.html On Wed, Sep 23, 2015 at 9:01 AM, joaoroberto88 wrote: > Hi VTK users, > > I've searched in this list about *labeling a single vtkActor*, but I have > no > luck. Does anyone know how to do it? > > Thanks, > > Jo?o. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Wed Sep 23 09:32:50 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 23 Sep 2015 06:32:50 -0700 (MST) Subject: [vtkusers] Label vtkActor In-Reply-To: References: <1443013308719-5734069.post@n5.nabble.com> Message-ID: <1443015170486-5734072.post@n5.nabble.com> Hi Cory, Thanks for your reply. I tried to use vtkTextActor, but I'm having some issue about positioning it near to the station icon actor (see attached image and code below). As you can see I'm using the same station icon coordinate and the label "Station #1" isn't positioned correctly. Do you have any clues? Also, since vtkTextActor is two-dimesional I think the text won't follow the image actor while the user interacts with the rendered map. Here is the main code that creates both actors: vtkSmartPointer iconReader = vtkSmartPointer::New(); iconReader->SetFileName("~/station.png"); iconReader->Update(); vtkSmartPointer imageData = iconReader->GetOutput(); imageData->SetOrigin(station->getUtmX(), station->getUtmY(), 0); // the UTM-X and UTM-Y from UI vtkSmartPointer imageResize = vtkSmartPointer::New(); imageResize->SetInputData(imageData); imageResize->SetOutputSpacing(2, 2, 1); // Resizes the image imageResize->Update(); vtkSmartPointer iconMapper = vtkSmartPointer::New(); iconMapper->SetInputData(imageResize->GetOutput()); vtkSmartPointer iconActor = vtkSmartPointer::New(); iconActor->SetMapper(iconMapper); vtkSmartPointer textActor = vtkSmartPointer::New(); textActor->GetTextProperty()->SetFontSize ( 12 ); textActor->SetPosition2 ( iconActor->GetPosition()[0], iconActor->GetPosition()[1] - 20 ); renderer->AddActor2D ( textActor ); textActor->SetInput( station->getName().toStdString().c_str() ); textActor->GetTextProperty()->SetColor ( 1.0,0.0,0.0 ); renderer->AddActor(textActor); renderer->AddActor(iconActor); Thanks, Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069p5734072.html Sent from the VTK - Users mailing list archive at Nabble.com. From dave.demarle at kitware.com Wed Sep 23 09:41:29 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Wed, 23 Sep 2015 09:41:29 -0400 Subject: [vtkusers] multi-pass and layer rendering In-Reply-To: References: Message-ID: http://www.vtk.org/Wiki/VTK/MultiPass_Rendering David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Tue, Sep 22, 2015 at 9:15 PM, Yixun Liu wrote: > Hi, > Where can I find the document about VTK implementation of multi-pass and > layer rendering? > I find it is hard to make full use of VTK without completely understanding > how it is implemented. > > Thanks. > > Yixun > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 niels_dekker_address_until_2018 at xs4all.nl Wed Sep 23 09:46:24 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Wed, 23 Sep 2015 15:46:24 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <55FE7A5E.8030908@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> Message-ID: <5602AD30.80807@xs4all.nl> Does anyone here think it would be nice to fix these MSVC warnings? Basically it's just a matter of replacing '/w' and '-w' by '/W0', in various CMake files of the VTK source tree, according to the patch/diff-file I attached last Sunday. On Sunday, September 20, I wrote: > When building VTK within Microsoft Visual Studio, I always get many > (20+) 'D9025' warnings, saying: > > "cl : Command line warning D9025: overriding '/W1' with '/w'" > > These warnings appear useless and distracting to me. Can someone > please fix this issue? > > The issue can be fixed by using '/W0', instead of '-w' or '/w', to > disable MSVC warnings. It should be fixed in the following six files: > > CMake\vtkModuleMacros.cmake > CMake\vtkThirdParty.cmake > ThirdParty\xdmf2\vtkxdmf2\CMake\vtkThirdParty.cmake > ThirdParty\exodusII\vtkexodusII\CMakeLists.txt > ThirdParty\hdf5\vtkhdf5\CMakeLists.txt > ThirdParty\netcdf\vtknetcdf\CMakeLists.txt > > I encountered these warnings on any version of VTK, CMake, and Visual > Studio that I tried recently, including the latest releases, VTK > 6.3.0, CMake 3.3.2, and Visual Studio 2015 (but also Visual Studio 2010). > > ITK used to have the same issue. My fix for the ITK issue was included > with ITK 4.8.0. It was discussed at the ITK users mailing list: > http://public.kitware.com/pipermail/community/2015-February/008349.html My > ITK patch is at: http://review.source.kitware.com/#/c/19311/ > > A patch (unified diff) for VTK is hereby attached. Can someone please > commit + push it to Kitware's VTK GIT, for me? Kind regards, Niels -- Niels Dekker Scientific programmer LKEB, Division of Image Processing Leiden University Medical Center From audrius at tomographix.com Wed Sep 23 09:53:44 2015 From: audrius at tomographix.com (Audrius Stundzia) Date: Wed, 23 Sep 2015 09:53:44 -0400 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <5602AD30.80807@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> Message-ID: <1443016424.782240.391502561.310691D2@webmail.messagingengine.com> On Wed, Sep 23, 2015, at 09:46, Niels Dekker - address until 2018 wrote: > Does anyone here think it would be nice to fix these MSVC warnings? Seconded. > Basically it's just a matter of replacing '/w' and '-w' by '/W0', in > various CMake files of the VTK source tree, according to the > patch/diff-file I attached last Sunday. Thank you. > On Sunday, September 20, I wrote: > > When building VTK within Microsoft Visual Studio, I always get many > > (20+) 'D9025' warnings, saying: > > > > "cl : Command line warning D9025: overriding '/W1' with '/w'" > > > > These warnings appear useless and distracting to me. Can someone > > please fix this issue? > > > > The issue can be fixed by using '/W0', instead of '-w' or '/w', to > > disable MSVC warnings. It should be fixed in the following six files: > > > > CMake\vtkModuleMacros.cmake > > CMake\vtkThirdParty.cmake > > ThirdParty\xdmf2\vtkxdmf2\CMake\vtkThirdParty.cmake > > ThirdParty\exodusII\vtkexodusII\CMakeLists.txt > > ThirdParty\hdf5\vtkhdf5\CMakeLists.txt > > ThirdParty\netcdf\vtknetcdf\CMakeLists.txt > > > > I encountered these warnings on any version of VTK, CMake, and Visual > > Studio that I tried recently, including the latest releases, VTK > > 6.3.0, CMake 3.3.2, and Visual Studio 2015 (but also Visual Studio 2010). > > > > ITK used to have the same issue. My fix for the ITK issue was included > > with ITK 4.8.0. It was discussed at the ITK users mailing list: > > http://public.kitware.com/pipermail/community/2015-February/008349.html My > > ITK patch is at: http://review.source.kitware.com/#/c/19311/ > > > > A patch (unified diff) for VTK is hereby attached. Can someone please > > commit + push it to Kitware's VTK GIT, for me? > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer > LKEB, Division of Image Processing > Leiden University Medical Center > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 cory.quammen at kitware.com Wed Sep 23 09:54:31 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Sep 2015 09:54:31 -0400 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <5602AD30.80807@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> Message-ID: Hi Niels, This does sound like a good patch. Would you mind contributing it via our gitlab contribution process? Please see [1]. [1] https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md Thank you, Cory On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker - address until 2018 < niels_dekker_address_until_2018 at xs4all.nl> wrote: > Does anyone here think it would be nice to fix these MSVC warnings? > > Basically it's just a matter of replacing '/w' and '-w' by '/W0', in > various CMake files of the VTK source tree, according to the > patch/diff-file I attached last Sunday. > > > On Sunday, September 20, I wrote: > >> When building VTK within Microsoft Visual Studio, I always get many >> (20+) 'D9025' warnings, saying: >> >> "cl : Command line warning D9025: overriding '/W1' with '/w'" >> >> These warnings appear useless and distracting to me. Can someone >> please fix this issue? >> >> The issue can be fixed by using '/W0', instead of '-w' or '/w', to >> disable MSVC warnings. It should be fixed in the following six files: >> >> CMake\vtkModuleMacros.cmake >> CMake\vtkThirdParty.cmake >> ThirdParty\xdmf2\vtkxdmf2\CMake\vtkThirdParty.cmake >> ThirdParty\exodusII\vtkexodusII\CMakeLists.txt >> ThirdParty\hdf5\vtkhdf5\CMakeLists.txt >> ThirdParty\netcdf\vtknetcdf\CMakeLists.txt >> >> I encountered these warnings on any version of VTK, CMake, and Visual >> Studio that I tried recently, including the latest releases, VTK >> 6.3.0, CMake 3.3.2, and Visual Studio 2015 (but also Visual Studio 2010). >> >> ITK used to have the same issue. My fix for the ITK issue was included >> with ITK 4.8.0. It was discussed at the ITK users mailing list: >> http://public.kitware.com/pipermail/community/2015-February/008349.html >> My >> ITK patch is at: http://review.source.kitware.com/#/c/19311/ >> >> A patch (unified diff) for VTK is hereby attached. Can someone please >> commit + push it to Kitware's VTK GIT, for me? >> > > > Kind regards, Niels > -- > Niels Dekker > Scientific programmer > LKEB, Division of Image Processing > Leiden University Medical Center > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.lonie at kitware.com Wed Sep 23 09:56:38 2015 From: david.lonie at kitware.com (David Lonie) Date: Wed, 23 Sep 2015 09:56:38 -0400 Subject: [vtkusers] Label vtkActor In-Reply-To: <1443015170486-5734072.post@n5.nabble.com> References: <1443013308719-5734069.post@n5.nabble.com> <1443015170486-5734072.post@n5.nabble.com> Message-ID: Sounds like vtkCaptionActor2D is what you're looking for: http://www.vtk.org/doc/nightly/html/classvtkCaptionActor2D.html On Wed, Sep 23, 2015 at 9:32 AM, joaoroberto88 wrote: > Hi Cory, > > Thanks for your reply. I tried to use vtkTextActor, but I'm having some > issue about positioning it near to the station icon actor (see attached > image and code below). As you can see I'm using the same station icon > coordinate and the label "Station #1" isn't positioned correctly. Do you > have any clues? Also, since vtkTextActor is two-dimesional I think the text > won't follow the image actor while the user interacts with the rendered > map. > > Here is the main code that creates both actors: > > vtkSmartPointer iconReader = > vtkSmartPointer::New(); > iconReader->SetFileName("~/station.png"); > iconReader->Update(); > > vtkSmartPointer imageData = iconReader->GetOutput(); > imageData->SetOrigin(station->getUtmX(), station->getUtmY(), 0); // > the > UTM-X and UTM-Y from UI > > vtkSmartPointer imageResize = > vtkSmartPointer::New(); > imageResize->SetInputData(imageData); > imageResize->SetOutputSpacing(2, 2, 1); // Resizes the image > imageResize->Update(); > > vtkSmartPointer iconMapper = > vtkSmartPointer::New(); > iconMapper->SetInputData(imageResize->GetOutput()); > > vtkSmartPointer iconActor = vtkSmartPointer::New(); > iconActor->SetMapper(iconMapper); > > vtkSmartPointer textActor = > vtkSmartPointer::New(); > textActor->GetTextProperty()->SetFontSize ( 12 ); > textActor->SetPosition2 ( iconActor->GetPosition()[0], > iconActor->GetPosition()[1] - 20 ); > renderer->AddActor2D ( textActor ); > textActor->SetInput( station->getName().toStdString().c_str() ); > textActor->GetTextProperty()->SetColor ( 1.0,0.0,0.0 ); > > renderer->AddActor(textActor); > renderer->AddActor(iconActor); > > Thanks, > > Joao. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069p5734072.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 cory.quammen at kitware.com Wed Sep 23 10:04:08 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Sep 2015 10:04:08 -0400 Subject: [vtkusers] Label vtkActor In-Reply-To: References: <1443013308719-5734069.post@n5.nabble.com> <1443015170486-5734072.post@n5.nabble.com> Message-ID: I have also used a vtkVectorText source to produce a label and then display it with a vtkFollower (which is a subclass of vtkActor), which keeps the label geometry facing the screen. You can specify the 3D position of the vtkFollower and it should move with your image. HTH, Cory On Wed, Sep 23, 2015 at 9:56 AM, David Lonie wrote: > Sounds like vtkCaptionActor2D is what you're looking for: > > http://www.vtk.org/doc/nightly/html/classvtkCaptionActor2D.html > > On Wed, Sep 23, 2015 at 9:32 AM, joaoroberto88 > wrote: > >> Hi Cory, >> >> Thanks for your reply. I tried to use vtkTextActor, but I'm having some >> issue about positioning it near to the station icon actor (see attached >> image and code below). As you can see I'm using the same station icon >> coordinate and the label "Station #1" isn't positioned correctly. Do you >> have any clues? Also, since vtkTextActor is two-dimesional I think the >> text >> won't follow the image actor while the user interacts with the rendered >> map. >> >> Here is the main code that creates both actors: >> >> vtkSmartPointer iconReader = >> vtkSmartPointer::New(); >> iconReader->SetFileName("~/station.png"); >> iconReader->Update(); >> >> vtkSmartPointer imageData = iconReader->GetOutput(); >> imageData->SetOrigin(station->getUtmX(), station->getUtmY(), 0); // >> the >> UTM-X and UTM-Y from UI >> >> vtkSmartPointer imageResize = >> vtkSmartPointer::New(); >> imageResize->SetInputData(imageData); >> imageResize->SetOutputSpacing(2, 2, 1); // Resizes the image >> imageResize->Update(); >> >> vtkSmartPointer iconMapper = >> vtkSmartPointer::New(); >> iconMapper->SetInputData(imageResize->GetOutput()); >> >> vtkSmartPointer iconActor = >> vtkSmartPointer::New(); >> iconActor->SetMapper(iconMapper); >> >> vtkSmartPointer textActor = >> vtkSmartPointer::New(); >> textActor->GetTextProperty()->SetFontSize ( 12 ); >> textActor->SetPosition2 ( iconActor->GetPosition()[0], >> iconActor->GetPosition()[1] - 20 ); >> renderer->AddActor2D ( textActor ); >> textActor->SetInput( station->getName().toStdString().c_str() ); >> textActor->GetTextProperty()->SetColor ( 1.0,0.0,0.0 ); >> >> renderer->AddActor(textActor); >> renderer->AddActor(iconActor); >> >> Thanks, >> >> Joao. >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069p5734072.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 > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From niels_dekker_address_until_2018 at xs4all.nl Wed Sep 23 10:16:01 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Wed, 23 Sep 2015 16:16:01 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> Message-ID: <5602B421.3020505@xs4all.nl> Hi Cory, Thank you! When I have time (hopefully before next Sunday), I'll try to contribute the patch via your gitlab contribution process. Is the process similar to ITK? And do you think I should create a "ticket" or "bug report" for this little issue? If I can't get it to work (or if it takes me too much time), I hope someone else can do the patch for me, next week or so... Kind regards, Niels PS Also thanks to Audrius for the support :-) Cory Quammen wrote on September 23, 2015, 15:54: > Hi Niels, > > This does sound like a good patch. Would you mind contributing it via > our gitlab contribution process? Please see [1]. > > [1] https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md > > Thank you, > Cory > > On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: > > Does anyone here think it would be nice to fix these MSVC warnings? > > Basically it's just a matter of replacing '/w' and '-w' by '/W0', > in various CMake files of the VTK source tree, according to the > patch/diff-file I attached last Sunday. From cory.quammen at kitware.com Wed Sep 23 10:22:01 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Sep 2015 10:22:01 -0400 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <5602B421.3020505@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> <5602B421.3020505@xs4all.nl> Message-ID: Niels, I saw that you contributed to ITK via gerrit. Contributing to VTK is similar, but it uses gitlab instead of gerrit. I wouldn't bother with a bug report for this issue - just explaining why the warnings appear in the commit message is sufficient. Thanks for offering to contribute! I will watch for your patch and shepherd it through the review process. Best, Cory On Wed, Sep 23, 2015 at 10:16 AM, Niels Dekker - address until 2018 < niels_dekker_address_until_2018 at xs4all.nl> wrote: > Hi Cory, > > Thank you! When I have time (hopefully before next Sunday), I'll try to > contribute the patch via your gitlab contribution process. Is the process > similar to ITK? And do you think I should create a "ticket" or "bug report" > for this little issue? > > If I can't get it to work (or if it takes me too much time), I hope > someone else can do the patch for me, next week or so... > > Kind regards, Niels > > PS Also thanks to Audrius for the support :-) > > Cory Quammen wrote on September 23, 2015, 15:54: > >> Hi Niels, >> >> This does sound like a good patch. Would you mind contributing it via >> our gitlab contribution process? Please see [1]. >> >> [1] https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md >> >> Thank you, >> Cory >> >> On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: >> >> Does anyone here think it would be nice to fix these MSVC warnings? >> >> Basically it's just a matter of replacing '/w' and '-w' by '/W0', >> in various CMake files of the VTK source tree, according to the >> patch/diff-file I attached last Sunday. >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From joaorobertojr88 at gmail.com Wed Sep 23 10:28:17 2015 From: joaorobertojr88 at gmail.com (joaoroberto88) Date: Wed, 23 Sep 2015 07:28:17 -0700 (MST) Subject: [vtkusers] Label vtkActor In-Reply-To: References: <1443013308719-5734069.post@n5.nabble.com> <1443015170486-5734072.post@n5.nabble.com> Message-ID: <1443018497617-5734082.post@n5.nabble.com> Thank you guys. vtkCaptionActor2D worked like a charm. Just for future help: vtkSmartPointer textActor = vtkSmartPointer::New(); textActor->SetAttachmentPoint(station->getUtmX(), station->getUtmY(), 0); textActor->SetCaption(station->getName().toStdString().c_str()); renderer.AddActor(textActor); Joao. -- View this message in context: http://vtk.1045678.n5.nabble.com/Label-vtkActor-tp5734069p5734082.html Sent from the VTK - Users mailing list archive at Nabble.com. From niels_dekker_address_until_2018 at xs4all.nl Wed Sep 23 12:40:44 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Wed, 23 Sep 2015 18:40:44 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> <5602B421.3020505@xs4all.nl> Message-ID: <5602D60C.40306@xs4all.nl> Hi Cory, Thanks for the information. Actually, explaining why exactly those warnings appear might be the hardest part! It looks like the following is happening, for a subproject that was meant to have suppressed warnings: 1. For such a subproject, VTK replaces any compiler option regarding warning-levels from CMAKE_C_FLAGS and CMAKE_CXX_FLAGS by '/w' and '-w'. 2. CMake then created a Visual Studio project file ("*.vcxproj") that does not have any XML tag. Instead, CMake adds '/w' and '-w' to the XML tag. 3. Visual Studio finds out that the tag is missing, and so it adds warning-level 1 ('/W1') as its default warning-level. However, it also adds those '/w' and '-w' from to the command-line. 4. The C++ compiler (cl.exe) gets '/W1, as well as '/w' and '-w', so it complains about overriding '/W1' with '/w'. Fortunately this problem does not occur when VTK uses '/W0', instead of '/w' or '-w'! Kind regards, Niels Cory Quammen wrote on September 23, 2015, 16:22: > Niels, > > I saw that you contributed to ITK via gerrit. Contributing to VTK is > similar, but it uses gitlab instead of gerrit. I wouldn't bother with > a bug report for this issue - just explaining why the warnings appear > in the commit message is sufficient. > > Thanks for offering to contribute! I will watch for your patch and > shepherd it through the review process. > > Best, > Cory > > On Wed, Sep 23, 2015 at 10:16 AM, Niels Dekker wrote: > > Hi Cory, > > Thank you! When I have time (hopefully before next Sunday), I'll > try to contribute the patch via your gitlab contribution process. > Is the process similar to ITK? And do you think I should create a > "ticket" or "bug report" for this little issue? > > If I can't get it to work (or if it takes me too much time), I > hope someone else can do the patch for me, next week or so... > > Kind regards, Niels > > PS Also thanks to Audrius for the support :-) > > Cory Quammen wrote on September 23, 2015, 15:54: > > Hi Niels, > > This does sound like a good patch. Would you mind contributing > it via > our gitlab contribution process? Please see [1]. > > [1] https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md > > Thank you, > Cory > > On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: > > Does anyone here think it would be nice to fix these MSVC > warnings? > > Basically it's just a matter of replacing '/w' and '-w' > by '/W0', > in various CMake files of the VTK source tree, according > to the > patch/diff-file I attached last Sunday. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. From aashish.chaudhary at kitware.com Wed Sep 23 13:53:27 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Wed, 23 Sep 2015 13:53:27 -0400 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Can you describe more in detail what you are trying to do? We have piecewise method for transfer functions. What value you set for each step depends on what is needed. - aashsih On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K wrote: > > Hi Everyone, > > How can I set color transfer function and opacity transfer function based > on window width and window level ? > > > > Thanks in advance.. > > Regards, > Mallikarjun > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From shakthimaan at gmail.com Wed Sep 23 14:02:39 2015 From: shakthimaan at gmail.com (Shakthi Kannan) Date: Wed, 23 Sep 2015 23:32:39 +0530 Subject: [vtkusers] gcode2vtk animation example Message-ID: Hi, I saw the video on gcode2vtk at: https://www.youtube.com/watch?v=erWtMVjbHAU and found the relevant documentation at: http://forums.reprap.org/read.php?1,85243,85243,quote=1 I was able to convert a gcode file to vtk using the gcode2vtk utility, and view the same in Paraview (4.1.0 on Ubuntu 14.10). After following the steps mentioned in the above documentation, I am not able to view the animation. #1 Can you please provide a concrete example .vtk file with steps to reproduce the animation as shown in the video? #2 Is it possible to feed the gcode values in real-time and render the output using VTK? Appreciate your inputs in this regard, Thanks! SK -- Shakthi Kannan http://www.shakthimaan.com From cory.quammen at kitware.com Wed Sep 23 14:15:43 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 23 Sep 2015 14:15:43 -0400 Subject: [vtkusers] gcode2vtk animation example In-Reply-To: References: Message-ID: Hi SK, Do you have a converted VTK file you can post? I think I have an idea how they generated the video with ParaView. Best, Cory On Wed, Sep 23, 2015 at 2:02 PM, Shakthi Kannan wrote: > Hi, > > I saw the video on gcode2vtk at: > > https://www.youtube.com/watch?v=erWtMVjbHAU > > and found the relevant documentation at: > > http://forums.reprap.org/read.php?1,85243,85243,quote=1 > > I was able to convert a gcode file to vtk using the gcode2vtk utility, > and view the same in Paraview (4.1.0 on Ubuntu 14.10). After following > the steps mentioned in the above documentation, I am not able to view > the animation. > > #1 Can you please provide a concrete example .vtk file with steps to > reproduce the animation as shown in the video? > > #2 Is it possible to feed the gcode values in real-time and render the > output using VTK? > > Appreciate your inputs in this regard, > > Thanks! > > SK > > -- > Shakthi Kannan > http://www.shakthimaan.com > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shakthimaan at gmail.com Wed Sep 23 14:41:19 2015 From: shakthimaan at gmail.com (Shakthi Kannan) Date: Thu, 24 Sep 2015 00:11:19 +0530 Subject: [vtkusers] gcode2vtk animation example In-Reply-To: References: Message-ID: Hi Cory, --- On Wed, Sep 23, 2015 at 11:45 PM, Cory Quammen wrote: | Do you have a converted VTK file you can post? I think I have an idea how | they generated the video with ParaView. \-- Yes. Please try this file: http://shakthimaan.com/dump/Superman_export.gcode.vtk SK -- Shakthi Kannan http://www.shakthimaan.com From mallikarjun49 at gmail.com Wed Sep 23 14:48:00 2015 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Thu, 24 Sep 2015 00:18:00 +0530 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Hi Aashish, I have created a simple program which does volume rendering using vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I change the window/level by left mouse click+drag on the renderwindow, then want to change the color volume characteristics by means of window/level. I used vtkInteractorstyleimage interactor style to change the window/level on left mouse click+drag and in a call back I am getting the window and level using vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based on these w/l I want to change/modify the color transferfunction and opacity transfer function. please can you suggest me how can I achieve it. Thank you in advance. On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Can you describe more in detail what you are trying to do? We have > piecewise method for transfer functions. What value you set for each step > depends on what is needed. > > - aashsih > > On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K > wrote: > >> >> Hi Everyone, >> >> How can I set color transfer function and opacity transfer function based >> on window width and window level ? >> >> >> >> Thanks in advance.. >> >> Regards, >> Mallikarjun >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *With Kind Regards:* Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 16:11:50 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 20:11:50 +0000 Subject: [vtkusers] ActiViz Installation from compiled source Message-ID: Hi, I finished compiling and building ActiViz from source and would like to know which DLLs I need to copy to my bin project folder.. I'm working with VS2013. Thank you, Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From sankhesh.jhaveri at kitware.com Wed Sep 23 17:36:07 2015 From: sankhesh.jhaveri at kitware.com (Sankhesh Jhaveri) Date: Wed, 23 Sep 2015 17:36:07 -0400 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Hello Mallikarjuna, vtkInteractorStyleImage provides events for window level changes. See: http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html You can add an observer to the vtkCommand::WindowLevelEvent or vtkCommand::EndWindowLevelEvent and change the functions as you like. On a side note, if all you are changing is the window width and level, you can just pass those values to vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow() and SetFinalColorLevel(). Hope that helps. Warm regards, Sankhesh On Wed, Sep 23, 2015 at 2:48 PM, Mallikarjun K wrote: > Hi Aashish, > > I have created a simple program which does volume rendering using > vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I > change the window/level by left mouse click+drag on the renderwindow, then > want to change the color volume characteristics by means of window/level. > > I used vtkInteractorstyleimage interactor style to change the window/level > on left mouse click+drag and in a call back I am getting the window and > level using vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based > on these w/l I want to change/modify the color transferfunction and > opacity transfer function. > > please can you suggest me how can I achieve it. > > Thank you in advance. > > > > On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary < > aashish.chaudhary at kitware.com> wrote: > >> Can you describe more in detail what you are trying to do? We have >> piecewise method for transfer functions. What value you set for each step >> depends on what is needed. >> >> - aashsih >> >> On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K >> wrote: >> >>> >>> Hi Everyone, >>> >>> How can I set color transfer function and opacity transfer function >>> based on window width and window level ? >>> >>> >>> >>> Thanks in advance.. >>> >>> Regards, >>> Mallikarjun >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> >> >> >> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >> * >> *| http://www.kitware.com/company/team/chaudhary.html >> * >> > > > > -- > *With Kind Regards:* > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 mark at cascadeacoustic.com Wed Sep 23 18:41:52 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 23 Sep 2015 17:41:52 -0500 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <6a61eab837844af0a57c8018a4fdfa4b@cascadeacoustic.com> Message-ID: <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> I did't do a x64 build. I will be next month. I'm also going to look into switching from gccxml to CastXML with the gccxml emulation mode. All you should need to do is switch the arch in the VS solution configuration manager for VTK and Activiz. You shouldn't need to change anything at the CMAKE level or regenerate. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Wednesday, September 23, 2015 1:27 PM To: mark at cascadeacoustic.com Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Mark, one question, were you able to build the 64 bits version of this? I noticed mine was buiolt using 32 bits. What needs to happen to build 64 bits? Thank you! Matias. El mi?., 16 de sept. de 2015 a la(s) 11:20 p. m., Mark DeArman escribi?: Great news! Glad to hear you got it all built. Now the hard part has started for me, actually getting the viewmodels put together to interface with our application ;-) Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Wednesday, September 16, 2015 4:42 PM To: mark at cascadeacoustic.com, vtkusers at vtk.org Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success Hi, I was able to build ActiViz successfully. Altough Mummy did not completely built, I got the 2 Kitware.Mummy DLLs that are needed for ActiViz to be built as well as the mummy.exe file. I thank Mark for all the information he provided, I'll try to post the steps I followed, it's pretty similar to what you can find in the Wiki Page but there are some tweaks that need to be done in order to get it working. I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring the project with Cmake and needed to change vtkCommonEL_dll to vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll in the vtkProgrammableAttributeDataFilter_Extra.cs Regards, Matias. El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman escribi?: >Why not just publish a git branch with your changes on GitHub or some >other publicly hosted site? Perhaps your branch would get picked up by >the folks maintaining the ActiViz repo now. Because I don't use git. We use TFS at work, and the easiest way to publish it was to zip it all up and put it on a cloud drive. Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real solution. What is the point in patching it for modern VS support if it's a dead project. Fixing mummy to support the standard VTK wrapping libraries makes the most since. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "David Cole" Sent: Wednesday, September 16, 2015 7:12 AM To: mark at cascadeacoustic.com Cc: "vtkusers at vtk.org" Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > "if my idea of adding a second build step can get rid of the VS2008/MSCRT9 dependency for the final library" Yes, I think it absolutely could. It would be based on the assumption, however, that the interface generated by analyzing the source under the VS2008 environment would in the end be compatible with what you compile and link for the final library. And it would mean a two-stage build, with VS2008 still required for the first stage. I would be interested to see if anybody can replace gcc-xml with the new&improved CastXML, and still build ActiViz using a more modern VS all in one go. I haven't had time to investigate bringing things up to date for using CastXML, but if anybody else does, please do let us all know here on the VTK lists. Question for you: Why not just publish a git branch with your changes on GitHub or some other publicly hosted site? Perhaps your branch would get picked up by the folks maintaining the ActiViz repo now. Cheers, David C. On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman wrote: > Mallikarjun, > Your very welcome. I hope they'll help someone else out. I've been very > excited about using Activiz in a project for years. Since I was a kid stuck > running BSD on mac68k I've always enjoyed the challenge of porting software, > so I had a great time working on the build. > > gccxml generates the XML description of the C++ VTK library exports. Mummy > reads these and generates the csharp wrapper files. I really have not dug > into it deep enough yet to know how the Activiz export layer source fits > into the puzzle, but if I get some time, I'll see if my idea of adding a > second build step can get rid of the VS2008/MSCRT9 dependency for the final > library. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ________________________________ > From: "Mallikarjun K" > Sent: Tuesday, September 15, 2015 9:52 PM > To: mark at cascadeacoustic.com > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success > > Hi Mark, > > Thanks for sharing the source directories. One quick question..if I am not > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ > program, I found link https://github.com/dgobbi/WrapVTK which has a > generator for xml. > > Thank you. > > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman > wrote: >> >> Nothing will make it build in VS2013. Because of gccxml, you have to have >> VS2008 to do the build. >> I started to work on patching gccxml, but that was kind of a nightmare >> I'll leave to someone with more time. >> I am not a C++ template guru. >> >> But, the changes I've made build the binaries targeting .NET 4.0 instead >> of .NET 2.0. >> >> Here is the link to the Source download directory. I'm uploading it right >> now, so it will be a little bit. >> >> >> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ________________________________ >> From: "Mallikarjun K" >> Sent: Monday, September 14, 2015 5:55 AM >> To: mark at cascadeacoustic.com >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> Hi Mark, >> >> Can you send me the patched source directories. I want to make use of >> activiz 6.2 for vtk 6.2 with vs2013? >> >> Thanks >> >> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman >> wrote: >>> >>> I finally finished patching and testing the build. >>> VTK-6.2 built with Intel C++ 14.0 >>> Activiz 6.2 built with .NET 4.0 >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> If anyone else is having trouble getting this working, feel free to get >>> in contact with me, I can send you my patched source directories. This is >>> my first experience with CMake, and I've got to say it sure made things a >>> breeze. >>> >>> The only thing which drove me nuts was the number of times a full rebuild >>> got triggered after patching individual source files. I wish the >>> maintainers would remove the gccxml/mummy generate functions from the >>> configure step, and just make it another build step. >>> >>> I hope I can get more involved with the project but I've got a lot of >>> learning to do before I'd feel comfortable in CMake. >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> (253) 200-5353 >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >> >> >> -- >> With Kind Regards: >> Mallikarjuna K, >> 07795531103/09908238861. >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > With Kind Regards: > Mallikarjuna K, > 07795531103/09908238861. > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 -- Matias -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Wed Sep 23 18:44:56 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 23 Sep 2015 17:44:56 -0500 Subject: [vtkusers] ActiViz Installation from compiled source In-Reply-To: References: Message-ID: <538104a4467e4609b56979e463533306@cascadeacoustic.com> All the required DLLs should be included as resources inside the Activiz .NET class library. When you reference it, the embedded resources will automatically be extracted into the $OutputDir for the project. Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Wednesday, September 23, 2015 1:08 PM To: "vtkusers at vtk.org" Subject: [vtkusers] ActiViz Installation from compiled source Hi, I finished compiling and building ActiViz from source and would like to know which DLLs I need to copy to my bin project folder.. I'm working with VS2013. Thank you, Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 18:54:51 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 19:54:51 -0300 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <6a61eab837844af0a57c8018a4fdfa4b@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> Message-ID: Thank you Mark, I'm downloading VS Standard which provides the x64 mode when generating with Cmake. I was using VS express and selecting just Visual Studio 9 in Cmake. I will give it a try tomorrow Thanks. Matias Matias On Sep 23, 2015 7:47 PM, "Mark DeArman" wrote: > I did't do a x64 build. I will be next month. > I'm also going to look into switching from gccxml to CastXML with the > gccxml emulation mode. > > All you should need to do is switch the arch in the VS solution > configuration manager for VTK and Activiz. > You shouldn't need to change anything at the CMAKE level or regenerate. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ------------------------------ > *From*: "Matias Montroull" > *Sent*: Wednesday, September 23, 2015 1:27 PM > *To*: mark at cascadeacoustic.com > *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build > Success > > Mark, one question, were you able to build the 64 bits version of this? I > noticed mine was buiolt using 32 bits. What needs to happen to build 64 > bits? > Thank you! > Matias. > > El mi?., 16 de sept. de 2015 a la(s) 11:20 p. m., Mark DeArman < > mark at cascadeacoustic.com> escribi?: > >> Great news! Glad to hear you got it all built. Now the hard part has >> started for me, actually getting the viewmodels put together to interface >> with our application ;-) >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ------------------------------ >> *From*: "Matias Montroull" >> *Sent*: Wednesday, September 16, 2015 4:42 PM >> *To*: mark at cascadeacoustic.com, vtkusers at vtk.org >> >> *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >> Success >> >> Hi, >> >> I was able to build ActiViz successfully. Altough Mummy did not >> completely built, I got the 2 Kitware.Mummy DLLs that are needed for >> ActiViz to be built as well as the mummy.exe file. >> >> *I thank Mark for all the information he provided*, I'll try to post the >> steps I followed, it's pretty similar to what you can find in the Wiki Page >> but there are some tweaks that need to be done in order to get it working. >> >> I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring >> the project with Cmake and needed to change vtkCommonEL_dll to >> vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll >> in the vtkProgrammableAttributeDataFilter_Extra.cs >> >> Regards, >> >> Matias. >> >> El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman < >> mark at cascadeacoustic.com> escribi?: >> >>> >Why not just publish a git branch with your changes on GitHub or some >>> >other publicly hosted site? Perhaps your branch would get picked up by >>> >the folks maintaining the ActiViz repo now. >>> >>> Because I don't use git. We use TFS at work, and the easiest way to >>> publish it was to zip it all up and put it on a cloud drive. >>> >>> Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real >>> solution. What is the point in patching it for modern VS support if it's a >>> dead project. Fixing mummy to support the standard VTK wrapping libraries >>> makes the most since. >>> >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> (253) 200-5353 >>> >>> ------------------------------ >>> *From*: "David Cole" >>> *Sent*: Wednesday, September 16, 2015 7:12 AM >>> *To*: mark at cascadeacoustic.com >>> *Cc*: "vtkusers at vtk.org" >>> >>> *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> Success >>> >>> > "if my idea of adding a second build step can get rid of the >>> VS2008/MSCRT9 dependency for the final library" >>> >>> Yes, I think it absolutely could. It would be based on the assumption, >>> however, that the interface generated by analyzing the source under >>> the VS2008 environment would in the end be compatible with what you >>> compile and link for the final library. And it would mean a two-stage >>> build, with VS2008 still required for the first stage. >>> >>> I would be interested to see if anybody can replace gcc-xml with the >>> new&improved CastXML, and still build ActiViz using a more modern VS >>> all in one go. I haven't had time to investigate bringing things up to >>> date for using CastXML, but if anybody else does, please do let us all >>> know here on the VTK lists. >>> >>> Question for you: >>> Why not just publish a git branch with your changes on GitHub or some >>> other publicly hosted site? Perhaps your branch would get picked up by >>> the folks maintaining the ActiViz repo now. >>> >>> >>> Cheers, >>> David C. >>> >>> >>> >>> >>> On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman >>> wrote: >>> > Mallikarjun, >>> > Your very welcome. I hope they'll help someone else out. I've been very >>> > excited about using Activiz in a project for years. Since I was a kid >>> stuck >>> > running BSD on mac68k I've always enjoyed the challenge of porting >>> software, >>> > so I had a great time working on the build. >>> > >>> > gccxml generates the XML description of the C++ VTK library exports. >>> Mummy >>> > reads these and generates the csharp wrapper files. I really have not >>> dug >>> > into it deep enough yet to know how the Activiz export layer source >>> fits >>> > into the puzzle, but if I get some time, I'll see if my idea of adding >>> a >>> > second build step can get rid of the VS2008/MSCRT9 dependency for the >>> final >>> > library. >>> > >>> > Mark DeArman >>> > Cascade Acoustic Research >>> > http://www.cascadeacoustic.com >>> > (253) 200-5353 >>> > >>> > ________________________________ >>> > From: "Mallikarjun K" >>> > Sent: Tuesday, September 15, 2015 9:52 PM >>> > To: mark at cascadeacoustic.com >>> > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> Success >>> > >>> > Hi Mark, >>> > >>> > Thanks for sharing the source directories. One quick question..if I am >>> not >>> > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ >>> > program, I found link https://github.com/dgobbi/WrapVTK which has a >>> > generator for xml. >>> > >>> > Thank you. >>> > >>> > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman < >>> mark at cascadeacoustic.com> >>> > wrote: >>> >> >>> >> Nothing will make it build in VS2013. Because of gccxml, you have to >>> have >>> >> VS2008 to do the build. >>> >> I started to work on patching gccxml, but that was kind of a nightmare >>> >> I'll leave to someone with more time. >>> >> I am not a C++ template guru. >>> >> >>> >> But, the changes I've made build the binaries targeting .NET 4.0 >>> instead >>> >> of .NET 2.0. >>> >> >>> >> Here is the link to the Source download directory. I'm uploading it >>> right >>> >> now, so it will be a little bit. >>> >> >>> >> >>> >> >>> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >>> >> >>> >> Mark DeArman >>> >> Cascade Acoustic Research >>> >> http://www.cascadeacoustic.com >>> >> (253) 200-5353 >>> >> >>> >> ________________________________ >>> >> From: "Mallikarjun K" >>> >> Sent: Monday, September 14, 2015 5:55 AM >>> >> To: mark at cascadeacoustic.com >>> >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> >> Success >>> >> >>> >> Hi Mark, >>> >> >>> >> Can you send me the patched source directories. I want to make use of >>> >> activiz 6.2 for vtk 6.2 with vs2013? >>> >> >>> >> Thanks >>> >> >>> >> >>> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman < >>> mark at cascadeacoustic.com> >>> >> wrote: >>> >>> >>> >>> I finally finished patching and testing the build. >>> >>> VTK-6.2 built with Intel C++ 14.0 >>> >>> Activiz 6.2 built with .NET 4.0 >>> >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> >>> >>> If anyone else is having trouble getting this working, feel free to >>> get >>> >>> in contact with me, I can send you my patched source directories. >>> This is >>> >>> my first experience with CMake, and I've got to say it sure made >>> things a >>> >>> breeze. >>> >>> >>> >>> The only thing which drove me nuts was the number of times a full >>> rebuild >>> >>> got triggered after patching individual source files. I wish the >>> >>> maintainers would remove the gccxml/mummy generate functions from the >>> >>> configure step, and just make it another build step. >>> >>> >>> >>> I hope I can get more involved with the project but I've got a lot of >>> >>> learning to do before I'd feel comfortable in CMake. >>> >>> >>> >>> Mark DeArman >>> >>> Cascade Acoustic Research >>> >>> http://www.cascadeacoustic.com >>> >>> (253) 200-5353 >>> >>> >>> >>> _______________________________________________ >>> >>> Powered by www.kitware.com >>> >>> >>> >>> Visit other Kitware open-source projects at >>> >>> http://www.kitware.com/opensource/opensource.html >>> >>> >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> >>> >>> Follow this link to subscribe/unsubscribe: >>> >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >> >>> >> >>> >> >>> >> -- >>> >> With Kind Regards: >>> >> Mallikarjuna K, >>> >> 07795531103/09908238861. >>> >> >>> >> >>> >> _______________________________________________ >>> >> Powered by www.kitware.com >>> >> >>> >> Visit other Kitware open-source projects at >>> >> http://www.kitware.com/opensource/opensource.html >>> >> >>> >> Please keep messages on-topic and check the VTK FAQ at: >>> >> http://www.vtk.org/Wiki/VTK_FAQ >>> >> >>> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >> >>> >> Follow this link to subscribe/unsubscribe: >>> >> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >>> > >>> > >>> > >>> > -- >>> > With Kind Regards: >>> > Mallikarjuna K, >>> > 07795531103/09908238861. >>> > >>> > >>> > _______________________________________________ >>> > Powered by www.kitware.com >>> > >>> > Visit other Kitware open-source projects at >>> > http://www.kitware.com/opensource/opensource.html >>> > >>> > Please keep messages on-topic and check the VTK FAQ at: >>> > http://www.vtk.org/Wiki/VTK_FAQ >>> > >>> > 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 >> >> -- >> Matias >> > -- > Matias > -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 18:58:25 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 22:58:25 +0000 Subject: [vtkusers] ActiViz Installation from compiled source In-Reply-To: <538104a4467e4609b56979e463533306@cascadeacoustic.com> References: <538104a4467e4609b56979e463533306@cascadeacoustic.com> Message-ID: Thanks Mark, I just referenced Kitware.VTK.dll and Kitware.mummy.Runtime.dll from the installation folder and when I built my project all required DLLs were copied in. Thanks! Matias. El mi?., 23 de sept. de 2015 a la(s) 7:50 p. m., Mark DeArman < mark at cascadeacoustic.com> escribi?: > All the required DLLs should be included as resources inside the Activiz > .NET class library. When you reference it, the embedded resources will > automatically be extracted into the $OutputDir for the project. > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ------------------------------ > *From*: "Matias Montroull" > *Sent*: Wednesday, September 23, 2015 1:08 PM > *To*: "vtkusers at vtk.org" > *Subject*: [vtkusers] ActiViz Installation from compiled source > > Hi, > > I finished compiling and building ActiViz from source and would like to > know which DLLs I need to copy to my bin project folder.. > > I'm working with VS2013. > > Thank you, > > Matias. > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 19:24:48 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 23:24:48 +0000 Subject: [vtkusers] Compile VTK 64 Bits Message-ID: Hi, I'm trying to generate in CMake with the 64 bits compiler and getting this message: No CMAKE_CXX_COMPILER could be found. And I have the link.exe which is under the amd64 folder in: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/link.exe I selected Visual Studio 2008 9 64 bits.. Any ideas what I may be missing? Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Wed Sep 23 19:24:11 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Wed, 23 Sep 2015 18:24:11 -0500 Subject: [vtkusers] Compile VTK 64 Bits In-Reply-To: References: Message-ID: Haha, you're right, I'm an idiot. You do have to regenerate ;-) Sorry. Did you make sure to select the x64 compilers option when you installed VS2008 ? Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Wednesday, September 23, 2015 4:20 PM To: "vtkusers at vtk.org" Subject: [vtkusers] Compile VTK 64 Bits Hi, I'm trying to generate in CMake with the 64 bits compiler and getting this message: No CMAKE_CXX_COMPILER could be found. And I have the link.exe which is under the amd64 folder in: C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/link.exe I selected Visual Studio 2008 9 64 bits.. Any ideas what I may be missing? Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 19:34:31 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 23:34:31 +0000 Subject: [vtkusers] Compile VTK 64 Bits In-Reply-To: References: Message-ID: Ok, so I was actually doing so. I used the VTK solution I had (no regenerate) and went to VS2008 Standard edition and changed the release platform to x64 and building now... Will let you know how it goes.. El mi?., 23 de sept. de 2015 a la(s) 8:29 p. m., Mark DeArman < mark at cascadeacoustic.com> escribi?: > Haha, you're right, I'm an idiot. You do have to regenerate ;-) Sorry. > Did you make sure to select the x64 compilers option when you installed > VS2008 ? > > Mark DeArman > Cascade Acoustic Research > http://www.cascadeacoustic.com > (253) 200-5353 > > ------------------------------ > *From*: "Matias Montroull" > *Sent*: Wednesday, September 23, 2015 4:20 PM > *To*: "vtkusers at vtk.org" > *Subject*: [vtkusers] Compile VTK 64 Bits > > Hi, > > I'm trying to generate in CMake with the 64 bits compiler and getting this > message: > > No CMAKE_CXX_COMPILER could be found. > > And I have the link.exe which is under the amd64 folder in: > C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/link.exe > > I selected Visual Studio 2008 9 64 bits.. > > Any ideas what I may be missing? > > Matias. > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 19:36:57 2015 From: matimontg at gmail.com (Matias Montroull) Date: Wed, 23 Sep 2015 23:36:57 +0000 Subject: [vtkusers] Compile VTK 64 Bits In-Reply-To: References: Message-ID: It did fail so I will have to regenerate. I think I did not select the x64 compilers option, I'll reinstall Visual Studio and ensure I select that. Thanks for your help Mark. Matias. El mi?., 23 de sept. de 2015 a la(s) 8:34 p. m., Matias Montroull < matimontg at gmail.com> escribi?: > Ok, so I was actually doing so. I used the VTK solution I had (no > regenerate) and went to VS2008 Standard edition and changed the release > platform to x64 and building now... > > Will let you know how it goes.. > > El mi?., 23 de sept. de 2015 a la(s) 8:29 p. m., Mark DeArman < > mark at cascadeacoustic.com> escribi?: > >> Haha, you're right, I'm an idiot. You do have to regenerate ;-) Sorry. >> Did you make sure to select the x64 compilers option when you installed >> VS2008 ? >> >> Mark DeArman >> Cascade Acoustic Research >> http://www.cascadeacoustic.com >> (253) 200-5353 >> >> ------------------------------ >> *From*: "Matias Montroull" >> *Sent*: Wednesday, September 23, 2015 4:20 PM >> *To*: "vtkusers at vtk.org" >> *Subject*: [vtkusers] Compile VTK 64 Bits >> >> Hi, >> >> I'm trying to generate in CMake with the 64 bits compiler and getting >> this message: >> >> No CMAKE_CXX_COMPILER could be found. >> >> And I have the link.exe which is under the amd64 folder in: >> C:/Program Files (x86)/Microsoft Visual Studio 9.0/VC/bin/amd64/link.exe >> >> I selected Visual Studio 2008 9 64 bits.. >> >> Any ideas what I may be missing? >> >> Matias. >> -- >> Matias >> > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 20:55:19 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 00:55:19 +0000 Subject: [vtkusers] Error 115 error C2491: 'vtkArrayIteratorTemplate::GetNumberOfTuples' : definition of dllimport function not allowed c:\vtk-6.2.0\common\core\vtkArrayIteratorTemplate.txx Message-ID: Hi, I'm building VTK 6.2 using VS2008 (CMake configuration is 64 bits) and I'm getting lots of these: Error 115 error C2491: 'vtkArrayIteratorTemplate::GetNumberOfTuples' : definition of dllimport function not allowed c:\vtk-6.2.0\common\core\vtkArrayIteratorTemplate.txx 73 When I built using 32 bits it did work just fine so not sure what may be the issue.. Thank you, Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Wed Sep 23 21:25:02 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 01:25:02 +0000 Subject: [vtkusers] Error 115 error C2491: 'vtkArrayIteratorTemplate::GetNumberOfTuples' : definition of dllimport function not allowed c:\vtk-6.2.0\common\core\vtkArrayIteratorTemplate.txx In-Reply-To: References: Message-ID: Disregard... I had cached files from a previous configure attempt using x86 mode.. I deleted cache files, the output directory and re generated then built with no errors. Regards, Matias. El mi?., 23 de sept. de 2015 a la(s) 9:55 p. m., Matias Montroull < matimontg at gmail.com> escribi?: > Hi, > > I'm building VTK 6.2 using VS2008 (CMake configuration is 64 bits) and I'm > getting lots of these: > > Error 115 error C2491: 'vtkArrayIteratorTemplate::GetNumberOfTuples' : > definition of dllimport function not allowed > c:\vtk-6.2.0\common\core\vtkArrayIteratorTemplate.txx 73 > > When I built using 32 bits it did work just fine so not sure what may be > the issue.. > > Thank you, > > Matias. > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From t.manobala2009 at gmail.com Thu Sep 24 00:22:09 2015 From: t.manobala2009 at gmail.com (Manobala) Date: Wed, 23 Sep 2015 21:22:09 -0700 (MST) Subject: [vtkusers] Stop Zooming in VTK Widget Message-ID: <1443068529204-5734103.post@n5.nabble.com> hi to all am very new to vtk actually am trying to display serial Dicom images and it is done using http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOMSeries by code in this link there is mouse events are used for example virtual void OnMouseWheelForward() to get the next slice of the dicom image ,i had a problem here (i.e) if i move the mousewheel forward means i get the next image at the same time the image getting Zooming i need to stop Zooming plz help me i had tried this code also vtkSmartPointer style = vtkSmartPointer::New(); style->SetInteractionMode(0); its not work plz share some other code Thanking you Mano -- View this message in context: http://vtk.1045678.n5.nabble.com/Stop-Zooming-in-VTK-Widget-tp5734103.html Sent from the VTK - Users mailing list archive at Nabble.com. From mallikarjun49 at gmail.com Thu Sep 24 01:09:57 2015 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Thu, 24 Sep 2015 10:39:57 +0530 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Hi Sankhesh, Thanks for your suggestions. Actually I want to modify the existing color transfer function and Opacity transfer function interactively on left mouse+move on the volume. Thank you With Kind Regards, Mallikarjun On Thu, Sep 24, 2015 at 3:06 AM, Sankhesh Jhaveri < sankhesh.jhaveri at kitware.com> wrote: > Hello Mallikarjuna, > > vtkInteractorStyleImage provides events for window level changes. See: > http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html > > You can add an observer to the vtkCommand::WindowLevelEvent or > vtkCommand::EndWindowLevelEvent and change the functions as you like. On a > side note, if all you are changing is the window width and level, you can > just pass those values to > vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow() and > SetFinalColorLevel(). > > Hope that helps. > > > Warm regards, > Sankhesh > > > > On Wed, Sep 23, 2015 at 2:48 PM, Mallikarjun K > wrote: > >> Hi Aashish, >> >> I have created a simple program which does volume rendering using >> vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I >> change the window/level by left mouse click+drag on the renderwindow, then >> want to change the color volume characteristics by means of window/level. >> >> I used vtkInteractorstyleimage interactor style to change the >> window/level on left mouse click+drag and in a call back I am getting the >> window and level using >> vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based on these w/l >> I want to change/modify the color transferfunction and opacity transfer >> function. >> >> please can you suggest me how can I achieve it. >> >> Thank you in advance. >> >> >> >> On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary < >> aashish.chaudhary at kitware.com> wrote: >> >>> Can you describe more in detail what you are trying to do? We have >>> piecewise method for transfer functions. What value you set for each step >>> depends on what is needed. >>> >>> - aashsih >>> >>> On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K >> > wrote: >>> >>>> >>>> Hi Everyone, >>>> >>>> How can I set color transfer function and opacity transfer function >>>> based on window width and window level ? >>>> >>>> >>>> >>>> Thanks in advance.. >>>> >>>> Regards, >>>> Mallikarjun >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >>> >>> -- >>> >>> >>> >>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>> * >>> *| http://www.kitware.com/company/team/chaudhary.html >>> * >>> >> >> >> >> -- >> *With Kind Regards:* >> Mallikarjuna K, >> 07795531103/09908238861. >> >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -- *With Kind Regards:* Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dejan.zivkovic90 at gmail.com Thu Sep 24 05:06:53 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Thu, 24 Sep 2015 11:06:53 +0200 Subject: [vtkusers] vkt and threading Message-ID: Hi, Is it possible to update and render vtk scene from non-main thread? Thanks, Dejan -------------- next part -------------- An HTML attachment was scrubbed... URL: From vijayarani.shanmugavadivu at appasamy.com Thu Sep 24 07:25:58 2015 From: vijayarani.shanmugavadivu at appasamy.com (Vijaya Rani) Date: Thu, 24 Sep 2015 04:25:58 -0700 (MST) Subject: [vtkusers] Moving through mha image slices using QvtkWidget and VtkImageViewer2 Message-ID: <1443093958691-5734108.post@n5.nabble.com> Hi I am trying to display a mha image in a qvtkwidget based on the sample code given in the following link http://www.vtk.org/Wiki/VTK/Examples/Cxx/IO/ReadDICOMSeries .I need to move through the slices of the mha image with mouse wheel.I followed the link http://public.kitware.com/pipermail/vtkusers/2014-October/085403.html and tried to set the rendering environment.The problem is when i try to move through images by mouse wheel the imageviewer is not setting the next slice to the qvtkwidget and application is getting crashed. Below is my code and the output. #include "mainwindow.h" #include "ui_mainwindow.h" #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include // helper class to format slice status message class StatusMessage { public: static std::string Format(int slice, int maxSlice) { std::stringstream tmp; tmp << "Slice Number " << slice + 1 << "/" << maxSlice + 1; return tmp.str(); } }; // Define own interaction style class myVtkInteractorStyleImage : public vtkInteractorStyleImage { public: static myVtkInteractorStyleImage* New(); vtkTypeMacro(myVtkInteractorStyleImage, vtkInteractorStyleImage) protected: vtkImageViewer2* _ImageViewer; vtkTextMapper* _StatusMapper; int _Slice; int _MinSlice; int _MaxSlice; public: void SetImageViewer(vtkImageViewer2* imageViewer) { _ImageViewer = imageViewer; _MinSlice = imageViewer->GetSliceMin(); _MaxSlice = imageViewer->GetSliceMax(); _Slice = _MinSlice; cout << "Slicer: Min = " << _MinSlice << ", Max = " << _MaxSlice << std::endl; } void SetStatusMapper(vtkTextMapper* statusMapper) { _StatusMapper = statusMapper; } protected: void MoveSliceForward() { cout << "MoveSliceForward::Slice = " << _Slice <<" "<<_MaxSlice<< std::endl; if(_Slice < _MaxSlice) { _Slice += 1; cout << "MoveSliceForward::Slice = " << _Slice << std::endl; _ImageViewer->SetSlice(_Slice); std::string msg = StatusMessage::Format(_Slice, _MaxSlice); _StatusMapper->SetInput(msg.c_str()); _ImageViewer->Render(); } } void MoveSliceBackward() { cout << "MoveSliceBackward::Slice = " << _Slice <<" "<<_MinSlice<< std::endl; if(_Slice > _MinSlice) { _Slice -= 1; cout << "MoveSliceBackward::Slice = " << _Slice << std::endl; _ImageViewer->SetSlice(_Slice); std::string msg = StatusMessage::Format(_Slice, _MaxSlice); _StatusMapper->SetInput(msg.c_str()); _ImageViewer->Render(); } } virtual void OnMouseWheelForward() { std::cout << "Scrolled mouse wheel forward." << std::endl; MoveSliceForward(); } virtual void OnMouseWheelBackward() { std::cout << "Scrolled mouse wheel backward." << std::endl; MoveSliceBackward(); } }; vtkStandardNewMacro(myVtkInteractorStyleImage) MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow) { ui->setupUi(this); vtkSmartPointer imgFirstColorMap = vtkSmartPointer::New(); imgFirstColorMap->SetRange( 0.0, 255.0 ); imgFirstColorMap->SetHueRange( 1.0, .1 ); imgFirstColorMap->SetValueRange( 0.4, 0.8 ); imgFirstColorMap->Build(); vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName("/home/user/Desktop/sample.mha"); reader->Update(); vtkSmartPointer firstColorMapper = vtkSmartPointer::New(); firstColorMapper->SetInputConnection( reader->GetOutputPort() ); firstColorMapper->SetLookupTable( imgFirstColorMap ); vtkSmartPointer imageViewer = vtkSmartPointer::New(); vtkRenderWindow* renwin = ui->qvtkWidget->GetRenderWindow(); vtkRenderWindowInteractor* iact =renwin->GetInteractor(); vtkSmartPointer myInteractorStyle =vtkSmartPointer::New(); imageViewer->SetRenderWindow(renwin); imageViewer->SetupInteractor(iact); imageViewer->SetInputConnection(firstColorMapper->GetOutputPort()); myInteractorStyle->SetImageViewer(imageViewer); iact->SetInteractorStyle(myInteractorStyle); iact->SetRenderWindow(imageViewer->GetRenderWindow()); iact->Initialize(); iact->Start(); imageViewer->Render(); imageViewer->GetRenderer()->ResetCamera(); imageViewer->Render(); } MainWindow::~MainWindow() { delete ui; } Slicer: Min = 0, Max = 127 ERROR: In /home/linuxadmin/VTK5.10.1/GUISupport/Qt/QVTKInteractor.cxx, line 147 QVTKInteractor (0x1c861e0): QVTKInteractor cannot control the event loop. Scrolled mouse wheel forward. MoveSliceForward::Slice = 0 127 MoveSliceForward::Slice = 1 The program has unexpectedly finished. Kindly help to rectify the issue and need to know whether the qvtkwidget and image viewer rendering is correct. -- View this message in context: http://vtk.1045678.n5.nabble.com/Moving-through-mha-image-slices-using-QvtkWidget-and-VtkImageViewer2-tp5734108.html Sent from the VTK - Users mailing list archive at Nabble.com. From hozo19 at gmail.com Thu Sep 24 09:42:29 2015 From: hozo19 at gmail.com (hoppico) Date: Thu, 24 Sep 2015 06:42:29 -0700 (MST) Subject: [vtkusers] Variables after renderWindowInteractor->Start() are empty Message-ID: <1443102149523-5734110.post@n5.nabble.com> Hi colleagues, I am writing an application at which I need to access the contents of all my variables after execution of this command: renderWindowInteractor->Start(); Nevertheless, I don't know why, all the variables defined out of vtk, are EMPTY. I mention that I can see their names during debug. the program can be compiled, but whenever I want to access the, I see that they are all empty. Some one told me that it may be because of the threads, since the threads of vtk are separated from threads of the main application. By the waym there should be a methods to access my data after that command. Can someone guide me about this error and the way I should tackle it? Thanks -- View this message in context: http://vtk.1045678.n5.nabble.com/Variables-after-renderWindowInteractor-Start-are-empty-tp5734110.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Thu Sep 24 10:23:58 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Thu, 24 Sep 2015 10:23:58 -0400 Subject: [vtkusers] vkt and threading In-Reply-To: References: Message-ID: Dejan, If you can, it is not easy to get right. In general, you have to be very careful when multithreading with VTK. While some parts of VTK are thread safe, most are not. In projects I've encountered, VTK runs in the main thread and run potentially long-running processing tasks on other threads. HTH, Cory On Thu, Sep 24, 2015 at 5:06 AM, Dejan Zivkovic wrote: > Hi, > > Is it possible to update and render > vtk scene from non-main thread? > > Thanks, > Dejan > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From oscar.cainelli at smarthydrosol.com Thu Sep 24 11:48:54 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Thu, 24 Sep 2015 08:48:54 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> Message-ID: <1443109734776-5734113.post@n5.nabble.com> aaaahh I am going crazy, I finally got to build activiz (by compiling ALLBUILD), and now kitware.mummy.runtime.dll is created, while kitware.VTK.dll not. In total there are 9 dlls not created. I then tried to compile kitware.VTK alone, just to see what happens, but Visual studio 2008 highlights a number of missing cs files under the "csharp" directory. See attachment What am I doing wrong? Thank you Oscar errors.txt -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734113.html Sent from the VTK - Users mailing list archive at Nabble.com. From matimontg at gmail.com Thu Sep 24 12:52:30 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 16:52:30 +0000 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: <1443109734776-5734113.post@n5.nabble.com> References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> <1443109734776-5734113.post@n5.nabble.com> Message-ID: That's a weird error... Did you check to see if the files are indeed there? El jue., 24 de sept. de 2015 a la(s) 12:49 p. m., oscarafone77 < oscar.cainelli at smarthydrosol.com> escribi?: > aaaahh > > I am going crazy, > > I finally got to build activiz (by compiling ALLBUILD), and now > kitware.mummy.runtime.dll is created, while kitware.VTK.dll not. In total > there are 9 dlls not created. > > I then tried to compile kitware.VTK alone, just to see what happens, but > Visual studio 2008 highlights a number of missing cs files under the > "csharp" directory. See attachment > > What am I doing wrong? > > Thank you > Oscar > > errors.txt > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734113.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 > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From shakthimaan at gmail.com Thu Sep 24 13:04:15 2015 From: shakthimaan at gmail.com (Shakthi Kannan) Date: Thu, 24 Sep 2015 22:34:15 +0530 Subject: [vtkusers] Using Python VTK to add more points, lines on callback Message-ID: Hi, I would like to render lines using a Python callback method and VTK. I am using the following code snippet as a template: http://www.vtk.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/LongLine and the follow examples for a callback function: http://cmake.org/Wiki/VTK/Examples/Python/Animation http://public.kitware.com/pipermail/vtkusers/2010-January/056316.html Changing the colour of the line using the callback method after 5s works fine. But, I am not sure how to add more points and lines to the existing image. My hacked up code is here: https://gist.github.com/shakthimaan/588af4b6d0facdf2cc89 How do I incrementally add lines to an existing drawing, and render them? Appreciate your help in this regard, Thanks! SK -- Shakthi Kannan http://www.shakthimaan.com From matimontg at gmail.com Thu Sep 24 13:08:25 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 17:08:25 +0000 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> Message-ID: Hi David, How can I get permissions to edit the WiKi instructions? I'd like to include what I haev to do to build AtiViz 6.2 successfully. Thanks, El lun., 21 de sept. de 2015 a la(s) 11:13 a. m., David E DeMarle < dave.demarle at kitware.com> escribi?: > Please feel free to update the wiki page directly. Also, post a link to it > in this thread when you do. That way the information will have the best > visibility for others to find. > > thanks > > > > > David E DeMarle > Kitware, Inc. > R&D Engineer > 21 Corporate Drive > Clifton Park, NY 12065-8662 > Phone: 518-881-4909 > > On Wed, Sep 16, 2015 at 7:41 PM, Matias Montroull > wrote: > >> Hi, >> >> I was able to build ActiViz successfully. Altough Mummy did not >> completely built, I got the 2 Kitware.Mummy DLLs that are needed for >> ActiViz to be built as well as the mummy.exe file. >> >> *I thank Mark for all the information he provided*, I'll try to post the >> steps I followed, it's pretty similar to what you can find in the Wiki Page >> but there are some tweaks that need to be done in order to get it working. >> >> I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring >> the project with Cmake and needed to change vtkCommonEL_dll to >> vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll >> in the vtkProgrammableAttributeDataFilter_Extra.cs >> >> Regards, >> >> Matias. >> >> El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman < >> mark at cascadeacoustic.com> escribi?: >> >>> >Why not just publish a git branch with your changes on GitHub or some >>> >other publicly hosted site? Perhaps your branch would get picked up by >>> >the folks maintaining the ActiViz repo now. >>> >>> Because I don't use git. We use TFS at work, and the easiest way to >>> publish it was to zip it all up and put it on a cloud drive. >>> >>> Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real >>> solution. What is the point in patching it for modern VS support if it's a >>> dead project. Fixing mummy to support the standard VTK wrapping libraries >>> makes the most since. >>> >>> >>> Mark DeArman >>> Cascade Acoustic Research >>> http://www.cascadeacoustic.com >>> (253) 200-5353 >>> >>> ------------------------------ >>> *From*: "David Cole" >>> *Sent*: Wednesday, September 16, 2015 7:12 AM >>> *To*: mark at cascadeacoustic.com >>> *Cc*: "vtkusers at vtk.org" >>> >>> *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> Success >>> >>> > "if my idea of adding a second build step can get rid of the >>> VS2008/MSCRT9 dependency for the final library" >>> >>> Yes, I think it absolutely could. It would be based on the assumption, >>> however, that the interface generated by analyzing the source under >>> the VS2008 environment would in the end be compatible with what you >>> compile and link for the final library. And it would mean a two-stage >>> build, with VS2008 still required for the first stage. >>> >>> I would be interested to see if anybody can replace gcc-xml with the >>> new&improved CastXML, and still build ActiViz using a more modern VS >>> all in one go. I haven't had time to investigate bringing things up to >>> date for using CastXML, but if anybody else does, please do let us all >>> know here on the VTK lists. >>> >>> Question for you: >>> Why not just publish a git branch with your changes on GitHub or some >>> other publicly hosted site? Perhaps your branch would get picked up by >>> the folks maintaining the ActiViz repo now. >>> >>> >>> Cheers, >>> David C. >>> >>> >>> >>> >>> On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman >>> wrote: >>> > Mallikarjun, >>> > Your very welcome. I hope they'll help someone else out. I've been very >>> > excited about using Activiz in a project for years. Since I was a kid >>> stuck >>> > running BSD on mac68k I've always enjoyed the challenge of porting >>> software, >>> > so I had a great time working on the build. >>> > >>> > gccxml generates the XML description of the C++ VTK library exports. >>> Mummy >>> > reads these and generates the csharp wrapper files. I really have not >>> dug >>> > into it deep enough yet to know how the Activiz export layer source >>> fits >>> > into the puzzle, but if I get some time, I'll see if my idea of adding >>> a >>> > second build step can get rid of the VS2008/MSCRT9 dependency for the >>> final >>> > library. >>> > >>> > Mark DeArman >>> > Cascade Acoustic Research >>> > http://www.cascadeacoustic.com >>> > (253) 200-5353 >>> > >>> > ________________________________ >>> > From: "Mallikarjun K" >>> > Sent: Tuesday, September 15, 2015 9:52 PM >>> > To: mark at cascadeacoustic.com >>> > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> Success >>> > >>> > Hi Mark, >>> > >>> > Thanks for sharing the source directories. One quick question..if I am >>> not >>> > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ >>> > program, I found link https://github.com/dgobbi/WrapVTK which has a >>> > generator for xml. >>> > >>> > Thank you. >>> > >>> > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman < >>> mark at cascadeacoustic.com> >>> > wrote: >>> >> >>> >> Nothing will make it build in VS2013. Because of gccxml, you have to >>> have >>> >> VS2008 to do the build. >>> >> I started to work on patching gccxml, but that was kind of a nightmare >>> >> I'll leave to someone with more time. >>> >> I am not a C++ template guru. >>> >> >>> >> But, the changes I've made build the binaries targeting .NET 4.0 >>> instead >>> >> of .NET 2.0. >>> >> >>> >> Here is the link to the Source download directory. I'm uploading it >>> right >>> >> now, so it will be a little bit. >>> >> >>> >> >>> >> >>> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >>> >> >>> >> Mark DeArman >>> >> Cascade Acoustic Research >>> >> http://www.cascadeacoustic.com >>> >> (253) 200-5353 >>> >> >>> >> ________________________________ >>> >> From: "Mallikarjun K" >>> >> Sent: Monday, September 14, 2015 5:55 AM >>> >> To: mark at cascadeacoustic.com >>> >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>> >> Success >>> >> >>> >> Hi Mark, >>> >> >>> >> Can you send me the patched source directories. I want to make use of >>> >> activiz 6.2 for vtk 6.2 with vs2013? >>> >> >>> >> Thanks >>> >> >>> >> >>> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman < >>> mark at cascadeacoustic.com> >>> >> wrote: >>> >>> >>> >>> I finally finished patching and testing the build. >>> >>> VTK-6.2 built with Intel C++ 14.0 >>> >>> Activiz 6.2 built with .NET 4.0 >>> >>> Mummy 1.0.3 built with .NET 4.0 >>> >>> >>> >>> If anyone else is having trouble getting this working, feel free to >>> get >>> >>> in contact with me, I can send you my patched source directories. >>> This is >>> >>> my first experience with CMake, and I've got to say it sure made >>> things a >>> >>> breeze. >>> >>> >>> >>> The only thing which drove me nuts was the number of times a full >>> rebuild >>> >>> got triggered after patching individual source files. I wish the >>> >>> maintainers would remove the gccxml/mummy generate functions from the >>> >>> configure step, and just make it another build step. >>> >>> >>> >>> I hope I can get more involved with the project but I've got a lot of >>> >>> learning to do before I'd feel comfortable in CMake. >>> >>> >>> >>> Mark DeArman >>> >>> Cascade Acoustic Research >>> >>> http://www.cascadeacoustic.com >>> >>> (253) 200-5353 >>> >>> >>> >>> _______________________________________________ >>> >>> Powered by www.kitware.com >>> >>> >>> >>> Visit other Kitware open-source projects at >>> >>> http://www.kitware.com/opensource/opensource.html >>> >>> >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> >>> >>> Follow this link to subscribe/unsubscribe: >>> >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >>> >> >>> >> >>> >> >>> >> -- >>> >> With Kind Regards: >>> >> Mallikarjuna K, >>> >> 07795531103/09908238861. >>> >> >>> >> >>> >> _______________________________________________ >>> >> Powered by www.kitware.com >>> >> >>> >> Visit other Kitware open-source projects at >>> >> http://www.kitware.com/opensource/opensource.html >>> >> >>> >> Please keep messages on-topic and check the VTK FAQ at: >>> >> http://www.vtk.org/Wiki/VTK_FAQ >>> >> >>> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >> >>> >> Follow this link to subscribe/unsubscribe: >>> >> http://public.kitware.com/mailman/listinfo/vtkusers >>> >> >>> > >>> > >>> > >>> > -- >>> > With Kind Regards: >>> > Mallikarjuna K, >>> > 07795531103/09908238861. >>> > >>> > >>> > _______________________________________________ >>> > Powered by www.kitware.com >>> > >>> > Visit other Kitware open-source projects at >>> > http://www.kitware.com/opensource/opensource.html >>> > >>> > Please keep messages on-topic and check the VTK FAQ at: >>> > http://www.vtk.org/Wiki/VTK_FAQ >>> > >>> > 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 >>> >> -- >> Matias >> >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> >> > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Thu Sep 24 15:58:30 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 19:58:30 +0000 Subject: [vtkusers] Activiz 6.2 | Compile error CS1577 Kitware.VTK Project Message-ID: Hi, I was building ActiViz 6.2 (X64) and for some reason the Kitware.VTK project doesn't build, it returns with an error CS1577 when this line is excecuted in the compilation process. All other projects built fine. C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /debug /platform:x64 /out:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.dll /doc:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.xml /target:library /reference:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.mummy.Runtime.dll @C:/ActiViz/activizdotnet_buildx64/Kitware.VTK.CscArgs.txt This is the error message: error CS1577: Assembly generation failed -- The system cannot find the path specified. The XML file gets generated just ok, I think it has to do with another thing but I haven't been able to figure out yet.. Thanks, Matias. -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Thu Sep 24 16:22:22 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 20:22:22 +0000 Subject: [vtkusers] Activiz 6.2 | Compile error CS1577 Kitware.VTK Project In-Reply-To: References: Message-ID: I think I'm near the answer... I noticed in the Kitware.VTK.CscArgs.txt the following entries near the end (I'm listing just a few since there are many) Why it is looking for \bin\*Debug *and not bin\*Release *(which is where I have all those DLLs) I think it has to do with a step I missed or did incorrectly so I'm not sure.. "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\*Debug* \Kitware.VTK.vtkChartsCore.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonColor.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonComputationalGeometry.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonCore.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonDataModel.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonExecutionModel.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonMath.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonMisc.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonSystem.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonTransforms.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkDomainsChemistry.Unmanaged.dll" "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkFiltersAMR.Unmanaged.dll" El jue., 24 de sept. de 2015 a la(s) 4:58 p. m., Matias Montroull < matimontg at gmail.com> escribi?: > Hi, > > I was building ActiViz 6.2 (X64) and for some reason the Kitware.VTK > project doesn't build, it returns with an error CS1577 when this line is > excecuted in the compilation process. All other projects built fine. > > C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /debug /platform:x64 > /out:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.dll > /doc:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.xml > /target:library > /reference:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.mummy.Runtime.dll > @C:/ActiViz/activizdotnet_buildx64/Kitware.VTK.CscArgs.txt > > This is the error message: > error CS1577: Assembly generation failed -- The system cannot find the > path specified. > > The XML file gets generated just ok, I think it has to do with another > thing but I haven't been able to figure out yet.. > > Thanks, > > Matias. > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Thu Sep 24 16:30:24 2015 From: matimontg at gmail.com (Matias Montroull) Date: Thu, 24 Sep 2015 20:30:24 +0000 Subject: [vtkusers] Activiz 6.2 | Compile error CS1577 Kitware.VTK Project In-Reply-To: References: Message-ID: I think I figured... I switched off this in CMake: AVDN_BUILD_CSHARP_DEBUG I'm building again, I hope it works this time.. El jue., 24 de sept. de 2015 a la(s) 5:22 p. m., Matias Montroull < matimontg at gmail.com> escribi?: > I think I'm near the answer... > > I noticed in the Kitware.VTK.CscArgs.txt the following entries near the > end (I'm listing just a few since there are many) > > Why it is looking for \bin\*Debug *and not bin\*Release *(which is where > I have all those DLLs) > I think it has to do with a step I missed or did incorrectly so I'm not > sure.. > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\*Debug* > \Kitware.VTK.vtkChartsCore.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonColor.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonComputationalGeometry.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonCore.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonDataModel.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonExecutionModel.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonMath.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonMisc.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonSystem.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkCommonTransforms.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkDomainsChemistry.Unmanaged.dll" > > "/linkresource:C:\ActiViz\activizdotnet_buildx64\bin\Debug\Kitware.VTK.vtkFiltersAMR.Unmanaged.dll" > > El jue., 24 de sept. de 2015 a la(s) 4:58 p. m., Matias Montroull < > matimontg at gmail.com> escribi?: > >> Hi, >> >> I was building ActiViz 6.2 (X64) and for some reason the Kitware.VTK >> project doesn't build, it returns with an error CS1577 when this line is >> excecuted in the compilation process. All other projects built fine. >> >> C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /debug /platform:x64 >> /out:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.dll >> /doc:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.VTK.xml >> /target:library >> /reference:C:\ActiViz\activizdotnet_buildx64\bin\Release\Kitware.mummy.Runtime.dll >> @C:/ActiViz/activizdotnet_buildx64/Kitware.VTK.CscArgs.txt >> >> This is the error message: >> error CS1577: Assembly generation failed -- The system cannot find the >> path specified. >> >> The XML file gets generated just ok, I think it has to do with another >> thing but I haven't been able to figure out yet.. >> >> Thanks, >> >> Matias. >> -- >> Matias >> > -- > Matias > -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave.demarle at kitware.com Thu Sep 24 16:52:15 2015 From: dave.demarle at kitware.com (David E DeMarle) Date: Thu, 24 Sep 2015 16:52:15 -0400 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> Message-ID: To edit: http://www.vtk.org/Wiki/VTK/CSharp/ActiViz.NET Fill out the form you can get to from the request account link in the top right of that page: http://www.vtk.org/Wiki/Special:RequestAccount Once registered, hit the log in link just to the left of the request account link. http://www.vtk.org/Wiki/index.php?title=Special:UserLogin&returnto=VTK%2FCSharp%2FActiViz.NET thanks! David E DeMarle Kitware, Inc. R&D Engineer 21 Corporate Drive Clifton Park, NY 12065-8662 Phone: 518-881-4909 On Thu, Sep 24, 2015 at 1:08 PM, Matias Montroull wrote: > Hi David, > > How can I get permissions to edit the WiKi instructions? I'd like to > include what I haev to do to build AtiViz 6.2 successfully. > > Thanks, > > > El lun., 21 de sept. de 2015 a la(s) 11:13 a. m., David E DeMarle < > dave.demarle at kitware.com> escribi?: > >> Please feel free to update the wiki page directly. Also, post a link to >> it in this thread when you do. That way the information will have the best >> visibility for others to find. >> >> thanks >> >> >> >> >> David E DeMarle >> Kitware, Inc. >> R&D Engineer >> 21 Corporate Drive >> Clifton Park, NY 12065-8662 >> Phone: 518-881-4909 >> >> On Wed, Sep 16, 2015 at 7:41 PM, Matias Montroull >> wrote: >> >>> Hi, >>> >>> I was able to build ActiViz successfully. Altough Mummy did not >>> completely built, I got the 2 Kitware.Mummy DLLs that are needed for >>> ActiViz to be built as well as the mummy.exe file. >>> >>> *I thank Mark for all the information he provided*, I'll try to post >>> the steps I followed, it's pretty similar to what you can find in the Wiki >>> Page but there are some tweaks that need to be done in order to get it >>> working. >>> >>> I had to add the vtkRenderingContextOpenGL-6.2.lib before configuring >>> the project with Cmake and needed to change vtkCommonEL_dll to >>> vtkCommonCoreEL_dll in some of the .in files and vtkGraphicsEL_dll to vtkFiltersProgrammableEL_dll >>> in the vtkProgrammableAttributeDataFilter_Extra.cs >>> >>> Regards, >>> >>> Matias. >>> >>> El mi?., 16 de sept. de 2015 a la(s) 3:20 p. m., Mark DeArman < >>> mark at cascadeacoustic.com> escribi?: >>> >>>> >Why not just publish a git branch with your changes on GitHub or some >>>> >other publicly hosted site? Perhaps your branch would get picked up by >>>> >the folks maintaining the ActiViz repo now. >>>> >>>> Because I don't use git. We use TFS at work, and the easiest way to >>>> publish it was to zip it all up and put it on a cloud drive. >>>> >>>> Re: gcc-xml and Mummy, I agree that abandoning gccxml is the real >>>> solution. What is the point in patching it for modern VS support if it's a >>>> dead project. Fixing mummy to support the standard VTK wrapping libraries >>>> makes the most since. >>>> >>>> >>>> Mark DeArman >>>> Cascade Acoustic Research >>>> http://www.cascadeacoustic.com >>>> (253) 200-5353 >>>> >>>> ------------------------------ >>>> *From*: "David Cole" >>>> *Sent*: Wednesday, September 16, 2015 7:12 AM >>>> *To*: mark at cascadeacoustic.com >>>> *Cc*: "vtkusers at vtk.org" >>>> >>>> *Subject*: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>>> Success >>>> >>>> > "if my idea of adding a second build step can get rid of the >>>> VS2008/MSCRT9 dependency for the final library" >>>> >>>> Yes, I think it absolutely could. It would be based on the assumption, >>>> however, that the interface generated by analyzing the source under >>>> the VS2008 environment would in the end be compatible with what you >>>> compile and link for the final library. And it would mean a two-stage >>>> build, with VS2008 still required for the first stage. >>>> >>>> I would be interested to see if anybody can replace gcc-xml with the >>>> new&improved CastXML, and still build ActiViz using a more modern VS >>>> all in one go. I haven't had time to investigate bringing things up to >>>> date for using CastXML, but if anybody else does, please do let us all >>>> know here on the VTK lists. >>>> >>>> Question for you: >>>> Why not just publish a git branch with your changes on GitHub or some >>>> other publicly hosted site? Perhaps your branch would get picked up by >>>> the folks maintaining the ActiViz repo now. >>>> >>>> >>>> Cheers, >>>> David C. >>>> >>>> >>>> >>>> >>>> On Wed, Sep 16, 2015 at 1:13 AM, Mark DeArman >>>> wrote: >>>> > Mallikarjun, >>>> > Your very welcome. I hope they'll help someone else out. I've been >>>> very >>>> > excited about using Activiz in a project for years. Since I was a kid >>>> stuck >>>> > running BSD on mac68k I've always enjoyed the challenge of porting >>>> software, >>>> > so I had a great time working on the build. >>>> > >>>> > gccxml generates the XML description of the C++ VTK library exports. >>>> Mummy >>>> > reads these and generates the csharp wrapper files. I really have not >>>> dug >>>> > into it deep enough yet to know how the Activiz export layer source >>>> fits >>>> > into the puzzle, but if I get some time, I'll see if my idea of >>>> adding a >>>> > second build step can get rid of the VS2008/MSCRT9 dependency for the >>>> final >>>> > library. >>>> > >>>> > Mark DeArman >>>> > Cascade Acoustic Research >>>> > http://www.cascadeacoustic.com >>>> > (253) 200-5353 >>>> > >>>> > ________________________________ >>>> > From: "Mallikarjun K" >>>> > Sent: Tuesday, September 15, 2015 9:52 PM >>>> > To: mark at cascadeacoustic.com >>>> > Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>>> Success >>>> > >>>> > Hi Mark, >>>> > >>>> > Thanks for sharing the source directories. One quick question..if I >>>> am not >>>> > wrong,the purpose of gcc-xml is to generate the xml descryption of c++ >>>> > program, I found link https://github.com/dgobbi/WrapVTK which has a >>>> > generator for xml. >>>> > >>>> > Thank you. >>>> > >>>> > On Tue, Sep 15, 2015 at 4:48 AM, Mark DeArman < >>>> mark at cascadeacoustic.com> >>>> > wrote: >>>> >> >>>> >> Nothing will make it build in VS2013. Because of gccxml, you have to >>>> have >>>> >> VS2008 to do the build. >>>> >> I started to work on patching gccxml, but that was kind of a >>>> nightmare >>>> >> I'll leave to someone with more time. >>>> >> I am not a C++ template guru. >>>> >> >>>> >> But, the changes I've made build the binaries targeting .NET 4.0 >>>> instead >>>> >> of .NET 2.0. >>>> >> >>>> >> Here is the link to the Source download directory. I'm uploading it >>>> right >>>> >> now, so it will be a little bit. >>>> >> >>>> >> >>>> >> >>>> https://onedrive.live.com/redir?resid=C21891647818579A!108957&authkey=!ADS9VLyqTef24FY&ithint=folder%2c >>>> >> >>>> >> Mark DeArman >>>> >> Cascade Acoustic Research >>>> >> http://www.cascadeacoustic.com >>>> >> (253) 200-5353 >>>> >> >>>> >> ________________________________ >>>> >> From: "Mallikarjun K" >>>> >> Sent: Monday, September 14, 2015 5:55 AM >>>> >> To: mark at cascadeacoustic.com >>>> >> Subject: Re: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build >>>> >> Success >>>> >> >>>> >> Hi Mark, >>>> >> >>>> >> Can you send me the patched source directories. I want to make use of >>>> >> activiz 6.2 for vtk 6.2 with vs2013? >>>> >> >>>> >> Thanks >>>> >> >>>> >> >>>> >> On Mon, Sep 14, 2015 at 10:49 AM, Mark DeArman < >>>> mark at cascadeacoustic.com> >>>> >> wrote: >>>> >>> >>>> >>> I finally finished patching and testing the build. >>>> >>> VTK-6.2 built with Intel C++ 14.0 >>>> >>> Activiz 6.2 built with .NET 4.0 >>>> >>> Mummy 1.0.3 built with .NET 4.0 >>>> >>> >>>> >>> If anyone else is having trouble getting this working, feel free to >>>> get >>>> >>> in contact with me, I can send you my patched source directories. >>>> This is >>>> >>> my first experience with CMake, and I've got to say it sure made >>>> things a >>>> >>> breeze. >>>> >>> >>>> >>> The only thing which drove me nuts was the number of times a full >>>> rebuild >>>> >>> got triggered after patching individual source files. I wish the >>>> >>> maintainers would remove the gccxml/mummy generate functions from >>>> the >>>> >>> configure step, and just make it another build step. >>>> >>> >>>> >>> I hope I can get more involved with the project but I've got a lot >>>> of >>>> >>> learning to do before I'd feel comfortable in CMake. >>>> >>> >>>> >>> Mark DeArman >>>> >>> Cascade Acoustic Research >>>> >>> http://www.cascadeacoustic.com >>>> >>> (253) 200-5353 >>>> >>> >>>> >>> _______________________________________________ >>>> >>> Powered by www.kitware.com >>>> >>> >>>> >>> Visit other Kitware open-source projects at >>>> >>> http://www.kitware.com/opensource/opensource.html >>>> >>> >>>> >>> Please keep messages on-topic and check the VTK FAQ at: >>>> >>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>> >>>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>> >>>> >>> Follow this link to subscribe/unsubscribe: >>>> >>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>> >>>> >> >>>> >> >>>> >> >>>> >> -- >>>> >> With Kind Regards: >>>> >> Mallikarjuna K, >>>> >> 07795531103/09908238861. >>>> >> >>>> >> >>>> >> _______________________________________________ >>>> >> Powered by www.kitware.com >>>> >> >>>> >> Visit other Kitware open-source projects at >>>> >> http://www.kitware.com/opensource/opensource.html >>>> >> >>>> >> Please keep messages on-topic and check the VTK FAQ at: >>>> >> http://www.vtk.org/Wiki/VTK_FAQ >>>> >> >>>> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >> >>>> >> Follow this link to subscribe/unsubscribe: >>>> >> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >> >>>> > >>>> > >>>> > >>>> > -- >>>> > With Kind Regards: >>>> > Mallikarjuna K, >>>> > 07795531103/09908238861. >>>> > >>>> > >>>> > _______________________________________________ >>>> > Powered by www.kitware.com >>>> > >>>> > Visit other Kitware open-source projects at >>>> > http://www.kitware.com/opensource/opensource.html >>>> > >>>> > Please keep messages on-topic and check the VTK FAQ at: >>>> > http://www.vtk.org/Wiki/VTK_FAQ >>>> > >>>> > 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 >>>> >>> -- >>> Matias >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> -- > Matias > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Sep 24 17:18:49 2015 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 24 Sep 2015 17:18:49 -0400 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Right you are already using what Sankhesh suggested you. So what prevents you from changing the transfer function if you are getting the callback? - Aashish On Thu, Sep 24, 2015 at 1:09 AM, Mallikarjun K wrote: > Hi Sankhesh, > Thanks for your suggestions. Actually I want to modify the existing > color transfer function and Opacity transfer function interactively on > left mouse+move on the volume. > > Thank you > > With Kind Regards, > Mallikarjun > > On Thu, Sep 24, 2015 at 3:06 AM, Sankhesh Jhaveri < > sankhesh.jhaveri at kitware.com> wrote: > >> Hello Mallikarjuna, >> >> vtkInteractorStyleImage provides events for window level changes. See: >> http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html >> >> You can add an observer to the vtkCommand::WindowLevelEvent or >> vtkCommand::EndWindowLevelEvent and change the functions as you like. On a >> side note, if all you are changing is the window width and level, you can >> just pass those values to >> vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow() and >> SetFinalColorLevel(). >> >> Hope that helps. >> >> >> Warm regards, >> Sankhesh >> >> >> >> On Wed, Sep 23, 2015 at 2:48 PM, Mallikarjun K >> wrote: >> >>> Hi Aashish, >>> >>> I have created a simple program which does volume rendering using >>> vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I >>> change the window/level by left mouse click+drag on the renderwindow, then >>> want to change the color volume characteristics by means of window/level. >>> >>> I used vtkInteractorstyleimage interactor style to change the >>> window/level on left mouse click+drag and in a call back I am getting the >>> window and level using >>> vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based on these w/l >>> I want to change/modify the color transferfunction and opacity transfer >>> function. >>> >>> please can you suggest me how can I achieve it. >>> >>> Thank you in advance. >>> >>> >>> >>> On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary < >>> aashish.chaudhary at kitware.com> wrote: >>> >>>> Can you describe more in detail what you are trying to do? We have >>>> piecewise method for transfer functions. What value you set for each step >>>> depends on what is needed. >>>> >>>> - aashsih >>>> >>>> On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K < >>>> mallikarjun49 at gmail.com> wrote: >>>> >>>>> >>>>> Hi Everyone, >>>>> >>>>> How can I set color transfer function and opacity transfer function >>>>> based on window width and window level ? >>>>> >>>>> >>>>> >>>>> Thanks in advance.. >>>>> >>>>> Regards, >>>>> Mallikarjun >>>>> >>>>> _______________________________________________ >>>>> Powered by www.kitware.com >>>>> >>>>> Visit other Kitware open-source projects at >>>>> http://www.kitware.com/opensource/opensource.html >>>>> >>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>> >>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>> >>>>> Follow this link to subscribe/unsubscribe: >>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>> >>>>> >>>> >>>> >>>> -- >>>> >>>> >>>> >>>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>>> * >>>> *| http://www.kitware.com/company/team/chaudhary.html >>>> * >>>> >>> >>> >>> >>> -- >>> *With Kind Regards:* >>> Mallikarjuna K, >>> 07795531103/09908238861. >>> >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> > > > -- > *With Kind Regards:* > Mallikarjuna K, > 07795531103/09908238861. > > -- *| Aashish Chaudhary | Technical Leader | Kitware Inc. * *| http://www.kitware.com/company/team/chaudhary.html * -------------- next part -------------- An HTML attachment was scrubbed... URL: From matimontg at gmail.com Thu Sep 24 22:18:01 2015 From: matimontg at gmail.com (Matias Montroull) Date: Fri, 25 Sep 2015 02:18:01 +0000 Subject: [vtkusers] Volume Rendering Problem in ActiViz 6.2 Message-ID: Hi, I was using ActiVIz 5.8 and this code below was working just fine: Now, I've installed the 6.2 version and the vtkCleanPolyData object is null for some reason.. Has anything changed in Volume reconstruction from a Dicom Series from version to version? Thanks, vtkDICOMImageReader readerdicom = new vtkDICOMImageReader(); readerdicom.SetDirectoryName(path_directorio_imagenes_originales); double origen_X = -pixelspacing_X * (img[0].Width) / 2; double origen_Y = -pixelspacing_Y * (img[0].Height) / 2; readerdicom.SetDataOrigin(origen_X, origen_Y, -Z_max); readerdicom.Update(); //Filtro para dar vuelta la imagen vtkImageReslice reslice = new vtkImageReslice(); reslice.SetResliceAxesDirectionCosines(-1, 0, 0, 0, 1, 0, 0, 0, -1); reslice.SetInputConnection(readerdicom.GetOutputPort()); reslice.Update(); //Filtro para extraer la piel (por ISOValue) vtkMarchingCubes skinextractor = vtkMarchingCubes.New(); skinextractor.SetInputConnection(reslice.GetOutputPort()); skinextractor.SetValue(1, umbral); //Filtro para quedarnos solamente con el contorno (visual) vtkPolyDataConnectivityFilter contornos = new vtkPolyDataConnectivityFilter(); contornos.SetInputConnection(skinextractor.GetOutputPort()); contornos.SetExtractionModeToLargestRegion(); contornos.SetColorRegions(1); //Filtro para remover los puntos que no son del contorno y guardarlos en la instancia POIs_3D vtkCleanPolyData removepoints = new vtkCleanPolyData(); removepoints.SetInputData(contornos.GetOutput()); removepoints.Update(); vtkPoints puntos_contorno = new vtkPoints(); puntos_contorno = removepoints.GetOutput().GetPoints(); -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From mark at cascadeacoustic.com Thu Sep 24 22:43:48 2015 From: mark at cascadeacoustic.com (Mark DeArman) Date: Thu, 24 Sep 2015 21:43:48 -0500 Subject: [vtkusers] Volume Rendering Problem in ActiViz 6.2 In-Reply-To: References: Message-ID: Where is the object null? Right after the call vtkCleanPolyData removepoints = new vtkCleanPolyData(); ?? Mark DeArman Cascade Acoustic Research http://www.cascadeacoustic.com (253) 200-5353 ---------------------------------------- From: "Matias Montroull" Sent: Thursday, September 24, 2015 7:18 PM To: "vtkusers at vtk.org" Subject: [vtkusers] Volume Rendering Problem in ActiViz 6.2 Hi, I was using ActiVIz 5.8 and this code below was working just fine: Now, I've installed the 6.2 version and the vtkCleanPolyData object is null for some reason.. Has anything changed in Volume reconstruction from a Dicom Series from version to version? Thanks, vtkDICOMImageReader readerdicom = new vtkDICOMImageReader(); readerdicom.SetDirectoryName(path_directorio_imagenes_originales); double origen_X = -pixelspacing_X * (img[0].Width) / 2; double origen_Y = -pixelspacing_Y * (img[0].Height) / 2; readerdicom.SetDataOrigin(origen_X, origen_Y, -Z_max); readerdicom.Update(); //Filtro para dar vuelta la imagen vtkImageReslice reslice = new vtkImageReslice(); reslice.SetResliceAxesDirectionCosines(-1, 0, 0, 0, 1, 0, 0, 0, -1); reslice.SetInputConnection(readerdicom.GetOutputPort()); reslice.Update(); //Filtro para extraer la piel (por ISOValue) vtkMarchingCubes skinextractor = vtkMarchingCubes.New(); skinextractor.SetInputConnection(reslice.GetOutputPort()); skinextractor.SetValue(1, umbral); //Filtro para quedarnos solamente con el contorno (visual) vtkPolyDataConnectivityFilter contornos = new vtkPolyDataConnectivityFilter(); contornos.SetInputConnection(skinextractor.GetOutputPort()); contornos.SetExtractionModeToLargestRegion(); contornos.SetColorRegions(1); //Filtro para remover los puntos que no son del contorno y guardarlos en la instancia POIs_3D vtkCleanPolyData removepoints = new vtkCleanPolyData(); removepoints.SetInputData(contornos.GetOutput()); removepoints.Update(); vtkPoints puntos_contorno = new vtkPoints(); puntos_contorno = removepoints.GetOutput().GetPoints(); -- Matias -------------- next part -------------- An HTML attachment was scrubbed... URL: From mallikarjun49 at gmail.com Fri Sep 25 05:30:28 2015 From: mallikarjun49 at gmail.com (Mallikarjun K) Date: Fri, 25 Sep 2015 15:00:28 +0530 Subject: [vtkusers] VolumeRendering Window Width and Window Level In-Reply-To: References: Message-ID: Hi Aashis, Below is the code snippet. WindowLevelStyle = vtkSmartPointer::New(); WindowLevelStyle->AddObserver(vtkCommand::WindowLevelEvent, callback); callback: class vtkImageInteractionCallback : public vtkCommand { public: static vtkImageInteractionCallback *New() { return new vtkImageInteractionCallback; } vtkImageInteractionCallback() { this->interactor = NULL; this->volumeProperty = NULL; this->compositeOpacity = NULL; this->color = NULL; this->volume = NULL; this->mapper = NULL; this->renderwin = NULL; } ~vtkImageInteractionCallback() { this->interactor = NULL; this->volumeProperty = NULL; this->compositeOpacity = NULL; this->color = NULL; this->volume = NULL; this->mapper = NULL; } void SetInteractor(vtkRenderWindowInteractor *_interactor) { this->interactor = _interactor; } void SetVolumeProperty(vtkSmartPointer _volumeProperty) { this->volumeProperty = _volumeProperty; } void SetCompositeOpacity(vtkSmartPointer _compositeOpacity) { this->compositeOpacity = _compositeOpacity; } void Setcolor(vtkSmartPointer _color) { this->color = _color; } void Setvolume(vtkSmartPointer _volume) { this->volume = _volume; } void Setmapper(vtkSmartPointer_mapper) { this->mapper = _mapper; } void SetRenWin(vtkRenderWindow* _renderwin) { this->renderwin = _renderwin; } virtual void Execute(vtkObject *, unsigned long vtkNotUsed(event), void *) { vtkRenderWindowInteractor *interactor = this->renderwin->GetInteractor(); vtkInteractorStyleImage *style = vtkInteractorStyleImage::SafeDownCast(interactor->GetInteractorStyle()); this->mapper->AutoAdjustSampleDistancesOff(); int *w=new int[2]; w=style->GetWindowLevelCurrentPosition(); int windowWidth = w[0]; int windowLevel = w[1]; * I want to modify the color transfer function and opacity transfer functions here in which volume transition has to happen **from CT skin to bone as mouse+move on volume window. Don't know what/how LUTs I have to set here. Kindly suggest me how can I do this.* //color->RemoveAllPoints(); // color->AddRGBpoint(args); // compositeOpacity->RemoveAllPoints(); //compositeOpacity->AddPoint(args); this->renderwin->Render(); } private: vtkRenderWindowInteractor *interactor; vtkRenderWindow* renderwin; vtkVolumeProperty* volumeProperty; vtkPiecewiseFunction* compositeOpacity; vtkColorTransferFunction* color; vtkVolume* volume; vtkFixedPointVolumeRayCastMapper*mapper; double table[257][3]; }; Thank you Regards, Mallikarjun On Fri, Sep 25, 2015 at 2:48 AM, Aashish Chaudhary < aashish.chaudhary at kitware.com> wrote: > Right you are already using what Sankhesh suggested you. So what prevents > you from changing the transfer function if you are getting the callback? > > - Aashish > > On Thu, Sep 24, 2015 at 1:09 AM, Mallikarjun K > wrote: > >> Hi Sankhesh, >> Thanks for your suggestions. Actually I want to modify the existing >> color transfer function and Opacity transfer function interactively on >> left mouse+move on the volume. >> >> Thank you >> >> With Kind Regards, >> Mallikarjun >> >> On Thu, Sep 24, 2015 at 3:06 AM, Sankhesh Jhaveri < >> sankhesh.jhaveri at kitware.com> wrote: >> >>> Hello Mallikarjuna, >>> >>> vtkInteractorStyleImage provides events for window level changes. See: >>> http://www.vtk.org/doc/nightly/html/classvtkInteractorStyleImage.html >>> >>> You can add an observer to the vtkCommand::WindowLevelEvent or >>> vtkCommand::EndWindowLevelEvent and change the functions as you like. On a >>> side note, if all you are changing is the window width and level, you can >>> just pass those values to >>> vtkFixedPointVolumeRayCastMapper::SetFinalColorWindow() and >>> SetFinalColorLevel(). >>> >>> Hope that helps. >>> >>> >>> Warm regards, >>> Sankhesh >>> >>> >>> >>> On Wed, Sep 23, 2015 at 2:48 PM, Mallikarjun K >>> wrote: >>> >>>> Hi Aashish, >>>> >>>> I have created a simple program which does volume rendering using >>>> vtkfixedpointraycastmapper. Now what I am trying to achieve is that when I >>>> change the window/level by left mouse click+drag on the renderwindow, then >>>> want to change the color volume characteristics by means of window/level. >>>> >>>> I used vtkInteractorstyleimage interactor style to change the >>>> window/level on left mouse click+drag and in a call back I am getting the >>>> window and level using >>>> vtkInteractorStyleImage::GetWindowLevelCurrentPosition. Based on these w/l >>>> I want to change/modify the color transferfunction and opacity transfer >>>> function. >>>> >>>> please can you suggest me how can I achieve it. >>>> >>>> Thank you in advance. >>>> >>>> >>>> >>>> On Wed, Sep 23, 2015 at 11:23 PM, Aashish Chaudhary < >>>> aashish.chaudhary at kitware.com> wrote: >>>> >>>>> Can you describe more in detail what you are trying to do? We have >>>>> piecewise method for transfer functions. What value you set for each step >>>>> depends on what is needed. >>>>> >>>>> - aashsih >>>>> >>>>> On Tue, Sep 22, 2015 at 12:28 AM, Mallikarjun K < >>>>> mallikarjun49 at gmail.com> wrote: >>>>> >>>>>> >>>>>> Hi Everyone, >>>>>> >>>>>> How can I set color transfer function and opacity transfer function >>>>>> based on window width and window level ? >>>>>> >>>>>> >>>>>> >>>>>> Thanks in advance.. >>>>>> >>>>>> Regards, >>>>>> Mallikarjun >>>>>> >>>>>> _______________________________________________ >>>>>> Powered by www.kitware.com >>>>>> >>>>>> Visit other Kitware open-source projects at >>>>>> http://www.kitware.com/opensource/opensource.html >>>>>> >>>>>> Please keep messages on-topic and check the VTK FAQ at: >>>>>> http://www.vtk.org/Wiki/VTK_FAQ >>>>>> >>>>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>>>> >>>>>> Follow this link to subscribe/unsubscribe: >>>>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>>>> >>>>>> >>>>> >>>>> >>>>> -- >>>>> >>>>> >>>>> >>>>> *| Aashish Chaudhary | Technical Leader | Kitware Inc. >>>>> * >>>>> *| http://www.kitware.com/company/team/chaudhary.html >>>>> * >>>>> >>>> >>>> >>>> >>>> -- >>>> *With Kind Regards:* >>>> Mallikarjuna K, >>>> 07795531103/09908238861. >>>> >>>> >>>> _______________________________________________ >>>> Powered by www.kitware.com >>>> >>>> Visit other Kitware open-source projects at >>>> http://www.kitware.com/opensource/opensource.html >>>> >>>> Please keep messages on-topic and check the VTK FAQ at: >>>> http://www.vtk.org/Wiki/VTK_FAQ >>>> >>>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>>> >>>> Follow this link to subscribe/unsubscribe: >>>> http://public.kitware.com/mailman/listinfo/vtkusers >>>> >>>> >>> >> >> >> -- >> *With Kind Regards:* >> Mallikarjuna K, >> 07795531103/09908238861. >> >> > > > -- > > > > *| Aashish Chaudhary | Technical Leader | Kitware Inc. * > *| http://www.kitware.com/company/team/chaudhary.html > * > -- *With Kind Regards:* Mallikarjuna K, 07795531103/09908238861. -------------- next part -------------- An HTML attachment was scrubbed... URL: From oscar.cainelli at smarthydrosol.com Fri Sep 25 06:13:43 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Fri, 25 Sep 2015 03:13:43 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> <1443109734776-5734113.post@n5.nabble.com> Message-ID: Hi Matias, I solved (some of) the problems. I was compiling VTK with a different compiler and this created some problems. Now everything is going better, all of the Csharp files are there, yet one last error is showing up while trying to generate kitware.VTK. I am working on a Win7 64bit so maybe this causes some troubles (just guessing, I must say I am a bit ignorant in that field...maybe a lot) Basically the Assembly build fails saying : Agnostic assembly cannot have a processor specific module ... The attachment lists a number of errors like that (sorry they are in Italian...) Any idea? Oscar 2015-09-24 18:52 GMT+02:00 Matimont [via VTK] : > That's a weird error... Did you check to see if the files are indeed there? > > El jue., 24 de sept. de 2015 a la(s) 12:49 p. m., oscarafone77 <[hidden > email]> escribi?: >> >> aaaahh >> >> I am going crazy, >> >> I finally got to build activiz (by compiling ALLBUILD), and now >> kitware.mummy.runtime.dll is created, while kitware.VTK.dll not. In total >> there are 9 dlls not created. >> >> I then tried to compile kitware.VTK alone, just to see what happens, but >> Visual studio 2008 highlights a number of missing cs files under the >> "csharp" directory. See attachment >> >> What am I doing wrong? >> >> Thank you >> Oscar >> >> errors.txt >> >> >> >> -- >> View this message in context: >> http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734113.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 > > -- > Matias > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734114.html > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, > click here. > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734127.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From DLRdave at aol.com Fri Sep 25 07:02:21 2015 From: DLRdave at aol.com (David Cole) Date: Fri, 25 Sep 2015 07:02:21 -0400 Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <56b0470882d549b4a10d06dba7bfb4bc@cascadeacoustic.com> <164f1fc7b1d943269bd2a59eb313c203@cascadeacoustic.com> <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> <1443109734776-5734113.post@n5.nabble.com> Message-ID: Your assembly should explicitly target x64, rather than "AnyCPU"... On Friday, September 25, 2015, oscarafone77 < oscar.cainelli at smarthydrosol.com> wrote: > Hi Matias, > > I solved (some of) the problems. I was compiling VTK with a different > compiler and this created some problems. > > Now everything is going better, all of the Csharp files are there, yet > one last error is showing up while trying to generate kitware.VTK. > > I am working on a Win7 64bit so maybe this causes some troubles (just > guessing, I must say I am a bit ignorant in that field...maybe a lot) > > Basically the Assembly build fails saying : Agnostic assembly cannot > have a processor specific module ... > > The attachment lists a number of errors like that (sorry they are in > Italian...) > > Any idea? > Oscar > > 2015-09-24 18:52 GMT+02:00 Matimont [via VTK] > <[hidden email] >: > > > That's a weird error... Did you check to see if the files are indeed > there? > > > > El jue., 24 de sept. de 2015 a la(s) 12:49 p. m., oscarafone77 <[hidden > > email]> escribi?: > >> > >> aaaahh > >> > >> I am going crazy, > >> > >> I finally got to build activiz (by compiling ALLBUILD), and now > >> kitware.mummy.runtime.dll is created, while kitware.VTK.dll not. In > total > >> there are 9 dlls not created. > >> > >> I then tried to compile kitware.VTK alone, just to see what happens, > but > >> Visual studio 2008 highlights a number of missing cs files under the > >> "csharp" directory. See attachment > >> > >> What am I doing wrong? > >> > >> Thank you > >> Oscar > >> > >> errors.txt > >> > >> > >> > >> -- > >> View this message in context: > >> > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734113.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 > > > > -- > > Matias > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > > > Follow this link to subscribe/unsubscribe: > > http://public.kitware.com/mailman/listinfo/vtkusers > > > > > > ________________________________ > > If you reply to this email, your message will be added to the discussion > > below: > > > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734114.html > > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, > > click here. > > NAML > > ------------------------------ > View this message in context: Re: Activiz 6.2 with VTK-6.2 and .NET 4.0 > Build Success > > Sent from the VTK - Users mailing list archive > at Nabble.com. > -------------- next part -------------- An HTML attachment was scrubbed... URL: From oscar.cainelli at smarthydrosol.com Fri Sep 25 07:19:48 2015 From: oscar.cainelli at smarthydrosol.com (oscarafone77) Date: Fri, 25 Sep 2015 04:19:48 -0700 (MST) Subject: [vtkusers] Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success In-Reply-To: References: <9bf5ba7d7ed54b629c4347a8453f0f34@cascadeacoustic.com> <433d674de55e4a928c386b2393db1b31@cascadeacoustic.com> <31eab8ac4984491e9af4a066af40babf@cascadeacoustic.com> <1443109734776-5734113.post@n5.nabble.com> Message-ID: I am targeting win32 (if you mean the target platform when compiling activiz?) Oscar 2015-09-25 13:02 GMT+02:00 VTK - Users mailing list [via VTK] : > Your assembly should explicitly target x64, rather than "AnyCPU"... > > > On Friday, September 25, 2015, oscarafone77 <[hidden email]> wrote: >> >> Hi Matias, >> >> I solved (some of) the problems. I was compiling VTK with a different >> compiler and this created some problems. >> >> Now everything is going better, all of the Csharp files are there, yet >> one last error is showing up while trying to generate kitware.VTK. >> >> I am working on a Win7 64bit so maybe this causes some troubles (just >> guessing, I must say I am a bit ignorant in that field...maybe a lot) >> >> Basically the Assembly build fails saying : Agnostic assembly cannot >> have a processor specific module ... >> >> The attachment lists a number of errors like that (sorry they are in >> Italian...) >> >> Any idea? >> Oscar >> >> 2015-09-24 18:52 GMT+02:00 Matimont [via VTK] >> <[hidden email]>: >> >> > That's a weird error... Did you check to see if the files are indeed >> > there? >> > >> > El jue., 24 de sept. de 2015 a la(s) 12:49 p. m., oscarafone77 <[hidden >> > email]> escribi?: >> >> >> >> aaaahh >> >> >> >> I am going crazy, >> >> >> >> I finally got to build activiz (by compiling ALLBUILD), and now >> >> kitware.mummy.runtime.dll is created, while kitware.VTK.dll not. In >> >> total >> >> there are 9 dlls not created. >> >> >> >> I then tried to compile kitware.VTK alone, just to see what happens, >> >> but >> >> Visual studio 2008 highlights a number of missing cs files under the >> >> "csharp" directory. See attachment >> >> >> >> What am I doing wrong? >> >> >> >> Thank you >> >> Oscar >> >> >> >> errors.txt >> >> >> >> >> >> >> >> -- >> >> View this message in context: >> >> >> >> http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734113.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 >> > >> > -- >> > Matias >> > >> > _______________________________________________ >> > Powered by www.kitware.com >> > >> > Visit other Kitware open-source projects at >> > http://www.kitware.com/opensource/opensource.html >> > >> > Please keep messages on-topic and check the VTK FAQ at: >> > http://www.vtk.org/Wiki/VTK_FAQ >> > >> > Search the list archives at: http://markmail.org/search/?q=vtkusers >> > >> > Follow this link to subscribe/unsubscribe: >> > http://public.kitware.com/mailman/listinfo/vtkusers >> > >> > >> > ________________________________ >> > If you reply to this email, your message will be added to the discussion >> > below: >> > >> > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734114.html >> > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, >> > click here. >> > NAML >> >> ________________________________ >> View this message in context: Re: Activiz 6.2 with VTK-6.2 and .NET 4.0 >> Build Success >> 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 > > > ________________________________ > If you reply to this email, your message will be added to the discussion > below: > http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734128.html > To unsubscribe from Activiz 6.2 with VTK-6.2 and .NET 4.0 Build Success, > click here. > NAML -- View this message in context: http://vtk.1045678.n5.nabble.com/Activiz-6-2-with-VTK-6-2-and-NET-4-0-Build-Success-tp5733889p5734129.html Sent from the VTK - Users mailing list archive at Nabble.com. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Fri Sep 25 08:38:10 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Fri, 25 Sep 2015 08:38:10 -0400 Subject: [vtkusers] vkt and threading In-Reply-To: References: Message-ID: Hi Dejan, Please keep your questions on the mailing list so that others may contribute to and benefit from the conversation. I don't know that much about setting up different threads for doing different tasks in VTK. Perhaps someone who has more experience can chime in. Thanks, Cory On Fri, Sep 25, 2015 at 4:03 AM, Dejan Zivkovic wrote: > Hi Cory, > > Thanks for the answer. I would like to ask another question about this. > > Lets say we have > operation A: vtk import of mesh data (expensive operation) > operation B: qt splash screen with animated vtk widget > > A and B must work in parallel. Operation A should work in main thread, > because of vtk non-thread safety, so that means that B must at least > do the vtk animation in other thread, but that is undesirable, right? > > How to solve this kind of situation? > Is it actually possible to load some data using vtk > and do some animation in vtk in the "same time"? > > Thanks, > Dejan > > On Thu, Sep 24, 2015 at 4:23 PM, Cory Quammen > wrote: > >> Dejan, >> >> If you can, it is not easy to get right. In general, you have to be very >> careful when multithreading with VTK. While some parts of VTK are thread >> safe, most are not. >> >> In projects I've encountered, VTK runs in the main thread and run >> potentially long-running processing tasks on other threads. >> >> HTH, >> Cory >> >> >> On Thu, Sep 24, 2015 at 5:06 AM, Dejan Zivkovic < >> dejan.zivkovic90 at gmail.com> wrote: >> >>> Hi, >>> >>> Is it possible to update and render >>> vtk scene from non-main thread? >>> >>> Thanks, >>> Dejan >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From jim at jslengineeringsoftware.com Fri Sep 25 09:54:38 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Fri, 25 Sep 2015 09:54:38 -0400 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> Message-ID: <5605521E.1040904@jslengineeringsoftware.com> I got the verts to work and can plot the points, but am struggling to create a surface through the points. Any recommendations on an approach? The geometry is similar to: cut a rectangle through a sphere and slide the piece out; the sphere faces that remain are similar to my geometry (just small deviations), but I am focusing on simply trying to create one surface on one face. On 9/22/2015 9:36 AM, Sebastien Jourdain wrote: > I wasn't sure at first based on your comment, but I don't > think vtkPointDataToCellData is meant to create Cells. > And if you don't create any cell, then you won't be able to see anything. > You can create a single polyverts with all the points ids. > > vtkCellArray verts = new vtkCellArray(); > verts.InsertNextCell( points.GetNumberOfPoints() ); > for(int i=0; i < points.GetNumberOfPoints(); i++) { > verts.InsertNextPoint(i); > } > > polyDataWithCells.SetVerts(verts) > > The code above, should create the expected cells. Just be aware that > it was written in a mail with uncertainty regarding the method names > and class names. > But that should be enough to get you started with an appropriate IDE. > > Seb > > On Tue, Sep 22, 2015 at 6:35 AM, Gerrick Bivins > > wrote: > > The vtp file seems invalid. It looks like the cells aren?t defined. > > Even if the polydata is just points, I think you still have to > define the > > ?Verts? cell array of the polydata. > > Gerrick > > *From:*vtkusers [mailto:vtkusers-bounces at vtk.org > ] *On Behalf Of *James Labiak > *Sent:* Monday, September 21, 2015 8:05 PM > *To:* Sebastien Jourdain > *Cc:* vtkusers > *Subject:* [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData > > Hi Sebastien, > I made the change, but it still seems not to be running the > filter. Attached is a java file and a .vtp data file to see what's > happening. Also below is the code. > Thanks, > Jim > > package com.profiles; > > import vtk.*; > > public class PlotSomePolyDataFromFileRead { > > public static void main(String[] args) { > try { > new PlotSomePolyDataFromFileRead(); > } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { > System.out.println("[main] Exception at new > PlotSomePolyDataFromFileRead()"); > ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); > } > } > > // Load VTK libraries > static { > if (!vtkNativeLibrary.LoadAllNativeLibraries()) { > { > for (vtkNativeLibrary lib : > vtkNativeLibrary.values()) { > if (!lib.IsLoaded()) > System.out > .println(lib.GetLibraryName() + " not loaded"); > } > System.out.println("Make sure the search path is > correct: "); > System.out.println(System.getProperty("java.library.path")); > } > vtkNativeLibrary.DisableOutputWindow(null); > } > } > > private PlotSomePolyDataFromFileRead() { > > // Read the polyData from the data file > vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); > xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); > xmlReader.Update(); > > // Use the filter vtkPointDataToCellData to create the > // cells from the point data that's in the vtkPolyData > from the reader > // *The vtkPolyData from the reader intentionally only > includes vtkPoints > // and their scalars (that's the given data from the > application output) > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); > > // In order to check if the vtkPointDataToCellData filter > worked: > // Create new polyData, retrieve polyData (with cells now) > from > // polyDataCreateCells filter, check values during debug > operation > vtkPolyData polyDataWithCells = new vtkPolyData(); > polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); > // At this point, polyDataWithCells has (when I run it) > // point data but not cell data, nor scalar data > // and it should have all 3 > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > vtkRenderer renderer = new vtkRenderer(); > renderer.AddActor(polyActor); > renderer.SetBackground(0.0, 0.0, 0.0); > > vtkRenderWindow renderWindow = new vtkRenderWindow(); > renderWindow.AddRenderer(renderer); > renderWindow.SetSize(800, 800); > > vtkRenderWindowInteractor renderWindowInteractor = new > vtkRenderWindowInteractor(); > renderWindowInteractor.SetRenderWindow(renderWindow); > > renderWindow.Render(); > renderWindowInteractor.Start(); > } > } > > On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: > > Try that > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); // <==== For the execution of > the filter > > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); // No need to create > a polydata just get a ref from the filter > > On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > > wrote: > > Hello all, > I created a pipeline that seems to make sense to me, but > always my polyDataComplete is empty. Any ideas why this code > doesn't work? The only vtkPointToCellData example on the web > that I can find uses blow.vtk, which doesn't exist on my 6.0.0 > installation anywhere. The polyData variable gets correctly > populated with the points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData > from polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: > http://markmail.org/search/?q=vtkusers > > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > ------------------------------------------------------------------------ > This e-mail, including any attached files, may contain > confidential and privileged information for the sole use of the > intended recipient. Any review, use, distribution, or disclosure > by others is strictly prohibited. If you are not the intended > recipient (or authorized to receive information for the intended > recipient), please contact the sender by reply e-mail and delete > all copies of this message. > > -- James Labiak JSL Engineering and Software Mobile: 231-638-3725 email: jim at jslengineeringsoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: image/jpeg Size: 3526 bytes Desc: not available URL: From Gerrick.Bivins at halliburton.com Fri Sep 25 10:11:43 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Fri, 25 Sep 2015 14:11:43 +0000 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: <5605521E.1040904@jslengineeringsoftware.com> References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> <5605521E.1040904@jslengineeringsoftware.com> Message-ID: Hi James Glad you got that part working. It sounds like you want to do something like this: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/SurfaceFromUnorganizedPoints Gerrick From: James Labiak [mailto:jim at jslengineeringsoftware.com] Sent: Friday, September 25, 2015 8:55 AM To: Sebastien Jourdain; Gerrick Bivins Cc: vtkusers Subject: Re: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData I got the verts to work and can plot the points, but am struggling to create a surface through the points. Any recommendations on an approach? The geometry is similar to: cut a rectangle through a sphere and slide the piece out; the sphere faces that remain are similar to my geometry (just small deviations), but I am focusing on simply trying to create one surface on one face. On 9/22/2015 9:36 AM, Sebastien Jourdain wrote: I wasn't sure at first based on your comment, but I don't think vtkPointDataToCellData is meant to create Cells. And if you don't create any cell, then you won't be able to see anything. You can create a single polyverts with all the points ids. vtkCellArray verts = new vtkCellArray(); verts.InsertNextCell( points.GetNumberOfPoints() ); for(int i=0; i < points.GetNumberOfPoints(); i++) { verts.InsertNextPoint(i); } polyDataWithCells.SetVerts(verts) The code above, should create the expected cells. Just be aware that it was written in a mail with uncertainty regarding the method names and class names. But that should be enough to get you started with an appropriate IDE. Seb On Tue, Sep 22, 2015 at 6:35 AM, Gerrick Bivins > wrote: The vtp file seems invalid. It looks like the cells aren?t defined. Even if the polydata is just points, I think you still have to define the ?Verts? cell array of the polydata. [cid:image001.jpg at 01D0F772.31EC5A50] Gerrick From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of James Labiak Sent: Monday, September 21, 2015 8:05 PM To: Sebastien Jourdain Cc: vtkusers Subject: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData Hi Sebastien, I made the change, but it still seems not to be running the filter. Attached is a java file and a .vtp data file to see what's happening. Also below is the code. Thanks, Jim package com.profiles; import vtk.*; public class PlotSomePolyDataFromFileRead { public static void main(String[] args) { try { new PlotSomePolyDataFromFileRead(); } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { System.out.println("[main] Exception at new PlotSomePolyDataFromFileRead()"); ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); } } // Load VTK libraries static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) System.out .println(lib.GetLibraryName() + " not loaded"); } System.out.println("Make sure the search path is correct: "); System.out.println(System.getProperty("java.library.path")); } vtkNativeLibrary.DisableOutputWindow(null); } } private PlotSomePolyDataFromFileRead() { // Read the polyData from the data file vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); xmlReader.Update(); // Use the filter vtkPointDataToCellData to create the // cells from the point data that's in the vtkPolyData from the reader // *The vtkPolyData from the reader intentionally only includes vtkPoints // and their scalars (that's the given data from the application output) vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // In order to check if the vtkPointDataToCellData filter worked: // Create new polyData, retrieve polyData (with cells now) from // polyDataCreateCells filter, check values during debug operation vtkPolyData polyDataWithCells = new vtkPolyData(); polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); // At this point, polyDataWithCells has (when I run it) // point data but not cell data, nor scalar data // and it should have all 3 vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); vtkRenderer renderer = new vtkRenderer(); renderer.AddActor(polyActor); renderer.SetBackground(0.0, 0.0, 0.0); vtkRenderWindow renderWindow = new vtkRenderWindow(); renderWindow.AddRenderer(renderer); renderWindow.SetSize(800, 800); vtkRenderWindowInteractor renderWindowInteractor = new vtkRenderWindowInteractor(); renderWindowInteractor.SetRenderWindow(renderWindow); renderWindow.Render(); renderWindowInteractor.Start(); } } On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: Try that vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // <==== For the execution of the filter // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // No need to create a polydata just get a ref from the filter On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > wrote: Hello all, I created a pipeline that seems to make sense to me, but always my polyDataComplete is empty. Any ideas why this code doesn't work? The only vtkPointToCellData example on the web that I can find uses blow.vtk, which doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets correctly populated with the points and their scalars below. // Create a new, empty polyData polyData = new vtkPolyData(); // populate the polyData points polyData.SetPoints(points); // populate the polyData scalars polyData.GetPointData().SetScalars(colorsScalars); vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = new vtkPolyData(); polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataComplete); polyMapper.ScalarVisibilityOn(); polyMapper.SetScalarRange(scalarMin, scalarMax); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); // ...Usual render stuff... Thanks, Jim _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ________________________________ This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -- James Labiak JSL Engineering and Software Mobile: 231-638-3725 email: jim at jslengineeringsoftware.com -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.jpg Type: image/jpeg Size: 37966 bytes Desc: image001.jpg URL: From jim at jslengineeringsoftware.com Fri Sep 25 11:38:42 2015 From: jim at jslengineeringsoftware.com (James Labiak) Date: Fri, 25 Sep 2015 11:38:42 -0400 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> <5605521E.1040904@jslengineeringsoftware.com> Message-ID: <56056A82.90608@jslengineeringsoftware.com> Hi Gerrick and Seb, Thanks for all of your help so far, I appreciate it. I did try the vtkSurfaceReconstructionFilter. The resultant surface was kind of weird, but it had the basic shape. I will definitely experiment more with that. I will report back on that and a couple of other approaches. Regards, Jim On 9/25/2015 10:11 AM, Gerrick Bivins wrote: > > Hi James > > Glad you got that part working. > > It sounds like you want to do something like this: > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/SurfaceFromUnorganizedPoints > > Gerrick > > *From:*James Labiak [mailto:jim at jslengineeringsoftware.com] > *Sent:* Friday, September 25, 2015 8:55 AM > *To:* Sebastien Jourdain; Gerrick Bivins > *Cc:* vtkusers > *Subject:* Re: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData > > I got the verts to work and can plot the points, but am struggling to > create a surface through the points. Any recommendations on an > approach? The geometry is similar to: cut a rectangle through a sphere > and slide the piece out; the sphere faces that remain are similar to > my geometry (just small deviations), but I am focusing on simply > trying to create one surface on one face. > > On 9/22/2015 9:36 AM, Sebastien Jourdain wrote: > > I wasn't sure at first based on your comment, but I don't > think vtkPointDataToCellData is meant to create Cells. > > And if you don't create any cell, then you won't be able to see > anything. > > You can create a single polyverts with all the points ids. > > vtkCellArray verts = new vtkCellArray(); > > verts.InsertNextCell( points.GetNumberOfPoints() ); > > for(int i=0; i < points.GetNumberOfPoints(); i++) { > > verts.InsertNextPoint(i); > > } > > polyDataWithCells.SetVerts(verts) > > The code above, should create the expected cells. Just be aware > that it was written in a mail with uncertainty regarding the > method names and class names. > > But that should be enough to get you started with an appropriate IDE. > > Seb > > On Tue, Sep 22, 2015 at 6:35 AM, Gerrick Bivins > > wrote: > > The vtp file seems invalid. It looks like the cells aren?t defined. > > Even if the polydata is just points, I think you still have to > define the > > ?Verts? cell array of the polydata. > > > Gerrick > > *From:*vtkusers [mailto:vtkusers-bounces at vtk.org > ] *On Behalf Of *James Labiak > *Sent:* Monday, September 21, 2015 8:05 PM > *To:* Sebastien Jourdain > *Cc:* vtkusers > *Subject:* [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData > > Hi Sebastien, > I made the change, but it still seems not to be running the > filter. Attached is a java file and a .vtp data file to see what's > happening. Also below is the code. > Thanks, > Jim > > package com.profiles; > > import vtk.*; > > public class PlotSomePolyDataFromFileRead { > > public static void main(String[] args) { > try { > new PlotSomePolyDataFromFileRead(); > } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { > System.out.println("[main] Exception at new > PlotSomePolyDataFromFileRead()"); > ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); > } > } > > // Load VTK libraries > static { > if (!vtkNativeLibrary.LoadAllNativeLibraries()) { > { > for (vtkNativeLibrary lib : > vtkNativeLibrary.values()) { > if (!lib.IsLoaded()) > System.out > .println(lib.GetLibraryName() + " not loaded"); > } > System.out.println("Make sure the search path is > correct: "); > System.out.println(System.getProperty("java.library.path")); > } > vtkNativeLibrary.DisableOutputWindow(null); > } > } > > private PlotSomePolyDataFromFileRead() { > > // Read the polyData from the data file > vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); > xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); > xmlReader.Update(); > > // Use the filter vtkPointDataToCellData to create the > // cells from the point data that's in the vtkPolyData > from the reader > // *The vtkPolyData from the reader intentionally only > includes vtkPoints > // and their scalars (that's the given data from the > application output) > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); > > // In order to check if the vtkPointDataToCellData filter > worked: > // Create new polyData, retrieve polyData (with cells now) > from > // polyDataCreateCells filter, check values during debug > operation > vtkPolyData polyDataWithCells = new vtkPolyData(); > polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); > // At this point, polyDataWithCells has (when I run it) > // point data but not cell data, nor scalar data > // and it should have all 3 > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > vtkRenderer renderer = new vtkRenderer(); > renderer.AddActor(polyActor); > renderer.SetBackground(0.0, 0.0, 0.0); > > vtkRenderWindow renderWindow = new vtkRenderWindow(); > renderWindow.AddRenderer(renderer); > renderWindow.SetSize(800, 800); > > vtkRenderWindowInteractor renderWindowInteractor = new > vtkRenderWindowInteractor(); > renderWindowInteractor.SetRenderWindow(renderWindow); > > renderWindow.Render(); > renderWindowInteractor.Start(); > } > } > > On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: > > Try that > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > polyDataCreateCells.Update(); // <==== For the execution of > the filter > > > // Create new polyData, retrieve completed polyData from > polyDataCreateCells > vtkPolyData polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); // No need to create > a polydata just get a ref from the filter > > On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > > wrote: > > Hello all, > I created a pipeline that seems to make sense to me, but > always my polyDataComplete is empty. Any ideas why this code > doesn't work? The only vtkPointToCellData example on the web > that I can find uses blow.vtk, which doesn't exist on my 6.0.0 > installation anywhere. The polyData variable gets correctly > populated with the points and their scalars below. > > // Create a new, empty polyData > polyData = new vtkPolyData(); > > // populate the polyData points > polyData.SetPoints(points); > > // populate the polyData scalars > polyData.GetPointData().SetScalars(colorsScalars); > > vtkPointDataToCellData polyDataCreateCells = new > vtkPointDataToCellData(); > polyDataCreateCells.SetInputData(polyData); > polyDataCreateCells.PassPointDataOn(); > > // Create new polyData, retrieve completed polyData > from polyDataCreateCells > vtkPolyData polyDataComplete = new vtkPolyData(); > polyDataComplete = > polyDataCreateCells.GetPolyDataOutput(); > > vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); > polyMapper.SetInputData(polyDataComplete); > polyMapper.ScalarVisibilityOn(); > polyMapper.SetScalarRange(scalarMin, scalarMax); > polyMapper.Update(); > > vtkActor polyActor = new vtkActor(); > polyActor.SetMapper(polyMapper); > polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); > > // ...Usual render stuff... > > Thanks, > Jim > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: > http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > ------------------------------------------------------------------------ > > This e-mail, including any attached files, may contain > confidential and privileged information for the sole use of the > intended recipient. Any review, use, distribution, or disclosure > by others is strictly prohibited. If you are not the intended > recipient (or authorized to receive information for the intended > recipient), please contact the sender by reply e-mail and delete > all copies of this message. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Gerrick.Bivins at halliburton.com Fri Sep 25 13:21:07 2015 From: Gerrick.Bivins at halliburton.com (Gerrick Bivins) Date: Fri, 25 Sep 2015 17:21:07 +0000 Subject: [vtkusers] [EXTERNAL] Re: Java vtkPointToCellData In-Reply-To: <56056A82.90608@jslengineeringsoftware.com> References: <56001248.9030406@jslengineeringsoftware.com> <5600A94C.7040209@jslengineeringsoftware.com> <5605521E.1040904@jslengineeringsoftware.com> <56056A82.90608@jslengineeringsoftware.com> Message-ID: This one may also be of interest to you: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/Delaunay2D Gerrick From: James Labiak [mailto:jim at jslengineeringsoftware.com] Sent: Friday, September 25, 2015 10:39 AM To: Gerrick Bivins; Sebastien Jourdain Cc: vtkusers Subject: Re: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData Hi Gerrick and Seb, Thanks for all of your help so far, I appreciate it. I did try the vtkSurfaceReconstructionFilter. The resultant surface was kind of weird, but it had the basic shape. I will definitely experiment more with that. I will report back on that and a couple of other approaches. Regards, Jim On 9/25/2015 10:11 AM, Gerrick Bivins wrote: Hi James Glad you got that part working. It sounds like you want to do something like this: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/SurfaceFromUnorganizedPoints Gerrick From: James Labiak [mailto:jim at jslengineeringsoftware.com] Sent: Friday, September 25, 2015 8:55 AM To: Sebastien Jourdain; Gerrick Bivins Cc: vtkusers Subject: Re: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData I got the verts to work and can plot the points, but am struggling to create a surface through the points. Any recommendations on an approach? The geometry is similar to: cut a rectangle through a sphere and slide the piece out; the sphere faces that remain are similar to my geometry (just small deviations), but I am focusing on simply trying to create one surface on one face. On 9/22/2015 9:36 AM, Sebastien Jourdain wrote: I wasn't sure at first based on your comment, but I don't think vtkPointDataToCellData is meant to create Cells. And if you don't create any cell, then you won't be able to see anything. You can create a single polyverts with all the points ids. vtkCellArray verts = new vtkCellArray(); verts.InsertNextCell( points.GetNumberOfPoints() ); for(int i=0; i < points.GetNumberOfPoints(); i++) { verts.InsertNextPoint(i); } polyDataWithCells.SetVerts(verts) The code above, should create the expected cells. Just be aware that it was written in a mail with uncertainty regarding the method names and class names. But that should be enough to get you started with an appropriate IDE. Seb On Tue, Sep 22, 2015 at 6:35 AM, Gerrick Bivins > wrote: The vtp file seems invalid. It looks like the cells aren?t defined. Even if the polydata is just points, I think you still have to define the ?Verts? cell array of the polydata. Gerrick From: vtkusers [mailto:vtkusers-bounces at vtk.org] On Behalf Of James Labiak Sent: Monday, September 21, 2015 8:05 PM To: Sebastien Jourdain Cc: vtkusers Subject: [EXTERNAL] Re: [vtkusers] Java vtkPointToCellData Hi Sebastien, I made the change, but it still seems not to be running the filter. Attached is a java file and a .vtp data file to see what's happening. Also below is the code. Thanks, Jim package com.profiles; import vtk.*; public class PlotSomePolyDataFromFileRead { public static void main(String[] args) { try { new PlotSomePolyDataFromFileRead(); } catch (Exception ex_new_PlotSomePolyDataFromFileRead) { System.out.println("[main] Exception at new PlotSomePolyDataFromFileRead()"); ex_new_PlotSomePolyDataFromFileRead.printStackTrace(); } } // Load VTK libraries static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) System.out .println(lib.GetLibraryName() + " not loaded"); } System.out.println("Make sure the search path is correct: "); System.out.println(System.getProperty("java.library.path")); } vtkNativeLibrary.DisableOutputWindow(null); } } private PlotSomePolyDataFromFileRead() { // Read the polyData from the data file vtkXMLPolyDataReader xmlReader = new vtkXMLPolyDataReader(); xmlReader.SetFileName("C:\\vtk123\\test_data.vtp"); xmlReader.Update(); // Use the filter vtkPointDataToCellData to create the // cells from the point data that's in the vtkPolyData from the reader // *The vtkPolyData from the reader intentionally only includes vtkPoints // and their scalars (that's the given data from the application output) vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputConnection(xmlReader.GetOutputPort()); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // In order to check if the vtkPointDataToCellData filter worked: // Create new polyData, retrieve polyData (with cells now) from // polyDataCreateCells filter, check values during debug operation vtkPolyData polyDataWithCells = new vtkPolyData(); polyDataWithCells = polyDataCreateCells.GetPolyDataOutput(); // At this point, polyDataWithCells has (when I run it) // point data but not cell data, nor scalar data // and it should have all 3 vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataCreateCells.GetPolyDataOutput()); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); vtkRenderer renderer = new vtkRenderer(); renderer.AddActor(polyActor); renderer.SetBackground(0.0, 0.0, 0.0); vtkRenderWindow renderWindow = new vtkRenderWindow(); renderWindow.AddRenderer(renderer); renderWindow.SetSize(800, 800); vtkRenderWindowInteractor renderWindowInteractor = new vtkRenderWindowInteractor(); renderWindowInteractor.SetRenderWindow(renderWindow); renderWindow.Render(); renderWindowInteractor.Start(); } } On 9/21/2015 10:38 AM, Sebastien Jourdain wrote: Try that vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); polyDataCreateCells.Update(); // <==== For the execution of the filter // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); // No need to create a polydata just get a ref from the filter On Mon, Sep 21, 2015 at 8:20 AM, James Labiak > wrote: Hello all, I created a pipeline that seems to make sense to me, but always my polyDataComplete is empty. Any ideas why this code doesn't work? The only vtkPointToCellData example on the web that I can find uses blow.vtk, which doesn't exist on my 6.0.0 installation anywhere. The polyData variable gets correctly populated with the points and their scalars below. // Create a new, empty polyData polyData = new vtkPolyData(); // populate the polyData points polyData.SetPoints(points); // populate the polyData scalars polyData.GetPointData().SetScalars(colorsScalars); vtkPointDataToCellData polyDataCreateCells = new vtkPointDataToCellData(); polyDataCreateCells.SetInputData(polyData); polyDataCreateCells.PassPointDataOn(); // Create new polyData, retrieve completed polyData from polyDataCreateCells vtkPolyData polyDataComplete = new vtkPolyData(); polyDataComplete = polyDataCreateCells.GetPolyDataOutput(); vtkPolyDataMapper polyMapper = new vtkPolyDataMapper(); polyMapper.SetInputData(polyDataComplete); polyMapper.ScalarVisibilityOn(); polyMapper.SetScalarRange(scalarMin, scalarMax); polyMapper.Update(); vtkActor polyActor = new vtkActor(); polyActor.SetMapper(polyMapper); polyActor.GetProperty().SetColor(1.0, 1.0, 1.0); // ...Usual render stuff... Thanks, Jim _______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ Search the list archives at: http://markmail.org/search/?q=vtkusers Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/vtkusers ________________________________ This e-mail, including any attached files, may contain confidential and privileged information for the sole use of the intended recipient. Any review, use, distribution, or disclosure by others is strictly prohibited. If you are not the intended recipient (or authorized to receive information for the intended recipient), please contact the sender by reply e-mail and delete all copies of this message. -------------- next part -------------- An HTML attachment was scrubbed... URL: From shakthimaan at gmail.com Fri Sep 25 14:31:38 2015 From: shakthimaan at gmail.com (Shakthi Kannan) Date: Sat, 26 Sep 2015 00:01:38 +0530 Subject: [vtkusers] Using Python VTK to add more points, lines on callback In-Reply-To: References: Message-ID: Hi, I am now able to get data from a separate process on to a queue, and send it to vtkTimerCallback(), but, the image is not rendering. I have used self.actor.GetProperty().SetColor() and iren.GetRenderWindow().Render() in the callback. How else can I force it to render the image? The latest code is available at: https://gist.github.com/shakthimaan/d8e4f51f3d074926e244 Thanks! SK On Thu, Sep 24, 2015 at 10:34 PM, Shakthi Kannan wrote: > Hi, > > I would like to render lines using a Python callback method and VTK. I > am using the following code snippet as a template: > > http://www.vtk.org/Wiki/VTK/Examples/Python/GeometricObjects/Display/LongLine > > and the follow examples for a callback function: > > http://cmake.org/Wiki/VTK/Examples/Python/Animation > > http://public.kitware.com/pipermail/vtkusers/2010-January/056316.html > > Changing the colour of the line using the callback method after 5s > works fine. But, I am not sure how to add more points and lines to the > existing image. My hacked up code is here: > > https://gist.github.com/shakthimaan/588af4b6d0facdf2cc89 > > How do I incrementally add lines to an existing drawing, and render them? > > Appreciate your help in this regard, > > Thanks! > > SK > > -- > Shakthi Kannan > http://www.shakthimaan.com -- Shakthi Kannan http://www.shakthimaan.com From yxliuwm at gmail.com Fri Sep 25 18:02:45 2015 From: yxliuwm at gmail.com (Yixun Liu) Date: Fri, 25 Sep 2015 15:02:45 -0700 Subject: [vtkusers] render an 2Dimage with depth information Message-ID: Hi, I have a picture obtained by a stereo camera. The depth of each pixel is known. I want to render this picture with some virtual objects using VTK One way is to treat this 2D picture as a vtkImageActor and then render this actor first, then manually set the depth buffer using the known depth, finally render other virtual object. I do not know if VTK has some decent way to do this. Thanks. Yixun -------------- next part -------------- An HTML attachment was scrubbed... URL: From marco.dev.open at gmail.com Sat Sep 26 09:06:39 2015 From: marco.dev.open at gmail.com (Marco Dev) Date: Sat, 26 Sep 2015 16:36:39 +0330 Subject: [vtkusers] Fusion in general In-Reply-To: References: Message-ID: Hi, I found the notice Thanks should drag two series into panel and Only series from the same study can be fused Thanks On Sat, Sep 26, 2015 at 4:19 PM, Marco Dev wrote: > HI, > I have two DICOM images (PET/CT) and these images are related to the same > patient for testing > these images in FUSION action I used radiant application But it does not > enable FUSION feature > In general for fusion two images what do we need for understanding which > DICOM parameters we should regarding these dicom images attached with this > mail > Thanks > -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15891495523 at 126.com Sat Sep 26 10:25:32 2015 From: 15891495523 at 126.com (zhq) Date: Sat, 26 Sep 2015 07:25:32 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? Message-ID: <1443277532130-5734142.post@n5.nabble.com> Dear all: I want to triangulate some points with a boundary. And I find a example: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Filtering/ConstrainedDelaunay2D In fact, when I want to test the method in circle (input the data at 30~42 in the code), I actually get: And I want to remove those line inside the inner circle. And when I set the inner circle points as the boundary ( line 55~58 in the code ), I can't get what I want. Could somebody give me some tips ? Thank you very much in advance ! My code is : #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define PI 3.1415926 int main(int, char *[]) { // Generate a 10 x 10 grid of points vtkSmartPointer points = vtkSmartPointer::New(); /*for(unsigned int x = 0; x < 10; x++) { for(unsigned int y = 0; y < 10; y++) { points->InsertNextPoint(x + vtkMath::Random(-.25, .25), y + vtkMath::Random(-.25,.25), 0); } }*/ for (int theta = 0;theta<360;theta+=10) { double x = 2*cos(theta*PI/180); double y = 2*sin(theta*PI/180); points->InsertNextPoint(x,y,0); } for (int theta = 0;theta<360;theta+=10) { double x = cos(theta*PI/180); double y = sin(theta*PI/180); points->InsertNextPoint(x,y,0); } vtkSmartPointer aPolyData = vtkSmartPointer::New(); aPolyData->SetPoints(points); // Create a cell array to store the polygon in vtkSmartPointer aCellArray = vtkSmartPointer::New(); // Define a polygonal hole with a clockwise polygon vtkSmartPointer aPolygon = vtkSmartPointer::New(); /*for (int i=36;i<72;i++) { aPolygon->GetPointIds()->InsertNextId(i); }*/ /*aPolygon->GetPointIds()->InsertNextId(22); aPolygon->GetPointIds()->InsertNextId(23); aPolygon->GetPointIds()->InsertNextId(24); aPolygon->GetPointIds()->InsertNextId(25); aPolygon->GetPointIds()->InsertNextId(35); aPolygon->GetPointIds()->InsertNextId(45); aPolygon->GetPointIds()->InsertNextId(44); aPolygon->GetPointIds()->InsertNextId(43); aPolygon->GetPointIds()->InsertNextId(42); aPolygon->GetPointIds()->InsertNextId(32);*/ aCellArray->InsertNextCell(aPolygon); // Create a polydata to store the boundary. The points must be the // same as the points we will triangulate. vtkSmartPointer boundary = vtkSmartPointer::New(); boundary->SetPoints(aPolyData->GetPoints()); boundary->SetPolys(aCellArray); // Triangulate the grid points vtkSmartPointer delaunay = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 delaunay->SetInput(aPolyData); delaunay->SetSource(boundary); #else delaunay->SetInputData(aPolyData); delaunay->SetSourceData(boundary); #endif delaunay->Update(); // Visualize vtkSmartPointer meshMapper = vtkSmartPointer::New(); meshMapper->SetInputConnection(delaunay->GetOutputPort()); vtkSmartPointer meshActor = vtkSmartPointer::New(); meshActor->SetMapper(meshMapper); //meshActor->GetProperty()->SetEdgeColor(0,0,1); // Why aren't the edges aren't visible unless we set the representation to wireframe? //meshActor->GetProperty()->SetInterpolationToFlat(); meshActor->GetProperty()->SetRepresentationToWireframe(); vtkSmartPointer boundaryMapper = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 boundaryMapper->SetInputConnection(boundary->GetProducerPort()); #else boundaryMapper->SetInputData(boundary); #endif vtkSmartPointer boundaryActor = vtkSmartPointer::New(); boundaryActor->SetMapper(boundaryMapper); boundaryActor->GetProperty()->SetColor(1,0,0); // 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 actor to the scene renderer->AddActor(meshActor); renderer->AddActor(boundaryActor); renderer->SetBackground(.3, .6, .3); // Background color green // Render and interact renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142.html Sent from the VTK - Users mailing list archive at Nabble.com. From 15891495523 at 126.com Sat Sep 26 11:11:21 2015 From: 15891495523 at 126.com (zhq) Date: Sat, 26 Sep 2015 08:11:21 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: <1443277532130-5734142.post@n5.nabble.com> References: <1443277532130-5734142.post@n5.nabble.com> Message-ID: <1443280281055-5734143.post@n5.nabble.com> In fact, I want to get a result like: And the vtkDelaunay2D maybe can't give me what I want. Because it "triangulate all of the points except the region inside the boundary of the polygon". So it may cause the illegal line which inside the inner circle. If somebody know which class is ok for my need ? Thank you very much ! ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142p5734143.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Sep 26 11:22:30 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 26 Sep 2015 09:22:30 -0600 Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: <1443280281055-5734143.post@n5.nabble.com> References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> Message-ID: Hi Zhang, You can try vtkContourTriangulator. It requires that the inner circle is wound in the opposite direction to the outer circle. - David On Sat, Sep 26, 2015 at 9:11 AM, zhq <15891495523 at 126.com> wrote: > > In fact, I want to get a result like: > > > And the vtkDelaunay2D maybe can't give me what I want. Because it > "triangulate all of the points except the region inside the boundary of the > polygon". So it may cause the illegal line which inside the inner circle. > > If somebody know which class is ok for my need ? > > Thank you very much ! > > ZhangQiang > -------------- next part -------------- An HTML attachment was scrubbed... URL: From niels_dekker_address_until_2018 at xs4all.nl Sat Sep 26 16:19:18 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Sat, 26 Sep 2015 22:19:18 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <5602D60C.40306@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> <5602B421.3020505@xs4all.nl> <5602D60C.40306@xs4all.nl> Message-ID: <5606FDC6.70100@xs4all.nl> Hi again, Cory, Please check my merge request, and please merge, if you think it's fine: https://gitlab.kitware.com/vtk/vtk/merge_requests/704 Kind regards, Niels On 23 Sep 2015 6:40 PM, I wrote: > Hi Cory, > > Thanks for the information. Actually, explaining why exactly those > warnings appear might be the hardest part! It looks like the following > is happening, for a subproject that was meant to have suppressed > warnings: > 1. For such a subproject, VTK replaces any compiler option > regarding warning-levels from CMAKE_C_FLAGS and CMAKE_CXX_FLAGS by > '/w' and '-w'. > 2. CMake then created a Visual Studio project file ("*.vcxproj") > that does not have any XML tag. Instead, CMake adds > '/w' and '-w' to the XML tag. > 3. Visual Studio finds out that the tag is missing, > and so it adds warning-level 1 ('/W1') as its default warning-level. > However, it also adds those '/w' and '-w' from to > the command-line. > 4. The C++ compiler (cl.exe) gets '/W1, as well as '/w' and '-w', > so it complains about overriding '/W1' with '/w'. > > Fortunately this problem does not occur when VTK uses '/W0', instead > of '/w' or '-w'! > > Kind regards, Niels > > Cory Quammen wrote on September 23, 2015, 16:22: >> Niels, >> >> I saw that you contributed to ITK via gerrit. Contributing to VTK is >> similar, but it uses gitlab instead of gerrit. I wouldn't bother with >> a bug report for this issue - just explaining why the warnings appear >> in the commit message is sufficient. >> >> Thanks for offering to contribute! I will watch for your patch and >> shepherd it through the review process. >> >> Best, >> Cory >> >> On Wed, Sep 23, 2015 at 10:16 AM, Niels Dekker wrote: >> >> Hi Cory, >> >> Thank you! When I have time (hopefully before next Sunday), I'll >> try to contribute the patch via your gitlab contribution process. >> Is the process similar to ITK? And do you think I should create a >> "ticket" or "bug report" for this little issue? >> >> If I can't get it to work (or if it takes me too much time), I >> hope someone else can do the patch for me, next week or so... >> >> Kind regards, Niels >> >> PS Also thanks to Audrius for the support :-) >> >> Cory Quammen wrote on September 23, 2015, 15:54: >> >> Hi Niels, >> >> This does sound like a good patch. Would you mind contributing >> it via >> our gitlab contribution process? Please see [1]. >> >> [1] >> https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md >> >> Thank you, >> Cory >> >> On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: >> >> Does anyone here think it would be nice to fix these MSVC >> warnings? >> >> Basically it's just a matter of replacing '/w' and '-w' >> by '/W0', >> in various CMake files of the VTK source tree, according >> to the >> patch/diff-file I attached last Sunday. >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. From 15891495523 at 126.com Sat Sep 26 20:49:49 2015 From: 15891495523 at 126.com (zhq) Date: Sat, 26 Sep 2015 17:49:49 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> Message-ID: <1443314989143-5734146.post@n5.nabble.com> Hi David: I find that the vtkContourTriangulator is worked on 3D data. How to triangulate a set of 2D points? Could you please give me an example if there is one ? ZhangQiang David Gobbi wrote > Hi Zhang, > > You can try vtkContourTriangulator. It requires that the inner circle is > wound in the opposite direction to the outer circle. > > - David > > On Sat, Sep 26, 2015 at 9:11 AM, zhq < > 15891495523@ >> wrote: > >> >> In fact, I want to get a result like: >> <http://vtk.1045678.n5.nabble.com/file/n5734143/2.png> >> >> And the vtkDelaunay2D maybe can't give me what I want. Because it >> "triangulate all of the points except the region inside the boundary of >> the >> polygon". So it may cause the illegal line which inside the inner circle. >> >> If somebody know which class is ok for my need ? >> >> Thank you very much ! >> >> ZhangQiang >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142p5734146.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sat Sep 26 21:05:43 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sat, 26 Sep 2015 19:05:43 -0600 Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: <1443314989143-5734146.post@n5.nabble.com> References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> Message-ID: In the VTK source code: Filters/General/Testing/Cxx/TestContourTriangulator.cxx Filters/General/Testing/Cxx/TestContourTriangulatorCutter.cxx Filters/General/Testing/Cxx/TestContourTriangulatorMarching.cxx - David On Sat, Sep 26, 2015 at 6:49 PM, zhq <15891495523 at 126.com> wrote: > Hi David: > > I find that the vtkContourTriangulator is worked on 3D data. How to > triangulate a set of 2D points? Could you please give me an example if > there > is one ? > > ZhangQiang > > David Gobbi wrote > > Hi Zhang, > > > > You can try vtkContourTriangulator. It requires that the inner circle is > > wound in the opposite direction to the outer circle. > > > > - David > > > > On Sat, Sep 26, 2015 at 9:11 AM, zhq < > > > 15891495523@ > > >> wrote: > > > >> > >> In fact, I want to get a result like: > >> <http://vtk.1045678.n5.nabble.com/file/n5734143/2.png> > >> > >> And the vtkDelaunay2D maybe can't give me what I want. Because it > >> "triangulate all of the points except the region inside the boundary of > >> the > >> polygon". So it may cause the illegal line which inside the inner > circle. > >> > >> If somebody know which class is ok for my need ? > >> > >> Thank you very much ! > >> > >> ZhangQiang > -------------- next part -------------- An HTML attachment was scrubbed... URL: From zj19872008 at sina.com Sun Sep 27 00:23:57 2015 From: zj19872008 at sina.com (zj19872008 at sina.com) Date: Sun, 27 Sep 2015 12:23:57 +0800 Subject: [vtkusers] the four points the vtkCutter intersected with the bounding box Message-ID: <20150927042357.6D837D00001@webmail.sinamail.sina.com.cn> Hello everyone, I'm wondring if I can get the four points the vtkCutter intersected with the bounding box in vtkImplicitPlaneWidget.cxx. Here is the source codes: this->Plane = vtkPlane::New(); this->Plane->SetNormal(0,0,1); this->Plane->SetOrigin(0,0,0); this->Box = vtkImageData::New(); this->Box->SetDimensions(2,2,2); this->Outline = vtkOutlineFilter::New(); this->Outline->SetInputData(this->Box); this->OutlineMapper = vtkPolyDataMapper::New(); this->OutlineMapper->SetInputConnection( this->Outline->GetOutputPort()); this->OutlineActor = vtkActor::New(); this->OutlineActor->SetMapper(this->OutlineMapper); this->OutlineTranslation = 1; this->ScaleEnabled = 1; this->OutsideBounds = 1; this->Cutter = vtkCutter::New(); this->Cutter->SetInputData(this->Box); this->Cutter->SetCutFunction(this->Plane); this->CutMapper = vtkPolyDataMapper::New(); this->CutMapper->SetInputConnection( this->Cutter->GetOutputPort()); this->CutActor = vtkActor::New(); this->CutActor->SetMapper(this->CutMapper); this->DrawPlane = 1; this->Edges = vtkFeatureEdges::New(); this->Edges->SetInputConnection( this->Cutter->GetOutputPort()); this->EdgesTuber = vtkTubeFilter::New(); this->EdgesTuber->SetInputConnection( this->Edges->GetOutputPort()); this->EdgesTuber->SetNumberOfSides(12); this->EdgesMapper = vtkPolyDataMapper::New(); this->EdgesMapper->SetInputConnection( this->EdgesTuber->GetOutputPort()); this->EdgesActor = vtkActor::New(); this->EdgesActor->SetMapper(this->EdgesMapper); Thanks alot. -------------- next part -------------- An HTML attachment was scrubbed... URL: From 15891495523 at 126.com Sun Sep 27 07:16:24 2015 From: 15891495523 at 126.com (zhq) Date: Sun, 27 Sep 2015 04:16:24 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> Message-ID: <1443352584901-5734149.post@n5.nabble.com> Dear David: I have read the example you give. And the input of vtkContourTriangulator is all surface, how can I input a set of points ? ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142p5734149.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Sep 27 10:20:55 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 27 Sep 2015 08:20:55 -0600 Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: <1443352584901-5734149.post@n5.nabble.com> References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> <1443352584901-5734149.post@n5.nabble.com> Message-ID: On Sun, Sep 27, 2015 at 5:16 AM, zhq <15891495523 at 126.com> wrote: > Dear David: > > I have read the example you give. And the input of > vtkContourTriangulator is all surface, how can I input a set of points ? > The input to to vtkContourTriangulator is lines, not a surface. Join the points together into line segments. #include #include #include #include #include #include #include #include #include #include #include #include #include #include #define PI 3.1415926 int main(int, char *[]) { // Generate two circular contours with line segments vtkSmartPointer points = vtkSmartPointer::New(); vtkSmartPointer aCellArray = vtkSmartPointer::New(); vtkIdType lastPointId = 35; for (int theta = 0;theta<360;theta+=10) { double x = 2*cos(theta*PI/180); double y = 2*sin(theta*PI/180); vtkIdType pointId = points->InsertNextPoint(x,y,0); aCellArray->InsertNextCell(2); aCellArray->InsertCellPoint(lastPointId); aCellArray->InsertCellPoint(pointId); lastPointId = pointId; } lastPointId = 71; for (int theta = 350;theta>=0;theta-=10) { double x = cos(theta*PI/180); double y = sin(theta*PI/180); vtkIdType pointId = points->InsertNextPoint(x,y,0); aCellArray->InsertNextCell(2); aCellArray->InsertCellPoint(lastPointId); aCellArray->InsertCellPoint(pointId); lastPointId = pointId; } // Create a polydata to store the contour. vtkSmartPointer contour = vtkSmartPointer::New(); contour->SetPoints(points); contour->SetLines(aCellArray); contour->BuildCells(); contour->BuildLinks(); // Triangulate the grid points vtkSmartPointer triangulator = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 triangulator->SetInput(contour); #else triangulator->SetInputData(contour); #endif triangulator->Update(); // Visualize vtkSmartPointer meshMapper = vtkSmartPointer::New(); meshMapper->SetInputConnection(triangulator->GetOutputPort()); vtkSmartPointer meshActor = vtkSmartPointer::New(); meshActor->SetMapper(meshMapper); //meshActor->GetProperty()->SetEdgeColor(0,0,1); // Why aren't the edges aren't visible unless we set the representation to wireframe? //meshActor->GetProperty()->SetInterpolationToFlat(); meshActor->GetProperty()->SetRepresentationToWireframe(); vtkSmartPointer contourMapper = vtkSmartPointer::New(); #if VTK_MAJOR_VERSION <= 5 contourMapper->SetInputConnection(contour->GetProducerPort()); #else contourMapper->SetInputData(contour); #endif vtkSmartPointer contourActor = vtkSmartPointer::New(); contourActor->SetMapper(contourMapper); contourActor->GetProperty()->SetColor(1,0,0); // 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 actor to the scene renderer->AddActor(meshActor); renderer->AddActor(contourActor); renderer->SetBackground(.3, .6, .3); // Background color green // Render and interact renderWindow->Render(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: triangulator.png Type: image/png Size: 18412 bytes Desc: not available URL: From 15891495523 at 126.com Sun Sep 27 21:50:24 2015 From: 15891495523 at 126.com (zhq) Date: Sun, 27 Sep 2015 18:50:24 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> <1443352584901-5734149.post@n5.nabble.com> Message-ID: <1443405024462-5734151.post@n5.nabble.com> Dear David: Thank you for giving a detail code, but I think the result is weird. I want Delaunay triangulation, but there are lots of triangulation which obviously is not the Delaunay triangulation. Is there any way to remedy ? ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142p5734151.html Sent from the VTK - Users mailing list archive at Nabble.com. From david.gobbi at gmail.com Sun Sep 27 22:12:13 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Sun, 27 Sep 2015 20:12:13 -0600 Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: <1443405024462-5734151.post@n5.nabble.com> References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> <1443352584901-5734149.post@n5.nabble.com> <1443405024462-5734151.post@n5.nabble.com> Message-ID: On Sun, Sep 27, 2015 at 7:50 PM, zhq <15891495523 at 126.com> wrote: > Dear David: > > Thank you for giving a detail code, but I think the result is weird. > > > I want Delaunay triangulation, but there are lots of triangulation > which > obviously is not the Delaunay triangulation. Is there any way to remedy ? > Try the attached code. As for myself, I avoid vtkDelaunay2D because I've found it to be numerically unstable (for certain inputs, it goes into infinite recursion and crashes). - David -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: DelaunayConstraints.cxx Type: application/octet-stream Size: 3895 bytes Desc: not available URL: From 15891495523 at 126.com Mon Sep 28 01:32:59 2015 From: 15891495523 at 126.com (zhq) Date: Sun, 27 Sep 2015 22:32:59 -0700 (MST) Subject: [vtkusers] How to set the boundary of vtkDelaunay2D ? In-Reply-To: References: <1443277532130-5734142.post@n5.nabble.com> <1443280281055-5734143.post@n5.nabble.com> <1443314989143-5734146.post@n5.nabble.com> <1443352584901-5734149.post@n5.nabble.com> <1443405024462-5734151.post@n5.nabble.com> Message-ID: <1443418379122-5734153.post@n5.nabble.com> Dear David: Thanks very much! It's really work. ZhangQiang -- View this message in context: http://vtk.1045678.n5.nabble.com/How-to-set-the-boundary-of-vtkDelaunay2D-tp5734142p5734153.html Sent from the VTK - Users mailing list archive at Nabble.com. From hoanganhtuanctes at gmail.com Mon Sep 28 04:52:56 2015 From: hoanganhtuanctes at gmail.com (hoanganhtuan) Date: Mon, 28 Sep 2015 01:52:56 -0700 (MST) Subject: [vtkusers] [vtk-users] capture mouse event In-Reply-To: <001e01c9fe3e$547c27a0$a500a8c0@olympe.local> References: <001e01c9fe3e$547c27a0$a500a8c0@olympe.local> Message-ID: <1443430376002-5734155.post@n5.nabble.com> Hi. I have sample problem. my C# app can't capture mouse event after call SetParentID -- View this message in context: http://vtk.1045678.n5.nabble.com/Re-vtk-users-capture-mouse-event-tp1246036p5734155.html Sent from the VTK - Users mailing list archive at Nabble.com. From lars.matthaeus at web.de Mon Sep 28 10:29:33 2015 From: lars.matthaeus at web.de (=?UTF-8?Q?Lars_Matth=c3=a4us?=) Date: Mon, 28 Sep 2015 16:29:33 +0200 Subject: [vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb Message-ID: <56094ECD.6030603@web.de> I have a DataSet with 3 scalar components, e.g. from loading a stack of rgb images with the vtkJPEGReader. I want to slice through it using a vtkImagePlaneWidget. Unfortunately, I cannot get the widget to display the rgb image; I only get a grey image. I played with the vtkLookupTable::SetVectorModeToRGBColors successfully to display the image as rgb using a vtkImageSliceMapper, but when I use the same lookup table for the vtkImagePlaneWidget, I get a grey image again. I attach some java sample code comparing the vtkImagePlaneWidget and the vtkImageSliceMapper as well as the output of the program. Any help appreciated! Lars -------------- next part -------------- import java.awt.BorderLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import vtk.vtkCanvas; import vtk.vtkImageData; import vtk.vtkImagePlaneWidget; import vtk.vtkImageSlice; import vtk.vtkImageSliceMapper; import vtk.vtkJPEGReader; import vtk.vtkLookupTable; import vtk.vtkNativeLibrary; public class SimpleVTK extends JPanel implements ActionListener { private static final long serialVersionUID = 1L; private JButton exitButton; // Load VTK library and print which library was not properly loaded static { if (!vtkNativeLibrary.LoadAllNativeLibraries()) { for (vtkNativeLibrary lib : vtkNativeLibrary.values()) { if (!lib.IsLoaded()) { System.out.println(lib.GetLibraryName() + " not loaded"); } } } vtkNativeLibrary.DisableOutputWindow(null); } public SimpleVTK() { super(new BorderLayout()); // create vtk display with data vtkCanvas renWin = new vtkCanvas(); createVtkInput(renWin); // Add Java UI components exitButton = new JButton("Exit"); exitButton.addActionListener(this); add(renWin, BorderLayout.CENTER); add(exitButton, BorderLayout.SOUTH); } void createVtkInput(vtkCanvas renWin) { // create input vtkJPEGReader reader = new vtkJPEGReader(); reader.SetFileName("C:/VTKData/Data/beach.jpg"); vtkImageData id = reader.GetOutput(); reader.Update(); int[] dim = id.GetDimensions(); // lookup table: map the 3 scalars to rgb vtkLookupTable table = new vtkLookupTable(); table.SetRampToLinear(); table.SetRange(0.0, 255.0); table.SetValueRange(0.0, 1.0); table.SetSaturationRange(0.0, 0.0); table.SetVectorModeToRGBColors(); table.Build(); // image plane widget vtkImagePlaneWidget ipw = new vtkImagePlaneWidget(); ipw.SetInteractor(renWin.getRenderWindowInteractor()); ipw.SetInputData(id); ipw.SetPlaneOrientation(2); ipw.GetColorMap().SetLookupTable(table); ipw.GetColorMap().SetOutputFormatToRGB(); ipw.On(); // slice mapper vtkImageSliceMapper imageMapper = new vtkImageSliceMapper(); imageMapper.SetInputData(id); vtkImageSlice image = new vtkImageSlice(); image.SetMapper(imageMapper); image.GetProperty().SetLookupTable(table); image.SetPosition(1.5 * dim[0], 0, 0); // shift in x direction renWin.GetRenderer().AddViewProp(image); // proper initial display renWin.GetRenderer().ResetCamera(); } /** An ActionListener that listens to the button. */ @Override public void actionPerformed(ActionEvent e) { if (e.getSource().equals(exitButton)) { System.exit(0); } } public static void main(String s[]) { JFrame frame = new JFrame("SimpleVTK"); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane().setLayout(new BorderLayout()); frame.getContentPane().add(new SimpleVTK(), BorderLayout.CENTER); frame.setSize(400, 400); frame.setVisible(true); } } -------------- next part -------------- A non-text attachment was scrubbed... Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper.jpg Type: image/jpeg Size: 18890 bytes Desc: not available URL: From agatakrason at gmail.com Mon Sep 28 10:49:14 2015 From: agatakrason at gmail.com (agatte) Date: Mon, 28 Sep 2015 07:49:14 -0700 (MST) Subject: [vtkusers] question ? [hole filling inside the mesh] Message-ID: <1443451754845-5734157.post@n5.nabble.com> Hi, I have a surface with lots of small holes. I would like to fill these holes. I used hole filling filter. I followed example from wiki : http://www.vtk.org/Wiki/VTK/Examples/Cxx/Meshes/FillHoles But I don't know why it didn't work in mycase. I received empty file without any surface. Could anybody help me please ? here surface with holes : Here my code : vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName(inputFilename.c_str()); reader->Update(); vtkSmartPointer surface = vtkSmartPointer::New(); surface->SetInputConnection(reader->GetOutputPort()); surface->ComputeNormalsOn(); surface->ComputeGradientsOn(); surface->ComputeScalarsOn(); surface->SetValue(0,5.0); surface->Update(); vtkSmartPointer polyData = surface->GetOutput(); // To remain largest region vtkSmartPointer conFilter = vtkSmartPointer::New(); conFilter->SetInputConnection(surface->GetOutputPort()); conFilter->SetExtractionModeToLargestRegion(); conFilter->Update(); // Decimation vtkSmartPointer decimateFilter = vtkSmartPointer::New(); decimateFilter->SetInputData(conFilter->GetOutput()); decimateFilter->SetTargetReduction(.5); //10% reduction (if there was 100 triangles, now there will be 90) decimateFilter->Update(); vtkSmartPointer smoothFilter = vtkSmartPointer::New(); smoothFilter->SetInputConnection(decimateFilter->GetOutputPort()); smoothFilter->SetNumberOfIterations(6000); smoothFilter->Update(); vtkSmartPointer smoothPolyData = smoothFilter->GetOutput(); vtkSmartPointer featureEdges = vtkSmartPointer::New(); featureEdges->SetInputConnection(smoothFilter->GetOutputPort()); featureEdges->BoundaryEdgesOn(); featureEdges->FeatureEdgesOn(); featureEdges->ManifoldEdgesOn(); featureEdges->NonManifoldEdgesOn(); featureEdges->Update(); int numberOfOpenEdges = featureEdges->GetOutput()->GetNumberOfCells(); std::cout << "Number of open edges : " < fillHolesFilter = vtkSmartPointer::New(); fillHolesFilter->SetInputData(smoothPolyData); fillHolesFilter->SetHoleSize(1000.0); fillHolesFilter->Update(); vtkSmartPointer normals = vtkSmartPointer::New(); normals->SetInputData(fillHolesFilter->GetOutput()); normals->ConsistencyOff(); normals->SplittingOn(); normals->Update(); normals->GetOutput()->GetPointData()->SetNormals(polyData->GetPointData()->GetNormals()); vtkSmartPointer polyWriter = vtkSmartPointer::New(); polyWriter->SetInputConnection( normals->GetOutputPort()); polyWriter->SetFileName("deformedSurface.vtk"); polyWriter->Write(); I would appreciate for any advice. agatte -- View this message in context: http://vtk.1045678.n5.nabble.com/question-hole-filling-inside-the-mesh-tp5734157.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Mon Sep 28 11:32:55 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Mon, 28 Sep 2015 11:32:55 -0400 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: <5606FDC6.70100@xs4all.nl> References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> <5602B421.3020505@xs4all.nl> <5602D60C.40306@xs4all.nl> <5606FDC6.70100@xs4all.nl> Message-ID: Hi Niels, I merged your change last night. Thank you for contributing to VTK! Best regards, Cory On Sat, Sep 26, 2015 at 4:19 PM, Niels Dekker - address until 2018 < niels_dekker_address_until_2018 at xs4all.nl> wrote: > Hi again, Cory, > > Please check my merge request, and please merge, if you think it's fine: > https://gitlab.kitware.com/vtk/vtk/merge_requests/704 > > Kind regards, Niels > > > On 23 Sep 2015 6:40 PM, I wrote: > >> Hi Cory, >> >> Thanks for the information. Actually, explaining why exactly those >> warnings appear might be the hardest part! It looks like the following >> is happening, for a subproject that was meant to have suppressed >> warnings: >> 1. For such a subproject, VTK replaces any compiler option >> regarding warning-levels from CMAKE_C_FLAGS and CMAKE_CXX_FLAGS by >> '/w' and '-w'. >> 2. CMake then created a Visual Studio project file ("*.vcxproj") >> that does not have any XML tag. Instead, CMake adds >> '/w' and '-w' to the XML tag. >> 3. Visual Studio finds out that the tag is missing, >> and so it adds warning-level 1 ('/W1') as its default warning-level. >> However, it also adds those '/w' and '-w' from to >> the command-line. >> 4. The C++ compiler (cl.exe) gets '/W1, as well as '/w' and '-w', >> so it complains about overriding '/W1' with '/w'. >> >> Fortunately this problem does not occur when VTK uses '/W0', instead >> of '/w' or '-w'! >> >> Kind regards, Niels >> >> Cory Quammen wrote on September 23, 2015, 16:22: >> >>> Niels, >>> >>> I saw that you contributed to ITK via gerrit. Contributing to VTK is >>> similar, but it uses gitlab instead of gerrit. I wouldn't bother with >>> a bug report for this issue - just explaining why the warnings appear >>> in the commit message is sufficient. >>> >>> Thanks for offering to contribute! I will watch for your patch and >>> shepherd it through the review process. >>> >>> Best, >>> Cory >>> >>> On Wed, Sep 23, 2015 at 10:16 AM, Niels Dekker wrote: >>> >>> Hi Cory, >>> >>> Thank you! When I have time (hopefully before next Sunday), I'll >>> try to contribute the patch via your gitlab contribution process. >>> Is the process similar to ITK? And do you think I should create a >>> "ticket" or "bug report" for this little issue? >>> >>> If I can't get it to work (or if it takes me too much time), I >>> hope someone else can do the patch for me, next week or so... >>> >>> Kind regards, Niels >>> >>> PS Also thanks to Audrius for the support :-) >>> >>> Cory Quammen wrote on September 23, 2015, 15:54: >>> >>> Hi Niels, >>> >>> This does sound like a good patch. Would you mind contributing >>> it via >>> our gitlab contribution process? Please see [1]. >>> >>> [1] >>> https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md >>> >>> Thank you, >>> Cory >>> >>> On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: >>> >>> Does anyone here think it would be nice to fix these MSVC >>> warnings? >>> >>> Basically it's just a matter of replacing '/w' and '-w' >>> by '/W0', >>> in various CMake files of the VTK source tree, according >>> to the >>> patch/diff-file I attached last Sunday. >>> >>> >>> -- >>> Cory Quammen >>> R&D Engineer >>> Kitware, Inc. >>> >> > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sebastian.hilbert at gmx.net Mon Sep 28 13:42:16 2015 From: sebastian.hilbert at gmx.net (Sebastian Hilbert) Date: Mon, 28 Sep 2015 19:42:16 +0200 Subject: [vtkusers] stl to Ensite dif conversion Message-ID: <2611058.pggSJXq1FJ@basti-thinkpad-t410> Hi, I have a stl file which get produced by a medical software. I need to convert this to another formal which is very similar to the vtk ascii format with polygonal dataset. The target format is like this: 32.4603 6.0825 -40.3249 13.9858 7.9016 -41.0501 16.6287 7.6514 -40.4356 30.7806 7.9503 -41.1414 0.220882 -0.586701 -0.779098 -0.082953 -0.169572 -0.982021 0.393210 -0.647443 -0.652842 -0.106461 -0.248735 -0.962703 3 40 8 17 10 13 41 13 42 4 36 43 What would be the best way to go about converting stl to Ensite dif ? I have a sample target file and converted it to stl and vtk with a tool called 3D object converter (http://3doc.i3dconverter.com/formats.html) which seems to be the only tool able to load Einsite dif files. Looking at the vtk file the polygons are different from the ones in the xml (dif) file. Looking at the stl file (ascii) I can see some vertex lines that match a line in the vertices section of the xml (dif) file but there are a lot more vertex lines in the stl file then there are in the xml (dif file). I would prefer to use python if that is an option. Any help is appreciated. Sebastian From bill.lorensen at gmail.com Mon Sep 28 14:04:40 2015 From: bill.lorensen at gmail.com (Bill Lorensen) Date: Mon, 28 Sep 2015 14:04:40 -0400 Subject: [vtkusers] stl to Ensite dif conversion In-Reply-To: <2611058.pggSJXq1FJ@basti-thinkpad-t410> References: <2611058.pggSJXq1FJ@basti-thinkpad-t410> Message-ID: Is there a specification of the DIF model format. Bill On Mon, Sep 28, 2015 at 1:42 PM, Sebastian Hilbert wrote: > Hi, > > I have a stl file which get produced by a medical software. I need to convert > this to another formal which is very similar to the vtk ascii format with > polygonal dataset. > > The target format is like this: > > > > > > 32.4603 6.0825 -40.3249 > 13.9858 7.9016 -41.0501 > 16.6287 7.6514 -40.4356 > 30.7806 7.9503 -41.1414 > > > 0.220882 -0.586701 -0.779098 > -0.082953 -0.169572 -0.982021 > 0.393210 -0.647443 -0.652842 > -0.106461 -0.248735 -0.962703 > > > 3 40 8 > 17 10 13 > 41 13 42 > 4 36 43 > > > > > > > > > > What would be the best way to go about converting stl to Ensite dif ? > > I have a sample target file and converted it to stl and vtk with a tool called > 3D object converter (http://3doc.i3dconverter.com/formats.html) which seems to > be the only tool able to load Einsite dif files. > > Looking at the vtk file the polygons are different from the ones in the xml > (dif) file. Looking at the stl file (ascii) I can see some vertex lines that > match a line in the vertices section of the xml (dif) file but there are a lot > more vertex lines in the stl file then there are in the xml (dif file). > > I would prefer to use python if that is an option. > > Any help is appreciated. > > Sebastian > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers -- Unpaid intern in BillsBasement at noware dot com From jose.de.paula at live.com Mon Sep 28 16:22:09 2015 From: jose.de.paula at live.com (Jose Barreto) Date: Mon, 28 Sep 2015 13:22:09 -0700 (MST) Subject: [vtkusers] Text vtkCaptionWidget Message-ID: <1443471729455-5734162.post@n5.nabble.com> VtkCaptionWidget'm using, but I can not change the font size. I saw that there are ways within text-> GetCaptionActor2D () -> GetTextActor () -> SetTextScaleMode (), but it still makes the source move from automatic foma. I tried using text-> GetCaptionActor2D () -> GetCaptionTextProperty () -> SetFontSize (8); but with neither a combination of SetTextScaleMode () listens change the default font. There is something SetFontSize type? to set the font size independent of the box? -- View this message in context: http://vtk.1045678.n5.nabble.com/Text-vtkCaptionWidget-tp5734162.html Sent from the VTK - Users mailing list archive at Nabble.com. From s.serviddio at gmail.com Mon Sep 28 18:04:24 2015 From: s.serviddio at gmail.com (stefano serviddio) Date: Tue, 29 Sep 2015 00:04:24 +0200 Subject: [vtkusers] Multiple Actore Dicom Image from Itk Message-ID: Hi, I would like to watch on my screen three dicom image that I read from ITK reader, then I'm trying to write this code, What do you think about it? #include "itkImageFileReader.h" #include "itkImageFileWriter.h" #include "itkGDCMImageIO.h" #include "itkImageToVTKImageFilter.h" #include "vtkVersion.h" #include "vtkImageViewer.h" #include "vtkRenderWindowInteractor.h" #include "vtkSmartPointer.h" #include "vtkImageActor.h" #include "vtkImageMapper3D.h" #include "vtkInteractorStyleImage.h" #include "vtkRenderer.h" #include "vtkCamera.h" using namespace std; using namespace itk; int main( ) { const unsigned int Dimension = 2; typedef unsigned short PixelType; typedef float InternalPixelType; typedef signed short OutputPixelType; typedef Image< PixelType, Dimension > FixedImageType; typedef Image< PixelType, Dimension > MovingImageType; typedef ImageFileReader< FixedImageType > FixedImageReaderType; typedef ImageFileReader< MovingImageType > MovingImageReaderType; typedef GDCMImageIO GDCMType; GDCMType::Pointer gdcm=GDCMType::New(); FixedImageReaderType::Pointer fixedImageReader = FixedImageReaderType::New(); MovingImageReaderType::Pointer movingImageReader = MovingImageReaderType::New(); /* typedef itk::ImageToVTKImageFilter ConnectorType1; ConnectorType1::Pointer originalConnector1 = ConnectorType1::New(); typedef itk::ImageToVTKImageFilter ConnectorType2; ConnectorType2::Pointer originalConnector2 = ConnectorType2::New();*/ char* filename1="D:/Images/def00001.dcm"; char* filename2="D:/Images/def100001.dcm"; fixedImageReader->SetFileName( filename1 ); movingImageReader->SetFileName( filename2 ); fixedImageReader->SetImageIO(gdcm); movingImageReader->SetImageIO(gdcm); //Read Dicom Image fixedImageReader->Update(); movingImageReader->Update(); FixedImageType::Pointer Image1=fixedImageReader->GetOutput(); MovingImageType::Pointer Image2=movingImageReader->GetOutput(); originalConnector1->SetInput(Image1); originalConnector2->SetInput(Image2); vtkSmartPointer originalActor1 = vtkSmartPointer::New(); vtkSmartPointer originalActor2 = vtkSmartPointer::New(); originalConnector1->Update(); originalConnector2->Update(); originalActor1->GetMapper()->SetInputData(originalConnector1->GetOutput()); originalActor2->GetMapper()->SetInputData(originalConnector2->GetOutput()); vtkSmartPointer renderer1 = vtkSmartPointer::New(); renderer1->AddActor(originalActor1); renderer1->AddActor(originalActor2); renderer1->ResetCamera(); renderer1->GetActiveCamera(); vtkSmartPointer renderWindow1 = vtkSmartPointer::New(); vtkSmartPointer renderWindowInteractor1 = vtkSmartPointer::New(); vtkSmartPointer style = vtkSmartPointer::New(); renderer1->SetBackground(1,1,1); renderWindow1->AddRenderer(renderer1); renderWindow1->Render(); renderWindowInteractor1->SetInteractorStyle(style); renderWindowInteractor1->SetRenderWindow(renderWindow1); renderWindowInteractor1->Initialize(); renderWindowInteractor1->Start(); return 0; } -------------- next part -------------- An HTML attachment was scrubbed... URL: From ashsalehi4133 at gmail.com Tue Sep 29 04:07:16 2015 From: ashsalehi4133 at gmail.com (AchkanSalehi) Date: Tue, 29 Sep 2015 01:07:16 -0700 (MST) Subject: [vtkusers] customizing the VTK projection matrix (i.e K[R T] to VTK projection) Message-ID: <1443514036905-5734165.post@n5.nabble.com> Hi, I need to replace the projection matrix that VTK uses, and haven't succeded thus far. I have the three matrices *K*, *R*, *T*, which respectively represent the camera calibration matrix, the Rotation and translation (i.e. the columns of *R* are the camera axes and *T* is its position in world coodinates. I have tried: //first, to obtain an identity projection matrix camera->SetViewUp(0,1, 0); camera->SetPosition(0, 0, 0); camera->SetFocalPoint(0, 0, -1); renderer->SetActiveCamera(camera); // add orientation and translation: [R T] vtkSmartPointer KRT=vtkSmartPointer::New(); //KRT->SetElement... So that the matrix looks like R T O 1 //with O=[0 0 0] camera->SetModelTransformMatrix(KRT); But i have no idea how to add the *K* matrix. I also think the orientation i obtain with the lines above is wrong. From what i saw in the documentation and other forums, this can be done by setting the focal point, up, etc, but the documentation was as little bit unsufficient for me. So any help would be greatly appreciated. PS: I think it would also help if anyone could briefly explain how the VTK projection matrix is related to the OpenGL projection matrix... Thanks again. -- View this message in context: http://vtk.1045678.n5.nabble.com/customizing-the-VTK-projection-matrix-i-e-K-R-T-to-VTK-projection-tp5734165.html Sent from the VTK - Users mailing list archive at Nabble.com. From sur.chiranjib at gmail.com Tue Sep 29 06:46:15 2015 From: sur.chiranjib at gmail.com (Chiranjib Sur) Date: Tue, 29 Sep 2015 16:16:15 +0530 Subject: [vtkusers] Rotating a vtk actor using world coordinates In-Reply-To: References: <1439221945146-5733395.post@n5.nabble.com> <1439225613355-5733398.post@n5.nabble.com> Message-ID: Hi, The implementation of the rotation transform are as follows (from vtkTransform.h file : URL https://github.com/Kitware/VTK/blob/master/Common/Transforms/vtkTransform.h) void RotateX(double angle) { this->RotateWXYZ(angle, 1, 0, 0); }; void RotateY(double angle) { this->RotateWXYZ(angle, 0, 1, 0); }; void RotateZ( double angle) { this->RotateWXYZ(angle, 0, 0, 1); }; Therefore, how there going to be a difference between actor->RotateX(45); actor->RotateY(45); and actor->RotateWXYZ(45, 1, 0, 0); actor->RotateWXYZ(45, 0, 1, 0); Can anyone please explain this a bit? David, Is there any example of the SetUserMatrix() available to learn about it? Thanks, Chiranjib On Mon, Aug 10, 2015 at 10:38 PM, David Gobbi wrote: > Hi Drak, > > Generally it's better design to build a transform or matrix and then apply > that to the actor via SetUserTransform() or SetUserMatrix(). That way, the > transform or matrix is available to you if you have to move other points or > actors between coordinate systems. > > To rotate around a point in space, you have to apply a translation to put > that point at the origin, then do the rotation, and then translate back > again. > > - David > > On Mon, Aug 10, 2015 at 10:53 AM, Drak wrote: > >> I should add that I'm using the vtkImageActor with a vtkImageData as a >> source. It seems that my point of rotation is the bottom left of my image >> > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 niels_dekker_address_until_2018 at xs4all.nl Tue Sep 29 08:45:32 2015 From: niels_dekker_address_until_2018 at xs4all.nl (Niels Dekker - address until 2018) Date: Tue, 29 Sep 2015 14:45:32 +0200 Subject: [vtkusers] A fix for MSVC warning D9025: overriding '/W1' with '/w' In-Reply-To: References: <55FE7A5E.8030908@xs4all.nl> <5602AD30.80807@xs4all.nl> <5602B421.3020505@xs4all.nl> <5602D60C.40306@xs4all.nl> <5606FDC6.70100@xs4all.nl> Message-ID: <560A87EC.7050008@xs4all.nl> You're welcome, Cory! I just saw your merge of my 'MSVC-warning-D9025-fix' at https://gitlab.kitware.com/vtk/vtk/commit/c9901c775451ff2031750f1f5fc7c2ebdeb0a192 Kind regards, Niels Cory Quammen wrote on September 28, 2015: > Hi Niels, > > I merged your change last night. > > Thank you for contributing to VTK! > > Best regards, > Cory > > On Sat, Sep 26, 2015 at 4:19 PM, Niels Dekker wrote: > > Hi again, Cory, > > Please check my merge request, and please merge, if you think it's > fine: https://gitlab.kitware.com/vtk/vtk/merge_requests/704 > > Kind regards, Niels > > > On 23 Sep 2015 6:40 PM, I wrote: > > Hi Cory, > > Thanks for the information. Actually, explaining why exactly those > warnings appear might be the hardest part! It looks like the > following > is happening, for a subproject that was meant to have suppressed > warnings: > 1. For such a subproject, VTK replaces any compiler option > regarding warning-levels from CMAKE_C_FLAGS and CMAKE_CXX_FLAGS by > '/w' and '-w'. > 2. CMake then created a Visual Studio project file > ("*.vcxproj") > that does not have any XML tag. Instead, CMake adds > '/w' and '-w' to the XML tag. > 3. Visual Studio finds out that the tag is > missing, > and so it adds warning-level 1 ('/W1') as its default > warning-level. > However, it also adds those '/w' and '-w' from > to > the command-line. > 4. The C++ compiler (cl.exe) gets '/W1, as well as '/w' > and '-w', > so it complains about overriding '/W1' with '/w'. > > Fortunately this problem does not occur when VTK uses '/W0', > instead > of '/w' or '-w'! > > Kind regards, Niels > > Cory Quammen wrote on September 23, 2015, 16:22: > > Niels, > > I saw that you contributed to ITK via gerrit. Contributing > to VTK is > similar, but it uses gitlab instead of gerrit. I wouldn't > bother with > a bug report for this issue - just explaining why the > warnings appear > in the commit message is sufficient. > > Thanks for offering to contribute! I will watch for your > patch and > shepherd it through the review process. > > Best, > Cory > > On Wed, Sep 23, 2015 at 10:16 AM, Niels Dekker wrote: > > Hi Cory, > > Thank you! When I have time (hopefully before next > Sunday), I'll > try to contribute the patch via your gitlab > contribution process. > Is the process similar to ITK? And do you think I > should create a > "ticket" or "bug report" for this little issue? > > If I can't get it to work (or if it takes me too much > time), I > hope someone else can do the patch for me, next week > or so... > > Kind regards, Niels > > PS Also thanks to Audrius for the support :-) > > Cory Quammen wrote on September 23, 2015, 15:54: > > Hi Niels, > > This does sound like a good patch. Would you mind > contributing > it via > our gitlab contribution process? Please see [1]. > > [1] > https://gitlab.kitware.com/vtk/vtk/blob/master/CONTRIBUTING.md > > Thank you, > Cory > > On Wed, Sep 23, 2015 at 9:46 AM, Niels Dekker wrote: > > Does anyone here think it would be nice to > fix these MSVC > warnings? > > Basically it's just a matter of replacing > '/w' and '-w' > by '/W0', > in various CMake files of the VTK source > tree, according > to the > patch/diff-file I attached last Sunday. > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > From inglis.dl at gmail.com Tue Sep 29 09:22:07 2015 From: inglis.dl at gmail.com (DL I) Date: Tue, 29 Sep 2015 09:22:07 -0400 Subject: [vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb In-Reply-To: <56094ECD.6030603@web.de> References: <56094ECD.6030603@web.de> Message-ID: Lars, try changing your value and saturation ranges to something else, like (1,1) regards, Dean On Mon, Sep 28, 2015 at 10:29 AM, Lars Matth?us wrote: > I have a DataSet with 3 scalar components, e.g. from loading a stack of > rgb images with the vtkJPEGReader. I want to slice through it using a > vtkImagePlaneWidget. Unfortunately, I cannot get the widget to display > the rgb image; I only get a grey image. > > I played with the vtkLookupTable::SetVectorModeToRGBColors successfully > to display the image as rgb using a vtkImageSliceMapper, but when I use > the same lookup table for the vtkImagePlaneWidget, I get a grey image > again. > > I attach some java sample code comparing the vtkImagePlaneWidget and the > vtkImageSliceMapper as well as the output of the program. > > Any help appreciated! > Lars > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 Tue Sep 29 10:24:51 2015 From: david.lonie at kitware.com (David Lonie) Date: Tue, 29 Sep 2015 10:24:51 -0400 Subject: [vtkusers] Text vtkCaptionWidget In-Reply-To: <1443471729455-5734162.post@n5.nabble.com> References: <1443471729455-5734162.post@n5.nabble.com> Message-ID: vtkCaptionWidget's text size is controlled by the underlying vtkCaptionActor2D's Position and Position2 parameters, which define the rectangle in which the caption will be rendered. The actual font size is adjusted to best fill the box. Hope this helps, Dave On Mon, Sep 28, 2015 at 4:22 PM, Jose Barreto wrote: > VtkCaptionWidget'm using, but I can not change the font size. I saw that > there are ways within > text-> GetCaptionActor2D () -> GetTextActor () -> SetTextScaleMode (), but > it still makes the source move from automatic foma. > I tried using text-> GetCaptionActor2D () -> GetCaptionTextProperty () -> > SetFontSize (8); > but with neither a combination of SetTextScaleMode () listens change the > default font. > > There is something SetFontSize type? to set the font size independent of > the > box? > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Text-vtkCaptionWidget-tp5734162.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 david.gobbi at gmail.com Tue Sep 29 11:25:36 2015 From: david.gobbi at gmail.com (David Gobbi) Date: Tue, 29 Sep 2015 09:25:36 -0600 Subject: [vtkusers] Rotating a vtk actor using world coordinates In-Reply-To: References: <1439221945146-5733395.post@n5.nabble.com> <1439225613355-5733398.post@n5.nabble.com> Message-ID: Hi Chiranjib, The actor's Rotate methods are inherited from vtkProp3D, but the code that you show is from vtkTransform. The actor's RotateWXYZ method commutes the matrices (i.e. multiplies them in a different order) as compared to the RotateX,Y,Z methods. The original author might have had a reason for doing this, but I doubt it was a good enough reason to justify the confusion that this method causes... You can use SetUserMatrix as follows: actor->SetUserMatrix(transform->GetMatrix()); - David On Tue, Sep 29, 2015 at 4:46 AM, Chiranjib Sur wrote: > Hi, > The implementation of the rotation transform are as follows (from > vtkTransform.h file : URL > https://github.com/Kitware/VTK/blob/master/Common/Transforms/vtkTransform.h > ) > > void RotateX(double angle) { this->RotateWXYZ(angle, 1, 0, 0); }; void > RotateY(double angle) { this->RotateWXYZ(angle, 0, 1, 0); }; void RotateZ( > double angle) { this->RotateWXYZ(angle, 0, 0, 1); }; Therefore, how there > going to be a difference between > > actor->RotateX(45); > actor->RotateY(45); > > and > > actor->RotateWXYZ(45, 1, 0, 0); > actor->RotateWXYZ(45, 0, 1, 0); > > Can anyone please explain this a bit? David, Is there any example of the > SetUserMatrix() available to learn about it? > > Thanks, > Chiranjib > > On Mon, Aug 10, 2015 at 10:38 PM, David Gobbi > wrote: > >> Hi Drak, >> >> Generally it's better design to build a transform or matrix and then >> apply that to the actor via SetUserTransform() or SetUserMatrix(). That >> way, the transform or matrix is available to you if you have to move other >> points or actors between coordinate systems. >> >> To rotate around a point in space, you have to apply a translation to put >> that point at the origin, then do the rotation, and then translate back >> again. >> >> - David >> >> On Mon, Aug 10, 2015 at 10:53 AM, Drak wrote: >> >>> I should add that I'm using the vtkImageActor with a vtkImageData as a >>> source. It seems that my point of rotation is the bottom left of my image >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From ricardo.c.r.santos at gmail.com Tue Sep 29 11:28:53 2015 From: ricardo.c.r.santos at gmail.com (Ricardo Santos) Date: Tue, 29 Sep 2015 12:28:53 -0300 Subject: [vtkusers] Error running example Message-ID: Hello, I am trying to run the python vtk example from http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/SubdivisionFilters and I am getting an error on this line: cleanPolyData.SetInputData(trianglePolyData) The preceding lines of code are: # Create a polydata object trianglePolyData = vtk.vtkPolyData() # Add the geometry and topology to the polydata trianglePolyData.SetPoints(points) trianglePolyData.GetPointData().SetScalars(colors) trianglePolyData.SetPolys(triangles) # Clean the polydata so that the edges are shared ! cleanPolyData = vtk.vtkCleanPolyData() cleanPolyData.SetInputData(trianglePolyData) and the error I am getting is: File "C:/Users/Ricardo Santos/Documents/Python Scripts/testeVTK3.py", line 80, in cleanPolyData.SetInputData(trianglePolyData) AttributeError: SetInputData Does anyone know what I am getting wrong? Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Tue Sep 29 11:36:51 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Sep 2015 11:36:51 -0400 Subject: [vtkusers] Error running example In-Reply-To: References: Message-ID: Hi Ricardo, I suspect you are using an older version of VTK. Which version are you running? Try changing SetInputData to just SetInput. Thanks, Cory On Tue, Sep 29, 2015 at 11:28 AM, Ricardo Santos < ricardo.c.r.santos at gmail.com> wrote: > Hello, > > I am trying to run the python vtk example from > http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/SubdivisionFilters > and I am getting an error on this line: > > cleanPolyData.SetInputData(trianglePolyData) > > > The preceding lines of code are: > > # Create a polydata object > trianglePolyData = vtk.vtkPolyData() > # Add the geometry and topology to the polydata > trianglePolyData.SetPoints(points) > trianglePolyData.GetPointData().SetScalars(colors) > trianglePolyData.SetPolys(triangles) > # Clean the polydata so that the edges are shared ! > cleanPolyData = vtk.vtkCleanPolyData() > cleanPolyData.SetInputData(trianglePolyData) > > > and the error I am getting is: > > > File "C:/Users/Ricardo Santos/Documents/Python Scripts/testeVTK3.py", > line 80, in > cleanPolyData.SetInputData(trianglePolyData) > > AttributeError: SetInputData > > > Does anyone know what I am getting wrong? Thanks! > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From s.serviddio at gmail.com Tue Sep 29 12:32:48 2015 From: s.serviddio at gmail.com (stefano serviddio) Date: Tue, 29 Sep 2015 18:32:48 +0200 Subject: [vtkusers] Ttwo Dicom Image Message-ID: Hi, Someone may help me to find out any examples for visualizing two images in the same window. I read two Dicom image with itk and I would like watch them on my display. -------------- next part -------------- An HTML attachment was scrubbed... URL: From piers.barber at logicmonkey.co.uk Tue Sep 29 12:13:36 2015 From: piers.barber at logicmonkey.co.uk (piers.barber at logicmonkey.co.uk) Date: Tue, 29 Sep 2015 17:13:36 +0100 Subject: [vtkusers] =?utf-8?q?Computational_Geometry_-_user_equations=3F?= Message-ID: <00d793a837be4c0c706a87213a04d2f1@logicmonkey.co.uk> Hi All, I'd like to specify a surface f(u,v) in 3D with my own parametric equation system {x(u,v), y(u,v), z(u,v)}. And then visualize it. The only way I can see to do this is to add my function to the library source code, build the library and then call my function as described here: http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt I'm using vtkParametricTorus[.h, .cxx] as a template, but is there an easier and more direct way to do this? Thanks! -=:LM:=- From cory.quammen at kitware.com Tue Sep 29 13:19:20 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Tue, 29 Sep 2015 13:19:20 -0400 Subject: [vtkusers] Error running example In-Reply-To: References: Message-ID: Great! Note that in VTK 6 and above, the SetInput() method has been replaced with SetInputData(). See [1]. Best regards, Cory [1] http://www.vtk.org/Wiki/VTK/VTK_6_Migration/Replacement_of_SetInput On Tue, Sep 29, 2015 at 1:16 PM, Ricardo Santos < ricardo.c.r.santos at gmail.com> wrote: > Yup, that did the trick! Thank you. > > I am running VTK 5.10, downloaded with the Anaconda. > > On Tue, Sep 29, 2015 at 12:36 PM, Cory Quammen > wrote: > >> Hi Ricardo, >> >> I suspect you are using an older version of VTK. Which version are you >> running? Try changing SetInputData to just SetInput. >> >> Thanks, >> Cory >> >> On Tue, Sep 29, 2015 at 11:28 AM, Ricardo Santos < >> ricardo.c.r.santos at gmail.com> wrote: >> >>> Hello, >>> >>> I am trying to run the python vtk example from >>> http://www.vtk.org/Wiki/VTK/Examples/Python/PolyData/SubdivisionFilters >>> and I am getting an error on this line: >>> >>> cleanPolyData.SetInputData(trianglePolyData) >>> >>> >>> The preceding lines of code are: >>> >>> # Create a polydata object >>> trianglePolyData = vtk.vtkPolyData() >>> # Add the geometry and topology to the polydata >>> trianglePolyData.SetPoints(points) >>> trianglePolyData.GetPointData().SetScalars(colors) >>> trianglePolyData.SetPolys(triangles) >>> # Clean the polydata so that the edges are shared ! >>> cleanPolyData = vtk.vtkCleanPolyData() >>> cleanPolyData.SetInputData(trianglePolyData) >>> >>> >>> and the error I am getting is: >>> >>> >>> File "C:/Users/Ricardo Santos/Documents/Python Scripts/testeVTK3.py", >>> line 80, in >>> cleanPolyData.SetInputData(trianglePolyData) >>> >>> AttributeError: SetInputData >>> >>> >>> Does anyone know what I am getting wrong? Thanks! >>> >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >>> >>> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> > > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.med.marco at gmail.com Tue Sep 29 14:28:32 2015 From: alex.med.marco at gmail.com (Alex Med) Date: Tue, 29 Sep 2015 21:58:32 +0330 Subject: [vtkusers] Adding two images Message-ID: HI, in blending two images what do we do for FIXING background whole 0-1 value range this->blend = vtkSmartPointer::New(); blend->SetOpacity( 0, 1.0 ); blend->SetOpacity( 1, 0.6 ); blend->AddInputConnection( firstColorMapper->GetOutputPort() ); blend->AddInputConnection( secondColorMapper->GetOutputPort() ); blend->Update(); in this case fixed images is port : 0 but in during change foreground and background will be changed is there any setting for blending (0-1) background be Fixed Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean at rogue-research.com Tue Sep 29 14:52:55 2015 From: sean at rogue-research.com (Sean McBride) Date: Tue, 29 Sep 2015 14:52:55 -0400 Subject: [vtkusers] New to VTK (OpenGL2 Line Stipple) In-Reply-To: <24e9cc4652cd24f479eb005c52c6e4ed@mail.gmail.com> References: <24e9cc4652cd24f479eb005c52c6e4ed@mail.gmail.com> Message-ID: <20150929185255.1504306027@mail.rogue-research.com> On Mon, 14 Sep 2015 15:03:33 -0400, Ken Martin said: >Unfortunately LineStipple was removed in OpenGL version 3.1 about six years >ago (along with LineWidth sort of) and there is no replacement in OpenGL. It >has never been in OpenGL ES for Android/iOS to my knowledge. Currently in >VTK it is not supported on the OpenGL2 backend. At some point we could try >to add it back in fully or partially with our own implementation just not >sure how high of a priority it is relative to everything else. Ken, Thanks for the reply. FWIW, for us, it's high priority because it's something we use. :) Not sure if we are an outlier there. :) Shall we create an issue in the bug tracker? 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 lars.matthaeus at web.de Wed Sep 30 03:44:50 2015 From: lars.matthaeus at web.de (=?UTF-8?Q?Lars_Matth=c3=a4us?=) Date: Wed, 30 Sep 2015 09:44:50 +0200 Subject: [vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb In-Reply-To: References: <56094ECD.6030603@web.de> Message-ID: <560B92F2.3040402@web.de> Dear Dean, Thanks for your help! Unfortunately, it doesn't solve the problem. The image in the vtkImagePlaneWidget is still not like the original rgb. I attach again some screenshots for comparison (vtkImagePlaneWidget on the left, vtkImageSliceMapper on the right). Is there anything else I could try? Best, Lars Am 29.09.2015 um 15:22 schrieb DL I: > Lars, > try changing your value and saturation ranges to something else, like (1,1) > regards, > Dean > > On Mon, Sep 28, 2015 at 10:29 AM, Lars Matth?us > wrote: > > I have a DataSet with 3 scalar components, e.g. from loading a stack of > rgb images with the vtkJPEGReader. I want to slice through it using a > vtkImagePlaneWidget. Unfortunately, I cannot get the widget to display > the rgb image; I only get a grey image. > > I played with the vtkLookupTable::SetVectorModeToRGBColors successfully > to display the image as rgb using a vtkImageSliceMapper, but when I use > the same lookup table for the vtkImagePlaneWidget, I get a grey > image again. > > I attach some java sample code comparing the vtkImagePlaneWidget and the > vtkImageSliceMapper as well as the output of the program. > > Any help appreciated! > Lars > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-0-0.jpg Type: image/jpeg Size: 16032 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-0-1.jpg Type: image/jpeg Size: 21074 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-1-1_saturation-1-1.jpg Type: image/jpeg Size: 21257 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: vtk_ImagePlaneWidget_vs_ImageSliceMapper_value-0-1_saturation-1-1.jpg Type: image/jpeg Size: 20034 bytes Desc: not available URL: From ken.martin at kitware.com Wed Sep 30 06:58:28 2015 From: ken.martin at kitware.com (Ken Martin) Date: Wed, 30 Sep 2015 06:58:28 -0400 Subject: [vtkusers] New to VTK (OpenGL2 Line Stipple) In-Reply-To: <20150929185255.1504306027@mail.rogue-research.com> References: <24e9cc4652cd24f479eb005c52c6e4ed@mail.gmail.com> <20150929185255.1504306027@mail.rogue-research.com> Message-ID: <39d1b1f01635d6ea8329749dc58f3148@mail.gmail.com> Please do create an issue. Thanks! - Ken Ken Martin PhD Chairman & CFO Kitware Inc. 28 Corporate Drive Clifton Park NY 12065 ken.martin at kitware.com 919 869-8871 (w) 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. -----Original Message----- From: Sean McBride [mailto:sean at rogue-research.com] Sent: Tuesday, September 29, 2015 2:53 PM To: Ken Martin; Seun Odutola; vtkusers at vtk.org Subject: Re: [vtkusers] New to VTK (OpenGL2 Line Stipple) On Mon, 14 Sep 2015 15:03:33 -0400, Ken Martin said: >Unfortunately LineStipple was removed in OpenGL version 3.1 about six >years ago (along with LineWidth sort of) and there is no replacement in >OpenGL. It has never been in OpenGL ES for Android/iOS to my knowledge. >Currently in VTK it is not supported on the OpenGL2 backend. At some >point we could try to add it back in fully or partially with our own >implementation just not sure how high of a priority it is relative to everything else. Ken, Thanks for the reply. FWIW, for us, it's high priority because it's something we use. :) Not sure if we are an outlier there. :) Shall we create an issue in the bug tracker? 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 sam24666806 at gmail.com Wed Sep 30 08:35:07 2015 From: sam24666806 at gmail.com (LaChen) Date: Wed, 30 Sep 2015 05:35:07 -0700 (MST) Subject: [vtkusers] Question about getting raw data pointer of vtkImageData. Message-ID: <1443616507452-5734189.post@n5.nabble.com> Hi, I'm rookie of VTK. I encounter a problem when I try to get raw data of pointer vtkImageData loading with DICON Reader. I trace code and find a pointer named /Array/ at ArrayTemplate. I want to get it and make a histogram. But I don't know how to use it. Can someone tell me general usage? -- View this message in context: http://vtk.1045678.n5.nabble.com/Question-about-getting-raw-data-pointer-of-vtkImageData-tp5734189.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Sep 30 09:10:23 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 30 Sep 2015 09:10:23 -0400 Subject: [vtkusers] Question about getting raw data pointer of vtkImageData. In-Reply-To: <1443616507452-5734189.post@n5.nabble.com> References: <1443616507452-5734189.post@n5.nabble.com> Message-ID: Hi, Have a look at this example. http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/IterateImageData This one may also be useful. http://www.vtk.org/Wiki/VTK/Examples/Cxx/ImageData/ImageIterator HTH, Cory On Wed, Sep 30, 2015 at 8:35 AM, LaChen wrote: > Hi, I'm rookie of VTK. > > I encounter a problem when I try to get raw data of pointer vtkImageData > loading with DICON Reader. > > I trace code and find a pointer named /Array/ at ArrayTemplate. I want to > get it and make a histogram. > > But I don't know how to use it. Can someone tell me general usage? > > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Question-about-getting-raw-data-pointer-of-vtkImageData-tp5734189.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From cory.quammen at kitware.com Wed Sep 30 09:15:45 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 30 Sep 2015 09:15:45 -0400 Subject: [vtkusers] Computational Geometry - user equations? In-Reply-To: <00d793a837be4c0c706a87213a04d2f1@logicmonkey.co.uk> References: <00d793a837be4c0c706a87213a04d2f1@logicmonkey.co.uk> Message-ID: On Tue, Sep 29, 2015 at 12:13 PM, wrote: > Hi All, > > I'd like to specify a surface f(u,v) in 3D with my own parametric equation > system {x(u,v), y(u,v), z(u,v)}. And then visualize it. > > The only way I can see to do this is to add my function to the library > source code, build the library and then call my function as described here: > > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt Yep, that looks like a good way to go. > I'm using vtkParametricTorus[.h, .cxx] as a template, but is there an > easier and more direct way to do this? > You can define your subclass of vtkParametricFunction in your local project - no need to add it to VTK, which is what I think you were saying above. Were you looking for a vtkParametricFunction subclass that takes an expression for x(u,v), etc.? That doesn't exist as far as I know, but that would be cool to have. Cory > Thanks! > > -=:LM:=- > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sam24666806 at gmail.com Wed Sep 30 10:23:52 2015 From: sam24666806 at gmail.com (LaChen) Date: Wed, 30 Sep 2015 07:23:52 -0700 (MST) Subject: [vtkusers] Question about getting raw data pointer of vtkImageData. In-Reply-To: References: <1443616507452-5734189.post@n5.nabble.com> Message-ID: <1443623032855-5734192.post@n5.nabble.com> Thanks, I think this example is correct. Because I make a test. I get raw data pointer by vtlImageData::GetScalarPointer() and its extents. Then I save the raw data into binary file. Finally I use another program the show histogram. It seems right. -- View this message in context: http://vtk.1045678.n5.nabble.com/Question-about-getting-raw-data-pointer-of-vtkImageData-tp5734189p5734192.html Sent from the VTK - Users mailing list archive at Nabble.com. From cory.quammen at kitware.com Wed Sep 30 10:30:37 2015 From: cory.quammen at kitware.com (Cory Quammen) Date: Wed, 30 Sep 2015 10:30:37 -0400 Subject: [vtkusers] Question about getting raw data pointer of vtkImageData. In-Reply-To: <1443623032855-5734192.post@n5.nabble.com> References: <1443616507452-5734189.post@n5.nabble.com> <1443623032855-5734192.post@n5.nabble.com> Message-ID: Great! VTK Wiki Examples to the rescue again. Cory On Wed, Sep 30, 2015 at 10:23 AM, LaChen wrote: > Thanks, I think this example is correct. Because I make a test. I get raw > data pointer by vtlImageData::GetScalarPointer() and its extents. Then I > save the raw data into binary file. Finally I use another program the show > histogram. It seems right. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/Question-about-getting-raw-data-pointer-of-vtkImageData-tp5734189p5734192.html > Sent from the VTK - Users mailing list archive at Nabble.com. > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > Search the list archives at: http://markmail.org/search/?q=vtkusers > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/vtkusers > -- Cory Quammen R&D Engineer Kitware, Inc. -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Wed Sep 30 10:42:16 2015 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 30 Sep 2015 10:42:16 -0400 Subject: [vtkusers] customizing the VTK projection matrix (i.e K[R T] to VTK projection) In-Reply-To: <1443514036905-5734165.post@n5.nabble.com> References: <1443514036905-5734165.post@n5.nabble.com> Message-ID: Hi Achkan, In the past I was able to translate the model view transforms from VTK to OpenGL, so that I kept a VTK view and an OpenGL view in sync. The information in that discussion might be of interest to your problem as well. http://vtk.markmail.org/search/?q=Dan+Lipsa+matrix#query:Dan%20Lipsa%20matrix+page:1+mid:vtybw3f2mup2zq3z+state:results On Tue, Sep 29, 2015 at 4:07 AM, AchkanSalehi wrote: > Hi, > > I need to replace the projection matrix that VTK uses, and haven't succeded > thus far. I have the three matrices *K*, > *R*, *T*, which respectively represent the camera calibration matrix, the > Rotation and translation (i.e. the columns of *R* are the camera axes and > *T* is its position in world coodinates. I have tried: > > //first, to obtain an identity projection matrix > camera->SetViewUp(0,1, 0); > camera->SetPosition(0, 0, 0); > camera->SetFocalPoint(0, 0, -1); > renderer->SetActiveCamera(camera); > > // add orientation and translation: [R T] > vtkSmartPointer KRT=vtkSmartPointer::New(); > > //KRT->SetElement... So that the matrix looks like > R T > O 1 > //with O=[0 0 0] > > camera->SetModelTransformMatrix(KRT); > > But i have no idea how to add the *K* matrix. I also think the orientation > i > obtain with the lines above is wrong. From what i saw in the documentation > and other forums, this can be done by setting the focal point, up, etc, but > the documentation was as little bit unsufficient for me. So any help would > be greatly appreciated. > > PS: I think it would also help if anyone could briefly explain how the VTK > projection matrix is related to the OpenGL projection matrix... Thanks > again. > > > > -- > View this message in context: > http://vtk.1045678.n5.nabble.com/customizing-the-VTK-projection-matrix-i-e-K-R-T-to-VTK-projection-tp5734165.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 joachim.pouderoux at kitware.com Wed Sep 30 10:50:03 2015 From: joachim.pouderoux at kitware.com (Joachim Pouderoux) Date: Wed, 30 Sep 2015 16:50:03 +0200 Subject: [vtkusers] announce: VTK/ParaView Training - November 3 and 4, 2015, Lyon, France Message-ID: Kitware will be holding VTK and ParaView training courses respectively on November 3 and 4 in Lyon, France. Please visit our web site for more information and registration details at: VTK: http://formations.kitware.fr/browse/103 ParaView: http://formations.kitware.fr/browse/105 Note that the courses will be taught in English. If you have any question, please contact us at: formations at kitware.fr Thank you, *Joachim Pouderoux* *PhD, Technical Expert* *Kitware SAS * -------------- next part -------------- An HTML attachment was scrubbed... URL: From alex.med.marco at gmail.com Wed Sep 30 11:05:05 2015 From: alex.med.marco at gmail.com (Alex Med) Date: Wed, 30 Sep 2015 18:35:05 +0330 Subject: [vtkusers] Compound blending Message-ID: Hi, is there any example or entry point for Compound blending Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From dan.lipsa at kitware.com Wed Sep 30 11:30:25 2015 From: dan.lipsa at kitware.com (Dan Lipsa) Date: Wed, 30 Sep 2015 11:30:25 -0400 Subject: [vtkusers] Ttwo Dicom Image In-Reply-To: References: Message-ID: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/MultipleViewports On Tue, Sep 29, 2015 at 12:32 PM, stefano serviddio wrote: > Hi, > Someone may help me to find out any examples for visualizing two images in > the same window. I read two Dicom image with itk and I would like watch > them on my display. > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the VTK FAQ at: > http://www.vtk.org/Wiki/VTK_FAQ > > 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 alex.med.marco at gmail.com Wed Sep 30 11:52:07 2015 From: alex.med.marco at gmail.com (Alex Med) Date: Wed, 30 Sep 2015 19:22:07 +0330 Subject: [vtkusers] Fusion in Radiant Message-ID: Hi , The fusion in Radiant what kind of the Fusion ? can you explain about this Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From neel at aerosoftinc.com Wed Sep 30 11:47:02 2015 From: neel at aerosoftinc.com (Reece Neel) Date: Wed, 30 Sep 2015 11:47:02 -0400 Subject: [vtkusers] vtkCutter gaps using polyhedron cells Message-ID: <560C03F6.7080407@aerosoftinc.com> Hi, I'm having a similar issue as the following bug report: http://www.vtk.org/Bug/bug_relationship_graph.php?bug_id=14485&graph=relation where the vtkCutter leaves holes or gaps for a vtkUnstructuredGrid that is composed of VTK_POLYHEDRON type cells. Has there been a fix to this issue. I'm using vtk 6.2.0 From dejan.zivkovic90 at gmail.com Wed Sep 30 12:10:19 2015 From: dejan.zivkovic90 at gmail.com (Dejan Zivkovic) Date: Wed, 30 Sep 2015 18:10:19 +0200 Subject: [vtkusers] Hiding objects on the scene Message-ID: I saw that there are ways to hide some objects from the scene. For example, first solution is to take the objects actor and apply SetVisibility(false), and the object will hide. Second option, I suppose, is to remove the actor from the renderer. My question is: Which is more efficient? Does SetVisibility(false) hides the object in the way that it doesn't render at all? Thanks, Dejan Zivkovic -------------- next part -------------- An HTML attachment was scrubbed... URL: From inglis.dl at gmail.com Wed Sep 30 15:00:46 2015 From: inglis.dl at gmail.com (DL I) Date: Wed, 30 Sep 2015 15:00:46 -0400 Subject: [vtkusers] ImagePlaneWidget mapping ImageData with 3 scalars to rgb In-Reply-To: <560B92F2.3040402@web.de> References: <56094ECD.6030603@web.de> <560B92F2.3040402@web.de> Message-ID: Hi Lars, I think the problem is the vtkLookupTable is meant to take a single component (scalar value) and map it to RGB. So even though the image has 3 unsigned char components, only the first component gets mapped through. What you want to do in this case is just pass the image directly through without using a lookup table. However, with 3D image data, you might not be able to do window levelling: not sure, just a hunch at this point. Also, you dont need to set a vtkLookupTable to the vtkImageSlice's vtkImageProperty since the image is already 3 unsigned char. The following worked for me: #include #include #include #include #include #include #include #include #include #include #include #include #include #include int main(void) { // Setup renderers vtkSmartPointer renderer = vtkSmartPointer::New(); // Setup render window vtkSmartPointer renderWindow = vtkSmartPointer::New(); renderWindow->SetSize(800, 800); renderWindow->AddRenderer(renderer); // Setup render window interactor vtkSmartPointer renderWindowInteractor = vtkSmartPointer::New(); renderWindowInteractor->SetRenderWindow(renderWindow); // create input vtkSmartPointer reader = vtkSmartPointer::New(); reader->SetFileName("/home/dean/files/repository/VTKData/Data/beach.jpg"); vtkImageData* id = reader->GetOutput(); reader->Update(); int* dim = id->GetDimensions(); // image plane widget vtkSmartPointer ipw = vtkSmartPointer::New(); ipw->SetInteractor(renderWindowInteractor); ipw->SetInput(reader->GetOutput()); ipw->SetPlaneOrientation(2); ipw->GetColorMap()->SetLookupTable(NULL); ipw->GetColorMap()->SetOutputFormatToRGB(); ipw->On(); // slice mapper vtkSmartPointer imageMapper = vtkSmartPointer::New(); imageMapper->SetInput(reader->GetOutput()); vtkSmartPointer image = vtkSmartPointer::New(); image->SetMapper(imageMapper); image->SetPosition(1.5 * dim[0], 0, 0); // shift in x direction renderer->AddViewProp(image); // proper initial display renderer->ResetCamera(); // Render and start interaction renderWindowInteractor->Initialize(); renderWindowInteractor->Start(); return EXIT_SUCCESS; } - Dean 1,5 Top On Wed, Sep 30, 2015 at 3:44 AM, Lars Matth?us wrote: > Dear Dean, > > Thanks for your help! Unfortunately, it doesn't solve the problem. The > image in the vtkImagePlaneWidget is still not like the original rgb. I > attach again some screenshots for comparison (vtkImagePlaneWidget on the > left, vtkImageSliceMapper on the right). Is there anything else I could > try? > > Best, > Lars > > Am 29.09.2015 um 15:22 schrieb DL I: > > Lars, > > try changing your value and saturation ranges to something else, like > (1,1) > > regards, > > Dean > > > > On Mon, Sep 28, 2015 at 10:29 AM, Lars Matth?us > > wrote: > > > > I have a DataSet with 3 scalar components, e.g. from loading a stack > of > > rgb images with the vtkJPEGReader. I want to slice through it using a > > vtkImagePlaneWidget. Unfortunately, I cannot get the widget to > display > > the rgb image; I only get a grey image. > > > > I played with the vtkLookupTable::SetVectorModeToRGBColors > successfully > > to display the image as rgb using a vtkImageSliceMapper, but when I > use > > the same lookup table for the vtkImagePlaneWidget, I get a grey > > image again. > > > > I attach some java sample code comparing the vtkImagePlaneWidget and > the > > vtkImageSliceMapper as well as the output of the program. > > > > Any help appreciated! > > Lars > > > > _______________________________________________ > > Powered by www.kitware.com > > > > Visit other Kitware open-source projects at > > http://www.kitware.com/opensource/opensource.html > > > > Please keep messages on-topic and check the VTK FAQ at: > > http://www.vtk.org/Wiki/VTK_FAQ > > > > 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 andrew.amaclean at gmail.com Wed Sep 30 19:19:07 2015 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Thu, 1 Oct 2015 09:19:07 +1000 Subject: [vtkusers] Computational Geometry - user equations? Message-ID: If I understand you correctly, then the approach described in http://www.vtk.org/img/ParametricSurfaces.pdf in " How to create your own surface" should work for you. If you adopt this approach, you just build using the library and you do not need to modify the VTK library. I attach a VTK 6.3+ version of the example for you to try out. I'll add this to the VTK examples sometime next week. Once you get a surface you might like to look at: http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs and http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs for some visualisation ideas. Regards Andrew > ---------- Forwarded message ---------- > From: Cory Quammen > To: piers.barber at logicmonkey.co.uk > Cc: "vtkusers at vtk.org" > Date: Wed, 30 Sep 2015 09:15:45 -0400 > Subject: Re: [vtkusers] Computational Geometry - user equations? > On Tue, Sep 29, 2015 at 12:13 PM, wrote: > >> Hi All, >> >> I'd like to specify a surface f(u,v) in 3D with my own parametric >> equation system {x(u,v), y(u,v), z(u,v)}. And then visualize it. >> >> The only way I can see to do this is to add my function to the library >> source code, build the library and then call my function as described here: >> >> >> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt > > > Yep, that looks like a good way to go. > > >> I'm using vtkParametricTorus[.h, .cxx] as a template, but is there an >> easier and more direct way to do this? >> > > You can define your subclass of vtkParametricFunction in your local > project - no need to add it to VTK, which is what I think you were saying > above. > > Were you looking for a vtkParametricFunction subclass that takes an > expression for x(u,v), etc.? That doesn't exist as far as I know, but that > would be cool to have. > > Cory > > >> Thanks! >> >> -=:LM:=- >> _______________________________________________ >> Powered by www.kitware.com >> >> Visit other Kitware open-source projects at >> http://www.kitware.com/opensource/opensource.html >> >> Please keep messages on-topic and check the VTK FAQ at: >> http://www.vtk.org/Wiki/VTK_FAQ >> >> Search the list archives at: http://markmail.org/search/?q=vtkusers >> >> Follow this link to subscribe/unsubscribe: >> http://public.kitware.com/mailman/listinfo/vtkusers >> > > > > -- > Cory Quammen > R&D Engineer > Kitware, Inc. > > > -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Figure8Torus.zip Type: application/zip Size: 3934 bytes Desc: not available URL: From piers.barber at logicmonkey.co.uk Wed Sep 30 20:26:16 2015 From: piers.barber at logicmonkey.co.uk (piers.barber at logicmonkey.co.uk) Date: Thu, 01 Oct 2015 01:26:16 +0100 Subject: [vtkusers] =?utf-8?q?Computational_Geometry_-_user_equations=3F?= In-Reply-To: References: Message-ID: <8b666536811d8929380d900c045511ce@logicmonkey.co.uk> Thanks both - I will have a good look at what you've said. I'm not a software engineer but I'll work it through. Meantime, here's an example that I created in MathMod - the syntax is self explanatory. The derivation from simple space curve equations is in the same git repo and done in Maxima. https://github.com/logicmonkey/curves/blob/master/mathmod/lm_trefoil_knot.js Cheers, -- -=:LM:=- On 2015-10-01 00:19, Andrew Maclean wrote: > If I understand you correctly, then the approach described in http://www.vtk.org/img/ParametricSurfaces.pdf [10]in " How to create your own surface" should work for you. If you adopt this approach, you just build using the library and you do not need to modify the VTK library. > > I attach a VTK 6.3+ version of the example for you to try out. > > I'll add this to the VTK examples sometime next week. > > Once you get a surface you might like to look at: > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs [11] > and > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs [12] > for some visualisation ideas. > > Regards > Andrew > >> ---------- Forwarded message ---------- >> From: Cory Quammen >> To: piers.barber at logicmonkey.co.uk [6] >> Cc: "vtkusers at vtk.org [7]" >> Date: Wed, 30 Sep 2015 09:15:45 -0400 >> Subject: Re: [vtkusers] Computational Geometry - user equations? >> >> On Tue, Sep 29, 2015 at 12:13 PM, wrote: >> >>> Hi All, >>> >>> I'd like to specify a surface f(u,v) in 3D with my own parametric equation system {x(u,v), y(u,v), z(u,v)}. And then visualize it. >>> >>> The only way I can see to do this is to add my function to the library source code, build the library and then call my function as described here: >>> >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt [1] >> >> Yep, that looks like a good way to go. >> >>> I'm using vtkParametricTorus[.h, .cxx] as a template, but is there an easier and more direct way to do this? >> >> You can define your subclass of vtkParametricFunction in your local project - no need to add it to VTK, which is what I think you were saying above. >> >> Were you looking for a vtkParametricFunction subclass that takes an expression for x(u,v), etc.? That doesn't exist as far as I know, but that would be cool to have. >> >> Cory >> Thanks! >> >> -=:LM:=- >> _______________________________________________ >> Powered by > -- > > ___________________________________________ > Andrew J. P. Maclean > > ___________________________________________ Links: ------ [1] http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt [2] http://www.vtk.org/Wiki/VTK_FAQ [3] http://markmail.org/search/?q=vtkusers [4] http://public.kitware.com/mailman/listinfo/vtkusers [5] mailto:cory.quammen at kitware.com [6] mailto:piers.barber at logicmonkey.co.uk [7] mailto:vtkusers at vtk.org [8] mailto:vtkusers at vtk.org [9] mailto:piers.barber at logicmonkey.co.uk [10] http://www.vtk.org/img/ParametricSurfaces.pdf [11] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs [12] http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs -------------- next part -------------- An HTML attachment was scrubbed... URL: From andrew.amaclean at gmail.com Wed Sep 30 22:26:08 2015 From: andrew.amaclean at gmail.com (Andrew Maclean) Date: Thu, 1 Oct 2015 12:26:08 +1000 Subject: [vtkusers] Computational Geometry - user equations? In-Reply-To: <8b666536811d8929380d900c045511ce@logicmonkey.co.uk> References: <8b666536811d8929380d900c045511ce@logicmonkey.co.uk> Message-ID: That will work nicely in the code I sent you. You just have to modify Evaluate(double uvw[3], double Pt[3], double Duvw[9]) your equations for Fx, Fy, Fz would correspond to Pt[0] ... Pt[2] respectively. Calculating the derivatives could be fun! You could look at: http://www.derivative-calculator.net/ In Evaluate() note that precomputing terms simplifies things a lot. Regards Andrew On Thu, Oct 1, 2015 at 10:26 AM, wrote: > Thanks both - I will have a good look at what you've said. I'm not a > software engineer but I'll work it through. > > Meantime, here's an example that I created in MathMod - the syntax is self > explanatory. The derivation from simple space curve equations is in the > same git repo and done in Maxima. > > > https://github.com/logicmonkey/curves/blob/master/mathmod/lm_trefoil_knot.js > > Cheers, > > -- > > -=:LM:=- > > On 2015-10-01 00:19, Andrew Maclean wrote: > > If I understand you correctly, then the approach described in > http://www.vtk.org/img/ParametricSurfaces.pdfin " How to create your own > surface" should work for you. If you adopt this approach, you just build > using the library and you do not need to modify the VTK library. > > I attach a VTK 6.3+ version of the example for you to try out. > > I'll add this to the VTK examples sometime next week. > > Once you get a surface you might like to look at: > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/ElevationBandsWithGlyphs > and > > http://www.vtk.org/Wiki/VTK/Examples/Cxx/Visualization/CurvatureBandsWithGlyphs > for some visualisation ideas. > > > Regards > Andrew > > > >> ---------- Forwarded message ---------- >> From: Cory Quammen >> To: piers.barber at logicmonkey.co.uk >> Cc: "vtkusers at vtk.org" >> Date: Wed, 30 Sep 2015 09:15:45 -0400 >> Subject: Re: [vtkusers] Computational Geometry - user equations? >> On Tue, Sep 29, 2015 at 12:13 PM, wrote: >> >>> Hi All, >>> >>> I'd like to specify a surface f(u,v) in 3D with my own parametric >>> equation system {x(u,v), y(u,v), z(u,v)}. And then visualize it. >>> >>> The only way I can see to do this is to add my function to the library >>> source code, build the library and then call my function as described here: >>> >>> >>> http://www.vtk.org/Wiki/VTK/Examples/Cxx/GeometricObjects/ParametricObjectsDemo#CMakeLists.txt >> >> >> Yep, that looks like a good way to go. >> >> >>> I'm using vtkParametricTorus[.h, .cxx] as a template, but is there an >>> easier and more direct way to do this? >> >> >> You can define your subclass of vtkParametricFunction in your local >> project - no need to add it to VTK, which is what I think you were saying >> above. >> >> Were you looking for a vtkParametricFunction subclass that takes an >> expression for x(u,v), etc.? That doesn't exist as far as I know, but that >> would be cool to have. >> >> Cory >> >> >>> Thanks! >>> >>> -=:LM:=- >>> _______________________________________________ >>> Powered by www.kitware.com >>> >>> Visit other Kitware open-source projects at >>> http://www.kitware.com/opensource/opensource.html >>> >>> Please keep messages on-topic and check the VTK FAQ at: >>> http://www.vtk.org/Wiki/VTK_FAQ >>> >>> Search the list archives at: http://markmail.org/search/?q=vtkusers >>> >>> Follow this link to subscribe/unsubscribe: >>> http://public.kitware.com/mailman/listinfo/vtkusers >> >> >> >> >> -- >> Cory Quammen >> R&D Engineer >> Kitware, Inc. >> >> >> -- > ___________________________________________ > Andrew J. P. Maclean > > ___________________________________________ > > > > -- ___________________________________________ Andrew J. P. Maclean ___________________________________________ -------------- next part -------------- An HTML attachment was scrubbed... URL: